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 current
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 |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
WriteObjectSpec.Builder |
clearPredefinedAcl()
Apply a predefined set of access controls to this object.
|
WriteObjectSpec.Builder |
clearResource()
Destination object, including its name and its metadata.
|
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 current
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.
|
PredefinedObjectAcl |
getPredefinedAcl()
Apply a predefined set of access controls to this object.
|
int |
getPredefinedAclValue()
Apply a predefined set of access controls to this object.
|
Object |
getResource()
Destination object, including its name and its metadata.
|
Object.Builder |
getResourceBuilder()
Destination object, including its name and its metadata.
|
ObjectOrBuilder |
getResourceOrBuilder()
Destination object, including its name and its metadata.
|
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 current
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 |
hasResource()
Destination object, including its name and its metadata.
|
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)
Destination object, including its name and its metadata.
|
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 current
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 |
setPredefinedAcl(PredefinedObjectAcl value)
Apply a predefined set of access controls to this object.
|
WriteObjectSpec.Builder |
setPredefinedAclValue(int 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)
Destination object, including its name and its metadata.
|
WriteObjectSpec.Builder |
setResource(Object value)
Destination object, including its name and its metadata.
|
WriteObjectSpec.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic 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()
Destination object, including its name and its metadata.
.google.storage.v2.Object resource = 1;hasResource in interface WriteObjectSpecOrBuilderpublic Object getResource()
Destination object, including its name and its metadata.
.google.storage.v2.Object resource = 1;getResource in interface WriteObjectSpecOrBuilderpublic WriteObjectSpec.Builder setResource(Object value)
Destination object, including its name and its metadata.
.google.storage.v2.Object resource = 1;public WriteObjectSpec.Builder setResource(Object.Builder builderForValue)
Destination object, including its name and its metadata.
.google.storage.v2.Object resource = 1;public WriteObjectSpec.Builder mergeResource(Object value)
Destination object, including its name and its metadata.
.google.storage.v2.Object resource = 1;public WriteObjectSpec.Builder clearResource()
Destination object, including its name and its metadata.
.google.storage.v2.Object resource = 1;public Object.Builder getResourceBuilder()
Destination object, including its name and its metadata.
.google.storage.v2.Object resource = 1;public ObjectOrBuilder getResourceOrBuilder()
Destination object, including its name and its metadata.
.google.storage.v2.Object resource = 1;getResourceOrBuilder in interface WriteObjectSpecOrBuilderpublic int getPredefinedAclValue()
Apply a predefined set of access controls to this object.
.google.storage.v2.PredefinedObjectAcl predefined_acl = 2;getPredefinedAclValue in interface WriteObjectSpecOrBuilderpublic WriteObjectSpec.Builder setPredefinedAclValue(int value)
Apply a predefined set of access controls to this object.
.google.storage.v2.PredefinedObjectAcl predefined_acl = 2;value - The enum numeric value on the wire for predefinedAcl to set.public PredefinedObjectAcl getPredefinedAcl()
Apply a predefined set of access controls to this object.
.google.storage.v2.PredefinedObjectAcl predefined_acl = 2;getPredefinedAcl in interface WriteObjectSpecOrBuilderpublic WriteObjectSpec.Builder setPredefinedAcl(PredefinedObjectAcl value)
Apply a predefined set of access controls to this object.
.google.storage.v2.PredefinedObjectAcl predefined_acl = 2;value - The predefinedAcl to set.public WriteObjectSpec.Builder clearPredefinedAcl()
Apply a predefined set of access controls to this object.
.google.storage.v2.PredefinedObjectAcl predefined_acl = 2;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 current 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 current 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 current 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 current 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 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 © 2021 Google LLC. All rights reserved.