Package com.google.container.v1
Class SetLocationsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SetLocationsRequest.Builder>
com.google.container.v1.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.GeneratedMessage.Builder<SetLocationsRequest.Builder>
implements SetLocationsRequestOrBuilder
SetLocationsRequest sets the locations of the cluster.Protobuf type
google.container.v1.SetLocationsRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllLocations(Iterable<String> values) Required.addLocations(String value) Required.addLocationsBytes(com.google.protobuf.ByteString value) Required.build()clear()Deprecated.google.container.v1.SetLocationsRequest.cluster_id is deprecated.Required.The name (project, location, cluster) of the cluster to set locations.Deprecated.google.container.v1.SetLocationsRequest.project_id is deprecated.Deprecated.google.container.v1.SetLocationsRequest.zone is deprecated.Deprecated.google.container.v1.SetLocationsRequest.cluster_id is deprecated.com.google.protobuf.ByteStringDeprecated.google.container.v1.SetLocationsRequest.cluster_id is deprecated.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetLocations(int index) Required.com.google.protobuf.ByteStringgetLocationsBytes(int index) Required.intRequired.com.google.protobuf.ProtocolStringListRequired.getName()The name (project, location, cluster) of the cluster to set locations.com.google.protobuf.ByteStringThe name (project, location, cluster) of the cluster to set locations.Deprecated.google.container.v1.SetLocationsRequest.project_id is deprecated.com.google.protobuf.ByteStringDeprecated.google.container.v1.SetLocationsRequest.project_id is deprecated.getZone()Deprecated.google.container.v1.SetLocationsRequest.zone is deprecated.com.google.protobuf.ByteStringDeprecated.google.container.v1.SetLocationsRequest.zone is deprecated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SetLocationsRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setClusterId(String value) Deprecated.google.container.v1.SetLocationsRequest.cluster_id is deprecated.setClusterIdBytes(com.google.protobuf.ByteString value) Deprecated.google.container.v1.SetLocationsRequest.cluster_id is deprecated.setLocations(int index, String value) Required.The name (project, location, cluster) of the cluster to set locations.setNameBytes(com.google.protobuf.ByteString value) The name (project, location, cluster) of the cluster to set locations.setProjectId(String value) Deprecated.google.container.v1.SetLocationsRequest.project_id is deprecated.setProjectIdBytes(com.google.protobuf.ByteString value) Deprecated.google.container.v1.SetLocationsRequest.project_id is deprecated.Deprecated.google.container.v1.SetLocationsRequest.zone is deprecated.setZoneBytes(com.google.protobuf.ByteString value) Deprecated.google.container.v1.SetLocationsRequest.zone is deprecated.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SetLocationsRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<SetLocationsRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SetLocationsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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.google.container.v1.SetLocationsRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=4651Deprecated. 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];- Specified by:
getProjectIdin interfaceSetLocationsRequestOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
Deprecated.google.container.v1.SetLocationsRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=4651Deprecated. 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];- Specified by:
getProjectIdBytesin interfaceSetLocationsRequestOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
Deprecated.google.container.v1.SetLocationsRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=4651Deprecated. 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];- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
Deprecated.google.container.v1.SetLocationsRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=4651Deprecated. 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];- Returns:
- This builder for chaining.
-
setProjectIdBytes
@Deprecated public SetLocationsRequest.Builder setProjectIdBytes(com.google.protobuf.ByteString value) Deprecated.google.container.v1.SetLocationsRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=4651Deprecated. 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];- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
getZone
Deprecated.google.container.v1.SetLocationsRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=4657Deprecated. 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];- Specified by:
getZonein interfaceSetLocationsRequestOrBuilder- Returns:
- The zone.
-
getZoneBytes
Deprecated.google.container.v1.SetLocationsRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=4657Deprecated. 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];- Specified by:
getZoneBytesin interfaceSetLocationsRequestOrBuilder- Returns:
- The bytes for zone.
-
setZone
Deprecated.google.container.v1.SetLocationsRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=4657Deprecated. 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];- Parameters:
value- The zone to set.- Returns:
- This builder for chaining.
-
clearZone
Deprecated.google.container.v1.SetLocationsRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=4657Deprecated. 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];- Returns:
- This builder for chaining.
-
setZoneBytes
Deprecated.google.container.v1.SetLocationsRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=4657Deprecated. 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];- Parameters:
value- The bytes for zone to set.- Returns:
- This builder for chaining.
-
getClusterId
Deprecated.google.container.v1.SetLocationsRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=4661Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
string cluster_id = 3 [deprecated = true];- Specified by:
getClusterIdin interfaceSetLocationsRequestOrBuilder- Returns:
- The clusterId.
-
getClusterIdBytes
Deprecated.google.container.v1.SetLocationsRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=4661Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
string cluster_id = 3 [deprecated = true];- Specified by:
getClusterIdBytesin interfaceSetLocationsRequestOrBuilder- Returns:
- The bytes for clusterId.
-
setClusterId
Deprecated.google.container.v1.SetLocationsRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=4661Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
string cluster_id = 3 [deprecated = true];- Parameters:
value- The clusterId to set.- Returns:
- This builder for chaining.
-
clearClusterId
Deprecated.google.container.v1.SetLocationsRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=4661Deprecated. 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:
- This builder for chaining.
-
setClusterIdBytes
@Deprecated public SetLocationsRequest.Builder setClusterIdBytes(com.google.protobuf.ByteString value) Deprecated.google.container.v1.SetLocationsRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=4661Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
string cluster_id = 3 [deprecated = true];- 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
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
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
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
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
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
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
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
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
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
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.
-