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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<DeleteObjectRequest.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<DeleteObjectRequest.Builder>
public DeleteObjectRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public DeleteObjectRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public DeleteObjectRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public DeleteObjectRequest.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<DeleteObjectRequest.Builder>
IOException
public 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 DeleteObjectRequestOrBuilder
public 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 DeleteObjectRequestOrBuilder
public 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 DeleteObjectRequestOrBuilder
public 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 DeleteObjectRequestOrBuilder
public 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 DeleteObjectRequestOrBuilder
public 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 DeleteObjectRequestOrBuilder
public 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 DeleteObjectRequestOrBuilder
public 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 DeleteObjectRequestOrBuilder
public 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 DeleteObjectRequestOrBuilder
public 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 DeleteObjectRequestOrBuilder
public 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 DeleteObjectRequestOrBuilder
public 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 DeleteObjectRequestOrBuilder
public 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 DeleteObjectRequestOrBuilder
public 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 DeleteObjectRequestOrBuilder
public 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 DeleteObjectRequestOrBuilder
public 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 DeleteObjectRequestOrBuilder
public final DeleteObjectRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<DeleteObjectRequest.Builder>
Copyright © 2023 Google LLC. All rights reserved.