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