com.google.api.services.chat.v1.model.ActionResponse Maven / Gradle / Ivy
/*
* 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/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.chat.v1.model;
/**
* Parameters that a Chat app can use to configure how its response is posted.
*
* 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 Google Chat 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 ActionResponse extends com.google.api.client.json.GenericJson {
/**
* Input only. A response to an interaction event related to a
* [dialog](https://developers.google.com/workspace/chat/dialogs). Must be accompanied by
* `ResponseType.Dialog`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private DialogAction dialogAction;
/**
* Input only. The type of Chat app response.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String type;
/**
* Input only. The response of the updated widget.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private UpdatedWidget updatedWidget;
/**
* Input only. URL for users to authenticate or configure. (Only for `REQUEST_CONFIG` response
* types.)
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String url;
/**
* Input only. A response to an interaction event related to a
* [dialog](https://developers.google.com/workspace/chat/dialogs). Must be accompanied by
* `ResponseType.Dialog`.
* @return value or {@code null} for none
*/
public DialogAction getDialogAction() {
return dialogAction;
}
/**
* Input only. A response to an interaction event related to a
* [dialog](https://developers.google.com/workspace/chat/dialogs). Must be accompanied by
* `ResponseType.Dialog`.
* @param dialogAction dialogAction or {@code null} for none
*/
public ActionResponse setDialogAction(DialogAction dialogAction) {
this.dialogAction = dialogAction;
return this;
}
/**
* Input only. The type of Chat app response.
* @return value or {@code null} for none
*/
public java.lang.String getType() {
return type;
}
/**
* Input only. The type of Chat app response.
* @param type type or {@code null} for none
*/
public ActionResponse setType(java.lang.String type) {
this.type = type;
return this;
}
/**
* Input only. The response of the updated widget.
* @return value or {@code null} for none
*/
public UpdatedWidget getUpdatedWidget() {
return updatedWidget;
}
/**
* Input only. The response of the updated widget.
* @param updatedWidget updatedWidget or {@code null} for none
*/
public ActionResponse setUpdatedWidget(UpdatedWidget updatedWidget) {
this.updatedWidget = updatedWidget;
return this;
}
/**
* Input only. URL for users to authenticate or configure. (Only for `REQUEST_CONFIG` response
* types.)
* @return value or {@code null} for none
*/
public java.lang.String getUrl() {
return url;
}
/**
* Input only. URL for users to authenticate or configure. (Only for `REQUEST_CONFIG` response
* types.)
* @param url url or {@code null} for none
*/
public ActionResponse setUrl(java.lang.String url) {
this.url = url;
return this;
}
@Override
public ActionResponse set(String fieldName, Object value) {
return (ActionResponse) super.set(fieldName, value);
}
@Override
public ActionResponse clone() {
return (ActionResponse) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy