Class Backup.ClusterMetadata (0.41.0)

public static final class Backup.ClusterMetadata extends GeneratedMessageV3 implements Backup.ClusterMetadataOrBuilder

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

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

Static Fields

ANTHOS_VERSION_FIELD_NUMBER

public static final int ANTHOS_VERSION_FIELD_NUMBER
Field Value
Type Description
int

BACKUP_CRD_VERSIONS_FIELD_NUMBER

public static final int BACKUP_CRD_VERSIONS_FIELD_NUMBER
Field Value
Type Description
int

CLUSTER_FIELD_NUMBER

public static final int CLUSTER_FIELD_NUMBER
Field Value
Type Description
int

GKE_VERSION_FIELD_NUMBER

public static final int GKE_VERSION_FIELD_NUMBER
Field Value
Type Description
int

K8S_VERSION_FIELD_NUMBER

public static final int K8S_VERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Backup.ClusterMetadata getDefaultInstance()
Returns
Type Description
Backup.ClusterMetadata

getDescriptor()

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

newBuilder()

public static Backup.ClusterMetadata.Builder newBuilder()
Returns
Type Description
Backup.ClusterMetadata.Builder

newBuilder(Backup.ClusterMetadata prototype)

public static Backup.ClusterMetadata.Builder newBuilder(Backup.ClusterMetadata prototype)
Parameter
Name Description
prototype Backup.ClusterMetadata
Returns
Type Description
Backup.ClusterMetadata.Builder

parseDelimitedFrom(InputStream input)

public static Backup.ClusterMetadata parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Backup.ClusterMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Backup.ClusterMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Backup.ClusterMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Backup.ClusterMetadata parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Backup.ClusterMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Backup.ClusterMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Backup.ClusterMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Backup.ClusterMetadata parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Backup.ClusterMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Backup.ClusterMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Backup.ClusterMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Backup.ClusterMetadata parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Backup.ClusterMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Backup.ClusterMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Backup.ClusterMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Backup.ClusterMetadata parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Backup.ClusterMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Backup.ClusterMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Backup.ClusterMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Backup.ClusterMetadata parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Backup.ClusterMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Backup.ClusterMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Backup.ClusterMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Backup.ClusterMetadata> parser()
Returns
Type Description
Parser<ClusterMetadata>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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.

getParserForType()

public Parser<Backup.ClusterMetadata> getParserForType()
Returns
Type Description
Parser<ClusterMetadata>
Overrides

getPlatformVersionCase()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Backup.ClusterMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Backup.ClusterMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException