Class ListUsableSubnetworksResponse.Builder (2.12.0)

public static final class ListUsableSubnetworksResponse.Builder extends GeneratedMessageV3.Builder<ListUsableSubnetworksResponse.Builder> implements ListUsableSubnetworksResponseOrBuilder

ListUsableSubnetworksResponse is the response of ListUsableSubnetworksRequest.

Protobuf type google.container.v1.ListUsableSubnetworksResponse

Static Methods

getDescriptor()

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

Methods

addAllSubnetworks(Iterable<? extends UsableSubnetwork> values)

public ListUsableSubnetworksResponse.Builder addAllSubnetworks(Iterable<? extends UsableSubnetwork> values)

A list of usable subnetworks in the specified network project.

repeated .google.container.v1.UsableSubnetwork subnetworks = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.container.v1.UsableSubnetwork>
Returns
TypeDescription
ListUsableSubnetworksResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListUsableSubnetworksResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListUsableSubnetworksResponse.Builder
Overrides

addSubnetworks(UsableSubnetwork value)

public ListUsableSubnetworksResponse.Builder addSubnetworks(UsableSubnetwork value)

A list of usable subnetworks in the specified network project.

repeated .google.container.v1.UsableSubnetwork subnetworks = 1;

Parameter
NameDescription
valueUsableSubnetwork
Returns
TypeDescription
ListUsableSubnetworksResponse.Builder

addSubnetworks(UsableSubnetwork.Builder builderForValue)

public ListUsableSubnetworksResponse.Builder addSubnetworks(UsableSubnetwork.Builder builderForValue)

A list of usable subnetworks in the specified network project.

repeated .google.container.v1.UsableSubnetwork subnetworks = 1;

Parameter
NameDescription
builderForValueUsableSubnetwork.Builder
Returns
TypeDescription
ListUsableSubnetworksResponse.Builder

addSubnetworks(int index, UsableSubnetwork value)

public ListUsableSubnetworksResponse.Builder addSubnetworks(int index, UsableSubnetwork value)

A list of usable subnetworks in the specified network project.

repeated .google.container.v1.UsableSubnetwork subnetworks = 1;

Parameters
NameDescription
indexint
valueUsableSubnetwork
Returns
TypeDescription
ListUsableSubnetworksResponse.Builder

addSubnetworks(int index, UsableSubnetwork.Builder builderForValue)

public ListUsableSubnetworksResponse.Builder addSubnetworks(int index, UsableSubnetwork.Builder builderForValue)

A list of usable subnetworks in the specified network project.

repeated .google.container.v1.UsableSubnetwork subnetworks = 1;

Parameters
NameDescription
indexint
builderForValueUsableSubnetwork.Builder
Returns
TypeDescription
ListUsableSubnetworksResponse.Builder

addSubnetworksBuilder()

public UsableSubnetwork.Builder addSubnetworksBuilder()

A list of usable subnetworks in the specified network project.

repeated .google.container.v1.UsableSubnetwork subnetworks = 1;

Returns
TypeDescription
UsableSubnetwork.Builder

addSubnetworksBuilder(int index)

public UsableSubnetwork.Builder addSubnetworksBuilder(int index)

A list of usable subnetworks in the specified network project.

repeated .google.container.v1.UsableSubnetwork subnetworks = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
UsableSubnetwork.Builder

build()

public ListUsableSubnetworksResponse build()
Returns
TypeDescription
ListUsableSubnetworksResponse

buildPartial()

public ListUsableSubnetworksResponse buildPartial()
Returns
TypeDescription
ListUsableSubnetworksResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListUsableSubnetworksResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListUsableSubnetworksResponse.Builder
Overrides

clearNextPageToken()

public ListUsableSubnetworksResponse.Builder clearNextPageToken()

This token allows you to get the next page of results for list requests. If the number of results is larger than page_size, use the next_page_token as a value for the query parameter page_token in the next request. The value will become empty when there are no more pages.

string next_page_token = 2;

Returns
TypeDescription
ListUsableSubnetworksResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSubnetworks()

public ListUsableSubnetworksResponse.Builder clearSubnetworks()

A list of usable subnetworks in the specified network project.

repeated .google.container.v1.UsableSubnetwork subnetworks = 1;

Returns
TypeDescription
ListUsableSubnetworksResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListUsableSubnetworksResponse getDefaultInstanceForType()
Returns
TypeDescription
ListUsableSubnetworksResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

This token allows you to get the next page of results for list requests. If the number of results is larger than page_size, use the next_page_token as a value for the query parameter page_token in the next request. The value will become empty when there are no more pages.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

This token allows you to get the next page of results for list requests. If the number of results is larger than page_size, use the next_page_token as a value for the query parameter page_token in the next request. The value will become empty when there are no more pages.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getSubnetworks(int index)

public UsableSubnetwork getSubnetworks(int index)

A list of usable subnetworks in the specified network project.

repeated .google.container.v1.UsableSubnetwork subnetworks = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
UsableSubnetwork

getSubnetworksBuilder(int index)

public UsableSubnetwork.Builder getSubnetworksBuilder(int index)

A list of usable subnetworks in the specified network project.

repeated .google.container.v1.UsableSubnetwork subnetworks = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
UsableSubnetwork.Builder

getSubnetworksBuilderList()

public List<UsableSubnetwork.Builder> getSubnetworksBuilderList()

A list of usable subnetworks in the specified network project.

repeated .google.container.v1.UsableSubnetwork subnetworks = 1;

Returns
TypeDescription
List<Builder>

getSubnetworksCount()

public int getSubnetworksCount()

A list of usable subnetworks in the specified network project.

repeated .google.container.v1.UsableSubnetwork subnetworks = 1;

Returns
TypeDescription
int

getSubnetworksList()

public List<UsableSubnetwork> getSubnetworksList()

A list of usable subnetworks in the specified network project.

repeated .google.container.v1.UsableSubnetwork subnetworks = 1;

Returns
TypeDescription
List<UsableSubnetwork>

getSubnetworksOrBuilder(int index)

public UsableSubnetworkOrBuilder getSubnetworksOrBuilder(int index)

A list of usable subnetworks in the specified network project.

repeated .google.container.v1.UsableSubnetwork subnetworks = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
UsableSubnetworkOrBuilder

getSubnetworksOrBuilderList()

public List<? extends UsableSubnetworkOrBuilder> getSubnetworksOrBuilderList()

A list of usable subnetworks in the specified network project.

repeated .google.container.v1.UsableSubnetwork subnetworks = 1;

Returns
TypeDescription
List<? extends com.google.container.v1.UsableSubnetworkOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListUsableSubnetworksResponse other)

public ListUsableSubnetworksResponse.Builder mergeFrom(ListUsableSubnetworksResponse other)
Parameter
NameDescription
otherListUsableSubnetworksResponse
Returns
TypeDescription
ListUsableSubnetworksResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListUsableSubnetworksResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListUsableSubnetworksResponse.Builder
Overrides

removeSubnetworks(int index)

public ListUsableSubnetworksResponse.Builder removeSubnetworks(int index)

A list of usable subnetworks in the specified network project.

repeated .google.container.v1.UsableSubnetwork subnetworks = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListUsableSubnetworksResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListUsableSubnetworksResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListUsableSubnetworksResponse.Builder
Overrides

setNextPageToken(String value)

public ListUsableSubnetworksResponse.Builder setNextPageToken(String value)

This token allows you to get the next page of results for list requests. If the number of results is larger than page_size, use the next_page_token as a value for the query parameter page_token in the next request. The value will become empty when there are no more pages.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListUsableSubnetworksResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListUsableSubnetworksResponse.Builder setNextPageTokenBytes(ByteString value)

This token allows you to get the next page of results for list requests. If the number of results is larger than page_size, use the next_page_token as a value for the query parameter page_token in the next request. The value will become empty when there are no more pages.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListUsableSubnetworksResponse.Builder

This builder for chaining.

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

public ListUsableSubnetworksResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListUsableSubnetworksResponse.Builder
Overrides

setSubnetworks(int index, UsableSubnetwork value)

public ListUsableSubnetworksResponse.Builder setSubnetworks(int index, UsableSubnetwork value)

A list of usable subnetworks in the specified network project.

repeated .google.container.v1.UsableSubnetwork subnetworks = 1;

Parameters
NameDescription
indexint
valueUsableSubnetwork
Returns
TypeDescription
ListUsableSubnetworksResponse.Builder

setSubnetworks(int index, UsableSubnetwork.Builder builderForValue)

public ListUsableSubnetworksResponse.Builder setSubnetworks(int index, UsableSubnetwork.Builder builderForValue)

A list of usable subnetworks in the specified network project.

repeated .google.container.v1.UsableSubnetwork subnetworks = 1;

Parameters
NameDescription
indexint
builderForValueUsableSubnetwork.Builder
Returns
TypeDescription
ListUsableSubnetworksResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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