class Google::Apis::FirestoreV1beta1::Target
A specification of a set of documents to listen to.
Attributes
A target specified by a set of documents names. Corresponds to the JSON property `documents` @return [Google::Apis::FirestoreV1beta1::DocumentsTarget]
If the target should be removed once it is current and consistent. Corresponds to the JSON property `once` @return [Boolean]
If the target should be removed once it is current and consistent. Corresponds to the JSON property `once` @return [Boolean]
A target specified by a query. Corresponds to the JSON property `query` @return [Google::Apis::FirestoreV1beta1::QueryTarget]
Start listening after a specific `read_time`. The client must know the state of matching documents at this time. Corresponds to the JSON property `readTime` @return [String]
A resume token from a prior TargetChange
for an identical target. Using a resume token with a different target is unsupported and may fail. Corresponds to the JSON property `resumeToken` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]
The target ID that identifies the target on the stream. Must be a positive number and non-zero. Corresponds to the JSON property `targetId` @return [Fixnum]
Public Class Methods
# File lib/google/apis/firestore_v1beta1/classes.rb, line 1910 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/firestore_v1beta1/classes.rb, line 1915 def update!(**args) @documents = args[:documents] if args.key?(:documents) @once = args[:once] if args.key?(:once) @query = args[:query] if args.key?(:query) @read_time = args[:read_time] if args.key?(:read_time) @resume_token = args[:resume_token] if args.key?(:resume_token) @target_id = args[:target_id] if args.key?(:target_id) end