port.pb.go 6.4 KB

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