github.com/infraboard/keyauth@v0.8.1/apps/policy/enum.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.19.1 5 // source: apps/policy/pb/enum.proto 6 7 package policy 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 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 23 type PolicyType int32 24 25 const ( 26 PolicyType_NULL PolicyType = 0 27 // CustomPolicy (custom) 用户自己定义的策略 28 PolicyType_CUSTOM PolicyType = 1 29 // BuildInPolicy (build_in) 系统内部逻辑, 不允许用户看到并修改 30 PolicyType_BUILD_IN PolicyType = 2 31 ) 32 33 // Enum value maps for PolicyType. 34 var ( 35 PolicyType_name = map[int32]string{ 36 0: "NULL", 37 1: "CUSTOM", 38 2: "BUILD_IN", 39 } 40 PolicyType_value = map[string]int32{ 41 "NULL": 0, 42 "CUSTOM": 1, 43 "BUILD_IN": 2, 44 } 45 ) 46 47 func (x PolicyType) Enum() *PolicyType { 48 p := new(PolicyType) 49 *p = x 50 return p 51 } 52 53 func (x PolicyType) String() string { 54 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 55 } 56 57 func (PolicyType) Descriptor() protoreflect.EnumDescriptor { 58 return file_apps_policy_pb_enum_proto_enumTypes[0].Descriptor() 59 } 60 61 func (PolicyType) Type() protoreflect.EnumType { 62 return &file_apps_policy_pb_enum_proto_enumTypes[0] 63 } 64 65 func (x PolicyType) Number() protoreflect.EnumNumber { 66 return protoreflect.EnumNumber(x) 67 } 68 69 // Deprecated: Use PolicyType.Descriptor instead. 70 func (PolicyType) EnumDescriptor() ([]byte, []int) { 71 return file_apps_policy_pb_enum_proto_rawDescGZIP(), []int{0} 72 } 73 74 var File_apps_policy_pb_enum_proto protoreflect.FileDescriptor 75 76 var file_apps_policy_pb_enum_proto_rawDesc = []byte{ 77 0x0a, 0x19, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2f, 0x70, 0x62, 78 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x69, 0x6e, 0x66, 79 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 80 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2a, 0x30, 0x0a, 0x0a, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 81 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x55, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x0a, 82 0x0a, 0x06, 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x55, 83 0x49, 0x4c, 0x44, 0x5f, 0x49, 0x4e, 0x10, 0x02, 0x42, 0x2b, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 84 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 85 0x64, 0x2f, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x70, 86 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 87 } 88 89 var ( 90 file_apps_policy_pb_enum_proto_rawDescOnce sync.Once 91 file_apps_policy_pb_enum_proto_rawDescData = file_apps_policy_pb_enum_proto_rawDesc 92 ) 93 94 func file_apps_policy_pb_enum_proto_rawDescGZIP() []byte { 95 file_apps_policy_pb_enum_proto_rawDescOnce.Do(func() { 96 file_apps_policy_pb_enum_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_policy_pb_enum_proto_rawDescData) 97 }) 98 return file_apps_policy_pb_enum_proto_rawDescData 99 } 100 101 var file_apps_policy_pb_enum_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 102 var file_apps_policy_pb_enum_proto_goTypes = []interface{}{ 103 (PolicyType)(0), // 0: infraboard.keyauth.policy.PolicyType 104 } 105 var file_apps_policy_pb_enum_proto_depIdxs = []int32{ 106 0, // [0:0] is the sub-list for method output_type 107 0, // [0:0] is the sub-list for method input_type 108 0, // [0:0] is the sub-list for extension type_name 109 0, // [0:0] is the sub-list for extension extendee 110 0, // [0:0] is the sub-list for field type_name 111 } 112 113 func init() { file_apps_policy_pb_enum_proto_init() } 114 func file_apps_policy_pb_enum_proto_init() { 115 if File_apps_policy_pb_enum_proto != nil { 116 return 117 } 118 type x struct{} 119 out := protoimpl.TypeBuilder{ 120 File: protoimpl.DescBuilder{ 121 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 122 RawDescriptor: file_apps_policy_pb_enum_proto_rawDesc, 123 NumEnums: 1, 124 NumMessages: 0, 125 NumExtensions: 0, 126 NumServices: 0, 127 }, 128 GoTypes: file_apps_policy_pb_enum_proto_goTypes, 129 DependencyIndexes: file_apps_policy_pb_enum_proto_depIdxs, 130 EnumInfos: file_apps_policy_pb_enum_proto_enumTypes, 131 }.Build() 132 File_apps_policy_pb_enum_proto = out.File 133 file_apps_policy_pb_enum_proto_rawDesc = nil 134 file_apps_policy_pb_enum_proto_goTypes = nil 135 file_apps_policy_pb_enum_proto_depIdxs = nil 136 }