Class Backup.ClusterMetadata (0.14.1)

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.events.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)

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

equals(Object obj)

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

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

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.

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

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

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