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