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.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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Precondition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Precondition build()
Returns
buildPartial()
public Precondition buildPartial()
Returns
clear()
public Precondition.Builder clear()
Returns
Overrides
clearConditionType()
public Precondition.Builder clearConditionType()
Returns
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;
Returns
clearField(Descriptors.FieldDescriptor field)
public Precondition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Precondition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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;
Returns
clone()
public Precondition.Builder clone()
Returns
Overrides
getConditionTypeCase()
public Precondition.ConditionTypeCase getConditionTypeCase()
Returns
getDefaultInstanceForType()
public Precondition getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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;
Returns
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;
Returns
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Precondition other)
public Precondition.Builder mergeFrom(Precondition other)
Parameter
Returns
public Precondition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Precondition.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Precondition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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;
Parameter
Returns
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.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Precondition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Precondition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Precondition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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;
Parameter
Returns
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
|
Returns