companion.pb.go 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0-devel
  4. // protoc v3.15.8
  5. // source: companion.proto
  6. package companion
  7. import (
  8. _ "google.golang.org/genproto/googleapis/api/annotations"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. _ "google.golang.org/protobuf/types/known/emptypb"
  12. _ "google.golang.org/protobuf/types/known/structpb"
  13. reflect "reflect"
  14. sync "sync"
  15. )
  16. const (
  17. // Verify that this generated code is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  19. // Verify that runtime/protoimpl is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  21. )
  22. type AuthorizationRequest struct {
  23. state protoimpl.MessageState
  24. sizeCache protoimpl.SizeCache
  25. unknownFields protoimpl.UnknownFields
  26. JsCode string `protobuf:"bytes,1,opt,name=jsCode,proto3" json:"jsCode"`
  27. }
  28. func (x *AuthorizationRequest) Reset() {
  29. *x = AuthorizationRequest{}
  30. if protoimpl.UnsafeEnabled {
  31. mi := &file_companion_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. }
  36. func (x *AuthorizationRequest) String() string {
  37. return protoimpl.X.MessageStringOf(x)
  38. }
  39. func (*AuthorizationRequest) ProtoMessage() {}
  40. func (x *AuthorizationRequest) ProtoReflect() protoreflect.Message {
  41. mi := &file_companion_proto_msgTypes[0]
  42. if protoimpl.UnsafeEnabled && x != nil {
  43. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  44. if ms.LoadMessageInfo() == nil {
  45. ms.StoreMessageInfo(mi)
  46. }
  47. return ms
  48. }
  49. return mi.MessageOf(x)
  50. }
  51. // Deprecated: Use AuthorizationRequest.ProtoReflect.Descriptor instead.
  52. func (*AuthorizationRequest) Descriptor() ([]byte, []int) {
  53. return file_companion_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *AuthorizationRequest) GetJsCode() string {
  56. if x != nil {
  57. return x.JsCode
  58. }
  59. return ""
  60. }
  61. type TokenReply struct {
  62. state protoimpl.MessageState
  63. sizeCache protoimpl.SizeCache
  64. unknownFields protoimpl.UnknownFields
  65. Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token"`
  66. }
  67. func (x *TokenReply) Reset() {
  68. *x = TokenReply{}
  69. if protoimpl.UnsafeEnabled {
  70. mi := &file_companion_proto_msgTypes[1]
  71. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  72. ms.StoreMessageInfo(mi)
  73. }
  74. }
  75. func (x *TokenReply) String() string {
  76. return protoimpl.X.MessageStringOf(x)
  77. }
  78. func (*TokenReply) ProtoMessage() {}
  79. func (x *TokenReply) ProtoReflect() protoreflect.Message {
  80. mi := &file_companion_proto_msgTypes[1]
  81. if protoimpl.UnsafeEnabled && x != nil {
  82. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  83. if ms.LoadMessageInfo() == nil {
  84. ms.StoreMessageInfo(mi)
  85. }
  86. return ms
  87. }
  88. return mi.MessageOf(x)
  89. }
  90. // Deprecated: Use TokenReply.ProtoReflect.Descriptor instead.
  91. func (*TokenReply) Descriptor() ([]byte, []int) {
  92. return file_companion_proto_rawDescGZIP(), []int{1}
  93. }
  94. func (x *TokenReply) GetToken() string {
  95. if x != nil {
  96. return x.Token
  97. }
  98. return ""
  99. }
  100. var File_companion_proto protoreflect.FileDescriptor
  101. var file_companion_proto_rawDesc = []byte{
  102. 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  103. 0x6f, 0x12, 0x0d, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x69, 0x6f, 0x6e,
  104. 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e,
  105. 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c,
  106. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
  107. 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f,
  108. 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d,
  109. 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2e, 0x0a, 0x14, 0x41, 0x75, 0x74,
  110. 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  111. 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6a, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  112. 0x09, 0x52, 0x06, 0x6a, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x22, 0x0a, 0x0a, 0x54, 0x6f, 0x6b,
  113. 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
  114. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0x80, 0x01,
  115. 0x0a, 0x09, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x69, 0x6f, 0x6e, 0x12, 0x73, 0x0a, 0x0d, 0x41,
  116. 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x61,
  117. 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74,
  118. 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  119. 0x74, 0x1a, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x69, 0x6f,
  120. 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x22, 0x82, 0xd3,
  121. 0xe4, 0x93, 0x02, 0x1c, 0x22, 0x17, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f,
  122. 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a,
  123. 0x42, 0x4c, 0x0a, 0x0d, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x69, 0x6f,
  124. 0x6e, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e,
  125. 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72,
  126. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x61,
  127. 0x6e, 0x69, 0x6f, 0x6e, 0x3b, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x69, 0x6f, 0x6e, 0x62, 0x06,
  128. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  129. }
  130. var (
  131. file_companion_proto_rawDescOnce sync.Once
  132. file_companion_proto_rawDescData = file_companion_proto_rawDesc
  133. )
  134. func file_companion_proto_rawDescGZIP() []byte {
  135. file_companion_proto_rawDescOnce.Do(func() {
  136. file_companion_proto_rawDescData = protoimpl.X.CompressGZIP(file_companion_proto_rawDescData)
  137. })
  138. return file_companion_proto_rawDescData
  139. }
  140. var file_companion_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  141. var file_companion_proto_goTypes = []interface{}{
  142. (*AuthorizationRequest)(nil), // 0: api.companion.AuthorizationRequest
  143. (*TokenReply)(nil), // 1: api.companion.TokenReply
  144. }
  145. var file_companion_proto_depIdxs = []int32{
  146. 0, // 0: api.companion.Companion.Authorization:input_type -> api.companion.AuthorizationRequest
  147. 1, // 1: api.companion.Companion.Authorization:output_type -> api.companion.TokenReply
  148. 1, // [1:2] is the sub-list for method output_type
  149. 0, // [0:1] is the sub-list for method input_type
  150. 0, // [0:0] is the sub-list for extension type_name
  151. 0, // [0:0] is the sub-list for extension extendee
  152. 0, // [0:0] is the sub-list for field type_name
  153. }
  154. func init() { file_companion_proto_init() }
  155. func file_companion_proto_init() {
  156. if File_companion_proto != nil {
  157. return
  158. }
  159. if !protoimpl.UnsafeEnabled {
  160. file_companion_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  161. switch v := v.(*AuthorizationRequest); i {
  162. case 0:
  163. return &v.state
  164. case 1:
  165. return &v.sizeCache
  166. case 2:
  167. return &v.unknownFields
  168. default:
  169. return nil
  170. }
  171. }
  172. file_companion_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  173. switch v := v.(*TokenReply); i {
  174. case 0:
  175. return &v.state
  176. case 1:
  177. return &v.sizeCache
  178. case 2:
  179. return &v.unknownFields
  180. default:
  181. return nil
  182. }
  183. }
  184. }
  185. type x struct{}
  186. out := protoimpl.TypeBuilder{
  187. File: protoimpl.DescBuilder{
  188. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  189. RawDescriptor: file_companion_proto_rawDesc,
  190. NumEnums: 0,
  191. NumMessages: 2,
  192. NumExtensions: 0,
  193. NumServices: 1,
  194. },
  195. GoTypes: file_companion_proto_goTypes,
  196. DependencyIndexes: file_companion_proto_depIdxs,
  197. MessageInfos: file_companion_proto_msgTypes,
  198. }.Build()
  199. File_companion_proto = out.File
  200. file_companion_proto_rawDesc = nil
  201. file_companion_proto_goTypes = nil
  202. file_companion_proto_depIdxs = nil
  203. }