public final class Precondition extends GeneratedMessageV3 implements PreconditionOrBuilder
A precondition on a document, used for conditional operations.Protobuf type
google.firestore.v1beta1.Precondition
Modifier and Type | Class and Description |
---|---|
static class |
Precondition.Builder
A precondition on a document, used for conditional operations.
|
static class |
Precondition.ConditionTypeCase |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
EXISTS_FIELD_NUMBER |
static int |
UPDATE_TIME_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int EXISTS_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public Precondition.ConditionTypeCase getConditionTypeCase()
getConditionTypeCase
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 boolean hasUpdateTime()
When set, the target document must exist and have been last updated at that time.
.google.protobuf.Timestamp update_time = 2;
hasUpdateTime
in interface PreconditionOrBuilder
public Timestamp getUpdateTime()
When set, the target document must exist and have been last updated at that time.
.google.protobuf.Timestamp update_time = 2;
getUpdateTime
in interface PreconditionOrBuilder
public TimestampOrBuilder getUpdateTimeOrBuilder()
When set, the target document must exist and have been last updated at that time.
.google.protobuf.Timestamp update_time = 2;
getUpdateTimeOrBuilder
in interface PreconditionOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Precondition parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Precondition parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Precondition parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Precondition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Precondition parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Precondition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Precondition parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Precondition parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Precondition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Precondition parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Precondition parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Precondition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Precondition.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Precondition.Builder newBuilder()
public static Precondition.Builder newBuilder(Precondition prototype)
public Precondition.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Precondition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Precondition getDefaultInstance()
public static Parser<Precondition> parser()
public Parser<Precondition> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Precondition getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder