Package com.google.storage.v2
Class WriteObjectResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WriteObjectResponse.Builder>
com.google.storage.v2.WriteObjectResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,WriteObjectResponseOrBuilder,Cloneable
- Enclosing class:
- WriteObjectResponse
public static final class WriteObjectResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<WriteObjectResponse.Builder>
implements WriteObjectResponseOrBuilder
Response message for [WriteObject][google.storage.v2.Storage.WriteObject].Protobuf type
google.storage.v2.WriteObjectResponse-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()If persisted_size is set, contains checksums of persisted data.The total number of bytes that have been processed for the given object from all `WriteObject` calls.A resource containing the metadata for the uploaded object.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIf persisted_size is set, contains checksums of persisted data.If persisted_size is set, contains checksums of persisted data.If persisted_size is set, contains checksums of persisted data.longThe total number of bytes that have been processed for the given object from all `WriteObject` calls.A resource containing the metadata for the uploaded object.A resource containing the metadata for the uploaded object.A resource containing the metadata for the uploaded object.booleanIf persisted_size is set, contains checksums of persisted data.booleanThe total number of bytes that have been processed for the given object from all `WriteObject` calls.booleanA resource containing the metadata for the uploaded object.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(WriteObjectResponse other) If persisted_size is set, contains checksums of persisted data.mergeResource(Object value) A resource containing the metadata for the uploaded object.If persisted_size is set, contains checksums of persisted data.setPersistedDataChecksums(ObjectChecksums.Builder builderForValue) If persisted_size is set, contains checksums of persisted data.setPersistedSize(long value) The total number of bytes that have been processed for the given object from all `WriteObject` calls.setResource(Object value) A resource containing the metadata for the uploaded object.setResource(Object.Builder builderForValue) A resource containing the metadata for the uploaded object.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<WriteObjectResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<WriteObjectResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<WriteObjectResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WriteObjectResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<WriteObjectResponse.Builder>
-
mergeFrom
public WriteObjectResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WriteObjectResponse.Builder>- Throws:
IOException
-
getWriteStatusCase
- Specified by:
getWriteStatusCasein interfaceWriteObjectResponseOrBuilder
-
clearWriteStatus
-
hasPersistedSize
public boolean hasPersistedSize()The total number of bytes that have been processed for the given object from all `WriteObject` calls. Only set if the upload has not finalized.
int64 persisted_size = 1;- Specified by:
hasPersistedSizein interfaceWriteObjectResponseOrBuilder- Returns:
- Whether the persistedSize field is set.
-
getPersistedSize
public long getPersistedSize()The total number of bytes that have been processed for the given object from all `WriteObject` calls. Only set if the upload has not finalized.
int64 persisted_size = 1;- Specified by:
getPersistedSizein interfaceWriteObjectResponseOrBuilder- Returns:
- The persistedSize.
-
setPersistedSize
The total number of bytes that have been processed for the given object from all `WriteObject` calls. Only set if the upload has not finalized.
int64 persisted_size = 1;- Parameters:
value- The persistedSize to set.- Returns:
- This builder for chaining.
-
clearPersistedSize
The total number of bytes that have been processed for the given object from all `WriteObject` calls. Only set if the upload has not finalized.
int64 persisted_size = 1;- Returns:
- This builder for chaining.
-
hasResource
public boolean hasResource()A resource containing the metadata for the uploaded object. Only set if the upload has finalized.
.google.storage.v2.Object resource = 2;- Specified by:
hasResourcein interfaceWriteObjectResponseOrBuilder- Returns:
- Whether the resource field is set.
-
getResource
A resource containing the metadata for the uploaded object. Only set if the upload has finalized.
.google.storage.v2.Object resource = 2;- Specified by:
getResourcein interfaceWriteObjectResponseOrBuilder- Returns:
- The resource.
-
setResource
A resource containing the metadata for the uploaded object. Only set if the upload has finalized.
.google.storage.v2.Object resource = 2; -
setResource
A resource containing the metadata for the uploaded object. Only set if the upload has finalized.
.google.storage.v2.Object resource = 2; -
mergeResource
A resource containing the metadata for the uploaded object. Only set if the upload has finalized.
.google.storage.v2.Object resource = 2; -
clearResource
A resource containing the metadata for the uploaded object. Only set if the upload has finalized.
.google.storage.v2.Object resource = 2; -
getResourceBuilder
A resource containing the metadata for the uploaded object. Only set if the upload has finalized.
.google.storage.v2.Object resource = 2; -
getResourceOrBuilder
A resource containing the metadata for the uploaded object. Only set if the upload has finalized.
.google.storage.v2.Object resource = 2;- Specified by:
getResourceOrBuilderin interfaceWriteObjectResponseOrBuilder
-
hasPersistedDataChecksums
public boolean hasPersistedDataChecksums()If persisted_size is set, contains checksums of persisted data.
.google.storage.v2.ObjectChecksums persisted_data_checksums = 3;- Specified by:
hasPersistedDataChecksumsin interfaceWriteObjectResponseOrBuilder- Returns:
- Whether the persistedDataChecksums field is set.
-
getPersistedDataChecksums
If persisted_size is set, contains checksums of persisted data.
.google.storage.v2.ObjectChecksums persisted_data_checksums = 3;- Specified by:
getPersistedDataChecksumsin interfaceWriteObjectResponseOrBuilder- Returns:
- The persistedDataChecksums.
-
setPersistedDataChecksums
If persisted_size is set, contains checksums of persisted data.
.google.storage.v2.ObjectChecksums persisted_data_checksums = 3; -
setPersistedDataChecksums
public WriteObjectResponse.Builder setPersistedDataChecksums(ObjectChecksums.Builder builderForValue) If persisted_size is set, contains checksums of persisted data.
.google.storage.v2.ObjectChecksums persisted_data_checksums = 3; -
mergePersistedDataChecksums
If persisted_size is set, contains checksums of persisted data.
.google.storage.v2.ObjectChecksums persisted_data_checksums = 3; -
clearPersistedDataChecksums
If persisted_size is set, contains checksums of persisted data.
.google.storage.v2.ObjectChecksums persisted_data_checksums = 3; -
getPersistedDataChecksumsBuilder
If persisted_size is set, contains checksums of persisted data.
.google.storage.v2.ObjectChecksums persisted_data_checksums = 3; -
getPersistedDataChecksumsOrBuilder
If persisted_size is set, contains checksums of persisted data.
.google.storage.v2.ObjectChecksums persisted_data_checksums = 3;- Specified by:
getPersistedDataChecksumsOrBuilderin interfaceWriteObjectResponseOrBuilder
-