123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.28.1
- // protoc v3.21.9
- // source: backend/operation/enum.proto
- package operationPb
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- type IsShow_Kind int32
- const (
- IsShow_INVALID IsShow_Kind = 0 // 无效
- IsShow_OK IsShow_Kind = 1 // 是
- IsShow_NO IsShow_Kind = 2 // 否
- )
- // Enum value maps for IsShow_Kind.
- var (
- IsShow_Kind_name = map[int32]string{
- 0: "INVALID",
- 1: "OK",
- 2: "NO",
- }
- IsShow_Kind_value = map[string]int32{
- "INVALID": 0,
- "OK": 1,
- "NO": 2,
- }
- )
- func (x IsShow_Kind) Enum() *IsShow_Kind {
- p := new(IsShow_Kind)
- *p = x
- return p
- }
- func (x IsShow_Kind) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (IsShow_Kind) Descriptor() protoreflect.EnumDescriptor {
- return file_backend_operation_enum_proto_enumTypes[0].Descriptor()
- }
- func (IsShow_Kind) Type() protoreflect.EnumType {
- return &file_backend_operation_enum_proto_enumTypes[0]
- }
- func (x IsShow_Kind) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use IsShow_Kind.Descriptor instead.
- func (IsShow_Kind) EnumDescriptor() ([]byte, []int) {
- return file_backend_operation_enum_proto_rawDescGZIP(), []int{0, 0}
- }
- type CattleCategoryParent_Kind int32
- const (
- CattleCategoryParent_INVALID CattleCategoryParent_Kind = 0 // 无效
- CattleCategoryParent_LACTATION_CAW CattleCategoryParent_Kind = 1 // 泌乳牛
- CattleCategoryParent_FATTEN_CAW CattleCategoryParent_Kind = 2 // 育肥牛
- CattleCategoryParent_RESERVE_CAW CattleCategoryParent_Kind = 3 // 后备牛
- CattleCategoryParent_DRY_CAW CattleCategoryParent_Kind = 4 // 干奶牛
- CattleCategoryParent_PERINATAL_CAW CattleCategoryParent_Kind = 5 // 泌乳牛
- CattleCategoryParent_OTHER_CAW CattleCategoryParent_Kind = 6 // 其他
- )
- // Enum value maps for CattleCategoryParent_Kind.
- var (
- CattleCategoryParent_Kind_name = map[int32]string{
- 0: "INVALID",
- 1: "LACTATION_CAW",
- 2: "FATTEN_CAW",
- 3: "RESERVE_CAW",
- 4: "DRY_CAW",
- 5: "PERINATAL_CAW",
- 6: "OTHER_CAW",
- }
- CattleCategoryParent_Kind_value = map[string]int32{
- "INVALID": 0,
- "LACTATION_CAW": 1,
- "FATTEN_CAW": 2,
- "RESERVE_CAW": 3,
- "DRY_CAW": 4,
- "PERINATAL_CAW": 5,
- "OTHER_CAW": 6,
- }
- )
- func (x CattleCategoryParent_Kind) Enum() *CattleCategoryParent_Kind {
- p := new(CattleCategoryParent_Kind)
- *p = x
- return p
- }
- func (x CattleCategoryParent_Kind) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (CattleCategoryParent_Kind) Descriptor() protoreflect.EnumDescriptor {
- return file_backend_operation_enum_proto_enumTypes[1].Descriptor()
- }
- func (CattleCategoryParent_Kind) Type() protoreflect.EnumType {
- return &file_backend_operation_enum_proto_enumTypes[1]
- }
- func (x CattleCategoryParent_Kind) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use CattleCategoryParent_Kind.Descriptor instead.
- func (CattleCategoryParent_Kind) EnumDescriptor() ([]byte, []int) {
- return file_backend_operation_enum_proto_rawDescGZIP(), []int{1, 0}
- }
- // 字段类型
- type IsShow struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *IsShow) Reset() {
- *x = IsShow{}
- if protoimpl.UnsafeEnabled {
- mi := &file_backend_operation_enum_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *IsShow) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*IsShow) ProtoMessage() {}
- func (x *IsShow) ProtoReflect() protoreflect.Message {
- mi := &file_backend_operation_enum_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use IsShow.ProtoReflect.Descriptor instead.
- func (*IsShow) Descriptor() ([]byte, []int) {
- return file_backend_operation_enum_proto_rawDescGZIP(), []int{0}
- }
- type CattleCategoryParent struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *CattleCategoryParent) Reset() {
- *x = CattleCategoryParent{}
- if protoimpl.UnsafeEnabled {
- mi := &file_backend_operation_enum_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CattleCategoryParent) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CattleCategoryParent) ProtoMessage() {}
- func (x *CattleCategoryParent) ProtoReflect() protoreflect.Message {
- mi := &file_backend_operation_enum_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use CattleCategoryParent.ProtoReflect.Descriptor instead.
- func (*CattleCategoryParent) Descriptor() ([]byte, []int) {
- return file_backend_operation_enum_proto_rawDescGZIP(), []int{1}
- }
- var File_backend_operation_enum_proto protoreflect.FileDescriptor
- var file_backend_operation_enum_proto_rawDesc = []byte{
- 0x0a, 0x1c, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,
- 0x69, 0x6f, 0x6e, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11,
- 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
- 0x6e, 0x22, 0x2d, 0x0a, 0x06, 0x49, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x22, 0x23, 0x0a, 0x04, 0x4b,
- 0x69, 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00,
- 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02, 0x4e, 0x4f, 0x10, 0x02,
- 0x22, 0x8e, 0x01, 0x0a, 0x14, 0x43, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67,
- 0x6f, 0x72, 0x79, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22, 0x76, 0x0a, 0x04, 0x4b, 0x69, 0x6e,
- 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x11,
- 0x0a, 0x0d, 0x4c, 0x41, 0x43, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x41, 0x57, 0x10,
- 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x46, 0x41, 0x54, 0x54, 0x45, 0x4e, 0x5f, 0x43, 0x41, 0x57, 0x10,
- 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45, 0x5f, 0x43, 0x41, 0x57,
- 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x52, 0x59, 0x5f, 0x43, 0x41, 0x57, 0x10, 0x04, 0x12,
- 0x11, 0x0a, 0x0d, 0x50, 0x45, 0x52, 0x49, 0x4e, 0x41, 0x54, 0x41, 0x4c, 0x5f, 0x43, 0x41, 0x57,
- 0x10, 0x05, 0x12, 0x0d, 0x0a, 0x09, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x5f, 0x43, 0x41, 0x57, 0x10,
- 0x06, 0x42, 0x0f, 0x5a, 0x0d, 0x2e, 0x3b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
- 0x50, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_backend_operation_enum_proto_rawDescOnce sync.Once
- file_backend_operation_enum_proto_rawDescData = file_backend_operation_enum_proto_rawDesc
- )
- func file_backend_operation_enum_proto_rawDescGZIP() []byte {
- file_backend_operation_enum_proto_rawDescOnce.Do(func() {
- file_backend_operation_enum_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_operation_enum_proto_rawDescData)
- })
- return file_backend_operation_enum_proto_rawDescData
- }
- var file_backend_operation_enum_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
- var file_backend_operation_enum_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
- var file_backend_operation_enum_proto_goTypes = []interface{}{
- (IsShow_Kind)(0), // 0: backend.operation.IsShow.Kind
- (CattleCategoryParent_Kind)(0), // 1: backend.operation.CattleCategoryParent.Kind
- (*IsShow)(nil), // 2: backend.operation.IsShow
- (*CattleCategoryParent)(nil), // 3: backend.operation.CattleCategoryParent
- }
- var file_backend_operation_enum_proto_depIdxs = []int32{
- 0, // [0:0] is the sub-list for method output_type
- 0, // [0:0] is the sub-list for method input_type
- 0, // [0:0] is the sub-list for extension type_name
- 0, // [0:0] is the sub-list for extension extendee
- 0, // [0:0] is the sub-list for field type_name
- }
- func init() { file_backend_operation_enum_proto_init() }
- func file_backend_operation_enum_proto_init() {
- if File_backend_operation_enum_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_backend_operation_enum_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*IsShow); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_backend_operation_enum_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CattleCategoryParent); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_backend_operation_enum_proto_rawDesc,
- NumEnums: 2,
- NumMessages: 2,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_backend_operation_enum_proto_goTypes,
- DependencyIndexes: file_backend_operation_enum_proto_depIdxs,
- EnumInfos: file_backend_operation_enum_proto_enumTypes,
- MessageInfos: file_backend_operation_enum_proto_msgTypes,
- }.Build()
- File_backend_operation_enum_proto = out.File
- file_backend_operation_enum_proto_rawDesc = nil
- file_backend_operation_enum_proto_goTypes = nil
- file_backend_operation_enum_proto_depIdxs = nil
- }
|