client.pb.go 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.1
  4. // protoc v5.26.1
  5. // source: client.proto
  6. package service
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. // HelloRequest 请求内容
  20. type DistributionRequest struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Users []int64 `protobuf:"varint,1,rep,packed,name=Users,proto3" json:"Users,omitempty"`
  25. }
  26. func (x *DistributionRequest) Reset() {
  27. *x = DistributionRequest{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_client_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. }
  34. func (x *DistributionRequest) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*DistributionRequest) ProtoMessage() {}
  38. func (x *DistributionRequest) ProtoReflect() protoreflect.Message {
  39. mi := &file_client_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 DistributionRequest.ProtoReflect.Descriptor instead.
  50. func (*DistributionRequest) Descriptor() ([]byte, []int) {
  51. return file_client_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *DistributionRequest) GetUsers() []int64 {
  54. if x != nil {
  55. return x.Users
  56. }
  57. return nil
  58. }
  59. // HelloResponse 响应内容
  60. type DistributionResponse struct {
  61. state protoimpl.MessageState
  62. sizeCache protoimpl.SizeCache
  63. unknownFields protoimpl.UnknownFields
  64. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  65. }
  66. func (x *DistributionResponse) Reset() {
  67. *x = DistributionResponse{}
  68. if protoimpl.UnsafeEnabled {
  69. mi := &file_client_proto_msgTypes[1]
  70. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  71. ms.StoreMessageInfo(mi)
  72. }
  73. }
  74. func (x *DistributionResponse) String() string {
  75. return protoimpl.X.MessageStringOf(x)
  76. }
  77. func (*DistributionResponse) ProtoMessage() {}
  78. func (x *DistributionResponse) ProtoReflect() protoreflect.Message {
  79. mi := &file_client_proto_msgTypes[1]
  80. if protoimpl.UnsafeEnabled && x != nil {
  81. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  82. if ms.LoadMessageInfo() == nil {
  83. ms.StoreMessageInfo(mi)
  84. }
  85. return ms
  86. }
  87. return mi.MessageOf(x)
  88. }
  89. // Deprecated: Use DistributionResponse.ProtoReflect.Descriptor instead.
  90. func (*DistributionResponse) Descriptor() ([]byte, []int) {
  91. return file_client_proto_rawDescGZIP(), []int{1}
  92. }
  93. func (x *DistributionResponse) GetCode() int64 {
  94. if x != nil {
  95. return x.Code
  96. }
  97. return 0
  98. }
  99. var File_client_proto protoreflect.FileDescriptor
  100. var file_client_proto_rawDesc = []byte{
  101. 0x0a, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2b,
  102. 0x0a, 0x13, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65,
  103. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x55, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01,
  104. 0x20, 0x03, 0x28, 0x03, 0x52, 0x05, 0x55, 0x73, 0x65, 0x72, 0x73, 0x22, 0x2a, 0x0a, 0x14, 0x44,
  105. 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
  106. 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  107. 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x32, 0x4c, 0x0a, 0x0b, 0x53, 0x65, 0x6e, 0x64, 0x4d,
  108. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69,
  109. 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62,
  110. 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x44,
  111. 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
  112. 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x0b, 0x5a, 0x09, 0x2e, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69,
  113. 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  114. }
  115. var (
  116. file_client_proto_rawDescOnce sync.Once
  117. file_client_proto_rawDescData = file_client_proto_rawDesc
  118. )
  119. func file_client_proto_rawDescGZIP() []byte {
  120. file_client_proto_rawDescOnce.Do(func() {
  121. file_client_proto_rawDescData = protoimpl.X.CompressGZIP(file_client_proto_rawDescData)
  122. })
  123. return file_client_proto_rawDescData
  124. }
  125. var file_client_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  126. var file_client_proto_goTypes = []interface{}{
  127. (*DistributionRequest)(nil), // 0: DistributionRequest
  128. (*DistributionResponse)(nil), // 1: DistributionResponse
  129. }
  130. var file_client_proto_depIdxs = []int32{
  131. 0, // 0: SendMessage.Distribution:input_type -> DistributionRequest
  132. 1, // 1: SendMessage.Distribution:output_type -> DistributionResponse
  133. 1, // [1:2] is the sub-list for method output_type
  134. 0, // [0:1] is the sub-list for method input_type
  135. 0, // [0:0] is the sub-list for extension type_name
  136. 0, // [0:0] is the sub-list for extension extendee
  137. 0, // [0:0] is the sub-list for field type_name
  138. }
  139. func init() { file_client_proto_init() }
  140. func file_client_proto_init() {
  141. if File_client_proto != nil {
  142. return
  143. }
  144. if !protoimpl.UnsafeEnabled {
  145. file_client_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  146. switch v := v.(*DistributionRequest); i {
  147. case 0:
  148. return &v.state
  149. case 1:
  150. return &v.sizeCache
  151. case 2:
  152. return &v.unknownFields
  153. default:
  154. return nil
  155. }
  156. }
  157. file_client_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  158. switch v := v.(*DistributionResponse); i {
  159. case 0:
  160. return &v.state
  161. case 1:
  162. return &v.sizeCache
  163. case 2:
  164. return &v.unknownFields
  165. default:
  166. return nil
  167. }
  168. }
  169. }
  170. type x struct{}
  171. out := protoimpl.TypeBuilder{
  172. File: protoimpl.DescBuilder{
  173. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  174. RawDescriptor: file_client_proto_rawDesc,
  175. NumEnums: 0,
  176. NumMessages: 2,
  177. NumExtensions: 0,
  178. NumServices: 1,
  179. },
  180. GoTypes: file_client_proto_goTypes,
  181. DependencyIndexes: file_client_proto_depIdxs,
  182. MessageInfos: file_client_proto_msgTypes,
  183. }.Build()
  184. File_client_proto = out.File
  185. file_client_proto_rawDesc = nil
  186. file_client_proto_goTypes = nil
  187. file_client_proto_depIdxs = nil
  188. }