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