port.pb.go 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.21.12
  5. // source: common/net/port.proto
  6. package net
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. // PortRange represents a range of ports.
  20. type PortRange struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. // The port that this range starts from.
  25. From uint32 `protobuf:"varint,1,opt,name=From,proto3" json:"From,omitempty"`
  26. // The port that this range ends with (inclusive).
  27. To uint32 `protobuf:"varint,2,opt,name=To,proto3" json:"To,omitempty"`
  28. }
  29. func (x *PortRange) Reset() {
  30. *x = PortRange{}
  31. if protoimpl.UnsafeEnabled {
  32. mi := &file_common_net_port_proto_msgTypes[0]
  33. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  34. ms.StoreMessageInfo(mi)
  35. }
  36. }
  37. func (x *PortRange) String() string {
  38. return protoimpl.X.MessageStringOf(x)
  39. }
  40. func (*PortRange) ProtoMessage() {}
  41. func (x *PortRange) ProtoReflect() protoreflect.Message {
  42. mi := &file_common_net_port_proto_msgTypes[0]
  43. if protoimpl.UnsafeEnabled && x != nil {
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. if ms.LoadMessageInfo() == nil {
  46. ms.StoreMessageInfo(mi)
  47. }
  48. return ms
  49. }
  50. return mi.MessageOf(x)
  51. }
  52. // Deprecated: Use PortRange.ProtoReflect.Descriptor instead.
  53. func (*PortRange) Descriptor() ([]byte, []int) {
  54. return file_common_net_port_proto_rawDescGZIP(), []int{0}
  55. }
  56. func (x *PortRange) GetFrom() uint32 {
  57. if x != nil {
  58. return x.From
  59. }
  60. return 0
  61. }
  62. func (x *PortRange) GetTo() uint32 {
  63. if x != nil {
  64. return x.To
  65. }
  66. return 0
  67. }
  68. // PortList is a list of ports.
  69. type PortList struct {
  70. state protoimpl.MessageState
  71. sizeCache protoimpl.SizeCache
  72. unknownFields protoimpl.UnknownFields
  73. Range []*PortRange `protobuf:"bytes,1,rep,name=range,proto3" json:"range,omitempty"`
  74. }
  75. func (x *PortList) Reset() {
  76. *x = PortList{}
  77. if protoimpl.UnsafeEnabled {
  78. mi := &file_common_net_port_proto_msgTypes[1]
  79. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  80. ms.StoreMessageInfo(mi)
  81. }
  82. }
  83. func (x *PortList) String() string {
  84. return protoimpl.X.MessageStringOf(x)
  85. }
  86. func (*PortList) ProtoMessage() {}
  87. func (x *PortList) ProtoReflect() protoreflect.Message {
  88. mi := &file_common_net_port_proto_msgTypes[1]
  89. if protoimpl.UnsafeEnabled && x != nil {
  90. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  91. if ms.LoadMessageInfo() == nil {
  92. ms.StoreMessageInfo(mi)
  93. }
  94. return ms
  95. }
  96. return mi.MessageOf(x)
  97. }
  98. // Deprecated: Use PortList.ProtoReflect.Descriptor instead.
  99. func (*PortList) Descriptor() ([]byte, []int) {
  100. return file_common_net_port_proto_rawDescGZIP(), []int{1}
  101. }
  102. func (x *PortList) GetRange() []*PortRange {
  103. if x != nil {
  104. return x.Range
  105. }
  106. return nil
  107. }
  108. var File_common_net_port_proto protoreflect.FileDescriptor
  109. var file_common_net_port_proto_rawDesc = []byte{
  110. 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6f, 0x72,
  111. 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  112. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x22, 0x2f, 0x0a, 0x09, 0x50, 0x6f, 0x72, 0x74,
  113. 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x46, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20,
  114. 0x01, 0x28, 0x0d, 0x52, 0x04, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x54, 0x6f, 0x18,
  115. 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x54, 0x6f, 0x22, 0x3c, 0x0a, 0x08, 0x50, 0x6f, 0x72,
  116. 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01,
  117. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  118. 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65,
  119. 0x52, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x42, 0x4f, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x78,
  120. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x50, 0x01,
  121. 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c,
  122. 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
  123. 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0xaa, 0x02, 0x0f, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x43, 0x6f,
  124. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4e, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  125. }
  126. var (
  127. file_common_net_port_proto_rawDescOnce sync.Once
  128. file_common_net_port_proto_rawDescData = file_common_net_port_proto_rawDesc
  129. )
  130. func file_common_net_port_proto_rawDescGZIP() []byte {
  131. file_common_net_port_proto_rawDescOnce.Do(func() {
  132. file_common_net_port_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_net_port_proto_rawDescData)
  133. })
  134. return file_common_net_port_proto_rawDescData
  135. }
  136. var file_common_net_port_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  137. var file_common_net_port_proto_goTypes = []interface{}{
  138. (*PortRange)(nil), // 0: xray.common.net.PortRange
  139. (*PortList)(nil), // 1: xray.common.net.PortList
  140. }
  141. var file_common_net_port_proto_depIdxs = []int32{
  142. 0, // 0: xray.common.net.PortList.range:type_name -> xray.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_common_net_port_proto_init() }
  150. func file_common_net_port_proto_init() {
  151. if File_common_net_port_proto != nil {
  152. return
  153. }
  154. if !protoimpl.UnsafeEnabled {
  155. file_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_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_common_net_port_proto_rawDesc,
  185. NumEnums: 0,
  186. NumMessages: 2,
  187. NumExtensions: 0,
  188. NumServices: 0,
  189. },
  190. GoTypes: file_common_net_port_proto_goTypes,
  191. DependencyIndexes: file_common_net_port_proto_depIdxs,
  192. MessageInfos: file_common_net_port_proto_msgTypes,
  193. }.Build()
  194. File_common_net_port_proto = out.File
  195. file_common_net_port_proto_rawDesc = nil
  196. file_common_net_port_proto_goTypes = nil
  197. file_common_net_port_proto_depIdxs = nil
  198. }