github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/common/net/destination.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.25.0
     4  // 	protoc        v3.13.0
     5  // source: common/net/destination.proto
     6  
     7  package net
     8  
     9  import (
    10  	proto "github.com/golang/protobuf/proto"
    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  // This is a compile-time assertion that a sufficiently up-to-date version
    25  // of the legacy proto package is being used.
    26  const _ = proto.ProtoPackageIsVersion4
    27  
    28  // Endpoint of a network connection.
    29  type Endpoint struct {
    30  	state         protoimpl.MessageState
    31  	sizeCache     protoimpl.SizeCache
    32  	unknownFields protoimpl.UnknownFields
    33  
    34  	Network Network     `protobuf:"varint,1,opt,name=network,proto3,enum=v2ray.core.common.net.Network" json:"network,omitempty"`
    35  	Address *IPOrDomain `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
    36  	Port    uint32      `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
    37  }
    38  
    39  func (x *Endpoint) Reset() {
    40  	*x = Endpoint{}
    41  	if protoimpl.UnsafeEnabled {
    42  		mi := &file_common_net_destination_proto_msgTypes[0]
    43  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    44  		ms.StoreMessageInfo(mi)
    45  	}
    46  }
    47  
    48  func (x *Endpoint) String() string {
    49  	return protoimpl.X.MessageStringOf(x)
    50  }
    51  
    52  func (*Endpoint) ProtoMessage() {}
    53  
    54  func (x *Endpoint) ProtoReflect() protoreflect.Message {
    55  	mi := &file_common_net_destination_proto_msgTypes[0]
    56  	if protoimpl.UnsafeEnabled && x != nil {
    57  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    58  		if ms.LoadMessageInfo() == nil {
    59  			ms.StoreMessageInfo(mi)
    60  		}
    61  		return ms
    62  	}
    63  	return mi.MessageOf(x)
    64  }
    65  
    66  // Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.
    67  func (*Endpoint) Descriptor() ([]byte, []int) {
    68  	return file_common_net_destination_proto_rawDescGZIP(), []int{0}
    69  }
    70  
    71  func (x *Endpoint) GetNetwork() Network {
    72  	if x != nil {
    73  		return x.Network
    74  	}
    75  	return Network_Unknown
    76  }
    77  
    78  func (x *Endpoint) GetAddress() *IPOrDomain {
    79  	if x != nil {
    80  		return x.Address
    81  	}
    82  	return nil
    83  }
    84  
    85  func (x *Endpoint) GetPort() uint32 {
    86  	if x != nil {
    87  		return x.Port
    88  	}
    89  	return 0
    90  }
    91  
    92  var File_common_net_destination_proto protoreflect.FileDescriptor
    93  
    94  var file_common_net_destination_proto_rawDesc = []byte{
    95  	0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x65, 0x73,
    96  	0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15,
    97  	0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
    98  	0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65,
    99  	0x74, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
   100  	0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72,
   101  	0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x95, 0x01, 0x0a, 0x08, 0x45, 0x6e,
   102  	0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
   103  	0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
   104  	0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e,
   105  	0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
   106  	0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
   107  	0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63,
   108  	0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f,
   109  	0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a,
   110  	0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72,
   111  	0x74, 0x42, 0x50, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
   112  	0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x50, 0x01,
   113  	0x5a, 0x19, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
   114  	0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0xaa, 0x02, 0x15, 0x56, 0x32,
   115  	0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
   116  	0x4e, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   117  }
   118  
   119  var (
   120  	file_common_net_destination_proto_rawDescOnce sync.Once
   121  	file_common_net_destination_proto_rawDescData = file_common_net_destination_proto_rawDesc
   122  )
   123  
   124  func file_common_net_destination_proto_rawDescGZIP() []byte {
   125  	file_common_net_destination_proto_rawDescOnce.Do(func() {
   126  		file_common_net_destination_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_net_destination_proto_rawDescData)
   127  	})
   128  	return file_common_net_destination_proto_rawDescData
   129  }
   130  
   131  var file_common_net_destination_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   132  var file_common_net_destination_proto_goTypes = []interface{}{
   133  	(*Endpoint)(nil),   // 0: v2ray.core.common.net.Endpoint
   134  	(Network)(0),       // 1: v2ray.core.common.net.Network
   135  	(*IPOrDomain)(nil), // 2: v2ray.core.common.net.IPOrDomain
   136  }
   137  var file_common_net_destination_proto_depIdxs = []int32{
   138  	1, // 0: v2ray.core.common.net.Endpoint.network:type_name -> v2ray.core.common.net.Network
   139  	2, // 1: v2ray.core.common.net.Endpoint.address:type_name -> v2ray.core.common.net.IPOrDomain
   140  	2, // [2:2] is the sub-list for method output_type
   141  	2, // [2:2] is the sub-list for method input_type
   142  	2, // [2:2] is the sub-list for extension type_name
   143  	2, // [2:2] is the sub-list for extension extendee
   144  	0, // [0:2] is the sub-list for field type_name
   145  }
   146  
   147  func init() { file_common_net_destination_proto_init() }
   148  func file_common_net_destination_proto_init() {
   149  	if File_common_net_destination_proto != nil {
   150  		return
   151  	}
   152  	file_common_net_network_proto_init()
   153  	file_common_net_address_proto_init()
   154  	if !protoimpl.UnsafeEnabled {
   155  		file_common_net_destination_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   156  			switch v := v.(*Endpoint); i {
   157  			case 0:
   158  				return &v.state
   159  			case 1:
   160  				return &v.sizeCache
   161  			case 2:
   162  				return &v.unknownFields
   163  			default:
   164  				return nil
   165  			}
   166  		}
   167  	}
   168  	type x struct{}
   169  	out := protoimpl.TypeBuilder{
   170  		File: protoimpl.DescBuilder{
   171  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   172  			RawDescriptor: file_common_net_destination_proto_rawDesc,
   173  			NumEnums:      0,
   174  			NumMessages:   1,
   175  			NumExtensions: 0,
   176  			NumServices:   0,
   177  		},
   178  		GoTypes:           file_common_net_destination_proto_goTypes,
   179  		DependencyIndexes: file_common_net_destination_proto_depIdxs,
   180  		MessageInfos:      file_common_net_destination_proto_msgTypes,
   181  	}.Build()
   182  	File_common_net_destination_proto = out.File
   183  	file_common_net_destination_proto_rawDesc = nil
   184  	file_common_net_destination_proto_goTypes = nil
   185  	file_common_net_destination_proto_depIdxs = nil
   186  }