github.com/v2fly/v2ray-core/v4@v4.45.2/common/net/port.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/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, 0x15, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 134 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x22, 0x2f, 135 0x0a, 0x09, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x46, 136 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x46, 0x72, 0x6f, 0x6d, 0x12, 137 0x0e, 0x0a, 0x02, 0x54, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x54, 0x6f, 0x22, 138 0x42, 0x0a, 0x08, 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x05, 0x72, 139 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72, 140 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 141 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x05, 0x72, 0x61, 142 0x6e, 0x67, 0x65, 0x42, 0x60, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 143 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 144 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 145 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 146 0x76, 0x34, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0xaa, 0x02, 0x15, 147 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 148 0x6e, 0x2e, 0x4e, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 149 } 150 151 var ( 152 file_common_net_port_proto_rawDescOnce sync.Once 153 file_common_net_port_proto_rawDescData = file_common_net_port_proto_rawDesc 154 ) 155 156 func file_common_net_port_proto_rawDescGZIP() []byte { 157 file_common_net_port_proto_rawDescOnce.Do(func() { 158 file_common_net_port_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_net_port_proto_rawDescData) 159 }) 160 return file_common_net_port_proto_rawDescData 161 } 162 163 var file_common_net_port_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 164 var file_common_net_port_proto_goTypes = []interface{}{ 165 (*PortRange)(nil), // 0: v2ray.core.common.net.PortRange 166 (*PortList)(nil), // 1: v2ray.core.common.net.PortList 167 } 168 var file_common_net_port_proto_depIdxs = []int32{ 169 0, // 0: v2ray.core.common.net.PortList.range:type_name -> v2ray.core.common.net.PortRange 170 1, // [1:1] is the sub-list for method output_type 171 1, // [1:1] is the sub-list for method input_type 172 1, // [1:1] is the sub-list for extension type_name 173 1, // [1:1] is the sub-list for extension extendee 174 0, // [0:1] is the sub-list for field type_name 175 } 176 177 func init() { file_common_net_port_proto_init() } 178 func file_common_net_port_proto_init() { 179 if File_common_net_port_proto != nil { 180 return 181 } 182 if !protoimpl.UnsafeEnabled { 183 file_common_net_port_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 184 switch v := v.(*PortRange); i { 185 case 0: 186 return &v.state 187 case 1: 188 return &v.sizeCache 189 case 2: 190 return &v.unknownFields 191 default: 192 return nil 193 } 194 } 195 file_common_net_port_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 196 switch v := v.(*PortList); i { 197 case 0: 198 return &v.state 199 case 1: 200 return &v.sizeCache 201 case 2: 202 return &v.unknownFields 203 default: 204 return nil 205 } 206 } 207 } 208 type x struct{} 209 out := protoimpl.TypeBuilder{ 210 File: protoimpl.DescBuilder{ 211 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 212 RawDescriptor: file_common_net_port_proto_rawDesc, 213 NumEnums: 0, 214 NumMessages: 2, 215 NumExtensions: 0, 216 NumServices: 0, 217 }, 218 GoTypes: file_common_net_port_proto_goTypes, 219 DependencyIndexes: file_common_net_port_proto_depIdxs, 220 MessageInfos: file_common_net_port_proto_msgTypes, 221 }.Build() 222 File_common_net_port_proto = out.File 223 file_common_net_port_proto_rawDesc = nil 224 file_common_net_port_proto_goTypes = nil 225 file_common_net_port_proto_depIdxs = nil 226 }