pasture.pb.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.21.9
  5. // source: backend/operation/pasture.proto
  6. package operationPb
  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. type AddPastureRequest struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  24. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 牧场名称
  25. ManagerUser string `protobuf:"bytes,3,opt,name=manager_user,json=managerUser,proto3" json:"manager_user,omitempty"` // 牧场负责人名称
  26. ManagerPassword string `protobuf:"bytes,4,opt,name=manager_password,json=managerPassword,proto3" json:"manager_password,omitempty"` // 牧场负责人账号
  27. ManagerPhone string `protobuf:"bytes,5,opt,name=manager_phone,json=managerPhone,proto3" json:"manager_phone,omitempty"` // 牧场负责人手机号
  28. Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` // 牧场地址
  29. IsShow IsShow_Kind `protobuf:"varint,7,opt,name=is_show,json=isShow,proto3,enum=backend.operation.IsShow_Kind" json:"is_show,omitempty"` // 是否启用
  30. CreatedAt int64 `protobuf:"varint,8,opt,name=Created_at,json=CreatedAt,proto3" json:"Created_at,omitempty"` // 创建时间
  31. }
  32. func (x *AddPastureRequest) Reset() {
  33. *x = AddPastureRequest{}
  34. if protoimpl.UnsafeEnabled {
  35. mi := &file_backend_operation_pasture_proto_msgTypes[0]
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. ms.StoreMessageInfo(mi)
  38. }
  39. }
  40. func (x *AddPastureRequest) String() string {
  41. return protoimpl.X.MessageStringOf(x)
  42. }
  43. func (*AddPastureRequest) ProtoMessage() {}
  44. func (x *AddPastureRequest) ProtoReflect() protoreflect.Message {
  45. mi := &file_backend_operation_pasture_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 AddPastureRequest.ProtoReflect.Descriptor instead.
  56. func (*AddPastureRequest) Descriptor() ([]byte, []int) {
  57. return file_backend_operation_pasture_proto_rawDescGZIP(), []int{0}
  58. }
  59. func (x *AddPastureRequest) GetId() int64 {
  60. if x != nil {
  61. return x.Id
  62. }
  63. return 0
  64. }
  65. func (x *AddPastureRequest) GetName() string {
  66. if x != nil {
  67. return x.Name
  68. }
  69. return ""
  70. }
  71. func (x *AddPastureRequest) GetManagerUser() string {
  72. if x != nil {
  73. return x.ManagerUser
  74. }
  75. return ""
  76. }
  77. func (x *AddPastureRequest) GetManagerPassword() string {
  78. if x != nil {
  79. return x.ManagerPassword
  80. }
  81. return ""
  82. }
  83. func (x *AddPastureRequest) GetManagerPhone() string {
  84. if x != nil {
  85. return x.ManagerPhone
  86. }
  87. return ""
  88. }
  89. func (x *AddPastureRequest) GetAddress() string {
  90. if x != nil {
  91. return x.Address
  92. }
  93. return ""
  94. }
  95. func (x *AddPastureRequest) GetIsShow() IsShow_Kind {
  96. if x != nil {
  97. return x.IsShow
  98. }
  99. return IsShow_INVALID
  100. }
  101. func (x *AddPastureRequest) GetCreatedAt() int64 {
  102. if x != nil {
  103. return x.CreatedAt
  104. }
  105. return 0
  106. }
  107. type SearchPastureRequest struct {
  108. state protoimpl.MessageState
  109. sizeCache protoimpl.SizeCache
  110. unknownFields protoimpl.UnknownFields
  111. Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` // 第几页,从1开始
  112. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 每页size,一般为20
  113. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // 牧场名称
  114. ManagerUser string `protobuf:"bytes,4,opt,name=manager_user,json=managerUser,proto3" json:"manager_user,omitempty"` // 牧场负责人名称
  115. ManagerPhone string `protobuf:"bytes,5,opt,name=manager_phone,json=managerPhone,proto3" json:"manager_phone,omitempty"` // 牧场负责人手机号
  116. StartTime int64 `protobuf:"varint,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // 开始时间
  117. EndTime int64 `protobuf:"varint,7,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // 结束时间
  118. }
  119. func (x *SearchPastureRequest) Reset() {
  120. *x = SearchPastureRequest{}
  121. if protoimpl.UnsafeEnabled {
  122. mi := &file_backend_operation_pasture_proto_msgTypes[1]
  123. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  124. ms.StoreMessageInfo(mi)
  125. }
  126. }
  127. func (x *SearchPastureRequest) String() string {
  128. return protoimpl.X.MessageStringOf(x)
  129. }
  130. func (*SearchPastureRequest) ProtoMessage() {}
  131. func (x *SearchPastureRequest) ProtoReflect() protoreflect.Message {
  132. mi := &file_backend_operation_pasture_proto_msgTypes[1]
  133. if protoimpl.UnsafeEnabled && x != nil {
  134. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  135. if ms.LoadMessageInfo() == nil {
  136. ms.StoreMessageInfo(mi)
  137. }
  138. return ms
  139. }
  140. return mi.MessageOf(x)
  141. }
  142. // Deprecated: Use SearchPastureRequest.ProtoReflect.Descriptor instead.
  143. func (*SearchPastureRequest) Descriptor() ([]byte, []int) {
  144. return file_backend_operation_pasture_proto_rawDescGZIP(), []int{1}
  145. }
  146. func (x *SearchPastureRequest) GetPage() int32 {
  147. if x != nil {
  148. return x.Page
  149. }
  150. return 0
  151. }
  152. func (x *SearchPastureRequest) GetPageSize() int32 {
  153. if x != nil {
  154. return x.PageSize
  155. }
  156. return 0
  157. }
  158. func (x *SearchPastureRequest) GetName() string {
  159. if x != nil {
  160. return x.Name
  161. }
  162. return ""
  163. }
  164. func (x *SearchPastureRequest) GetManagerUser() string {
  165. if x != nil {
  166. return x.ManagerUser
  167. }
  168. return ""
  169. }
  170. func (x *SearchPastureRequest) GetManagerPhone() string {
  171. if x != nil {
  172. return x.ManagerPhone
  173. }
  174. return ""
  175. }
  176. func (x *SearchPastureRequest) GetStartTime() int64 {
  177. if x != nil {
  178. return x.StartTime
  179. }
  180. return 0
  181. }
  182. func (x *SearchPastureRequest) GetEndTime() int64 {
  183. if x != nil {
  184. return x.EndTime
  185. }
  186. return 0
  187. }
  188. type SearchPastureResponse struct {
  189. state protoimpl.MessageState
  190. sizeCache protoimpl.SizeCache
  191. unknownFields protoimpl.UnknownFields
  192. Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
  193. Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
  194. Data []*AddPastureRequest `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
  195. }
  196. func (x *SearchPastureResponse) Reset() {
  197. *x = SearchPastureResponse{}
  198. if protoimpl.UnsafeEnabled {
  199. mi := &file_backend_operation_pasture_proto_msgTypes[2]
  200. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  201. ms.StoreMessageInfo(mi)
  202. }
  203. }
  204. func (x *SearchPastureResponse) String() string {
  205. return protoimpl.X.MessageStringOf(x)
  206. }
  207. func (*SearchPastureResponse) ProtoMessage() {}
  208. func (x *SearchPastureResponse) ProtoReflect() protoreflect.Message {
  209. mi := &file_backend_operation_pasture_proto_msgTypes[2]
  210. if protoimpl.UnsafeEnabled && x != nil {
  211. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  212. if ms.LoadMessageInfo() == nil {
  213. ms.StoreMessageInfo(mi)
  214. }
  215. return ms
  216. }
  217. return mi.MessageOf(x)
  218. }
  219. // Deprecated: Use SearchPastureResponse.ProtoReflect.Descriptor instead.
  220. func (*SearchPastureResponse) Descriptor() ([]byte, []int) {
  221. return file_backend_operation_pasture_proto_rawDescGZIP(), []int{2}
  222. }
  223. func (x *SearchPastureResponse) GetPage() int32 {
  224. if x != nil {
  225. return x.Page
  226. }
  227. return 0
  228. }
  229. func (x *SearchPastureResponse) GetTotal() int32 {
  230. if x != nil {
  231. return x.Total
  232. }
  233. return 0
  234. }
  235. func (x *SearchPastureResponse) GetData() []*AddPastureRequest {
  236. if x != nil {
  237. return x.Data
  238. }
  239. return nil
  240. }
  241. var File_backend_operation_pasture_proto protoreflect.FileDescriptor
  242. var file_backend_operation_pasture_proto_rawDesc = []byte{
  243. 0x0a, 0x1f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,
  244. 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x61, 0x73, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  245. 0x6f, 0x12, 0x11, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61,
  246. 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1c, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x6f, 0x70,
  247. 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72, 0x6f,
  248. 0x74, 0x6f, 0x22, 0x9c, 0x02, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x50, 0x61, 0x73, 0x74, 0x75, 0x72,
  249. 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
  250. 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
  251. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c,
  252. 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01,
  253. 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x55, 0x73, 0x65, 0x72, 0x12,
  254. 0x29, 0x0a, 0x10, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77,
  255. 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6d, 0x61, 0x6e, 0x61, 0x67,
  256. 0x65, 0x72, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61,
  257. 0x6e, 0x61, 0x67, 0x65, 0x72, 0x5f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
  258. 0x09, 0x52, 0x0c, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12,
  259. 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
  260. 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x37, 0x0a, 0x07, 0x69, 0x73, 0x5f,
  261. 0x73, 0x68, 0x6f, 0x77, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x63,
  262. 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x49,
  263. 0x73, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x06, 0x69, 0x73, 0x53, 0x68,
  264. 0x6f, 0x77, 0x12, 0x1d, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74,
  265. 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41,
  266. 0x74, 0x22, 0xdd, 0x01, 0x0a, 0x14, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x61, 0x73, 0x74,
  267. 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61,
  268. 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1b,
  269. 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  270. 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e,
  271. 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
  272. 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18,
  273. 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x55, 0x73,
  274. 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x5f, 0x70, 0x68,
  275. 0x6f, 0x6e, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x61, 0x6e, 0x61, 0x67,
  276. 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74,
  277. 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61,
  278. 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69,
  279. 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d,
  280. 0x65, 0x22, 0x7b, 0x0a, 0x15, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x61, 0x73, 0x74, 0x75,
  281. 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61,
  282. 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x14,
  283. 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74,
  284. 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x38, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03,
  285. 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65,
  286. 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x61, 0x73, 0x74, 0x75, 0x72,
  287. 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x0f,
  288. 0x5a, 0x0d, 0x2e, 0x3b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x62, 0x62,
  289. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  290. }
  291. var (
  292. file_backend_operation_pasture_proto_rawDescOnce sync.Once
  293. file_backend_operation_pasture_proto_rawDescData = file_backend_operation_pasture_proto_rawDesc
  294. )
  295. func file_backend_operation_pasture_proto_rawDescGZIP() []byte {
  296. file_backend_operation_pasture_proto_rawDescOnce.Do(func() {
  297. file_backend_operation_pasture_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_operation_pasture_proto_rawDescData)
  298. })
  299. return file_backend_operation_pasture_proto_rawDescData
  300. }
  301. var file_backend_operation_pasture_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  302. var file_backend_operation_pasture_proto_goTypes = []interface{}{
  303. (*AddPastureRequest)(nil), // 0: backend.operation.AddPastureRequest
  304. (*SearchPastureRequest)(nil), // 1: backend.operation.SearchPastureRequest
  305. (*SearchPastureResponse)(nil), // 2: backend.operation.SearchPastureResponse
  306. (IsShow_Kind)(0), // 3: backend.operation.IsShow.Kind
  307. }
  308. var file_backend_operation_pasture_proto_depIdxs = []int32{
  309. 3, // 0: backend.operation.AddPastureRequest.is_show:type_name -> backend.operation.IsShow.Kind
  310. 0, // 1: backend.operation.SearchPastureResponse.data:type_name -> backend.operation.AddPastureRequest
  311. 2, // [2:2] is the sub-list for method output_type
  312. 2, // [2:2] is the sub-list for method input_type
  313. 2, // [2:2] is the sub-list for extension type_name
  314. 2, // [2:2] is the sub-list for extension extendee
  315. 0, // [0:2] is the sub-list for field type_name
  316. }
  317. func init() { file_backend_operation_pasture_proto_init() }
  318. func file_backend_operation_pasture_proto_init() {
  319. if File_backend_operation_pasture_proto != nil {
  320. return
  321. }
  322. file_backend_operation_enum_proto_init()
  323. if !protoimpl.UnsafeEnabled {
  324. file_backend_operation_pasture_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  325. switch v := v.(*AddPastureRequest); i {
  326. case 0:
  327. return &v.state
  328. case 1:
  329. return &v.sizeCache
  330. case 2:
  331. return &v.unknownFields
  332. default:
  333. return nil
  334. }
  335. }
  336. file_backend_operation_pasture_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  337. switch v := v.(*SearchPastureRequest); i {
  338. case 0:
  339. return &v.state
  340. case 1:
  341. return &v.sizeCache
  342. case 2:
  343. return &v.unknownFields
  344. default:
  345. return nil
  346. }
  347. }
  348. file_backend_operation_pasture_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  349. switch v := v.(*SearchPastureResponse); i {
  350. case 0:
  351. return &v.state
  352. case 1:
  353. return &v.sizeCache
  354. case 2:
  355. return &v.unknownFields
  356. default:
  357. return nil
  358. }
  359. }
  360. }
  361. type x struct{}
  362. out := protoimpl.TypeBuilder{
  363. File: protoimpl.DescBuilder{
  364. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  365. RawDescriptor: file_backend_operation_pasture_proto_rawDesc,
  366. NumEnums: 0,
  367. NumMessages: 3,
  368. NumExtensions: 0,
  369. NumServices: 0,
  370. },
  371. GoTypes: file_backend_operation_pasture_proto_goTypes,
  372. DependencyIndexes: file_backend_operation_pasture_proto_depIdxs,
  373. MessageInfos: file_backend_operation_pasture_proto_msgTypes,
  374. }.Build()
  375. File_backend_operation_pasture_proto = out.File
  376. file_backend_operation_pasture_proto_rawDesc = nil
  377. file_backend_operation_pasture_proto_goTypes = nil
  378. file_backend_operation_pasture_proto_depIdxs = nil
  379. }