Class Precondition.Builder (3.36.0)

public static final class Precondition.Builder extends GeneratedMessage.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

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.

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

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 GeneratedMessage.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

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.

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