Class BackupConfig.Builder (0.19.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
TypeDescription
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
NameDescription
valuesIterable<String>

The backupPolicies to add.

Returns
TypeDescription
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
NameDescription
valueString

The backupPolicies to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the backupPolicies to add.

Returns
TypeDescription
BackupConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BackupConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BackupConfig.Builder
Overrides

build()

public BackupConfig build()
Returns
TypeDescription
BackupConfig

buildPartial()

public BackupConfig buildPartial()
Returns
TypeDescription
BackupConfig

clear()

public BackupConfig.Builder clear()
Returns
TypeDescription
BackupConfig.Builder
Overrides

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BackupConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BackupConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BackupConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
BackupConfig.Builder

This builder for chaining.

clone()

public BackupConfig.Builder clone()
Returns
TypeDescription
BackupConfig.Builder
Overrides

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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for backupVault.

getDefaultInstanceForType()

public BackupConfig getDefaultInstanceForType()
Returns
TypeDescription
BackupConfig

getDescriptorForType()

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

The scheduledBackupEnabled.

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
TypeDescription
boolean

Whether the scheduledBackupEnabled field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BackupConfig other)

public BackupConfig.Builder mergeFrom(BackupConfig other)
Parameter
NameDescription
otherBackupConfig
Returns
TypeDescription
BackupConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BackupConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackupConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BackupConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BackupConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BackupConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BackupConfig.Builder
Overrides

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
NameDescription
indexint

The index to set the value at.

valueString

The backupPolicies to set.

Returns
TypeDescription
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
NameDescription
valueString

The backupVault to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for backupVault to set.

Returns
TypeDescription
BackupConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BackupConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BackupConfig.Builder
Overrides

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

public BackupConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The scheduledBackupEnabled to set.

Returns
TypeDescription
BackupConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final BackupConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BackupConfig.Builder
Overrides