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

     1  package simplified
     2  
     3  import (
     4  	reflect "reflect"
     5  	sync "sync"
     6  
     7  	net "github.com/imannamdari/v2ray-core/v5/common/net"
     8  	_ "github.com/imannamdari/v2ray-core/v5/common/protoext"
     9  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    10  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    11  )
    12  
    13  const (
    14  	// Verify that this generated code is sufficiently up-to-date.
    15  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    16  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    17  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    18  )
    19  
    20  type ServerConfig struct {
    21  	state         protoimpl.MessageState
    22  	sizeCache     protoimpl.SizeCache
    23  	unknownFields protoimpl.UnknownFields
    24  }
    25  
    26  func (x *ServerConfig) Reset() {
    27  	*x = ServerConfig{}
    28  	if protoimpl.UnsafeEnabled {
    29  		mi := &file_proxy_http_simplified_config_proto_msgTypes[0]
    30  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    31  		ms.StoreMessageInfo(mi)
    32  	}
    33  }
    34  
    35  func (x *ServerConfig) String() string {
    36  	return protoimpl.X.MessageStringOf(x)
    37  }
    38  
    39  func (*ServerConfig) ProtoMessage() {}
    40  
    41  func (x *ServerConfig) ProtoReflect() protoreflect.Message {
    42  	mi := &file_proxy_http_simplified_config_proto_msgTypes[0]
    43  	if protoimpl.UnsafeEnabled && x != nil {
    44  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    45  		if ms.LoadMessageInfo() == nil {
    46  			ms.StoreMessageInfo(mi)
    47  		}
    48  		return ms
    49  	}
    50  	return mi.MessageOf(x)
    51  }
    52  
    53  // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
    54  func (*ServerConfig) Descriptor() ([]byte, []int) {
    55  	return file_proxy_http_simplified_config_proto_rawDescGZIP(), []int{0}
    56  }
    57  
    58  type ClientConfig struct {
    59  	state         protoimpl.MessageState
    60  	sizeCache     protoimpl.SizeCache
    61  	unknownFields protoimpl.UnknownFields
    62  
    63  	Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
    64  	Port    uint32          `protobuf:"varint,2,opt,name=port,proto3" json:"port,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  var File_proxy_http_simplified_config_proto protoreflect.FileDescriptor
   114  
   115  var file_proxy_http_simplified_config_proto_rawDesc = []byte{
   116  	0x0a, 0x22, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x73, 0x69, 0x6d,
   117  	0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70,
   118  	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
   119  	0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x73, 0x69, 0x6d, 0x70,
   120  	0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70,
   121  	0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
   122  	0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
   123  	0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f,
   124  	0x74, 0x6f, 0x22, 0x27, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66,
   125  	0x69, 0x67, 0x3a, 0x17, 0x82, 0xb5, 0x18, 0x09, 0x0a, 0x07, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e,
   126  	0x64, 0x82, 0xb5, 0x18, 0x06, 0x12, 0x04, 0x68, 0x74, 0x74, 0x70, 0x22, 0x79, 0x0a, 0x0c, 0x43,
   127  	0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x07, 0x61,
   128  	0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76,
   129  	0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
   130  	0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52,
   131  	0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74,
   132  	0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x3a, 0x18, 0x82, 0xb5,
   133  	0x18, 0x0a, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x82, 0xb5, 0x18, 0x06,
   134  	0x12, 0x04, 0x68, 0x74, 0x74, 0x70, 0x42, 0x81, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x76,
   135  	0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e,
   136  	0x68, 0x74, 0x74, 0x70, 0x2e, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x50,
   137  	0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32,
   138  	0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76,
   139  	0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x73, 0x69, 0x6d,
   140  	0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0xaa, 0x02, 0x20, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e,
   141  	0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x2e,
   142  	0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
   143  	0x6f, 0x33,
   144  }
   145  
   146  var (
   147  	file_proxy_http_simplified_config_proto_rawDescOnce sync.Once
   148  	file_proxy_http_simplified_config_proto_rawDescData = file_proxy_http_simplified_config_proto_rawDesc
   149  )
   150  
   151  func file_proxy_http_simplified_config_proto_rawDescGZIP() []byte {
   152  	file_proxy_http_simplified_config_proto_rawDescOnce.Do(func() {
   153  		file_proxy_http_simplified_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_http_simplified_config_proto_rawDescData)
   154  	})
   155  	return file_proxy_http_simplified_config_proto_rawDescData
   156  }
   157  
   158  var file_proxy_http_simplified_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   159  var file_proxy_http_simplified_config_proto_goTypes = []interface{}{
   160  	(*ServerConfig)(nil),   // 0: v2ray.core.proxy.http.simplified.ServerConfig
   161  	(*ClientConfig)(nil),   // 1: v2ray.core.proxy.http.simplified.ClientConfig
   162  	(*net.IPOrDomain)(nil), // 2: v2ray.core.common.net.IPOrDomain
   163  }
   164  var file_proxy_http_simplified_config_proto_depIdxs = []int32{
   165  	2, // 0: v2ray.core.proxy.http.simplified.ClientConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
   166  	1, // [1:1] is the sub-list for method output_type
   167  	1, // [1:1] is the sub-list for method input_type
   168  	1, // [1:1] is the sub-list for extension type_name
   169  	1, // [1:1] is the sub-list for extension extendee
   170  	0, // [0:1] is the sub-list for field type_name
   171  }
   172  
   173  func init() { file_proxy_http_simplified_config_proto_init() }
   174  func file_proxy_http_simplified_config_proto_init() {
   175  	if File_proxy_http_simplified_config_proto != nil {
   176  		return
   177  	}
   178  	if !protoimpl.UnsafeEnabled {
   179  		file_proxy_http_simplified_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   180  			switch v := v.(*ServerConfig); i {
   181  			case 0:
   182  				return &v.state
   183  			case 1:
   184  				return &v.sizeCache
   185  			case 2:
   186  				return &v.unknownFields
   187  			default:
   188  				return nil
   189  			}
   190  		}
   191  		file_proxy_http_simplified_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   192  			switch v := v.(*ClientConfig); i {
   193  			case 0:
   194  				return &v.state
   195  			case 1:
   196  				return &v.sizeCache
   197  			case 2:
   198  				return &v.unknownFields
   199  			default:
   200  				return nil
   201  			}
   202  		}
   203  	}
   204  	type x struct{}
   205  	out := protoimpl.TypeBuilder{
   206  		File: protoimpl.DescBuilder{
   207  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   208  			RawDescriptor: file_proxy_http_simplified_config_proto_rawDesc,
   209  			NumEnums:      0,
   210  			NumMessages:   2,
   211  			NumExtensions: 0,
   212  			NumServices:   0,
   213  		},
   214  		GoTypes:           file_proxy_http_simplified_config_proto_goTypes,
   215  		DependencyIndexes: file_proxy_http_simplified_config_proto_depIdxs,
   216  		MessageInfos:      file_proxy_http_simplified_config_proto_msgTypes,
   217  	}.Build()
   218  	File_proxy_http_simplified_config_proto = out.File
   219  	file_proxy_http_simplified_config_proto_rawDesc = nil
   220  	file_proxy_http_simplified_config_proto_goTypes = nil
   221  	file_proxy_http_simplified_config_proto_depIdxs = nil
   222  }