Class CreateBackupVaultRequest.Builder (0.32.0)

public static final class CreateBackupVaultRequest.Builder extends GeneratedMessageV3.Builder<CreateBackupVaultRequest.Builder> implements CreateBackupVaultRequestOrBuilder

CreateBackupVaultRequest creates a backup vault.

Protobuf type google.cloud.netapp.v1.CreateBackupVaultRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateBackupVaultRequest build()
Returns
Type Description
CreateBackupVaultRequest

buildPartial()

public CreateBackupVaultRequest buildPartial()
Returns
Type Description
CreateBackupVaultRequest

clear()

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

clearBackupVault()

public CreateBackupVaultRequest.Builder clearBackupVault()

Required. A backupVault resource

.google.cloud.netapp.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateBackupVaultRequest.Builder

clearBackupVaultId()

public CreateBackupVaultRequest.Builder clearBackupVaultId()

Required. The ID to use for the backupVault. The ID must be unique within the specified location. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateBackupVaultRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateBackupVaultRequest.Builder clearParent()

Required. The location to create the backup vaults, in the format projects/{project_id}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateBackupVaultRequest.Builder

This builder for chaining.

clone()

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

getBackupVault()

public BackupVault getBackupVault()

Required. A backupVault resource

.google.cloud.netapp.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BackupVault

The backupVault.

getBackupVaultBuilder()

public BackupVault.Builder getBackupVaultBuilder()

Required. A backupVault resource

.google.cloud.netapp.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BackupVault.Builder

getBackupVaultId()

public String getBackupVaultId()

Required. The ID to use for the backupVault. The ID must be unique within the specified location. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The backupVaultId.

getBackupVaultIdBytes()

public ByteString getBackupVaultIdBytes()

Required. The ID to use for the backupVault. The ID must be unique within the specified location. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for backupVaultId.

getBackupVaultOrBuilder()

public BackupVaultOrBuilder getBackupVaultOrBuilder()

Required. A backupVault resource

.google.cloud.netapp.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BackupVaultOrBuilder

getDefaultInstanceForType()

public CreateBackupVaultRequest getDefaultInstanceForType()
Returns
Type Description
CreateBackupVaultRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The location to create the backup vaults, in the format projects/{project_id}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The location to create the backup vaults, in the format projects/{project_id}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasBackupVault()

public boolean hasBackupVault()

Required. A backupVault resource

.google.cloud.netapp.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the backupVault field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBackupVault(BackupVault value)

public CreateBackupVaultRequest.Builder mergeBackupVault(BackupVault value)

Required. A backupVault resource

.google.cloud.netapp.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BackupVault
Returns
Type Description
CreateBackupVaultRequest.Builder

mergeFrom(CreateBackupVaultRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBackupVault(BackupVault value)

public CreateBackupVaultRequest.Builder setBackupVault(BackupVault value)

Required. A backupVault resource

.google.cloud.netapp.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BackupVault
Returns
Type Description
CreateBackupVaultRequest.Builder

setBackupVault(BackupVault.Builder builderForValue)

public CreateBackupVaultRequest.Builder setBackupVault(BackupVault.Builder builderForValue)

Required. A backupVault resource

.google.cloud.netapp.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue BackupVault.Builder
Returns
Type Description
CreateBackupVaultRequest.Builder

setBackupVaultId(String value)

public CreateBackupVaultRequest.Builder setBackupVaultId(String value)

Required. The ID to use for the backupVault. The ID must be unique within the specified location. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The backupVaultId to set.

Returns
Type Description
CreateBackupVaultRequest.Builder

This builder for chaining.

setBackupVaultIdBytes(ByteString value)

public CreateBackupVaultRequest.Builder setBackupVaultIdBytes(ByteString value)

Required. The ID to use for the backupVault. The ID must be unique within the specified location. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for backupVaultId to set.

Returns
Type Description
CreateBackupVaultRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateBackupVaultRequest.Builder setParent(String value)

Required. The location to create the backup vaults, in the format projects/{project_id}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateBackupVaultRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateBackupVaultRequest.Builder setParentBytes(ByteString value)

Required. The location to create the backup vaults, in the format projects/{project_id}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateBackupVaultRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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