github.com/imannamdari/v2ray-core/v5@v5.0.5/common/protocol/headers.pb.go (about) 1 package protocol 2 3 import ( 4 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 5 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 6 reflect "reflect" 7 sync "sync" 8 ) 9 10 const ( 11 // Verify that this generated code is sufficiently up-to-date. 12 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 13 // Verify that runtime/protoimpl is sufficiently up-to-date. 14 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 15 ) 16 17 type SecurityType int32 18 19 const ( 20 SecurityType_UNKNOWN SecurityType = 0 21 SecurityType_LEGACY SecurityType = 1 22 SecurityType_AUTO SecurityType = 2 23 SecurityType_AES128_GCM SecurityType = 3 24 SecurityType_CHACHA20_POLY1305 SecurityType = 4 25 SecurityType_NONE SecurityType = 5 26 SecurityType_ZERO SecurityType = 6 27 ) 28 29 // Enum value maps for SecurityType. 30 var ( 31 SecurityType_name = map[int32]string{ 32 0: "UNKNOWN", 33 1: "LEGACY", 34 2: "AUTO", 35 3: "AES128_GCM", 36 4: "CHACHA20_POLY1305", 37 5: "NONE", 38 6: "ZERO", 39 } 40 SecurityType_value = map[string]int32{ 41 "UNKNOWN": 0, 42 "LEGACY": 1, 43 "AUTO": 2, 44 "AES128_GCM": 3, 45 "CHACHA20_POLY1305": 4, 46 "NONE": 5, 47 "ZERO": 6, 48 } 49 ) 50 51 func (x SecurityType) Enum() *SecurityType { 52 p := new(SecurityType) 53 *p = x 54 return p 55 } 56 57 func (x SecurityType) String() string { 58 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 59 } 60 61 func (SecurityType) Descriptor() protoreflect.EnumDescriptor { 62 return file_common_protocol_headers_proto_enumTypes[0].Descriptor() 63 } 64 65 func (SecurityType) Type() protoreflect.EnumType { 66 return &file_common_protocol_headers_proto_enumTypes[0] 67 } 68 69 func (x SecurityType) Number() protoreflect.EnumNumber { 70 return protoreflect.EnumNumber(x) 71 } 72 73 // Deprecated: Use SecurityType.Descriptor instead. 74 func (SecurityType) EnumDescriptor() ([]byte, []int) { 75 return file_common_protocol_headers_proto_rawDescGZIP(), []int{0} 76 } 77 78 type SecurityConfig struct { 79 state protoimpl.MessageState 80 sizeCache protoimpl.SizeCache 81 unknownFields protoimpl.UnknownFields 82 83 Type SecurityType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.common.protocol.SecurityType" json:"type,omitempty"` 84 } 85 86 func (x *SecurityConfig) Reset() { 87 *x = SecurityConfig{} 88 if protoimpl.UnsafeEnabled { 89 mi := &file_common_protocol_headers_proto_msgTypes[0] 90 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 91 ms.StoreMessageInfo(mi) 92 } 93 } 94 95 func (x *SecurityConfig) String() string { 96 return protoimpl.X.MessageStringOf(x) 97 } 98 99 func (*SecurityConfig) ProtoMessage() {} 100 101 func (x *SecurityConfig) ProtoReflect() protoreflect.Message { 102 mi := &file_common_protocol_headers_proto_msgTypes[0] 103 if protoimpl.UnsafeEnabled && x != nil { 104 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 105 if ms.LoadMessageInfo() == nil { 106 ms.StoreMessageInfo(mi) 107 } 108 return ms 109 } 110 return mi.MessageOf(x) 111 } 112 113 // Deprecated: Use SecurityConfig.ProtoReflect.Descriptor instead. 114 func (*SecurityConfig) Descriptor() ([]byte, []int) { 115 return file_common_protocol_headers_proto_rawDescGZIP(), []int{0} 116 } 117 118 func (x *SecurityConfig) GetType() SecurityType { 119 if x != nil { 120 return x.Type 121 } 122 return SecurityType_UNKNOWN 123 } 124 125 var File_common_protocol_headers_proto protoreflect.FileDescriptor 126 127 var file_common_protocol_headers_proto_rawDesc = []byte{ 128 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 129 0x6c, 0x2f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 130 0x1a, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 131 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x4e, 0x0a, 0x0e, 0x53, 132 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3c, 0x0a, 133 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x76, 0x32, 134 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 135 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 136 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x2a, 0x6c, 0x0a, 0x0c, 0x53, 137 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 138 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x45, 0x47, 0x41, 139 0x43, 0x59, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x55, 0x54, 0x4f, 0x10, 0x02, 0x12, 0x0e, 140 0x0a, 0x0a, 0x41, 0x45, 0x53, 0x31, 0x32, 0x38, 0x5f, 0x47, 0x43, 0x4d, 0x10, 0x03, 0x12, 0x15, 141 0x0a, 0x11, 0x43, 0x48, 0x41, 0x43, 0x48, 0x41, 0x32, 0x30, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x31, 142 0x33, 0x30, 0x35, 0x10, 0x04, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x05, 0x12, 143 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x06, 0x42, 0x6f, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 144 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 145 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x50, 0x01, 0x5a, 0x2e, 0x67, 146 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 147 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x63, 0x6f, 148 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0xaa, 0x02, 0x1a, 149 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 150 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 151 0x6f, 0x33, 152 } 153 154 var ( 155 file_common_protocol_headers_proto_rawDescOnce sync.Once 156 file_common_protocol_headers_proto_rawDescData = file_common_protocol_headers_proto_rawDesc 157 ) 158 159 func file_common_protocol_headers_proto_rawDescGZIP() []byte { 160 file_common_protocol_headers_proto_rawDescOnce.Do(func() { 161 file_common_protocol_headers_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_protocol_headers_proto_rawDescData) 162 }) 163 return file_common_protocol_headers_proto_rawDescData 164 } 165 166 var file_common_protocol_headers_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 167 var file_common_protocol_headers_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 168 var file_common_protocol_headers_proto_goTypes = []interface{}{ 169 (SecurityType)(0), // 0: v2ray.core.common.protocol.SecurityType 170 (*SecurityConfig)(nil), // 1: v2ray.core.common.protocol.SecurityConfig 171 } 172 var file_common_protocol_headers_proto_depIdxs = []int32{ 173 0, // 0: v2ray.core.common.protocol.SecurityConfig.type:type_name -> v2ray.core.common.protocol.SecurityType 174 1, // [1:1] is the sub-list for method output_type 175 1, // [1:1] is the sub-list for method input_type 176 1, // [1:1] is the sub-list for extension type_name 177 1, // [1:1] is the sub-list for extension extendee 178 0, // [0:1] is the sub-list for field type_name 179 } 180 181 func init() { file_common_protocol_headers_proto_init() } 182 func file_common_protocol_headers_proto_init() { 183 if File_common_protocol_headers_proto != nil { 184 return 185 } 186 if !protoimpl.UnsafeEnabled { 187 file_common_protocol_headers_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 188 switch v := v.(*SecurityConfig); i { 189 case 0: 190 return &v.state 191 case 1: 192 return &v.sizeCache 193 case 2: 194 return &v.unknownFields 195 default: 196 return nil 197 } 198 } 199 } 200 type x struct{} 201 out := protoimpl.TypeBuilder{ 202 File: protoimpl.DescBuilder{ 203 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 204 RawDescriptor: file_common_protocol_headers_proto_rawDesc, 205 NumEnums: 1, 206 NumMessages: 1, 207 NumExtensions: 0, 208 NumServices: 0, 209 }, 210 GoTypes: file_common_protocol_headers_proto_goTypes, 211 DependencyIndexes: file_common_protocol_headers_proto_depIdxs, 212 EnumInfos: file_common_protocol_headers_proto_enumTypes, 213 MessageInfos: file_common_protocol_headers_proto_msgTypes, 214 }.Build() 215 File_common_protocol_headers_proto = out.File 216 file_common_protocol_headers_proto_rawDesc = nil 217 file_common_protocol_headers_proto_goTypes = nil 218 file_common_protocol_headers_proto_depIdxs = nil 219 }