Class UpdateAttachedClusterRequest.Builder (0.43.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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateAttachedClusterRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateAttachedClusterRequest.Builder
Overrides

build()

public UpdateAttachedClusterRequest build()
Returns
Type Description
UpdateAttachedClusterRequest

buildPartial()

public UpdateAttachedClusterRequest buildPartial()
Returns
Type Description
UpdateAttachedClusterRequest

clear()

public UpdateAttachedClusterRequest.Builder clear()
Returns
Type Description
UpdateAttachedClusterRequest.Builder
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
Type Description
UpdateAttachedClusterRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public UpdateAttachedClusterRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateAttachedClusterRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateAttachedClusterRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateAttachedClusterRequest.Builder
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:

  • annotations.
  • authorization.admin_groups.
  • authorization.admin_users.
  • binary_authorization.evaluation_mode.
  • description.
  • logging_config.component_config.enable_components.
  • monitoring_config.managed_prometheus_config.enabled.
  • platform_version.
  • proxy_config.kubernetes_secret.name.
  • proxy_config.kubernetes_secret.namespace.

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

Returns
Type Description
UpdateAttachedClusterRequest.Builder

clearValidateOnly()

public UpdateAttachedClusterRequest.Builder clearValidateOnly()

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

bool validate_only = 2;

Returns
Type Description
UpdateAttachedClusterRequest.Builder

This builder for chaining.

clone()

public UpdateAttachedClusterRequest.Builder clone()
Returns
Type Description
UpdateAttachedClusterRequest.Builder
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
Type Description
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
Type Description
AttachedCluster.Builder

getAttachedClusterOrBuilder()

public AttachedClusterOrBuilder getAttachedClusterOrBuilder()

Required. The AttachedCluster resource to update.

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

Returns
Type Description
AttachedClusterOrBuilder

getDefaultInstanceForType()

public UpdateAttachedClusterRequest getDefaultInstanceForType()
Returns
Type Description
UpdateAttachedClusterRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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:

  • annotations.
  • authorization.admin_groups.
  • authorization.admin_users.
  • binary_authorization.evaluation_mode.
  • description.
  • logging_config.component_config.enable_components.
  • monitoring_config.managed_prometheus_config.enabled.
  • platform_version.
  • proxy_config.kubernetes_secret.name.
  • proxy_config.kubernetes_secret.namespace.

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

Returns
Type Description
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:

  • annotations.
  • authorization.admin_groups.
  • authorization.admin_users.
  • binary_authorization.evaluation_mode.
  • description.
  • logging_config.component_config.enable_components.
  • monitoring_config.managed_prometheus_config.enabled.
  • platform_version.
  • proxy_config.kubernetes_secret.name.
  • proxy_config.kubernetes_secret.namespace.

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

Returns
Type Description
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:

  • annotations.
  • authorization.admin_groups.
  • authorization.admin_users.
  • binary_authorization.evaluation_mode.
  • description.
  • logging_config.component_config.enable_components.
  • monitoring_config.managed_prometheus_config.enabled.
  • platform_version.
  • proxy_config.kubernetes_secret.name.
  • proxy_config.kubernetes_secret.namespace.

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

Returns
Type Description
FieldMaskOrBuilder

getValidateOnly()

public boolean getValidateOnly()

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

bool validate_only = 2;

Returns
Type Description
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
Type Description
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:

  • annotations.
  • authorization.admin_groups.
  • authorization.admin_users.
  • binary_authorization.evaluation_mode.
  • description.
  • logging_config.component_config.enable_components.
  • monitoring_config.managed_prometheus_config.enabled.
  • platform_version.
  • proxy_config.kubernetes_secret.name.
  • proxy_config.kubernetes_secret.namespace.

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

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value AttachedCluster
Returns
Type Description
UpdateAttachedClusterRequest.Builder

mergeFrom(UpdateAttachedClusterRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateAttachedClusterRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateAttachedClusterRequest.Builder
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:

  • annotations.
  • authorization.admin_groups.
  • authorization.admin_users.
  • binary_authorization.evaluation_mode.
  • description.
  • logging_config.component_config.enable_components.
  • monitoring_config.managed_prometheus_config.enabled.
  • platform_version.
  • proxy_config.kubernetes_secret.name.
  • proxy_config.kubernetes_secret.namespace.

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

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateAttachedClusterRequest.Builder

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
Name Description
value AttachedCluster
Returns
Type Description
UpdateAttachedClusterRequest.Builder

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
Name Description
builderForValue AttachedCluster.Builder
Returns
Type Description
UpdateAttachedClusterRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateAttachedClusterRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateAttachedClusterRequest.Builder
Overrides

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

public UpdateAttachedClusterRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateAttachedClusterRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateAttachedClusterRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateAttachedClusterRequest.Builder
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:

  • annotations.
  • authorization.admin_groups.
  • authorization.admin_users.
  • binary_authorization.evaluation_mode.
  • description.
  • logging_config.component_config.enable_components.
  • monitoring_config.managed_prometheus_config.enabled.
  • platform_version.
  • proxy_config.kubernetes_secret.name.
  • proxy_config.kubernetes_secret.namespace.

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

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateAttachedClusterRequest.Builder

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:

  • annotations.
  • authorization.admin_groups.
  • authorization.admin_users.
  • binary_authorization.evaluation_mode.
  • description.
  • logging_config.component_config.enable_components.
  • monitoring_config.managed_prometheus_config.enabled.
  • platform_version.
  • proxy_config.kubernetes_secret.name.
  • proxy_config.kubernetes_secret.namespace.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateAttachedClusterRequest.Builder

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
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
UpdateAttachedClusterRequest.Builder

This builder for chaining.