github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/common/net/port.pb.go (about)

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