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

     1  package outbound
     2  
     3  import (
     4  	reflect "reflect"
     5  	sync "sync"
     6  
     7  	net "github.com/imannamdari/v2ray-core/v5/common/net"
     8  	protocol "github.com/imannamdari/v2ray-core/v5/common/protocol"
     9  	_ "github.com/imannamdari/v2ray-core/v5/common/protoext"
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  )
    13  
    14  const (
    15  	// Verify that this generated code is sufficiently up-to-date.
    16  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    17  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    19  )
    20  
    21  type Config struct {
    22  	state         protoimpl.MessageState
    23  	sizeCache     protoimpl.SizeCache
    24  	unknownFields protoimpl.UnknownFields
    25  
    26  	Receiver []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=Receiver,proto3" json:"Receiver,omitempty"`
    27  }
    28  
    29  func (x *Config) Reset() {
    30  	*x = Config{}
    31  	if protoimpl.UnsafeEnabled {
    32  		mi := &file_proxy_vmess_outbound_config_proto_msgTypes[0]
    33  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    34  		ms.StoreMessageInfo(mi)
    35  	}
    36  }
    37  
    38  func (x *Config) String() string {
    39  	return protoimpl.X.MessageStringOf(x)
    40  }
    41  
    42  func (*Config) ProtoMessage() {}
    43  
    44  func (x *Config) ProtoReflect() protoreflect.Message {
    45  	mi := &file_proxy_vmess_outbound_config_proto_msgTypes[0]
    46  	if protoimpl.UnsafeEnabled && x != nil {
    47  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    48  		if ms.LoadMessageInfo() == nil {
    49  			ms.StoreMessageInfo(mi)
    50  		}
    51  		return ms
    52  	}
    53  	return mi.MessageOf(x)
    54  }
    55  
    56  // Deprecated: Use Config.ProtoReflect.Descriptor instead.
    57  func (*Config) Descriptor() ([]byte, []int) {
    58  	return file_proxy_vmess_outbound_config_proto_rawDescGZIP(), []int{0}
    59  }
    60  
    61  func (x *Config) GetReceiver() []*protocol.ServerEndpoint {
    62  	if x != nil {
    63  		return x.Receiver
    64  	}
    65  	return nil
    66  }
    67  
    68  type SimplifiedConfig struct {
    69  	state         protoimpl.MessageState
    70  	sizeCache     protoimpl.SizeCache
    71  	unknownFields protoimpl.UnknownFields
    72  
    73  	Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
    74  	Port    uint32          `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
    75  	Uuid    string          `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid,omitempty"`
    76  }
    77  
    78  func (x *SimplifiedConfig) Reset() {
    79  	*x = SimplifiedConfig{}
    80  	if protoimpl.UnsafeEnabled {
    81  		mi := &file_proxy_vmess_outbound_config_proto_msgTypes[1]
    82  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    83  		ms.StoreMessageInfo(mi)
    84  	}
    85  }
    86  
    87  func (x *SimplifiedConfig) String() string {
    88  	return protoimpl.X.MessageStringOf(x)
    89  }
    90  
    91  func (*SimplifiedConfig) ProtoMessage() {}
    92  
    93  func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
    94  	mi := &file_proxy_vmess_outbound_config_proto_msgTypes[1]
    95  	if protoimpl.UnsafeEnabled && x != nil {
    96  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    97  		if ms.LoadMessageInfo() == nil {
    98  			ms.StoreMessageInfo(mi)
    99  		}
   100  		return ms
   101  	}
   102  	return mi.MessageOf(x)
   103  }
   104  
   105  // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
   106  func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
   107  	return file_proxy_vmess_outbound_config_proto_rawDescGZIP(), []int{1}
   108  }
   109  
   110  func (x *SimplifiedConfig) GetAddress() *net.IPOrDomain {
   111  	if x != nil {
   112  		return x.Address
   113  	}
   114  	return nil
   115  }
   116  
   117  func (x *SimplifiedConfig) GetPort() uint32 {
   118  	if x != nil {
   119  		return x.Port
   120  	}
   121  	return 0
   122  }
   123  
   124  func (x *SimplifiedConfig) GetUuid() string {
   125  	if x != nil {
   126  		return x.Uuid
   127  	}
   128  	return ""
   129  }
   130  
   131  var File_proxy_vmess_outbound_config_proto protoreflect.FileDescriptor
   132  
   133  var file_proxy_vmess_outbound_config_proto_rawDesc = []byte{
   134  	0x0a, 0x21, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x6f, 0x75,
   135  	0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72,
   136  	0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
   137  	0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x6f, 0x75, 0x74, 0x62,
   138  	0x6f, 0x75, 0x6e, 0x64, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f,
   139  	0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65,
   140  	0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f,
   141  	0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   142  	0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65,
   143  	0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72,
   144  	0x6f, 0x74, 0x6f, 0x22, 0x50, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x46, 0x0a,
   145  	0x08, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
   146  	0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
   147  	0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x72,
   148  	0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x08, 0x52, 0x65, 0x63,
   149  	0x65, 0x69, 0x76, 0x65, 0x72, 0x22, 0x92, 0x01, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69,
   150  	0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64,
   151  	0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32,
   152  	0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
   153  	0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07,
   154  	0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18,
   155  	0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x75,
   156  	0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x3a,
   157  	0x19, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x82,
   158  	0xb5, 0x18, 0x07, 0x12, 0x05, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x42, 0x7e, 0x0a, 0x23, 0x63, 0x6f,
   159  	0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f,
   160  	0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e,
   161  	0x64, 0x50, 0x01, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
   162  	0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65,
   163  	0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f,
   164  	0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0xaa, 0x02, 0x1f, 0x56, 0x32, 0x52, 0x61, 0x79,
   165  	0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 0x6d, 0x65, 0x73,
   166  	0x73, 0x2e, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
   167  	0x6f, 0x33,
   168  }
   169  
   170  var (
   171  	file_proxy_vmess_outbound_config_proto_rawDescOnce sync.Once
   172  	file_proxy_vmess_outbound_config_proto_rawDescData = file_proxy_vmess_outbound_config_proto_rawDesc
   173  )
   174  
   175  func file_proxy_vmess_outbound_config_proto_rawDescGZIP() []byte {
   176  	file_proxy_vmess_outbound_config_proto_rawDescOnce.Do(func() {
   177  		file_proxy_vmess_outbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vmess_outbound_config_proto_rawDescData)
   178  	})
   179  	return file_proxy_vmess_outbound_config_proto_rawDescData
   180  }
   181  
   182  var file_proxy_vmess_outbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   183  var file_proxy_vmess_outbound_config_proto_goTypes = []interface{}{
   184  	(*Config)(nil),                  // 0: v2ray.core.proxy.vmess.outbound.Config
   185  	(*SimplifiedConfig)(nil),        // 1: v2ray.core.proxy.vmess.outbound.SimplifiedConfig
   186  	(*protocol.ServerEndpoint)(nil), // 2: v2ray.core.common.protocol.ServerEndpoint
   187  	(*net.IPOrDomain)(nil),          // 3: v2ray.core.common.net.IPOrDomain
   188  }
   189  var file_proxy_vmess_outbound_config_proto_depIdxs = []int32{
   190  	2, // 0: v2ray.core.proxy.vmess.outbound.Config.Receiver:type_name -> v2ray.core.common.protocol.ServerEndpoint
   191  	3, // 1: v2ray.core.proxy.vmess.outbound.SimplifiedConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
   192  	2, // [2:2] is the sub-list for method output_type
   193  	2, // [2:2] is the sub-list for method input_type
   194  	2, // [2:2] is the sub-list for extension type_name
   195  	2, // [2:2] is the sub-list for extension extendee
   196  	0, // [0:2] is the sub-list for field type_name
   197  }
   198  
   199  func init() { file_proxy_vmess_outbound_config_proto_init() }
   200  func file_proxy_vmess_outbound_config_proto_init() {
   201  	if File_proxy_vmess_outbound_config_proto != nil {
   202  		return
   203  	}
   204  	if !protoimpl.UnsafeEnabled {
   205  		file_proxy_vmess_outbound_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   206  			switch v := v.(*Config); i {
   207  			case 0:
   208  				return &v.state
   209  			case 1:
   210  				return &v.sizeCache
   211  			case 2:
   212  				return &v.unknownFields
   213  			default:
   214  				return nil
   215  			}
   216  		}
   217  		file_proxy_vmess_outbound_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   218  			switch v := v.(*SimplifiedConfig); i {
   219  			case 0:
   220  				return &v.state
   221  			case 1:
   222  				return &v.sizeCache
   223  			case 2:
   224  				return &v.unknownFields
   225  			default:
   226  				return nil
   227  			}
   228  		}
   229  	}
   230  	type x struct{}
   231  	out := protoimpl.TypeBuilder{
   232  		File: protoimpl.DescBuilder{
   233  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   234  			RawDescriptor: file_proxy_vmess_outbound_config_proto_rawDesc,
   235  			NumEnums:      0,
   236  			NumMessages:   2,
   237  			NumExtensions: 0,
   238  			NumServices:   0,
   239  		},
   240  		GoTypes:           file_proxy_vmess_outbound_config_proto_goTypes,
   241  		DependencyIndexes: file_proxy_vmess_outbound_config_proto_depIdxs,
   242  		MessageInfos:      file_proxy_vmess_outbound_config_proto_msgTypes,
   243  	}.Build()
   244  	File_proxy_vmess_outbound_config_proto = out.File
   245  	file_proxy_vmess_outbound_config_proto_rawDesc = nil
   246  	file_proxy_vmess_outbound_config_proto_goTypes = nil
   247  	file_proxy_vmess_outbound_config_proto_depIdxs = nil
   248  }