public final class WriteObjectRequest extends com.google.protobuf.GeneratedMessageV3 implements WriteObjectRequestOrBuilder
Request message for WriteObject.Protobuf type
google.storage.v2.WriteObjectRequest| Modifier and Type | Class and Description |
|---|---|
static class |
WriteObjectRequest.Builder
Request message for WriteObject.
|
static class |
WriteObjectRequest.DataCase |
static class |
WriteObjectRequest.FirstMessageCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CHECKSUMMED_DATA_FIELD_NUMBER |
static int |
COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER |
static int |
FINISH_WRITE_FIELD_NUMBER |
static int |
OBJECT_CHECKSUMS_FIELD_NUMBER |
static int |
UPLOAD_ID_FIELD_NUMBER |
static int |
WRITE_OBJECT_SPEC_FIELD_NUMBER |
static int |
WRITE_OFFSET_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ChecksummedData |
getChecksummedData()
The data to insert.
|
ChecksummedDataOrBuilder |
getChecksummedDataOrBuilder()
The data to insert.
|
CommonObjectRequestParams |
getCommonObjectRequestParams()
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.
|
WriteObjectRequest.DataCase |
getDataCase() |
static WriteObjectRequest |
getDefaultInstance() |
WriteObjectRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getFinishWrite()
If `true`, this indicates that the write is complete.
|
WriteObjectRequest.FirstMessageCase |
getFirstMessageCase() |
ObjectChecksums |
getObjectChecksums()
Checksums for the complete object.
|
ObjectChecksumsOrBuilder |
getObjectChecksumsOrBuilder()
Checksums for the complete object.
|
com.google.protobuf.Parser<WriteObjectRequest> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getUploadId()
For resumable uploads.
|
com.google.protobuf.ByteString |
getUploadIdBytes()
For resumable uploads.
|
WriteObjectSpec |
getWriteObjectSpec()
For non-resumable uploads.
|
WriteObjectSpecOrBuilder |
getWriteObjectSpecOrBuilder()
For non-resumable uploads.
|
long |
getWriteOffset()
Required.
|
boolean |
hasChecksummedData()
The data to insert.
|
boolean |
hasCommonObjectRequestParams()
A set of parameters common to Storage API requests concerning an object.
|
int |
hashCode() |
boolean |
hasObjectChecksums()
Checksums for the complete object.
|
boolean |
hasUploadId()
For resumable uploads.
|
boolean |
hasWriteObjectSpec()
For non-resumable uploads.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static WriteObjectRequest.Builder |
newBuilder() |
static WriteObjectRequest.Builder |
newBuilder(WriteObjectRequest prototype) |
WriteObjectRequest.Builder |
newBuilderForType() |
protected WriteObjectRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static WriteObjectRequest |
parseDelimitedFrom(InputStream input) |
static WriteObjectRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WriteObjectRequest |
parseFrom(byte[] data) |
static WriteObjectRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WriteObjectRequest |
parseFrom(ByteBuffer data) |
static WriteObjectRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WriteObjectRequest |
parseFrom(com.google.protobuf.ByteString data) |
static WriteObjectRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WriteObjectRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static WriteObjectRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WriteObjectRequest |
parseFrom(InputStream input) |
static WriteObjectRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<WriteObjectRequest> |
parser() |
WriteObjectRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int UPLOAD_ID_FIELD_NUMBER
public static final int WRITE_OBJECT_SPEC_FIELD_NUMBER
public static final int WRITE_OFFSET_FIELD_NUMBER
public static final int CHECKSUMMED_DATA_FIELD_NUMBER
public static final int OBJECT_CHECKSUMS_FIELD_NUMBER
public static final int FINISH_WRITE_FIELD_NUMBER
public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public WriteObjectRequest.FirstMessageCase getFirstMessageCase()
getFirstMessageCase in interface WriteObjectRequestOrBuilderpublic WriteObjectRequest.DataCase getDataCase()
getDataCase in interface WriteObjectRequestOrBuilderpublic 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 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 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 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 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 specifified 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 specifified 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 ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder()
Checksums for the complete object. If the checksums computed by the service don't match the specifified 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 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 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 boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static WriteObjectRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WriteObjectRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WriteObjectRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WriteObjectRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WriteObjectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WriteObjectRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WriteObjectRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static WriteObjectRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static WriteObjectRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static WriteObjectRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static WriteObjectRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static WriteObjectRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic WriteObjectRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static WriteObjectRequest.Builder newBuilder()
public static WriteObjectRequest.Builder newBuilder(WriteObjectRequest prototype)
public WriteObjectRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected WriteObjectRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static WriteObjectRequest getDefaultInstance()
public static com.google.protobuf.Parser<WriteObjectRequest> parser()
public com.google.protobuf.Parser<WriteObjectRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public WriteObjectRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.