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 classBackup.ClusterMetadata.BuilderInformation about the GKE cluster from which this Backup was created.static classBackup.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 intANTHOS_VERSION_FIELD_NUMBERstatic intBACKUP_CRD_VERSIONS_FIELD_NUMBERstatic intCLUSTER_FIELD_NUMBERstatic intGKE_VERSION_FIELD_NUMBERstatic intK8S_VERSION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsBackupCrdVersions(String key)A list of the Backup for GKE CRD versions found in the cluster.booleanequals(Object obj)StringgetAnthosVersion()Anthos versioncom.google.protobuf.ByteStringgetAnthosVersionBytes()Anthos versionMap<String,String>getBackupCrdVersions()Deprecated.intgetBackupCrdVersionsCount()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.StringgetBackupCrdVersionsOrDefault(String key, String defaultValue)A list of the Backup for GKE CRD versions found in the cluster.StringgetBackupCrdVersionsOrThrow(String key)A list of the Backup for GKE CRD versions found in the cluster.StringgetCluster()The source cluster from which this Backup was created.com.google.protobuf.ByteStringgetClusterBytes()The source cluster from which this Backup was created.static Backup.ClusterMetadatagetDefaultInstance()Backup.ClusterMetadatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetGkeVersion()GKE versioncom.google.protobuf.ByteStringgetGkeVersionBytes()GKE versionStringgetK8SVersion()The Kubernetes server version of the source cluster.com.google.protobuf.ByteStringgetK8SVersionBytes()The Kubernetes server version of the source cluster.com.google.protobuf.Parser<Backup.ClusterMetadata>getParserForType()Backup.ClusterMetadata.PlatformVersionCasegetPlatformVersionCase()intgetSerializedSize()booleanhasAnthosVersion()Anthos versionbooleanhasGkeVersion()GKE versioninthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static Backup.ClusterMetadata.BuildernewBuilder()static Backup.ClusterMetadata.BuildernewBuilder(Backup.ClusterMetadata prototype)Backup.ClusterMetadata.BuildernewBuilderForType()protected Backup.ClusterMetadata.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Backup.ClusterMetadataparseDelimitedFrom(InputStream input)static Backup.ClusterMetadataparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Backup.ClusterMetadataparseFrom(byte[] data)static Backup.ClusterMetadataparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Backup.ClusterMetadataparseFrom(com.google.protobuf.ByteString data)static Backup.ClusterMetadataparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Backup.ClusterMetadataparseFrom(com.google.protobuf.CodedInputStream input)static Backup.ClusterMetadataparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Backup.ClusterMetadataparseFrom(InputStream input)static Backup.ClusterMetadataparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Backup.ClusterMetadataparseFrom(ByteBuffer data)static Backup.ClusterMetadataparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Backup.ClusterMetadata>parser()Backup.ClusterMetadata.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getPlatformVersionCase
public Backup.ClusterMetadata.PlatformVersionCase getPlatformVersionCase()
- Specified by:
getPlatformVersionCasein 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:
getClusterin 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:
getClusterBytesin 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:
getK8SVersionin 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:
getK8SVersionBytesin interfaceBackup.ClusterMetadataOrBuilder- Returns:
- The bytes for k8sVersion.
-
getBackupCrdVersionsCount
public int getBackupCrdVersionsCount()
Description copied from interface:Backup.ClusterMetadataOrBuilderA list of the Backup for GKE CRD versions found in the cluster.
map<string, string> backup_crd_versions = 3;- Specified by:
getBackupCrdVersionsCountin 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:
containsBackupCrdVersionsin interfaceBackup.ClusterMetadataOrBuilder
-
getBackupCrdVersions
@Deprecated public Map<String,String> getBackupCrdVersions()
Deprecated.UsegetBackupCrdVersionsMap()instead.- Specified by:
getBackupCrdVersionsin 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:
getBackupCrdVersionsMapin 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:
getBackupCrdVersionsOrDefaultin 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:
getBackupCrdVersionsOrThrowin interfaceBackup.ClusterMetadataOrBuilder
-
hasGkeVersion
public boolean hasGkeVersion()
GKE version
string gke_version = 4;- Specified by:
hasGkeVersionin interfaceBackup.ClusterMetadataOrBuilder- Returns:
- Whether the gkeVersion field is set.
-
getGkeVersion
public String getGkeVersion()
GKE version
string gke_version = 4;- Specified by:
getGkeVersionin interfaceBackup.ClusterMetadataOrBuilder- Returns:
- The gkeVersion.
-
getGkeVersionBytes
public com.google.protobuf.ByteString getGkeVersionBytes()
GKE version
string gke_version = 4;- Specified by:
getGkeVersionBytesin interfaceBackup.ClusterMetadataOrBuilder- Returns:
- The bytes for gkeVersion.
-
hasAnthosVersion
public boolean hasAnthosVersion()
Anthos version
string anthos_version = 5;- Specified by:
hasAnthosVersionin interfaceBackup.ClusterMetadataOrBuilder- Returns:
- Whether the anthosVersion field is set.
-
getAnthosVersion
public String getAnthosVersion()
Anthos version
string anthos_version = 5;- Specified by:
getAnthosVersionin interfaceBackup.ClusterMetadataOrBuilder- Returns:
- The anthosVersion.
-
getAnthosVersionBytes
public com.google.protobuf.ByteString getAnthosVersionBytes()
Anthos version
string anthos_version = 5;- Specified by:
getAnthosVersionBytesin interfaceBackup.ClusterMetadataOrBuilder- Returns:
- The bytes for anthosVersion.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Backup.ClusterMetadata.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Backup.ClusterMetadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-