Class: Google::Cloud::Firestore::V1::Precondition

Inherits:
Object
  • Object
show all
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

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.

Returns:

  • (::Boolean)

    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.

Returns:

  • (::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.



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