github.com/moqsien/xraycore@v1.8.5/common/protocol/headers.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.30.0 4 // protoc v4.23.1 5 // source: common/protocol/headers.proto 6 7 package protocol 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 SecurityType int32 24 25 const ( 26 SecurityType_UNKNOWN SecurityType = 0 27 SecurityType_AUTO SecurityType = 2 28 SecurityType_AES128_GCM SecurityType = 3 29 SecurityType_CHACHA20_POLY1305 SecurityType = 4 30 SecurityType_NONE SecurityType = 5 // [DEPRECATED 2023-06] 31 SecurityType_ZERO SecurityType = 6 32 ) 33 34 // Enum value maps for SecurityType. 35 var ( 36 SecurityType_name = map[int32]string{ 37 0: "UNKNOWN", 38 2: "AUTO", 39 3: "AES128_GCM", 40 4: "CHACHA20_POLY1305", 41 5: "NONE", 42 6: "ZERO", 43 } 44 SecurityType_value = map[string]int32{ 45 "UNKNOWN": 0, 46 "AUTO": 2, 47 "AES128_GCM": 3, 48 "CHACHA20_POLY1305": 4, 49 "NONE": 5, 50 "ZERO": 6, 51 } 52 ) 53 54 func (x SecurityType) Enum() *SecurityType { 55 p := new(SecurityType) 56 *p = x 57 return p 58 } 59 60 func (x SecurityType) String() string { 61 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 62 } 63 64 func (SecurityType) Descriptor() protoreflect.EnumDescriptor { 65 return file_common_protocol_headers_proto_enumTypes[0].Descriptor() 66 } 67 68 func (SecurityType) Type() protoreflect.EnumType { 69 return &file_common_protocol_headers_proto_enumTypes[0] 70 } 71 72 func (x SecurityType) Number() protoreflect.EnumNumber { 73 return protoreflect.EnumNumber(x) 74 } 75 76 // Deprecated: Use SecurityType.Descriptor instead. 77 func (SecurityType) EnumDescriptor() ([]byte, []int) { 78 return file_common_protocol_headers_proto_rawDescGZIP(), []int{0} 79 } 80 81 type SecurityConfig struct { 82 state protoimpl.MessageState 83 sizeCache protoimpl.SizeCache 84 unknownFields protoimpl.UnknownFields 85 86 Type SecurityType `protobuf:"varint,1,opt,name=type,proto3,enum=xray.common.protocol.SecurityType" json:"type,omitempty"` 87 } 88 89 func (x *SecurityConfig) Reset() { 90 *x = SecurityConfig{} 91 if protoimpl.UnsafeEnabled { 92 mi := &file_common_protocol_headers_proto_msgTypes[0] 93 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 94 ms.StoreMessageInfo(mi) 95 } 96 } 97 98 func (x *SecurityConfig) String() string { 99 return protoimpl.X.MessageStringOf(x) 100 } 101 102 func (*SecurityConfig) ProtoMessage() {} 103 104 func (x *SecurityConfig) ProtoReflect() protoreflect.Message { 105 mi := &file_common_protocol_headers_proto_msgTypes[0] 106 if protoimpl.UnsafeEnabled && x != nil { 107 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 108 if ms.LoadMessageInfo() == nil { 109 ms.StoreMessageInfo(mi) 110 } 111 return ms 112 } 113 return mi.MessageOf(x) 114 } 115 116 // Deprecated: Use SecurityConfig.ProtoReflect.Descriptor instead. 117 func (*SecurityConfig) Descriptor() ([]byte, []int) { 118 return file_common_protocol_headers_proto_rawDescGZIP(), []int{0} 119 } 120 121 func (x *SecurityConfig) GetType() SecurityType { 122 if x != nil { 123 return x.Type 124 } 125 return SecurityType_UNKNOWN 126 } 127 128 var File_common_protocol_headers_proto protoreflect.FileDescriptor 129 130 var file_common_protocol_headers_proto_rawDesc = []byte{ 131 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 132 0x6c, 0x2f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 133 0x14, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 134 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x48, 0x0a, 0x0e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 135 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x36, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 136 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 137 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x63, 138 0x75, 0x72, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x2a, 139 0x60, 0x0a, 0x0c, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 140 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 141 0x41, 0x55, 0x54, 0x4f, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x45, 0x53, 0x31, 0x32, 0x38, 142 0x5f, 0x47, 0x43, 0x4d, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x48, 0x41, 0x43, 0x48, 0x41, 143 0x32, 0x30, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x31, 0x33, 0x30, 0x35, 0x10, 0x04, 0x12, 0x08, 0x0a, 144 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x05, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f, 0x10, 145 0x06, 0x42, 0x5e, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 146 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x50, 0x01, 0x5a, 147 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 148 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 149 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0xaa, 0x02, 0x14, 0x58, 0x72, 0x61, 150 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 151 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 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: xray.common.protocol.SecurityType 170 (*SecurityConfig)(nil), // 1: xray.common.protocol.SecurityConfig 171 } 172 var file_common_protocol_headers_proto_depIdxs = []int32{ 173 0, // 0: xray.common.protocol.SecurityConfig.type:type_name -> xray.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 }