com.google.api.services.fcm.v1.model.SendMessageRequest Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/google/apis-client-generator/
* (build: 2018-10-08 17:45:39 UTC)
* on 2019-06-11 at 00:20:04 UTC
* Modify at your own risk.
*/
package com.google.api.services.fcm.v1.model;
/**
* Request to send a message to specified target.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Firebase Cloud Messaging API. For a detailed
* explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class SendMessageRequest extends com.google.api.client.json.GenericJson {
/**
* Required. Message to send.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Message message;
/**
* Flag for testing the request without actually delivering the message.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean validateOnly;
/**
* Required. Message to send.
* @return value or {@code null} for none
*/
public Message getMessage() {
return message;
}
/**
* Required. Message to send.
* @param message message or {@code null} for none
*/
public SendMessageRequest setMessage(Message message) {
this.message = message;
return this;
}
/**
* Flag for testing the request without actually delivering the message.
* @return value or {@code null} for none
*/
public java.lang.Boolean getValidateOnly() {
return validateOnly;
}
/**
* Flag for testing the request without actually delivering the message.
* @param validateOnly validateOnly or {@code null} for none
*/
public SendMessageRequest setValidateOnly(java.lang.Boolean validateOnly) {
this.validateOnly = validateOnly;
return this;
}
@Override
public SendMessageRequest set(String fieldName, Object value) {
return (SendMessageRequest) super.set(fieldName, value);
}
@Override
public SendMessageRequest clone() {
return (SendMessageRequest) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy