port.pb.go 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  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. unsafe "unsafe"
  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. // PortRange represents a range of ports.
  21. type PortRange struct {
  22. state protoimpl.MessageState `protogen:"open.v1"`
  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. unknownFields protoimpl.UnknownFields
  28. sizeCache protoimpl.SizeCache
  29. }
  30. func (x *PortRange) Reset() {
  31. *x = PortRange{}
  32. mi := &file_common_net_port_proto_msgTypes[0]
  33. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  34. ms.StoreMessageInfo(mi)
  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_common_net_port_proto_msgTypes[0]
  42. if 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_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 `protogen:"open.v1"`
  70. Range []*PortRange `protobuf:"bytes,1,rep,name=range,proto3" json:"range,omitempty"`
  71. unknownFields protoimpl.UnknownFields
  72. sizeCache protoimpl.SizeCache
  73. }
  74. func (x *PortList) Reset() {
  75. *x = PortList{}
  76. mi := &file_common_net_port_proto_msgTypes[1]
  77. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  78. ms.StoreMessageInfo(mi)
  79. }
  80. func (x *PortList) String() string {
  81. return protoimpl.X.MessageStringOf(x)
  82. }
  83. func (*PortList) ProtoMessage() {}
  84. func (x *PortList) ProtoReflect() protoreflect.Message {
  85. mi := &file_common_net_port_proto_msgTypes[1]
  86. if x != nil {
  87. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  88. if ms.LoadMessageInfo() == nil {
  89. ms.StoreMessageInfo(mi)
  90. }
  91. return ms
  92. }
  93. return mi.MessageOf(x)
  94. }
  95. // Deprecated: Use PortList.ProtoReflect.Descriptor instead.
  96. func (*PortList) Descriptor() ([]byte, []int) {
  97. return file_common_net_port_proto_rawDescGZIP(), []int{1}
  98. }
  99. func (x *PortList) GetRange() []*PortRange {
  100. if x != nil {
  101. return x.Range
  102. }
  103. return nil
  104. }
  105. var File_common_net_port_proto protoreflect.FileDescriptor
  106. const file_common_net_port_proto_rawDesc = "" +
  107. "\n" +
  108. "\x15common/net/port.proto\x12\x0fxray.common.net\"/\n" +
  109. "\tPortRange\x12\x12\n" +
  110. "\x04From\x18\x01 \x01(\rR\x04From\x12\x0e\n" +
  111. "\x02To\x18\x02 \x01(\rR\x02To\"<\n" +
  112. "\bPortList\x120\n" +
  113. "\x05range\x18\x01 \x03(\v2\x1a.xray.common.net.PortRangeR\x05rangeBO\n" +
  114. "\x13com.xray.common.netP\x01Z$github.com/xtls/xray-core/common/net\xaa\x02\x0fXray.Common.Netb\x06proto3"
  115. var (
  116. file_common_net_port_proto_rawDescOnce sync.Once
  117. file_common_net_port_proto_rawDescData []byte
  118. )
  119. func file_common_net_port_proto_rawDescGZIP() []byte {
  120. file_common_net_port_proto_rawDescOnce.Do(func() {
  121. file_common_net_port_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_common_net_port_proto_rawDesc), len(file_common_net_port_proto_rawDesc)))
  122. })
  123. return file_common_net_port_proto_rawDescData
  124. }
  125. var file_common_net_port_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  126. var file_common_net_port_proto_goTypes = []any{
  127. (*PortRange)(nil), // 0: xray.common.net.PortRange
  128. (*PortList)(nil), // 1: xray.common.net.PortList
  129. }
  130. var file_common_net_port_proto_depIdxs = []int32{
  131. 0, // 0: xray.common.net.PortList.range:type_name -> xray.common.net.PortRange
  132. 1, // [1:1] is the sub-list for method output_type
  133. 1, // [1:1] is the sub-list for method input_type
  134. 1, // [1:1] is the sub-list for extension type_name
  135. 1, // [1:1] is the sub-list for extension extendee
  136. 0, // [0:1] is the sub-list for field type_name
  137. }
  138. func init() { file_common_net_port_proto_init() }
  139. func file_common_net_port_proto_init() {
  140. if File_common_net_port_proto != nil {
  141. return
  142. }
  143. type x struct{}
  144. out := protoimpl.TypeBuilder{
  145. File: protoimpl.DescBuilder{
  146. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  147. RawDescriptor: unsafe.Slice(unsafe.StringData(file_common_net_port_proto_rawDesc), len(file_common_net_port_proto_rawDesc)),
  148. NumEnums: 0,
  149. NumMessages: 2,
  150. NumExtensions: 0,
  151. NumServices: 0,
  152. },
  153. GoTypes: file_common_net_port_proto_goTypes,
  154. DependencyIndexes: file_common_net_port_proto_depIdxs,
  155. MessageInfos: file_common_net_port_proto_msgTypes,
  156. }.Build()
  157. File_common_net_port_proto = out.File
  158. file_common_net_port_proto_goTypes = nil
  159. file_common_net_port_proto_depIdxs = nil
  160. }