Class ListLocationsResponse.Builder (2.21.0)

public static final class ListLocationsResponse.Builder extends GeneratedMessageV3.Builder<ListLocationsResponse.Builder> implements ListLocationsResponseOrBuilder

ListLocationsResponse returns the list of all GKE locations and their recommendation state.

Protobuf type google.container.v1beta1.ListLocationsResponse

Static Methods

getDescriptor()

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

Methods

addAllLocations(Iterable<? extends Location> values)

public ListLocationsResponse.Builder addAllLocations(Iterable<? extends Location> values)

A full list of GKE locations.

repeated .google.container.v1beta1.Location locations = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.container.v1beta1.Location>
Returns
TypeDescription
ListLocationsResponse.Builder

addLocations(Location value)

public ListLocationsResponse.Builder addLocations(Location value)

A full list of GKE locations.

repeated .google.container.v1beta1.Location locations = 1;

Parameter
NameDescription
valueLocation
Returns
TypeDescription
ListLocationsResponse.Builder

addLocations(Location.Builder builderForValue)

public ListLocationsResponse.Builder addLocations(Location.Builder builderForValue)

A full list of GKE locations.

repeated .google.container.v1beta1.Location locations = 1;

Parameter
NameDescription
builderForValueLocation.Builder
Returns
TypeDescription
ListLocationsResponse.Builder

addLocations(int index, Location value)

public ListLocationsResponse.Builder addLocations(int index, Location value)

A full list of GKE locations.

repeated .google.container.v1beta1.Location locations = 1;

Parameters
NameDescription
indexint
valueLocation
Returns
TypeDescription
ListLocationsResponse.Builder

addLocations(int index, Location.Builder builderForValue)

public ListLocationsResponse.Builder addLocations(int index, Location.Builder builderForValue)

A full list of GKE locations.

repeated .google.container.v1beta1.Location locations = 1;

Parameters
NameDescription
indexint
builderForValueLocation.Builder
Returns
TypeDescription
ListLocationsResponse.Builder

addLocationsBuilder()

public Location.Builder addLocationsBuilder()

A full list of GKE locations.

repeated .google.container.v1beta1.Location locations = 1;

Returns
TypeDescription
Location.Builder

addLocationsBuilder(int index)

public Location.Builder addLocationsBuilder(int index)

A full list of GKE locations.

repeated .google.container.v1beta1.Location locations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Location.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListLocationsResponse build()
Returns
TypeDescription
ListLocationsResponse

buildPartial()

public ListLocationsResponse buildPartial()
Returns
TypeDescription
ListLocationsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLocations()

public ListLocationsResponse.Builder clearLocations()

A full list of GKE locations.

repeated .google.container.v1beta1.Location locations = 1;

Returns
TypeDescription
ListLocationsResponse.Builder

clearNextPageToken()

public ListLocationsResponse.Builder clearNextPageToken()

Only return ListLocationsResponse that occur after the page_token. This value should be populated from the ListLocationsResponse.next_page_token if that response token was set (which happens when listing more Locations than fit in a single ListLocationsResponse).

string next_page_token = 2;

Returns
TypeDescription
ListLocationsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListLocationsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListLocationsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLocations(int index)

public Location getLocations(int index)

A full list of GKE locations.

repeated .google.container.v1beta1.Location locations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Location

getLocationsBuilder(int index)

public Location.Builder getLocationsBuilder(int index)

A full list of GKE locations.

repeated .google.container.v1beta1.Location locations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Location.Builder

getLocationsBuilderList()

public List<Location.Builder> getLocationsBuilderList()

A full list of GKE locations.

repeated .google.container.v1beta1.Location locations = 1;

Returns
TypeDescription
List<Builder>

getLocationsCount()

public int getLocationsCount()

A full list of GKE locations.

repeated .google.container.v1beta1.Location locations = 1;

Returns
TypeDescription
int

getLocationsList()

public List<Location> getLocationsList()

A full list of GKE locations.

repeated .google.container.v1beta1.Location locations = 1;

Returns
TypeDescription
List<Location>

getLocationsOrBuilder(int index)

public LocationOrBuilder getLocationsOrBuilder(int index)

A full list of GKE locations.

repeated .google.container.v1beta1.Location locations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
LocationOrBuilder

getLocationsOrBuilderList()

public List<? extends LocationOrBuilder> getLocationsOrBuilderList()

A full list of GKE locations.

repeated .google.container.v1beta1.Location locations = 1;

Returns
TypeDescription
List<? extends com.google.container.v1beta1.LocationOrBuilder>

getNextPageToken()

public String getNextPageToken()

Only return ListLocationsResponse that occur after the page_token. This value should be populated from the ListLocationsResponse.next_page_token if that response token was set (which happens when listing more Locations than fit in a single ListLocationsResponse).

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Only return ListLocationsResponse that occur after the page_token. This value should be populated from the ListLocationsResponse.next_page_token if that response token was set (which happens when listing more Locations than fit in a single ListLocationsResponse).

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListLocationsResponse other)

public ListLocationsResponse.Builder mergeFrom(ListLocationsResponse other)
Parameter
NameDescription
otherListLocationsResponse
Returns
TypeDescription
ListLocationsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeLocations(int index)

public ListLocationsResponse.Builder removeLocations(int index)

A full list of GKE locations.

repeated .google.container.v1beta1.Location locations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListLocationsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLocations(int index, Location value)

public ListLocationsResponse.Builder setLocations(int index, Location value)

A full list of GKE locations.

repeated .google.container.v1beta1.Location locations = 1;

Parameters
NameDescription
indexint
valueLocation
Returns
TypeDescription
ListLocationsResponse.Builder

setLocations(int index, Location.Builder builderForValue)

public ListLocationsResponse.Builder setLocations(int index, Location.Builder builderForValue)

A full list of GKE locations.

repeated .google.container.v1beta1.Location locations = 1;

Parameters
NameDescription
indexint
builderForValueLocation.Builder
Returns
TypeDescription
ListLocationsResponse.Builder

setNextPageToken(String value)

public ListLocationsResponse.Builder setNextPageToken(String value)

Only return ListLocationsResponse that occur after the page_token. This value should be populated from the ListLocationsResponse.next_page_token if that response token was set (which happens when listing more Locations than fit in a single ListLocationsResponse).

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListLocationsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListLocationsResponse.Builder setNextPageTokenBytes(ByteString value)

Only return ListLocationsResponse that occur after the page_token. This value should be populated from the ListLocationsResponse.next_page_token if that response token was set (which happens when listing more Locations than fit in a single ListLocationsResponse).

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListLocationsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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