github.com/xraypb/xray-core@v1.6.6/common/net/port.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.18.0 5 // source: common/net/port.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 // PortRange represents a range of ports. 24 type PortRange struct { 25 state protoimpl.MessageState 26 sizeCache protoimpl.SizeCache 27 unknownFields protoimpl.UnknownFields 28 29 // The port that this range starts from. 30 From uint32 `protobuf:"varint,1,opt,name=From,proto3" json:"From,omitempty"` 31 // The port that this range ends with (inclusive). 32 To uint32 `protobuf:"varint,2,opt,name=To,proto3" json:"To,omitempty"` 33 } 34 35 func (x *PortRange) Reset() { 36 *x = PortRange{} 37 if protoimpl.UnsafeEnabled { 38 mi := &file_common_net_port_proto_msgTypes[0] 39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 40 ms.StoreMessageInfo(mi) 41 } 42 } 43 44 func (x *PortRange) String() string { 45 return protoimpl.X.MessageStringOf(x) 46 } 47 48 func (*PortRange) ProtoMessage() {} 49 50 func (x *PortRange) ProtoReflect() protoreflect.Message { 51 mi := &file_common_net_port_proto_msgTypes[0] 52 if protoimpl.UnsafeEnabled && x != nil { 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 if ms.LoadMessageInfo() == nil { 55 ms.StoreMessageInfo(mi) 56 } 57 return ms 58 } 59 return mi.MessageOf(x) 60 } 61 62 // Deprecated: Use PortRange.ProtoReflect.Descriptor instead. 63 func (*PortRange) Descriptor() ([]byte, []int) { 64 return file_common_net_port_proto_rawDescGZIP(), []int{0} 65 } 66 67 func (x *PortRange) GetFrom() uint32 { 68 if x != nil { 69 return x.From 70 } 71 return 0 72 } 73 74 func (x *PortRange) GetTo() uint32 { 75 if x != nil { 76 return x.To 77 } 78 return 0 79 } 80 81 // PortList is a list of ports. 82 type PortList struct { 83 state protoimpl.MessageState 84 sizeCache protoimpl.SizeCache 85 unknownFields protoimpl.UnknownFields 86 87 Range []*PortRange `protobuf:"bytes,1,rep,name=range,proto3" json:"range,omitempty"` 88 } 89 90 func (x *PortList) Reset() { 91 *x = PortList{} 92 if protoimpl.UnsafeEnabled { 93 mi := &file_common_net_port_proto_msgTypes[1] 94 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 95 ms.StoreMessageInfo(mi) 96 } 97 } 98 99 func (x *PortList) String() string { 100 return protoimpl.X.MessageStringOf(x) 101 } 102 103 func (*PortList) ProtoMessage() {} 104 105 func (x *PortList) ProtoReflect() protoreflect.Message { 106 mi := &file_common_net_port_proto_msgTypes[1] 107 if protoimpl.UnsafeEnabled && x != nil { 108 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 109 if ms.LoadMessageInfo() == nil { 110 ms.StoreMessageInfo(mi) 111 } 112 return ms 113 } 114 return mi.MessageOf(x) 115 } 116 117 // Deprecated: Use PortList.ProtoReflect.Descriptor instead. 118 func (*PortList) Descriptor() ([]byte, []int) { 119 return file_common_net_port_proto_rawDescGZIP(), []int{1} 120 } 121 122 func (x *PortList) GetRange() []*PortRange { 123 if x != nil { 124 return x.Range 125 } 126 return nil 127 } 128 129 var File_common_net_port_proto protoreflect.FileDescriptor 130 131 var file_common_net_port_proto_rawDesc = []byte{ 132 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6f, 0x72, 133 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 134 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x22, 0x2f, 0x0a, 0x09, 0x50, 0x6f, 0x72, 0x74, 135 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x46, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 136 0x01, 0x28, 0x0d, 0x52, 0x04, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x54, 0x6f, 0x18, 137 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x54, 0x6f, 0x22, 0x3c, 0x0a, 0x08, 0x50, 0x6f, 0x72, 138 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 139 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 140 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 141 0x52, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x42, 0x4f, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 142 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x50, 0x01, 143 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 144 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 145 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0xaa, 0x02, 0x0f, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x43, 0x6f, 146 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4e, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 147 } 148 149 var ( 150 file_common_net_port_proto_rawDescOnce sync.Once 151 file_common_net_port_proto_rawDescData = file_common_net_port_proto_rawDesc 152 ) 153 154 func file_common_net_port_proto_rawDescGZIP() []byte { 155 file_common_net_port_proto_rawDescOnce.Do(func() { 156 file_common_net_port_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_net_port_proto_rawDescData) 157 }) 158 return file_common_net_port_proto_rawDescData 159 } 160 161 var file_common_net_port_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 162 var file_common_net_port_proto_goTypes = []interface{}{ 163 (*PortRange)(nil), // 0: xray.common.net.PortRange 164 (*PortList)(nil), // 1: xray.common.net.PortList 165 } 166 var file_common_net_port_proto_depIdxs = []int32{ 167 0, // 0: xray.common.net.PortList.range:type_name -> xray.common.net.PortRange 168 1, // [1:1] is the sub-list for method output_type 169 1, // [1:1] is the sub-list for method input_type 170 1, // [1:1] is the sub-list for extension type_name 171 1, // [1:1] is the sub-list for extension extendee 172 0, // [0:1] is the sub-list for field type_name 173 } 174 175 func init() { file_common_net_port_proto_init() } 176 func file_common_net_port_proto_init() { 177 if File_common_net_port_proto != nil { 178 return 179 } 180 if !protoimpl.UnsafeEnabled { 181 file_common_net_port_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 182 switch v := v.(*PortRange); i { 183 case 0: 184 return &v.state 185 case 1: 186 return &v.sizeCache 187 case 2: 188 return &v.unknownFields 189 default: 190 return nil 191 } 192 } 193 file_common_net_port_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 194 switch v := v.(*PortList); i { 195 case 0: 196 return &v.state 197 case 1: 198 return &v.sizeCache 199 case 2: 200 return &v.unknownFields 201 default: 202 return nil 203 } 204 } 205 } 206 type x struct{} 207 out := protoimpl.TypeBuilder{ 208 File: protoimpl.DescBuilder{ 209 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 210 RawDescriptor: file_common_net_port_proto_rawDesc, 211 NumEnums: 0, 212 NumMessages: 2, 213 NumExtensions: 0, 214 NumServices: 0, 215 }, 216 GoTypes: file_common_net_port_proto_goTypes, 217 DependencyIndexes: file_common_net_port_proto_depIdxs, 218 MessageInfos: file_common_net_port_proto_msgTypes, 219 }.Build() 220 File_common_net_port_proto = out.File 221 file_common_net_port_proto_rawDesc = nil 222 file_common_net_port_proto_goTypes = nil 223 file_common_net_port_proto_depIdxs = nil 224 }