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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BackupConfig.BuilderImplements
BackupConfigOrBuilderStatic 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 |
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 |
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 |
clearOneof(Descriptors.OneofDescriptor oneof)
public BackupConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
BackupConfig.Builder |
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 |
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 |
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. |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public BackupConfig.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
BackupConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BackupConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
BackupConfig.Builder |
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 |
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 |
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 |