Class BackupVault.Builder (0.41.0)

public static final class BackupVault.Builder extends GeneratedMessageV3.Builder<BackupVault.Builder> implements BackupVaultOrBuilder

A NetApp BackupVault.

Protobuf type google.cloud.netapp.v1.BackupVault

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BackupVault build()
Returns
Type Description
BackupVault

buildPartial()

public BackupVault buildPartial()
Returns
Type Description
BackupVault

clear()

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

clearBackupRegion()

public BackupVault.Builder clearBackupRegion()

Optional. Region where the backups are stored. Format: projects/{project_id}/locations/{location}

string backup_region = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
BackupVault.Builder

This builder for chaining.

clearBackupVaultType()

public BackupVault.Builder clearBackupVaultType()

Optional. Type of backup vault to be created. Default is IN_REGION.

.google.cloud.netapp.v1.BackupVault.BackupVaultType backup_vault_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BackupVault.Builder

This builder for chaining.

clearCreateTime()

public BackupVault.Builder clearCreateTime()

Output only. Create time of the backup vault.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupVault.Builder

clearDescription()

public BackupVault.Builder clearDescription()

Description of the backup vault.

string description = 4;

Returns
Type Description
BackupVault.Builder

This builder for chaining.

clearDestinationBackupVault()

public BackupVault.Builder clearDestinationBackupVault()

Output only. Name of the Backup vault created in backup region. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

string destination_backup_vault = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
BackupVault.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public BackupVault.Builder clearLabels()
Returns
Type Description
BackupVault.Builder

clearName()

public BackupVault.Builder clearName()

Identifier. The resource name of the backup vault. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
BackupVault.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSourceBackupVault()

public BackupVault.Builder clearSourceBackupVault()

Output only. Name of the Backup vault created in source region. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

string source_backup_vault = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
BackupVault.Builder

This builder for chaining.

clearSourceRegion()

public BackupVault.Builder clearSourceRegion()

Output only. Region in which the backup vault is created. Format: projects/{project_id}/locations/{location}

string source_region = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
BackupVault.Builder

This builder for chaining.

clearState()

public BackupVault.Builder clearState()

Output only. The backup vault state.

.google.cloud.netapp.v1.BackupVault.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupVault.Builder

This builder for chaining.

clone()

public BackupVault.Builder clone()
Returns
Type Description
BackupVault.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Resource labels to represent user provided metadata.

map<string, string> labels = 5;

Parameter
Name Description
key String
Returns
Type Description
boolean

getBackupRegion()

public String getBackupRegion()

Optional. Region where the backups are stored. Format: projects/{project_id}/locations/{location}

string backup_region = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The backupRegion.

getBackupRegionBytes()

public ByteString getBackupRegionBytes()

Optional. Region where the backups are stored. Format: projects/{project_id}/locations/{location}

string backup_region = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for backupRegion.

getBackupVaultType()

public BackupVault.BackupVaultType getBackupVaultType()

Optional. Type of backup vault to be created. Default is IN_REGION.

.google.cloud.netapp.v1.BackupVault.BackupVaultType backup_vault_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BackupVault.BackupVaultType

The backupVaultType.

getBackupVaultTypeValue()

public int getBackupVaultTypeValue()

Optional. Type of backup vault to be created. Default is IN_REGION.

.google.cloud.netapp.v1.BackupVault.BackupVaultType backup_vault_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for backupVaultType.

getCreateTime()

public Timestamp getCreateTime()

Output only. Create time of the backup vault.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Create time of the backup vault.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create time of the backup vault.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public BackupVault getDefaultInstanceForType()
Returns
Type Description
BackupVault

getDescription()

public String getDescription()

Description of the backup vault.

string description = 4;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of the backup vault.

string description = 4;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDestinationBackupVault()

public String getDestinationBackupVault()

Output only. Name of the Backup vault created in backup region. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

string destination_backup_vault = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The destinationBackupVault.

getDestinationBackupVaultBytes()

public ByteString getDestinationBackupVaultBytes()

Output only. Name of the Backup vault created in backup region. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

string destination_backup_vault = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for destinationBackupVault.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Resource labels to represent user provided metadata.

map<string, string> labels = 5;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Resource labels to represent user provided metadata.

map<string, string> labels = 5;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Resource labels to represent user provided metadata.

map<string, string> labels = 5;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Resource labels to represent user provided metadata.

map<string, string> labels = 5;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Identifier. The resource name of the backup vault. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the backup vault. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getSourceBackupVault()

public String getSourceBackupVault()

Output only. Name of the Backup vault created in source region. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

string source_backup_vault = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The sourceBackupVault.

getSourceBackupVaultBytes()

public ByteString getSourceBackupVaultBytes()

Output only. Name of the Backup vault created in source region. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

string source_backup_vault = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for sourceBackupVault.

getSourceRegion()

public String getSourceRegion()

Output only. Region in which the backup vault is created. Format: projects/{project_id}/locations/{location}

string source_region = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The sourceRegion.

getSourceRegionBytes()

public ByteString getSourceRegionBytes()

Output only. Region in which the backup vault is created. Format: projects/{project_id}/locations/{location}

string source_region = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for sourceRegion.

getState()

public BackupVault.State getState()

Output only. The backup vault state.

.google.cloud.netapp.v1.BackupVault.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupVault.State

The state.

getStateValue()

public int getStateValue()

Output only. The backup vault state.

.google.cloud.netapp.v1.BackupVault.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

hasCreateTime()

public boolean hasCreateTime()

Output only. Create time of the backup vault.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public BackupVault.Builder mergeCreateTime(Timestamp value)

Output only. Create time of the backup vault.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupVault.Builder

mergeFrom(BackupVault other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLabels(Map<String,String> values)

public BackupVault.Builder putAllLabels(Map<String,String> values)

Resource labels to represent user provided metadata.

map<string, string> labels = 5;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
BackupVault.Builder

putLabels(String key, String value)

public BackupVault.Builder putLabels(String key, String value)

Resource labels to represent user provided metadata.

map<string, string> labels = 5;

Parameters
Name Description
key String
value String
Returns
Type Description
BackupVault.Builder

removeLabels(String key)

public BackupVault.Builder removeLabels(String key)

Resource labels to represent user provided metadata.

map<string, string> labels = 5;

Parameter
Name Description
key String
Returns
Type Description
BackupVault.Builder

setBackupRegion(String value)

public BackupVault.Builder setBackupRegion(String value)

Optional. Region where the backups are stored. Format: projects/{project_id}/locations/{location}

string backup_region = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The backupRegion to set.

Returns
Type Description
BackupVault.Builder

This builder for chaining.

setBackupRegionBytes(ByteString value)

public BackupVault.Builder setBackupRegionBytes(ByteString value)

Optional. Region where the backups are stored. Format: projects/{project_id}/locations/{location}

string backup_region = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for backupRegion to set.

Returns
Type Description
BackupVault.Builder

This builder for chaining.

setBackupVaultType(BackupVault.BackupVaultType value)

public BackupVault.Builder setBackupVaultType(BackupVault.BackupVaultType value)

Optional. Type of backup vault to be created. Default is IN_REGION.

.google.cloud.netapp.v1.BackupVault.BackupVaultType backup_vault_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value BackupVault.BackupVaultType

The backupVaultType to set.

Returns
Type Description
BackupVault.Builder

This builder for chaining.

setBackupVaultTypeValue(int value)

public BackupVault.Builder setBackupVaultTypeValue(int value)

Optional. Type of backup vault to be created. Default is IN_REGION.

.google.cloud.netapp.v1.BackupVault.BackupVaultType backup_vault_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for backupVaultType to set.

Returns
Type Description
BackupVault.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public BackupVault.Builder setCreateTime(Timestamp value)

Output only. Create time of the backup vault.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupVault.Builder

setCreateTime(Timestamp.Builder builderForValue)

public BackupVault.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Create time of the backup vault.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BackupVault.Builder

setDescription(String value)

public BackupVault.Builder setDescription(String value)

Description of the backup vault.

string description = 4;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
BackupVault.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public BackupVault.Builder setDescriptionBytes(ByteString value)

Description of the backup vault.

string description = 4;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
BackupVault.Builder

This builder for chaining.

setDestinationBackupVault(String value)

public BackupVault.Builder setDestinationBackupVault(String value)

Output only. Name of the Backup vault created in backup region. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

string destination_backup_vault = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The destinationBackupVault to set.

Returns
Type Description
BackupVault.Builder

This builder for chaining.

setDestinationBackupVaultBytes(ByteString value)

public BackupVault.Builder setDestinationBackupVaultBytes(ByteString value)

Output only. Name of the Backup vault created in backup region. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

string destination_backup_vault = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for destinationBackupVault to set.

Returns
Type Description
BackupVault.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public BackupVault.Builder setName(String value)

Identifier. The resource name of the backup vault. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
BackupVault.Builder

This builder for chaining.

setNameBytes(ByteString value)

public BackupVault.Builder setNameBytes(ByteString value)

Identifier. The resource name of the backup vault. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
BackupVault.Builder

This builder for chaining.

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

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

setSourceBackupVault(String value)

public BackupVault.Builder setSourceBackupVault(String value)

Output only. Name of the Backup vault created in source region. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

string source_backup_vault = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The sourceBackupVault to set.

Returns
Type Description
BackupVault.Builder

This builder for chaining.

setSourceBackupVaultBytes(ByteString value)

public BackupVault.Builder setSourceBackupVaultBytes(ByteString value)

Output only. Name of the Backup vault created in source region. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

string source_backup_vault = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for sourceBackupVault to set.

Returns
Type Description
BackupVault.Builder

This builder for chaining.

setSourceRegion(String value)

public BackupVault.Builder setSourceRegion(String value)

Output only. Region in which the backup vault is created. Format: projects/{project_id}/locations/{location}

string source_region = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The sourceRegion to set.

Returns
Type Description
BackupVault.Builder

This builder for chaining.

setSourceRegionBytes(ByteString value)

public BackupVault.Builder setSourceRegionBytes(ByteString value)

Output only. Region in which the backup vault is created. Format: projects/{project_id}/locations/{location}

string source_region = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for sourceRegion to set.

Returns
Type Description
BackupVault.Builder

This builder for chaining.

setState(BackupVault.State value)

public BackupVault.Builder setState(BackupVault.State value)

Output only. The backup vault state.

.google.cloud.netapp.v1.BackupVault.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value BackupVault.State

The state to set.

Returns
Type Description
BackupVault.Builder

This builder for chaining.

setStateValue(int value)

public BackupVault.Builder setStateValue(int value)

Output only. The backup vault state.

.google.cloud.netapp.v1.BackupVault.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
BackupVault.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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