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