partner.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  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. base "git.ikuban.com/server/pw-protobuf/api/base"
  9. _ "google.golang.org/genproto/googleapis/api/annotations"
  10. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  11. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  12. emptypb "google.golang.org/protobuf/types/known/emptypb"
  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 PartnerCircleInfo struct {
  23. state protoimpl.MessageState
  24. sizeCache protoimpl.SizeCache
  25. unknownFields protoimpl.UnknownFields
  26. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` // id
  27. Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname"` // 昵称
  28. AvatarUrl string `protobuf:"bytes,3,opt,name=avatarUrl,proto3" json:"avatarUrl"` // 头像链接
  29. Sex int64 `protobuf:"varint,4,opt,name=sex,proto3" json:"sex"` // 性别
  30. Pictures []string `protobuf:"bytes,5,rep,name=pictures,proto3" json:"pictures"` // 图片
  31. }
  32. func (x *PartnerCircleInfo) Reset() {
  33. *x = PartnerCircleInfo{}
  34. if protoimpl.UnsafeEnabled {
  35. mi := &file_partner_proto_msgTypes[0]
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. ms.StoreMessageInfo(mi)
  38. }
  39. }
  40. func (x *PartnerCircleInfo) String() string {
  41. return protoimpl.X.MessageStringOf(x)
  42. }
  43. func (*PartnerCircleInfo) ProtoMessage() {}
  44. func (x *PartnerCircleInfo) ProtoReflect() protoreflect.Message {
  45. mi := &file_partner_proto_msgTypes[0]
  46. if protoimpl.UnsafeEnabled && x != nil {
  47. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  48. if ms.LoadMessageInfo() == nil {
  49. ms.StoreMessageInfo(mi)
  50. }
  51. return ms
  52. }
  53. return mi.MessageOf(x)
  54. }
  55. // Deprecated: Use PartnerCircleInfo.ProtoReflect.Descriptor instead.
  56. func (*PartnerCircleInfo) Descriptor() ([]byte, []int) {
  57. return file_partner_proto_rawDescGZIP(), []int{0}
  58. }
  59. func (x *PartnerCircleInfo) GetId() string {
  60. if x != nil {
  61. return x.Id
  62. }
  63. return ""
  64. }
  65. func (x *PartnerCircleInfo) GetNickname() string {
  66. if x != nil {
  67. return x.Nickname
  68. }
  69. return ""
  70. }
  71. func (x *PartnerCircleInfo) GetAvatarUrl() string {
  72. if x != nil {
  73. return x.AvatarUrl
  74. }
  75. return ""
  76. }
  77. func (x *PartnerCircleInfo) GetSex() int64 {
  78. if x != nil {
  79. return x.Sex
  80. }
  81. return 0
  82. }
  83. func (x *PartnerCircleInfo) GetPictures() []string {
  84. if x != nil {
  85. return x.Pictures
  86. }
  87. return nil
  88. }
  89. type PartnerInfo struct {
  90. state protoimpl.MessageState
  91. sizeCache protoimpl.SizeCache
  92. unknownFields protoimpl.UnknownFields
  93. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` // id
  94. Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname"` // 昵称
  95. AvatarUrl string `protobuf:"bytes,3,opt,name=avatarUrl,proto3" json:"avatarUrl"` // 头像链接
  96. Sex int64 `protobuf:"varint,4,opt,name=sex,proto3" json:"sex"` // 性别
  97. Pictures []string `protobuf:"bytes,5,rep,name=pictures,proto3" json:"pictures"` // 图片
  98. }
  99. func (x *PartnerInfo) Reset() {
  100. *x = PartnerInfo{}
  101. if protoimpl.UnsafeEnabled {
  102. mi := &file_partner_proto_msgTypes[1]
  103. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  104. ms.StoreMessageInfo(mi)
  105. }
  106. }
  107. func (x *PartnerInfo) String() string {
  108. return protoimpl.X.MessageStringOf(x)
  109. }
  110. func (*PartnerInfo) ProtoMessage() {}
  111. func (x *PartnerInfo) ProtoReflect() protoreflect.Message {
  112. mi := &file_partner_proto_msgTypes[1]
  113. if protoimpl.UnsafeEnabled && x != nil {
  114. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  115. if ms.LoadMessageInfo() == nil {
  116. ms.StoreMessageInfo(mi)
  117. }
  118. return ms
  119. }
  120. return mi.MessageOf(x)
  121. }
  122. // Deprecated: Use PartnerInfo.ProtoReflect.Descriptor instead.
  123. func (*PartnerInfo) Descriptor() ([]byte, []int) {
  124. return file_partner_proto_rawDescGZIP(), []int{1}
  125. }
  126. func (x *PartnerInfo) GetId() string {
  127. if x != nil {
  128. return x.Id
  129. }
  130. return ""
  131. }
  132. func (x *PartnerInfo) GetNickname() string {
  133. if x != nil {
  134. return x.Nickname
  135. }
  136. return ""
  137. }
  138. func (x *PartnerInfo) GetAvatarUrl() string {
  139. if x != nil {
  140. return x.AvatarUrl
  141. }
  142. return ""
  143. }
  144. func (x *PartnerInfo) GetSex() int64 {
  145. if x != nil {
  146. return x.Sex
  147. }
  148. return 0
  149. }
  150. func (x *PartnerInfo) GetPictures() []string {
  151. if x != nil {
  152. return x.Pictures
  153. }
  154. return nil
  155. }
  156. var File_partner_proto protoreflect.FileDescriptor
  157. var file_partner_proto_rawDesc = []byte{
  158. 0x0a, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  159. 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x1a, 0x1c, 0x67, 0x6f,
  160. 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
  161. 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67,
  162. 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74,
  163. 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x61, 0x70, 0x69, 0x2f, 0x62, 0x61, 0x73,
  164. 0x65, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8b, 0x01, 0x0a,
  165. 0x11, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e,
  166. 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
  167. 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
  168. 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c,
  169. 0x0a, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28,
  170. 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x10, 0x0a, 0x03,
  171. 0x73, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x1a,
  172. 0x0a, 0x08, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09,
  173. 0x52, 0x08, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x73, 0x22, 0x85, 0x01, 0x0a, 0x0b, 0x50,
  174. 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
  175. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69,
  176. 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69,
  177. 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72,
  178. 0x55, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61,
  179. 0x72, 0x55, 0x72, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28,
  180. 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72,
  181. 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72,
  182. 0x65, 0x73, 0x32, 0xe2, 0x01, 0x0a, 0x07, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x12, 0x60,
  183. 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f,
  184. 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  185. 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70,
  186. 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x6e,
  187. 0x66, 0x6f, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x22, 0x11, 0x2f, 0x61, 0x70, 0x69,
  188. 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x3a, 0x01, 0x2a,
  189. 0x12, 0x75, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x43, 0x69,
  190. 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62,
  191. 0x61, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x50, 0x61, 0x72,
  192. 0x61, 0x6d, 0x1a, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72,
  193. 0x2e, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e,
  194. 0x66, 0x6f, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x61, 0x70, 0x69,
  195. 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f,
  196. 0x69, 0x6e, 0x66, 0x6f, 0x3a, 0x01, 0x2a, 0x42, 0x46, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x70,
  197. 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b,
  198. 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f,
  199. 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f,
  200. 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x3b, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x62,
  201. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  202. }
  203. var (
  204. file_partner_proto_rawDescOnce sync.Once
  205. file_partner_proto_rawDescData = file_partner_proto_rawDesc
  206. )
  207. func file_partner_proto_rawDescGZIP() []byte {
  208. file_partner_proto_rawDescOnce.Do(func() {
  209. file_partner_proto_rawDescData = protoimpl.X.CompressGZIP(file_partner_proto_rawDescData)
  210. })
  211. return file_partner_proto_rawDescData
  212. }
  213. var file_partner_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  214. var file_partner_proto_goTypes = []interface{}{
  215. (*PartnerCircleInfo)(nil), // 0: api.partner.PartnerCircleInfo
  216. (*PartnerInfo)(nil), // 1: api.partner.PartnerInfo
  217. (*emptypb.Empty)(nil), // 2: google.protobuf.Empty
  218. (*base.PartnerIDParam)(nil), // 3: api.base.PartnerIDParam
  219. }
  220. var file_partner_proto_depIdxs = []int32{
  221. 2, // 0: api.partner.Partner.GetPartnerInfo:input_type -> google.protobuf.Empty
  222. 3, // 1: api.partner.Partner.GetPartnerCircleInfo:input_type -> api.base.PartnerIDParam
  223. 1, // 2: api.partner.Partner.GetPartnerInfo:output_type -> api.partner.PartnerInfo
  224. 0, // 3: api.partner.Partner.GetPartnerCircleInfo:output_type -> api.partner.PartnerCircleInfo
  225. 2, // [2:4] is the sub-list for method output_type
  226. 0, // [0:2] is the sub-list for method input_type
  227. 0, // [0:0] is the sub-list for extension type_name
  228. 0, // [0:0] is the sub-list for extension extendee
  229. 0, // [0:0] is the sub-list for field type_name
  230. }
  231. func init() { file_partner_proto_init() }
  232. func file_partner_proto_init() {
  233. if File_partner_proto != nil {
  234. return
  235. }
  236. if !protoimpl.UnsafeEnabled {
  237. file_partner_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  238. switch v := v.(*PartnerCircleInfo); i {
  239. case 0:
  240. return &v.state
  241. case 1:
  242. return &v.sizeCache
  243. case 2:
  244. return &v.unknownFields
  245. default:
  246. return nil
  247. }
  248. }
  249. file_partner_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  250. switch v := v.(*PartnerInfo); i {
  251. case 0:
  252. return &v.state
  253. case 1:
  254. return &v.sizeCache
  255. case 2:
  256. return &v.unknownFields
  257. default:
  258. return nil
  259. }
  260. }
  261. }
  262. type x struct{}
  263. out := protoimpl.TypeBuilder{
  264. File: protoimpl.DescBuilder{
  265. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  266. RawDescriptor: file_partner_proto_rawDesc,
  267. NumEnums: 0,
  268. NumMessages: 2,
  269. NumExtensions: 0,
  270. NumServices: 1,
  271. },
  272. GoTypes: file_partner_proto_goTypes,
  273. DependencyIndexes: file_partner_proto_depIdxs,
  274. MessageInfos: file_partner_proto_msgTypes,
  275. }.Build()
  276. File_partner_proto = out.File
  277. file_partner_proto_rawDesc = nil
  278. file_partner_proto_goTypes = nil
  279. file_partner_proto_depIdxs = nil
  280. }