Class DeleteObject.Builder (0.16.0)
public static final class DeleteObject.Builder extends GeneratedMessageV3.Builder<DeleteObject.Builder> implements DeleteObjectOrBuilder
Describes options to delete an object.
Protobuf type google.cloud.storagebatchoperations.v1.DeleteObject
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DeleteObject.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public DeleteObject build()
buildPartial()
public DeleteObject buildPartial()
clear()
public DeleteObject.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public DeleteObject.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public DeleteObject.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPermanentObjectDeletionEnabled()
public DeleteObject.Builder clearPermanentObjectDeletionEnabled()
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];
clone()
public DeleteObject.Builder clone()
Overrides
getDefaultInstanceForType()
public DeleteObject getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(DeleteObject other)
public DeleteObject.Builder mergeFrom(DeleteObject other)
public DeleteObject.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public DeleteObject.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DeleteObject.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public DeleteObject.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setPermanentObjectDeletionEnabled(boolean value)
public DeleteObject.Builder setPermanentObjectDeletionEnabled(boolean value)
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];
Parameter |
Name |
Description |
value |
boolean
The permanentObjectDeletionEnabled to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DeleteObject.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DeleteObject.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]