Class BackupVault.Builder (0.12.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BackupVault build()
Returns
TypeDescription
BackupVault

buildPartial()

public BackupVault buildPartial()
Returns
TypeDescription
BackupVault

clear()

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

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

clearDescription()

public BackupVault.Builder clearDescription()

Description of the backup vault.

string description = 4;

Returns
TypeDescription
BackupVault.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public BackupVault.Builder clearLabels()
Returns
TypeDescription
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
TypeDescription
BackupVault.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BackupVault.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BackupVault.Builder
Overrides

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

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Resource labels to represent user provided metadata.

map<string, string> labels = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

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

getDefaultInstanceForType()

public BackupVault getDefaultInstanceForType()
Returns
TypeDescription
BackupVault

getDescription()

public String getDescription()

Description of the backup vault.

string description = 4;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of the backup vault.

string description = 4;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Resource labels to represent user provided metadata.

map<string, string> labels = 5;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Resource labels to represent user provided metadata.

map<string, string> labels = 5;

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Resource labels to represent user provided metadata.

map<string, string> labels = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

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

The bytes for name.

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

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
BackupVault.Builder

mergeFrom(BackupVault other)

public BackupVault.Builder mergeFrom(BackupVault other)
Parameter
NameDescription
otherBackupVault
Returns
TypeDescription
BackupVault.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BackupVault.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
BackupVault.Builder

removeLabels(String key)

public BackupVault.Builder removeLabels(String key)

Resource labels to represent user provided metadata.

map<string, string> labels = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
BackupVault.Builder

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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
BackupVault.Builder

setDescription(String value)

public BackupVault.Builder setDescription(String value)

Description of the backup vault.

string description = 4;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
BackupVault.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public BackupVault.Builder setDescriptionBytes(ByteString value)

Description of the backup vault.

string description = 4;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
BackupVault.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BackupVault.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BackupVault.Builder
Overrides

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
NameDescription
valueBackupVault.State

The state to set.

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

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

Returns
TypeDescription
BackupVault.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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