Class Backup.ClusterMetadata.Builder (0.12.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Backup.ClusterMetadata build()
Returns
TypeDescription
Backup.ClusterMetadata

buildPartial()

public Backup.ClusterMetadata buildPartial()
Returns
TypeDescription
Backup.ClusterMetadata

clear()

public Backup.ClusterMetadata.Builder clear()
Returns
TypeDescription
Backup.ClusterMetadata.Builder
Overrides

clearAnthosVersion()

public Backup.ClusterMetadata.Builder clearAnthosVersion()

Anthos version

string anthos_version = 5;

Returns
TypeDescription
Backup.ClusterMetadata.Builder

This builder for chaining.

clearBackupCrdVersions()

public Backup.ClusterMetadata.Builder clearBackupCrdVersions()
Returns
TypeDescription
Backup.ClusterMetadata.Builder

clearCluster()

public Backup.ClusterMetadata.Builder clearCluster()

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;

Returns
TypeDescription
Backup.ClusterMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGkeVersion()

public Backup.ClusterMetadata.Builder clearGkeVersion()

GKE version

string gke_version = 4;

Returns
TypeDescription
Backup.ClusterMetadata.Builder

This builder for chaining.

clearK8SVersion()

public Backup.ClusterMetadata.Builder clearK8SVersion()

The Kubernetes server version of the source cluster.

string k8s_version = 2;

Returns
TypeDescription
Backup.ClusterMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPlatformVersion()

public Backup.ClusterMetadata.Builder clearPlatformVersion()
Returns
TypeDescription
Backup.ClusterMetadata.Builder

clone()

public Backup.ClusterMetadata.Builder clone()
Returns
TypeDescription
Backup.ClusterMetadata.Builder
Overrides

containsBackupCrdVersions(String key)

public boolean containsBackupCrdVersions(String key)

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

map<string, string> backup_crd_versions = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAnthosVersion()

public String getAnthosVersion()

Anthos version

string anthos_version = 5;

Returns
TypeDescription
String

The anthosVersion.

getAnthosVersionBytes()

public ByteString getAnthosVersionBytes()

Anthos version

string anthos_version = 5;

Returns
TypeDescription
ByteString

The bytes for anthosVersion.

getBackupCrdVersions()

public Map<String,String> getBackupCrdVersions()
Returns
TypeDescription
Map<String,String>

getBackupCrdVersionsCount()

public int getBackupCrdVersionsCount()

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

map<string, string> backup_crd_versions = 3;

Returns
TypeDescription
int

getBackupCrdVersionsMap()

public Map<String,String> getBackupCrdVersionsMap()

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

map<string, string> backup_crd_versions = 3;

Returns
TypeDescription
Map<String,String>

getBackupCrdVersionsOrDefault(String key, String defaultValue)

public String getBackupCrdVersionsOrDefault(String key, String defaultValue)

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

map<string, string> backup_crd_versions = 3;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getBackupCrdVersionsOrThrow(String key)

public String getBackupCrdVersionsOrThrow(String key)

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

map<string, string> backup_crd_versions = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getCluster()

public String getCluster()

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;

Returns
TypeDescription
String

The cluster.

getClusterBytes()

public ByteString getClusterBytes()

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;

Returns
TypeDescription
ByteString

The bytes for cluster.

getDefaultInstanceForType()

public Backup.ClusterMetadata getDefaultInstanceForType()
Returns
TypeDescription
Backup.ClusterMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGkeVersion()

public String getGkeVersion()

GKE version

string gke_version = 4;

Returns
TypeDescription
String

The gkeVersion.

getGkeVersionBytes()

public ByteString getGkeVersionBytes()

GKE version

string gke_version = 4;

Returns
TypeDescription
ByteString

The bytes for gkeVersion.

getK8SVersion()

public String getK8SVersion()

The Kubernetes server version of the source cluster.

string k8s_version = 2;

Returns
TypeDescription
String

The k8sVersion.

getK8SVersionBytes()

public ByteString getK8SVersionBytes()

The Kubernetes server version of the source cluster.

string k8s_version = 2;

Returns
TypeDescription
ByteString

The bytes for k8sVersion.

getMutableBackupCrdVersions()

public Map<String,String> getMutableBackupCrdVersions()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getPlatformVersionCase()

public Backup.ClusterMetadata.PlatformVersionCase getPlatformVersionCase()
Returns
TypeDescription
Backup.ClusterMetadata.PlatformVersionCase

hasAnthosVersion()

public boolean hasAnthosVersion()

Anthos version

string anthos_version = 5;

Returns
TypeDescription
boolean

Whether the anthosVersion field is set.

hasGkeVersion()

public boolean hasGkeVersion()

GKE version

string gke_version = 4;

Returns
TypeDescription
boolean

Whether the gkeVersion field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Backup.ClusterMetadata other)

public Backup.ClusterMetadata.Builder mergeFrom(Backup.ClusterMetadata other)
Parameter
NameDescription
otherBackup.ClusterMetadata
Returns
TypeDescription
Backup.ClusterMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllBackupCrdVersions(Map<String,String> values)

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

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

map<string, string> backup_crd_versions = 3;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Backup.ClusterMetadata.Builder

putBackupCrdVersions(String key, String value)

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

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

map<string, string> backup_crd_versions = 3;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Backup.ClusterMetadata.Builder

removeBackupCrdVersions(String key)

public Backup.ClusterMetadata.Builder removeBackupCrdVersions(String key)

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

map<string, string> backup_crd_versions = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
Backup.ClusterMetadata.Builder

setAnthosVersion(String value)

public Backup.ClusterMetadata.Builder setAnthosVersion(String value)

Anthos version

string anthos_version = 5;

Parameter
NameDescription
valueString

The anthosVersion to set.

Returns
TypeDescription
Backup.ClusterMetadata.Builder

This builder for chaining.

setAnthosVersionBytes(ByteString value)

public Backup.ClusterMetadata.Builder setAnthosVersionBytes(ByteString value)

Anthos version

string anthos_version = 5;

Parameter
NameDescription
valueByteString

The bytes for anthosVersion to set.

Returns
TypeDescription
Backup.ClusterMetadata.Builder

This builder for chaining.

setCluster(String value)

public Backup.ClusterMetadata.Builder setCluster(String value)

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;

Parameter
NameDescription
valueString

The cluster to set.

Returns
TypeDescription
Backup.ClusterMetadata.Builder

This builder for chaining.

setClusterBytes(ByteString value)

public Backup.ClusterMetadata.Builder setClusterBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for cluster to set.

Returns
TypeDescription
Backup.ClusterMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGkeVersion(String value)

public Backup.ClusterMetadata.Builder setGkeVersion(String value)

GKE version

string gke_version = 4;

Parameter
NameDescription
valueString

The gkeVersion to set.

Returns
TypeDescription
Backup.ClusterMetadata.Builder

This builder for chaining.

setGkeVersionBytes(ByteString value)

public Backup.ClusterMetadata.Builder setGkeVersionBytes(ByteString value)

GKE version

string gke_version = 4;

Parameter
NameDescription
valueByteString

The bytes for gkeVersion to set.

Returns
TypeDescription
Backup.ClusterMetadata.Builder

This builder for chaining.

setK8SVersion(String value)

public Backup.ClusterMetadata.Builder setK8SVersion(String value)

The Kubernetes server version of the source cluster.

string k8s_version = 2;

Parameter
NameDescription
valueString

The k8sVersion to set.

Returns
TypeDescription
Backup.ClusterMetadata.Builder

This builder for chaining.

setK8SVersionBytes(ByteString value)

public Backup.ClusterMetadata.Builder setK8SVersionBytes(ByteString value)

The Kubernetes server version of the source cluster.

string k8s_version = 2;

Parameter
NameDescription
valueByteString

The bytes for k8sVersion to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Backup.ClusterMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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