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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectSpec.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectSpec.Builder>
public WriteObjectSpec getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public WriteObjectSpec build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public WriteObjectSpec buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public WriteObjectSpec.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<WriteObjectSpec.Builder>
IOException
public 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 WriteObjectSpecOrBuilder
public 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 WriteObjectSpecOrBuilder
public 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 WriteObjectSpecOrBuilder
public 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 WriteObjectSpecOrBuilder
public 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 WriteObjectSpecOrBuilder
public 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 WriteObjectSpecOrBuilder
public 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 WriteObjectSpecOrBuilder
public 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 WriteObjectSpecOrBuilder
public 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 WriteObjectSpecOrBuilder
public 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 WriteObjectSpecOrBuilder
public 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 WriteObjectSpecOrBuilder
public 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 WriteObjectSpecOrBuilder
public 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 WriteObjectSpecOrBuilder
public 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 WriteObjectSpecOrBuilder
public 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 WriteObjectSpecOrBuilder
public 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<WriteObjectSpec.Builder>
Copyright © 2023 Google LLC. All rights reserved.