Class Backup.ClusterMetadata.Builder (0.42.0)

public static final class Backup.ClusterMetadata.Builder extends GeneratedMessageV3.Builder<Backup.ClusterMetadata.Builder> implements Backup.ClusterMetadataOrBuilder

Information about the GKE cluster from which this Backup was created.

Protobuf type google.cloud.gkebackup.v1.Backup.ClusterMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Backup.ClusterMetadata build()
Returns
Type Description
Backup.ClusterMetadata

buildPartial()

public Backup.ClusterMetadata buildPartial()
Returns
Type Description
Backup.ClusterMetadata

clear()

public Backup.ClusterMetadata.Builder clear()
Returns
Type Description
Backup.ClusterMetadata.Builder
Overrides

clearAnthosVersion()

public Backup.ClusterMetadata.Builder clearAnthosVersion()

Output only. Anthos version

string anthos_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Backup.ClusterMetadata.Builder

This builder for chaining.

clearBackupCrdVersions()

public Backup.ClusterMetadata.Builder clearBackupCrdVersions()
Returns
Type Description
Backup.ClusterMetadata.Builder

clearCluster()

public Backup.ClusterMetadata.Builder clearCluster()

Output only. The source cluster from which this Backup was created. Valid formats:

  • projects/*/locations/*/clusters/*
  • projects/*/zones/*/clusters/*

    This is inherited from the parent BackupPlan's cluster field.

string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Backup.ClusterMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGkeVersion()

public Backup.ClusterMetadata.Builder clearGkeVersion()

Output only. GKE version

string gke_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Backup.ClusterMetadata.Builder

This builder for chaining.

clearK8SVersion()

public Backup.ClusterMetadata.Builder clearK8SVersion()

Output only. The Kubernetes server version of the source cluster.

string k8s_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Backup.ClusterMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Backup.ClusterMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Backup.ClusterMetadata.Builder
Overrides

clearPlatformVersion()

public Backup.ClusterMetadata.Builder clearPlatformVersion()
Returns
Type Description
Backup.ClusterMetadata.Builder

clone()

public Backup.ClusterMetadata.Builder clone()
Returns
Type Description
Backup.ClusterMetadata.Builder
Overrides

containsBackupCrdVersions(String key)

public boolean containsBackupCrdVersions(String key)

Output only. A list of the Backup for GKE CRD versions found in the cluster.

map<string, string> backup_crd_versions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

getAnthosVersion()

public String getAnthosVersion()

Output only. Anthos version

string anthos_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The anthosVersion.

getAnthosVersionBytes()

public ByteString getAnthosVersionBytes()

Output only. Anthos version

string anthos_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for anthosVersion.

getBackupCrdVersions() (deprecated)

public Map<String,String> getBackupCrdVersions()
Returns
Type Description
Map<String,String>

getBackupCrdVersionsCount()

public int getBackupCrdVersionsCount()

Output only. A list of the Backup for GKE CRD versions found in the cluster.

map<string, string> backup_crd_versions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getBackupCrdVersionsMap()

public Map<String,String> getBackupCrdVersionsMap()

Output only. A list of the Backup for GKE CRD versions found in the cluster.

map<string, string> backup_crd_versions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,String>

getBackupCrdVersionsOrDefault(String key, String defaultValue)

public String getBackupCrdVersionsOrDefault(String key, String defaultValue)

Output only. A list of the Backup for GKE CRD versions found in the cluster.

map<string, string> backup_crd_versions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getBackupCrdVersionsOrThrow(String key)

public String getBackupCrdVersionsOrThrow(String key)

Output only. A list of the Backup for GKE CRD versions found in the cluster.

map<string, string> backup_crd_versions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
String

getCluster()

public String getCluster()

Output only. The source cluster from which this Backup was created. Valid formats:

  • projects/*/locations/*/clusters/*
  • projects/*/zones/*/clusters/*

    This is inherited from the parent BackupPlan's cluster field.

string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The cluster.

getClusterBytes()

public ByteString getClusterBytes()

Output only. The source cluster from which this Backup was created. Valid formats:

  • projects/*/locations/*/clusters/*
  • projects/*/zones/*/clusters/*

    This is inherited from the parent BackupPlan's cluster field.

string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for cluster.

getDefaultInstanceForType()

public Backup.ClusterMetadata getDefaultInstanceForType()
Returns
Type Description
Backup.ClusterMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGkeVersion()

public String getGkeVersion()

Output only. GKE version

string gke_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The gkeVersion.

getGkeVersionBytes()

public ByteString getGkeVersionBytes()

Output only. GKE version

string gke_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for gkeVersion.

getK8SVersion()

public String getK8SVersion()

Output only. The Kubernetes server version of the source cluster.

string k8s_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The k8sVersion.

getK8SVersionBytes()

public ByteString getK8SVersionBytes()

Output only. The Kubernetes server version of the source cluster.

string k8s_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for k8sVersion.

getMutableBackupCrdVersions() (deprecated)

public Map<String,String> getMutableBackupCrdVersions()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getPlatformVersionCase()

public Backup.ClusterMetadata.PlatformVersionCase getPlatformVersionCase()
Returns
Type Description
Backup.ClusterMetadata.PlatformVersionCase

hasAnthosVersion()

public boolean hasAnthosVersion()

Output only. Anthos version

string anthos_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the anthosVersion field is set.

hasGkeVersion()

public boolean hasGkeVersion()

Output only. GKE version

string gke_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the gkeVersion field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Backup.ClusterMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Backup.ClusterMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Backup.ClusterMetadata.Builder
Overrides

putAllBackupCrdVersions(Map<String,String> values)

public Backup.ClusterMetadata.Builder putAllBackupCrdVersions(Map<String,String> values)

Output only. A list of the Backup for GKE CRD versions found in the cluster.

map<string, string> backup_crd_versions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Backup.ClusterMetadata.Builder

putBackupCrdVersions(String key, String value)

public Backup.ClusterMetadata.Builder putBackupCrdVersions(String key, String value)

Output only. A list of the Backup for GKE CRD versions found in the cluster.

map<string, string> backup_crd_versions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
value String
Returns
Type Description
Backup.ClusterMetadata.Builder

removeBackupCrdVersions(String key)

public Backup.ClusterMetadata.Builder removeBackupCrdVersions(String key)

Output only. A list of the Backup for GKE CRD versions found in the cluster.

map<string, string> backup_crd_versions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
Backup.ClusterMetadata.Builder

setAnthosVersion(String value)

public Backup.ClusterMetadata.Builder setAnthosVersion(String value)

Output only. Anthos version

string anthos_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The anthosVersion to set.

Returns
Type Description
Backup.ClusterMetadata.Builder

This builder for chaining.

setAnthosVersionBytes(ByteString value)

public Backup.ClusterMetadata.Builder setAnthosVersionBytes(ByteString value)

Output only. Anthos version

string anthos_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for anthosVersion to set.

Returns
Type Description
Backup.ClusterMetadata.Builder

This builder for chaining.

setCluster(String value)

public Backup.ClusterMetadata.Builder setCluster(String value)

Output only. The source cluster from which this Backup was created. Valid formats:

  • projects/*/locations/*/clusters/*
  • projects/*/zones/*/clusters/*

    This is inherited from the parent BackupPlan's cluster field.

string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The cluster to set.

Returns
Type Description
Backup.ClusterMetadata.Builder

This builder for chaining.

setClusterBytes(ByteString value)

public Backup.ClusterMetadata.Builder setClusterBytes(ByteString value)

Output only. The source cluster from which this Backup was created. Valid formats:

  • projects/*/locations/*/clusters/*
  • projects/*/zones/*/clusters/*

    This is inherited from the parent BackupPlan's cluster field.

string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for cluster to set.

Returns
Type Description
Backup.ClusterMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGkeVersion(String value)

public Backup.ClusterMetadata.Builder setGkeVersion(String value)

Output only. GKE version

string gke_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The gkeVersion to set.

Returns
Type Description
Backup.ClusterMetadata.Builder

This builder for chaining.

setGkeVersionBytes(ByteString value)

public Backup.ClusterMetadata.Builder setGkeVersionBytes(ByteString value)

Output only. GKE version

string gke_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for gkeVersion to set.

Returns
Type Description
Backup.ClusterMetadata.Builder

This builder for chaining.

setK8SVersion(String value)

public Backup.ClusterMetadata.Builder setK8SVersion(String value)

Output only. The Kubernetes server version of the source cluster.

string k8s_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The k8sVersion to set.

Returns
Type Description
Backup.ClusterMetadata.Builder

This builder for chaining.

setK8SVersionBytes(ByteString value)

public Backup.ClusterMetadata.Builder setK8SVersionBytes(ByteString value)

Output only. The Kubernetes server version of the source cluster.

string k8s_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for k8sVersion to set.

Returns
Type Description
Backup.ClusterMetadata.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final Backup.ClusterMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Backup.ClusterMetadata.Builder
Overrides