Class ListUsableSubnetworksResponse.Builder (2.49.0)

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

ListUsableSubnetworksResponse is the response of ListUsableSubnetworksRequest.

Protobuf type google.container.v1beta1.ListUsableSubnetworksResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
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.v1beta1.UsableSubnetwork subnetworks = 1;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListUsableSubnetworksResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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.v1beta1.UsableSubnetwork subnetworks = 1;

Parameter
Name Description
value UsableSubnetwork
Returns
Type Description
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.v1beta1.UsableSubnetwork subnetworks = 1;

Parameter
Name Description
builderForValue UsableSubnetwork.Builder
Returns
Type Description
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.v1beta1.UsableSubnetwork subnetworks = 1;

Parameters
Name Description
index int
value UsableSubnetwork
Returns
Type Description
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.v1beta1.UsableSubnetwork subnetworks = 1;

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

addSubnetworksBuilder()

public UsableSubnetwork.Builder addSubnetworksBuilder()

A list of usable subnetworks in the specified network project.

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

Returns
Type Description
UsableSubnetwork.Builder

addSubnetworksBuilder(int index)

public UsableSubnetwork.Builder addSubnetworksBuilder(int index)

A list of usable subnetworks in the specified network project.

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

Parameter
Name Description
index int
Returns
Type Description
UsableSubnetwork.Builder

build()

public ListUsableSubnetworksResponse build()
Returns
Type Description
ListUsableSubnetworksResponse

buildPartial()

public ListUsableSubnetworksResponse buildPartial()
Returns
Type Description
ListUsableSubnetworksResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListUsableSubnetworksResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
ListUsableSubnetworksResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSubnetworks()

public ListUsableSubnetworksResponse.Builder clearSubnetworks()

A list of usable subnetworks in the specified network project.

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

Returns
Type Description
ListUsableSubnetworksResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListUsableSubnetworksResponse getDefaultInstanceForType()
Returns
Type Description
ListUsableSubnetworksResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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.v1beta1.UsableSubnetwork subnetworks = 1;

Parameter
Name Description
index int
Returns
Type Description
UsableSubnetwork

getSubnetworksBuilder(int index)

public UsableSubnetwork.Builder getSubnetworksBuilder(int index)

A list of usable subnetworks in the specified network project.

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

Parameter
Name Description
index int
Returns
Type Description
UsableSubnetwork.Builder

getSubnetworksBuilderList()

public List<UsableSubnetwork.Builder> getSubnetworksBuilderList()

A list of usable subnetworks in the specified network project.

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

Returns
Type Description
List<Builder>

getSubnetworksCount()

public int getSubnetworksCount()

A list of usable subnetworks in the specified network project.

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

Returns
Type Description
int

getSubnetworksList()

public List<UsableSubnetwork> getSubnetworksList()

A list of usable subnetworks in the specified network project.

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

Returns
Type Description
List<UsableSubnetwork>

getSubnetworksOrBuilder(int index)

public UsableSubnetworkOrBuilder getSubnetworksOrBuilder(int index)

A list of usable subnetworks in the specified network project.

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

Parameter
Name Description
index int
Returns
Type Description
UsableSubnetworkOrBuilder

getSubnetworksOrBuilderList()

public List<? extends UsableSubnetworkOrBuilder> getSubnetworksOrBuilderList()

A list of usable subnetworks in the specified network project.

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

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListUsableSubnetworksResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListUsableSubnetworksResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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.v1beta1.UsableSubnetwork subnetworks = 1;

Parameter
Name Description
index int
Returns
Type Description
ListUsableSubnetworksResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListUsableSubnetworksResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The nextPageToken to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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.v1beta1.UsableSubnetwork subnetworks = 1;

Parameters
Name Description
index int
value UsableSubnetwork
Returns
Type Description
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.v1beta1.UsableSubnetwork subnetworks = 1;

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

setUnknownFields(UnknownFieldSet unknownFields)

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