/*
 * 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.searchads360.v0.model;

/**
 * A type of label displaying text on a colored background.
 *
 * <p> 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 Search Ads 360 Reporting API. For a detailed
 * explanation see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class GoogleAdsSearchads360V0CommonTextLabel extends com.google.api.client.json.GenericJson {

  /**
   * Background color of the label in RGB format. This string must match the regular expression
   * '^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$'. Note: The background color may not be visible for
   * manager accounts.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String backgroundColor;

  /**
   * A short description of the label. The length must be no more than 200 characters.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String description;

  /**
   * Background color of the label in RGB format. This string must match the regular expression
   * '^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$'. Note: The background color may not be visible for
   * manager accounts.
   * @return value or {@code null} for none
   */
  public java.lang.String getBackgroundColor() {
    return backgroundColor;
  }

  /**
   * Background color of the label in RGB format. This string must match the regular expression
   * '^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$'. Note: The background color may not be visible for
   * manager accounts.
   * @param backgroundColor backgroundColor or {@code null} for none
   */
  public GoogleAdsSearchads360V0CommonTextLabel setBackgroundColor(java.lang.String backgroundColor) {
    this.backgroundColor = backgroundColor;
    return this;
  }

  /**
   * A short description of the label. The length must be no more than 200 characters.
   * @return value or {@code null} for none
   */
  public java.lang.String getDescription() {
    return description;
  }

  /**
   * A short description of the label. The length must be no more than 200 characters.
   * @param description description or {@code null} for none
   */
  public GoogleAdsSearchads360V0CommonTextLabel setDescription(java.lang.String description) {
    this.description = description;
    return this;
  }

  @Override
  public GoogleAdsSearchads360V0CommonTextLabel set(String fieldName, Object value) {
    return (GoogleAdsSearchads360V0CommonTextLabel) super.set(fieldName, value);
  }

  @Override
  public GoogleAdsSearchads360V0CommonTextLabel clone() {
    return (GoogleAdsSearchads360V0CommonTextLabel) super.clone();
  }

}
