Class CreateBackupVaultRequest.Builder (0.15.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateBackupVaultRequest build()
Returns
TypeDescription
CreateBackupVaultRequest

buildPartial()

public CreateBackupVaultRequest buildPartial()
Returns
TypeDescription
CreateBackupVaultRequest

clear()

public CreateBackupVaultRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
CreateBackupVaultRequest.Builder

clearBackupVaultId()

public CreateBackupVaultRequest.Builder clearBackupVaultId()

Required. The ID to use for the backupVault. The ID must be unique within the specified location. The max supported length is 63 characters. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. Values that do not match this pattern will trigger an INVALID_ARGUMENT error.

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

Returns
TypeDescription
CreateBackupVaultRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getBackupVaultId()

public String getBackupVaultId()

Required. The ID to use for the backupVault. The ID must be unique within the specified location. The max supported length is 63 characters. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. Values that do not match this pattern will trigger an INVALID_ARGUMENT error.

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

Returns
TypeDescription
String

The backupVaultId.

getBackupVaultIdBytes()

public ByteString getBackupVaultIdBytes()

Required. The ID to use for the backupVault. The ID must be unique within the specified location. The max supported length is 63 characters. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. Values that do not match this pattern will trigger an INVALID_ARGUMENT error.

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

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

getDefaultInstanceForType()

public CreateBackupVaultRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateBackupVaultRequest

getDescriptorForType()

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

Whether the backupVault field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

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

mergeFrom(CreateBackupVaultRequest other)

public CreateBackupVaultRequest.Builder mergeFrom(CreateBackupVaultRequest other)
Parameter
NameDescription
otherCreateBackupVaultRequest
Returns
TypeDescription
CreateBackupVaultRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateBackupVaultRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueBackupVault
Returns
TypeDescription
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
NameDescription
builderForValueBackupVault.Builder
Returns
TypeDescription
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. The max supported length is 63 characters. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. Values that do not match this pattern will trigger an INVALID_ARGUMENT error.

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

Parameter
NameDescription
valueString

The backupVaultId to set.

Returns
TypeDescription
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. The max supported length is 63 characters. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. Values that do not match this pattern will trigger an INVALID_ARGUMENT error.

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

Parameter
NameDescription
valueByteString

The bytes for backupVaultId to set.

Returns
TypeDescription
CreateBackupVaultRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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