Class AttachedCluster.Builder (0.40.0)

public static final class AttachedCluster.Builder extends GeneratedMessageV3.Builder<AttachedCluster.Builder> implements AttachedClusterOrBuilder

An Anthos cluster running on customer own infrastructure.

Protobuf type google.cloud.gkemulticloud.v1.AttachedCluster

Static Methods

getDescriptor()

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

Methods

addAllErrors(Iterable<? extends AttachedClusterError> values)

public AttachedCluster.Builder addAllErrors(Iterable<? extends AttachedClusterError> values)

Output only. A set of errors found in the cluster.

repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.gkemulticloud.v1.AttachedClusterError>
Returns
TypeDescription
AttachedCluster.Builder

addErrors(AttachedClusterError value)

public AttachedCluster.Builder addErrors(AttachedClusterError value)

Output only. A set of errors found in the cluster.

repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAttachedClusterError
Returns
TypeDescription
AttachedCluster.Builder

addErrors(AttachedClusterError.Builder builderForValue)

public AttachedCluster.Builder addErrors(AttachedClusterError.Builder builderForValue)

Output only. A set of errors found in the cluster.

repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueAttachedClusterError.Builder
Returns
TypeDescription
AttachedCluster.Builder

addErrors(int index, AttachedClusterError value)

public AttachedCluster.Builder addErrors(int index, AttachedClusterError value)

Output only. A set of errors found in the cluster.

repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueAttachedClusterError
Returns
TypeDescription
AttachedCluster.Builder

addErrors(int index, AttachedClusterError.Builder builderForValue)

public AttachedCluster.Builder addErrors(int index, AttachedClusterError.Builder builderForValue)

Output only. A set of errors found in the cluster.

repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueAttachedClusterError.Builder
Returns
TypeDescription
AttachedCluster.Builder

addErrorsBuilder()

public AttachedClusterError.Builder addErrorsBuilder()

Output only. A set of errors found in the cluster.

repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AttachedClusterError.Builder

addErrorsBuilder(int index)

public AttachedClusterError.Builder addErrorsBuilder(int index)

Output only. A set of errors found in the cluster.

repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
AttachedClusterError.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AttachedCluster build()
Returns
TypeDescription
AttachedCluster

buildPartial()

public AttachedCluster buildPartial()
Returns
TypeDescription
AttachedCluster

clear()

public AttachedCluster.Builder clear()
Returns
TypeDescription
AttachedCluster.Builder
Overrides

clearAnnotations()

public AttachedCluster.Builder clearAnnotations()
Returns
TypeDescription
AttachedCluster.Builder

clearAuthorization()

public AttachedCluster.Builder clearAuthorization()

Optional. Configuration related to the cluster RBAC settings.

.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AttachedCluster.Builder

clearBinaryAuthorization()

public AttachedCluster.Builder clearBinaryAuthorization()

Optional. Binary Authorization configuration for this cluster.

.google.cloud.gkemulticloud.v1.BinaryAuthorization binary_authorization = 25 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AttachedCluster.Builder

clearClusterRegion()

public AttachedCluster.Builder clearClusterRegion()

Output only. The region where this cluster runs.

For EKS clusters, this is a AWS region. For AKS clusters, this is an Azure region.

string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

clearCreateTime()

public AttachedCluster.Builder clearCreateTime()

Output only. The time at which this cluster was registered.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AttachedCluster.Builder

clearDescription()

public AttachedCluster.Builder clearDescription()

Optional. A human readable description of this cluster. Cannot be longer than 255 UTF-8 encoded bytes.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

clearDistribution()

public AttachedCluster.Builder clearDistribution()

Required. The Kubernetes distribution of the underlying attached cluster.

Supported values: ["eks", "aks", "generic"].

string distribution = 16 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

clearErrors()

public AttachedCluster.Builder clearErrors()

Output only. A set of errors found in the cluster.

repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AttachedCluster.Builder

clearEtag()

public AttachedCluster.Builder clearEtag()

Allows clients to perform consistent read-modify-writes through optimistic concurrency control.

Can be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 11;

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFleet()

public AttachedCluster.Builder clearFleet()

Required. Fleet configuration.

.google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AttachedCluster.Builder

clearKubernetesVersion()

public AttachedCluster.Builder clearKubernetesVersion()

Output only. The Kubernetes version of the cluster.

string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

clearLoggingConfig()

public AttachedCluster.Builder clearLoggingConfig()

Optional. Logging configuration for this cluster.

.google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AttachedCluster.Builder

clearMonitoringConfig()

public AttachedCluster.Builder clearMonitoringConfig()

Optional. Monitoring configuration for this cluster.

.google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AttachedCluster.Builder

clearName()

public AttachedCluster.Builder clearName()

The name of this resource.

Cluster names are formatted as projects/<project-number>/locations/<region>/attachedClusters/<cluster-id>.

See Resource Names for more details on Google Cloud Platform resource names.

string name = 1;

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

clearOidcConfig()

public AttachedCluster.Builder clearOidcConfig()

Required. OpenID Connect (OIDC) configuration for the cluster.

.google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AttachedCluster.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPlatformVersion()

public AttachedCluster.Builder clearPlatformVersion()

Required. The platform version for the cluster (e.g. 1.19.0-gke.1000).

You can list all supported versions on a given Google Cloud region by calling GetAttachedServerConfig.

string platform_version = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

clearProxyConfig()

public AttachedCluster.Builder clearProxyConfig()

Optional. Proxy configuration for outbound HTTP(S) traffic.

.google.cloud.gkemulticloud.v1.AttachedProxyConfig proxy_config = 24 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AttachedCluster.Builder

clearReconciling()

public AttachedCluster.Builder clearReconciling()

Output only. If set, there are currently changes in flight to the cluster.

bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

clearState()

public AttachedCluster.Builder clearState()

Output only. The current state of the cluster.

.google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

clearUid()

public AttachedCluster.Builder clearUid()

Output only. A globally unique identifier for the cluster.

string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

clearUpdateTime()

public AttachedCluster.Builder clearUpdateTime()

Output only. The time at which this cluster was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AttachedCluster.Builder

clearWorkloadIdentityConfig()

public AttachedCluster.Builder clearWorkloadIdentityConfig()

Output only. Workload Identity settings.

.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AttachedCluster.Builder

clone()

public AttachedCluster.Builder clone()
Returns
TypeDescription
AttachedCluster.Builder
Overrides

containsAnnotations(String key)

public boolean containsAnnotations(String key)

Optional. Annotations on the cluster.

This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAnnotations() (deprecated)

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Optional. Annotations on the cluster.

This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Optional. Annotations on the cluster.

This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public String getAnnotationsOrDefault(String key, String defaultValue)

Optional. Annotations on the cluster.

This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Optional. Annotations on the cluster.

This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getAuthorization()

public AttachedClustersAuthorization getAuthorization()

Optional. Configuration related to the cluster RBAC settings.

.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AttachedClustersAuthorization

The authorization.

getAuthorizationBuilder()

public AttachedClustersAuthorization.Builder getAuthorizationBuilder()

Optional. Configuration related to the cluster RBAC settings.

.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AttachedClustersAuthorization.Builder

getAuthorizationOrBuilder()

public AttachedClustersAuthorizationOrBuilder getAuthorizationOrBuilder()

Optional. Configuration related to the cluster RBAC settings.

.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AttachedClustersAuthorizationOrBuilder

getBinaryAuthorization()

public BinaryAuthorization getBinaryAuthorization()

Optional. Binary Authorization configuration for this cluster.

.google.cloud.gkemulticloud.v1.BinaryAuthorization binary_authorization = 25 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
BinaryAuthorization

The binaryAuthorization.

getBinaryAuthorizationBuilder()

public BinaryAuthorization.Builder getBinaryAuthorizationBuilder()

Optional. Binary Authorization configuration for this cluster.

.google.cloud.gkemulticloud.v1.BinaryAuthorization binary_authorization = 25 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
BinaryAuthorization.Builder

getBinaryAuthorizationOrBuilder()

public BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder()

Optional. Binary Authorization configuration for this cluster.

.google.cloud.gkemulticloud.v1.BinaryAuthorization binary_authorization = 25 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
BinaryAuthorizationOrBuilder

getClusterRegion()

public String getClusterRegion()

Output only. The region where this cluster runs.

For EKS clusters, this is a AWS region. For AKS clusters, this is an Azure region.

string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The clusterRegion.

getClusterRegionBytes()

public ByteString getClusterRegionBytes()

Output only. The region where this cluster runs.

For EKS clusters, this is a AWS region. For AKS clusters, this is an Azure region.

string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for clusterRegion.

getCreateTime()

public Timestamp getCreateTime()

Output only. The time at which this cluster was registered.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time at which this cluster was registered.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time at which this cluster was registered.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public AttachedCluster getDefaultInstanceForType()
Returns
TypeDescription
AttachedCluster

getDescription()

public String getDescription()

Optional. A human readable description of this cluster. Cannot be longer than 255 UTF-8 encoded bytes.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. A human readable description of this cluster. Cannot be longer than 255 UTF-8 encoded bytes.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDistribution()

public String getDistribution()

Required. The Kubernetes distribution of the underlying attached cluster.

Supported values: ["eks", "aks", "generic"].

string distribution = 16 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The distribution.

getDistributionBytes()

public ByteString getDistributionBytes()

Required. The Kubernetes distribution of the underlying attached cluster.

Supported values: ["eks", "aks", "generic"].

string distribution = 16 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for distribution.

getErrors(int index)

public AttachedClusterError getErrors(int index)

Output only. A set of errors found in the cluster.

repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
AttachedClusterError

getErrorsBuilder(int index)

public AttachedClusterError.Builder getErrorsBuilder(int index)

Output only. A set of errors found in the cluster.

repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
AttachedClusterError.Builder

getErrorsBuilderList()

public List<AttachedClusterError.Builder> getErrorsBuilderList()

Output only. A set of errors found in the cluster.

repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Builder>

getErrorsCount()

public int getErrorsCount()

Output only. A set of errors found in the cluster.

repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getErrorsList()

public List<AttachedClusterError> getErrorsList()

Output only. A set of errors found in the cluster.

repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<AttachedClusterError>

getErrorsOrBuilder(int index)

public AttachedClusterErrorOrBuilder getErrorsOrBuilder(int index)

Output only. A set of errors found in the cluster.

repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
AttachedClusterErrorOrBuilder

getErrorsOrBuilderList()

public List<? extends AttachedClusterErrorOrBuilder> getErrorsOrBuilderList()

Output only. A set of errors found in the cluster.

repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.gkemulticloud.v1.AttachedClusterErrorOrBuilder>

getEtag()

public String getEtag()

Allows clients to perform consistent read-modify-writes through optimistic concurrency control.

Can be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 11;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Allows clients to perform consistent read-modify-writes through optimistic concurrency control.

Can be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 11;

Returns
TypeDescription
ByteString

The bytes for etag.

getFleet()

public Fleet getFleet()

Required. Fleet configuration.

.google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Fleet

The fleet.

getFleetBuilder()

public Fleet.Builder getFleetBuilder()

Required. Fleet configuration.

.google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Fleet.Builder

getFleetOrBuilder()

public FleetOrBuilder getFleetOrBuilder()

Required. Fleet configuration.

.google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FleetOrBuilder

getKubernetesVersion()

public String getKubernetesVersion()

Output only. The Kubernetes version of the cluster.

string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The kubernetesVersion.

getKubernetesVersionBytes()

public ByteString getKubernetesVersionBytes()

Output only. The Kubernetes version of the cluster.

string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for kubernetesVersion.

getLoggingConfig()

public LoggingConfig getLoggingConfig()

Optional. Logging configuration for this cluster.

.google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
LoggingConfig

The loggingConfig.

getLoggingConfigBuilder()

public LoggingConfig.Builder getLoggingConfigBuilder()

Optional. Logging configuration for this cluster.

.google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
LoggingConfig.Builder

getLoggingConfigOrBuilder()

public LoggingConfigOrBuilder getLoggingConfigOrBuilder()

Optional. Logging configuration for this cluster.

.google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
LoggingConfigOrBuilder

getMonitoringConfig()

public MonitoringConfig getMonitoringConfig()

Optional. Monitoring configuration for this cluster.

.google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MonitoringConfig

The monitoringConfig.

getMonitoringConfigBuilder()

public MonitoringConfig.Builder getMonitoringConfigBuilder()

Optional. Monitoring configuration for this cluster.

.google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MonitoringConfig.Builder

getMonitoringConfigOrBuilder()

public MonitoringConfigOrBuilder getMonitoringConfigOrBuilder()

Optional. Monitoring configuration for this cluster.

.google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MonitoringConfigOrBuilder

getMutableAnnotations() (deprecated)

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

The name of this resource.

Cluster names are formatted as projects/<project-number>/locations/<region>/attachedClusters/<cluster-id>.

See Resource Names for more details on Google Cloud Platform resource names.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of this resource.

Cluster names are formatted as projects/<project-number>/locations/<region>/attachedClusters/<cluster-id>.

See Resource Names for more details on Google Cloud Platform resource names.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getOidcConfig()

public AttachedOidcConfig getOidcConfig()

Required. OpenID Connect (OIDC) configuration for the cluster.

.google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AttachedOidcConfig

The oidcConfig.

getOidcConfigBuilder()

public AttachedOidcConfig.Builder getOidcConfigBuilder()

Required. OpenID Connect (OIDC) configuration for the cluster.

.google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AttachedOidcConfig.Builder

getOidcConfigOrBuilder()

public AttachedOidcConfigOrBuilder getOidcConfigOrBuilder()

Required. OpenID Connect (OIDC) configuration for the cluster.

.google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AttachedOidcConfigOrBuilder

getPlatformVersion()

public String getPlatformVersion()

Required. The platform version for the cluster (e.g. 1.19.0-gke.1000).

You can list all supported versions on a given Google Cloud region by calling GetAttachedServerConfig.

string platform_version = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The platformVersion.

getPlatformVersionBytes()

public ByteString getPlatformVersionBytes()

Required. The platform version for the cluster (e.g. 1.19.0-gke.1000).

You can list all supported versions on a given Google Cloud region by calling GetAttachedServerConfig.

string platform_version = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for platformVersion.

getProxyConfig()

public AttachedProxyConfig getProxyConfig()

Optional. Proxy configuration for outbound HTTP(S) traffic.

.google.cloud.gkemulticloud.v1.AttachedProxyConfig proxy_config = 24 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AttachedProxyConfig

The proxyConfig.

getProxyConfigBuilder()

public AttachedProxyConfig.Builder getProxyConfigBuilder()

Optional. Proxy configuration for outbound HTTP(S) traffic.

.google.cloud.gkemulticloud.v1.AttachedProxyConfig proxy_config = 24 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AttachedProxyConfig.Builder

getProxyConfigOrBuilder()

public AttachedProxyConfigOrBuilder getProxyConfigOrBuilder()

Optional. Proxy configuration for outbound HTTP(S) traffic.

.google.cloud.gkemulticloud.v1.AttachedProxyConfig proxy_config = 24 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AttachedProxyConfigOrBuilder

getReconciling()

public boolean getReconciling()

Output only. If set, there are currently changes in flight to the cluster.

bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The reconciling.

getState()

public AttachedCluster.State getState()

Output only. The current state of the cluster.

.google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AttachedCluster.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the cluster.

.google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getUid()

public String getUid()

Output only. A globally unique identifier for the cluster.

string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. A globally unique identifier for the cluster.

string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time at which this cluster was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time at which this cluster was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time at which this cluster was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getWorkloadIdentityConfig()

public WorkloadIdentityConfig getWorkloadIdentityConfig()

Output only. Workload Identity settings.

.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
WorkloadIdentityConfig

The workloadIdentityConfig.

getWorkloadIdentityConfigBuilder()

public WorkloadIdentityConfig.Builder getWorkloadIdentityConfigBuilder()

Output only. Workload Identity settings.

.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
WorkloadIdentityConfig.Builder

getWorkloadIdentityConfigOrBuilder()

public WorkloadIdentityConfigOrBuilder getWorkloadIdentityConfigOrBuilder()

Output only. Workload Identity settings.

.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
WorkloadIdentityConfigOrBuilder

hasAuthorization()

public boolean hasAuthorization()

Optional. Configuration related to the cluster RBAC settings.

.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the authorization field is set.

hasBinaryAuthorization()

public boolean hasBinaryAuthorization()

Optional. Binary Authorization configuration for this cluster.

.google.cloud.gkemulticloud.v1.BinaryAuthorization binary_authorization = 25 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the binaryAuthorization field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time at which this cluster was registered.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasFleet()

public boolean hasFleet()

Required. Fleet configuration.

.google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the fleet field is set.

hasLoggingConfig()

public boolean hasLoggingConfig()

Optional. Logging configuration for this cluster.

.google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the loggingConfig field is set.

hasMonitoringConfig()

public boolean hasMonitoringConfig()

Optional. Monitoring configuration for this cluster.

.google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the monitoringConfig field is set.

hasOidcConfig()

public boolean hasOidcConfig()

Required. OpenID Connect (OIDC) configuration for the cluster.

.google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the oidcConfig field is set.

hasProxyConfig()

public boolean hasProxyConfig()

Optional. Proxy configuration for outbound HTTP(S) traffic.

.google.cloud.gkemulticloud.v1.AttachedProxyConfig proxy_config = 24 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the proxyConfig field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time at which this cluster was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hasWorkloadIdentityConfig()

public boolean hasWorkloadIdentityConfig()

Output only. Workload Identity settings.

.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the workloadIdentityConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAuthorization(AttachedClustersAuthorization value)

public AttachedCluster.Builder mergeAuthorization(AttachedClustersAuthorization value)

Optional. Configuration related to the cluster RBAC settings.

.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAttachedClustersAuthorization
Returns
TypeDescription
AttachedCluster.Builder

mergeBinaryAuthorization(BinaryAuthorization value)

public AttachedCluster.Builder mergeBinaryAuthorization(BinaryAuthorization value)

Optional. Binary Authorization configuration for this cluster.

.google.cloud.gkemulticloud.v1.BinaryAuthorization binary_authorization = 25 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueBinaryAuthorization
Returns
TypeDescription
AttachedCluster.Builder

mergeCreateTime(Timestamp value)

public AttachedCluster.Builder mergeCreateTime(Timestamp value)

Output only. The time at which this cluster was registered.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AttachedCluster.Builder

mergeFleet(Fleet value)

public AttachedCluster.Builder mergeFleet(Fleet value)

Required. Fleet configuration.

.google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueFleet
Returns
TypeDescription
AttachedCluster.Builder

mergeFrom(AttachedCluster other)

public AttachedCluster.Builder mergeFrom(AttachedCluster other)
Parameter
NameDescription
otherAttachedCluster
Returns
TypeDescription
AttachedCluster.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLoggingConfig(LoggingConfig value)

public AttachedCluster.Builder mergeLoggingConfig(LoggingConfig value)

Optional. Logging configuration for this cluster.

.google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueLoggingConfig
Returns
TypeDescription
AttachedCluster.Builder

mergeMonitoringConfig(MonitoringConfig value)

public AttachedCluster.Builder mergeMonitoringConfig(MonitoringConfig value)

Optional. Monitoring configuration for this cluster.

.google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueMonitoringConfig
Returns
TypeDescription
AttachedCluster.Builder

mergeOidcConfig(AttachedOidcConfig value)

public AttachedCluster.Builder mergeOidcConfig(AttachedOidcConfig value)

Required. OpenID Connect (OIDC) configuration for the cluster.

.google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAttachedOidcConfig
Returns
TypeDescription
AttachedCluster.Builder

mergeProxyConfig(AttachedProxyConfig value)

public AttachedCluster.Builder mergeProxyConfig(AttachedProxyConfig value)

Optional. Proxy configuration for outbound HTTP(S) traffic.

.google.cloud.gkemulticloud.v1.AttachedProxyConfig proxy_config = 24 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAttachedProxyConfig
Returns
TypeDescription
AttachedCluster.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public AttachedCluster.Builder mergeUpdateTime(Timestamp value)

Output only. The time at which this cluster was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AttachedCluster.Builder

mergeWorkloadIdentityConfig(WorkloadIdentityConfig value)

public AttachedCluster.Builder mergeWorkloadIdentityConfig(WorkloadIdentityConfig value)

Output only. Workload Identity settings.

.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueWorkloadIdentityConfig
Returns
TypeDescription
AttachedCluster.Builder

putAllAnnotations(Map<String,String> values)

public AttachedCluster.Builder putAllAnnotations(Map<String,String> values)

Optional. Annotations on the cluster.

This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
AttachedCluster.Builder

putAnnotations(String key, String value)

public AttachedCluster.Builder putAnnotations(String key, String value)

Optional. Annotations on the cluster.

This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
AttachedCluster.Builder

removeAnnotations(String key)

public AttachedCluster.Builder removeAnnotations(String key)

Optional. Annotations on the cluster.

This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
AttachedCluster.Builder

removeErrors(int index)

public AttachedCluster.Builder removeErrors(int index)

Output only. A set of errors found in the cluster.

repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
AttachedCluster.Builder

setAuthorization(AttachedClustersAuthorization value)

public AttachedCluster.Builder setAuthorization(AttachedClustersAuthorization value)

Optional. Configuration related to the cluster RBAC settings.

.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAttachedClustersAuthorization
Returns
TypeDescription
AttachedCluster.Builder

setAuthorization(AttachedClustersAuthorization.Builder builderForValue)

public AttachedCluster.Builder setAuthorization(AttachedClustersAuthorization.Builder builderForValue)

Optional. Configuration related to the cluster RBAC settings.

.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueAttachedClustersAuthorization.Builder
Returns
TypeDescription
AttachedCluster.Builder

setBinaryAuthorization(BinaryAuthorization value)

public AttachedCluster.Builder setBinaryAuthorization(BinaryAuthorization value)

Optional. Binary Authorization configuration for this cluster.

.google.cloud.gkemulticloud.v1.BinaryAuthorization binary_authorization = 25 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueBinaryAuthorization
Returns
TypeDescription
AttachedCluster.Builder

setBinaryAuthorization(BinaryAuthorization.Builder builderForValue)

public AttachedCluster.Builder setBinaryAuthorization(BinaryAuthorization.Builder builderForValue)

Optional. Binary Authorization configuration for this cluster.

.google.cloud.gkemulticloud.v1.BinaryAuthorization binary_authorization = 25 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueBinaryAuthorization.Builder
Returns
TypeDescription
AttachedCluster.Builder

setClusterRegion(String value)

public AttachedCluster.Builder setClusterRegion(String value)

Output only. The region where this cluster runs.

For EKS clusters, this is a AWS region. For AKS clusters, this is an Azure region.

string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The clusterRegion to set.

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

setClusterRegionBytes(ByteString value)

public AttachedCluster.Builder setClusterRegionBytes(ByteString value)

Output only. The region where this cluster runs.

For EKS clusters, this is a AWS region. For AKS clusters, this is an Azure region.

string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for clusterRegion to set.

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public AttachedCluster.Builder setCreateTime(Timestamp value)

Output only. The time at which this cluster was registered.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AttachedCluster.Builder

setCreateTime(Timestamp.Builder builderForValue)

public AttachedCluster.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time at which this cluster was registered.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AttachedCluster.Builder

setDescription(String value)

public AttachedCluster.Builder setDescription(String value)

Optional. A human readable description of this cluster. Cannot be longer than 255 UTF-8 encoded bytes.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public AttachedCluster.Builder setDescriptionBytes(ByteString value)

Optional. A human readable description of this cluster. Cannot be longer than 255 UTF-8 encoded bytes.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

setDistribution(String value)

public AttachedCluster.Builder setDistribution(String value)

Required. The Kubernetes distribution of the underlying attached cluster.

Supported values: ["eks", "aks", "generic"].

string distribution = 16 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The distribution to set.

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

setDistributionBytes(ByteString value)

public AttachedCluster.Builder setDistributionBytes(ByteString value)

Required. The Kubernetes distribution of the underlying attached cluster.

Supported values: ["eks", "aks", "generic"].

string distribution = 16 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for distribution to set.

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

setErrors(int index, AttachedClusterError value)

public AttachedCluster.Builder setErrors(int index, AttachedClusterError value)

Output only. A set of errors found in the cluster.

repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueAttachedClusterError
Returns
TypeDescription
AttachedCluster.Builder

setErrors(int index, AttachedClusterError.Builder builderForValue)

public AttachedCluster.Builder setErrors(int index, AttachedClusterError.Builder builderForValue)

Output only. A set of errors found in the cluster.

repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueAttachedClusterError.Builder
Returns
TypeDescription
AttachedCluster.Builder

setEtag(String value)

public AttachedCluster.Builder setEtag(String value)

Allows clients to perform consistent read-modify-writes through optimistic concurrency control.

Can be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 11;

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public AttachedCluster.Builder setEtagBytes(ByteString value)

Allows clients to perform consistent read-modify-writes through optimistic concurrency control.

Can be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 11;

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFleet(Fleet value)

public AttachedCluster.Builder setFleet(Fleet value)

Required. Fleet configuration.

.google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueFleet
Returns
TypeDescription
AttachedCluster.Builder

setFleet(Fleet.Builder builderForValue)

public AttachedCluster.Builder setFleet(Fleet.Builder builderForValue)

Required. Fleet configuration.

.google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueFleet.Builder
Returns
TypeDescription
AttachedCluster.Builder

setKubernetesVersion(String value)

public AttachedCluster.Builder setKubernetesVersion(String value)

Output only. The Kubernetes version of the cluster.

string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The kubernetesVersion to set.

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

setKubernetesVersionBytes(ByteString value)

public AttachedCluster.Builder setKubernetesVersionBytes(ByteString value)

Output only. The Kubernetes version of the cluster.

string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for kubernetesVersion to set.

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

setLoggingConfig(LoggingConfig value)

public AttachedCluster.Builder setLoggingConfig(LoggingConfig value)

Optional. Logging configuration for this cluster.

.google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueLoggingConfig
Returns
TypeDescription
AttachedCluster.Builder

setLoggingConfig(LoggingConfig.Builder builderForValue)

public AttachedCluster.Builder setLoggingConfig(LoggingConfig.Builder builderForValue)

Optional. Logging configuration for this cluster.

.google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueLoggingConfig.Builder
Returns
TypeDescription
AttachedCluster.Builder

setMonitoringConfig(MonitoringConfig value)

public AttachedCluster.Builder setMonitoringConfig(MonitoringConfig value)

Optional. Monitoring configuration for this cluster.

.google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueMonitoringConfig
Returns
TypeDescription
AttachedCluster.Builder

setMonitoringConfig(MonitoringConfig.Builder builderForValue)

public AttachedCluster.Builder setMonitoringConfig(MonitoringConfig.Builder builderForValue)

Optional. Monitoring configuration for this cluster.

.google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueMonitoringConfig.Builder
Returns
TypeDescription
AttachedCluster.Builder

setName(String value)

public AttachedCluster.Builder setName(String value)

The name of this resource.

Cluster names are formatted as projects/<project-number>/locations/<region>/attachedClusters/<cluster-id>.

See Resource Names for more details on Google Cloud Platform resource names.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AttachedCluster.Builder setNameBytes(ByteString value)

The name of this resource.

Cluster names are formatted as projects/<project-number>/locations/<region>/attachedClusters/<cluster-id>.

See Resource Names for more details on Google Cloud Platform resource names.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

setOidcConfig(AttachedOidcConfig value)

public AttachedCluster.Builder setOidcConfig(AttachedOidcConfig value)

Required. OpenID Connect (OIDC) configuration for the cluster.

.google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAttachedOidcConfig
Returns
TypeDescription
AttachedCluster.Builder

setOidcConfig(AttachedOidcConfig.Builder builderForValue)

public AttachedCluster.Builder setOidcConfig(AttachedOidcConfig.Builder builderForValue)

Required. OpenID Connect (OIDC) configuration for the cluster.

.google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueAttachedOidcConfig.Builder
Returns
TypeDescription
AttachedCluster.Builder

setPlatformVersion(String value)

public AttachedCluster.Builder setPlatformVersion(String value)

Required. The platform version for the cluster (e.g. 1.19.0-gke.1000).

You can list all supported versions on a given Google Cloud region by calling GetAttachedServerConfig.

string platform_version = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The platformVersion to set.

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

setPlatformVersionBytes(ByteString value)

public AttachedCluster.Builder setPlatformVersionBytes(ByteString value)

Required. The platform version for the cluster (e.g. 1.19.0-gke.1000).

You can list all supported versions on a given Google Cloud region by calling GetAttachedServerConfig.

string platform_version = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for platformVersion to set.

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

setProxyConfig(AttachedProxyConfig value)

public AttachedCluster.Builder setProxyConfig(AttachedProxyConfig value)

Optional. Proxy configuration for outbound HTTP(S) traffic.

.google.cloud.gkemulticloud.v1.AttachedProxyConfig proxy_config = 24 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAttachedProxyConfig
Returns
TypeDescription
AttachedCluster.Builder

setProxyConfig(AttachedProxyConfig.Builder builderForValue)

public AttachedCluster.Builder setProxyConfig(AttachedProxyConfig.Builder builderForValue)

Optional. Proxy configuration for outbound HTTP(S) traffic.

.google.cloud.gkemulticloud.v1.AttachedProxyConfig proxy_config = 24 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueAttachedProxyConfig.Builder
Returns
TypeDescription
AttachedCluster.Builder

setReconciling(boolean value)

public AttachedCluster.Builder setReconciling(boolean value)

Output only. If set, there are currently changes in flight to the cluster.

bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueboolean

The reconciling to set.

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

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

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

setState(AttachedCluster.State value)

public AttachedCluster.Builder setState(AttachedCluster.State value)

Output only. The current state of the cluster.

.google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAttachedCluster.State

The state to set.

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

setStateValue(int value)

public AttachedCluster.Builder setStateValue(int value)

Output only. The current state of the cluster.

.google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

setUid(String value)

public AttachedCluster.Builder setUid(String value)

Output only. A globally unique identifier for the cluster.

string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

setUidBytes(ByteString value)

public AttachedCluster.Builder setUidBytes(ByteString value)

Output only. A globally unique identifier for the cluster.

string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
AttachedCluster.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public AttachedCluster.Builder setUpdateTime(Timestamp value)

Output only. The time at which this cluster was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AttachedCluster.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public AttachedCluster.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time at which this cluster was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AttachedCluster.Builder

setWorkloadIdentityConfig(WorkloadIdentityConfig value)

public AttachedCluster.Builder setWorkloadIdentityConfig(WorkloadIdentityConfig value)

Output only. Workload Identity settings.

.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueWorkloadIdentityConfig
Returns
TypeDescription
AttachedCluster.Builder

setWorkloadIdentityConfig(WorkloadIdentityConfig.Builder builderForValue)

public AttachedCluster.Builder setWorkloadIdentityConfig(WorkloadIdentityConfig.Builder builderForValue)

Output only. Workload Identity settings.

.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueWorkloadIdentityConfig.Builder
Returns
TypeDescription
AttachedCluster.Builder