github.com/EagleQL/Xray-core@v1.4.3/transport/internet/tcp/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/tcp/config.proto 6 7 package tcp 8 9 import ( 10 proto "github.com/golang/protobuf/proto" 11 serial "github.com/xtls/xray-core/common/serial" 12 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 13 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 14 reflect "reflect" 15 sync "sync" 16 ) 17 18 const ( 19 // Verify that this generated code is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 21 // Verify that runtime/protoimpl is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 23 ) 24 25 // This is a compile-time assertion that a sufficiently up-to-date version 26 // of the legacy proto package is being used. 27 const _ = proto.ProtoPackageIsVersion4 28 29 type Config struct { 30 state protoimpl.MessageState 31 sizeCache protoimpl.SizeCache 32 unknownFields protoimpl.UnknownFields 33 34 HeaderSettings *serial.TypedMessage `protobuf:"bytes,2,opt,name=header_settings,json=headerSettings,proto3" json:"header_settings,omitempty"` 35 AcceptProxyProtocol bool `protobuf:"varint,3,opt,name=accept_proxy_protocol,json=acceptProxyProtocol,proto3" json:"accept_proxy_protocol,omitempty"` 36 } 37 38 func (x *Config) Reset() { 39 *x = Config{} 40 if protoimpl.UnsafeEnabled { 41 mi := &file_transport_internet_tcp_config_proto_msgTypes[0] 42 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 43 ms.StoreMessageInfo(mi) 44 } 45 } 46 47 func (x *Config) String() string { 48 return protoimpl.X.MessageStringOf(x) 49 } 50 51 func (*Config) ProtoMessage() {} 52 53 func (x *Config) ProtoReflect() protoreflect.Message { 54 mi := &file_transport_internet_tcp_config_proto_msgTypes[0] 55 if protoimpl.UnsafeEnabled && x != nil { 56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 57 if ms.LoadMessageInfo() == nil { 58 ms.StoreMessageInfo(mi) 59 } 60 return ms 61 } 62 return mi.MessageOf(x) 63 } 64 65 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 66 func (*Config) Descriptor() ([]byte, []int) { 67 return file_transport_internet_tcp_config_proto_rawDescGZIP(), []int{0} 68 } 69 70 func (x *Config) GetHeaderSettings() *serial.TypedMessage { 71 if x != nil { 72 return x.HeaderSettings 73 } 74 return nil 75 } 76 77 func (x *Config) GetAcceptProxyProtocol() bool { 78 if x != nil { 79 return x.AcceptProxyProtocol 80 } 81 return false 82 } 83 84 var File_transport_internet_tcp_config_proto protoreflect.FileDescriptor 85 86 var file_transport_internet_tcp_config_proto_rawDesc = []byte{ 87 0x0a, 0x23, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 88 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x74, 0x63, 0x70, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 89 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 90 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 91 0x63, 0x70, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 92 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 93 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8d, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 94 0x12, 0x49, 0x0a, 0x0f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 95 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 96 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 97 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0e, 0x68, 0x65, 0x61, 98 0x64, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x61, 99 0x63, 0x63, 0x65, 0x70, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x74, 100 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x61, 0x63, 0x63, 0x65, 101 0x70, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4a, 102 0x04, 0x08, 0x01, 0x10, 0x02, 0x42, 0x73, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 103 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 104 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x63, 0x70, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 105 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 106 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 107 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x74, 0x63, 0x70, 0xaa, 0x02, 0x1b, 0x58, 108 0x72, 0x61, 0x79, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 109 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x63, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 110 0x6f, 0x33, 111 } 112 113 var ( 114 file_transport_internet_tcp_config_proto_rawDescOnce sync.Once 115 file_transport_internet_tcp_config_proto_rawDescData = file_transport_internet_tcp_config_proto_rawDesc 116 ) 117 118 func file_transport_internet_tcp_config_proto_rawDescGZIP() []byte { 119 file_transport_internet_tcp_config_proto_rawDescOnce.Do(func() { 120 file_transport_internet_tcp_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_tcp_config_proto_rawDescData) 121 }) 122 return file_transport_internet_tcp_config_proto_rawDescData 123 } 124 125 var file_transport_internet_tcp_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 126 var file_transport_internet_tcp_config_proto_goTypes = []interface{}{ 127 (*Config)(nil), // 0: xray.transport.internet.tcp.Config 128 (*serial.TypedMessage)(nil), // 1: xray.common.serial.TypedMessage 129 } 130 var file_transport_internet_tcp_config_proto_depIdxs = []int32{ 131 1, // 0: xray.transport.internet.tcp.Config.header_settings:type_name -> xray.common.serial.TypedMessage 132 1, // [1:1] is the sub-list for method output_type 133 1, // [1:1] is the sub-list for method input_type 134 1, // [1:1] is the sub-list for extension type_name 135 1, // [1:1] is the sub-list for extension extendee 136 0, // [0:1] is the sub-list for field type_name 137 } 138 139 func init() { file_transport_internet_tcp_config_proto_init() } 140 func file_transport_internet_tcp_config_proto_init() { 141 if File_transport_internet_tcp_config_proto != nil { 142 return 143 } 144 if !protoimpl.UnsafeEnabled { 145 file_transport_internet_tcp_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 146 switch v := v.(*Config); i { 147 case 0: 148 return &v.state 149 case 1: 150 return &v.sizeCache 151 case 2: 152 return &v.unknownFields 153 default: 154 return nil 155 } 156 } 157 } 158 type x struct{} 159 out := protoimpl.TypeBuilder{ 160 File: protoimpl.DescBuilder{ 161 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 162 RawDescriptor: file_transport_internet_tcp_config_proto_rawDesc, 163 NumEnums: 0, 164 NumMessages: 1, 165 NumExtensions: 0, 166 NumServices: 0, 167 }, 168 GoTypes: file_transport_internet_tcp_config_proto_goTypes, 169 DependencyIndexes: file_transport_internet_tcp_config_proto_depIdxs, 170 MessageInfos: file_transport_internet_tcp_config_proto_msgTypes, 171 }.Build() 172 File_transport_internet_tcp_config_proto = out.File 173 file_transport_internet_tcp_config_proto_rawDesc = nil 174 file_transport_internet_tcp_config_proto_goTypes = nil 175 file_transport_internet_tcp_config_proto_depIdxs = nil 176 }