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

     1  package simplified
     2  
     3  import (
     4  	net "github.com/v2fly/v2ray-core/v5/common/net"
     5  	_ "github.com/v2fly/v2ray-core/v5/common/protoext"
     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 ServerConfig struct {
    20  	state         protoimpl.MessageState
    21  	sizeCache     protoimpl.SizeCache
    22  	unknownFields protoimpl.UnknownFields
    23  }
    24  
    25  func (x *ServerConfig) Reset() {
    26  	*x = ServerConfig{}
    27  	if protoimpl.UnsafeEnabled {
    28  		mi := &file_proxy_http_simplified_config_proto_msgTypes[0]
    29  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    30  		ms.StoreMessageInfo(mi)
    31  	}
    32  }
    33  
    34  func (x *ServerConfig) String() string {
    35  	return protoimpl.X.MessageStringOf(x)
    36  }
    37  
    38  func (*ServerConfig) ProtoMessage() {}
    39  
    40  func (x *ServerConfig) ProtoReflect() protoreflect.Message {
    41  	mi := &file_proxy_http_simplified_config_proto_msgTypes[0]
    42  	if protoimpl.UnsafeEnabled && x != nil {
    43  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    44  		if ms.LoadMessageInfo() == nil {
    45  			ms.StoreMessageInfo(mi)
    46  		}
    47  		return ms
    48  	}
    49  	return mi.MessageOf(x)
    50  }
    51  
    52  // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
    53  func (*ServerConfig) Descriptor() ([]byte, []int) {
    54  	return file_proxy_http_simplified_config_proto_rawDescGZIP(), []int{0}
    55  }
    56  
    57  type ClientConfig struct {
    58  	state         protoimpl.MessageState
    59  	sizeCache     protoimpl.SizeCache
    60  	unknownFields protoimpl.UnknownFields
    61  
    62  	Address            *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
    63  	Port               uint32          `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
    64  	H1SkipWaitForReply bool            `protobuf:"varint,3,opt,name=h1_skip_wait_for_reply,json=h1SkipWaitForReply,proto3" json:"h1_skip_wait_for_reply,omitempty"`
    65  }
    66  
    67  func (x *ClientConfig) Reset() {
    68  	*x = ClientConfig{}
    69  	if protoimpl.UnsafeEnabled {
    70  		mi := &file_proxy_http_simplified_config_proto_msgTypes[1]
    71  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    72  		ms.StoreMessageInfo(mi)
    73  	}
    74  }
    75  
    76  func (x *ClientConfig) String() string {
    77  	return protoimpl.X.MessageStringOf(x)
    78  }
    79  
    80  func (*ClientConfig) ProtoMessage() {}
    81  
    82  func (x *ClientConfig) ProtoReflect() protoreflect.Message {
    83  	mi := &file_proxy_http_simplified_config_proto_msgTypes[1]
    84  	if protoimpl.UnsafeEnabled && x != nil {
    85  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    86  		if ms.LoadMessageInfo() == nil {
    87  			ms.StoreMessageInfo(mi)
    88  		}
    89  		return ms
    90  	}
    91  	return mi.MessageOf(x)
    92  }
    93  
    94  // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
    95  func (*ClientConfig) Descriptor() ([]byte, []int) {
    96  	return file_proxy_http_simplified_config_proto_rawDescGZIP(), []int{1}
    97  }
    98  
    99  func (x *ClientConfig) GetAddress() *net.IPOrDomain {
   100  	if x != nil {
   101  		return x.Address
   102  	}
   103  	return nil
   104  }
   105  
   106  func (x *ClientConfig) GetPort() uint32 {
   107  	if x != nil {
   108  		return x.Port
   109  	}
   110  	return 0
   111  }
   112  
   113  func (x *ClientConfig) GetH1SkipWaitForReply() bool {
   114  	if x != nil {
   115  		return x.H1SkipWaitForReply
   116  	}
   117  	return false
   118  }
   119  
   120  var File_proxy_http_simplified_config_proto protoreflect.FileDescriptor
   121  
   122  var file_proxy_http_simplified_config_proto_rawDesc = []byte{
   123  	0x0a, 0x22, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x73, 0x69, 0x6d,
   124  	0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70,
   125  	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
   126  	0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x73, 0x69, 0x6d, 0x70,
   127  	0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70,
   128  	0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
   129  	0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
   130  	0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f,
   131  	0x74, 0x6f, 0x22, 0x23, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66,
   132  	0x69, 0x67, 0x3a, 0x13, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x07, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e,
   133  	0x64, 0x12, 0x04, 0x68, 0x74, 0x74, 0x70, 0x22, 0xa9, 0x01, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65,
   134  	0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72,
   135  	0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61,
   136  	0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65,
   137  	0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64,
   138  	0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20,
   139  	0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x32, 0x0a, 0x16, 0x68, 0x31, 0x5f,
   140  	0x73, 0x6b, 0x69, 0x70, 0x5f, 0x77, 0x61, 0x69, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x72, 0x65,
   141  	0x70, 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x68, 0x31, 0x53, 0x6b, 0x69,
   142  	0x70, 0x57, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x3a, 0x14, 0x82,
   143  	0xb5, 0x18, 0x10, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x04, 0x68,
   144  	0x74, 0x74, 0x70, 0x42, 0x81, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61,
   145  	0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x68, 0x74, 0x74,
   146  	0x70, 0x2e, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x50, 0x01, 0x5a, 0x34,
   147  	0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79,
   148  	0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70,
   149  	0x72, 0x6f, 0x78, 0x79, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69,
   150  	0x66, 0x69, 0x65, 0x64, 0xaa, 0x02, 0x20, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72,
   151  	0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x2e, 0x53, 0x69, 0x6d,
   152  	0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   153  }
   154  
   155  var (
   156  	file_proxy_http_simplified_config_proto_rawDescOnce sync.Once
   157  	file_proxy_http_simplified_config_proto_rawDescData = file_proxy_http_simplified_config_proto_rawDesc
   158  )
   159  
   160  func file_proxy_http_simplified_config_proto_rawDescGZIP() []byte {
   161  	file_proxy_http_simplified_config_proto_rawDescOnce.Do(func() {
   162  		file_proxy_http_simplified_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_http_simplified_config_proto_rawDescData)
   163  	})
   164  	return file_proxy_http_simplified_config_proto_rawDescData
   165  }
   166  
   167  var file_proxy_http_simplified_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   168  var file_proxy_http_simplified_config_proto_goTypes = []interface{}{
   169  	(*ServerConfig)(nil),   // 0: v2ray.core.proxy.http.simplified.ServerConfig
   170  	(*ClientConfig)(nil),   // 1: v2ray.core.proxy.http.simplified.ClientConfig
   171  	(*net.IPOrDomain)(nil), // 2: v2ray.core.common.net.IPOrDomain
   172  }
   173  var file_proxy_http_simplified_config_proto_depIdxs = []int32{
   174  	2, // 0: v2ray.core.proxy.http.simplified.ClientConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
   175  	1, // [1:1] is the sub-list for method output_type
   176  	1, // [1:1] is the sub-list for method input_type
   177  	1, // [1:1] is the sub-list for extension type_name
   178  	1, // [1:1] is the sub-list for extension extendee
   179  	0, // [0:1] is the sub-list for field type_name
   180  }
   181  
   182  func init() { file_proxy_http_simplified_config_proto_init() }
   183  func file_proxy_http_simplified_config_proto_init() {
   184  	if File_proxy_http_simplified_config_proto != nil {
   185  		return
   186  	}
   187  	if !protoimpl.UnsafeEnabled {
   188  		file_proxy_http_simplified_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   189  			switch v := v.(*ServerConfig); i {
   190  			case 0:
   191  				return &v.state
   192  			case 1:
   193  				return &v.sizeCache
   194  			case 2:
   195  				return &v.unknownFields
   196  			default:
   197  				return nil
   198  			}
   199  		}
   200  		file_proxy_http_simplified_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   201  			switch v := v.(*ClientConfig); i {
   202  			case 0:
   203  				return &v.state
   204  			case 1:
   205  				return &v.sizeCache
   206  			case 2:
   207  				return &v.unknownFields
   208  			default:
   209  				return nil
   210  			}
   211  		}
   212  	}
   213  	type x struct{}
   214  	out := protoimpl.TypeBuilder{
   215  		File: protoimpl.DescBuilder{
   216  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   217  			RawDescriptor: file_proxy_http_simplified_config_proto_rawDesc,
   218  			NumEnums:      0,
   219  			NumMessages:   2,
   220  			NumExtensions: 0,
   221  			NumServices:   0,
   222  		},
   223  		GoTypes:           file_proxy_http_simplified_config_proto_goTypes,
   224  		DependencyIndexes: file_proxy_http_simplified_config_proto_depIdxs,
   225  		MessageInfos:      file_proxy_http_simplified_config_proto_msgTypes,
   226  	}.Build()
   227  	File_proxy_http_simplified_config_proto = out.File
   228  	file_proxy_http_simplified_config_proto_rawDesc = nil
   229  	file_proxy_http_simplified_config_proto_goTypes = nil
   230  	file_proxy_http_simplified_config_proto_depIdxs = nil
   231  }