Class: Google::Apis::FirestoreV1beta1::ListenRequest
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1beta1::ListenRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/firestore_v1beta1/classes.rb,
generated/google/apis/firestore_v1beta1/representations.rb,
generated/google/apis/firestore_v1beta1/representations.rb
Overview
A request for Firestore.Listen
Instance Attribute Summary collapse
-
#add_target ⇒ Google::Apis::FirestoreV1beta1::Target
A specification of a set of documents to listen to.
-
#labels ⇒ Hash<String,String>
Labels associated with this target change.
-
#remove_target ⇒ Fixnum
The ID of a target to remove from this stream.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListenRequest
constructor
A new instance of ListenRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ListenRequest
Returns a new instance of ListenRequest.
1339 1340 1341 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1339 def initialize(**args) update!(**args) end |
Instance Attribute Details
#add_target ⇒ Google::Apis::FirestoreV1beta1::Target
A specification of a set of documents to listen to.
Corresponds to the JSON property addTarget
1327 1328 1329 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1327 def add_target @add_target end |
#labels ⇒ Hash<String,String>
Labels associated with this target change.
Corresponds to the JSON property labels
1332 1333 1334 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1332 def labels @labels end |
#remove_target ⇒ Fixnum
The ID of a target to remove from this stream.
Corresponds to the JSON property removeTarget
1337 1338 1339 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1337 def remove_target @remove_target end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1344 1345 1346 1347 1348 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1344 def update!(**args) @add_target = args[:add_target] if args.key?(:add_target) @labels = args[:labels] if args.key?(:labels) @remove_target = args[:remove_target] if args.key?(:remove_target) end |