github.com/xtls/xray-core@v1.8.12-0.20240518155711-3168d27b0bdb/transport/internet/httpupgrade/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.33.0 4 // protoc v4.23.1 5 // source: transport/internet/httpupgrade/config.proto 6 7 package httpupgrade 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 Config struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` 29 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 30 Header map[string]string `protobuf:"bytes,3,rep,name=header,proto3" json:"header,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 31 AcceptProxyProtocol bool `protobuf:"varint,4,opt,name=accept_proxy_protocol,json=acceptProxyProtocol,proto3" json:"accept_proxy_protocol,omitempty"` 32 Ed uint32 `protobuf:"varint,5,opt,name=ed,proto3" json:"ed,omitempty"` 33 } 34 35 func (x *Config) Reset() { 36 *x = Config{} 37 if protoimpl.UnsafeEnabled { 38 mi := &file_transport_internet_httpupgrade_config_proto_msgTypes[0] 39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 40 ms.StoreMessageInfo(mi) 41 } 42 } 43 44 func (x *Config) String() string { 45 return protoimpl.X.MessageStringOf(x) 46 } 47 48 func (*Config) ProtoMessage() {} 49 50 func (x *Config) ProtoReflect() protoreflect.Message { 51 mi := &file_transport_internet_httpupgrade_config_proto_msgTypes[0] 52 if protoimpl.UnsafeEnabled && x != nil { 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 if ms.LoadMessageInfo() == nil { 55 ms.StoreMessageInfo(mi) 56 } 57 return ms 58 } 59 return mi.MessageOf(x) 60 } 61 62 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 63 func (*Config) Descriptor() ([]byte, []int) { 64 return file_transport_internet_httpupgrade_config_proto_rawDescGZIP(), []int{0} 65 } 66 67 func (x *Config) GetHost() string { 68 if x != nil { 69 return x.Host 70 } 71 return "" 72 } 73 74 func (x *Config) GetPath() string { 75 if x != nil { 76 return x.Path 77 } 78 return "" 79 } 80 81 func (x *Config) GetHeader() map[string]string { 82 if x != nil { 83 return x.Header 84 } 85 return nil 86 } 87 88 func (x *Config) GetAcceptProxyProtocol() bool { 89 if x != nil { 90 return x.AcceptProxyProtocol 91 } 92 return false 93 } 94 95 func (x *Config) GetEd() uint32 { 96 if x != nil { 97 return x.Ed 98 } 99 return 0 100 } 101 102 var File_transport_internet_httpupgrade_config_proto protoreflect.FileDescriptor 103 104 var file_transport_internet_httpupgrade_config_proto_rawDesc = []byte{ 105 0x0a, 0x2b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 106 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 107 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x23, 0x78, 108 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 109 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x75, 0x70, 0x67, 0x72, 0x61, 110 0x64, 0x65, 0x22, 0x80, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 111 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 112 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 113 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x4f, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 114 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 115 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 116 0x68, 0x74, 0x74, 0x70, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 117 0x69, 0x67, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 118 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 119 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 120 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x50, 0x72, 0x6f, 121 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x65, 0x64, 122 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x65, 0x64, 0x1a, 0x39, 0x0a, 0x0b, 0x48, 0x65, 123 0x61, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 124 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 125 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 126 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x8b, 0x01, 0x0a, 0x27, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 127 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 128 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 129 0x65, 0x50, 0x01, 0x5a, 0x38, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 130 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 131 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 132 0x74, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0xaa, 0x02, 0x23, 133 0x58, 0x72, 0x61, 0x79, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 134 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x55, 0x70, 0x67, 0x72, 135 0x61, 0x64, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 136 } 137 138 var ( 139 file_transport_internet_httpupgrade_config_proto_rawDescOnce sync.Once 140 file_transport_internet_httpupgrade_config_proto_rawDescData = file_transport_internet_httpupgrade_config_proto_rawDesc 141 ) 142 143 func file_transport_internet_httpupgrade_config_proto_rawDescGZIP() []byte { 144 file_transport_internet_httpupgrade_config_proto_rawDescOnce.Do(func() { 145 file_transport_internet_httpupgrade_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_httpupgrade_config_proto_rawDescData) 146 }) 147 return file_transport_internet_httpupgrade_config_proto_rawDescData 148 } 149 150 var file_transport_internet_httpupgrade_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 151 var file_transport_internet_httpupgrade_config_proto_goTypes = []interface{}{ 152 (*Config)(nil), // 0: xray.transport.internet.httpupgrade.Config 153 nil, // 1: xray.transport.internet.httpupgrade.Config.HeaderEntry 154 } 155 var file_transport_internet_httpupgrade_config_proto_depIdxs = []int32{ 156 1, // 0: xray.transport.internet.httpupgrade.Config.header:type_name -> xray.transport.internet.httpupgrade.Config.HeaderEntry 157 1, // [1:1] is the sub-list for method output_type 158 1, // [1:1] is the sub-list for method input_type 159 1, // [1:1] is the sub-list for extension type_name 160 1, // [1:1] is the sub-list for extension extendee 161 0, // [0:1] is the sub-list for field type_name 162 } 163 164 func init() { file_transport_internet_httpupgrade_config_proto_init() } 165 func file_transport_internet_httpupgrade_config_proto_init() { 166 if File_transport_internet_httpupgrade_config_proto != nil { 167 return 168 } 169 if !protoimpl.UnsafeEnabled { 170 file_transport_internet_httpupgrade_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 171 switch v := v.(*Config); i { 172 case 0: 173 return &v.state 174 case 1: 175 return &v.sizeCache 176 case 2: 177 return &v.unknownFields 178 default: 179 return nil 180 } 181 } 182 } 183 type x struct{} 184 out := protoimpl.TypeBuilder{ 185 File: protoimpl.DescBuilder{ 186 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 187 RawDescriptor: file_transport_internet_httpupgrade_config_proto_rawDesc, 188 NumEnums: 0, 189 NumMessages: 2, 190 NumExtensions: 0, 191 NumServices: 0, 192 }, 193 GoTypes: file_transport_internet_httpupgrade_config_proto_goTypes, 194 DependencyIndexes: file_transport_internet_httpupgrade_config_proto_depIdxs, 195 MessageInfos: file_transport_internet_httpupgrade_config_proto_msgTypes, 196 }.Build() 197 File_transport_internet_httpupgrade_config_proto = out.File 198 file_transport_internet_httpupgrade_config_proto_rawDesc = nil 199 file_transport_internet_httpupgrade_config_proto_goTypes = nil 200 file_transport_internet_httpupgrade_config_proto_depIdxs = nil 201 }