github.com/moqsien/xraycore@v1.8.5/transport/internet/http/config.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.30.0
     4  // 	protoc        v4.23.1
     5  // source: transport/internet/http/config.proto
     6  
     7  package http
     8  
     9  import (
    10  	http "github.com/moqsien/xraycore/transport/internet/headers/http"
    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  type Config struct {
    25  	state         protoimpl.MessageState
    26  	sizeCache     protoimpl.SizeCache
    27  	unknownFields protoimpl.UnknownFields
    28  
    29  	Host               []string       `protobuf:"bytes,1,rep,name=host,proto3" json:"host,omitempty"`
    30  	Path               string         `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
    31  	IdleTimeout        int32          `protobuf:"varint,3,opt,name=idle_timeout,json=idleTimeout,proto3" json:"idle_timeout,omitempty"`
    32  	HealthCheckTimeout int32          `protobuf:"varint,4,opt,name=health_check_timeout,json=healthCheckTimeout,proto3" json:"health_check_timeout,omitempty"`
    33  	Method             string         `protobuf:"bytes,5,opt,name=method,proto3" json:"method,omitempty"`
    34  	Header             []*http.Header `protobuf:"bytes,6,rep,name=header,proto3" json:"header,omitempty"`
    35  }
    36  
    37  func (x *Config) Reset() {
    38  	*x = Config{}
    39  	if protoimpl.UnsafeEnabled {
    40  		mi := &file_transport_internet_http_config_proto_msgTypes[0]
    41  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    42  		ms.StoreMessageInfo(mi)
    43  	}
    44  }
    45  
    46  func (x *Config) String() string {
    47  	return protoimpl.X.MessageStringOf(x)
    48  }
    49  
    50  func (*Config) ProtoMessage() {}
    51  
    52  func (x *Config) ProtoReflect() protoreflect.Message {
    53  	mi := &file_transport_internet_http_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 Config.ProtoReflect.Descriptor instead.
    65  func (*Config) Descriptor() ([]byte, []int) {
    66  	return file_transport_internet_http_config_proto_rawDescGZIP(), []int{0}
    67  }
    68  
    69  func (x *Config) GetHost() []string {
    70  	if x != nil {
    71  		return x.Host
    72  	}
    73  	return nil
    74  }
    75  
    76  func (x *Config) GetPath() string {
    77  	if x != nil {
    78  		return x.Path
    79  	}
    80  	return ""
    81  }
    82  
    83  func (x *Config) GetIdleTimeout() int32 {
    84  	if x != nil {
    85  		return x.IdleTimeout
    86  	}
    87  	return 0
    88  }
    89  
    90  func (x *Config) GetHealthCheckTimeout() int32 {
    91  	if x != nil {
    92  		return x.HealthCheckTimeout
    93  	}
    94  	return 0
    95  }
    96  
    97  func (x *Config) GetMethod() string {
    98  	if x != nil {
    99  		return x.Method
   100  	}
   101  	return ""
   102  }
   103  
   104  func (x *Config) GetHeader() []*http.Header {
   105  	if x != nil {
   106  		return x.Header
   107  	}
   108  	return nil
   109  }
   110  
   111  var File_transport_internet_http_config_proto protoreflect.FileDescriptor
   112  
   113  var file_transport_internet_http_config_proto_rawDesc = []byte{
   114  	0x0a, 0x24, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
   115  	0x72, 0x6e, 0x65, 0x74, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   116  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61,
   117  	0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e,
   118  	0x68, 0x74, 0x74, 0x70, 0x1a, 0x2c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f,
   119  	0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73,
   120  	0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f,
   121  	0x74, 0x6f, 0x22, 0xe3, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a,
   122  	0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73,
   123  	0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
   124  	0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x64, 0x6c, 0x65, 0x5f, 0x74, 0x69,
   125  	0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x69, 0x64, 0x6c,
   126  	0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x68, 0x65, 0x61, 0x6c,
   127  	0x74, 0x68, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
   128  	0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68,
   129  	0x65, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65,
   130  	0x74, 0x68, 0x6f, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68,
   131  	0x6f, 0x64, 0x12, 0x44, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x06, 0x20, 0x03,
   132  	0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
   133  	0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x65, 0x61,
   134  	0x64, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
   135  	0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x76, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e,
   136  	0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69,
   137  	0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x50, 0x01, 0x5a, 0x31,
   138  	0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f,
   139  	0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
   140  	0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x68, 0x74, 0x74,
   141  	0x70, 0xaa, 0x02, 0x1c, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
   142  	0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x48, 0x74, 0x74, 0x70,
   143  	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   144  }
   145  
   146  var (
   147  	file_transport_internet_http_config_proto_rawDescOnce sync.Once
   148  	file_transport_internet_http_config_proto_rawDescData = file_transport_internet_http_config_proto_rawDesc
   149  )
   150  
   151  func file_transport_internet_http_config_proto_rawDescGZIP() []byte {
   152  	file_transport_internet_http_config_proto_rawDescOnce.Do(func() {
   153  		file_transport_internet_http_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_http_config_proto_rawDescData)
   154  	})
   155  	return file_transport_internet_http_config_proto_rawDescData
   156  }
   157  
   158  var file_transport_internet_http_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   159  var file_transport_internet_http_config_proto_goTypes = []interface{}{
   160  	(*Config)(nil),      // 0: xray.transport.internet.http.Config
   161  	(*http.Header)(nil), // 1: xray.transport.internet.headers.http.Header
   162  }
   163  var file_transport_internet_http_config_proto_depIdxs = []int32{
   164  	1, // 0: xray.transport.internet.http.Config.header:type_name -> xray.transport.internet.headers.http.Header
   165  	1, // [1:1] is the sub-list for method output_type
   166  	1, // [1:1] is the sub-list for method input_type
   167  	1, // [1:1] is the sub-list for extension type_name
   168  	1, // [1:1] is the sub-list for extension extendee
   169  	0, // [0:1] is the sub-list for field type_name
   170  }
   171  
   172  func init() { file_transport_internet_http_config_proto_init() }
   173  func file_transport_internet_http_config_proto_init() {
   174  	if File_transport_internet_http_config_proto != nil {
   175  		return
   176  	}
   177  	if !protoimpl.UnsafeEnabled {
   178  		file_transport_internet_http_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   179  			switch v := v.(*Config); i {
   180  			case 0:
   181  				return &v.state
   182  			case 1:
   183  				return &v.sizeCache
   184  			case 2:
   185  				return &v.unknownFields
   186  			default:
   187  				return nil
   188  			}
   189  		}
   190  	}
   191  	type x struct{}
   192  	out := protoimpl.TypeBuilder{
   193  		File: protoimpl.DescBuilder{
   194  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   195  			RawDescriptor: file_transport_internet_http_config_proto_rawDesc,
   196  			NumEnums:      0,
   197  			NumMessages:   1,
   198  			NumExtensions: 0,
   199  			NumServices:   0,
   200  		},
   201  		GoTypes:           file_transport_internet_http_config_proto_goTypes,
   202  		DependencyIndexes: file_transport_internet_http_config_proto_depIdxs,
   203  		MessageInfos:      file_transport_internet_http_config_proto_msgTypes,
   204  	}.Build()
   205  	File_transport_internet_http_config_proto = out.File
   206  	file_transport_internet_http_config_proto_rawDesc = nil
   207  	file_transport_internet_http_config_proto_goTypes = nil
   208  	file_transport_internet_http_config_proto_depIdxs = nil
   209  }