partner.pb.go 7.3 KB

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