Class UpdateAttachedClusterRequest.Builder (0.38.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateAttachedClusterRequest build()
Returns
TypeDescription
UpdateAttachedClusterRequest

buildPartial()

public UpdateAttachedClusterRequest buildPartial()
Returns
TypeDescription
UpdateAttachedClusterRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateAttachedClusterRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
UpdateAttachedClusterRequest.Builder

This builder for chaining.

clone()

public UpdateAttachedClusterRequest.Builder clone()
Returns
TypeDescription
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
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
TypeDescription
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
TypeDescription
AttachedClusterOrBuilder

getDefaultInstanceForType()

public UpdateAttachedClusterRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateAttachedClusterRequest

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:

  • 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
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:

  • 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
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:

  • 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
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:

  • 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
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
TypeDescription
UpdateAttachedClusterRequest.Builder

mergeFrom(UpdateAttachedClusterRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateAttachedClusterRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
valueAttachedCluster
Returns
TypeDescription
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
NameDescription
builderForValueAttachedCluster.Builder
Returns
TypeDescription
UpdateAttachedClusterRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateAttachedClusterRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateAttachedClusterRequest.Builder
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
TypeDescription
UpdateAttachedClusterRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateAttachedClusterRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
UpdateAttachedClusterRequest.Builder

This builder for chaining.