port.pb.go 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.35.1
  4. // protoc v5.28.2
  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. mi := &file_common_net_port_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. func (x *PortRange) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*PortRange) ProtoMessage() {}
  39. func (x *PortRange) ProtoReflect() protoreflect.Message {
  40. mi := &file_common_net_port_proto_msgTypes[0]
  41. if x != nil {
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. if ms.LoadMessageInfo() == nil {
  44. ms.StoreMessageInfo(mi)
  45. }
  46. return ms
  47. }
  48. return mi.MessageOf(x)
  49. }
  50. // Deprecated: Use PortRange.ProtoReflect.Descriptor instead.
  51. func (*PortRange) Descriptor() ([]byte, []int) {
  52. return file_common_net_port_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *PortRange) GetFrom() uint32 {
  55. if x != nil {
  56. return x.From
  57. }
  58. return 0
  59. }
  60. func (x *PortRange) GetTo() uint32 {
  61. if x != nil {
  62. return x.To
  63. }
  64. return 0
  65. }
  66. // PortList is a list of ports.
  67. type PortList struct {
  68. state protoimpl.MessageState
  69. sizeCache protoimpl.SizeCache
  70. unknownFields protoimpl.UnknownFields
  71. Range []*PortRange `protobuf:"bytes,1,rep,name=range,proto3" json:"range,omitempty"`
  72. }
  73. func (x *PortList) Reset() {
  74. *x = PortList{}
  75. mi := &file_common_net_port_proto_msgTypes[1]
  76. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  77. ms.StoreMessageInfo(mi)
  78. }
  79. func (x *PortList) String() string {
  80. return protoimpl.X.MessageStringOf(x)
  81. }
  82. func (*PortList) ProtoMessage() {}
  83. func (x *PortList) ProtoReflect() protoreflect.Message {
  84. mi := &file_common_net_port_proto_msgTypes[1]
  85. if x != nil {
  86. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  87. if ms.LoadMessageInfo() == nil {
  88. ms.StoreMessageInfo(mi)
  89. }
  90. return ms
  91. }
  92. return mi.MessageOf(x)
  93. }
  94. // Deprecated: Use PortList.ProtoReflect.Descriptor instead.
  95. func (*PortList) Descriptor() ([]byte, []int) {
  96. return file_common_net_port_proto_rawDescGZIP(), []int{1}
  97. }
  98. func (x *PortList) GetRange() []*PortRange {
  99. if x != nil {
  100. return x.Range
  101. }
  102. return nil
  103. }
  104. var File_common_net_port_proto protoreflect.FileDescriptor
  105. var file_common_net_port_proto_rawDesc = []byte{
  106. 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6f, 0x72,
  107. 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  108. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x22, 0x2f, 0x0a, 0x09, 0x50, 0x6f, 0x72, 0x74,
  109. 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x46, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20,
  110. 0x01, 0x28, 0x0d, 0x52, 0x04, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x54, 0x6f, 0x18,
  111. 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x54, 0x6f, 0x22, 0x3c, 0x0a, 0x08, 0x50, 0x6f, 0x72,
  112. 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01,
  113. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  114. 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65,
  115. 0x52, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x42, 0x4f, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x78,
  116. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x50, 0x01,
  117. 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c,
  118. 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
  119. 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0xaa, 0x02, 0x0f, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x43, 0x6f,
  120. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4e, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  121. }
  122. var (
  123. file_common_net_port_proto_rawDescOnce sync.Once
  124. file_common_net_port_proto_rawDescData = file_common_net_port_proto_rawDesc
  125. )
  126. func file_common_net_port_proto_rawDescGZIP() []byte {
  127. file_common_net_port_proto_rawDescOnce.Do(func() {
  128. file_common_net_port_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_net_port_proto_rawDescData)
  129. })
  130. return file_common_net_port_proto_rawDescData
  131. }
  132. var file_common_net_port_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  133. var file_common_net_port_proto_goTypes = []any{
  134. (*PortRange)(nil), // 0: xray.common.net.PortRange
  135. (*PortList)(nil), // 1: xray.common.net.PortList
  136. }
  137. var file_common_net_port_proto_depIdxs = []int32{
  138. 0, // 0: xray.common.net.PortList.range:type_name -> xray.common.net.PortRange
  139. 1, // [1:1] is the sub-list for method output_type
  140. 1, // [1:1] is the sub-list for method input_type
  141. 1, // [1:1] is the sub-list for extension type_name
  142. 1, // [1:1] is the sub-list for extension extendee
  143. 0, // [0:1] is the sub-list for field type_name
  144. }
  145. func init() { file_common_net_port_proto_init() }
  146. func file_common_net_port_proto_init() {
  147. if File_common_net_port_proto != nil {
  148. return
  149. }
  150. type x struct{}
  151. out := protoimpl.TypeBuilder{
  152. File: protoimpl.DescBuilder{
  153. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  154. RawDescriptor: file_common_net_port_proto_rawDesc,
  155. NumEnums: 0,
  156. NumMessages: 2,
  157. NumExtensions: 0,
  158. NumServices: 0,
  159. },
  160. GoTypes: file_common_net_port_proto_goTypes,
  161. DependencyIndexes: file_common_net_port_proto_depIdxs,
  162. MessageInfos: file_common_net_port_proto_msgTypes,
  163. }.Build()
  164. File_common_net_port_proto = out.File
  165. file_common_net_port_proto_rawDesc = nil
  166. file_common_net_port_proto_goTypes = nil
  167. file_common_net_port_proto_depIdxs = nil
  168. }