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