public static final class Precondition.Builder extends GeneratedMessageV3.Builder<Precondition.Builder> implements PreconditionOrBuilder
A precondition on a document, used for conditional operations.
Protobuf type google.firestore.v1.Precondition
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Precondition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Precondition build()
buildPartial()
public Precondition buildPartial()
clear()
public Precondition.Builder clear()
Overrides
clearConditionType()
public Precondition.Builder clearConditionType()
clearExists()
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;
clearField(Descriptors.FieldDescriptor field)
public Precondition.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Precondition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearUpdateTime()
public Precondition.Builder clearUpdateTime()
When set, the target document must exist and have been last updated at
that time. Timestamp must be microsecond aligned.
.google.protobuf.Timestamp update_time = 2;
clone()
public Precondition.Builder clone()
Overrides
getConditionTypeCase()
public Precondition.ConditionTypeCase getConditionTypeCase()
getDefaultInstanceForType()
public Precondition getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getExists()
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;
Returns |
Type |
Description |
boolean |
The exists.
|
getUpdateTime()
public Timestamp getUpdateTime()
When set, the target document must exist and have been last updated at
that time. Timestamp must be microsecond aligned.
.google.protobuf.Timestamp update_time = 2;
Returns |
Type |
Description |
Timestamp |
The updateTime.
|
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
When set, the target document must exist and have been last updated at
that time. Timestamp must be microsecond aligned.
.google.protobuf.Timestamp update_time = 2;
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
When set, the target document must exist and have been last updated at
that time. Timestamp must be microsecond aligned.
.google.protobuf.Timestamp update_time = 2;
hasExists()
public boolean hasExists()
When set to true
, the target document must exist.
When set to false
, the target document must not exist.
bool exists = 1;
Returns |
Type |
Description |
boolean |
Whether the exists field is set.
|
hasUpdateTime()
public boolean hasUpdateTime()
When set, the target document must exist and have been last updated at
that time. Timestamp must be microsecond aligned.
.google.protobuf.Timestamp update_time = 2;
Returns |
Type |
Description |
boolean |
Whether the updateTime field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Precondition other)
public Precondition.Builder mergeFrom(Precondition other)
public Precondition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Precondition.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Precondition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
mergeUpdateTime(Timestamp value)
public Precondition.Builder mergeUpdateTime(Timestamp value)
When set, the target document must exist and have been last updated at
that time. Timestamp must be microsecond aligned.
.google.protobuf.Timestamp update_time = 2;
setExists(boolean value)
public 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;
Parameter |
Name |
Description |
value |
boolean
The exists to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public Precondition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Precondition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Precondition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setUpdateTime(Timestamp value)
public Precondition.Builder setUpdateTime(Timestamp value)
When set, the target document must exist and have been last updated at
that time. Timestamp must be microsecond aligned.
.google.protobuf.Timestamp update_time = 2;
setUpdateTime(Timestamp.Builder builderForValue)
public Precondition.Builder setUpdateTime(Timestamp.Builder builderForValue)
When set, the target document must exist and have been last updated at
that time. Timestamp must be microsecond aligned.
.google.protobuf.Timestamp update_time = 2;
Parameter |
Name |
Description |
builderForValue |
Builder
|