Class UsableSubnetwork (2.57.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
Type Description
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
Type Description
int

SECONDARY_IP_RANGES_FIELD_NUMBER

public static final int SECONDARY_IP_RANGES_FIELD_NUMBER
Field Value
Type Description
int

STATUS_MESSAGE_FIELD_NUMBER

public static final int STATUS_MESSAGE_FIELD_NUMBER
Field Value
Type Description
int

SUBNETWORK_FIELD_NUMBER

public static final int SUBNETWORK_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static UsableSubnetwork getDefaultInstance()
Returns
Type Description
UsableSubnetwork

getDescriptor()

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

newBuilder()

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

newBuilder(UsableSubnetwork prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public UsableSubnetwork getDefaultInstanceForType()
Returns
Type Description
UsableSubnetwork

getIpCidrRange()

public String getIpCidrRange()

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

string ip_cidr_range = 3;

Returns
Type Description
String

The ipCidrRange.

getIpCidrRangeBytes()

public ByteString getIpCidrRangeBytes()

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

string ip_cidr_range = 3;

Returns
Type Description
ByteString

The bytes for ipCidrRange.

getNetwork()

public String getNetwork()

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

string network = 2;

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

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

string network = 2;

Returns
Type Description
ByteString

The bytes for network.

getParserForType()

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

getSecondaryIpRanges(int index)

public UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index)

Secondary IP ranges.

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

Parameter
Name Description
index int
Returns
Type Description
UsableSubnetworkSecondaryRange

getSecondaryIpRangesCount()

public int getSecondaryIpRangesCount()

Secondary IP ranges.

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

Returns
Type Description
int

getSecondaryIpRangesList()

public List<UsableSubnetworkSecondaryRange> getSecondaryIpRangesList()

Secondary IP ranges.

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

Returns
Type Description
List<UsableSubnetworkSecondaryRange>

getSecondaryIpRangesOrBuilder(int index)

public UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder(int index)

Secondary IP ranges.

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

Parameter
Name Description
index int
Returns
Type Description
UsableSubnetworkSecondaryRangeOrBuilder

getSecondaryIpRangesOrBuilderList()

public List<? extends UsableSubnetworkSecondaryRangeOrBuilder> getSecondaryIpRangesOrBuilderList()

Secondary IP ranges.

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

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
String

The subnetwork.

getSubnetworkBytes()

public ByteString getSubnetworkBytes()

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

string subnetwork = 1;

Returns
Type Description
ByteString

The bytes for subnetwork.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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