Class DeleteBackupRequest.Builder (0.30.0)

public static final class DeleteBackupRequest.Builder extends GeneratedMessageV3.Builder<DeleteBackupRequest.Builder> implements DeleteBackupRequestOrBuilder

Request message for DeleteBackup.

Protobuf type google.cloud.gkebackup.v1.DeleteBackupRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeleteBackupRequest build()
Returns
TypeDescription
DeleteBackupRequest

buildPartial()

public DeleteBackupRequest buildPartial()
Returns
TypeDescription
DeleteBackupRequest

clear()

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

clearEtag()

public DeleteBackupRequest.Builder clearEtag()

If provided, this value must match the current value of the target Backup's etag field or the request is rejected.

string etag = 2;

Returns
TypeDescription
DeleteBackupRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearForce()

public DeleteBackupRequest.Builder clearForce()

If set to true, any VolumeBackups below this Backup will also be deleted. Otherwise, the request will only succeed if the Backup has no VolumeBackups.

bool force = 3;

Returns
TypeDescription
DeleteBackupRequest.Builder

This builder for chaining.

clearName()

public DeleteBackupRequest.Builder clearName()

Required. Name of the Backup resource. Format: projects/*/locations/*/backupPlans/*/backups/*

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

Returns
TypeDescription
DeleteBackupRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DeleteBackupRequest getDefaultInstanceForType()
Returns
TypeDescription
DeleteBackupRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEtag()

public String getEtag()

If provided, this value must match the current value of the target Backup's etag field or the request is rejected.

string etag = 2;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

If provided, this value must match the current value of the target Backup's etag field or the request is rejected.

string etag = 2;

Returns
TypeDescription
ByteString

The bytes for etag.

getForce()

public boolean getForce()

If set to true, any VolumeBackups below this Backup will also be deleted. Otherwise, the request will only succeed if the Backup has no VolumeBackups.

bool force = 3;

Returns
TypeDescription
boolean

The force.

getName()

public String getName()

Required. Name of the Backup resource. Format: projects/*/locations/*/backupPlans/*/backups/*

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the Backup resource. Format: projects/*/locations/*/backupPlans/*/backups/*

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

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeleteBackupRequest other)

public DeleteBackupRequest.Builder mergeFrom(DeleteBackupRequest other)
Parameter
NameDescription
otherDeleteBackupRequest
Returns
TypeDescription
DeleteBackupRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeleteBackupRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeleteBackupRequest.Builder
Overrides

setEtag(String value)

public DeleteBackupRequest.Builder setEtag(String value)

If provided, this value must match the current value of the target Backup's etag field or the request is rejected.

string etag = 2;

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
DeleteBackupRequest.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public DeleteBackupRequest.Builder setEtagBytes(ByteString value)

If provided, this value must match the current value of the target Backup's etag field or the request is rejected.

string etag = 2;

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
DeleteBackupRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setForce(boolean value)

public DeleteBackupRequest.Builder setForce(boolean value)

If set to true, any VolumeBackups below this Backup will also be deleted. Otherwise, the request will only succeed if the Backup has no VolumeBackups.

bool force = 3;

Parameter
NameDescription
valueboolean

The force to set.

Returns
TypeDescription
DeleteBackupRequest.Builder

This builder for chaining.

setName(String value)

public DeleteBackupRequest.Builder setName(String value)

Required. Name of the Backup resource. Format: projects/*/locations/*/backupPlans/*/backups/*

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DeleteBackupRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteBackupRequest.Builder setNameBytes(ByteString value)

Required. Name of the Backup resource. Format: projects/*/locations/*/backupPlans/*/backups/*

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DeleteBackupRequest.Builder

This builder for chaining.

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

public DeleteBackupRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DeleteBackupRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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