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