github.com/infraboard/keyauth@v0.8.1/common/types/types.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: common/types/types.proto 6 7 package types 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 UpdateMode int32 24 25 const ( 26 UpdateMode_PUT UpdateMode = 0 27 UpdateMode_PATCH UpdateMode = 1 28 ) 29 30 // Enum value maps for UpdateMode. 31 var ( 32 UpdateMode_name = map[int32]string{ 33 0: "PUT", 34 1: "PATCH", 35 } 36 UpdateMode_value = map[string]int32{ 37 "PUT": 0, 38 "PATCH": 1, 39 } 40 ) 41 42 func (x UpdateMode) Enum() *UpdateMode { 43 p := new(UpdateMode) 44 *p = x 45 return p 46 } 47 48 func (x UpdateMode) String() string { 49 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 50 } 51 52 func (UpdateMode) Descriptor() protoreflect.EnumDescriptor { 53 return file_common_types_types_proto_enumTypes[0].Descriptor() 54 } 55 56 func (UpdateMode) Type() protoreflect.EnumType { 57 return &file_common_types_types_proto_enumTypes[0] 58 } 59 60 func (x UpdateMode) Number() protoreflect.EnumNumber { 61 return protoreflect.EnumNumber(x) 62 } 63 64 // Deprecated: Use UpdateMode.Descriptor instead. 65 func (UpdateMode) EnumDescriptor() ([]byte, []int) { 66 return file_common_types_types_proto_rawDescGZIP(), []int{0} 67 } 68 69 var File_common_types_types_proto protoreflect.FileDescriptor 70 71 var file_common_types_types_proto_rawDesc = []byte{ 72 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 73 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x69, 0x6e, 0x66, 0x72, 74 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x74, 75 0x79, 0x70, 0x65, 0x73, 0x2a, 0x20, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 76 0x64, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x55, 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x50, 77 0x41, 0x54, 0x43, 0x48, 0x10, 0x01, 0x42, 0x2c, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 78 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 79 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x74, 80 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 81 } 82 83 var ( 84 file_common_types_types_proto_rawDescOnce sync.Once 85 file_common_types_types_proto_rawDescData = file_common_types_types_proto_rawDesc 86 ) 87 88 func file_common_types_types_proto_rawDescGZIP() []byte { 89 file_common_types_types_proto_rawDescOnce.Do(func() { 90 file_common_types_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_types_types_proto_rawDescData) 91 }) 92 return file_common_types_types_proto_rawDescData 93 } 94 95 var file_common_types_types_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 96 var file_common_types_types_proto_goTypes = []interface{}{ 97 (UpdateMode)(0), // 0: infraboard.keyauth.types.UpdateMode 98 } 99 var file_common_types_types_proto_depIdxs = []int32{ 100 0, // [0:0] is the sub-list for method output_type 101 0, // [0:0] is the sub-list for method input_type 102 0, // [0:0] is the sub-list for extension type_name 103 0, // [0:0] is the sub-list for extension extendee 104 0, // [0:0] is the sub-list for field type_name 105 } 106 107 func init() { file_common_types_types_proto_init() } 108 func file_common_types_types_proto_init() { 109 if File_common_types_types_proto != nil { 110 return 111 } 112 type x struct{} 113 out := protoimpl.TypeBuilder{ 114 File: protoimpl.DescBuilder{ 115 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 116 RawDescriptor: file_common_types_types_proto_rawDesc, 117 NumEnums: 1, 118 NumMessages: 0, 119 NumExtensions: 0, 120 NumServices: 0, 121 }, 122 GoTypes: file_common_types_types_proto_goTypes, 123 DependencyIndexes: file_common_types_types_proto_depIdxs, 124 EnumInfos: file_common_types_types_proto_enumTypes, 125 }.Build() 126 File_common_types_types_proto = out.File 127 file_common_types_types_proto_rawDesc = nil 128 file_common_types_types_proto_goTypes = nil 129 file_common_types_types_proto_depIdxs = nil 130 }