github.com/xraypb/Xray-core@v1.8.1/common/net/destination.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.1 4 // protoc v3.21.12 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=xray.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, 0x0f, 92 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x1a, 93 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e, 0x65, 0x74, 0x77, 94 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 95 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 96 0x6f, 0x74, 0x6f, 0x22, 0x89, 0x01, 0x0a, 0x08, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 97 0x12, 0x32, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 98 0x0e, 0x32, 0x18, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 99 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74, 100 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x35, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 101 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 102 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 103 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 104 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x42, 105 0x4f, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 106 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 107 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 108 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0xaa, 0x02, 109 0x0f, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4e, 0x65, 0x74, 110 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 111 } 112 113 var ( 114 file_common_net_destination_proto_rawDescOnce sync.Once 115 file_common_net_destination_proto_rawDescData = file_common_net_destination_proto_rawDesc 116 ) 117 118 func file_common_net_destination_proto_rawDescGZIP() []byte { 119 file_common_net_destination_proto_rawDescOnce.Do(func() { 120 file_common_net_destination_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_net_destination_proto_rawDescData) 121 }) 122 return file_common_net_destination_proto_rawDescData 123 } 124 125 var file_common_net_destination_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 126 var file_common_net_destination_proto_goTypes = []interface{}{ 127 (*Endpoint)(nil), // 0: xray.common.net.Endpoint 128 (Network)(0), // 1: xray.common.net.Network 129 (*IPOrDomain)(nil), // 2: xray.common.net.IPOrDomain 130 } 131 var file_common_net_destination_proto_depIdxs = []int32{ 132 1, // 0: xray.common.net.Endpoint.network:type_name -> xray.common.net.Network 133 2, // 1: xray.common.net.Endpoint.address:type_name -> xray.common.net.IPOrDomain 134 2, // [2:2] is the sub-list for method output_type 135 2, // [2:2] is the sub-list for method input_type 136 2, // [2:2] is the sub-list for extension type_name 137 2, // [2:2] is the sub-list for extension extendee 138 0, // [0:2] is the sub-list for field type_name 139 } 140 141 func init() { file_common_net_destination_proto_init() } 142 func file_common_net_destination_proto_init() { 143 if File_common_net_destination_proto != nil { 144 return 145 } 146 file_common_net_network_proto_init() 147 file_common_net_address_proto_init() 148 if !protoimpl.UnsafeEnabled { 149 file_common_net_destination_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 150 switch v := v.(*Endpoint); i { 151 case 0: 152 return &v.state 153 case 1: 154 return &v.sizeCache 155 case 2: 156 return &v.unknownFields 157 default: 158 return nil 159 } 160 } 161 } 162 type x struct{} 163 out := protoimpl.TypeBuilder{ 164 File: protoimpl.DescBuilder{ 165 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 166 RawDescriptor: file_common_net_destination_proto_rawDesc, 167 NumEnums: 0, 168 NumMessages: 1, 169 NumExtensions: 0, 170 NumServices: 0, 171 }, 172 GoTypes: file_common_net_destination_proto_goTypes, 173 DependencyIndexes: file_common_net_destination_proto_depIdxs, 174 MessageInfos: file_common_net_destination_proto_msgTypes, 175 }.Build() 176 File_common_net_destination_proto = out.File 177 file_common_net_destination_proto_rawDesc = nil 178 file_common_net_destination_proto_goTypes = nil 179 file_common_net_destination_proto_depIdxs = nil 180 }