port.pb.go 7.0 KB

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