Class: Google::Apis::FcmV1::SendMessageRequest
- Inherits:
-
Object
- Object
- Google::Apis::FcmV1::SendMessageRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/fcm_v1/classes.rb,
generated/google/apis/fcm_v1/representations.rb,
generated/google/apis/fcm_v1/representations.rb
Overview
Request to send a message to specified target.
Instance Attribute Summary collapse
-
#message ⇒ Google::Apis::FcmV1::Message
Message to send by Firebase Cloud Messaging Service.
-
#validate_only ⇒ Boolean
(also: #validate_only?)
Flag for testing the request without actually delivering the message.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SendMessageRequest
constructor
A new instance of SendMessageRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SendMessageRequest
Returns a new instance of SendMessageRequest.
884 885 886 |
# File 'generated/google/apis/fcm_v1/classes.rb', line 884 def initialize(**args) update!(**args) end |
Instance Attribute Details
#message ⇒ Google::Apis::FcmV1::Message
Message to send by Firebase Cloud Messaging Service.
Corresponds to the JSON property message
876 877 878 |
# File 'generated/google/apis/fcm_v1/classes.rb', line 876 def @message end |
#validate_only ⇒ Boolean Also known as: validate_only?
Flag for testing the request without actually delivering the message.
Corresponds to the JSON property validateOnly
881 882 883 |
# File 'generated/google/apis/fcm_v1/classes.rb', line 881 def validate_only @validate_only end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
889 890 891 892 |
# File 'generated/google/apis/fcm_v1/classes.rb', line 889 def update!(**args) @message = args[:message] if args.key?(:message) @validate_only = args[:validate_only] if args.key?(:validate_only) end |