Class IpRule.PortRange (2.76.0)

public static final class IpRule.PortRange extends GeneratedMessageV3 implements IpRule.PortRangeOrBuilder

A port range which is inclusive of the min and max values. Values are between 0 and 2^16-1. The max can be equal / must be not smaller than the min value. If min and max are equal this indicates that it is a single port.

Protobuf type google.cloud.securitycenter.v2.IpRule.PortRange

Static Fields

MAX_FIELD_NUMBER

public static final int MAX_FIELD_NUMBER
Field Value
Type Description
int

MIN_FIELD_NUMBER

public static final int MIN_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static IpRule.PortRange getDefaultInstance()
Returns
Type Description
IpRule.PortRange

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static IpRule.PortRange.Builder newBuilder()
Returns
Type Description
IpRule.PortRange.Builder

newBuilder(IpRule.PortRange prototype)

public static IpRule.PortRange.Builder newBuilder(IpRule.PortRange prototype)
Parameter
Name Description
prototype IpRule.PortRange
Returns
Type Description
IpRule.PortRange.Builder

parseDelimitedFrom(InputStream input)

public static IpRule.PortRange parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
IpRule.PortRange
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static IpRule.PortRange parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IpRule.PortRange
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static IpRule.PortRange parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
IpRule.PortRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static IpRule.PortRange parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IpRule.PortRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static IpRule.PortRange parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
IpRule.PortRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static IpRule.PortRange parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IpRule.PortRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static IpRule.PortRange parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
IpRule.PortRange
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static IpRule.PortRange parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IpRule.PortRange
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static IpRule.PortRange parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
IpRule.PortRange
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static IpRule.PortRange parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IpRule.PortRange
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static IpRule.PortRange parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
IpRule.PortRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static IpRule.PortRange parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IpRule.PortRange
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<IpRule.PortRange> parser()
Returns
Type Description
Parser<PortRange>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public IpRule.PortRange getDefaultInstanceForType()
Returns
Type Description
IpRule.PortRange

getMax()

public long getMax()

Maximum port value.

int64 max = 2;

Returns
Type Description
long

The max.

getMin()

public long getMin()

Minimum port value.

int64 min = 1;

Returns
Type Description
long

The min.

getParserForType()

public Parser<IpRule.PortRange> getParserForType()
Returns
Type Description
Parser<PortRange>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public IpRule.PortRange.Builder newBuilderForType()
Returns
Type Description
IpRule.PortRange.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected IpRule.PortRange.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
IpRule.PortRange.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public IpRule.PortRange.Builder toBuilder()
Returns
Type Description
IpRule.PortRange.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException