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<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, 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() |
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, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public WriteObjectRequest.FirstMessageCase getFirstMessageCase()
getFirstMessageCase
in interface WriteObjectRequestOrBuilder
public WriteObjectRequest.DataCase getDataCase()
getDataCase
in interface WriteObjectRequestOrBuilder
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 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 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 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 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 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 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 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 boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static WriteObjectRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static WriteObjectRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static WriteObjectRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static WriteObjectRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static WriteObjectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static WriteObjectRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static WriteObjectRequest parseFrom(InputStream input) throws IOException
IOException
public static WriteObjectRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static WriteObjectRequest parseDelimitedFrom(InputStream input) throws IOException
IOException
public static WriteObjectRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static WriteObjectRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static WriteObjectRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public WriteObjectRequest.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static WriteObjectRequest.Builder newBuilder()
public static WriteObjectRequest.Builder newBuilder(WriteObjectRequest prototype)
public WriteObjectRequest.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected WriteObjectRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static WriteObjectRequest getDefaultInstance()
public static com.google.protobuf.Parser<WriteObjectRequest> parser()
public com.google.protobuf.Parser<WriteObjectRequest> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public WriteObjectRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2023 Google LLC. All rights reserved.