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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Precondition.BuilderImplements
PreconditionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Precondition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Precondition.Builder |
build()
public Precondition build()
Type | Description |
Precondition |
buildPartial()
public Precondition buildPartial()
Type | Description |
Precondition |
clear()
public Precondition.Builder clear()
Type | Description |
Precondition.Builder |
clearConditionType()
public Precondition.Builder clearConditionType()
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;
Type | Description |
Precondition.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Precondition.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Precondition.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Precondition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Precondition.Builder |
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;
Type | Description |
Precondition.Builder |
clone()
public Precondition.Builder clone()
Type | Description |
Precondition.Builder |
getConditionTypeCase()
public Precondition.ConditionTypeCase getConditionTypeCase()
Type | Description |
Precondition.ConditionTypeCase |
getDefaultInstanceForType()
public Precondition getDefaultInstanceForType()
Type | Description |
Precondition |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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;
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;
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;
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;
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;
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;
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Precondition other)
public Precondition.Builder mergeFrom(Precondition other)
Name | Description |
other | Precondition |
Type | Description |
Precondition.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Precondition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Precondition.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Precondition.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Precondition.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Precondition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Precondition.Builder |
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;
Name | Description |
value | Timestamp |
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;
Name | Description |
value | boolean The exists to set. |
Type | Description |
Precondition.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Precondition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Precondition.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Precondition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Precondition.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Precondition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Precondition.Builder |
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;
Name | Description |
value | Timestamp |
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;
Name | Description |
builderForValue | Builder |
Type | Description |
Precondition.Builder |