port.pb.go 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  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, 0x0f, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  116. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x22, 0x2f, 0x0a, 0x09, 0x50, 0x6f, 0x72, 0x74,
  117. 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x46, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20,
  118. 0x01, 0x28, 0x0d, 0x52, 0x04, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x54, 0x6f, 0x18,
  119. 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x54, 0x6f, 0x22, 0x3c, 0x0a, 0x08, 0x50, 0x6f, 0x72,
  120. 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01,
  121. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  122. 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65,
  123. 0x52, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x42, 0x4f, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x78,
  124. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x50, 0x01,
  125. 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c,
  126. 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
  127. 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0xaa, 0x02, 0x0f, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x43, 0x6f,
  128. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4e, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  129. }
  130. var (
  131. file_common_net_port_proto_rawDescOnce sync.Once
  132. file_common_net_port_proto_rawDescData = file_common_net_port_proto_rawDesc
  133. )
  134. func file_common_net_port_proto_rawDescGZIP() []byte {
  135. file_common_net_port_proto_rawDescOnce.Do(func() {
  136. file_common_net_port_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_net_port_proto_rawDescData)
  137. })
  138. return file_common_net_port_proto_rawDescData
  139. }
  140. var file_common_net_port_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  141. var file_common_net_port_proto_goTypes = []interface{}{
  142. (*PortRange)(nil), // 0: xray.common.net.PortRange
  143. (*PortList)(nil), // 1: xray.common.net.PortList
  144. }
  145. var file_common_net_port_proto_depIdxs = []int32{
  146. 0, // 0: xray.common.net.PortList.range:type_name -> xray.common.net.PortRange
  147. 1, // [1:1] is the sub-list for method output_type
  148. 1, // [1:1] is the sub-list for method input_type
  149. 1, // [1:1] is the sub-list for extension type_name
  150. 1, // [1:1] is the sub-list for extension extendee
  151. 0, // [0:1] is the sub-list for field type_name
  152. }
  153. func init() { file_common_net_port_proto_init() }
  154. func file_common_net_port_proto_init() {
  155. if File_common_net_port_proto != nil {
  156. return
  157. }
  158. if !protoimpl.UnsafeEnabled {
  159. file_common_net_port_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  160. switch v := v.(*PortRange); i {
  161. case 0:
  162. return &v.state
  163. case 1:
  164. return &v.sizeCache
  165. case 2:
  166. return &v.unknownFields
  167. default:
  168. return nil
  169. }
  170. }
  171. file_common_net_port_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  172. switch v := v.(*PortList); i {
  173. case 0:
  174. return &v.state
  175. case 1:
  176. return &v.sizeCache
  177. case 2:
  178. return &v.unknownFields
  179. default:
  180. return nil
  181. }
  182. }
  183. }
  184. type x struct{}
  185. out := protoimpl.TypeBuilder{
  186. File: protoimpl.DescBuilder{
  187. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  188. RawDescriptor: file_common_net_port_proto_rawDesc,
  189. NumEnums: 0,
  190. NumMessages: 2,
  191. NumExtensions: 0,
  192. NumServices: 0,
  193. },
  194. GoTypes: file_common_net_port_proto_goTypes,
  195. DependencyIndexes: file_common_net_port_proto_depIdxs,
  196. MessageInfos: file_common_net_port_proto_msgTypes,
  197. }.Build()
  198. File_common_net_port_proto = out.File
  199. file_common_net_port_proto_rawDesc = nil
  200. file_common_net_port_proto_goTypes = nil
  201. file_common_net_port_proto_depIdxs = nil
  202. }