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

/**
 * Mentions of relations in the document. A relation mention is between a mention of the source
 * entity and a mention of the target entity.
 *
 * <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 NlpSaftRelationMention extends com.google.api.client.json.GenericJson {

  /**
   * Application-specific information about this relation mention.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private Proto2BridgeMessageSet info;

  /**
   * Phrase in the document that indicates the relation mention.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private NlpSaftPhrase phrase;

  /**
   * Source and target mention indices. These are indices into the mention arrays for their
   * respective entities. The target is not used for attributes.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer source;

  /**
   * The info of the source models or systems of the relation mention.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> sourceInfo;

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

  /**
   * Application-specific information about this relation mention.
   * @return value or {@code null} for none
   */
  public Proto2BridgeMessageSet getInfo() {
    return info;
  }

  /**
   * Application-specific information about this relation mention.
   * @param info info or {@code null} for none
   */
  public NlpSaftRelationMention setInfo(Proto2BridgeMessageSet info) {
    this.info = info;
    return this;
  }

  /**
   * Phrase in the document that indicates the relation mention.
   * @return value or {@code null} for none
   */
  public NlpSaftPhrase getPhrase() {
    return phrase;
  }

  /**
   * Phrase in the document that indicates the relation mention.
   * @param phrase phrase or {@code null} for none
   */
  public NlpSaftRelationMention setPhrase(NlpSaftPhrase phrase) {
    this.phrase = phrase;
    return this;
  }

  /**
   * Source and target mention indices. These are indices into the mention arrays for their
   * respective entities. The target is not used for attributes.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getSource() {
    return source;
  }

  /**
   * Source and target mention indices. These are indices into the mention arrays for their
   * respective entities. The target is not used for attributes.
   * @param source source or {@code null} for none
   */
  public NlpSaftRelationMention setSource(java.lang.Integer source) {
    this.source = source;
    return this;
  }

  /**
   * The info of the source models or systems of the relation mention.
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getSourceInfo() {
    return sourceInfo;
  }

  /**
   * The info of the source models or systems of the relation mention.
   * @param sourceInfo sourceInfo or {@code null} for none
   */
  public NlpSaftRelationMention setSourceInfo(java.util.List<java.lang.String> sourceInfo) {
    this.sourceInfo = sourceInfo;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.Integer getTarget() {
    return target;
  }

  /**
   * @param target target or {@code null} for none
   */
  public NlpSaftRelationMention setTarget(java.lang.Integer target) {
    this.target = target;
    return this;
  }

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

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

}
