github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/transport/internet/http/config.pb.go (about)

     1  package http
     2  
     3  import (
     4  	_ "github.com/v2fly/v2ray-core/v5/common/protoext"
     5  	http "github.com/v2fly/v2ray-core/v5/transport/internet/headers/http"
     6  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
     7  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
     8  	reflect "reflect"
     9  	sync "sync"
    10  )
    11  
    12  const (
    13  	// Verify that this generated code is sufficiently up-to-date.
    14  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    15  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    16  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    17  )
    18  
    19  type Config struct {
    20  	state         protoimpl.MessageState
    21  	sizeCache     protoimpl.SizeCache
    22  	unknownFields protoimpl.UnknownFields
    23  
    24  	Host   []string       `protobuf:"bytes,1,rep,name=host,proto3" json:"host,omitempty"`
    25  	Path   string         `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
    26  	Method string         `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
    27  	Header []*http.Header `protobuf:"bytes,4,rep,name=header,proto3" json:"header,omitempty"`
    28  }
    29  
    30  func (x *Config) Reset() {
    31  	*x = Config{}
    32  	if protoimpl.UnsafeEnabled {
    33  		mi := &file_transport_internet_http_config_proto_msgTypes[0]
    34  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    35  		ms.StoreMessageInfo(mi)
    36  	}
    37  }
    38  
    39  func (x *Config) String() string {
    40  	return protoimpl.X.MessageStringOf(x)
    41  }
    42  
    43  func (*Config) ProtoMessage() {}
    44  
    45  func (x *Config) ProtoReflect() protoreflect.Message {
    46  	mi := &file_transport_internet_http_config_proto_msgTypes[0]
    47  	if protoimpl.UnsafeEnabled && x != nil {
    48  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    49  		if ms.LoadMessageInfo() == nil {
    50  			ms.StoreMessageInfo(mi)
    51  		}
    52  		return ms
    53  	}
    54  	return mi.MessageOf(x)
    55  }
    56  
    57  // Deprecated: Use Config.ProtoReflect.Descriptor instead.
    58  func (*Config) Descriptor() ([]byte, []int) {
    59  	return file_transport_internet_http_config_proto_rawDescGZIP(), []int{0}
    60  }
    61  
    62  func (x *Config) GetHost() []string {
    63  	if x != nil {
    64  		return x.Host
    65  	}
    66  	return nil
    67  }
    68  
    69  func (x *Config) GetPath() string {
    70  	if x != nil {
    71  		return x.Path
    72  	}
    73  	return ""
    74  }
    75  
    76  func (x *Config) GetMethod() string {
    77  	if x != nil {
    78  		return x.Method
    79  	}
    80  	return ""
    81  }
    82  
    83  func (x *Config) GetHeader() []*http.Header {
    84  	if x != nil {
    85  		return x.Header
    86  	}
    87  	return nil
    88  }
    89  
    90  var File_transport_internet_http_config_proto protoreflect.FileDescriptor
    91  
    92  var file_transport_internet_http_config_proto_rawDesc = []byte{
    93  	0x0a, 0x24, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
    94  	0x72, 0x6e, 0x65, 0x74, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
    95  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
    96  	0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74,
    97  	0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d,
    98  	0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65,
    99  	0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x74, 0x72,
   100  	0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
   101  	0x2f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x63, 0x6f,
   102  	0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb1, 0x01, 0x0a, 0x06, 0x43,
   103  	0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20,
   104  	0x03, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74,
   105  	0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a,
   106  	0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d,
   107  	0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x4a, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18,
   108  	0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
   109  	0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74,
   110  	0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74,
   111  	0x74, 0x70, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65,
   112  	0x72, 0x3a, 0x1b, 0x82, 0xb5, 0x18, 0x17, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
   113  	0x72, 0x74, 0x12, 0x02, 0x68, 0x32, 0x8a, 0xff, 0x29, 0x04, 0x68, 0x74, 0x74, 0x70, 0x42, 0x87,
   114  	0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
   115  	0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
   116  	0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x69, 0x74,
   117  	0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32,
   118  	0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x74, 0x72, 0x61, 0x6e,
   119  	0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x68,
   120  	0x74, 0x74, 0x70, 0xaa, 0x02, 0x22, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65,
   121  	0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72,
   122  	0x6e, 0x65, 0x74, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   123  }
   124  
   125  var (
   126  	file_transport_internet_http_config_proto_rawDescOnce sync.Once
   127  	file_transport_internet_http_config_proto_rawDescData = file_transport_internet_http_config_proto_rawDesc
   128  )
   129  
   130  func file_transport_internet_http_config_proto_rawDescGZIP() []byte {
   131  	file_transport_internet_http_config_proto_rawDescOnce.Do(func() {
   132  		file_transport_internet_http_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_http_config_proto_rawDescData)
   133  	})
   134  	return file_transport_internet_http_config_proto_rawDescData
   135  }
   136  
   137  var file_transport_internet_http_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   138  var file_transport_internet_http_config_proto_goTypes = []interface{}{
   139  	(*Config)(nil),      // 0: v2ray.core.transport.internet.http.Config
   140  	(*http.Header)(nil), // 1: v2ray.core.transport.internet.headers.http.Header
   141  }
   142  var file_transport_internet_http_config_proto_depIdxs = []int32{
   143  	1, // 0: v2ray.core.transport.internet.http.Config.header:type_name -> v2ray.core.transport.internet.headers.http.Header
   144  	1, // [1:1] is the sub-list for method output_type
   145  	1, // [1:1] is the sub-list for method input_type
   146  	1, // [1:1] is the sub-list for extension type_name
   147  	1, // [1:1] is the sub-list for extension extendee
   148  	0, // [0:1] is the sub-list for field type_name
   149  }
   150  
   151  func init() { file_transport_internet_http_config_proto_init() }
   152  func file_transport_internet_http_config_proto_init() {
   153  	if File_transport_internet_http_config_proto != nil {
   154  		return
   155  	}
   156  	if !protoimpl.UnsafeEnabled {
   157  		file_transport_internet_http_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   158  			switch v := v.(*Config); i {
   159  			case 0:
   160  				return &v.state
   161  			case 1:
   162  				return &v.sizeCache
   163  			case 2:
   164  				return &v.unknownFields
   165  			default:
   166  				return nil
   167  			}
   168  		}
   169  	}
   170  	type x struct{}
   171  	out := protoimpl.TypeBuilder{
   172  		File: protoimpl.DescBuilder{
   173  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   174  			RawDescriptor: file_transport_internet_http_config_proto_rawDesc,
   175  			NumEnums:      0,
   176  			NumMessages:   1,
   177  			NumExtensions: 0,
   178  			NumServices:   0,
   179  		},
   180  		GoTypes:           file_transport_internet_http_config_proto_goTypes,
   181  		DependencyIndexes: file_transport_internet_http_config_proto_depIdxs,
   182  		MessageInfos:      file_transport_internet_http_config_proto_msgTypes,
   183  	}.Build()
   184  	File_transport_internet_http_config_proto = out.File
   185  	file_transport_internet_http_config_proto_rawDesc = nil
   186  	file_transport_internet_http_config_proto_goTypes = nil
   187  	file_transport_internet_http_config_proto_depIdxs = nil
   188  }