github.com/xraypb/xray-core@v1.6.6/transport/internet/websocket/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.1 4 // protoc v3.18.0 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 Ed uint32 `protobuf:"varint,5,opt,name=ed,proto3" json:"ed,omitempty"` 88 } 89 90 func (x *Config) Reset() { 91 *x = Config{} 92 if protoimpl.UnsafeEnabled { 93 mi := &file_transport_internet_websocket_config_proto_msgTypes[1] 94 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 95 ms.StoreMessageInfo(mi) 96 } 97 } 98 99 func (x *Config) String() string { 100 return protoimpl.X.MessageStringOf(x) 101 } 102 103 func (*Config) ProtoMessage() {} 104 105 func (x *Config) ProtoReflect() protoreflect.Message { 106 mi := &file_transport_internet_websocket_config_proto_msgTypes[1] 107 if protoimpl.UnsafeEnabled && x != nil { 108 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 109 if ms.LoadMessageInfo() == nil { 110 ms.StoreMessageInfo(mi) 111 } 112 return ms 113 } 114 return mi.MessageOf(x) 115 } 116 117 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 118 func (*Config) Descriptor() ([]byte, []int) { 119 return file_transport_internet_websocket_config_proto_rawDescGZIP(), []int{1} 120 } 121 122 func (x *Config) GetPath() string { 123 if x != nil { 124 return x.Path 125 } 126 return "" 127 } 128 129 func (x *Config) GetHeader() []*Header { 130 if x != nil { 131 return x.Header 132 } 133 return nil 134 } 135 136 func (x *Config) GetAcceptProxyProtocol() bool { 137 if x != nil { 138 return x.AcceptProxyProtocol 139 } 140 return false 141 } 142 143 func (x *Config) GetEd() uint32 { 144 if x != nil { 145 return x.Ed 146 } 147 return 0 148 } 149 150 var File_transport_internet_websocket_config_proto protoreflect.FileDescriptor 151 152 var file_transport_internet_websocket_config_proto_rawDesc = []byte{ 153 0x0a, 0x29, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 154 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2f, 0x63, 155 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x78, 0x72, 0x61, 156 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 157 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x22, 0x30, 158 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 159 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 160 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 161 0x22, 0xa9, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x70, 162 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 163 0x41, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 164 0x29, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 165 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 166 0x6b, 0x65, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 167 0x65, 0x72, 0x12, 0x32, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x5f, 0x70, 0x72, 0x6f, 168 0x78, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 169 0x08, 0x52, 0x13, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 170 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 171 0x28, 0x0d, 0x52, 0x02, 0x65, 0x64, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x42, 0x85, 0x01, 0x0a, 172 0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 173 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x77, 0x65, 0x62, 174 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 175 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 176 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 177 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 178 0xaa, 0x02, 0x21, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 179 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x57, 0x65, 0x62, 0x73, 0x6f, 180 0x63, 0x6b, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 181 } 182 183 var ( 184 file_transport_internet_websocket_config_proto_rawDescOnce sync.Once 185 file_transport_internet_websocket_config_proto_rawDescData = file_transport_internet_websocket_config_proto_rawDesc 186 ) 187 188 func file_transport_internet_websocket_config_proto_rawDescGZIP() []byte { 189 file_transport_internet_websocket_config_proto_rawDescOnce.Do(func() { 190 file_transport_internet_websocket_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_websocket_config_proto_rawDescData) 191 }) 192 return file_transport_internet_websocket_config_proto_rawDescData 193 } 194 195 var file_transport_internet_websocket_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 196 var file_transport_internet_websocket_config_proto_goTypes = []interface{}{ 197 (*Header)(nil), // 0: xray.transport.internet.websocket.Header 198 (*Config)(nil), // 1: xray.transport.internet.websocket.Config 199 } 200 var file_transport_internet_websocket_config_proto_depIdxs = []int32{ 201 0, // 0: xray.transport.internet.websocket.Config.header:type_name -> xray.transport.internet.websocket.Header 202 1, // [1:1] is the sub-list for method output_type 203 1, // [1:1] is the sub-list for method input_type 204 1, // [1:1] is the sub-list for extension type_name 205 1, // [1:1] is the sub-list for extension extendee 206 0, // [0:1] is the sub-list for field type_name 207 } 208 209 func init() { file_transport_internet_websocket_config_proto_init() } 210 func file_transport_internet_websocket_config_proto_init() { 211 if File_transport_internet_websocket_config_proto != nil { 212 return 213 } 214 if !protoimpl.UnsafeEnabled { 215 file_transport_internet_websocket_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 216 switch v := v.(*Header); i { 217 case 0: 218 return &v.state 219 case 1: 220 return &v.sizeCache 221 case 2: 222 return &v.unknownFields 223 default: 224 return nil 225 } 226 } 227 file_transport_internet_websocket_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 228 switch v := v.(*Config); i { 229 case 0: 230 return &v.state 231 case 1: 232 return &v.sizeCache 233 case 2: 234 return &v.unknownFields 235 default: 236 return nil 237 } 238 } 239 } 240 type x struct{} 241 out := protoimpl.TypeBuilder{ 242 File: protoimpl.DescBuilder{ 243 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 244 RawDescriptor: file_transport_internet_websocket_config_proto_rawDesc, 245 NumEnums: 0, 246 NumMessages: 2, 247 NumExtensions: 0, 248 NumServices: 0, 249 }, 250 GoTypes: file_transport_internet_websocket_config_proto_goTypes, 251 DependencyIndexes: file_transport_internet_websocket_config_proto_depIdxs, 252 MessageInfos: file_transport_internet_websocket_config_proto_msgTypes, 253 }.Build() 254 File_transport_internet_websocket_config_proto = out.File 255 file_transport_internet_websocket_config_proto_rawDesc = nil 256 file_transport_internet_websocket_config_proto_goTypes = nil 257 file_transport_internet_websocket_config_proto_depIdxs = nil 258 }