github.com/imannamdari/v2ray-core/v5@v5.0.5/transport/internet/http/config.pb.go (about)

     1  package http
     2  
     3  import (
     4  	reflect "reflect"
     5  	sync "sync"
     6  
     7  	http "github.com/imannamdari/v2ray-core/v5/transport/internet/headers/http"
     8  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
     9  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    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, 0x2c, 0x74, 0x72, 0x61, 0x6e,
    98  	0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x68,
    99  	0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x63, 0x6f, 0x6e, 0x66,
   100  	0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x94, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e,
   101  	0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28,
   102  	0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18,
   103  	0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x6d,
   104  	0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74,
   105  	0x68, 0x6f, 0x64, 0x12, 0x4a, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20,
   106  	0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
   107  	0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72,
   108  	0x6e, 0x65, 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70,
   109  	0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42,
   110  	0x87, 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
   111  	0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74,
   112  	0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x69,
   113  	0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76,
   114  	0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x74, 0x72, 0x61,
   115  	0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f,
   116  	0x68, 0x74, 0x74, 0x70, 0xaa, 0x02, 0x22, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72,
   117  	0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65,
   118  	0x72, 0x6e, 0x65, 0x74, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   119  	0x33,
   120  }
   121  
   122  var (
   123  	file_transport_internet_http_config_proto_rawDescOnce sync.Once
   124  	file_transport_internet_http_config_proto_rawDescData = file_transport_internet_http_config_proto_rawDesc
   125  )
   126  
   127  func file_transport_internet_http_config_proto_rawDescGZIP() []byte {
   128  	file_transport_internet_http_config_proto_rawDescOnce.Do(func() {
   129  		file_transport_internet_http_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_http_config_proto_rawDescData)
   130  	})
   131  	return file_transport_internet_http_config_proto_rawDescData
   132  }
   133  
   134  var file_transport_internet_http_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   135  var file_transport_internet_http_config_proto_goTypes = []interface{}{
   136  	(*Config)(nil),      // 0: v2ray.core.transport.internet.http.Config
   137  	(*http.Header)(nil), // 1: v2ray.core.transport.internet.headers.http.Header
   138  }
   139  var file_transport_internet_http_config_proto_depIdxs = []int32{
   140  	1, // 0: v2ray.core.transport.internet.http.Config.header:type_name -> v2ray.core.transport.internet.headers.http.Header
   141  	1, // [1:1] is the sub-list for method output_type
   142  	1, // [1:1] is the sub-list for method input_type
   143  	1, // [1:1] is the sub-list for extension type_name
   144  	1, // [1:1] is the sub-list for extension extendee
   145  	0, // [0:1] is the sub-list for field type_name
   146  }
   147  
   148  func init() { file_transport_internet_http_config_proto_init() }
   149  func file_transport_internet_http_config_proto_init() {
   150  	if File_transport_internet_http_config_proto != nil {
   151  		return
   152  	}
   153  	if !protoimpl.UnsafeEnabled {
   154  		file_transport_internet_http_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   155  			switch v := v.(*Config); i {
   156  			case 0:
   157  				return &v.state
   158  			case 1:
   159  				return &v.sizeCache
   160  			case 2:
   161  				return &v.unknownFields
   162  			default:
   163  				return nil
   164  			}
   165  		}
   166  	}
   167  	type x struct{}
   168  	out := protoimpl.TypeBuilder{
   169  		File: protoimpl.DescBuilder{
   170  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   171  			RawDescriptor: file_transport_internet_http_config_proto_rawDesc,
   172  			NumEnums:      0,
   173  			NumMessages:   1,
   174  			NumExtensions: 0,
   175  			NumServices:   0,
   176  		},
   177  		GoTypes:           file_transport_internet_http_config_proto_goTypes,
   178  		DependencyIndexes: file_transport_internet_http_config_proto_depIdxs,
   179  		MessageInfos:      file_transport_internet_http_config_proto_msgTypes,
   180  	}.Build()
   181  	File_transport_internet_http_config_proto = out.File
   182  	file_transport_internet_http_config_proto_rawDesc = nil
   183  	file_transport_internet_http_config_proto_goTypes = nil
   184  	file_transport_internet_http_config_proto_depIdxs = nil
   185  }