Class TrafficPortSelector (0.1.0)

public final class TrafficPortSelector extends GeneratedMessageV3 implements TrafficPortSelectorOrBuilder

Specification of a port-based selector.

Protobuf type google.cloud.networkservices.v1.TrafficPortSelector

Static Fields

PORTS_FIELD_NUMBER

public static final int PORTS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TrafficPortSelector getDefaultInstance()
Returns
Type Description
TrafficPortSelector

getDescriptor()

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

newBuilder()

public static TrafficPortSelector.Builder newBuilder()
Returns
Type Description
TrafficPortSelector.Builder

newBuilder(TrafficPortSelector prototype)

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

parseDelimitedFrom(InputStream input)

public static TrafficPortSelector parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TrafficPortSelector
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static TrafficPortSelector parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TrafficPortSelector
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static TrafficPortSelector parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TrafficPortSelector
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static TrafficPortSelector parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TrafficPortSelector
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static TrafficPortSelector parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TrafficPortSelector
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<TrafficPortSelector> parser()
Returns
Type Description
Parser<TrafficPortSelector>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public TrafficPortSelector getDefaultInstanceForType()
Returns
Type Description
TrafficPortSelector

getParserForType()

public Parser<TrafficPortSelector> getParserForType()
Returns
Type Description
Parser<TrafficPortSelector>
Overrides

getPorts(int index)

public String getPorts(int index)

Optional. A list of ports. Can be port numbers or port range (example, [80-90] specifies all ports from 80 to 90, including 80 and 90) or named ports or * to specify all ports. If the list is empty, all ports are selected.

repeated string ports = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The ports at the given index.

getPortsBytes(int index)

public ByteString getPortsBytes(int index)

Optional. A list of ports. Can be port numbers or port range (example, [80-90] specifies all ports from 80 to 90, including 80 and 90) or named ports or * to specify all ports. If the list is empty, all ports are selected.

repeated string ports = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the ports at the given index.

getPortsCount()

public int getPortsCount()

Optional. A list of ports. Can be port numbers or port range (example, [80-90] specifies all ports from 80 to 90, including 80 and 90) or named ports or * to specify all ports. If the list is empty, all ports are selected.

repeated string ports = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of ports.

getPortsList()

public ProtocolStringList getPortsList()

Optional. A list of ports. Can be port numbers or port range (example, [80-90] specifies all ports from 80 to 90, including 80 and 90) or named ports or * to specify all ports. If the list is empty, all ports are selected.

repeated string ports = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the ports.

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 TrafficPortSelector.Builder newBuilderForType()
Returns
Type Description
TrafficPortSelector.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public TrafficPortSelector.Builder toBuilder()
Returns
Type Description
TrafficPortSelector.Builder

writeTo(CodedOutputStream output)

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