Package com.google.storage.v2
Class BidiWriteObjectRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.storage.v2.BidiWriteObjectRequest
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,BidiWriteObjectRequestOrBuilder,Serializable
public final class BidiWriteObjectRequest
extends com.google.protobuf.GeneratedMessageV3
implements BidiWriteObjectRequestOrBuilder
Request message for BidiWriteObject.Protobuf type
google.storage.v2.BidiWriteObjectRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRequest message for BidiWriteObject.static enumstatic enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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 Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanFor appendable uploads.For appendable uploads.The data to insert.The data to insert.A set of parameters common to Storage API requests concerning an object.A set of parameters common to Storage API requests concerning an object.static BidiWriteObjectRequeststatic final com.google.protobuf.Descriptors.DescriptorbooleanIf `true`, this indicates that the write is complete.booleangetFlush()Persists data written on the stream, up to and including the current message, to permanent storage.Checksums for the complete object.Checksums for the complete object.com.google.protobuf.Parser<BidiWriteObjectRequest>intbooleanFor each BidiWriteObjectRequest where state_lookup is `true` or the client closes the stream, the service will send a BidiWriteObjectResponse containing the current persisted size.For resumable uploads.com.google.protobuf.ByteStringFor resumable uploads.For non-resumable uploads.For non-resumable uploads.longRequired.booleanFor appendable uploads.booleanThe data to insert.booleanA set of parameters common to Storage API requests concerning an object.inthashCode()booleanChecksums for the complete object.booleanFor resumable uploads.booleanFor non-resumable uploads.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(BidiWriteObjectRequest prototype) protected BidiWriteObjectRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static BidiWriteObjectRequestparseDelimitedFrom(InputStream input) static BidiWriteObjectRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BidiWriteObjectRequestparseFrom(byte[] data) static BidiWriteObjectRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BidiWriteObjectRequestparseFrom(com.google.protobuf.ByteString data) static BidiWriteObjectRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BidiWriteObjectRequestparseFrom(com.google.protobuf.CodedInputStream input) static BidiWriteObjectRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BidiWriteObjectRequestparseFrom(InputStream input) static BidiWriteObjectRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BidiWriteObjectRequestparseFrom(ByteBuffer data) static BidiWriteObjectRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<BidiWriteObjectRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
UPLOAD_ID_FIELD_NUMBER
public static final int UPLOAD_ID_FIELD_NUMBER- See Also:
-
WRITE_OBJECT_SPEC_FIELD_NUMBER
public static final int WRITE_OBJECT_SPEC_FIELD_NUMBER- See Also:
-
APPEND_OBJECT_SPEC_FIELD_NUMBER
public static final int APPEND_OBJECT_SPEC_FIELD_NUMBER- See Also:
-
WRITE_OFFSET_FIELD_NUMBER
public static final int WRITE_OFFSET_FIELD_NUMBER- See Also:
-
CHECKSUMMED_DATA_FIELD_NUMBER
public static final int CHECKSUMMED_DATA_FIELD_NUMBER- See Also:
-
OBJECT_CHECKSUMS_FIELD_NUMBER
public static final int OBJECT_CHECKSUMS_FIELD_NUMBER- See Also:
-
STATE_LOOKUP_FIELD_NUMBER
public static final int STATE_LOOKUP_FIELD_NUMBER- See Also:
-
FLUSH_FIELD_NUMBER
public static final int FLUSH_FIELD_NUMBER- See Also:
-
FINISH_WRITE_FIELD_NUMBER
public static final int FINISH_WRITE_FIELD_NUMBER- See Also:
-
COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER
public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getFirstMessageCase
- Specified by:
getFirstMessageCasein interfaceBidiWriteObjectRequestOrBuilder
-
getDataCase
- Specified by:
getDataCasein interfaceBidiWriteObjectRequestOrBuilder
-
hasUploadId
public boolean hasUploadId()For resumable uploads. This should be the `upload_id` returned from a call to `StartResumableWriteResponse`.
string upload_id = 1;- Specified by:
hasUploadIdin interfaceBidiWriteObjectRequestOrBuilder- Returns:
- Whether the uploadId field is set.
-
getUploadId
For resumable uploads. This should be the `upload_id` returned from a call to `StartResumableWriteResponse`.
string upload_id = 1;- Specified by:
getUploadIdin interfaceBidiWriteObjectRequestOrBuilder- Returns:
- The uploadId.
-
getUploadIdBytes
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;- Specified by:
getUploadIdBytesin interfaceBidiWriteObjectRequestOrBuilder- Returns:
- The bytes for uploadId.
-
hasWriteObjectSpec
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;- Specified by:
hasWriteObjectSpecin interfaceBidiWriteObjectRequestOrBuilder- Returns:
- Whether the writeObjectSpec field is set.
-
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;- Specified by:
getWriteObjectSpecin interfaceBidiWriteObjectRequestOrBuilder- Returns:
- The writeObjectSpec.
-
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;- Specified by:
getWriteObjectSpecOrBuilderin interfaceBidiWriteObjectRequestOrBuilder
-
hasAppendObjectSpec
public boolean hasAppendObjectSpec()For appendable uploads. Describes the object to append to.
.google.storage.v2.AppendObjectSpec append_object_spec = 11;- Specified by:
hasAppendObjectSpecin interfaceBidiWriteObjectRequestOrBuilder- Returns:
- Whether the appendObjectSpec field is set.
-
getAppendObjectSpec
For appendable uploads. Describes the object to append to.
.google.storage.v2.AppendObjectSpec append_object_spec = 11;- Specified by:
getAppendObjectSpecin interfaceBidiWriteObjectRequestOrBuilder- Returns:
- The appendObjectSpec.
-
getAppendObjectSpecOrBuilder
For appendable uploads. Describes the object to append to.
.google.storage.v2.AppendObjectSpec append_object_spec = 11;- Specified by:
getAppendObjectSpecOrBuilderin interfaceBidiWriteObjectRequestOrBuilder
-
getWriteOffset
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 invalid value will cause an error.
int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getWriteOffsetin interfaceBidiWriteObjectRequestOrBuilder- Returns:
- The writeOffset.
-
hasChecksummedData
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;- Specified by:
hasChecksummedDatain interfaceBidiWriteObjectRequestOrBuilder- Returns:
- Whether the checksummedData field is set.
-
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;- Specified by:
getChecksummedDatain interfaceBidiWriteObjectRequestOrBuilder- Returns:
- The checksummedData.
-
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;- Specified by:
getChecksummedDataOrBuilderin interfaceBidiWriteObjectRequestOrBuilder
-
hasObjectChecksums
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 request or the last request (with finish_write set).
.google.storage.v2.ObjectChecksums object_checksums = 6;- Specified by:
hasObjectChecksumsin interfaceBidiWriteObjectRequestOrBuilder- Returns:
- Whether the objectChecksums field is set.
-
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 request or the last request (with finish_write set).
.google.storage.v2.ObjectChecksums object_checksums = 6;- Specified by:
getObjectChecksumsin interfaceBidiWriteObjectRequestOrBuilder- Returns:
- The objectChecksums.
-
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 request or the last request (with finish_write set).
.google.storage.v2.ObjectChecksums object_checksums = 6;- Specified by:
getObjectChecksumsOrBuilderin interfaceBidiWriteObjectRequestOrBuilder
-
getStateLookup
public boolean getStateLookup()For each BidiWriteObjectRequest where state_lookup is `true` or the client closes the stream, the service will send a BidiWriteObjectResponse containing the current persisted size. The persisted size sent in responses covers all the bytes the server has persisted thus far and can be used to decide what data is safe for the client to drop. Note that the object's current size reported by the BidiWriteObjectResponse may lag behind the number of bytes written by the client. This field is ignored if `finish_write` is set to true.
bool state_lookup = 7;- Specified by:
getStateLookupin interfaceBidiWriteObjectRequestOrBuilder- Returns:
- The stateLookup.
-
getFlush
public boolean getFlush()Persists data written on the stream, up to and including the current message, to permanent storage. This option should be used sparingly as it may reduce performance. Ongoing writes will periodically be persisted on the server even when `flush` is not set. This field is ignored if `finish_write` is set to true since there's no need to checkpoint or flush if this message completes the write.
bool flush = 8;- Specified by:
getFlushin interfaceBidiWriteObjectRequestOrBuilder- Returns:
- The flush.
-
getFinishWrite
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 = 9;- Specified by:
getFinishWritein interfaceBidiWriteObjectRequestOrBuilder- Returns:
- The finishWrite.
-
hasCommonObjectRequestParams
public boolean hasCommonObjectRequestParams()A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 10;- Specified by:
hasCommonObjectRequestParamsin interfaceBidiWriteObjectRequestOrBuilder- Returns:
- Whether the commonObjectRequestParams field is set.
-
getCommonObjectRequestParams
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 10;- Specified by:
getCommonObjectRequestParamsin interfaceBidiWriteObjectRequestOrBuilder- Returns:
- The commonObjectRequestParams.
-
getCommonObjectRequestParamsOrBuilder
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 10;- Specified by:
getCommonObjectRequestParamsOrBuilderin interfaceBidiWriteObjectRequestOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static BidiWriteObjectRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BidiWriteObjectRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BidiWriteObjectRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BidiWriteObjectRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BidiWriteObjectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BidiWriteObjectRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BidiWriteObjectRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static BidiWriteObjectRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static BidiWriteObjectRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static BidiWriteObjectRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BidiWriteObjectRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-