Class DeleteDocumentAction.Builder (0.5.0)

public static final class DeleteDocumentAction.Builder extends GeneratedMessageV3.Builder<DeleteDocumentAction.Builder> implements DeleteDocumentActionOrBuilder

Represents the action responsible for deleting the document.

Protobuf type google.cloud.contentwarehouse.v1.DeleteDocumentAction

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeleteDocumentAction build()
Returns
TypeDescription
DeleteDocumentAction

buildPartial()

public DeleteDocumentAction buildPartial()
Returns
TypeDescription
DeleteDocumentAction

clear()

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

clearEnableHardDelete()

public DeleteDocumentAction.Builder clearEnableHardDelete()

Boolean field to select between hard vs soft delete options. Set 'true' for 'hard delete' and 'false' for 'soft delete'.

bool enable_hard_delete = 1;

Returns
TypeDescription
DeleteDocumentAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DeleteDocumentAction getDefaultInstanceForType()
Returns
TypeDescription
DeleteDocumentAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnableHardDelete()

public boolean getEnableHardDelete()

Boolean field to select between hard vs soft delete options. Set 'true' for 'hard delete' and 'false' for 'soft delete'.

bool enable_hard_delete = 1;

Returns
TypeDescription
boolean

The enableHardDelete.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeleteDocumentAction other)

public DeleteDocumentAction.Builder mergeFrom(DeleteDocumentAction other)
Parameter
NameDescription
otherDeleteDocumentAction
Returns
TypeDescription
DeleteDocumentAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnableHardDelete(boolean value)

public DeleteDocumentAction.Builder setEnableHardDelete(boolean value)

Boolean field to select between hard vs soft delete options. Set 'true' for 'hard delete' and 'false' for 'soft delete'.

bool enable_hard_delete = 1;

Parameter
NameDescription
valueboolean

The enableHardDelete to set.

Returns
TypeDescription
DeleteDocumentAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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