class Google::Apis::FcmV1::SendMessageRequest

Request to send a message to specified target.

Attributes

message[RW]

Message to send by Firebase Cloud Messaging Service. Corresponds to the JSON property `message` @return [Google::Apis::FcmV1::Message]

validate_only[RW]

Flag for testing the request without actually delivering the message. Corresponds to the JSON property `validateOnly` @return [Boolean]

validate_only?[RW]

Flag for testing the request without actually delivering the message. Corresponds to the JSON property `validateOnly` @return [Boolean]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/fcm_v1/classes.rb, line 753
def update!(**args)
  @message = args[:message] if args.key?(:message)
  @validate_only = args[:validate_only] if args.key?(:validate_only)
end