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

/**
 * Emergency info for Person. See go/emergency-trusted-contacts-papi.
 *
 * <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 Document AI Warehouse 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 AppsPeopleOzExternalMergedpeopleapiEmergencyInfo extends com.google.api.client.json.GenericJson {

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata metadata;

  /**
   * Opaque id from Pomeroy (go/pomeroy). Non-empty pomeroy_id means that this contact has the
   * potential to become trusted contact or it's already trusted contact. Trust is eventually
   * gaia<->gaia link, but when the trust link is initiated gaia might not be known. Until gaia is
   * discovered, pomeroy_id is used to identify the contact uniquely. If trust_level is missing or
   * set to TRUST_LEVEL_UNSPECIFIED pomeroy_id must be empty.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String pomeroyId;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String trustLevel;

  /**
   * @return value or {@code null} for none
   */
  public AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata getMetadata() {
    return metadata;
  }

  /**
   * @param metadata metadata or {@code null} for none
   */
  public AppsPeopleOzExternalMergedpeopleapiEmergencyInfo setMetadata(AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata metadata) {
    this.metadata = metadata;
    return this;
  }

  /**
   * Opaque id from Pomeroy (go/pomeroy). Non-empty pomeroy_id means that this contact has the
   * potential to become trusted contact or it's already trusted contact. Trust is eventually
   * gaia<->gaia link, but when the trust link is initiated gaia might not be known. Until gaia is
   * discovered, pomeroy_id is used to identify the contact uniquely. If trust_level is missing or
   * set to TRUST_LEVEL_UNSPECIFIED pomeroy_id must be empty.
   * @return value or {@code null} for none
   */
  public java.lang.String getPomeroyId() {
    return pomeroyId;
  }

  /**
   * Opaque id from Pomeroy (go/pomeroy). Non-empty pomeroy_id means that this contact has the
   * potential to become trusted contact or it's already trusted contact. Trust is eventually
   * gaia<->gaia link, but when the trust link is initiated gaia might not be known. Until gaia is
   * discovered, pomeroy_id is used to identify the contact uniquely. If trust_level is missing or
   * set to TRUST_LEVEL_UNSPECIFIED pomeroy_id must be empty.
   * @param pomeroyId pomeroyId or {@code null} for none
   */
  public AppsPeopleOzExternalMergedpeopleapiEmergencyInfo setPomeroyId(java.lang.String pomeroyId) {
    this.pomeroyId = pomeroyId;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.String getTrustLevel() {
    return trustLevel;
  }

  /**
   * @param trustLevel trustLevel or {@code null} for none
   */
  public AppsPeopleOzExternalMergedpeopleapiEmergencyInfo setTrustLevel(java.lang.String trustLevel) {
    this.trustLevel = trustLevel;
    return this;
  }

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

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

}
