Class: Google::Cloud::Firestore::V1::Precondition
- Inherits:
-
Object
- Object
- Google::Cloud::Firestore::V1::Precondition
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/firestore/v1/common.rb
Overview
A precondition on a document, used for conditional operations.
Instance Attribute Summary collapse
-
#exists ⇒ ::Boolean
When set to
true
, the target document must exist. -
#update_time ⇒ ::Google::Protobuf::Timestamp
When set, the target document must exist and have been last updated at that time.
Instance Attribute Details
#exists ⇒ ::Boolean
Returns When set to true
, the target document must exist.
When set to false
, 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.
53 54 55 56 |
# File 'proto_docs/google/firestore/v1/common.rb', line 53 class Precondition include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#update_time ⇒ ::Google::Protobuf::Timestamp
Returns 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.
53 54 55 56 |
# File 'proto_docs/google/firestore/v1/common.rb', line 53 class Precondition include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |