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

/**
 * LINT.IfChange(ArgPath) Given a FunctionCall and an Argument somewhere in it, an ArgPath is a list
 * of name-index pairs that uniquely determines the path down to that Argument. For each pair, the
 * |index|, starting from zero, distinguishes between "sibling" (i.e. belonging to the same sub-
 * FunctionCall) Arguments with the same name. For example, given the following FunctionCall:
 * A(X=D(W=5), Z=B(Z=6), Z=C(Y=7)) The path to the Z=6 argument is {{"Z", 0}, {"Z", 0}} It's the
 * first of two Z "siblings" under A, then the only Z under B. The path to the Y=7 argument is
 * {{"Z", 1}, {"Y", 0}} It's the second of two Z "siblings" under A, then the only Y under C. The
 * path to the Z=B(...) argument is {{"Z", 0}} It's the first of two Z "siblings" under A.
 *
 * <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 KnowledgeAnswersIntentQueryArgPathComponent extends com.google.api.client.json.GenericJson {

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

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

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

  /**
   * @param argName argName or {@code null} for none
   */
  public KnowledgeAnswersIntentQueryArgPathComponent setArgName(java.lang.String argName) {
    this.argName = argName;
    return this;
  }

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

  /**
   * @param index index or {@code null} for none
   */
  public KnowledgeAnswersIntentQueryArgPathComponent setIndex(java.lang.Integer index) {
    this.index = index;
    return this;
  }

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

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

}
