port.pb.go 7.2 KB

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