github.com/eagleql/xray-core@v1.4.4/transport/internet/xtls/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.14.0 5 // source: transport/internet/xtls/config.proto 6 7 package xtls 8 9 import ( 10 proto "github.com/golang/protobuf/proto" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 // This is a compile-time assertion that a sufficiently up-to-date version 25 // of the legacy proto package is being used. 26 const _ = proto.ProtoPackageIsVersion4 27 28 type Certificate_Usage int32 29 30 const ( 31 Certificate_ENCIPHERMENT Certificate_Usage = 0 32 Certificate_AUTHORITY_VERIFY Certificate_Usage = 1 33 Certificate_AUTHORITY_ISSUE Certificate_Usage = 2 34 ) 35 36 // Enum value maps for Certificate_Usage. 37 var ( 38 Certificate_Usage_name = map[int32]string{ 39 0: "ENCIPHERMENT", 40 1: "AUTHORITY_VERIFY", 41 2: "AUTHORITY_ISSUE", 42 } 43 Certificate_Usage_value = map[string]int32{ 44 "ENCIPHERMENT": 0, 45 "AUTHORITY_VERIFY": 1, 46 "AUTHORITY_ISSUE": 2, 47 } 48 ) 49 50 func (x Certificate_Usage) Enum() *Certificate_Usage { 51 p := new(Certificate_Usage) 52 *p = x 53 return p 54 } 55 56 func (x Certificate_Usage) String() string { 57 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 58 } 59 60 func (Certificate_Usage) Descriptor() protoreflect.EnumDescriptor { 61 return file_transport_internet_xtls_config_proto_enumTypes[0].Descriptor() 62 } 63 64 func (Certificate_Usage) Type() protoreflect.EnumType { 65 return &file_transport_internet_xtls_config_proto_enumTypes[0] 66 } 67 68 func (x Certificate_Usage) Number() protoreflect.EnumNumber { 69 return protoreflect.EnumNumber(x) 70 } 71 72 // Deprecated: Use Certificate_Usage.Descriptor instead. 73 func (Certificate_Usage) EnumDescriptor() ([]byte, []int) { 74 return file_transport_internet_xtls_config_proto_rawDescGZIP(), []int{0, 0} 75 } 76 77 type Certificate struct { 78 state protoimpl.MessageState 79 sizeCache protoimpl.SizeCache 80 unknownFields protoimpl.UnknownFields 81 82 // TLS certificate in x509 format. 83 Certificate []byte `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` 84 // TLS key in x509 format. 85 Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` 86 Usage Certificate_Usage `protobuf:"varint,3,opt,name=usage,proto3,enum=xray.transport.internet.xtls.Certificate_Usage" json:"usage,omitempty"` 87 OcspStapling uint64 `protobuf:"varint,4,opt,name=ocsp_stapling,json=ocspStapling,proto3" json:"ocsp_stapling,omitempty"` 88 // TLS certificate path 89 CertificatePath string `protobuf:"bytes,5,opt,name=certificate_path,json=certificatePath,proto3" json:"certificate_path,omitempty"` 90 // TLS Key path 91 KeyPath string `protobuf:"bytes,6,opt,name=key_path,json=keyPath,proto3" json:"key_path,omitempty"` 92 // If true, one-Time Loading 93 OneTimeLoading bool `protobuf:"varint,7,opt,name=One_time_loading,json=OneTimeLoading,proto3" json:"One_time_loading,omitempty"` 94 } 95 96 func (x *Certificate) Reset() { 97 *x = Certificate{} 98 if protoimpl.UnsafeEnabled { 99 mi := &file_transport_internet_xtls_config_proto_msgTypes[0] 100 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 101 ms.StoreMessageInfo(mi) 102 } 103 } 104 105 func (x *Certificate) String() string { 106 return protoimpl.X.MessageStringOf(x) 107 } 108 109 func (*Certificate) ProtoMessage() {} 110 111 func (x *Certificate) ProtoReflect() protoreflect.Message { 112 mi := &file_transport_internet_xtls_config_proto_msgTypes[0] 113 if protoimpl.UnsafeEnabled && x != nil { 114 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 115 if ms.LoadMessageInfo() == nil { 116 ms.StoreMessageInfo(mi) 117 } 118 return ms 119 } 120 return mi.MessageOf(x) 121 } 122 123 // Deprecated: Use Certificate.ProtoReflect.Descriptor instead. 124 func (*Certificate) Descriptor() ([]byte, []int) { 125 return file_transport_internet_xtls_config_proto_rawDescGZIP(), []int{0} 126 } 127 128 func (x *Certificate) GetCertificate() []byte { 129 if x != nil { 130 return x.Certificate 131 } 132 return nil 133 } 134 135 func (x *Certificate) GetKey() []byte { 136 if x != nil { 137 return x.Key 138 } 139 return nil 140 } 141 142 func (x *Certificate) GetUsage() Certificate_Usage { 143 if x != nil { 144 return x.Usage 145 } 146 return Certificate_ENCIPHERMENT 147 } 148 149 func (x *Certificate) GetOcspStapling() uint64 { 150 if x != nil { 151 return x.OcspStapling 152 } 153 return 0 154 } 155 156 func (x *Certificate) GetCertificatePath() string { 157 if x != nil { 158 return x.CertificatePath 159 } 160 return "" 161 } 162 163 func (x *Certificate) GetKeyPath() string { 164 if x != nil { 165 return x.KeyPath 166 } 167 return "" 168 } 169 170 func (x *Certificate) GetOneTimeLoading() bool { 171 if x != nil { 172 return x.OneTimeLoading 173 } 174 return false 175 } 176 177 type Config struct { 178 state protoimpl.MessageState 179 sizeCache protoimpl.SizeCache 180 unknownFields protoimpl.UnknownFields 181 182 // Whether or not to allow self-signed certificates. 183 AllowInsecure bool `protobuf:"varint,1,opt,name=allow_insecure,json=allowInsecure,proto3" json:"allow_insecure,omitempty"` 184 // List of certificates to be served on server. 185 Certificate []*Certificate `protobuf:"bytes,2,rep,name=certificate,proto3" json:"certificate,omitempty"` 186 // Override server name. 187 ServerName string `protobuf:"bytes,3,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` 188 // Lists of string as ALPN values. 189 NextProtocol []string `protobuf:"bytes,4,rep,name=next_protocol,json=nextProtocol,proto3" json:"next_protocol,omitempty"` 190 // Whether or not to enable session (ticket) resumption. 191 EnableSessionResumption bool `protobuf:"varint,5,opt,name=enable_session_resumption,json=enableSessionResumption,proto3" json:"enable_session_resumption,omitempty"` 192 // If true, root certificates on the system will not be loaded for 193 // verification. 194 DisableSystemRoot bool `protobuf:"varint,6,opt,name=disable_system_root,json=disableSystemRoot,proto3" json:"disable_system_root,omitempty"` 195 // The minimum TLS version. 196 MinVersion string `protobuf:"bytes,7,opt,name=min_version,json=minVersion,proto3" json:"min_version,omitempty"` 197 // The maximum TLS version. 198 MaxVersion string `protobuf:"bytes,8,opt,name=max_version,json=maxVersion,proto3" json:"max_version,omitempty"` 199 // Specify cipher suites, except for TLS 1.3. 200 CipherSuites string `protobuf:"bytes,9,opt,name=cipher_suites,json=cipherSuites,proto3" json:"cipher_suites,omitempty"` 201 // Whether the server selects its most preferred ciphersuite. 202 PreferServerCipherSuites bool `protobuf:"varint,10,opt,name=prefer_server_cipher_suites,json=preferServerCipherSuites,proto3" json:"prefer_server_cipher_suites,omitempty"` 203 } 204 205 func (x *Config) Reset() { 206 *x = Config{} 207 if protoimpl.UnsafeEnabled { 208 mi := &file_transport_internet_xtls_config_proto_msgTypes[1] 209 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 210 ms.StoreMessageInfo(mi) 211 } 212 } 213 214 func (x *Config) String() string { 215 return protoimpl.X.MessageStringOf(x) 216 } 217 218 func (*Config) ProtoMessage() {} 219 220 func (x *Config) ProtoReflect() protoreflect.Message { 221 mi := &file_transport_internet_xtls_config_proto_msgTypes[1] 222 if protoimpl.UnsafeEnabled && x != nil { 223 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 224 if ms.LoadMessageInfo() == nil { 225 ms.StoreMessageInfo(mi) 226 } 227 return ms 228 } 229 return mi.MessageOf(x) 230 } 231 232 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 233 func (*Config) Descriptor() ([]byte, []int) { 234 return file_transport_internet_xtls_config_proto_rawDescGZIP(), []int{1} 235 } 236 237 func (x *Config) GetAllowInsecure() bool { 238 if x != nil { 239 return x.AllowInsecure 240 } 241 return false 242 } 243 244 func (x *Config) GetCertificate() []*Certificate { 245 if x != nil { 246 return x.Certificate 247 } 248 return nil 249 } 250 251 func (x *Config) GetServerName() string { 252 if x != nil { 253 return x.ServerName 254 } 255 return "" 256 } 257 258 func (x *Config) GetNextProtocol() []string { 259 if x != nil { 260 return x.NextProtocol 261 } 262 return nil 263 } 264 265 func (x *Config) GetEnableSessionResumption() bool { 266 if x != nil { 267 return x.EnableSessionResumption 268 } 269 return false 270 } 271 272 func (x *Config) GetDisableSystemRoot() bool { 273 if x != nil { 274 return x.DisableSystemRoot 275 } 276 return false 277 } 278 279 func (x *Config) GetMinVersion() string { 280 if x != nil { 281 return x.MinVersion 282 } 283 return "" 284 } 285 286 func (x *Config) GetMaxVersion() string { 287 if x != nil { 288 return x.MaxVersion 289 } 290 return "" 291 } 292 293 func (x *Config) GetCipherSuites() string { 294 if x != nil { 295 return x.CipherSuites 296 } 297 return "" 298 } 299 300 func (x *Config) GetPreferServerCipherSuites() bool { 301 if x != nil { 302 return x.PreferServerCipherSuites 303 } 304 return false 305 } 306 307 var File_transport_internet_xtls_config_proto protoreflect.FileDescriptor 308 309 var file_transport_internet_xtls_config_proto_rawDesc = []byte{ 310 0x0a, 0x24, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 311 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 312 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 313 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 314 0x78, 0x74, 0x6c, 0x73, 0x22, 0xe3, 0x02, 0x0a, 0x0b, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 315 0x63, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 316 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 317 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 318 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x45, 0x0a, 0x05, 0x75, 0x73, 0x61, 0x67, 319 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 320 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 321 0x74, 0x2e, 0x78, 0x74, 0x6c, 0x73, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 322 0x74, 0x65, 0x2e, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x05, 0x75, 0x73, 0x61, 0x67, 0x65, 0x12, 323 0x23, 0x0a, 0x0d, 0x6f, 0x63, 0x73, 0x70, 0x5f, 0x73, 0x74, 0x61, 0x70, 0x6c, 0x69, 0x6e, 0x67, 324 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6f, 0x63, 0x73, 0x70, 0x53, 0x74, 0x61, 0x70, 325 0x6c, 0x69, 0x6e, 0x67, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 326 0x61, 0x74, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 327 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 328 0x19, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 329 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x50, 0x61, 0x74, 0x68, 0x12, 0x28, 0x0a, 0x10, 0x4f, 0x6e, 330 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x07, 331 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x4f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x4c, 0x6f, 0x61, 332 0x64, 0x69, 0x6e, 0x67, 0x22, 0x44, 0x0a, 0x05, 0x55, 0x73, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 333 0x0c, 0x45, 0x4e, 0x43, 0x49, 0x50, 0x48, 0x45, 0x52, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x00, 0x12, 334 0x14, 0x0a, 0x10, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x56, 0x45, 0x52, 335 0x49, 0x46, 0x59, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 336 0x54, 0x59, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x10, 0x02, 0x22, 0xd4, 0x03, 0x0a, 0x06, 0x43, 337 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 338 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 339 0x6c, 0x6c, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x12, 0x4b, 0x0a, 0x0b, 340 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 341 0x0b, 0x32, 0x29, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 342 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x78, 0x74, 0x6c, 0x73, 343 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x63, 0x65, 344 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x72, 345 0x76, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 346 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6e, 0x65, 347 0x78, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x03, 0x28, 348 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 349 0x3a, 0x0a, 0x19, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 350 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 351 0x28, 0x08, 0x52, 0x17, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 352 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x13, 0x64, 353 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x72, 0x6f, 354 0x6f, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 355 0x65, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 356 0x69, 0x6e, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 357 0x52, 0x0a, 0x6d, 0x69, 0x6e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 358 0x6d, 0x61, 0x78, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 359 0x09, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 360 0x0d, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x5f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x73, 0x18, 0x09, 361 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x53, 0x75, 0x69, 0x74, 362 0x65, 0x73, 0x12, 0x3d, 0x0a, 0x1b, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 363 0x76, 0x65, 0x72, 0x5f, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x5f, 0x73, 0x75, 0x69, 0x74, 0x65, 364 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x53, 365 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x53, 0x75, 0x69, 0x74, 0x65, 366 0x73, 0x42, 0x76, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 367 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 368 0x2e, 0x78, 0x74, 0x6c, 0x73, 0x50, 0x01, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 369 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 370 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 371 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0xaa, 0x02, 0x1c, 0x58, 0x72, 0x61, 372 0x79, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 373 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x58, 0x74, 0x6c, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 374 0x33, 375 } 376 377 var ( 378 file_transport_internet_xtls_config_proto_rawDescOnce sync.Once 379 file_transport_internet_xtls_config_proto_rawDescData = file_transport_internet_xtls_config_proto_rawDesc 380 ) 381 382 func file_transport_internet_xtls_config_proto_rawDescGZIP() []byte { 383 file_transport_internet_xtls_config_proto_rawDescOnce.Do(func() { 384 file_transport_internet_xtls_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_xtls_config_proto_rawDescData) 385 }) 386 return file_transport_internet_xtls_config_proto_rawDescData 387 } 388 389 var file_transport_internet_xtls_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 390 var file_transport_internet_xtls_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 391 var file_transport_internet_xtls_config_proto_goTypes = []interface{}{ 392 (Certificate_Usage)(0), // 0: xray.transport.internet.xtls.Certificate.Usage 393 (*Certificate)(nil), // 1: xray.transport.internet.xtls.Certificate 394 (*Config)(nil), // 2: xray.transport.internet.xtls.Config 395 } 396 var file_transport_internet_xtls_config_proto_depIdxs = []int32{ 397 0, // 0: xray.transport.internet.xtls.Certificate.usage:type_name -> xray.transport.internet.xtls.Certificate.Usage 398 1, // 1: xray.transport.internet.xtls.Config.certificate:type_name -> xray.transport.internet.xtls.Certificate 399 2, // [2:2] is the sub-list for method output_type 400 2, // [2:2] is the sub-list for method input_type 401 2, // [2:2] is the sub-list for extension type_name 402 2, // [2:2] is the sub-list for extension extendee 403 0, // [0:2] is the sub-list for field type_name 404 } 405 406 func init() { file_transport_internet_xtls_config_proto_init() } 407 func file_transport_internet_xtls_config_proto_init() { 408 if File_transport_internet_xtls_config_proto != nil { 409 return 410 } 411 if !protoimpl.UnsafeEnabled { 412 file_transport_internet_xtls_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 413 switch v := v.(*Certificate); i { 414 case 0: 415 return &v.state 416 case 1: 417 return &v.sizeCache 418 case 2: 419 return &v.unknownFields 420 default: 421 return nil 422 } 423 } 424 file_transport_internet_xtls_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 425 switch v := v.(*Config); i { 426 case 0: 427 return &v.state 428 case 1: 429 return &v.sizeCache 430 case 2: 431 return &v.unknownFields 432 default: 433 return nil 434 } 435 } 436 } 437 type x struct{} 438 out := protoimpl.TypeBuilder{ 439 File: protoimpl.DescBuilder{ 440 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 441 RawDescriptor: file_transport_internet_xtls_config_proto_rawDesc, 442 NumEnums: 1, 443 NumMessages: 2, 444 NumExtensions: 0, 445 NumServices: 0, 446 }, 447 GoTypes: file_transport_internet_xtls_config_proto_goTypes, 448 DependencyIndexes: file_transport_internet_xtls_config_proto_depIdxs, 449 EnumInfos: file_transport_internet_xtls_config_proto_enumTypes, 450 MessageInfos: file_transport_internet_xtls_config_proto_msgTypes, 451 }.Build() 452 File_transport_internet_xtls_config_proto = out.File 453 file_transport_internet_xtls_config_proto_rawDesc = nil 454 file_transport_internet_xtls_config_proto_goTypes = nil 455 file_transport_internet_xtls_config_proto_depIdxs = nil 456 }