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