/*
 * 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.cloudsearch.v1.model;

/**
 * The context that resulted in the generation of the card.
 *
 * <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 Cloud Search 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 EnterpriseTopazSidekickAgendaGroupCardProtoContext extends com.google.api.client.json.GenericJson {

  /**
   * User friendly free text that describes the context of the card (e.g. "Next meeting with Bob").
   * This is largely only applicable when the card is generated from a query.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String context;

  /**
   * Localized free text that describes the dates represented by the card. Currently, the card will
   * only represent a single day.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String date;

  /**
   * Represents restrictions applied to the events requested in the user's query.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String eventsRestrict;

  /**
   * User friendly free text that describes the context of the card (e.g. "Next meeting with Bob").
   * This is largely only applicable when the card is generated from a query.
   * @return value or {@code null} for none
   */
  public java.lang.String getContext() {
    return context;
  }

  /**
   * User friendly free text that describes the context of the card (e.g. "Next meeting with Bob").
   * This is largely only applicable when the card is generated from a query.
   * @param context context or {@code null} for none
   */
  public EnterpriseTopazSidekickAgendaGroupCardProtoContext setContext(java.lang.String context) {
    this.context = context;
    return this;
  }

  /**
   * Localized free text that describes the dates represented by the card. Currently, the card will
   * only represent a single day.
   * @return value or {@code null} for none
   */
  public java.lang.String getDate() {
    return date;
  }

  /**
   * Localized free text that describes the dates represented by the card. Currently, the card will
   * only represent a single day.
   * @param date date or {@code null} for none
   */
  public EnterpriseTopazSidekickAgendaGroupCardProtoContext setDate(java.lang.String date) {
    this.date = date;
    return this;
  }

  /**
   * Represents restrictions applied to the events requested in the user's query.
   * @return value or {@code null} for none
   */
  public java.lang.String getEventsRestrict() {
    return eventsRestrict;
  }

  /**
   * Represents restrictions applied to the events requested in the user's query.
   * @param eventsRestrict eventsRestrict or {@code null} for none
   */
  public EnterpriseTopazSidekickAgendaGroupCardProtoContext setEventsRestrict(java.lang.String eventsRestrict) {
    this.eventsRestrict = eventsRestrict;
    return this;
  }

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

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

}
