/*
 * 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;

/**
 * Conflicting meetings card proto.
 *
 * <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 EnterpriseTopazSidekickConflictingEventsCardProto extends com.google.api.client.json.GenericJson {

  /**
   * All the events that conflict with main_event.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<EnterpriseTopazSidekickAgendaEntry> conflictingEvent;

  static {
    // hack to force ProGuard to consider EnterpriseTopazSidekickAgendaEntry used, since otherwise it would be stripped out
    // see https://github.com/google/google-api-java-client/issues/543
    com.google.api.client.util.Data.nullOf(EnterpriseTopazSidekickAgendaEntry.class);
  }

  /**
   * The event identified as being the most important.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private EnterpriseTopazSidekickAgendaEntry mainEvent;

  /**
   * All the events that conflict with main_event.
   * @return value or {@code null} for none
   */
  public java.util.List<EnterpriseTopazSidekickAgendaEntry> getConflictingEvent() {
    return conflictingEvent;
  }

  /**
   * All the events that conflict with main_event.
   * @param conflictingEvent conflictingEvent or {@code null} for none
   */
  public EnterpriseTopazSidekickConflictingEventsCardProto setConflictingEvent(java.util.List<EnterpriseTopazSidekickAgendaEntry> conflictingEvent) {
    this.conflictingEvent = conflictingEvent;
    return this;
  }

  /**
   * The event identified as being the most important.
   * @return value or {@code null} for none
   */
  public EnterpriseTopazSidekickAgendaEntry getMainEvent() {
    return mainEvent;
  }

  /**
   * The event identified as being the most important.
   * @param mainEvent mainEvent or {@code null} for none
   */
  public EnterpriseTopazSidekickConflictingEventsCardProto setMainEvent(EnterpriseTopazSidekickAgendaEntry mainEvent) {
    this.mainEvent = mainEvent;
    return this;
  }

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

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

}
