Class UsableSubnetwork.Builder (2.26.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.container.v1.UsableSubnetworkSecondaryRange>
Returns
TypeDescription
UsableSubnetwork.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UsableSubnetwork.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueUsableSubnetworkSecondaryRange
Returns
TypeDescription
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
NameDescription
builderForValueUsableSubnetworkSecondaryRange.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueUsableSubnetworkSecondaryRange
Returns
TypeDescription
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
NameDescription
indexint
builderForValueUsableSubnetworkSecondaryRange.Builder
Returns
TypeDescription
UsableSubnetwork.Builder

addSecondaryIpRangesBuilder()

public UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder()

Secondary IP ranges.

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

Returns
TypeDescription
UsableSubnetworkSecondaryRange.Builder

addSecondaryIpRangesBuilder(int index)

public UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder(int index)

Secondary IP ranges.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
UsableSubnetworkSecondaryRange.Builder

build()

public UsableSubnetwork build()
Returns
TypeDescription
UsableSubnetwork

buildPartial()

public UsableSubnetwork buildPartial()
Returns
TypeDescription
UsableSubnetwork

clear()

public UsableSubnetwork.Builder clear()
Returns
TypeDescription
UsableSubnetwork.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UsableSubnetwork.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
UsableSubnetwork.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UsableSubnetwork.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UsableSubnetwork.Builder
Overrides

clearSecondaryIpRanges()

public UsableSubnetwork.Builder clearSecondaryIpRanges()

Secondary IP ranges.

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

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

This builder for chaining.

clone()

public UsableSubnetwork.Builder clone()
Returns
TypeDescription
UsableSubnetwork.Builder
Overrides

getDefaultInstanceForType()

public UsableSubnetwork getDefaultInstanceForType()
Returns
TypeDescription
UsableSubnetwork

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getSecondaryIpRanges(int index)

public UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index)

Secondary IP ranges.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
UsableSubnetworkSecondaryRange

getSecondaryIpRangesBuilder(int index)

public UsableSubnetworkSecondaryRange.Builder getSecondaryIpRangesBuilder(int index)

Secondary IP ranges.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
UsableSubnetworkSecondaryRange.Builder

getSecondaryIpRangesBuilderList()

public List<UsableSubnetworkSecondaryRange.Builder> getSecondaryIpRangesBuilderList()

Secondary IP ranges.

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

Returns
TypeDescription
List<Builder>

getSecondaryIpRangesCount()

public int getSecondaryIpRangesCount()

Secondary IP ranges.

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

Returns
TypeDescription
int

getSecondaryIpRangesList()

public List<UsableSubnetworkSecondaryRange> getSecondaryIpRangesList()

Secondary IP ranges.

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

Returns
TypeDescription
List<UsableSubnetworkSecondaryRange>

getSecondaryIpRangesOrBuilder(int index)

public UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder(int index)

Secondary IP ranges.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
UsableSubnetworkSecondaryRangeOrBuilder

getSecondaryIpRangesOrBuilderList()

public List<? extends UsableSubnetworkSecondaryRangeOrBuilder> getSecondaryIpRangesOrBuilderList()

Secondary IP ranges.

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

Returns
TypeDescription
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
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UsableSubnetwork other)

public UsableSubnetwork.Builder mergeFrom(UsableSubnetwork other)
Parameter
NameDescription
otherUsableSubnetwork
Returns
TypeDescription
UsableSubnetwork.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UsableSubnetwork.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UsableSubnetwork.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UsableSubnetwork.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UsableSubnetwork.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UsableSubnetwork.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
UsableSubnetwork.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UsableSubnetwork.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The ipCidrRange to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for ipCidrRange to set.

Returns
TypeDescription
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
NameDescription
valueString

The network to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for network to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueUsableSubnetworkSecondaryRange
Returns
TypeDescription
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
NameDescription
indexint
builderForValueUsableSubnetworkSecondaryRange.Builder
Returns
TypeDescription
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
NameDescription
valueString

The statusMessage to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for statusMessage to set.

Returns
TypeDescription
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
NameDescription
valueString

The subnetwork to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for subnetwork to set.

Returns
TypeDescription
UsableSubnetwork.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final UsableSubnetwork.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UsableSubnetwork.Builder
Overrides