Class BackupConfig.Builder (0.23.0)

public static final class BackupConfig.Builder extends GeneratedMessageV3.Builder<BackupConfig.Builder> implements BackupConfigOrBuilder

BackupConfig contains backup related config on a volume.

Protobuf type google.cloud.netapp.v1.BackupConfig

Static Methods

getDescriptor()

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

Methods

addAllBackupPolicies(Iterable<String> values)

public BackupConfig.Builder addAllBackupPolicies(Iterable<String> values)

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
values Iterable<String>

The backupPolicies to add.

Returns
Type Description
BackupConfig.Builder

This builder for chaining.

addBackupPolicies(String value)

public BackupConfig.Builder addBackupPolicies(String value)

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
value String

The backupPolicies to add.

Returns
Type Description
BackupConfig.Builder

This builder for chaining.

addBackupPoliciesBytes(ByteString value)

public BackupConfig.Builder addBackupPoliciesBytes(ByteString value)

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
value ByteString

The bytes of the backupPolicies to add.

Returns
Type Description
BackupConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BackupConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackupConfig.Builder
Overrides

build()

public BackupConfig build()
Returns
Type Description
BackupConfig

buildPartial()

public BackupConfig buildPartial()
Returns
Type Description
BackupConfig

clear()

public BackupConfig.Builder clear()
Returns
Type Description
BackupConfig.Builder
Overrides

clearBackupChainBytes()

public BackupConfig.Builder clearBackupChainBytes()

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
BackupConfig.Builder

This builder for chaining.

clearBackupPolicies()

public BackupConfig.Builder clearBackupPolicies()

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
BackupConfig.Builder

This builder for chaining.

clearBackupVault()

public BackupConfig.Builder clearBackupVault()

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
BackupConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BackupConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BackupConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BackupConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BackupConfig.Builder
Overrides

clearScheduledBackupEnabled()

public BackupConfig.Builder clearScheduledBackupEnabled()

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
BackupConfig.Builder

This builder for chaining.

clone()

public BackupConfig.Builder clone()
Returns
Type Description
BackupConfig.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BackupConfig other)

public BackupConfig.Builder mergeFrom(BackupConfig other)
Parameter
Name Description
other BackupConfig
Returns
Type Description
BackupConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BackupConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BackupConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BackupConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BackupConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackupConfig.Builder
Overrides

setBackupChainBytes(long value)

public BackupConfig.Builder setBackupChainBytes(long value)

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];

Parameter
Name Description
value long

The backupChainBytes to set.

Returns
Type Description
BackupConfig.Builder

This builder for chaining.

setBackupPolicies(int index, String value)

public BackupConfig.Builder setBackupPolicies(int index, String value)

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) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The backupPolicies to set.

Returns
Type Description
BackupConfig.Builder

This builder for chaining.

setBackupVault(String value)

public BackupConfig.Builder setBackupVault(String value)

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) = { ... }

Parameter
Name Description
value String

The backupVault to set.

Returns
Type Description
BackupConfig.Builder

This builder for chaining.

setBackupVaultBytes(ByteString value)

public BackupConfig.Builder setBackupVaultBytes(ByteString value)

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) = { ... }

Parameter
Name Description
value ByteString

The bytes for backupVault to set.

Returns
Type Description
BackupConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BackupConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackupConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BackupConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BackupConfig.Builder
Overrides

setScheduledBackupEnabled(boolean value)

public BackupConfig.Builder setScheduledBackupEnabled(boolean value)

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];

Parameter
Name Description
value boolean

The scheduledBackupEnabled to set.

Returns
Type Description
BackupConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final BackupConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackupConfig.Builder
Overrides