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.WriteObjectRequest
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<WriteObjectRequest.Builder>
public WriteObjectRequest.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<WriteObjectRequest.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<WriteObjectRequest.Builder>
public WriteObjectRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public WriteObjectRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public WriteObjectRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public WriteObjectRequest.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<WriteObjectRequest.Builder>
public WriteObjectRequest.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<WriteObjectRequest.Builder>
public WriteObjectRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<WriteObjectRequest.Builder>
IOException
public WriteObjectRequest.FirstMessageCase getFirstMessageCase()
getFirstMessageCase
in interface WriteObjectRequestOrBuilder
public WriteObjectRequest.Builder clearFirstMessage()
public WriteObjectRequest.DataCase getDataCase()
getDataCase
in interface WriteObjectRequestOrBuilder
public 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 WriteObjectRequestOrBuilder
public String getUploadId()
For resumable uploads. This should be the `upload_id` returned from a call to `StartResumableWriteResponse`.
string upload_id = 1;
getUploadId
in interface WriteObjectRequestOrBuilder
public 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 WriteObjectRequestOrBuilder
public 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 WriteObjectRequestOrBuilder
public 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 WriteObjectRequestOrBuilder
public 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 WriteObjectRequestOrBuilder
public 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 WriteObjectRequestOrBuilder
public 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 WriteObjectRequestOrBuilder
public 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 WriteObjectRequestOrBuilder
public 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 WriteObjectRequestOrBuilder
public 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 WriteObjectRequestOrBuilder
public 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 WriteObjectRequestOrBuilder
public 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 WriteObjectRequestOrBuilder
public 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 WriteObjectRequestOrBuilder
public 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 WriteObjectRequestOrBuilder
public 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 WriteObjectRequestOrBuilder
public 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 WriteObjectRequestOrBuilder
public final WriteObjectRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectRequest.Builder>
Copyright © 2023 Google LLC. All rights reserved.