Reference documentation and code samples for the Cloud Firestore V1 API class Google::Cloud::Firestore::V1::Precondition.
A precondition on a document, used for conditional operations.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#exists
def exists() -> ::Boolean
-
(::Boolean) — When set to
true
, the target document must exist. When set tofalse
, the target document must not exist.Note: The following fields are mutually exclusive:
exists
,update_time
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#exists=
def exists=(value) -> ::Boolean
-
value (::Boolean) — When set to
true
, the target document must exist. When set tofalse
, the target document must not exist.Note: The following fields are mutually exclusive:
exists
,update_time
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Boolean) — When set to
true
, the target document must exist. When set tofalse
, the target document must not exist.Note: The following fields are mutually exclusive:
exists
,update_time
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
-
(::Google::Protobuf::Timestamp) — When set, the target document must exist and have been last updated at
that time. Timestamp must be microsecond aligned.
Note: The following fields are mutually exclusive:
update_time
,exists
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#update_time=
def update_time=(value) -> ::Google::Protobuf::Timestamp
-
value (::Google::Protobuf::Timestamp) — When set, the target document must exist and have been last updated at
that time. Timestamp must be microsecond aligned.
Note: The following fields are mutually exclusive:
update_time
,exists
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Protobuf::Timestamp) — When set, the target document must exist and have been last updated at
that time. Timestamp must be microsecond aligned.
Note: The following fields are mutually exclusive:
update_time
,exists
. If a field in that set is populated, all other fields in the set will automatically be cleared.