public static final class WriteObjectSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectSpec.Builder> implements WriteObjectSpecOrBuilder
Describes an attempt to insert an object, possibly over multiple requests.Protobuf type
google.storage.v2.WriteObjectSpec| Modifier and Type | Method and Description |
|---|---|
WriteObjectSpec.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
WriteObjectSpec |
build() |
WriteObjectSpec |
buildPartial() |
WriteObjectSpec.Builder |
clear() |
WriteObjectSpec.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
WriteObjectSpec.Builder |
clearIfGenerationMatch()
Makes the operation conditional on whether the object's current
generation matches the given value.
|
WriteObjectSpec.Builder |
clearIfGenerationNotMatch()
Makes the operation conditional on whether the object's live
generation does not match the given value.
|
WriteObjectSpec.Builder |
clearIfMetagenerationMatch()
Makes the operation conditional on whether the object's current
metageneration matches the given value.
|
WriteObjectSpec.Builder |
clearIfMetagenerationNotMatch()
Makes the operation conditional on whether the object's current
metageneration does not match the given value.
|
WriteObjectSpec.Builder |
clearObjectSize()
The expected final object size being uploaded.
|
WriteObjectSpec.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
WriteObjectSpec.Builder |
clearPredefinedAcl()
Apply a predefined set of access controls to this object.
|
WriteObjectSpec.Builder |
clearResource()
Required.
|
WriteObjectSpec.Builder |
clone() |
WriteObjectSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getIfGenerationMatch()
Makes the operation conditional on whether the object's current
generation matches the given value.
|
long |
getIfGenerationNotMatch()
Makes the operation conditional on whether the object's live
generation does not match the given value.
|
long |
getIfMetagenerationMatch()
Makes the operation conditional on whether the object's current
metageneration matches the given value.
|
long |
getIfMetagenerationNotMatch()
Makes the operation conditional on whether the object's current
metageneration does not match the given value.
|
long |
getObjectSize()
The expected final object size being uploaded.
|
String |
getPredefinedAcl()
Apply a predefined set of access controls to this object.
|
com.google.protobuf.ByteString |
getPredefinedAclBytes()
Apply a predefined set of access controls to this object.
|
Object |
getResource()
Required.
|
Object.Builder |
getResourceBuilder()
Required.
|
ObjectOrBuilder |
getResourceOrBuilder()
Required.
|
boolean |
hasIfGenerationMatch()
Makes the operation conditional on whether the object's current
generation matches the given value.
|
boolean |
hasIfGenerationNotMatch()
Makes the operation conditional on whether the object's live
generation does not match the given value.
|
boolean |
hasIfMetagenerationMatch()
Makes the operation conditional on whether the object's current
metageneration matches the given value.
|
boolean |
hasIfMetagenerationNotMatch()
Makes the operation conditional on whether the object's current
metageneration does not match the given value.
|
boolean |
hasObjectSize()
The expected final object size being uploaded.
|
boolean |
hasResource()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
WriteObjectSpec.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
WriteObjectSpec.Builder |
mergeFrom(com.google.protobuf.Message other) |
WriteObjectSpec.Builder |
mergeFrom(WriteObjectSpec other) |
WriteObjectSpec.Builder |
mergeResource(Object value)
Required.
|
WriteObjectSpec.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
WriteObjectSpec.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
WriteObjectSpec.Builder |
setIfGenerationMatch(long value)
Makes the operation conditional on whether the object's current
generation matches the given value.
|
WriteObjectSpec.Builder |
setIfGenerationNotMatch(long value)
Makes the operation conditional on whether the object's live
generation does not match the given value.
|
WriteObjectSpec.Builder |
setIfMetagenerationMatch(long value)
Makes the operation conditional on whether the object's current
metageneration matches the given value.
|
WriteObjectSpec.Builder |
setIfMetagenerationNotMatch(long value)
Makes the operation conditional on whether the object's current
metageneration does not match the given value.
|
WriteObjectSpec.Builder |
setObjectSize(long value)
The expected final object size being uploaded.
|
WriteObjectSpec.Builder |
setPredefinedAcl(String value)
Apply a predefined set of access controls to this object.
|
WriteObjectSpec.Builder |
setPredefinedAclBytes(com.google.protobuf.ByteString value)
Apply a predefined set of access controls to this object.
|
WriteObjectSpec.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
WriteObjectSpec.Builder |
setResource(Object.Builder builderForValue)
Required.
|
WriteObjectSpec.Builder |
setResource(Object value)
Required.
|
WriteObjectSpec.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectSpec.Builder>public WriteObjectSpec.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectSpec.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectSpec.Builder>public WriteObjectSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic WriteObjectSpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic WriteObjectSpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic WriteObjectSpec.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectSpec.Builder>public WriteObjectSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectSpec.Builder>public WriteObjectSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectSpec.Builder>public WriteObjectSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectSpec.Builder>public WriteObjectSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectSpec.Builder>public WriteObjectSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectSpec.Builder>public WriteObjectSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<WriteObjectSpec.Builder>public WriteObjectSpec.Builder mergeFrom(WriteObjectSpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectSpec.Builder>public WriteObjectSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<WriteObjectSpec.Builder>IOExceptionpublic boolean hasResource()
Required. Destination object, including its name and its metadata.
.google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED];
hasResource in interface WriteObjectSpecOrBuilderpublic Object getResource()
Required. Destination object, including its name and its metadata.
.google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED];
getResource in interface WriteObjectSpecOrBuilderpublic WriteObjectSpec.Builder setResource(Object value)
Required. Destination object, including its name and its metadata.
.google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED];
public WriteObjectSpec.Builder setResource(Object.Builder builderForValue)
Required. Destination object, including its name and its metadata.
.google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED];
public WriteObjectSpec.Builder mergeResource(Object value)
Required. Destination object, including its name and its metadata.
.google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED];
public WriteObjectSpec.Builder clearResource()
Required. Destination object, including its name and its metadata.
.google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED];
public Object.Builder getResourceBuilder()
Required. Destination object, including its name and its metadata.
.google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED];
public ObjectOrBuilder getResourceOrBuilder()
Required. Destination object, including its name and its metadata.
.google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED];
getResourceOrBuilder in interface WriteObjectSpecOrBuilderpublic String getPredefinedAcl()
Apply a predefined set of access controls to this object. Valid values are "authenticatedRead", "bucketOwnerFullControl", "bucketOwnerRead", "private", "projectPrivate", or "publicRead".
string predefined_acl = 7;getPredefinedAcl in interface WriteObjectSpecOrBuilderpublic com.google.protobuf.ByteString getPredefinedAclBytes()
Apply a predefined set of access controls to this object. Valid values are "authenticatedRead", "bucketOwnerFullControl", "bucketOwnerRead", "private", "projectPrivate", or "publicRead".
string predefined_acl = 7;getPredefinedAclBytes in interface WriteObjectSpecOrBuilderpublic WriteObjectSpec.Builder setPredefinedAcl(String value)
Apply a predefined set of access controls to this object. Valid values are "authenticatedRead", "bucketOwnerFullControl", "bucketOwnerRead", "private", "projectPrivate", or "publicRead".
string predefined_acl = 7;value - The predefinedAcl to set.public WriteObjectSpec.Builder clearPredefinedAcl()
Apply a predefined set of access controls to this object. Valid values are "authenticatedRead", "bucketOwnerFullControl", "bucketOwnerRead", "private", "projectPrivate", or "publicRead".
string predefined_acl = 7;public WriteObjectSpec.Builder setPredefinedAclBytes(com.google.protobuf.ByteString value)
Apply a predefined set of access controls to this object. Valid values are "authenticatedRead", "bucketOwnerFullControl", "bucketOwnerRead", "private", "projectPrivate", or "publicRead".
string predefined_acl = 7;value - The bytes for predefinedAcl to set.public boolean hasIfGenerationMatch()
Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
optional int64 if_generation_match = 3;hasIfGenerationMatch in interface WriteObjectSpecOrBuilderpublic long getIfGenerationMatch()
Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
optional int64 if_generation_match = 3;getIfGenerationMatch in interface WriteObjectSpecOrBuilderpublic WriteObjectSpec.Builder setIfGenerationMatch(long value)
Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
optional int64 if_generation_match = 3;value - The ifGenerationMatch to set.public WriteObjectSpec.Builder clearIfGenerationMatch()
Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
optional int64 if_generation_match = 3;public boolean hasIfGenerationNotMatch()
Makes the operation conditional on whether the object's live generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.
optional int64 if_generation_not_match = 4;hasIfGenerationNotMatch in interface WriteObjectSpecOrBuilderpublic long getIfGenerationNotMatch()
Makes the operation conditional on whether the object's live generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.
optional int64 if_generation_not_match = 4;getIfGenerationNotMatch in interface WriteObjectSpecOrBuilderpublic WriteObjectSpec.Builder setIfGenerationNotMatch(long value)
Makes the operation conditional on whether the object's live generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.
optional int64 if_generation_not_match = 4;value - The ifGenerationNotMatch to set.public WriteObjectSpec.Builder clearIfGenerationNotMatch()
Makes the operation conditional on whether the object's live generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.
optional int64 if_generation_not_match = 4;public boolean hasIfMetagenerationMatch()
Makes the operation conditional on whether the object's current metageneration matches the given value.
optional int64 if_metageneration_match = 5;hasIfMetagenerationMatch in interface WriteObjectSpecOrBuilderpublic long getIfMetagenerationMatch()
Makes the operation conditional on whether the object's current metageneration matches the given value.
optional int64 if_metageneration_match = 5;getIfMetagenerationMatch in interface WriteObjectSpecOrBuilderpublic WriteObjectSpec.Builder setIfMetagenerationMatch(long value)
Makes the operation conditional on whether the object's current metageneration matches the given value.
optional int64 if_metageneration_match = 5;value - The ifMetagenerationMatch to set.public WriteObjectSpec.Builder clearIfMetagenerationMatch()
Makes the operation conditional on whether the object's current metageneration matches the given value.
optional int64 if_metageneration_match = 5;public boolean hasIfMetagenerationNotMatch()
Makes the operation conditional on whether the object's current metageneration does not match the given value.
optional int64 if_metageneration_not_match = 6;hasIfMetagenerationNotMatch in interface WriteObjectSpecOrBuilderpublic long getIfMetagenerationNotMatch()
Makes the operation conditional on whether the object's current metageneration does not match the given value.
optional int64 if_metageneration_not_match = 6;getIfMetagenerationNotMatch in interface WriteObjectSpecOrBuilderpublic WriteObjectSpec.Builder setIfMetagenerationNotMatch(long value)
Makes the operation conditional on whether the object's current metageneration does not match the given value.
optional int64 if_metageneration_not_match = 6;value - The ifMetagenerationNotMatch to set.public WriteObjectSpec.Builder clearIfMetagenerationNotMatch()
Makes the operation conditional on whether the object's current metageneration does not match the given value.
optional int64 if_metageneration_not_match = 6;public boolean hasObjectSize()
The expected final object size being uploaded. If this value is set, closing the stream after writing fewer or more than `object_size` bytes will result in an OUT_OF_RANGE error. This situation is considered a client error, and if such an error occurs you must start the upload over from scratch, this time sending the correct number of bytes.
optional int64 object_size = 8;hasObjectSize in interface WriteObjectSpecOrBuilderpublic long getObjectSize()
The expected final object size being uploaded. If this value is set, closing the stream after writing fewer or more than `object_size` bytes will result in an OUT_OF_RANGE error. This situation is considered a client error, and if such an error occurs you must start the upload over from scratch, this time sending the correct number of bytes.
optional int64 object_size = 8;getObjectSize in interface WriteObjectSpecOrBuilderpublic WriteObjectSpec.Builder setObjectSize(long value)
The expected final object size being uploaded. If this value is set, closing the stream after writing fewer or more than `object_size` bytes will result in an OUT_OF_RANGE error. This situation is considered a client error, and if such an error occurs you must start the upload over from scratch, this time sending the correct number of bytes.
optional int64 object_size = 8;value - The objectSize to set.public WriteObjectSpec.Builder clearObjectSize()
The expected final object size being uploaded. If this value is set, closing the stream after writing fewer or more than `object_size` bytes will result in an OUT_OF_RANGE error. This situation is considered a client error, and if such an error occurs you must start the upload over from scratch, this time sending the correct number of bytes.
optional int64 object_size = 8;public final WriteObjectSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectSpec.Builder>public final WriteObjectSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectSpec.Builder>Copyright © 2023 Google LLC. All rights reserved.