Class SetLocationsRequest.Builder (2.86.0)

public static final class SetLocationsRequest.Builder extends GeneratedMessage.Builder<SetLocationsRequest.Builder> implements SetLocationsRequestOrBuilder

SetLocationsRequest sets the locations of the cluster.

Protobuf type google.container.v1beta1.SetLocationsRequest

Static Methods

getDescriptor()

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

Methods

addAllLocations(Iterable<String> values)

public SetLocationsRequest.Builder addAllLocations(Iterable<String> values)

Required. The desired list of Google Compute Engine zones in which the cluster's nodes should be located. Changing the locations a cluster is in will result in nodes being either created or removed from the cluster, depending on whether locations are being added or removed.

This list must always include the cluster's primary zone.

repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The locations to add.

Returns
Type Description
SetLocationsRequest.Builder

This builder for chaining.

addLocations(String value)

public SetLocationsRequest.Builder addLocations(String value)

Required. The desired list of Google Compute Engine zones in which the cluster's nodes should be located. Changing the locations a cluster is in will result in nodes being either created or removed from the cluster, depending on whether locations are being added or removed.

This list must always include the cluster's primary zone.

repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The locations to add.

Returns
Type Description
SetLocationsRequest.Builder

This builder for chaining.

addLocationsBytes(ByteString value)

public SetLocationsRequest.Builder addLocationsBytes(ByteString value)

Required. The desired list of Google Compute Engine zones in which the cluster's nodes should be located. Changing the locations a cluster is in will result in nodes being either created or removed from the cluster, depending on whether locations are being added or removed.

This list must always include the cluster's primary zone.

repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the locations to add.

Returns
Type Description
SetLocationsRequest.Builder

This builder for chaining.

build()

public SetLocationsRequest build()
Returns
Type Description
SetLocationsRequest

buildPartial()

public SetLocationsRequest buildPartial()
Returns
Type Description
SetLocationsRequest

clear()

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

clearClusterId() (deprecated)

public SetLocationsRequest.Builder clearClusterId()

Deprecated. google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=4792

Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true];

Returns
Type Description
SetLocationsRequest.Builder

This builder for chaining.

clearLocations()

public SetLocationsRequest.Builder clearLocations()

Required. The desired list of Google Compute Engine zones in which the cluster's nodes should be located. Changing the locations a cluster is in will result in nodes being either created or removed from the cluster, depending on whether locations are being added or removed.

This list must always include the cluster's primary zone.

repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SetLocationsRequest.Builder

This builder for chaining.

clearName()

public SetLocationsRequest.Builder clearName()

The name (project, location, cluster) of the cluster to set locations. Specified in the format projects/*/locations/*/clusters/*.

string name = 6;

Returns
Type Description
SetLocationsRequest.Builder

This builder for chaining.

clearProjectId() (deprecated)

public SetLocationsRequest.Builder clearProjectId()

Deprecated. google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=4782

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true];

Returns
Type Description
SetLocationsRequest.Builder

This builder for chaining.

clearZone() (deprecated)

public SetLocationsRequest.Builder clearZone()

Deprecated. google.container.v1beta1.SetLocationsRequest.zone is deprecated. See google/container/v1beta1/cluster_service.proto;l=4788

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string zone = 2 [deprecated = true];

Returns
Type Description
SetLocationsRequest.Builder

This builder for chaining.

getClusterId() (deprecated)

public String getClusterId()

Deprecated. google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=4792

Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true];

Returns
Type Description
String

The clusterId.

getClusterIdBytes() (deprecated)

public ByteString getClusterIdBytes()

Deprecated. google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=4792

Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true];

Returns
Type Description
ByteString

The bytes for clusterId.

getDefaultInstanceForType()

public SetLocationsRequest getDefaultInstanceForType()
Returns
Type Description
SetLocationsRequest

getDescriptorForType()

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

getLocations(int index)

public String getLocations(int index)

Required. The desired list of Google Compute Engine zones in which the cluster's nodes should be located. Changing the locations a cluster is in will result in nodes being either created or removed from the cluster, depending on whether locations are being added or removed.

This list must always include the cluster's primary zone.

repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The locations at the given index.

getLocationsBytes(int index)

public ByteString getLocationsBytes(int index)

Required. The desired list of Google Compute Engine zones in which the cluster's nodes should be located. Changing the locations a cluster is in will result in nodes being either created or removed from the cluster, depending on whether locations are being added or removed.

This list must always include the cluster's primary zone.

repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the locations at the given index.

getLocationsCount()

public int getLocationsCount()

Required. The desired list of Google Compute Engine zones in which the cluster's nodes should be located. Changing the locations a cluster is in will result in nodes being either created or removed from the cluster, depending on whether locations are being added or removed.

This list must always include the cluster's primary zone.

repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of locations.

getLocationsList()

public ProtocolStringList getLocationsList()

Required. The desired list of Google Compute Engine zones in which the cluster's nodes should be located. Changing the locations a cluster is in will result in nodes being either created or removed from the cluster, depending on whether locations are being added or removed.

This list must always include the cluster's primary zone.

repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the locations.

getName()

public String getName()

The name (project, location, cluster) of the cluster to set locations. Specified in the format projects/*/locations/*/clusters/*.

string name = 6;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name (project, location, cluster) of the cluster to set locations. Specified in the format projects/*/locations/*/clusters/*.

string name = 6;

Returns
Type Description
ByteString

The bytes for name.

getProjectId() (deprecated)

public String getProjectId()

Deprecated. google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=4782

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true];

Returns
Type Description
String

The projectId.

getProjectIdBytes() (deprecated)

public ByteString getProjectIdBytes()

Deprecated. google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=4782

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true];

Returns
Type Description
ByteString

The bytes for projectId.

getZone() (deprecated)

public String getZone()

Deprecated. google.container.v1beta1.SetLocationsRequest.zone is deprecated. See google/container/v1beta1/cluster_service.proto;l=4788

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string zone = 2 [deprecated = true];

Returns
Type Description
String

The zone.

getZoneBytes() (deprecated)

public ByteString getZoneBytes()

Deprecated. google.container.v1beta1.SetLocationsRequest.zone is deprecated. See google/container/v1beta1/cluster_service.proto;l=4788

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string zone = 2 [deprecated = true];

Returns
Type Description
ByteString

The bytes for zone.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SetLocationsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setClusterId(String value) (deprecated)

public SetLocationsRequest.Builder setClusterId(String value)

Deprecated. google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=4792

Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true];

Parameter
Name Description
value String

The clusterId to set.

Returns
Type Description
SetLocationsRequest.Builder

This builder for chaining.

setClusterIdBytes(ByteString value) (deprecated)

public SetLocationsRequest.Builder setClusterIdBytes(ByteString value)

Deprecated. google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=4792

Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for clusterId to set.

Returns
Type Description
SetLocationsRequest.Builder

This builder for chaining.

setLocations(int index, String value)

public SetLocationsRequest.Builder setLocations(int index, String value)

Required. The desired list of Google Compute Engine zones in which the cluster's nodes should be located. Changing the locations a cluster is in will result in nodes being either created or removed from the cluster, depending on whether locations are being added or removed.

This list must always include the cluster's primary zone.

repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The locations to set.

Returns
Type Description
SetLocationsRequest.Builder

This builder for chaining.

setName(String value)

public SetLocationsRequest.Builder setName(String value)

The name (project, location, cluster) of the cluster to set locations. Specified in the format projects/*/locations/*/clusters/*.

string name = 6;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SetLocationsRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SetLocationsRequest.Builder setNameBytes(ByteString value)

The name (project, location, cluster) of the cluster to set locations. Specified in the format projects/*/locations/*/clusters/*.

string name = 6;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SetLocationsRequest.Builder

This builder for chaining.

setProjectId(String value) (deprecated)

public SetLocationsRequest.Builder setProjectId(String value)

Deprecated. google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=4782

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true];

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
SetLocationsRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value) (deprecated)

public SetLocationsRequest.Builder setProjectIdBytes(ByteString value)

Deprecated. google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=4782

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
SetLocationsRequest.Builder

This builder for chaining.

setZone(String value) (deprecated)

public SetLocationsRequest.Builder setZone(String value)

Deprecated. google.container.v1beta1.SetLocationsRequest.zone is deprecated. See google/container/v1beta1/cluster_service.proto;l=4788

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string zone = 2 [deprecated = true];

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
SetLocationsRequest.Builder

This builder for chaining.

setZoneBytes(ByteString value) (deprecated)

public SetLocationsRequest.Builder setZoneBytes(ByteString value)

Deprecated. google.container.v1beta1.SetLocationsRequest.zone is deprecated. See google/container/v1beta1/cluster_service.proto;l=4788

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string zone = 2 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
SetLocationsRequest.Builder

This builder for chaining.