public final class Backup extends com.google.protobuf.GeneratedMessageV3 implements BackupOrBuilder
A NetApp Backup.Protobuf type
google.cloud.netapp.v1.Backup| Modifier and Type | Class and Description |
|---|---|
static class |
Backup.Builder
A NetApp Backup.
|
static class |
Backup.State
The Backup States
|
static class |
Backup.Type
Backup types.
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
BACKUP_TYPE_FIELD_NUMBER |
static int |
CHAIN_STORAGE_BYTES_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
SOURCE_SNAPSHOT_FIELD_NUMBER |
static int |
SOURCE_VOLUME_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
static int |
VOLUME_USAGE_BYTES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
Resource labels to represent user provided metadata.
|
boolean |
equals(Object obj) |
Backup.Type |
getBackupType()
Output only.
|
int |
getBackupTypeValue()
Output only.
|
long |
getChainStorageBytes()
Output only.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
static Backup |
getDefaultInstance() |
Backup |
getDefaultInstanceForType() |
String |
getDescription()
A description of the backup with 2048 characters or less.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
A description of the backup with 2048 characters or less.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Resource labels to represent user provided metadata.
|
Map<String,String> |
getLabelsMap()
Resource labels to represent user provided metadata.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Resource labels to represent user provided metadata.
|
String |
getLabelsOrThrow(String key)
Resource labels to represent user provided metadata.
|
String |
getName()
Identifier.
|
com.google.protobuf.ByteString |
getNameBytes()
Identifier.
|
com.google.protobuf.Parser<Backup> |
getParserForType() |
int |
getSerializedSize() |
String |
getSourceSnapshot()
If specified, backup will be created from the given snapshot.
|
com.google.protobuf.ByteString |
getSourceSnapshotBytes()
If specified, backup will be created from the given snapshot.
|
String |
getSourceVolume()
Volume full name of this backup belongs to.
|
com.google.protobuf.ByteString |
getSourceVolumeBytes()
Volume full name of this backup belongs to.
|
Backup.State |
getState()
Output only.
|
int |
getStateValue()
Output only.
|
long |
getVolumeUsageBytes()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
int |
hashCode() |
boolean |
hasSourceSnapshot()
If specified, backup will be created from the given snapshot.
|
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(ByteBuffer data) |
static Backup |
parseFrom(ByteBuffer 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 com.google.protobuf.Parser<Backup> |
parser() |
Backup.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int VOLUME_USAGE_BYTES_FIELD_NUMBER
public static final int BACKUP_TYPE_FIELD_NUMBER
public static final int SOURCE_VOLUME_FIELD_NUMBER
public static final int SOURCE_SNAPSHOT_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int CHAIN_STORAGE_BYTES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
Identifier. The resource name of the backup.
Format:
`projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];getName in interface BackupOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Identifier. The resource name of the backup.
Format:
`projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];getNameBytes in interface BackupOrBuilderpublic int getStateValue()
Output only. The backup state.
.google.cloud.netapp.v1.Backup.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue in interface BackupOrBuilderpublic Backup.State getState()
Output only. The backup state.
.google.cloud.netapp.v1.Backup.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState in interface BackupOrBuilderpublic String getDescription()
A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 3;getDescription in interface BackupOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 3;getDescriptionBytes in interface BackupOrBuilderpublic long getVolumeUsageBytes()
Output only. Size of the file system when the backup was created. When creating a new volume from the backup, the volume capacity will have to be at least as big.
int64 volume_usage_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];getVolumeUsageBytes in interface BackupOrBuilderpublic int getBackupTypeValue()
Output only. Type of backup, manually created or created by a backup policy.
.google.cloud.netapp.v1.Backup.Type backup_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getBackupTypeValue in interface BackupOrBuilderpublic Backup.Type getBackupType()
Output only. Type of backup, manually created or created by a backup policy.
.google.cloud.netapp.v1.Backup.Type backup_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getBackupType in interface BackupOrBuilderpublic String getSourceVolume()
Volume full name of this backup belongs to.
Format:
`projects/{projects_id}/locations/{location}/volumes/{volume_id}`
string source_volume = 6 [(.google.api.resource_reference) = { ... }getSourceVolume in interface BackupOrBuilderpublic com.google.protobuf.ByteString getSourceVolumeBytes()
Volume full name of this backup belongs to.
Format:
`projects/{projects_id}/locations/{location}/volumes/{volume_id}`
string source_volume = 6 [(.google.api.resource_reference) = { ... }getSourceVolumeBytes in interface BackupOrBuilderpublic boolean hasSourceSnapshot()
If specified, backup will be created from the given snapshot.
If not specified, there will be a new snapshot taken to initiate the backup
creation. Format:
`projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}`
optional string source_snapshot = 7 [(.google.api.resource_reference) = { ... }hasSourceSnapshot in interface BackupOrBuilderpublic String getSourceSnapshot()
If specified, backup will be created from the given snapshot.
If not specified, there will be a new snapshot taken to initiate the backup
creation. Format:
`projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}`
optional string source_snapshot = 7 [(.google.api.resource_reference) = { ... }getSourceSnapshot in interface BackupOrBuilderpublic com.google.protobuf.ByteString getSourceSnapshotBytes()
If specified, backup will be created from the given snapshot.
If not specified, there will be a new snapshot taken to initiate the backup
creation. Format:
`projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}`
optional string source_snapshot = 7 [(.google.api.resource_reference) = { ... }getSourceSnapshotBytes in interface BackupOrBuilderpublic boolean hasCreateTime()
Output only. The time when the backup was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface BackupOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. The time when the backup was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface BackupOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the backup was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface BackupOrBuilderpublic int getLabelsCount()
BackupOrBuilderResource labels to represent user provided metadata.
map<string, string> labels = 9;getLabelsCount in interface BackupOrBuilderpublic boolean containsLabels(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 9;containsLabels in interface BackupOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface BackupOrBuilderpublic Map<String,String> getLabelsMap()
Resource labels to represent user provided metadata.
map<string, string> labels = 9;getLabelsMap in interface BackupOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user provided metadata.
map<string, string> labels = 9;getLabelsOrDefault in interface BackupOrBuilderpublic String getLabelsOrThrow(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 9;getLabelsOrThrow in interface BackupOrBuilderpublic long getChainStorageBytes()
Output only. Total size of all backups in a chain in bytes = baseline backup size + sum(incremental backup size)
int64 chain_storage_bytes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];getChainStorageBytes in interface BackupOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Backup parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Backup parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Backup parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Backup parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Backup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Backup parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Backup parseFrom(InputStream input) throws IOException
IOExceptionpublic static Backup parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Backup parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Backup parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Backup parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Backup parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Backup.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Backup.Builder newBuilder()
public static Backup.Builder newBuilder(Backup prototype)
public Backup.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Backup.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Backup getDefaultInstance()
public static com.google.protobuf.Parser<Backup> parser()
public com.google.protobuf.Parser<Backup> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Backup getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.