public static final class Precondition.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder> implements PreconditionOrBuilder
A precondition on a document, used for conditional operations.Protobuf type
google.firestore.v1.Precondition
Modifier and Type | Method and Description |
---|---|
Precondition.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Precondition |
build() |
Precondition |
buildPartial() |
Precondition.Builder |
clear() |
Precondition.Builder |
clearConditionType() |
Precondition.Builder |
clearExists()
When set to `true`, the target document must exist.
|
Precondition.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Precondition.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Precondition.Builder |
clearUpdateTime()
When set, the target document must exist and have been last updated at
that time.
|
Precondition.Builder |
clone() |
Precondition.ConditionTypeCase |
getConditionTypeCase() |
Precondition |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getExists()
When set to `true`, the target document must exist.
|
com.google.protobuf.Timestamp |
getUpdateTime()
When set, the target document must exist and have been last updated at
that time.
|
com.google.protobuf.Timestamp.Builder |
getUpdateTimeBuilder()
When set, the target document must exist and have been last updated at
that time.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
When set, the target document must exist and have been last updated at
that time.
|
boolean |
hasExists()
When set to `true`, the target document must exist.
|
boolean |
hasUpdateTime()
When set, the target document must exist and have been last updated at
that time.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Precondition.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Precondition.Builder |
mergeFrom(com.google.protobuf.Message other) |
Precondition.Builder |
mergeFrom(Precondition other) |
Precondition.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Precondition.Builder |
mergeUpdateTime(com.google.protobuf.Timestamp value)
When set, the target document must exist and have been last updated at
that time.
|
Precondition.Builder |
setExists(boolean value)
When set to `true`, the target document must exist.
|
Precondition.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Precondition.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Precondition.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Precondition.Builder |
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
When set, the target document must exist and have been last updated at
that time.
|
Precondition.Builder |
setUpdateTime(com.google.protobuf.Timestamp value)
When set, the target document must exist and have been last updated at
that time.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder>
public Precondition.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder>
public Precondition getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Precondition build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Precondition buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Precondition.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder>
public Precondition.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder>
public Precondition.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder>
public Precondition.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder>
public Precondition.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder>
public Precondition.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder>
public Precondition.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Precondition.Builder>
public Precondition.Builder mergeFrom(Precondition other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder>
public Precondition.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Precondition.Builder>
IOException
public Precondition.ConditionTypeCase getConditionTypeCase()
getConditionTypeCase
in interface PreconditionOrBuilder
public Precondition.Builder clearConditionType()
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;
hasExists
in interface PreconditionOrBuilder
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;
getExists
in interface PreconditionOrBuilder
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;
value
- The exists to set.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;
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;
hasUpdateTime
in interface PreconditionOrBuilder
public com.google.protobuf.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;
getUpdateTime
in interface PreconditionOrBuilder
public Precondition.Builder setUpdateTime(com.google.protobuf.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;
public Precondition.Builder setUpdateTime(com.google.protobuf.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;
public Precondition.Builder mergeUpdateTime(com.google.protobuf.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;
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;
public com.google.protobuf.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;
public com.google.protobuf.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;
getUpdateTimeOrBuilder
in interface PreconditionOrBuilder
public final Precondition.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder>
public final Precondition.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder>
Copyright © 2023 Google LLC. All rights reserved.