public final class Precondition extends GeneratedMessageV3 implements PreconditionOrBuilder
A precondition on a document, used for conditional operations.
Protobuf type google.firestore.v1.Precondition
Static Fields
EXISTS_FIELD_NUMBER
public static final int EXISTS_FIELD_NUMBER
Field Value
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Precondition getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Precondition.Builder newBuilder()
Returns
newBuilder(Precondition prototype)
public static Precondition.Builder newBuilder(Precondition prototype)
Parameter
Returns
public static Precondition parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Precondition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Precondition parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Precondition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Precondition parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Precondition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Precondition parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Precondition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Precondition parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Precondition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Precondition parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Precondition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Precondition> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getConditionTypeCase()
public Precondition.ConditionTypeCase getConditionTypeCase()
Returns
getDefaultInstanceForType()
public Precondition getDefaultInstanceForType()
Returns
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
getParserForType()
public Parser<Precondition> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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
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
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Precondition.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Precondition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Precondition.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions