enum.pb.go 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  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/enum.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 IsShow_Kind int32
  20. const (
  21. IsShow_INVALID IsShow_Kind = 0 // 无效
  22. IsShow_OK IsShow_Kind = 1 // 是
  23. IsShow_NO IsShow_Kind = 2 // 否
  24. )
  25. // Enum value maps for IsShow_Kind.
  26. var (
  27. IsShow_Kind_name = map[int32]string{
  28. 0: "INVALID",
  29. 1: "OK",
  30. 2: "NO",
  31. }
  32. IsShow_Kind_value = map[string]int32{
  33. "INVALID": 0,
  34. "OK": 1,
  35. "NO": 2,
  36. }
  37. )
  38. func (x IsShow_Kind) Enum() *IsShow_Kind {
  39. p := new(IsShow_Kind)
  40. *p = x
  41. return p
  42. }
  43. func (x IsShow_Kind) String() string {
  44. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  45. }
  46. func (IsShow_Kind) Descriptor() protoreflect.EnumDescriptor {
  47. return file_backend_operation_enum_proto_enumTypes[0].Descriptor()
  48. }
  49. func (IsShow_Kind) Type() protoreflect.EnumType {
  50. return &file_backend_operation_enum_proto_enumTypes[0]
  51. }
  52. func (x IsShow_Kind) Number() protoreflect.EnumNumber {
  53. return protoreflect.EnumNumber(x)
  54. }
  55. // Deprecated: Use IsShow_Kind.Descriptor instead.
  56. func (IsShow_Kind) EnumDescriptor() ([]byte, []int) {
  57. return file_backend_operation_enum_proto_rawDescGZIP(), []int{0, 0}
  58. }
  59. type CattleCategoryParent_Kind int32
  60. const (
  61. CattleCategoryParent_INVALID CattleCategoryParent_Kind = 0 // 无效
  62. CattleCategoryParent_LACTATION_CAW CattleCategoryParent_Kind = 1 // 泌乳牛
  63. CattleCategoryParent_FATTEN_CAW CattleCategoryParent_Kind = 2 // 育肥牛
  64. CattleCategoryParent_RESERVE_CAW CattleCategoryParent_Kind = 3 // 后备牛
  65. CattleCategoryParent_DRY_CAW CattleCategoryParent_Kind = 4 // 干奶牛
  66. CattleCategoryParent_PERINATAL_CAW CattleCategoryParent_Kind = 5 // 泌乳牛
  67. CattleCategoryParent_OTHER_CAW CattleCategoryParent_Kind = 6 // 其他
  68. )
  69. // Enum value maps for CattleCategoryParent_Kind.
  70. var (
  71. CattleCategoryParent_Kind_name = map[int32]string{
  72. 0: "INVALID",
  73. 1: "LACTATION_CAW",
  74. 2: "FATTEN_CAW",
  75. 3: "RESERVE_CAW",
  76. 4: "DRY_CAW",
  77. 5: "PERINATAL_CAW",
  78. 6: "OTHER_CAW",
  79. }
  80. CattleCategoryParent_Kind_value = map[string]int32{
  81. "INVALID": 0,
  82. "LACTATION_CAW": 1,
  83. "FATTEN_CAW": 2,
  84. "RESERVE_CAW": 3,
  85. "DRY_CAW": 4,
  86. "PERINATAL_CAW": 5,
  87. "OTHER_CAW": 6,
  88. }
  89. )
  90. func (x CattleCategoryParent_Kind) Enum() *CattleCategoryParent_Kind {
  91. p := new(CattleCategoryParent_Kind)
  92. *p = x
  93. return p
  94. }
  95. func (x CattleCategoryParent_Kind) String() string {
  96. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  97. }
  98. func (CattleCategoryParent_Kind) Descriptor() protoreflect.EnumDescriptor {
  99. return file_backend_operation_enum_proto_enumTypes[1].Descriptor()
  100. }
  101. func (CattleCategoryParent_Kind) Type() protoreflect.EnumType {
  102. return &file_backend_operation_enum_proto_enumTypes[1]
  103. }
  104. func (x CattleCategoryParent_Kind) Number() protoreflect.EnumNumber {
  105. return protoreflect.EnumNumber(x)
  106. }
  107. // Deprecated: Use CattleCategoryParent_Kind.Descriptor instead.
  108. func (CattleCategoryParent_Kind) EnumDescriptor() ([]byte, []int) {
  109. return file_backend_operation_enum_proto_rawDescGZIP(), []int{1, 0}
  110. }
  111. // 字段类型
  112. type IsShow struct {
  113. state protoimpl.MessageState
  114. sizeCache protoimpl.SizeCache
  115. unknownFields protoimpl.UnknownFields
  116. }
  117. func (x *IsShow) Reset() {
  118. *x = IsShow{}
  119. if protoimpl.UnsafeEnabled {
  120. mi := &file_backend_operation_enum_proto_msgTypes[0]
  121. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  122. ms.StoreMessageInfo(mi)
  123. }
  124. }
  125. func (x *IsShow) String() string {
  126. return protoimpl.X.MessageStringOf(x)
  127. }
  128. func (*IsShow) ProtoMessage() {}
  129. func (x *IsShow) ProtoReflect() protoreflect.Message {
  130. mi := &file_backend_operation_enum_proto_msgTypes[0]
  131. if protoimpl.UnsafeEnabled && x != nil {
  132. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  133. if ms.LoadMessageInfo() == nil {
  134. ms.StoreMessageInfo(mi)
  135. }
  136. return ms
  137. }
  138. return mi.MessageOf(x)
  139. }
  140. // Deprecated: Use IsShow.ProtoReflect.Descriptor instead.
  141. func (*IsShow) Descriptor() ([]byte, []int) {
  142. return file_backend_operation_enum_proto_rawDescGZIP(), []int{0}
  143. }
  144. type CattleCategoryParent struct {
  145. state protoimpl.MessageState
  146. sizeCache protoimpl.SizeCache
  147. unknownFields protoimpl.UnknownFields
  148. }
  149. func (x *CattleCategoryParent) Reset() {
  150. *x = CattleCategoryParent{}
  151. if protoimpl.UnsafeEnabled {
  152. mi := &file_backend_operation_enum_proto_msgTypes[1]
  153. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  154. ms.StoreMessageInfo(mi)
  155. }
  156. }
  157. func (x *CattleCategoryParent) String() string {
  158. return protoimpl.X.MessageStringOf(x)
  159. }
  160. func (*CattleCategoryParent) ProtoMessage() {}
  161. func (x *CattleCategoryParent) ProtoReflect() protoreflect.Message {
  162. mi := &file_backend_operation_enum_proto_msgTypes[1]
  163. if protoimpl.UnsafeEnabled && x != nil {
  164. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  165. if ms.LoadMessageInfo() == nil {
  166. ms.StoreMessageInfo(mi)
  167. }
  168. return ms
  169. }
  170. return mi.MessageOf(x)
  171. }
  172. // Deprecated: Use CattleCategoryParent.ProtoReflect.Descriptor instead.
  173. func (*CattleCategoryParent) Descriptor() ([]byte, []int) {
  174. return file_backend_operation_enum_proto_rawDescGZIP(), []int{1}
  175. }
  176. var File_backend_operation_enum_proto protoreflect.FileDescriptor
  177. var file_backend_operation_enum_proto_rawDesc = []byte{
  178. 0x0a, 0x1c, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,
  179. 0x69, 0x6f, 0x6e, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11,
  180. 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
  181. 0x6e, 0x22, 0x2d, 0x0a, 0x06, 0x49, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x22, 0x23, 0x0a, 0x04, 0x4b,
  182. 0x69, 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00,
  183. 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02, 0x4e, 0x4f, 0x10, 0x02,
  184. 0x22, 0x8e, 0x01, 0x0a, 0x14, 0x43, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67,
  185. 0x6f, 0x72, 0x79, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22, 0x76, 0x0a, 0x04, 0x4b, 0x69, 0x6e,
  186. 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x11,
  187. 0x0a, 0x0d, 0x4c, 0x41, 0x43, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x41, 0x57, 0x10,
  188. 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x46, 0x41, 0x54, 0x54, 0x45, 0x4e, 0x5f, 0x43, 0x41, 0x57, 0x10,
  189. 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45, 0x5f, 0x43, 0x41, 0x57,
  190. 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x52, 0x59, 0x5f, 0x43, 0x41, 0x57, 0x10, 0x04, 0x12,
  191. 0x11, 0x0a, 0x0d, 0x50, 0x45, 0x52, 0x49, 0x4e, 0x41, 0x54, 0x41, 0x4c, 0x5f, 0x43, 0x41, 0x57,
  192. 0x10, 0x05, 0x12, 0x0d, 0x0a, 0x09, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x5f, 0x43, 0x41, 0x57, 0x10,
  193. 0x06, 0x42, 0x0f, 0x5a, 0x0d, 0x2e, 0x3b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
  194. 0x50, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  195. }
  196. var (
  197. file_backend_operation_enum_proto_rawDescOnce sync.Once
  198. file_backend_operation_enum_proto_rawDescData = file_backend_operation_enum_proto_rawDesc
  199. )
  200. func file_backend_operation_enum_proto_rawDescGZIP() []byte {
  201. file_backend_operation_enum_proto_rawDescOnce.Do(func() {
  202. file_backend_operation_enum_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_operation_enum_proto_rawDescData)
  203. })
  204. return file_backend_operation_enum_proto_rawDescData
  205. }
  206. var file_backend_operation_enum_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  207. var file_backend_operation_enum_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  208. var file_backend_operation_enum_proto_goTypes = []interface{}{
  209. (IsShow_Kind)(0), // 0: backend.operation.IsShow.Kind
  210. (CattleCategoryParent_Kind)(0), // 1: backend.operation.CattleCategoryParent.Kind
  211. (*IsShow)(nil), // 2: backend.operation.IsShow
  212. (*CattleCategoryParent)(nil), // 3: backend.operation.CattleCategoryParent
  213. }
  214. var file_backend_operation_enum_proto_depIdxs = []int32{
  215. 0, // [0:0] is the sub-list for method output_type
  216. 0, // [0:0] is the sub-list for method input_type
  217. 0, // [0:0] is the sub-list for extension type_name
  218. 0, // [0:0] is the sub-list for extension extendee
  219. 0, // [0:0] is the sub-list for field type_name
  220. }
  221. func init() { file_backend_operation_enum_proto_init() }
  222. func file_backend_operation_enum_proto_init() {
  223. if File_backend_operation_enum_proto != nil {
  224. return
  225. }
  226. if !protoimpl.UnsafeEnabled {
  227. file_backend_operation_enum_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  228. switch v := v.(*IsShow); i {
  229. case 0:
  230. return &v.state
  231. case 1:
  232. return &v.sizeCache
  233. case 2:
  234. return &v.unknownFields
  235. default:
  236. return nil
  237. }
  238. }
  239. file_backend_operation_enum_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  240. switch v := v.(*CattleCategoryParent); i {
  241. case 0:
  242. return &v.state
  243. case 1:
  244. return &v.sizeCache
  245. case 2:
  246. return &v.unknownFields
  247. default:
  248. return nil
  249. }
  250. }
  251. }
  252. type x struct{}
  253. out := protoimpl.TypeBuilder{
  254. File: protoimpl.DescBuilder{
  255. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  256. RawDescriptor: file_backend_operation_enum_proto_rawDesc,
  257. NumEnums: 2,
  258. NumMessages: 2,
  259. NumExtensions: 0,
  260. NumServices: 0,
  261. },
  262. GoTypes: file_backend_operation_enum_proto_goTypes,
  263. DependencyIndexes: file_backend_operation_enum_proto_depIdxs,
  264. EnumInfos: file_backend_operation_enum_proto_enumTypes,
  265. MessageInfos: file_backend_operation_enum_proto_msgTypes,
  266. }.Build()
  267. File_backend_operation_enum_proto = out.File
  268. file_backend_operation_enum_proto_rawDesc = nil
  269. file_backend_operation_enum_proto_goTypes = nil
  270. file_backend_operation_enum_proto_depIdxs = nil
  271. }