Class Backup.ClusterMetadata (0.40.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
TypeDescription
int

BACKUP_CRD_VERSIONS_FIELD_NUMBER

public static final int BACKUP_CRD_VERSIONS_FIELD_NUMBER
Field Value
TypeDescription
int

CLUSTER_FIELD_NUMBER

public static final int CLUSTER_FIELD_NUMBER
Field Value
TypeDescription
int

GKE_VERSION_FIELD_NUMBER

public static final int GKE_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

K8S_VERSION_FIELD_NUMBER

public static final int K8S_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Backup.ClusterMetadata getDefaultInstance()
Returns
TypeDescription
Backup.ClusterMetadata

getDescriptor()

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

newBuilder()

public static Backup.ClusterMetadata.Builder newBuilder()
Returns
TypeDescription
Backup.ClusterMetadata.Builder

newBuilder(Backup.ClusterMetadata prototype)

public static Backup.ClusterMetadata.Builder newBuilder(Backup.ClusterMetadata prototype)
Parameter
NameDescription
prototypeBackup.ClusterMetadata
Returns
TypeDescription
Backup.ClusterMetadata.Builder

parseDelimitedFrom(InputStream input)

public static Backup.ClusterMetadata parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Backup.ClusterMetadata
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Backup.ClusterMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Backup.ClusterMetadata
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Backup.ClusterMetadata parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Backup.ClusterMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Backup.ClusterMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Backup.ClusterMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Backup.ClusterMetadata parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Backup.ClusterMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Backup.ClusterMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Backup.ClusterMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Backup.ClusterMetadata parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Backup.ClusterMetadata
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Backup.ClusterMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Backup.ClusterMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Backup.ClusterMetadata parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Backup.ClusterMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Backup.ClusterMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Backup.ClusterMetadata
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Backup.ClusterMetadata parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Backup.ClusterMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Backup.ClusterMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Backup.ClusterMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Backup.ClusterMetadata> parser()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAnthosVersion()

public String getAnthosVersion()

Output only. Anthos version

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

Returns
TypeDescription
String

The anthosVersion.

getAnthosVersionBytes()

public ByteString getAnthosVersionBytes()

Output only. Anthos version

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

Returns
TypeDescription
ByteString

The bytes for anthosVersion.

getBackupCrdVersions() (deprecated)

public Map<String,String> getBackupCrdVersions()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for cluster.

getDefaultInstanceForType()

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

getGkeVersion()

public String getGkeVersion()

Output only. GKE version

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

Returns
TypeDescription
String

The gkeVersion.

getGkeVersionBytes()

public ByteString getGkeVersionBytes()

Output only. GKE version

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for k8sVersion.

getParserForType()

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

getPlatformVersionCase()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasAnthosVersion()

public boolean hasAnthosVersion()

Output only. Anthos version

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the gkeVersion field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Backup.ClusterMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Backup.ClusterMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException