Package com.google.cloud.gkebackup.v1
Class Backup.ClusterMetadata
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.gkebackup.v1.Backup.ClusterMetadata
-
- All Implemented Interfaces:
Backup.ClusterMetadataOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
- Enclosing class:
- Backup
public static final class Backup.ClusterMetadata extends com.google.protobuf.GeneratedMessageV3 implements Backup.ClusterMetadataOrBuilder
Information about the GKE cluster from which this Backup was created.
Protobuf typegoogle.cloud.gkebackup.v1.Backup.ClusterMetadata
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Backup.ClusterMetadata.Builder
Information about the GKE cluster from which this Backup was created.static class
Backup.ClusterMetadata.PlatformVersionCase
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ANTHOS_VERSION_FIELD_NUMBER
static int
BACKUP_CRD_VERSIONS_FIELD_NUMBER
static int
CLUSTER_FIELD_NUMBER
static int
GKE_VERSION_FIELD_NUMBER
static int
K8S_VERSION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsBackupCrdVersions(String key)
A list of the Backup for GKE CRD versions found in the cluster.boolean
equals(Object obj)
String
getAnthosVersion()
Anthos versioncom.google.protobuf.ByteString
getAnthosVersionBytes()
Anthos versionMap<String,String>
getBackupCrdVersions()
Deprecated.int
getBackupCrdVersionsCount()
A list of the Backup for GKE CRD versions found in the cluster.Map<String,String>
getBackupCrdVersionsMap()
A list of the Backup for GKE CRD versions found in the cluster.String
getBackupCrdVersionsOrDefault(String key, String defaultValue)
A list of the Backup for GKE CRD versions found in the cluster.String
getBackupCrdVersionsOrThrow(String key)
A list of the Backup for GKE CRD versions found in the cluster.String
getCluster()
The source cluster from which this Backup was created.com.google.protobuf.ByteString
getClusterBytes()
The source cluster from which this Backup was created.static Backup.ClusterMetadata
getDefaultInstance()
Backup.ClusterMetadata
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getGkeVersion()
GKE versioncom.google.protobuf.ByteString
getGkeVersionBytes()
GKE versionString
getK8SVersion()
The Kubernetes server version of the source cluster.com.google.protobuf.ByteString
getK8SVersionBytes()
The Kubernetes server version of the source cluster.com.google.protobuf.Parser<Backup.ClusterMetadata>
getParserForType()
Backup.ClusterMetadata.PlatformVersionCase
getPlatformVersionCase()
int
getSerializedSize()
boolean
hasAnthosVersion()
Anthos versionboolean
hasGkeVersion()
GKE versionint
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static Backup.ClusterMetadata.Builder
newBuilder()
static Backup.ClusterMetadata.Builder
newBuilder(Backup.ClusterMetadata prototype)
Backup.ClusterMetadata.Builder
newBuilderForType()
protected Backup.ClusterMetadata.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Backup.ClusterMetadata
parseDelimitedFrom(InputStream input)
static Backup.ClusterMetadata
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Backup.ClusterMetadata
parseFrom(byte[] data)
static Backup.ClusterMetadata
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Backup.ClusterMetadata
parseFrom(com.google.protobuf.ByteString data)
static Backup.ClusterMetadata
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Backup.ClusterMetadata
parseFrom(com.google.protobuf.CodedInputStream input)
static Backup.ClusterMetadata
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Backup.ClusterMetadata
parseFrom(InputStream input)
static Backup.ClusterMetadata
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Backup.ClusterMetadata
parseFrom(ByteBuffer data)
static Backup.ClusterMetadata
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Backup.ClusterMetadata>
parser()
Backup.ClusterMetadata.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CLUSTER_FIELD_NUMBER
public static final int CLUSTER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
K8S_VERSION_FIELD_NUMBER
public static final int K8S_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BACKUP_CRD_VERSIONS_FIELD_NUMBER
public static final int BACKUP_CRD_VERSIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GKE_VERSION_FIELD_NUMBER
public static final int GKE_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANTHOS_VERSION_FIELD_NUMBER
public static final int ANTHOS_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getPlatformVersionCase
public Backup.ClusterMetadata.PlatformVersionCase getPlatformVersionCase()
- Specified by:
getPlatformVersionCase
in interfaceBackup.ClusterMetadataOrBuilder
-
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][google.cloud.gkebackup.v1.BackupPlan.cluster] field.
string cluster = 1;
- Specified by:
getCluster
in interfaceBackup.ClusterMetadataOrBuilder
- Returns:
- The cluster.
-
getClusterBytes
public com.google.protobuf.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][google.cloud.gkebackup.v1.BackupPlan.cluster] field.
string cluster = 1;
- Specified by:
getClusterBytes
in interfaceBackup.ClusterMetadataOrBuilder
- Returns:
- The bytes for cluster.
-
getK8SVersion
public String getK8SVersion()
The Kubernetes server version of the source cluster.
string k8s_version = 2;
- Specified by:
getK8SVersion
in interfaceBackup.ClusterMetadataOrBuilder
- Returns:
- The k8sVersion.
-
getK8SVersionBytes
public com.google.protobuf.ByteString getK8SVersionBytes()
The Kubernetes server version of the source cluster.
string k8s_version = 2;
- Specified by:
getK8SVersionBytes
in interfaceBackup.ClusterMetadataOrBuilder
- Returns:
- The bytes for k8sVersion.
-
getBackupCrdVersionsCount
public int getBackupCrdVersionsCount()
Description copied from interface:Backup.ClusterMetadataOrBuilder
A list of the Backup for GKE CRD versions found in the cluster.
map<string, string> backup_crd_versions = 3;
- Specified by:
getBackupCrdVersionsCount
in interfaceBackup.ClusterMetadataOrBuilder
-
containsBackupCrdVersions
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;
- Specified by:
containsBackupCrdVersions
in interfaceBackup.ClusterMetadataOrBuilder
-
getBackupCrdVersions
@Deprecated public Map<String,String> getBackupCrdVersions()
Deprecated.UsegetBackupCrdVersionsMap()
instead.- Specified by:
getBackupCrdVersions
in interfaceBackup.ClusterMetadataOrBuilder
-
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;
- Specified by:
getBackupCrdVersionsMap
in interfaceBackup.ClusterMetadataOrBuilder
-
getBackupCrdVersionsOrDefault
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;
- Specified by:
getBackupCrdVersionsOrDefault
in interfaceBackup.ClusterMetadataOrBuilder
-
getBackupCrdVersionsOrThrow
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;
- Specified by:
getBackupCrdVersionsOrThrow
in interfaceBackup.ClusterMetadataOrBuilder
-
hasGkeVersion
public boolean hasGkeVersion()
GKE version
string gke_version = 4;
- Specified by:
hasGkeVersion
in interfaceBackup.ClusterMetadataOrBuilder
- Returns:
- Whether the gkeVersion field is set.
-
getGkeVersion
public String getGkeVersion()
GKE version
string gke_version = 4;
- Specified by:
getGkeVersion
in interfaceBackup.ClusterMetadataOrBuilder
- Returns:
- The gkeVersion.
-
getGkeVersionBytes
public com.google.protobuf.ByteString getGkeVersionBytes()
GKE version
string gke_version = 4;
- Specified by:
getGkeVersionBytes
in interfaceBackup.ClusterMetadataOrBuilder
- Returns:
- The bytes for gkeVersion.
-
hasAnthosVersion
public boolean hasAnthosVersion()
Anthos version
string anthos_version = 5;
- Specified by:
hasAnthosVersion
in interfaceBackup.ClusterMetadataOrBuilder
- Returns:
- Whether the anthosVersion field is set.
-
getAnthosVersion
public String getAnthosVersion()
Anthos version
string anthos_version = 5;
- Specified by:
getAnthosVersion
in interfaceBackup.ClusterMetadataOrBuilder
- Returns:
- The anthosVersion.
-
getAnthosVersionBytes
public com.google.protobuf.ByteString getAnthosVersionBytes()
Anthos version
string anthos_version = 5;
- Specified by:
getAnthosVersionBytes
in interfaceBackup.ClusterMetadataOrBuilder
- Returns:
- The bytes for anthosVersion.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Backup.ClusterMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Backup.ClusterMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Backup.ClusterMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Backup.ClusterMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Backup.ClusterMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Backup.ClusterMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Backup.ClusterMetadata parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Backup.ClusterMetadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Backup.ClusterMetadata parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Backup.ClusterMetadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Backup.ClusterMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Backup.ClusterMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Backup.ClusterMetadata.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Backup.ClusterMetadata.Builder newBuilder()
-
newBuilder
public static Backup.ClusterMetadata.Builder newBuilder(Backup.ClusterMetadata prototype)
-
toBuilder
public Backup.ClusterMetadata.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Backup.ClusterMetadata.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Backup.ClusterMetadata getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Backup.ClusterMetadata> parser()
-
getParserForType
public com.google.protobuf.Parser<Backup.ClusterMetadata> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Backup.ClusterMetadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-