Class BackupConfig (0.23.0)

publicfinalclass BackupConfigextendsGeneratedMessageV3implementsBackupConfigOrBuilder

BackupConfig contains backup related config on a volume.

Protobuf type google.cloud.netapp.v1.BackupConfig

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

BACKUP_CHAIN_BYTES_FIELD_NUMBER

publicstaticfinalintBACKUP_CHAIN_BYTES_FIELD_NUMBER
Field Value
Type Description
int

BACKUP_POLICIES_FIELD_NUMBER

publicstaticfinalintBACKUP_POLICIES_FIELD_NUMBER
Field Value
Type Description
int

BACKUP_VAULT_FIELD_NUMBER

publicstaticfinalintBACKUP_VAULT_FIELD_NUMBER
Field Value
Type Description
int

SCHEDULED_BACKUP_ENABLED_FIELD_NUMBER

publicstaticfinalintSCHEDULED_BACKUP_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticBackupConfiggetDefaultInstance()
Returns
Type Description
BackupConfig

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticBackupConfig.BuildernewBuilder()
Returns
Type Description
BackupConfig.Builder

newBuilder(BackupConfig prototype)

publicstaticBackupConfig.BuildernewBuilder(BackupConfigprototype)
Parameter
Name Description
prototype BackupConfig
Returns
Type Description
BackupConfig.Builder

parseDelimitedFrom(InputStream input)

publicstaticBackupConfigparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
BackupConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticBackupConfigparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticBackupConfigparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
BackupConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticBackupConfigparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticBackupConfigparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
BackupConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticBackupConfigparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticBackupConfigparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BackupConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticBackupConfigparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticBackupConfigparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
BackupConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticBackupConfigparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticBackupConfigparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BackupConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticBackupConfigparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<BackupConfig>parser()
Returns
Type Description
Parser<BackupConfig>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBackupChainBytes()

publiclonggetBackupChainBytes()

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)

publicStringgetBackupPolicies(intindex)

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)

publicByteStringgetBackupPoliciesBytes(intindex)

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()

publicintgetBackupPoliciesCount()

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()

publicProtocolStringListgetBackupPoliciesList()

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()

publicStringgetBackupVault()

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()

publicByteStringgetBackupVaultBytes()

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()

publicBackupConfiggetDefaultInstanceForType()
Returns
Type Description
BackupConfig

getParserForType()

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

getScheduledBackupEnabled()

publicbooleangetScheduledBackupEnabled()

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()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasBackupChainBytes()

publicbooleanhasBackupChainBytes()

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()

publicbooleanhasScheduledBackupEnabled()

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()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicBackupConfig.BuildernewBuilderForType()
Returns
Type Description
BackupConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedBackupConfig.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BackupConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicBackupConfig.BuildertoBuilder()
Returns
Type Description
BackupConfig.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.