Package com.google.cloud.gkebackup.v1
Class Backup
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.gkebackup.v1.Backup
-
- All Implemented Interfaces:
BackupOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class Backup extends com.google.protobuf.GeneratedMessageV3 implements BackupOrBuilder
Represents a request to perform a single point-in-time capture of some portion of the state of a GKE cluster, the record of the backup operation itself, and an anchor for the underlying artifacts that comprise the Backup (the config backup and VolumeBackups). Next id: 28
Protobuf typegoogle.cloud.gkebackup.v1.Backup
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Backup.BackupScopeCase
static class
Backup.Builder
Represents a request to perform a single point-in-time capture of some portion of the state of a GKE cluster, the record of the backup operation itself, and an anchor for the underlying artifacts that comprise the Backup (the config backup and VolumeBackups).static class
Backup.ClusterMetadata
Information about the GKE cluster from which this Backup was created.static interface
Backup.ClusterMetadataOrBuilder
static class
Backup.State
State-
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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
A set of custom labels supplied by user.boolean
equals(Object obj)
boolean
getAllNamespaces()
Output only.Backup.BackupScopeCase
getBackupScopeCase()
Backup.ClusterMetadata
getClusterMetadata()
Output only.Backup.ClusterMetadataOrBuilder
getClusterMetadataOrBuilder()
Output only.com.google.protobuf.Timestamp
getCompleteTime()
Output only.com.google.protobuf.TimestampOrBuilder
getCompleteTimeOrBuilder()
Output only.long
getConfigBackupSizeBytes()
Output only.boolean
getContainsSecrets()
Output only.boolean
getContainsVolumeData()
Output only.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.static Backup
getDefaultInstance()
Backup
getDefaultInstanceForType()
int
getDeleteLockDays()
Minimum age for this Backup (in days).com.google.protobuf.Timestamp
getDeleteLockExpireTime()
Output only.com.google.protobuf.TimestampOrBuilder
getDeleteLockExpireTimeOrBuilder()
Output only.String
getDescription()
User specified descriptive string for this Backup.com.google.protobuf.ByteString
getDescriptionBytes()
User specified descriptive string for this Backup.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
EncryptionKey
getEncryptionKey()
Output only.EncryptionKeyOrBuilder
getEncryptionKeyOrBuilder()
Output only.String
getEtag()
Output only.com.google.protobuf.ByteString
getEtagBytes()
Output only.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
A set of custom labels supplied by user.Map<String,String>
getLabelsMap()
A set of custom labels supplied by user.String
getLabelsOrDefault(String key, String defaultValue)
A set of custom labels supplied by user.String
getLabelsOrThrow(String key)
A set of custom labels supplied by user.boolean
getManual()
Output only.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.com.google.protobuf.Parser<Backup>
getParserForType()
int
getPodCount()
Output only.int
getResourceCount()
Output only.int
getRetainDays()
The age (in days) after which this Backup will be automatically deleted.com.google.protobuf.Timestamp
getRetainExpireTime()
Output only.com.google.protobuf.TimestampOrBuilder
getRetainExpireTimeOrBuilder()
Output only.NamespacedNames
getSelectedApplications()
Output only.NamespacedNamesOrBuilder
getSelectedApplicationsOrBuilder()
Output only.Namespaces
getSelectedNamespaces()
Output only.NamespacesOrBuilder
getSelectedNamespacesOrBuilder()
Output only.int
getSerializedSize()
long
getSizeBytes()
Output only.Backup.State
getState()
Output only.String
getStateReason()
Output only.com.google.protobuf.ByteString
getStateReasonBytes()
Output only.int
getStateValue()
Output only.String
getUid()
Output only.com.google.protobuf.ByteString
getUidBytes()
Output only.com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.int
getVolumeCount()
Output only.boolean
hasAllNamespaces()
Output only.boolean
hasClusterMetadata()
Output only.boolean
hasCompleteTime()
Output only.boolean
hasCreateTime()
Output only.boolean
hasDeleteLockExpireTime()
Output only.boolean
hasEncryptionKey()
Output only.int
hashCode()
boolean
hasRetainExpireTime()
Output only.boolean
hasSelectedApplications()
Output only.boolean
hasSelectedNamespaces()
Output only.boolean
hasUpdateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static Backup.Builder
newBuilder()
static Backup.Builder
newBuilder(Backup prototype)
Backup.Builder
newBuilderForType()
protected Backup.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Backup
parseDelimitedFrom(InputStream input)
static Backup
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Backup
parseFrom(byte[] data)
static Backup
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Backup
parseFrom(com.google.protobuf.ByteString data)
static Backup
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Backup
parseFrom(com.google.protobuf.CodedInputStream input)
static Backup
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Backup
parseFrom(InputStream input)
static Backup
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Backup
parseFrom(ByteBuffer data)
static Backup
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Backup>
parser()
Backup.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
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UID_FIELD_NUMBER
public static final int UID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MANUAL_FIELD_NUMBER
public static final int MANUAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DELETE_LOCK_DAYS_FIELD_NUMBER
public static final int DELETE_LOCK_DAYS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DELETE_LOCK_EXPIRE_TIME_FIELD_NUMBER
public static final int DELETE_LOCK_EXPIRE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RETAIN_DAYS_FIELD_NUMBER
public static final int RETAIN_DAYS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RETAIN_EXPIRE_TIME_FIELD_NUMBER
public static final int RETAIN_EXPIRE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENCRYPTION_KEY_FIELD_NUMBER
public static final int ENCRYPTION_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALL_NAMESPACES_FIELD_NUMBER
public static final int ALL_NAMESPACES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SELECTED_NAMESPACES_FIELD_NUMBER
public static final int SELECTED_NAMESPACES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SELECTED_APPLICATIONS_FIELD_NUMBER
public static final int SELECTED_APPLICATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTAINS_VOLUME_DATA_FIELD_NUMBER
public static final int CONTAINS_VOLUME_DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTAINS_SECRETS_FIELD_NUMBER
public static final int CONTAINS_SECRETS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CLUSTER_METADATA_FIELD_NUMBER
public static final int CLUSTER_METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_REASON_FIELD_NUMBER
public static final int STATE_REASON_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COMPLETE_TIME_FIELD_NUMBER
public static final int COMPLETE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESOURCE_COUNT_FIELD_NUMBER
public static final int RESOURCE_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VOLUME_COUNT_FIELD_NUMBER
public static final int VOLUME_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SIZE_BYTES_FIELD_NUMBER
public static final int SIZE_BYTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
POD_COUNT_FIELD_NUMBER
public static final int POD_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONFIG_BACKUP_SIZE_BYTES_FIELD_NUMBER
public static final int CONFIG_BACKUP_SIZE_BYTES_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
-
getBackupScopeCase
public Backup.BackupScopeCase getBackupScopeCase()
- Specified by:
getBackupScopeCase
in interfaceBackupOrBuilder
-
getName
public String getName()
Output only. The fully qualified name of the Backup. `projects/*/locations/*/backupPlans/*/backups/*`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getName
in interfaceBackupOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The fully qualified name of the Backup. `projects/*/locations/*/backupPlans/*/backups/*`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNameBytes
in interfaceBackupOrBuilder
- Returns:
- The bytes for name.
-
getUid
public String getUid()
Output only. Server generated global unique identifier of [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUid
in interfaceBackupOrBuilder
- Returns:
- The uid.
-
getUidBytes
public com.google.protobuf.ByteString getUidBytes()
Output only. Server generated global unique identifier of [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUidBytes
in interfaceBackupOrBuilder
- Returns:
- The bytes for uid.
-
hasCreateTime
public boolean hasCreateTime()
Output only. The timestamp when this Backup resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCreateTime
in interfaceBackupOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The timestamp when this Backup resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTime
in interfaceBackupOrBuilder
- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The timestamp when this Backup resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTimeOrBuilder
in interfaceBackupOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
Output only. The timestamp when this Backup resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasUpdateTime
in interfaceBackupOrBuilder
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
Output only. The timestamp when this Backup resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpdateTime
in interfaceBackupOrBuilder
- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The timestamp when this Backup resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpdateTimeOrBuilder
in interfaceBackupOrBuilder
-
getManual
public boolean getManual()
Output only. This flag indicates whether this Backup resource was created manually by a user or via a schedule in the BackupPlan. A value of True means that the Backup was created manually.
bool manual = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getManual
in interfaceBackupOrBuilder
- Returns:
- The manual.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:BackupOrBuilder
A set of custom labels supplied by user.
map<string, string> labels = 6;
- Specified by:
getLabelsCount
in interfaceBackupOrBuilder
-
containsLabels
public boolean containsLabels(String key)
A set of custom labels supplied by user.
map<string, string> labels = 6;
- Specified by:
containsLabels
in interfaceBackupOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceBackupOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
A set of custom labels supplied by user.
map<string, string> labels = 6;
- Specified by:
getLabelsMap
in interfaceBackupOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
A set of custom labels supplied by user.
map<string, string> labels = 6;
- Specified by:
getLabelsOrDefault
in interfaceBackupOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
A set of custom labels supplied by user.
map<string, string> labels = 6;
- Specified by:
getLabelsOrThrow
in interfaceBackupOrBuilder
-
getDeleteLockDays
public int getDeleteLockDays()
Minimum age for this Backup (in days). If this field is set to a non-zero value, the Backup will be "locked" against deletion (either manual or automatic deletion) for the number of days provided (measured from the creation time of the Backup). MUST be an integer value between 0-90 (inclusive). Defaults to parent BackupPlan's [backup_delete_lock_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_delete_lock_days] setting and may only be increased (either at creation time or in a subsequent update).
int32 delete_lock_days = 7;
- Specified by:
getDeleteLockDays
in interfaceBackupOrBuilder
- Returns:
- The deleteLockDays.
-
hasDeleteLockExpireTime
public boolean hasDeleteLockExpireTime()
Output only. The time at which an existing delete lock will expire for this backup (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
.google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasDeleteLockExpireTime
in interfaceBackupOrBuilder
- Returns:
- Whether the deleteLockExpireTime field is set.
-
getDeleteLockExpireTime
public com.google.protobuf.Timestamp getDeleteLockExpireTime()
Output only. The time at which an existing delete lock will expire for this backup (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
.google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDeleteLockExpireTime
in interfaceBackupOrBuilder
- Returns:
- The deleteLockExpireTime.
-
getDeleteLockExpireTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getDeleteLockExpireTimeOrBuilder()
Output only. The time at which an existing delete lock will expire for this backup (calculated from create_time + [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
.google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDeleteLockExpireTimeOrBuilder
in interfaceBackupOrBuilder
-
getRetainDays
public int getRetainDays()
The age (in days) after which this Backup will be automatically deleted. Must be an integer value >= 0: - If 0, no automatic deletion will occur for this Backup. - If not 0, this must be >= [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days] and <= 365. Once a Backup is created, this value may only be increased. Defaults to the parent BackupPlan's [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days] value.
int32 retain_days = 9;
- Specified by:
getRetainDays
in interfaceBackupOrBuilder
- Returns:
- The retainDays.
-
hasRetainExpireTime
public boolean hasRetainExpireTime()
Output only. The time at which this Backup will be automatically deleted (calculated from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
.google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasRetainExpireTime
in interfaceBackupOrBuilder
- Returns:
- Whether the retainExpireTime field is set.
-
getRetainExpireTime
public com.google.protobuf.Timestamp getRetainExpireTime()
Output only. The time at which this Backup will be automatically deleted (calculated from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
.google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getRetainExpireTime
in interfaceBackupOrBuilder
- Returns:
- The retainExpireTime.
-
getRetainExpireTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getRetainExpireTimeOrBuilder()
Output only. The time at which this Backup will be automatically deleted (calculated from create_time + [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
.google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getRetainExpireTimeOrBuilder
in interfaceBackupOrBuilder
-
hasEncryptionKey
public boolean hasEncryptionKey()
Output only. The customer managed encryption key that was used to encrypt the Backup's artifacts. Inherited from the parent BackupPlan's [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
.google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasEncryptionKey
in interfaceBackupOrBuilder
- Returns:
- Whether the encryptionKey field is set.
-
getEncryptionKey
public EncryptionKey getEncryptionKey()
Output only. The customer managed encryption key that was used to encrypt the Backup's artifacts. Inherited from the parent BackupPlan's [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
.google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getEncryptionKey
in interfaceBackupOrBuilder
- Returns:
- The encryptionKey.
-
getEncryptionKeyOrBuilder
public EncryptionKeyOrBuilder getEncryptionKeyOrBuilder()
Output only. The customer managed encryption key that was used to encrypt the Backup's artifacts. Inherited from the parent BackupPlan's [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key] value.
.google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getEncryptionKeyOrBuilder
in interfaceBackupOrBuilder
-
hasAllNamespaces
public boolean hasAllNamespaces()
Output only. If True, all namespaces were included in the Backup.
bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasAllNamespaces
in interfaceBackupOrBuilder
- Returns:
- Whether the allNamespaces field is set.
-
getAllNamespaces
public boolean getAllNamespaces()
Output only. If True, all namespaces were included in the Backup.
bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getAllNamespaces
in interfaceBackupOrBuilder
- Returns:
- The allNamespaces.
-
hasSelectedNamespaces
public boolean hasSelectedNamespaces()
Output only. If set, the list of namespaces that were included in the Backup.
.google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasSelectedNamespaces
in interfaceBackupOrBuilder
- Returns:
- Whether the selectedNamespaces field is set.
-
getSelectedNamespaces
public Namespaces getSelectedNamespaces()
Output only. If set, the list of namespaces that were included in the Backup.
.google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSelectedNamespaces
in interfaceBackupOrBuilder
- Returns:
- The selectedNamespaces.
-
getSelectedNamespacesOrBuilder
public NamespacesOrBuilder getSelectedNamespacesOrBuilder()
Output only. If set, the list of namespaces that were included in the Backup.
.google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSelectedNamespacesOrBuilder
in interfaceBackupOrBuilder
-
hasSelectedApplications
public boolean hasSelectedApplications()
Output only. If set, the list of ProtectedApplications whose resources were included in the Backup.
.google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasSelectedApplications
in interfaceBackupOrBuilder
- Returns:
- Whether the selectedApplications field is set.
-
getSelectedApplications
public NamespacedNames getSelectedApplications()
Output only. If set, the list of ProtectedApplications whose resources were included in the Backup.
.google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSelectedApplications
in interfaceBackupOrBuilder
- Returns:
- The selectedApplications.
-
getSelectedApplicationsOrBuilder
public NamespacedNamesOrBuilder getSelectedApplicationsOrBuilder()
Output only. If set, the list of ProtectedApplications whose resources were included in the Backup.
.google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSelectedApplicationsOrBuilder
in interfaceBackupOrBuilder
-
getContainsVolumeData
public boolean getContainsVolumeData()
Output only. Whether or not the Backup contains volume data. Controlled by the parent BackupPlan's [include_volume_data][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.include_volume_data] value.
bool contains_volume_data = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getContainsVolumeData
in interfaceBackupOrBuilder
- Returns:
- The containsVolumeData.
-
getContainsSecrets
public boolean getContainsSecrets()
Output only. Whether or not the Backup contains Kubernetes Secrets. Controlled by the parent BackupPlan's [include_secrets][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.include_secrets] value.
bool contains_secrets = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getContainsSecrets
in interfaceBackupOrBuilder
- Returns:
- The containsSecrets.
-
hasClusterMetadata
public boolean hasClusterMetadata()
Output only. Information about the GKE cluster from which this Backup was created.
.google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasClusterMetadata
in interfaceBackupOrBuilder
- Returns:
- Whether the clusterMetadata field is set.
-
getClusterMetadata
public Backup.ClusterMetadata getClusterMetadata()
Output only. Information about the GKE cluster from which this Backup was created.
.google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getClusterMetadata
in interfaceBackupOrBuilder
- Returns:
- The clusterMetadata.
-
getClusterMetadataOrBuilder
public Backup.ClusterMetadataOrBuilder getClusterMetadataOrBuilder()
Output only. Information about the GKE cluster from which this Backup was created.
.google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getClusterMetadataOrBuilder
in interfaceBackupOrBuilder
-
getStateValue
public int getStateValue()
Output only. Current state of the Backup
.google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStateValue
in interfaceBackupOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
getState
public Backup.State getState()
Output only. Current state of the Backup
.google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getState
in interfaceBackupOrBuilder
- Returns:
- The state.
-
getStateReason
public String getStateReason()
Output only. Human-readable description of why the backup is in the current `state`.
string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStateReason
in interfaceBackupOrBuilder
- Returns:
- The stateReason.
-
getStateReasonBytes
public com.google.protobuf.ByteString getStateReasonBytes()
Output only. Human-readable description of why the backup is in the current `state`.
string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStateReasonBytes
in interfaceBackupOrBuilder
- Returns:
- The bytes for stateReason.
-
hasCompleteTime
public boolean hasCompleteTime()
Output only. Completion time of the Backup
.google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCompleteTime
in interfaceBackupOrBuilder
- Returns:
- Whether the completeTime field is set.
-
getCompleteTime
public com.google.protobuf.Timestamp getCompleteTime()
Output only. Completion time of the Backup
.google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCompleteTime
in interfaceBackupOrBuilder
- Returns:
- The completeTime.
-
getCompleteTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder()
Output only. Completion time of the Backup
.google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCompleteTimeOrBuilder
in interfaceBackupOrBuilder
-
getResourceCount
public int getResourceCount()
Output only. The total number of Kubernetes resources included in the Backup.
int32 resource_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getResourceCount
in interfaceBackupOrBuilder
- Returns:
- The resourceCount.
-
getVolumeCount
public int getVolumeCount()
Output only. The total number of volume backups contained in the Backup.
int32 volume_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getVolumeCount
in interfaceBackupOrBuilder
- Returns:
- The volumeCount.
-
getSizeBytes
public long getSizeBytes()
Output only. The total size of the Backup in bytes = config backup size + sum(volume backup sizes)
int64 size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSizeBytes
in interfaceBackupOrBuilder
- Returns:
- The sizeBytes.
-
getEtag
public String getEtag()
Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a backup from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform backup updates in order to avoid race conditions: An `etag` is returned in the response to `GetBackup`, and systems are expected to put that etag in the request to `UpdateBackup` or `DeleteBackup` to ensure that their change will be applied to the same version of the resource.
string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getEtag
in interfaceBackupOrBuilder
- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()
Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a backup from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform backup updates in order to avoid race conditions: An `etag` is returned in the response to `GetBackup`, and systems are expected to put that etag in the request to `UpdateBackup` or `DeleteBackup` to ensure that their change will be applied to the same version of the resource.
string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getEtagBytes
in interfaceBackupOrBuilder
- Returns:
- The bytes for etag.
-
getDescription
public String getDescription()
User specified descriptive string for this Backup.
string description = 25;
- Specified by:
getDescription
in interfaceBackupOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
User specified descriptive string for this Backup.
string description = 25;
- Specified by:
getDescriptionBytes
in interfaceBackupOrBuilder
- Returns:
- The bytes for description.
-
getPodCount
public int getPodCount()
Output only. The total number of Kubernetes Pods contained in the Backup.
int32 pod_count = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getPodCount
in interfaceBackupOrBuilder
- Returns:
- The podCount.
-
getConfigBackupSizeBytes
public long getConfigBackupSizeBytes()
Output only. The size of the config backup in bytes.
int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getConfigBackupSizeBytes
in interfaceBackupOrBuilder
- Returns:
- The configBackupSizeBytes.
-
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 parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Backup parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Backup parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Backup 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 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Backup parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Backup parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Backup parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Backup parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Backup parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Backup parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Backup parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Backup.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Backup.Builder newBuilder()
-
newBuilder
public static Backup.Builder newBuilder(Backup prototype)
-
toBuilder
public Backup.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Backup.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Backup getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Backup> parser()
-
getParserForType
public com.google.protobuf.Parser<Backup> 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 getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-