Class UpdateAttachedClusterRequest.Builder (0.11.0)

public static final class UpdateAttachedClusterRequest.Builder extends GeneratedMessageV3.Builder<UpdateAttachedClusterRequest.Builder> implements UpdateAttachedClusterRequestOrBuilder

Request message for AttachedClusters.UpdateAttachedCluster method.

Protobuf type google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateAttachedClusterRequest build()
Returns

buildPartial()

public UpdateAttachedClusterRequest buildPartial()
Returns

clear()

public UpdateAttachedClusterRequest.Builder clear()
Returns Overrides

clearAttachedCluster()

public UpdateAttachedClusterRequest.Builder clearAttachedCluster()

Required. The AttachedCluster resource to update.

.google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Returns

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateAttachedClusterRequest.Builder clearUpdateMask()

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field can only include these fields from AttachedCluster:

  • description.
  • annotations.
  • platform_version.
  • authorization.admin_users.
  • logging_config.component_config.enable_components.
  • monitoring_config.managed_prometheus_config.enabled.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns

clearValidateOnly()

public UpdateAttachedClusterRequest.Builder clearValidateOnly()

If set, only validate the request, but do not actually update the cluster.

bool validate_only = 2;

Returns
TypeDescription
UpdateAttachedClusterRequest.Builder

This builder for chaining.

clone()

public UpdateAttachedClusterRequest.Builder clone()
Returns Overrides

getAttachedCluster()

public AttachedCluster getAttachedCluster()

Required. The AttachedCluster resource to update.

.google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AttachedCluster

The attachedCluster.

getAttachedClusterBuilder()

public AttachedCluster.Builder getAttachedClusterBuilder()

Required. The AttachedCluster resource to update.

.google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Returns

getAttachedClusterOrBuilder()

public AttachedClusterOrBuilder getAttachedClusterOrBuilder()

Required. The AttachedCluster resource to update.

.google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Returns

getDefaultInstanceForType()

public UpdateAttachedClusterRequest getDefaultInstanceForType()
Returns

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUpdateMask()

public FieldMask getUpdateMask()

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field can only include these fields from AttachedCluster:

  • description.
  • annotations.
  • platform_version.
  • authorization.admin_users.
  • logging_config.component_config.enable_components.
  • monitoring_config.managed_prometheus_config.enabled.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field can only include these fields from AttachedCluster:

  • description.
  • annotations.
  • platform_version.
  • authorization.admin_users.
  • logging_config.component_config.enable_components.
  • monitoring_config.managed_prometheus_config.enabled.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field can only include these fields from AttachedCluster:

  • description.
  • annotations.
  • platform_version.
  • authorization.admin_users.
  • logging_config.component_config.enable_components.
  • monitoring_config.managed_prometheus_config.enabled.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FieldMaskOrBuilder

getValidateOnly()

public boolean getValidateOnly()

If set, only validate the request, but do not actually update the cluster.

bool validate_only = 2;

Returns
TypeDescription
boolean

The validateOnly.

hasAttachedCluster()

public boolean hasAttachedCluster()

Required. The AttachedCluster resource to update.

.google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the attachedCluster field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field can only include these fields from AttachedCluster:

  • description.
  • annotations.
  • platform_version.
  • authorization.admin_users.
  • logging_config.component_config.enable_components.
  • monitoring_config.managed_prometheus_config.enabled.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAttachedCluster(AttachedCluster value)

public UpdateAttachedClusterRequest.Builder mergeAttachedCluster(AttachedCluster value)

Required. The AttachedCluster resource to update.

.google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAttachedCluster
Returns

mergeFrom(UpdateAttachedClusterRequest other)

public UpdateAttachedClusterRequest.Builder mergeFrom(UpdateAttachedClusterRequest other)
Parameter
NameDescription
otherUpdateAttachedClusterRequest
Returns

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateAttachedClusterRequest.Builder mergeUpdateMask(FieldMask value)

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field can only include these fields from AttachedCluster:

  • description.
  • annotations.
  • platform_version.
  • authorization.admin_users.
  • logging_config.component_config.enable_components.
  • monitoring_config.managed_prometheus_config.enabled.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueFieldMask
Returns

setAttachedCluster(AttachedCluster value)

public UpdateAttachedClusterRequest.Builder setAttachedCluster(AttachedCluster value)

Required. The AttachedCluster resource to update.

.google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAttachedCluster
Returns

setAttachedCluster(AttachedCluster.Builder builderForValue)

public UpdateAttachedClusterRequest.Builder setAttachedCluster(AttachedCluster.Builder builderForValue)

Required. The AttachedCluster resource to update.

.google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueAttachedCluster.Builder
Returns

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateAttachedClusterRequest.Builder setUpdateMask(FieldMask value)

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field can only include these fields from AttachedCluster:

  • description.
  • annotations.
  • platform_version.
  • authorization.admin_users.
  • logging_config.component_config.enable_components.
  • monitoring_config.managed_prometheus_config.enabled.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueFieldMask
Returns

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateAttachedClusterRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field can only include these fields from AttachedCluster:

  • description.
  • annotations.
  • platform_version.
  • authorization.admin_users.
  • logging_config.component_config.enable_components.
  • monitoring_config.managed_prometheus_config.enabled.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueBuilder
Returns

setValidateOnly(boolean value)

public UpdateAttachedClusterRequest.Builder setValidateOnly(boolean value)

If set, only validate the request, but do not actually update the cluster.

bool validate_only = 2;

Parameter
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
UpdateAttachedClusterRequest.Builder

This builder for chaining.