Class Precondition.Builder (3.21.4)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Precondition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Precondition.Builder
Overrides

build()

public Precondition build()
Returns
Type Description
Precondition

buildPartial()

public Precondition buildPartial()
Returns
Type Description
Precondition

clear()

public Precondition.Builder clear()
Returns
Type Description
Precondition.Builder
Overrides

clearConditionType()

public Precondition.Builder clearConditionType()
Returns
Type Description
Precondition.Builder

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
Type Description
Precondition.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Precondition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Precondition.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Precondition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Precondition.Builder
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
Type Description
Precondition.Builder

clone()

public Precondition.Builder clone()
Returns
Type Description
Precondition.Builder
Overrides

getConditionTypeCase()

public Precondition.ConditionTypeCase getConditionTypeCase()
Returns
Type Description
Precondition.ConditionTypeCase

getDefaultInstanceForType()

public Precondition getDefaultInstanceForType()
Returns
Type Description
Precondition

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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;

Returns
Type Description
Builder

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
Type Description
TimestampOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Precondition other)

public Precondition.Builder mergeFrom(Precondition other)
Parameter
Name Description
other Precondition
Returns
Type Description
Precondition.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Precondition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Precondition.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Precondition.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Precondition.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Precondition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Precondition.Builder
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
Name Description
value Timestamp
Returns
Type Description
Precondition.Builder

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
Type Description
Precondition.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Precondition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Precondition.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Precondition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Precondition.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Precondition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Precondition.Builder
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
Name Description
value Timestamp
Returns
Type Description
Precondition.Builder

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
Type Description
Precondition.Builder