public static final class WriteObjectRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectRequest.Builder> implements WriteObjectRequestOrBuilder
Request message for WriteObject.Protobuf type
google.storage.v2.WriteObjectRequestgetAllFields, 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<WriteObjectRequest.Builder>public WriteObjectRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectRequest.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<WriteObjectRequest.Builder>public WriteObjectRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic WriteObjectRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic WriteObjectRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic WriteObjectRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectRequest.Builder>public WriteObjectRequest.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<WriteObjectRequest.Builder>public WriteObjectRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectRequest.Builder>public WriteObjectRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectRequest.Builder>public WriteObjectRequest.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<WriteObjectRequest.Builder>public WriteObjectRequest.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<WriteObjectRequest.Builder>public WriteObjectRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<WriteObjectRequest.Builder>public WriteObjectRequest.Builder mergeFrom(WriteObjectRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectRequest.Builder>public WriteObjectRequest.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<WriteObjectRequest.Builder>IOExceptionpublic WriteObjectRequest.FirstMessageCase getFirstMessageCase()
getFirstMessageCase in interface WriteObjectRequestOrBuilderpublic WriteObjectRequest.Builder clearFirstMessage()
public WriteObjectRequest.DataCase getDataCase()
getDataCase in interface WriteObjectRequestOrBuilderpublic WriteObjectRequest.Builder clearData()
public boolean hasUploadId()
For resumable uploads. This should be the `upload_id` returned from a call to `StartResumableWriteResponse`.
string upload_id = 1;hasUploadId in interface WriteObjectRequestOrBuilderpublic String getUploadId()
For resumable uploads. This should be the `upload_id` returned from a call to `StartResumableWriteResponse`.
string upload_id = 1;getUploadId in interface WriteObjectRequestOrBuilderpublic com.google.protobuf.ByteString getUploadIdBytes()
For resumable uploads. This should be the `upload_id` returned from a call to `StartResumableWriteResponse`.
string upload_id = 1;getUploadIdBytes in interface WriteObjectRequestOrBuilderpublic WriteObjectRequest.Builder setUploadId(String value)
For resumable uploads. This should be the `upload_id` returned from a call to `StartResumableWriteResponse`.
string upload_id = 1;value - The uploadId to set.public WriteObjectRequest.Builder clearUploadId()
For resumable uploads. This should be the `upload_id` returned from a call to `StartResumableWriteResponse`.
string upload_id = 1;public WriteObjectRequest.Builder setUploadIdBytes(com.google.protobuf.ByteString value)
For resumable uploads. This should be the `upload_id` returned from a call to `StartResumableWriteResponse`.
string upload_id = 1;value - The bytes for uploadId to set.public boolean hasWriteObjectSpec()
For non-resumable uploads. Describes the overall upload, including the destination bucket and object name, preconditions, etc.
.google.storage.v2.WriteObjectSpec write_object_spec = 2;hasWriteObjectSpec in interface WriteObjectRequestOrBuilderpublic WriteObjectSpec getWriteObjectSpec()
For non-resumable uploads. Describes the overall upload, including the destination bucket and object name, preconditions, etc.
.google.storage.v2.WriteObjectSpec write_object_spec = 2;getWriteObjectSpec in interface WriteObjectRequestOrBuilderpublic WriteObjectRequest.Builder setWriteObjectSpec(WriteObjectSpec value)
For non-resumable uploads. Describes the overall upload, including the destination bucket and object name, preconditions, etc.
.google.storage.v2.WriteObjectSpec write_object_spec = 2;public WriteObjectRequest.Builder setWriteObjectSpec(WriteObjectSpec.Builder builderForValue)
For non-resumable uploads. Describes the overall upload, including the destination bucket and object name, preconditions, etc.
.google.storage.v2.WriteObjectSpec write_object_spec = 2;public WriteObjectRequest.Builder mergeWriteObjectSpec(WriteObjectSpec value)
For non-resumable uploads. Describes the overall upload, including the destination bucket and object name, preconditions, etc.
.google.storage.v2.WriteObjectSpec write_object_spec = 2;public WriteObjectRequest.Builder clearWriteObjectSpec()
For non-resumable uploads. Describes the overall upload, including the destination bucket and object name, preconditions, etc.
.google.storage.v2.WriteObjectSpec write_object_spec = 2;public WriteObjectSpec.Builder getWriteObjectSpecBuilder()
For non-resumable uploads. Describes the overall upload, including the destination bucket and object name, preconditions, etc.
.google.storage.v2.WriteObjectSpec write_object_spec = 2;public WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilder()
For non-resumable uploads. Describes the overall upload, including the destination bucket and object name, preconditions, etc.
.google.storage.v2.WriteObjectSpec write_object_spec = 2;getWriteObjectSpecOrBuilder in interface WriteObjectRequestOrBuilderpublic long getWriteOffset()
Required. The offset from the beginning of the object at which the data should be written. In the first `WriteObjectRequest` of a `WriteObject()` action, it indicates the initial offset for the `Write()` call. The value **must** be equal to the `persisted_size` that a call to `QueryWriteStatus()` would return (0 if this is the first write to the object). On subsequent calls, this value **must** be no larger than the sum of the first `write_offset` and the sizes of all `data` chunks sent previously on this stream. An incorrect value will cause an error.
int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED];getWriteOffset in interface WriteObjectRequestOrBuilderpublic WriteObjectRequest.Builder setWriteOffset(long value)
Required. The offset from the beginning of the object at which the data should be written. In the first `WriteObjectRequest` of a `WriteObject()` action, it indicates the initial offset for the `Write()` call. The value **must** be equal to the `persisted_size` that a call to `QueryWriteStatus()` would return (0 if this is the first write to the object). On subsequent calls, this value **must** be no larger than the sum of the first `write_offset` and the sizes of all `data` chunks sent previously on this stream. An incorrect value will cause an error.
int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED];value - The writeOffset to set.public WriteObjectRequest.Builder clearWriteOffset()
Required. The offset from the beginning of the object at which the data should be written. In the first `WriteObjectRequest` of a `WriteObject()` action, it indicates the initial offset for the `Write()` call. The value **must** be equal to the `persisted_size` that a call to `QueryWriteStatus()` would return (0 if this is the first write to the object). On subsequent calls, this value **must** be no larger than the sum of the first `write_offset` and the sizes of all `data` chunks sent previously on this stream. An incorrect value will cause an error.
int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED];public boolean hasChecksummedData()
The data to insert. If a crc32c checksum is provided that doesn't match the checksum computed by the service, the request will fail.
.google.storage.v2.ChecksummedData checksummed_data = 4;hasChecksummedData in interface WriteObjectRequestOrBuilderpublic ChecksummedData getChecksummedData()
The data to insert. If a crc32c checksum is provided that doesn't match the checksum computed by the service, the request will fail.
.google.storage.v2.ChecksummedData checksummed_data = 4;getChecksummedData in interface WriteObjectRequestOrBuilderpublic WriteObjectRequest.Builder setChecksummedData(ChecksummedData value)
The data to insert. If a crc32c checksum is provided that doesn't match the checksum computed by the service, the request will fail.
.google.storage.v2.ChecksummedData checksummed_data = 4;public WriteObjectRequest.Builder setChecksummedData(ChecksummedData.Builder builderForValue)
The data to insert. If a crc32c checksum is provided that doesn't match the checksum computed by the service, the request will fail.
.google.storage.v2.ChecksummedData checksummed_data = 4;public WriteObjectRequest.Builder mergeChecksummedData(ChecksummedData value)
The data to insert. If a crc32c checksum is provided that doesn't match the checksum computed by the service, the request will fail.
.google.storage.v2.ChecksummedData checksummed_data = 4;public WriteObjectRequest.Builder clearChecksummedData()
The data to insert. If a crc32c checksum is provided that doesn't match the checksum computed by the service, the request will fail.
.google.storage.v2.ChecksummedData checksummed_data = 4;public ChecksummedData.Builder getChecksummedDataBuilder()
The data to insert. If a crc32c checksum is provided that doesn't match the checksum computed by the service, the request will fail.
.google.storage.v2.ChecksummedData checksummed_data = 4;public ChecksummedDataOrBuilder getChecksummedDataOrBuilder()
The data to insert. If a crc32c checksum is provided that doesn't match the checksum computed by the service, the request will fail.
.google.storage.v2.ChecksummedData checksummed_data = 4;getChecksummedDataOrBuilder in interface WriteObjectRequestOrBuilderpublic boolean hasObjectChecksums()
Checksums for the complete object. If the checksums computed by the service don't match the specified checksums the call will fail. May only be provided in the first or last request (either with first_message, or finish_write set).
.google.storage.v2.ObjectChecksums object_checksums = 6;hasObjectChecksums in interface WriteObjectRequestOrBuilderpublic ObjectChecksums getObjectChecksums()
Checksums for the complete object. If the checksums computed by the service don't match the specified checksums the call will fail. May only be provided in the first or last request (either with first_message, or finish_write set).
.google.storage.v2.ObjectChecksums object_checksums = 6;getObjectChecksums in interface WriteObjectRequestOrBuilderpublic WriteObjectRequest.Builder setObjectChecksums(ObjectChecksums value)
Checksums for the complete object. If the checksums computed by the service don't match the specified checksums the call will fail. May only be provided in the first or last request (either with first_message, or finish_write set).
.google.storage.v2.ObjectChecksums object_checksums = 6;public WriteObjectRequest.Builder setObjectChecksums(ObjectChecksums.Builder builderForValue)
Checksums for the complete object. If the checksums computed by the service don't match the specified checksums the call will fail. May only be provided in the first or last request (either with first_message, or finish_write set).
.google.storage.v2.ObjectChecksums object_checksums = 6;public WriteObjectRequest.Builder mergeObjectChecksums(ObjectChecksums value)
Checksums for the complete object. If the checksums computed by the service don't match the specified checksums the call will fail. May only be provided in the first or last request (either with first_message, or finish_write set).
.google.storage.v2.ObjectChecksums object_checksums = 6;public WriteObjectRequest.Builder clearObjectChecksums()
Checksums for the complete object. If the checksums computed by the service don't match the specified checksums the call will fail. May only be provided in the first or last request (either with first_message, or finish_write set).
.google.storage.v2.ObjectChecksums object_checksums = 6;public ObjectChecksums.Builder getObjectChecksumsBuilder()
Checksums for the complete object. If the checksums computed by the service don't match the specified checksums the call will fail. May only be provided in the first or last request (either with first_message, or finish_write set).
.google.storage.v2.ObjectChecksums object_checksums = 6;public ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder()
Checksums for the complete object. If the checksums computed by the service don't match the specified checksums the call will fail. May only be provided in the first or last request (either with first_message, or finish_write set).
.google.storage.v2.ObjectChecksums object_checksums = 6;getObjectChecksumsOrBuilder in interface WriteObjectRequestOrBuilderpublic boolean getFinishWrite()
If `true`, this indicates that the write is complete. Sending any `WriteObjectRequest`s subsequent to one in which `finish_write` is `true` will cause an error. For a non-resumable write (where the upload_id was not set in the first message), it is an error not to set this field in the final message of the stream.
bool finish_write = 7;getFinishWrite in interface WriteObjectRequestOrBuilderpublic WriteObjectRequest.Builder setFinishWrite(boolean value)
If `true`, this indicates that the write is complete. Sending any `WriteObjectRequest`s subsequent to one in which `finish_write` is `true` will cause an error. For a non-resumable write (where the upload_id was not set in the first message), it is an error not to set this field in the final message of the stream.
bool finish_write = 7;value - The finishWrite to set.public WriteObjectRequest.Builder clearFinishWrite()
If `true`, this indicates that the write is complete. Sending any `WriteObjectRequest`s subsequent to one in which `finish_write` is `true` will cause an error. For a non-resumable write (where the upload_id was not set in the first message), it is an error not to set this field in the final message of the stream.
bool finish_write = 7;public boolean hasCommonObjectRequestParams()
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 8;hasCommonObjectRequestParams in interface WriteObjectRequestOrBuilderpublic CommonObjectRequestParams getCommonObjectRequestParams()
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 8;getCommonObjectRequestParams in interface WriteObjectRequestOrBuilderpublic WriteObjectRequest.Builder setCommonObjectRequestParams(CommonObjectRequestParams value)
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 8;public WriteObjectRequest.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 = 8;public WriteObjectRequest.Builder mergeCommonObjectRequestParams(CommonObjectRequestParams value)
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 8;public WriteObjectRequest.Builder clearCommonObjectRequestParams()
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 8;public CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder()
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 8;public CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder()
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 8;getCommonObjectRequestParamsOrBuilder in interface WriteObjectRequestOrBuilderpublic final WriteObjectRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectRequest.Builder>public final WriteObjectRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectRequest.Builder>Copyright © 2023 Google LLC. All rights reserved.