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