Class: Google::Apis::FirestoreV1beta1::ListenRequest

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ListenRequest

Returns a new instance of ListenRequest



1349
1350
1351
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1349

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#add_targetGoogle::Apis::FirestoreV1beta1::Target

A specification of a set of documents to listen to. Corresponds to the JSON property addTarget



1337
1338
1339
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1337

def add_target
  @add_target
end

#labelsHash<String,String>

Labels associated with this target change. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1342
1343
1344
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1342

def labels
  @labels
end

#remove_targetFixnum

The ID of a target to remove from this stream. Corresponds to the JSON property removeTarget

Returns:

  • (Fixnum)


1347
1348
1349
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1347

def remove_target
  @remove_target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1354
1355
1356
1357
1358
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1354

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