public static final class Precondition.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder> implements PreconditionOrBuilder
A precondition on a document, used for conditional operations.Protobuf type
google.firestore.v1.Precondition| Modifier and Type | Method and Description |
|---|---|
Precondition.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Precondition |
build() |
Precondition |
buildPartial() |
Precondition.Builder |
clear() |
Precondition.Builder |
clearConditionType() |
Precondition.Builder |
clearExists()
When set to `true`, the target document must exist.
|
Precondition.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Precondition.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Precondition.Builder |
clearUpdateTime()
When set, the target document must exist and have been last updated at
that time.
|
Precondition.Builder |
clone() |
Precondition.ConditionTypeCase |
getConditionTypeCase() |
Precondition |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getExists()
When set to `true`, the target document must exist.
|
com.google.protobuf.Timestamp |
getUpdateTime()
When set, the target document must exist and have been last updated at
that time.
|
com.google.protobuf.Timestamp.Builder |
getUpdateTimeBuilder()
When set, the target document must exist and have been last updated at
that time.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
When set, the target document must exist and have been last updated at
that time.
|
boolean |
hasUpdateTime()
When set, the target document must exist and have been last updated at
that time.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Precondition.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Precondition.Builder |
mergeFrom(com.google.protobuf.Message other) |
Precondition.Builder |
mergeFrom(Precondition other) |
Precondition.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Precondition.Builder |
mergeUpdateTime(com.google.protobuf.Timestamp value)
When set, the target document must exist and have been last updated at
that time.
|
Precondition.Builder |
setExists(boolean value)
When set to `true`, the target document must exist.
|
Precondition.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Precondition.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Precondition.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Precondition.Builder |
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
When set, the target document must exist and have been last updated at
that time.
|
Precondition.Builder |
setUpdateTime(com.google.protobuf.Timestamp value)
When set, the target document must exist and have been last updated at
that time.
|
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<Precondition.Builder>public Precondition.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Precondition.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<Precondition.Builder>public Precondition getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Precondition build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Precondition buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Precondition.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder>public Precondition.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<Precondition.Builder>public Precondition.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder>public Precondition.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder>public Precondition.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<Precondition.Builder>public Precondition.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<Precondition.Builder>public Precondition.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Precondition.Builder>public Precondition.Builder mergeFrom(Precondition other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder>public Precondition.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<Precondition.Builder>IOExceptionpublic Precondition.ConditionTypeCase getConditionTypeCase()
getConditionTypeCase in interface PreconditionOrBuilderpublic Precondition.Builder clearConditionType()
public boolean getExists()
When set to `true`, the target document must exist. When set to `false`, the target document must not exist.
bool exists = 1;getExists in interface PreconditionOrBuilderpublic Precondition.Builder setExists(boolean value)
When set to `true`, the target document must exist. When set to `false`, the target document must not exist.
bool exists = 1;public Precondition.Builder clearExists()
When set to `true`, the target document must exist. When set to `false`, the target document must not exist.
bool exists = 1;public boolean hasUpdateTime()
When set, the target document must exist and have been last updated at that time.
.google.protobuf.Timestamp update_time = 2;hasUpdateTime in interface PreconditionOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
When set, the target document must exist and have been last updated at that time.
.google.protobuf.Timestamp update_time = 2;getUpdateTime in interface PreconditionOrBuilderpublic Precondition.Builder setUpdateTime(com.google.protobuf.Timestamp value)
When set, the target document must exist and have been last updated at that time.
.google.protobuf.Timestamp update_time = 2;public Precondition.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
When set, the target document must exist and have been last updated at that time.
.google.protobuf.Timestamp update_time = 2;public Precondition.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
When set, the target document must exist and have been last updated at that time.
.google.protobuf.Timestamp update_time = 2;public Precondition.Builder clearUpdateTime()
When set, the target document must exist and have been last updated at that time.
.google.protobuf.Timestamp update_time = 2;public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
When set, the target document must exist and have been last updated at that time.
.google.protobuf.Timestamp update_time = 2;public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
When set, the target document must exist and have been last updated at that time.
.google.protobuf.Timestamp update_time = 2;getUpdateTimeOrBuilder in interface PreconditionOrBuilderpublic final Precondition.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder>public final Precondition.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder>Copyright © 2019 Google LLC. All rights reserved.