github.com/EagleQL/Xray-core@v1.4.3/transport/internet/websocket/config.pb.go (about)

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