Package com.google.container.v1beta1
Class SetLocationsRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SetLocationsRequest.Builder>
-
- com.google.container.v1beta1.SetLocationsRequest.Builder
-
- All Implemented Interfaces:
SetLocationsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SetLocationsRequest
public static final class SetLocationsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SetLocationsRequest.Builder> implements SetLocationsRequestOrBuilder
SetLocationsRequest sets the locations of the cluster.
Protobuf typegoogle.container.v1beta1.SetLocationsRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SetLocationsRequest.BuilderaddAllLocations(Iterable<String> values)Required.SetLocationsRequest.BuilderaddLocations(String value)Required.SetLocationsRequest.BuilderaddLocationsBytes(com.google.protobuf.ByteString value)Required.SetLocationsRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SetLocationsRequestbuild()SetLocationsRequestbuildPartial()SetLocationsRequest.Builderclear()SetLocationsRequest.BuilderclearClusterId()Deprecated.google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated.SetLocationsRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SetLocationsRequest.BuilderclearLocations()Required.SetLocationsRequest.BuilderclearName()The name (project, location, cluster) of the cluster to set locations.SetLocationsRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SetLocationsRequest.BuilderclearProjectId()Deprecated.google.container.v1beta1.SetLocationsRequest.project_id is deprecated.SetLocationsRequest.BuilderclearZone()Deprecated.google.container.v1beta1.SetLocationsRequest.zone is deprecated.SetLocationsRequest.Builderclone()StringgetClusterId()Deprecated.google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated.com.google.protobuf.ByteStringgetClusterIdBytes()Deprecated.google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated.SetLocationsRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetLocations(int index)Required.com.google.protobuf.ByteStringgetLocationsBytes(int index)Required.intgetLocationsCount()Required.com.google.protobuf.ProtocolStringListgetLocationsList()Required.StringgetName()The name (project, location, cluster) of the cluster to set locations.com.google.protobuf.ByteStringgetNameBytes()The name (project, location, cluster) of the cluster to set locations.StringgetProjectId()Deprecated.google.container.v1beta1.SetLocationsRequest.project_id is deprecated.com.google.protobuf.ByteStringgetProjectIdBytes()Deprecated.google.container.v1beta1.SetLocationsRequest.project_id is deprecated.StringgetZone()Deprecated.google.container.v1beta1.SetLocationsRequest.zone is deprecated.com.google.protobuf.ByteStringgetZoneBytes()Deprecated.google.container.v1beta1.SetLocationsRequest.zone is deprecated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SetLocationsRequest.BuildermergeFrom(SetLocationsRequest other)SetLocationsRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SetLocationsRequest.BuildermergeFrom(com.google.protobuf.Message other)SetLocationsRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SetLocationsRequest.BuildersetClusterId(String value)Deprecated.google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated.SetLocationsRequest.BuildersetClusterIdBytes(com.google.protobuf.ByteString value)Deprecated.google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated.SetLocationsRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SetLocationsRequest.BuildersetLocations(int index, String value)Required.SetLocationsRequest.BuildersetName(String value)The name (project, location, cluster) of the cluster to set locations.SetLocationsRequest.BuildersetNameBytes(com.google.protobuf.ByteString value)The name (project, location, cluster) of the cluster to set locations.SetLocationsRequest.BuildersetProjectId(String value)Deprecated.google.container.v1beta1.SetLocationsRequest.project_id is deprecated.SetLocationsRequest.BuildersetProjectIdBytes(com.google.protobuf.ByteString value)Deprecated.google.container.v1beta1.SetLocationsRequest.project_id is deprecated.SetLocationsRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SetLocationsRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SetLocationsRequest.BuildersetZone(String value)Deprecated.google.container.v1beta1.SetLocationsRequest.zone is deprecated.SetLocationsRequest.BuildersetZoneBytes(com.google.protobuf.ByteString value)Deprecated.google.container.v1beta1.SetLocationsRequest.zone is deprecated.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SetLocationsRequest.Builder>
-
clear
public SetLocationsRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SetLocationsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<SetLocationsRequest.Builder>
-
getDefaultInstanceForType
public SetLocationsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SetLocationsRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SetLocationsRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SetLocationsRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SetLocationsRequest.Builder>
-
setField
public SetLocationsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SetLocationsRequest.Builder>
-
clearField
public SetLocationsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SetLocationsRequest.Builder>
-
clearOneof
public SetLocationsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SetLocationsRequest.Builder>
-
setRepeatedField
public SetLocationsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SetLocationsRequest.Builder>
-
addRepeatedField
public SetLocationsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SetLocationsRequest.Builder>
-
mergeFrom
public SetLocationsRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SetLocationsRequest.Builder>
-
mergeFrom
public SetLocationsRequest.Builder mergeFrom(SetLocationsRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SetLocationsRequest.Builder>
-
mergeFrom
public SetLocationsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SetLocationsRequest.Builder>- Throws:
IOException
-
getProjectId
@Deprecated public String getProjectId()
Deprecated.google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=3184Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.
string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED];- Specified by:
getProjectIdin interfaceSetLocationsRequestOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
@Deprecated public com.google.protobuf.ByteString getProjectIdBytes()
Deprecated.google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=3184Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.
string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED];- Specified by:
getProjectIdBytesin interfaceSetLocationsRequestOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
@Deprecated public SetLocationsRequest.Builder setProjectId(String value)
Deprecated.google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=3184Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.
string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED];- Parameters:
value- The projectId to set.- Returns:
- 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=3184Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.
string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setProjectIdBytes
@Deprecated public SetLocationsRequest.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
Deprecated.google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=3184Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.
string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
getZone
@Deprecated public String getZone()
Deprecated.google.container.v1beta1.SetLocationsRequest.zone is deprecated. See google/container/v1beta1/cluster_service.proto;l=3191Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED];- Specified by:
getZonein interfaceSetLocationsRequestOrBuilder- Returns:
- The zone.
-
getZoneBytes
@Deprecated public com.google.protobuf.ByteString getZoneBytes()
Deprecated.google.container.v1beta1.SetLocationsRequest.zone is deprecated. See google/container/v1beta1/cluster_service.proto;l=3191Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED];- Specified by:
getZoneBytesin interfaceSetLocationsRequestOrBuilder- Returns:
- The bytes for zone.
-
setZone
@Deprecated public SetLocationsRequest.Builder setZone(String value)
Deprecated.google.container.v1beta1.SetLocationsRequest.zone is deprecated. See google/container/v1beta1/cluster_service.proto;l=3191Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED];- Parameters:
value- The zone to set.- Returns:
- 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=3191Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setZoneBytes
@Deprecated public SetLocationsRequest.Builder setZoneBytes(com.google.protobuf.ByteString value)
Deprecated.google.container.v1beta1.SetLocationsRequest.zone is deprecated. See google/container/v1beta1/cluster_service.proto;l=3191Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for zone to set.- Returns:
- 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=3195Required. 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, (.google.api.field_behavior) = REQUIRED];- Specified by:
getClusterIdin interfaceSetLocationsRequestOrBuilder- Returns:
- The clusterId.
-
getClusterIdBytes
@Deprecated public com.google.protobuf.ByteString getClusterIdBytes()
Deprecated.google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=3195Required. 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, (.google.api.field_behavior) = REQUIRED];- Specified by:
getClusterIdBytesin interfaceSetLocationsRequestOrBuilder- Returns:
- The bytes for clusterId.
-
setClusterId
@Deprecated public SetLocationsRequest.Builder setClusterId(String value)
Deprecated.google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=3195Required. 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, (.google.api.field_behavior) = REQUIRED];- Parameters:
value- The clusterId to set.- Returns:
- This builder for chaining.
-
clearClusterId
@Deprecated public SetLocationsRequest.Builder clearClusterId()
Deprecated.google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=3195Required. 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, (.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setClusterIdBytes
@Deprecated public SetLocationsRequest.Builder setClusterIdBytes(com.google.protobuf.ByteString value)
Deprecated.google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=3195Required. 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, (.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for clusterId to set.- Returns:
- This builder for chaining.
-
getLocationsList
public com.google.protobuf.ProtocolStringList getLocationsList()
Required. The desired list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) 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];- Specified by:
getLocationsListin interfaceSetLocationsRequestOrBuilder- Returns:
- A list containing the locations.
-
getLocationsCount
public int getLocationsCount()
Required. The desired list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) 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];- Specified by:
getLocationsCountin interfaceSetLocationsRequestOrBuilder- Returns:
- The count of locations.
-
getLocations
public String getLocations(int index)
Required. The desired list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) 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];- Specified by:
getLocationsin interfaceSetLocationsRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The locations at the given index.
-
getLocationsBytes
public com.google.protobuf.ByteString getLocationsBytes(int index)
Required. The desired list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) 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];- Specified by:
getLocationsBytesin interfaceSetLocationsRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the locations at the given index.
-
setLocations
public SetLocationsRequest.Builder setLocations(int index, String value)
Required. The desired list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) 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:
index- The index to set the value at.value- The locations to set.- Returns:
- This builder for chaining.
-
addLocations
public SetLocationsRequest.Builder addLocations(String value)
Required. The desired list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) 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:
value- The locations to add.- Returns:
- This builder for chaining.
-
addAllLocations
public SetLocationsRequest.Builder addAllLocations(Iterable<String> values)
Required. The desired list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) 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:
values- The locations to add.- Returns:
- This builder for chaining.
-
clearLocations
public SetLocationsRequest.Builder clearLocations()
Required. The desired list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) 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:
- This builder for chaining.
-
addLocationsBytes
public SetLocationsRequest.Builder addLocationsBytes(com.google.protobuf.ByteString value)
Required. The desired list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) 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:
value- The bytes of the locations to add.- Returns:
- This builder for chaining.
-
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;- Specified by:
getNamein interfaceSetLocationsRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name (project, location, cluster) of the cluster to set locations. Specified in the format `projects/*/locations/*/clusters/*`.
string name = 6;- Specified by:
getNameBytesin interfaceSetLocationsRequestOrBuilder- Returns:
- The bytes for name.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- 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:
- This builder for chaining.
-
setNameBytes
public SetLocationsRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
The name (project, location, cluster) of the cluster to set locations. Specified in the format `projects/*/locations/*/clusters/*`.
string name = 6;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final SetLocationsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SetLocationsRequest.Builder>
-
mergeUnknownFields
public final SetLocationsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SetLocationsRequest.Builder>
-
-