Class BackupConfig (0.24.0)

public final class BackupConfig extends GeneratedMessageV3 implements BackupConfigOrBuilder

BackupConfig contains backup related config on a volume.

Protobuf type google.cloud.netapp.v1.BackupConfig

Static Fields

BACKUP_CHAIN_BYTES_FIELD_NUMBER

public static final int BACKUP_CHAIN_BYTES_FIELD_NUMBER
Field Value
Type Description
int

BACKUP_POLICIES_FIELD_NUMBER

public static final int BACKUP_POLICIES_FIELD_NUMBER
Field Value
Type Description
int

BACKUP_VAULT_FIELD_NUMBER

public static final int BACKUP_VAULT_FIELD_NUMBER
Field Value
Type Description
int

SCHEDULED_BACKUP_ENABLED_FIELD_NUMBER

public static final int SCHEDULED_BACKUP_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BackupConfig getDefaultInstance()
Returns
Type Description
BackupConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static BackupConfig.Builder newBuilder()
Returns
Type Description
BackupConfig.Builder

newBuilder(BackupConfig prototype)

public static BackupConfig.Builder newBuilder(BackupConfig prototype)
Parameter
Name Description
prototype BackupConfig
Returns
Type Description
BackupConfig.Builder

parseDelimitedFrom(InputStream input)

public static BackupConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BackupConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BackupConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BackupConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BackupConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BackupConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BackupConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BackupConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BackupConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BackupConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BackupConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BackupConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BackupConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BackupConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BackupConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BackupConfig> parser()
Returns
Type Description
Parser<BackupConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBackupChainBytes()

public long getBackupChainBytes()

Output only. Total size of all backups in a chain in bytes = baseline backup size + sum(incremental backup size).

optional int64 backup_chain_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The backupChainBytes.

getBackupPolicies(int index)

public String getBackupPolicies(int index)

Optional. When specified, schedule backups will be created based on the policy configuration.

repeated string backup_policies = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The backupPolicies at the given index.

getBackupPoliciesBytes(int index)

public ByteString getBackupPoliciesBytes(int index)

Optional. When specified, schedule backups will be created based on the policy configuration.

repeated string backup_policies = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the backupPolicies at the given index.

getBackupPoliciesCount()

public int getBackupPoliciesCount()

Optional. When specified, schedule backups will be created based on the policy configuration.

repeated string backup_policies = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of backupPolicies.

getBackupPoliciesList()

public ProtocolStringList getBackupPoliciesList()

Optional. When specified, schedule backups will be created based on the policy configuration.

repeated string backup_policies = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the backupPolicies.

getBackupVault()

public String getBackupVault()

Optional. Name of backup vault. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

string backup_vault = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The backupVault.

getBackupVaultBytes()

public ByteString getBackupVaultBytes()

Optional. Name of backup vault. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

string backup_vault = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for backupVault.

getDefaultInstanceForType()

public BackupConfig getDefaultInstanceForType()
Returns
Type Description
BackupConfig

getParserForType()

public Parser<BackupConfig> getParserForType()
Returns
Type Description
Parser<BackupConfig>
Overrides

getScheduledBackupEnabled()

public boolean getScheduledBackupEnabled()

Optional. When set to true, scheduled backup is enabled on the volume. This field should be nil when there's no backup policy attached.

optional bool scheduled_backup_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The scheduledBackupEnabled.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasBackupChainBytes()

public boolean hasBackupChainBytes()

Output only. Total size of all backups in a chain in bytes = baseline backup size + sum(incremental backup size).

optional int64 backup_chain_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the backupChainBytes field is set.

hasScheduledBackupEnabled()

public boolean hasScheduledBackupEnabled()

Optional. When set to true, scheduled backup is enabled on the volume. This field should be nil when there's no backup policy attached.

optional bool scheduled_backup_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the scheduledBackupEnabled field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BackupConfig.Builder newBuilderForType()
Returns
Type Description
BackupConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BackupConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BackupConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public BackupConfig.Builder toBuilder()
Returns
Type Description
BackupConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException