Class UsableSubnetwork (2.25.0)

public final class UsableSubnetwork extends GeneratedMessageV3 implements UsableSubnetworkOrBuilder

UsableSubnetwork resource returns the subnetwork name, its associated network and the primary CIDR range.

Protobuf type google.container.v1beta1.UsableSubnetwork

Static Fields

IP_CIDR_RANGE_FIELD_NUMBER

public static final int IP_CIDR_RANGE_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
TypeDescription
int

SECONDARY_IP_RANGES_FIELD_NUMBER

public static final int SECONDARY_IP_RANGES_FIELD_NUMBER
Field Value
TypeDescription
int

STATUS_MESSAGE_FIELD_NUMBER

public static final int STATUS_MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

SUBNETWORK_FIELD_NUMBER

public static final int SUBNETWORK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UsableSubnetwork getDefaultInstance()
Returns
TypeDescription
UsableSubnetwork

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static UsableSubnetwork.Builder newBuilder()
Returns
TypeDescription
UsableSubnetwork.Builder

newBuilder(UsableSubnetwork prototype)

public static UsableSubnetwork.Builder newBuilder(UsableSubnetwork prototype)
Parameter
NameDescription
prototypeUsableSubnetwork
Returns
TypeDescription
UsableSubnetwork.Builder

parseDelimitedFrom(InputStream input)

public static UsableSubnetwork parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UsableSubnetwork
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UsableSubnetwork parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UsableSubnetwork
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static UsableSubnetwork parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
UsableSubnetwork
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UsableSubnetwork parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UsableSubnetwork
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UsableSubnetwork parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
UsableSubnetwork
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UsableSubnetwork parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UsableSubnetwork
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UsableSubnetwork parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
UsableSubnetwork
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UsableSubnetwork parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UsableSubnetwork
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static UsableSubnetwork parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UsableSubnetwork
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UsableSubnetwork parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UsableSubnetwork
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static UsableSubnetwork parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
UsableSubnetwork
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UsableSubnetwork parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UsableSubnetwork
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<UsableSubnetwork> parser()
Returns
TypeDescription
Parser<UsableSubnetwork>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public UsableSubnetwork getDefaultInstanceForType()
Returns
TypeDescription
UsableSubnetwork

getIpCidrRange()

public String getIpCidrRange()

The range of internal addresses that are owned by this subnetwork.

string ip_cidr_range = 3;

Returns
TypeDescription
String

The ipCidrRange.

getIpCidrRangeBytes()

public ByteString getIpCidrRangeBytes()

The range of internal addresses that are owned by this subnetwork.

string ip_cidr_range = 3;

Returns
TypeDescription
ByteString

The bytes for ipCidrRange.

getNetwork()

public String getNetwork()

Network Name. Example: projects/my-project/global/networks/my-network

string network = 2;

Returns
TypeDescription
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Network Name. Example: projects/my-project/global/networks/my-network

string network = 2;

Returns
TypeDescription
ByteString

The bytes for network.

getParserForType()

public Parser<UsableSubnetwork> getParserForType()
Returns
TypeDescription
Parser<UsableSubnetwork>
Overrides

getSecondaryIpRanges(int index)

public UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index)

Secondary IP ranges.

repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
UsableSubnetworkSecondaryRange

getSecondaryIpRangesCount()

public int getSecondaryIpRangesCount()

Secondary IP ranges.

repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;

Returns
TypeDescription
int

getSecondaryIpRangesList()

public List<UsableSubnetworkSecondaryRange> getSecondaryIpRangesList()

Secondary IP ranges.

repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;

Returns
TypeDescription
List<UsableSubnetworkSecondaryRange>

getSecondaryIpRangesOrBuilder(int index)

public UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder(int index)

Secondary IP ranges.

repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
UsableSubnetworkSecondaryRangeOrBuilder

getSecondaryIpRangesOrBuilderList()

public List<? extends UsableSubnetworkSecondaryRangeOrBuilder> getSecondaryIpRangesOrBuilderList()

Secondary IP ranges.

repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;

Returns
TypeDescription
List<? extends com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStatusMessage()

public String getStatusMessage()

A human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet. For example if the secondary_ip_ranges is empty due to a permission issue, an insufficient permission message will be given by status_message.

string status_message = 5;

Returns
TypeDescription
String

The statusMessage.

getStatusMessageBytes()

public ByteString getStatusMessageBytes()

A human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet. For example if the secondary_ip_ranges is empty due to a permission issue, an insufficient permission message will be given by status_message.

string status_message = 5;

Returns
TypeDescription
ByteString

The bytes for statusMessage.

getSubnetwork()

public String getSubnetwork()

Subnetwork Name. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet

string subnetwork = 1;

Returns
TypeDescription
String

The subnetwork.

getSubnetworkBytes()

public ByteString getSubnetworkBytes()

Subnetwork Name. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet

string subnetwork = 1;

Returns
TypeDescription
ByteString

The bytes for subnetwork.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public UsableSubnetwork.Builder newBuilderForType()
Returns
TypeDescription
UsableSubnetwork.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UsableSubnetwork.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
UsableSubnetwork.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public UsableSubnetwork.Builder toBuilder()
Returns
TypeDescription
UsableSubnetwork.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException