github.com/imannamdari/v2ray-core/v5@v5.0.5/transport/internet/websocket/config.pb.go (about) 1 package websocket 2 3 import ( 4 reflect "reflect" 5 sync "sync" 6 7 _ "github.com/imannamdari/v2ray-core/v5/common/protoext" 8 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 9 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 10 ) 11 12 const ( 13 // Verify that this generated code is sufficiently up-to-date. 14 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 15 // Verify that runtime/protoimpl is sufficiently up-to-date. 16 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 17 ) 18 19 type Header struct { 20 state protoimpl.MessageState 21 sizeCache protoimpl.SizeCache 22 unknownFields protoimpl.UnknownFields 23 24 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 25 Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 26 } 27 28 func (x *Header) Reset() { 29 *x = Header{} 30 if protoimpl.UnsafeEnabled { 31 mi := &file_transport_internet_websocket_config_proto_msgTypes[0] 32 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 33 ms.StoreMessageInfo(mi) 34 } 35 } 36 37 func (x *Header) String() string { 38 return protoimpl.X.MessageStringOf(x) 39 } 40 41 func (*Header) ProtoMessage() {} 42 43 func (x *Header) ProtoReflect() protoreflect.Message { 44 mi := &file_transport_internet_websocket_config_proto_msgTypes[0] 45 if protoimpl.UnsafeEnabled && x != nil { 46 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 47 if ms.LoadMessageInfo() == nil { 48 ms.StoreMessageInfo(mi) 49 } 50 return ms 51 } 52 return mi.MessageOf(x) 53 } 54 55 // Deprecated: Use Header.ProtoReflect.Descriptor instead. 56 func (*Header) Descriptor() ([]byte, []int) { 57 return file_transport_internet_websocket_config_proto_rawDescGZIP(), []int{0} 58 } 59 60 func (x *Header) GetKey() string { 61 if x != nil { 62 return x.Key 63 } 64 return "" 65 } 66 67 func (x *Header) GetValue() string { 68 if x != nil { 69 return x.Value 70 } 71 return "" 72 } 73 74 type Config struct { 75 state protoimpl.MessageState 76 sizeCache protoimpl.SizeCache 77 unknownFields protoimpl.UnknownFields 78 79 // URL path to the WebSocket service. Empty value means root(/). 80 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 81 Header []*Header `protobuf:"bytes,3,rep,name=header,proto3" json:"header,omitempty"` 82 AcceptProxyProtocol bool `protobuf:"varint,4,opt,name=accept_proxy_protocol,json=acceptProxyProtocol,proto3" json:"accept_proxy_protocol,omitempty"` 83 MaxEarlyData int32 `protobuf:"varint,5,opt,name=max_early_data,json=maxEarlyData,proto3" json:"max_early_data,omitempty"` 84 UseBrowserForwarding bool `protobuf:"varint,6,opt,name=use_browser_forwarding,json=useBrowserForwarding,proto3" json:"use_browser_forwarding,omitempty"` 85 EarlyDataHeaderName string `protobuf:"bytes,7,opt,name=early_data_header_name,json=earlyDataHeaderName,proto3" json:"early_data_header_name,omitempty"` 86 } 87 88 func (x *Config) Reset() { 89 *x = Config{} 90 if protoimpl.UnsafeEnabled { 91 mi := &file_transport_internet_websocket_config_proto_msgTypes[1] 92 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 93 ms.StoreMessageInfo(mi) 94 } 95 } 96 97 func (x *Config) String() string { 98 return protoimpl.X.MessageStringOf(x) 99 } 100 101 func (*Config) ProtoMessage() {} 102 103 func (x *Config) ProtoReflect() protoreflect.Message { 104 mi := &file_transport_internet_websocket_config_proto_msgTypes[1] 105 if protoimpl.UnsafeEnabled && x != nil { 106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 107 if ms.LoadMessageInfo() == nil { 108 ms.StoreMessageInfo(mi) 109 } 110 return ms 111 } 112 return mi.MessageOf(x) 113 } 114 115 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 116 func (*Config) Descriptor() ([]byte, []int) { 117 return file_transport_internet_websocket_config_proto_rawDescGZIP(), []int{1} 118 } 119 120 func (x *Config) GetPath() string { 121 if x != nil { 122 return x.Path 123 } 124 return "" 125 } 126 127 func (x *Config) GetHeader() []*Header { 128 if x != nil { 129 return x.Header 130 } 131 return nil 132 } 133 134 func (x *Config) GetAcceptProxyProtocol() bool { 135 if x != nil { 136 return x.AcceptProxyProtocol 137 } 138 return false 139 } 140 141 func (x *Config) GetMaxEarlyData() int32 { 142 if x != nil { 143 return x.MaxEarlyData 144 } 145 return 0 146 } 147 148 func (x *Config) GetUseBrowserForwarding() bool { 149 if x != nil { 150 return x.UseBrowserForwarding 151 } 152 return false 153 } 154 155 func (x *Config) GetEarlyDataHeaderName() string { 156 if x != nil { 157 return x.EarlyDataHeaderName 158 } 159 return "" 160 } 161 162 var File_transport_internet_websocket_config_proto protoreflect.FileDescriptor 163 164 var file_transport_internet_websocket_config_proto_rawDesc = []byte{ 165 0x0a, 0x29, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 166 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2f, 0x63, 167 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x27, 0x76, 0x32, 0x72, 168 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 169 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 170 0x63, 0x6b, 0x65, 0x74, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 171 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 172 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x30, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 173 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 174 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 175 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xda, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 176 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 177 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x47, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 178 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 179 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 180 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 181 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 182 0x12, 0x32, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 183 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 184 0x13, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, 185 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x61, 0x78, 0x5f, 0x65, 0x61, 0x72, 0x6c, 186 0x79, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6d, 0x61, 187 0x78, 0x45, 0x61, 0x72, 0x6c, 0x79, 0x44, 0x61, 0x74, 0x61, 0x12, 0x34, 0x0a, 0x16, 0x75, 0x73, 188 0x65, 0x5f, 0x62, 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72, 0x5f, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 189 0x64, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x75, 0x73, 0x65, 0x42, 190 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 191 0x12, 0x33, 0x0a, 0x16, 0x65, 0x61, 0x72, 0x6c, 0x79, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x68, 192 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 193 0x52, 0x13, 0x65, 0x61, 0x72, 0x6c, 0x79, 0x44, 0x61, 0x74, 0x61, 0x48, 0x65, 0x61, 0x64, 0x65, 194 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x3a, 0x28, 0x82, 0xb5, 0x18, 0x0b, 0x0a, 0x09, 0x74, 0x72, 0x61, 195 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x82, 0xb5, 0x18, 0x04, 0x12, 0x02, 0x77, 0x73, 0x82, 0xb5, 196 0x18, 0x0d, 0x8a, 0xff, 0x29, 0x09, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x4a, 197 0x04, 0x08, 0x01, 0x10, 0x02, 0x42, 0x96, 0x01, 0x0a, 0x2b, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 198 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 199 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x77, 0x65, 0x62, 0x73, 200 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 201 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 202 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 203 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x77, 0x65, 0x62, 0x73, 0x6f, 204 0x63, 0x6b, 0x65, 0x74, 0xaa, 0x02, 0x27, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 205 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 206 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x57, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x62, 0x06, 207 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 208 } 209 210 var ( 211 file_transport_internet_websocket_config_proto_rawDescOnce sync.Once 212 file_transport_internet_websocket_config_proto_rawDescData = file_transport_internet_websocket_config_proto_rawDesc 213 ) 214 215 func file_transport_internet_websocket_config_proto_rawDescGZIP() []byte { 216 file_transport_internet_websocket_config_proto_rawDescOnce.Do(func() { 217 file_transport_internet_websocket_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_websocket_config_proto_rawDescData) 218 }) 219 return file_transport_internet_websocket_config_proto_rawDescData 220 } 221 222 var file_transport_internet_websocket_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 223 var file_transport_internet_websocket_config_proto_goTypes = []interface{}{ 224 (*Header)(nil), // 0: v2ray.core.transport.internet.websocket.Header 225 (*Config)(nil), // 1: v2ray.core.transport.internet.websocket.Config 226 } 227 var file_transport_internet_websocket_config_proto_depIdxs = []int32{ 228 0, // 0: v2ray.core.transport.internet.websocket.Config.header:type_name -> v2ray.core.transport.internet.websocket.Header 229 1, // [1:1] is the sub-list for method output_type 230 1, // [1:1] is the sub-list for method input_type 231 1, // [1:1] is the sub-list for extension type_name 232 1, // [1:1] is the sub-list for extension extendee 233 0, // [0:1] is the sub-list for field type_name 234 } 235 236 func init() { file_transport_internet_websocket_config_proto_init() } 237 func file_transport_internet_websocket_config_proto_init() { 238 if File_transport_internet_websocket_config_proto != nil { 239 return 240 } 241 if !protoimpl.UnsafeEnabled { 242 file_transport_internet_websocket_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 243 switch v := v.(*Header); i { 244 case 0: 245 return &v.state 246 case 1: 247 return &v.sizeCache 248 case 2: 249 return &v.unknownFields 250 default: 251 return nil 252 } 253 } 254 file_transport_internet_websocket_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 255 switch v := v.(*Config); i { 256 case 0: 257 return &v.state 258 case 1: 259 return &v.sizeCache 260 case 2: 261 return &v.unknownFields 262 default: 263 return nil 264 } 265 } 266 } 267 type x struct{} 268 out := protoimpl.TypeBuilder{ 269 File: protoimpl.DescBuilder{ 270 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 271 RawDescriptor: file_transport_internet_websocket_config_proto_rawDesc, 272 NumEnums: 0, 273 NumMessages: 2, 274 NumExtensions: 0, 275 NumServices: 0, 276 }, 277 GoTypes: file_transport_internet_websocket_config_proto_goTypes, 278 DependencyIndexes: file_transport_internet_websocket_config_proto_depIdxs, 279 MessageInfos: file_transport_internet_websocket_config_proto_msgTypes, 280 }.Build() 281 File_transport_internet_websocket_config_proto = out.File 282 file_transport_internet_websocket_config_proto_rawDesc = nil 283 file_transport_internet_websocket_config_proto_goTypes = nil 284 file_transport_internet_websocket_config_proto_depIdxs = nil 285 }