Class UsableSubnetwork.Builder (2.54.0)

public static final class UsableSubnetwork.Builder extends GeneratedMessageV3.Builder<UsableSubnetwork.Builder> implements UsableSubnetworkOrBuilder

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

Protobuf type google.container.v1.UsableSubnetwork

Static Methods

getDescriptor()

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

Methods

addAllSecondaryIpRanges(Iterable<? extends UsableSubnetworkSecondaryRange> values)

public UsableSubnetwork.Builder addAllSecondaryIpRanges(Iterable<? extends UsableSubnetworkSecondaryRange> values)

Secondary IP ranges.

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

Parameter
Name Description
values Iterable<? extends com.google.container.v1.UsableSubnetworkSecondaryRange>
Returns
Type Description
UsableSubnetwork.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UsableSubnetwork.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UsableSubnetwork.Builder
Overrides

addSecondaryIpRanges(UsableSubnetworkSecondaryRange value)

public UsableSubnetwork.Builder addSecondaryIpRanges(UsableSubnetworkSecondaryRange value)

Secondary IP ranges.

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

Parameter
Name Description
value UsableSubnetworkSecondaryRange
Returns
Type Description
UsableSubnetwork.Builder

addSecondaryIpRanges(UsableSubnetworkSecondaryRange.Builder builderForValue)

public UsableSubnetwork.Builder addSecondaryIpRanges(UsableSubnetworkSecondaryRange.Builder builderForValue)

Secondary IP ranges.

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

Parameter
Name Description
builderForValue UsableSubnetworkSecondaryRange.Builder
Returns
Type Description
UsableSubnetwork.Builder

addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value)

public UsableSubnetwork.Builder addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value)

Secondary IP ranges.

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

Parameters
Name Description
index int
value UsableSubnetworkSecondaryRange
Returns
Type Description
UsableSubnetwork.Builder

addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue)

public UsableSubnetwork.Builder addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue)

Secondary IP ranges.

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

Parameters
Name Description
index int
builderForValue UsableSubnetworkSecondaryRange.Builder
Returns
Type Description
UsableSubnetwork.Builder

addSecondaryIpRangesBuilder()

public UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder()

Secondary IP ranges.

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

Returns
Type Description
UsableSubnetworkSecondaryRange.Builder

addSecondaryIpRangesBuilder(int index)

public UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder(int index)

Secondary IP ranges.

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

Parameter
Name Description
index int
Returns
Type Description
UsableSubnetworkSecondaryRange.Builder

build()

public UsableSubnetwork build()
Returns
Type Description
UsableSubnetwork

buildPartial()

public UsableSubnetwork buildPartial()
Returns
Type Description
UsableSubnetwork

clear()

public UsableSubnetwork.Builder clear()
Returns
Type Description
UsableSubnetwork.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UsableSubnetwork.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UsableSubnetwork.Builder
Overrides

clearIpCidrRange()

public UsableSubnetwork.Builder clearIpCidrRange()

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

string ip_cidr_range = 3;

Returns
Type Description
UsableSubnetwork.Builder

This builder for chaining.

clearNetwork()

public UsableSubnetwork.Builder clearNetwork()

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

string network = 2;

Returns
Type Description
UsableSubnetwork.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UsableSubnetwork.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UsableSubnetwork.Builder
Overrides

clearSecondaryIpRanges()

public UsableSubnetwork.Builder clearSecondaryIpRanges()

Secondary IP ranges.

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

Returns
Type Description
UsableSubnetwork.Builder

clearStatusMessage()

public UsableSubnetwork.Builder clearStatusMessage()

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
UsableSubnetwork.Builder

This builder for chaining.

clearSubnetwork()

public UsableSubnetwork.Builder clearSubnetwork()

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

string subnetwork = 1;

Returns
Type Description
UsableSubnetwork.Builder

This builder for chaining.

clone()

public UsableSubnetwork.Builder clone()
Returns
Type Description
UsableSubnetwork.Builder
Overrides

getDefaultInstanceForType()

public UsableSubnetwork getDefaultInstanceForType()
Returns
Type Description
UsableSubnetwork

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getSecondaryIpRanges(int index)

public UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index)

Secondary IP ranges.

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

Parameter
Name Description
index int
Returns
Type Description
UsableSubnetworkSecondaryRange

getSecondaryIpRangesBuilder(int index)

public UsableSubnetworkSecondaryRange.Builder getSecondaryIpRangesBuilder(int index)

Secondary IP ranges.

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

Parameter
Name Description
index int
Returns
Type Description
UsableSubnetworkSecondaryRange.Builder

getSecondaryIpRangesBuilderList()

public List<UsableSubnetworkSecondaryRange.Builder> getSecondaryIpRangesBuilderList()

Secondary IP ranges.

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

Returns
Type Description
List<Builder>

getSecondaryIpRangesCount()

public int getSecondaryIpRangesCount()

Secondary IP ranges.

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

Returns
Type Description
int

getSecondaryIpRangesList()

public List<UsableSubnetworkSecondaryRange> getSecondaryIpRangesList()

Secondary IP ranges.

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

Returns
Type Description
List<UsableSubnetworkSecondaryRange>

getSecondaryIpRangesOrBuilder(int index)

public UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder(int index)

Secondary IP ranges.

repeated .google.container.v1.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.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UsableSubnetwork other)

public UsableSubnetwork.Builder mergeFrom(UsableSubnetwork other)
Parameter
Name Description
other UsableSubnetwork
Returns
Type Description
UsableSubnetwork.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UsableSubnetwork.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UsableSubnetwork.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UsableSubnetwork.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UsableSubnetwork.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UsableSubnetwork.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UsableSubnetwork.Builder
Overrides

removeSecondaryIpRanges(int index)

public UsableSubnetwork.Builder removeSecondaryIpRanges(int index)

Secondary IP ranges.

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

Parameter
Name Description
index int
Returns
Type Description
UsableSubnetwork.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UsableSubnetwork.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UsableSubnetwork.Builder
Overrides

setIpCidrRange(String value)

public UsableSubnetwork.Builder setIpCidrRange(String value)

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

string ip_cidr_range = 3;

Parameter
Name Description
value String

The ipCidrRange to set.

Returns
Type Description
UsableSubnetwork.Builder

This builder for chaining.

setIpCidrRangeBytes(ByteString value)

public UsableSubnetwork.Builder setIpCidrRangeBytes(ByteString value)

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

string ip_cidr_range = 3;

Parameter
Name Description
value ByteString

The bytes for ipCidrRange to set.

Returns
Type Description
UsableSubnetwork.Builder

This builder for chaining.

setNetwork(String value)

public UsableSubnetwork.Builder setNetwork(String value)

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

string network = 2;

Parameter
Name Description
value String

The network to set.

Returns
Type Description
UsableSubnetwork.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public UsableSubnetwork.Builder setNetworkBytes(ByteString value)

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

string network = 2;

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
UsableSubnetwork.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UsableSubnetwork.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UsableSubnetwork.Builder
Overrides

setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value)

public UsableSubnetwork.Builder setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value)

Secondary IP ranges.

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

Parameters
Name Description
index int
value UsableSubnetworkSecondaryRange
Returns
Type Description
UsableSubnetwork.Builder

setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue)

public UsableSubnetwork.Builder setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue)

Secondary IP ranges.

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

Parameters
Name Description
index int
builderForValue UsableSubnetworkSecondaryRange.Builder
Returns
Type Description
UsableSubnetwork.Builder

setStatusMessage(String value)

public UsableSubnetwork.Builder setStatusMessage(String value)

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;

Parameter
Name Description
value String

The statusMessage to set.

Returns
Type Description
UsableSubnetwork.Builder

This builder for chaining.

setStatusMessageBytes(ByteString value)

public UsableSubnetwork.Builder setStatusMessageBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for statusMessage to set.

Returns
Type Description
UsableSubnetwork.Builder

This builder for chaining.

setSubnetwork(String value)

public UsableSubnetwork.Builder setSubnetwork(String value)

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

string subnetwork = 1;

Parameter
Name Description
value String

The subnetwork to set.

Returns
Type Description
UsableSubnetwork.Builder

This builder for chaining.

setSubnetworkBytes(ByteString value)

public UsableSubnetwork.Builder setSubnetworkBytes(ByteString value)

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

string subnetwork = 1;

Parameter
Name Description
value ByteString

The bytes for subnetwork to set.

Returns
Type Description
UsableSubnetwork.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final UsableSubnetwork.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UsableSubnetwork.Builder
Overrides