public static final class DeleteObjectRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DeleteObjectRequest.Builder> implements DeleteObjectRequestOrBuilder
Message for deleting an object. `bucket` and `object` **must** be set.Protobuf type
google.storage.v2.DeleteObjectRequest| Modifier and Type | Method and Description |
|---|---|
DeleteObjectRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DeleteObjectRequest |
build() |
DeleteObjectRequest |
buildPartial() |
DeleteObjectRequest.Builder |
clear() |
DeleteObjectRequest.Builder |
clearBucket()
Required.
|
DeleteObjectRequest.Builder |
clearCommonObjectRequestParams()
A set of parameters common to Storage API requests concerning an object.
|
DeleteObjectRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
DeleteObjectRequest.Builder |
clearGeneration()
If present, permanently deletes a specific revision of this object (as
opposed to the latest version, the default).
|
DeleteObjectRequest.Builder |
clearIfGenerationMatch()
Makes the operation conditional on whether the object's current generation
matches the given value.
|
DeleteObjectRequest.Builder |
clearIfGenerationNotMatch()
Makes the operation conditional on whether the object's live generation
does not match the given value.
|
DeleteObjectRequest.Builder |
clearIfMetagenerationMatch()
Makes the operation conditional on whether the object's current
metageneration matches the given value.
|
DeleteObjectRequest.Builder |
clearIfMetagenerationNotMatch()
Makes the operation conditional on whether the object's current
metageneration does not match the given value.
|
DeleteObjectRequest.Builder |
clearObject()
Required.
|
DeleteObjectRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
DeleteObjectRequest.Builder |
clone() |
String |
getBucket()
Required.
|
com.google.protobuf.ByteString |
getBucketBytes()
Required.
|
CommonObjectRequestParams |
getCommonObjectRequestParams()
A set of parameters common to Storage API requests concerning an object.
|
CommonObjectRequestParams.Builder |
getCommonObjectRequestParamsBuilder()
A set of parameters common to Storage API requests concerning an object.
|
CommonObjectRequestParamsOrBuilder |
getCommonObjectRequestParamsOrBuilder()
A set of parameters common to Storage API requests concerning an object.
|
DeleteObjectRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getGeneration()
If present, permanently deletes a specific revision of this object (as
opposed to the latest version, the default).
|
long |
getIfGenerationMatch()
Makes the operation conditional on whether the object's current generation
matches the given value.
|
long |
getIfGenerationNotMatch()
Makes the operation conditional on whether the object's live generation
does not match the given value.
|
long |
getIfMetagenerationMatch()
Makes the operation conditional on whether the object's current
metageneration matches the given value.
|
long |
getIfMetagenerationNotMatch()
Makes the operation conditional on whether the object's current
metageneration does not match the given value.
|
String |
getObject()
Required.
|
com.google.protobuf.ByteString |
getObjectBytes()
Required.
|
boolean |
hasCommonObjectRequestParams()
A set of parameters common to Storage API requests concerning an object.
|
boolean |
hasIfGenerationMatch()
Makes the operation conditional on whether the object's current generation
matches the given value.
|
boolean |
hasIfGenerationNotMatch()
Makes the operation conditional on whether the object's live generation
does not match the given value.
|
boolean |
hasIfMetagenerationMatch()
Makes the operation conditional on whether the object's current
metageneration matches the given value.
|
boolean |
hasIfMetagenerationNotMatch()
Makes the operation conditional on whether the object's current
metageneration does not match the given value.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DeleteObjectRequest.Builder |
mergeCommonObjectRequestParams(CommonObjectRequestParams value)
A set of parameters common to Storage API requests concerning an object.
|
DeleteObjectRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DeleteObjectRequest.Builder |
mergeFrom(DeleteObjectRequest other) |
DeleteObjectRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
DeleteObjectRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DeleteObjectRequest.Builder |
setBucket(String value)
Required.
|
DeleteObjectRequest.Builder |
setBucketBytes(com.google.protobuf.ByteString value)
Required.
|
DeleteObjectRequest.Builder |
setCommonObjectRequestParams(CommonObjectRequestParams.Builder builderForValue)
A set of parameters common to Storage API requests concerning an object.
|
DeleteObjectRequest.Builder |
setCommonObjectRequestParams(CommonObjectRequestParams value)
A set of parameters common to Storage API requests concerning an object.
|
DeleteObjectRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DeleteObjectRequest.Builder |
setGeneration(long value)
If present, permanently deletes a specific revision of this object (as
opposed to the latest version, the default).
|
DeleteObjectRequest.Builder |
setIfGenerationMatch(long value)
Makes the operation conditional on whether the object's current generation
matches the given value.
|
DeleteObjectRequest.Builder |
setIfGenerationNotMatch(long value)
Makes the operation conditional on whether the object's live generation
does not match the given value.
|
DeleteObjectRequest.Builder |
setIfMetagenerationMatch(long value)
Makes the operation conditional on whether the object's current
metageneration matches the given value.
|
DeleteObjectRequest.Builder |
setIfMetagenerationNotMatch(long value)
Makes the operation conditional on whether the object's current
metageneration does not match the given value.
|
DeleteObjectRequest.Builder |
setObject(String value)
Required.
|
DeleteObjectRequest.Builder |
setObjectBytes(com.google.protobuf.ByteString value)
Required.
|
DeleteObjectRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
DeleteObjectRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DeleteObjectRequest.Builder>public DeleteObjectRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<DeleteObjectRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DeleteObjectRequest.Builder>public DeleteObjectRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DeleteObjectRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DeleteObjectRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DeleteObjectRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<DeleteObjectRequest.Builder>public DeleteObjectRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<DeleteObjectRequest.Builder>public DeleteObjectRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<DeleteObjectRequest.Builder>public DeleteObjectRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DeleteObjectRequest.Builder>public DeleteObjectRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DeleteObjectRequest.Builder>public DeleteObjectRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DeleteObjectRequest.Builder>public DeleteObjectRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DeleteObjectRequest.Builder>public DeleteObjectRequest.Builder mergeFrom(DeleteObjectRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DeleteObjectRequest.Builder>public DeleteObjectRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DeleteObjectRequest.Builder>IOExceptionpublic String getBucket()
Required. Name of the bucket in which the object resides.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getBucket in interface DeleteObjectRequestOrBuilderpublic com.google.protobuf.ByteString getBucketBytes()
Required. Name of the bucket in which the object resides.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getBucketBytes in interface DeleteObjectRequestOrBuilderpublic DeleteObjectRequest.Builder setBucket(String value)
Required. Name of the bucket in which the object resides.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bucket to set.public DeleteObjectRequest.Builder clearBucket()
Required. Name of the bucket in which the object resides.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public DeleteObjectRequest.Builder setBucketBytes(com.google.protobuf.ByteString value)
Required. Name of the bucket in which the object resides.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bytes for bucket to set.public String getObject()
Required. The name of the finalized object to delete. Note: If you want to delete an unfinalized resumable upload please use `CancelResumableWrite`.
string object = 2 [(.google.api.field_behavior) = REQUIRED];getObject in interface DeleteObjectRequestOrBuilderpublic com.google.protobuf.ByteString getObjectBytes()
Required. The name of the finalized object to delete. Note: If you want to delete an unfinalized resumable upload please use `CancelResumableWrite`.
string object = 2 [(.google.api.field_behavior) = REQUIRED];getObjectBytes in interface DeleteObjectRequestOrBuilderpublic DeleteObjectRequest.Builder setObject(String value)
Required. The name of the finalized object to delete. Note: If you want to delete an unfinalized resumable upload please use `CancelResumableWrite`.
string object = 2 [(.google.api.field_behavior) = REQUIRED];value - The object to set.public DeleteObjectRequest.Builder clearObject()
Required. The name of the finalized object to delete. Note: If you want to delete an unfinalized resumable upload please use `CancelResumableWrite`.
string object = 2 [(.google.api.field_behavior) = REQUIRED];public DeleteObjectRequest.Builder setObjectBytes(com.google.protobuf.ByteString value)
Required. The name of the finalized object to delete. Note: If you want to delete an unfinalized resumable upload please use `CancelResumableWrite`.
string object = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for object to set.public long getGeneration()
If present, permanently deletes a specific revision of this object (as opposed to the latest version, the default).
int64 generation = 4;getGeneration in interface DeleteObjectRequestOrBuilderpublic DeleteObjectRequest.Builder setGeneration(long value)
If present, permanently deletes a specific revision of this object (as opposed to the latest version, the default).
int64 generation = 4;value - The generation to set.public DeleteObjectRequest.Builder clearGeneration()
If present, permanently deletes a specific revision of this object (as opposed to the latest version, the default).
int64 generation = 4;public boolean hasIfGenerationMatch()
Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
optional int64 if_generation_match = 5;hasIfGenerationMatch in interface DeleteObjectRequestOrBuilderpublic long getIfGenerationMatch()
Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
optional int64 if_generation_match = 5;getIfGenerationMatch in interface DeleteObjectRequestOrBuilderpublic DeleteObjectRequest.Builder setIfGenerationMatch(long value)
Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
optional int64 if_generation_match = 5;value - The ifGenerationMatch to set.public DeleteObjectRequest.Builder clearIfGenerationMatch()
Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
optional int64 if_generation_match = 5;public boolean hasIfGenerationNotMatch()
Makes the operation conditional on whether the object's live generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.
optional int64 if_generation_not_match = 6;hasIfGenerationNotMatch in interface DeleteObjectRequestOrBuilderpublic long getIfGenerationNotMatch()
Makes the operation conditional on whether the object's live generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.
optional int64 if_generation_not_match = 6;getIfGenerationNotMatch in interface DeleteObjectRequestOrBuilderpublic DeleteObjectRequest.Builder setIfGenerationNotMatch(long value)
Makes the operation conditional on whether the object's live generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.
optional int64 if_generation_not_match = 6;value - The ifGenerationNotMatch to set.public DeleteObjectRequest.Builder clearIfGenerationNotMatch()
Makes the operation conditional on whether the object's live generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.
optional int64 if_generation_not_match = 6;public boolean hasIfMetagenerationMatch()
Makes the operation conditional on whether the object's current metageneration matches the given value.
optional int64 if_metageneration_match = 7;hasIfMetagenerationMatch in interface DeleteObjectRequestOrBuilderpublic long getIfMetagenerationMatch()
Makes the operation conditional on whether the object's current metageneration matches the given value.
optional int64 if_metageneration_match = 7;getIfMetagenerationMatch in interface DeleteObjectRequestOrBuilderpublic DeleteObjectRequest.Builder setIfMetagenerationMatch(long value)
Makes the operation conditional on whether the object's current metageneration matches the given value.
optional int64 if_metageneration_match = 7;value - The ifMetagenerationMatch to set.public DeleteObjectRequest.Builder clearIfMetagenerationMatch()
Makes the operation conditional on whether the object's current metageneration matches the given value.
optional int64 if_metageneration_match = 7;public boolean hasIfMetagenerationNotMatch()
Makes the operation conditional on whether the object's current metageneration does not match the given value.
optional int64 if_metageneration_not_match = 8;hasIfMetagenerationNotMatch in interface DeleteObjectRequestOrBuilderpublic long getIfMetagenerationNotMatch()
Makes the operation conditional on whether the object's current metageneration does not match the given value.
optional int64 if_metageneration_not_match = 8;getIfMetagenerationNotMatch in interface DeleteObjectRequestOrBuilderpublic DeleteObjectRequest.Builder setIfMetagenerationNotMatch(long value)
Makes the operation conditional on whether the object's current metageneration does not match the given value.
optional int64 if_metageneration_not_match = 8;value - The ifMetagenerationNotMatch to set.public DeleteObjectRequest.Builder clearIfMetagenerationNotMatch()
Makes the operation conditional on whether the object's current metageneration does not match the given value.
optional int64 if_metageneration_not_match = 8;public boolean hasCommonObjectRequestParams()
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 10;hasCommonObjectRequestParams in interface DeleteObjectRequestOrBuilderpublic CommonObjectRequestParams getCommonObjectRequestParams()
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 10;getCommonObjectRequestParams in interface DeleteObjectRequestOrBuilderpublic DeleteObjectRequest.Builder setCommonObjectRequestParams(CommonObjectRequestParams value)
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 10;public DeleteObjectRequest.Builder setCommonObjectRequestParams(CommonObjectRequestParams.Builder builderForValue)
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 10;public DeleteObjectRequest.Builder mergeCommonObjectRequestParams(CommonObjectRequestParams value)
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 10;public DeleteObjectRequest.Builder clearCommonObjectRequestParams()
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 10;public CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder()
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 10;public CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder()
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 10;getCommonObjectRequestParamsOrBuilder in interface DeleteObjectRequestOrBuilderpublic final DeleteObjectRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DeleteObjectRequest.Builder>public final DeleteObjectRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DeleteObjectRequest.Builder>Copyright © 2023 Google LLC. All rights reserved.