All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.chat.v1.model.GoogleAppsCardV1Image Maven / Gradle / Ivy

There is a newer version: v1-rev20241217-2.0.0
Show newest version
/*
 * 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;

/**
 * An image that is specified by a URL and can have an `onClick` action. For an example, see [Add an
 * image](https://developers.google.com/workspace/chat/add-text-image-card-dialog#add_an_image).
 * [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
 *
 * 

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 GoogleAppsCardV1Image extends com.google.api.client.json.GenericJson { /** * The alternative text of this image that's used for accessibility. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String altText; /** * The HTTPS URL that hosts the image. For example: ``` * https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png ``` * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String imageUrl; /** * When a user clicks the image, the click triggers this action. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleAppsCardV1OnClick onClick; /** * The alternative text of this image that's used for accessibility. * @return value or {@code null} for none */ public java.lang.String getAltText() { return altText; } /** * The alternative text of this image that's used for accessibility. * @param altText altText or {@code null} for none */ public GoogleAppsCardV1Image setAltText(java.lang.String altText) { this.altText = altText; return this; } /** * The HTTPS URL that hosts the image. For example: ``` * https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png ``` * @return value or {@code null} for none */ public java.lang.String getImageUrl() { return imageUrl; } /** * The HTTPS URL that hosts the image. For example: ``` * https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png ``` * @param imageUrl imageUrl or {@code null} for none */ public GoogleAppsCardV1Image setImageUrl(java.lang.String imageUrl) { this.imageUrl = imageUrl; return this; } /** * When a user clicks the image, the click triggers this action. * @return value or {@code null} for none */ public GoogleAppsCardV1OnClick getOnClick() { return onClick; } /** * When a user clicks the image, the click triggers this action. * @param onClick onClick or {@code null} for none */ public GoogleAppsCardV1Image setOnClick(GoogleAppsCardV1OnClick onClick) { this.onClick = onClick; return this; } @Override public GoogleAppsCardV1Image set(String fieldName, Object value) { return (GoogleAppsCardV1Image) super.set(fieldName, value); } @Override public GoogleAppsCardV1Image clone() { return (GoogleAppsCardV1Image) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy