github.com/xmplusdev/xray-core@v1.8.10/transport/internet/websocket/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/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 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"` // URL path to the WebSocket service. Empty value means root(/). 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_websocket_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_websocket_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_websocket_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_websocket_config_proto protoreflect.FileDescriptor 103 104 var file_transport_internet_websocket_config_proto_rawDesc = []byte{ 105 0x0a, 0x29, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 106 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2f, 0x63, 107 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x78, 0x72, 0x61, 108 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 109 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x22, 0xfe, 110 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 111 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 112 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 113 0x68, 0x12, 0x4d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 114 0x0b, 0x32, 0x35, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 115 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x77, 0x65, 0x62, 0x73, 116 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x48, 0x65, 0x61, 117 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 118 0x12, 0x32, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 119 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 120 0x13, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, 121 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 122 0x52, 0x02, 0x65, 0x64, 0x1a, 0x39, 0x0a, 0x0b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x45, 0x6e, 123 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 124 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 125 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 126 0x85, 0x01, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 127 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 128 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x69, 0x74, 129 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 130 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 131 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 132 0x6b, 0x65, 0x74, 0xaa, 0x02, 0x21, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 133 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x57, 0x65, 134 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 135 } 136 137 var ( 138 file_transport_internet_websocket_config_proto_rawDescOnce sync.Once 139 file_transport_internet_websocket_config_proto_rawDescData = file_transport_internet_websocket_config_proto_rawDesc 140 ) 141 142 func file_transport_internet_websocket_config_proto_rawDescGZIP() []byte { 143 file_transport_internet_websocket_config_proto_rawDescOnce.Do(func() { 144 file_transport_internet_websocket_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_websocket_config_proto_rawDescData) 145 }) 146 return file_transport_internet_websocket_config_proto_rawDescData 147 } 148 149 var file_transport_internet_websocket_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 150 var file_transport_internet_websocket_config_proto_goTypes = []interface{}{ 151 (*Config)(nil), // 0: xray.transport.internet.websocket.Config 152 nil, // 1: xray.transport.internet.websocket.Config.HeaderEntry 153 } 154 var file_transport_internet_websocket_config_proto_depIdxs = []int32{ 155 1, // 0: xray.transport.internet.websocket.Config.header:type_name -> xray.transport.internet.websocket.Config.HeaderEntry 156 1, // [1:1] is the sub-list for method output_type 157 1, // [1:1] is the sub-list for method input_type 158 1, // [1:1] is the sub-list for extension type_name 159 1, // [1:1] is the sub-list for extension extendee 160 0, // [0:1] is the sub-list for field type_name 161 } 162 163 func init() { file_transport_internet_websocket_config_proto_init() } 164 func file_transport_internet_websocket_config_proto_init() { 165 if File_transport_internet_websocket_config_proto != nil { 166 return 167 } 168 if !protoimpl.UnsafeEnabled { 169 file_transport_internet_websocket_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 170 switch v := v.(*Config); i { 171 case 0: 172 return &v.state 173 case 1: 174 return &v.sizeCache 175 case 2: 176 return &v.unknownFields 177 default: 178 return nil 179 } 180 } 181 } 182 type x struct{} 183 out := protoimpl.TypeBuilder{ 184 File: protoimpl.DescBuilder{ 185 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 186 RawDescriptor: file_transport_internet_websocket_config_proto_rawDesc, 187 NumEnums: 0, 188 NumMessages: 2, 189 NumExtensions: 0, 190 NumServices: 0, 191 }, 192 GoTypes: file_transport_internet_websocket_config_proto_goTypes, 193 DependencyIndexes: file_transport_internet_websocket_config_proto_depIdxs, 194 MessageInfos: file_transport_internet_websocket_config_proto_msgTypes, 195 }.Build() 196 File_transport_internet_websocket_config_proto = out.File 197 file_transport_internet_websocket_config_proto_rawDesc = nil 198 file_transport_internet_websocket_config_proto_goTypes = nil 199 file_transport_internet_websocket_config_proto_depIdxs = nil 200 }