public static final class UpdateClusterRequest.Builder extends GeneratedMessageV3.Builder<UpdateClusterRequest.Builder> implements UpdateClusterRequestOrBuilder
A request to update a cluster.Protobuf type
google.cloud.dataproc.v1.UpdateClusterRequestgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<UpdateClusterRequest.Builder>public UpdateClusterRequest.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<UpdateClusterRequest.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<UpdateClusterRequest.Builder>public UpdateClusterRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic UpdateClusterRequest build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic UpdateClusterRequest buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic UpdateClusterRequest.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<UpdateClusterRequest.Builder>public UpdateClusterRequest.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<UpdateClusterRequest.Builder>public UpdateClusterRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<UpdateClusterRequest.Builder>public UpdateClusterRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<UpdateClusterRequest.Builder>public UpdateClusterRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<UpdateClusterRequest.Builder>public UpdateClusterRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<UpdateClusterRequest.Builder>public UpdateClusterRequest.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<UpdateClusterRequest.Builder>public UpdateClusterRequest.Builder mergeFrom(UpdateClusterRequest other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<UpdateClusterRequest.Builder>public UpdateClusterRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<UpdateClusterRequest.Builder>java.io.IOExceptionpublic java.lang.String getProjectId()
Required. The ID of the Google Cloud Platform project the cluster belongs to.
string project_id = 1;getProjectId in interface UpdateClusterRequestOrBuilderpublic ByteString getProjectIdBytes()
Required. The ID of the Google Cloud Platform project the cluster belongs to.
string project_id = 1;getProjectIdBytes in interface UpdateClusterRequestOrBuilderpublic UpdateClusterRequest.Builder setProjectId(java.lang.String value)
Required. The ID of the Google Cloud Platform project the cluster belongs to.
string project_id = 1;public UpdateClusterRequest.Builder clearProjectId()
Required. The ID of the Google Cloud Platform project the cluster belongs to.
string project_id = 1;public UpdateClusterRequest.Builder setProjectIdBytes(ByteString value)
Required. The ID of the Google Cloud Platform project the cluster belongs to.
string project_id = 1;public java.lang.String getRegion()
Required. The Cloud Dataproc region in which to handle the request.
string region = 5;getRegion in interface UpdateClusterRequestOrBuilderpublic ByteString getRegionBytes()
Required. The Cloud Dataproc region in which to handle the request.
string region = 5;getRegionBytes in interface UpdateClusterRequestOrBuilderpublic UpdateClusterRequest.Builder setRegion(java.lang.String value)
Required. The Cloud Dataproc region in which to handle the request.
string region = 5;public UpdateClusterRequest.Builder clearRegion()
Required. The Cloud Dataproc region in which to handle the request.
string region = 5;public UpdateClusterRequest.Builder setRegionBytes(ByteString value)
Required. The Cloud Dataproc region in which to handle the request.
string region = 5;public java.lang.String getClusterName()
Required. The cluster name.
string cluster_name = 2;getClusterName in interface UpdateClusterRequestOrBuilderpublic ByteString getClusterNameBytes()
Required. The cluster name.
string cluster_name = 2;getClusterNameBytes in interface UpdateClusterRequestOrBuilderpublic UpdateClusterRequest.Builder setClusterName(java.lang.String value)
Required. The cluster name.
string cluster_name = 2;public UpdateClusterRequest.Builder clearClusterName()
Required. The cluster name.
string cluster_name = 2;public UpdateClusterRequest.Builder setClusterNameBytes(ByteString value)
Required. The cluster name.
string cluster_name = 2;public boolean hasCluster()
Required. The changes to the cluster.
.google.cloud.dataproc.v1.Cluster cluster = 3;hasCluster in interface UpdateClusterRequestOrBuilderpublic Cluster getCluster()
Required. The changes to the cluster.
.google.cloud.dataproc.v1.Cluster cluster = 3;getCluster in interface UpdateClusterRequestOrBuilderpublic UpdateClusterRequest.Builder setCluster(Cluster value)
Required. The changes to the cluster.
.google.cloud.dataproc.v1.Cluster cluster = 3;public UpdateClusterRequest.Builder setCluster(Cluster.Builder builderForValue)
Required. The changes to the cluster.
.google.cloud.dataproc.v1.Cluster cluster = 3;public UpdateClusterRequest.Builder mergeCluster(Cluster value)
Required. The changes to the cluster.
.google.cloud.dataproc.v1.Cluster cluster = 3;public UpdateClusterRequest.Builder clearCluster()
Required. The changes to the cluster.
.google.cloud.dataproc.v1.Cluster cluster = 3;public Cluster.Builder getClusterBuilder()
Required. The changes to the cluster.
.google.cloud.dataproc.v1.Cluster cluster = 3;public ClusterOrBuilder getClusterOrBuilder()
Required. The changes to the cluster.
.google.cloud.dataproc.v1.Cluster cluster = 3;getClusterOrBuilder in interface UpdateClusterRequestOrBuilderpublic boolean hasUpdateMask()
Required. Specifies the path, relative to `Cluster`, of
the field to update. For example, to change the number of workers
in a cluster to 5, the `update_mask` parameter would be
specified as `config.worker_config.num_instances`,
and the `PATCH` request body would specify the new value, as follows:
{
"config":{
"workerConfig":{
"numInstances":"5"
}
}
}
Similarly, to change the number of preemptible workers in a cluster to 5,
the `update_mask` parameter would be
`config.secondary_worker_config.num_instances`, and the `PATCH` request
body would be set as follows:
{
"config":{
"secondaryWorkerConfig":{
"numInstances":"5"
}
}
}
<strong>Note:</strong> Currently, only the following fields can be updated:
<table>
<tbody>
<tr>
<td><strong>Mask</strong></td>
<td><strong>Purpose</strong></td>
</tr>
<tr>
<td><strong><em>labels</em></strong></td>
<td>Update labels</td>
</tr>
<tr>
<td><strong><em>config.worker_config.num_instances</em></strong></td>
<td>Resize primary worker group</td>
</tr>
<tr>
<td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
<td>Resize secondary worker group</td>
</tr>
</tbody>
</table>
.google.protobuf.FieldMask update_mask = 4;hasUpdateMask in interface UpdateClusterRequestOrBuilderpublic FieldMask getUpdateMask()
Required. Specifies the path, relative to `Cluster`, of
the field to update. For example, to change the number of workers
in a cluster to 5, the `update_mask` parameter would be
specified as `config.worker_config.num_instances`,
and the `PATCH` request body would specify the new value, as follows:
{
"config":{
"workerConfig":{
"numInstances":"5"
}
}
}
Similarly, to change the number of preemptible workers in a cluster to 5,
the `update_mask` parameter would be
`config.secondary_worker_config.num_instances`, and the `PATCH` request
body would be set as follows:
{
"config":{
"secondaryWorkerConfig":{
"numInstances":"5"
}
}
}
<strong>Note:</strong> Currently, only the following fields can be updated:
<table>
<tbody>
<tr>
<td><strong>Mask</strong></td>
<td><strong>Purpose</strong></td>
</tr>
<tr>
<td><strong><em>labels</em></strong></td>
<td>Update labels</td>
</tr>
<tr>
<td><strong><em>config.worker_config.num_instances</em></strong></td>
<td>Resize primary worker group</td>
</tr>
<tr>
<td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
<td>Resize secondary worker group</td>
</tr>
</tbody>
</table>
.google.protobuf.FieldMask update_mask = 4;getUpdateMask in interface UpdateClusterRequestOrBuilderpublic UpdateClusterRequest.Builder setUpdateMask(FieldMask value)
Required. Specifies the path, relative to `Cluster`, of
the field to update. For example, to change the number of workers
in a cluster to 5, the `update_mask` parameter would be
specified as `config.worker_config.num_instances`,
and the `PATCH` request body would specify the new value, as follows:
{
"config":{
"workerConfig":{
"numInstances":"5"
}
}
}
Similarly, to change the number of preemptible workers in a cluster to 5,
the `update_mask` parameter would be
`config.secondary_worker_config.num_instances`, and the `PATCH` request
body would be set as follows:
{
"config":{
"secondaryWorkerConfig":{
"numInstances":"5"
}
}
}
<strong>Note:</strong> Currently, only the following fields can be updated:
<table>
<tbody>
<tr>
<td><strong>Mask</strong></td>
<td><strong>Purpose</strong></td>
</tr>
<tr>
<td><strong><em>labels</em></strong></td>
<td>Update labels</td>
</tr>
<tr>
<td><strong><em>config.worker_config.num_instances</em></strong></td>
<td>Resize primary worker group</td>
</tr>
<tr>
<td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
<td>Resize secondary worker group</td>
</tr>
</tbody>
</table>
.google.protobuf.FieldMask update_mask = 4;public UpdateClusterRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)
Required. Specifies the path, relative to `Cluster`, of
the field to update. For example, to change the number of workers
in a cluster to 5, the `update_mask` parameter would be
specified as `config.worker_config.num_instances`,
and the `PATCH` request body would specify the new value, as follows:
{
"config":{
"workerConfig":{
"numInstances":"5"
}
}
}
Similarly, to change the number of preemptible workers in a cluster to 5,
the `update_mask` parameter would be
`config.secondary_worker_config.num_instances`, and the `PATCH` request
body would be set as follows:
{
"config":{
"secondaryWorkerConfig":{
"numInstances":"5"
}
}
}
<strong>Note:</strong> Currently, only the following fields can be updated:
<table>
<tbody>
<tr>
<td><strong>Mask</strong></td>
<td><strong>Purpose</strong></td>
</tr>
<tr>
<td><strong><em>labels</em></strong></td>
<td>Update labels</td>
</tr>
<tr>
<td><strong><em>config.worker_config.num_instances</em></strong></td>
<td>Resize primary worker group</td>
</tr>
<tr>
<td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
<td>Resize secondary worker group</td>
</tr>
</tbody>
</table>
.google.protobuf.FieldMask update_mask = 4;public UpdateClusterRequest.Builder mergeUpdateMask(FieldMask value)
Required. Specifies the path, relative to `Cluster`, of
the field to update. For example, to change the number of workers
in a cluster to 5, the `update_mask` parameter would be
specified as `config.worker_config.num_instances`,
and the `PATCH` request body would specify the new value, as follows:
{
"config":{
"workerConfig":{
"numInstances":"5"
}
}
}
Similarly, to change the number of preemptible workers in a cluster to 5,
the `update_mask` parameter would be
`config.secondary_worker_config.num_instances`, and the `PATCH` request
body would be set as follows:
{
"config":{
"secondaryWorkerConfig":{
"numInstances":"5"
}
}
}
<strong>Note:</strong> Currently, only the following fields can be updated:
<table>
<tbody>
<tr>
<td><strong>Mask</strong></td>
<td><strong>Purpose</strong></td>
</tr>
<tr>
<td><strong><em>labels</em></strong></td>
<td>Update labels</td>
</tr>
<tr>
<td><strong><em>config.worker_config.num_instances</em></strong></td>
<td>Resize primary worker group</td>
</tr>
<tr>
<td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
<td>Resize secondary worker group</td>
</tr>
</tbody>
</table>
.google.protobuf.FieldMask update_mask = 4;public UpdateClusterRequest.Builder clearUpdateMask()
Required. Specifies the path, relative to `Cluster`, of
the field to update. For example, to change the number of workers
in a cluster to 5, the `update_mask` parameter would be
specified as `config.worker_config.num_instances`,
and the `PATCH` request body would specify the new value, as follows:
{
"config":{
"workerConfig":{
"numInstances":"5"
}
}
}
Similarly, to change the number of preemptible workers in a cluster to 5,
the `update_mask` parameter would be
`config.secondary_worker_config.num_instances`, and the `PATCH` request
body would be set as follows:
{
"config":{
"secondaryWorkerConfig":{
"numInstances":"5"
}
}
}
<strong>Note:</strong> Currently, only the following fields can be updated:
<table>
<tbody>
<tr>
<td><strong>Mask</strong></td>
<td><strong>Purpose</strong></td>
</tr>
<tr>
<td><strong><em>labels</em></strong></td>
<td>Update labels</td>
</tr>
<tr>
<td><strong><em>config.worker_config.num_instances</em></strong></td>
<td>Resize primary worker group</td>
</tr>
<tr>
<td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
<td>Resize secondary worker group</td>
</tr>
</tbody>
</table>
.google.protobuf.FieldMask update_mask = 4;public FieldMask.Builder getUpdateMaskBuilder()
Required. Specifies the path, relative to `Cluster`, of
the field to update. For example, to change the number of workers
in a cluster to 5, the `update_mask` parameter would be
specified as `config.worker_config.num_instances`,
and the `PATCH` request body would specify the new value, as follows:
{
"config":{
"workerConfig":{
"numInstances":"5"
}
}
}
Similarly, to change the number of preemptible workers in a cluster to 5,
the `update_mask` parameter would be
`config.secondary_worker_config.num_instances`, and the `PATCH` request
body would be set as follows:
{
"config":{
"secondaryWorkerConfig":{
"numInstances":"5"
}
}
}
<strong>Note:</strong> Currently, only the following fields can be updated:
<table>
<tbody>
<tr>
<td><strong>Mask</strong></td>
<td><strong>Purpose</strong></td>
</tr>
<tr>
<td><strong><em>labels</em></strong></td>
<td>Update labels</td>
</tr>
<tr>
<td><strong><em>config.worker_config.num_instances</em></strong></td>
<td>Resize primary worker group</td>
</tr>
<tr>
<td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
<td>Resize secondary worker group</td>
</tr>
</tbody>
</table>
.google.protobuf.FieldMask update_mask = 4;public FieldMaskOrBuilder getUpdateMaskOrBuilder()
Required. Specifies the path, relative to `Cluster`, of
the field to update. For example, to change the number of workers
in a cluster to 5, the `update_mask` parameter would be
specified as `config.worker_config.num_instances`,
and the `PATCH` request body would specify the new value, as follows:
{
"config":{
"workerConfig":{
"numInstances":"5"
}
}
}
Similarly, to change the number of preemptible workers in a cluster to 5,
the `update_mask` parameter would be
`config.secondary_worker_config.num_instances`, and the `PATCH` request
body would be set as follows:
{
"config":{
"secondaryWorkerConfig":{
"numInstances":"5"
}
}
}
<strong>Note:</strong> Currently, only the following fields can be updated:
<table>
<tbody>
<tr>
<td><strong>Mask</strong></td>
<td><strong>Purpose</strong></td>
</tr>
<tr>
<td><strong><em>labels</em></strong></td>
<td>Update labels</td>
</tr>
<tr>
<td><strong><em>config.worker_config.num_instances</em></strong></td>
<td>Resize primary worker group</td>
</tr>
<tr>
<td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
<td>Resize secondary worker group</td>
</tr>
</tbody>
</table>
.google.protobuf.FieldMask update_mask = 4;getUpdateMaskOrBuilder in interface UpdateClusterRequestOrBuilderpublic final UpdateClusterRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<UpdateClusterRequest.Builder>public final UpdateClusterRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<UpdateClusterRequest.Builder>