port.pb.go 7.5 KB

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