class Google::Apis::FirestoreV1::Target

A specification of a set of documents to listen to.

Attributes

documents[RW]

A target specified by a set of documents names. Corresponds to the JSON property `documents` @return [Google::Apis::FirestoreV1::DocumentsTarget]

once[RW]

If the target should be removed once it is current and consistent. Corresponds to the JSON property `once` @return [Boolean]

once?[RW]

If the target should be removed once it is current and consistent. Corresponds to the JSON property `once` @return [Boolean]

query[RW]

A target specified by a query. Corresponds to the JSON property `query` @return [Google::Apis::FirestoreV1::QueryTarget]

read_time[RW]

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]

resume_token[RW]

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]

target_id[RW]

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

new(**args) click to toggle source
# File lib/google/apis/firestore_v1/classes.rb, line 2251
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/firestore_v1/classes.rb, line 2256
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