Class DeleteObject (0.2.0)

public final class DeleteObject extends GeneratedMessageV3 implements DeleteObjectOrBuilder

Describes options to delete an object.

Protobuf type google.cloud.storagebatchoperations.v1.DeleteObject

Static Fields

PERMANENT_OBJECT_DELETION_ENABLED_FIELD_NUMBER

public static final int PERMANENT_OBJECT_DELETION_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DeleteObject getDefaultInstance()
Returns
Type Description
DeleteObject

getDescriptor()

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

newBuilder()

public static DeleteObject.Builder newBuilder()
Returns
Type Description
DeleteObject.Builder

newBuilder(DeleteObject prototype)

public static DeleteObject.Builder newBuilder(DeleteObject prototype)
Parameter
Name Description
prototype DeleteObject
Returns
Type Description
DeleteObject.Builder

parseDelimitedFrom(InputStream input)

public static DeleteObject parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DeleteObject
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DeleteObject parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeleteObject
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DeleteObject parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DeleteObject
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DeleteObject parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeleteObject
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DeleteObject parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DeleteObject
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DeleteObject parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeleteObject
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DeleteObject parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DeleteObject
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DeleteObject parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeleteObject
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DeleteObject parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DeleteObject
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DeleteObject parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeleteObject
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DeleteObject parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DeleteObject
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DeleteObject parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeleteObject
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DeleteObject> parser()
Returns
Type Description
Parser<DeleteObject>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public DeleteObject getDefaultInstanceForType()
Returns
Type Description
DeleteObject

getParserForType()

public Parser<DeleteObject> getParserForType()
Returns
Type Description
Parser<DeleteObject>
Overrides

getPermanentObjectDeletionEnabled()

public boolean getPermanentObjectDeletionEnabled()

Required. Controls deletion behavior when versioning is enabled for the object's bucket. If true both live and noncurrent objects will be permanently deleted. Otherwise live objects in versioned buckets will become noncurrent and objects that were already noncurrent will be skipped. This setting doesn't have any impact on the Soft Delete feature. All objects deleted by this service can be be restored for the duration of the Soft Delete retention duration if enabled. If enabled and the manifest doesn't specify an object's generation, a GetObjectMetadata call (a Class B operation) will be made to determine the live object generation.

bool permanent_object_deletion_enabled = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

The permanentObjectDeletionEnabled.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DeleteObject.Builder newBuilderForType()
Returns
Type Description
DeleteObject.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DeleteObject.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DeleteObject.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public DeleteObject.Builder toBuilder()
Returns
Type Description
DeleteObject.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException