mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-29 07:32:44 +00:00
regenerate pb data
This commit is contained in:
53 files changed
+13681
-7059
No files matched your search
+182
-91
@@ -1,133 +1,224 @@
|
||||
package net
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// PortRange represents a range of ports.
|
||||
type PortRange struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// The port that this range starts from.
|
||||
From uint32 `protobuf:"varint,1,opt,name=From,proto3" json:"From,omitempty"`
|
||||
// The port that this range ends with (inclusive).
|
||||
To uint32 `protobuf:"varint,2,opt,name=To,proto3" json:"To,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
To uint32 `protobuf:"varint,2,opt,name=To,proto3" json:"To,omitempty"`
|
||||
}
|
||||
|
||||
func (m *PortRange) Reset() { *m = PortRange{} }
|
||||
func (m *PortRange) String() string { return proto.CompactTextString(m) }
|
||||
func (*PortRange) ProtoMessage() {}
|
||||
func (x *PortRange) Reset() {
|
||||
*x = PortRange{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_v2ray_com_core_common_net_port_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *PortRange) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*PortRange) ProtoMessage() {}
|
||||
|
||||
func (x *PortRange) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_v2ray_com_core_common_net_port_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use PortRange.ProtoReflect.Descriptor instead.
|
||||
func (*PortRange) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_166067e37a39f913, []int{0}
|
||||
return file_v2ray_com_core_common_net_port_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (m *PortRange) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PortRange.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PortRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PortRange.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *PortRange) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PortRange.Merge(m, src)
|
||||
}
|
||||
func (m *PortRange) XXX_Size() int {
|
||||
return xxx_messageInfo_PortRange.Size(m)
|
||||
}
|
||||
func (m *PortRange) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PortRange.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PortRange proto.InternalMessageInfo
|
||||
|
||||
func (m *PortRange) GetFrom() uint32 {
|
||||
if m != nil {
|
||||
return m.From
|
||||
func (x *PortRange) GetFrom() uint32 {
|
||||
if x != nil {
|
||||
return x.From
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *PortRange) GetTo() uint32 {
|
||||
if m != nil {
|
||||
return m.To
|
||||
func (x *PortRange) GetTo() uint32 {
|
||||
if x != nil {
|
||||
return x.To
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// PortList is a list of ports.
|
||||
type PortList struct {
|
||||
Range []*PortRange `protobuf:"bytes,1,rep,name=range,proto3" json:"range,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Range []*PortRange `protobuf:"bytes,1,rep,name=range,proto3" json:"range,omitempty"`
|
||||
}
|
||||
|
||||
func (m *PortList) Reset() { *m = PortList{} }
|
||||
func (m *PortList) String() string { return proto.CompactTextString(m) }
|
||||
func (*PortList) ProtoMessage() {}
|
||||
func (x *PortList) Reset() {
|
||||
*x = PortList{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_v2ray_com_core_common_net_port_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *PortList) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*PortList) ProtoMessage() {}
|
||||
|
||||
func (x *PortList) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_v2ray_com_core_common_net_port_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use PortList.ProtoReflect.Descriptor instead.
|
||||
func (*PortList) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_166067e37a39f913, []int{1}
|
||||
return file_v2ray_com_core_common_net_port_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (m *PortList) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PortList.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PortList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PortList.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *PortList) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PortList.Merge(m, src)
|
||||
}
|
||||
func (m *PortList) XXX_Size() int {
|
||||
return xxx_messageInfo_PortList.Size(m)
|
||||
}
|
||||
func (m *PortList) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PortList.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PortList proto.InternalMessageInfo
|
||||
|
||||
func (m *PortList) GetRange() []*PortRange {
|
||||
if m != nil {
|
||||
return m.Range
|
||||
func (x *PortList) GetRange() []*PortRange {
|
||||
if x != nil {
|
||||
return x.Range
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*PortRange)(nil), "v2ray.core.common.net.PortRange")
|
||||
proto.RegisterType((*PortList)(nil), "v2ray.core.common.net.PortList")
|
||||
var File_v2ray_com_core_common_net_port_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_v2ray_com_core_common_net_port_proto_rawDesc = []byte{
|
||||
0x0a, 0x24, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
|
||||
0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6f, 0x72, 0x74,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
|
||||
0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x22, 0x2f, 0x0a,
|
||||
0x09, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x46, 0x72,
|
||||
0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x0e,
|
||||
0x0a, 0x02, 0x54, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x54, 0x6f, 0x22, 0x42,
|
||||
0x0a, 0x08, 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x05, 0x72, 0x61,
|
||||
0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72, 0x61,
|
||||
0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65,
|
||||
0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x05, 0x72, 0x61, 0x6e,
|
||||
0x67, 0x65, 0x42, 0x3a, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
|
||||
0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x50,
|
||||
0x01, 0x5a, 0x03, 0x6e, 0x65, 0x74, 0xaa, 0x02, 0x15, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43,
|
||||
0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4e, 0x65, 0x74, 0x62, 0x06,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("v2ray.com/core/common/net/port.proto", fileDescriptor_166067e37a39f913)
|
||||
var (
|
||||
file_v2ray_com_core_common_net_port_proto_rawDescOnce sync.Once
|
||||
file_v2ray_com_core_common_net_port_proto_rawDescData = file_v2ray_com_core_common_net_port_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_v2ray_com_core_common_net_port_proto_rawDescGZIP() []byte {
|
||||
file_v2ray_com_core_common_net_port_proto_rawDescOnce.Do(func() {
|
||||
file_v2ray_com_core_common_net_port_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_common_net_port_proto_rawDescData)
|
||||
})
|
||||
return file_v2ray_com_core_common_net_port_proto_rawDescData
|
||||
}
|
||||
|
||||
var fileDescriptor_166067e37a39f913 = []byte{
|
||||
// 192 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x29, 0x33, 0x2a, 0x4a,
|
||||
0xac, 0xd4, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0xce, 0xcf, 0xcd, 0xcd,
|
||||
0xcf, 0xd3, 0xcf, 0x4b, 0x2d, 0xd1, 0x2f, 0xc8, 0x2f, 0x2a, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9,
|
||||
0x17, 0x12, 0x85, 0xa9, 0x2a, 0x4a, 0xd5, 0x83, 0xa8, 0xd0, 0xcb, 0x4b, 0x2d, 0x51, 0xd2, 0xe7,
|
||||
0xe2, 0x0c, 0xc8, 0x2f, 0x2a, 0x09, 0x4a, 0xcc, 0x4b, 0x4f, 0x15, 0x12, 0xe2, 0x62, 0x71, 0x2b,
|
||||
0xca, 0xcf, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0d, 0x02, 0xb3, 0x85, 0xf8, 0xb8, 0x98, 0x42,
|
||||
0xf2, 0x25, 0x98, 0xc0, 0x22, 0x4c, 0x21, 0xf9, 0x4a, 0x4e, 0x5c, 0x1c, 0x20, 0x0d, 0x3e, 0x99,
|
||||
0xc5, 0x25, 0x42, 0x66, 0x5c, 0xac, 0x45, 0x20, 0x8d, 0x12, 0x8c, 0x0a, 0xcc, 0x1a, 0xdc, 0x46,
|
||||
0x0a, 0x7a, 0x58, 0xed, 0xd0, 0x83, 0x5b, 0x10, 0x04, 0x51, 0xee, 0x64, 0xc5, 0x25, 0x99, 0x9c,
|
||||
0x9f, 0x8b, 0x5d, 0x75, 0x00, 0x63, 0x14, 0x73, 0x5e, 0x6a, 0xc9, 0x2a, 0x26, 0xd1, 0x30, 0xa3,
|
||||
0xa0, 0xc4, 0x4a, 0x3d, 0x67, 0x90, 0xb4, 0x33, 0x44, 0xda, 0x2f, 0xb5, 0x24, 0x89, 0x0d, 0xec,
|
||||
0x1d, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xba, 0xd0, 0x7b, 0xfa, 0xf6, 0x00, 0x00, 0x00,
|
||||
var file_v2ray_com_core_common_net_port_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_v2ray_com_core_common_net_port_proto_goTypes = []interface{}{
|
||||
(*PortRange)(nil), // 0: v2ray.core.common.net.PortRange
|
||||
(*PortList)(nil), // 1: v2ray.core.common.net.PortList
|
||||
}
|
||||
var file_v2ray_com_core_common_net_port_proto_depIdxs = []int32{
|
||||
0, // 0: v2ray.core.common.net.PortList.range:type_name -> v2ray.core.common.net.PortRange
|
||||
1, // [1:1] is the sub-list for method output_type
|
||||
1, // [1:1] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
1, // [1:1] is the sub-list for extension extendee
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_v2ray_com_core_common_net_port_proto_init() }
|
||||
func file_v2ray_com_core_common_net_port_proto_init() {
|
||||
if File_v2ray_com_core_common_net_port_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_v2ray_com_core_common_net_port_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*PortRange); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_v2ray_com_core_common_net_port_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*PortList); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_v2ray_com_core_common_net_port_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_v2ray_com_core_common_net_port_proto_goTypes,
|
||||
DependencyIndexes: file_v2ray_com_core_common_net_port_proto_depIdxs,
|
||||
MessageInfos: file_v2ray_com_core_common_net_port_proto_msgTypes,
|
||||
}.Build()
|
||||
File_v2ray_com_core_common_net_port_proto = out.File
|
||||
file_v2ray_com_core_common_net_port_proto_rawDesc = nil
|
||||
file_v2ray_com_core_common_net_port_proto_goTypes = nil
|
||||
file_v2ray_com_core_common_net_port_proto_depIdxs = nil
|
||||
}
|
||||
Reference in new issue
Block a user