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

/**
 * Internal-only proto used to express additional information about segments. This is intended for
 * communicating extra information between editing clients and the repository, and should not be
 * used by or visible to clients. WARNING - if you add new fields to InternalSegmentProto, make sure
 * that geostore/tools/internal/mr-mergesegments_test.cc is aware of them.
 *
 * <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 GeostoreInternalSegmentProto extends com.google.api.client.json.GenericJson {

  /**
   * RESERVED
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<GeostoreInternalSegmentProtoLaneConnectionReference> disallowedConnections;

  /**
   * RESERVED
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<GeostoreInternalSegmentProtoLaneConnectionReference> disallowedPrimaryConnection;

  /**
   * The set of restrictions that apply to this segment; these are actually *POSITIVE* restrictions,
   * i.e. they are known to be allowed.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<GeostoreRestrictionProto> travelAllowance;

  /**
   * RESERVED
   * @return value or {@code null} for none
   */
  public java.util.List<GeostoreInternalSegmentProtoLaneConnectionReference> getDisallowedConnections() {
    return disallowedConnections;
  }

  /**
   * RESERVED
   * @param disallowedConnections disallowedConnections or {@code null} for none
   */
  public GeostoreInternalSegmentProto setDisallowedConnections(java.util.List<GeostoreInternalSegmentProtoLaneConnectionReference> disallowedConnections) {
    this.disallowedConnections = disallowedConnections;
    return this;
  }

  /**
   * RESERVED
   * @return value or {@code null} for none
   */
  public java.util.List<GeostoreInternalSegmentProtoLaneConnectionReference> getDisallowedPrimaryConnection() {
    return disallowedPrimaryConnection;
  }

  /**
   * RESERVED
   * @param disallowedPrimaryConnection disallowedPrimaryConnection or {@code null} for none
   */
  public GeostoreInternalSegmentProto setDisallowedPrimaryConnection(java.util.List<GeostoreInternalSegmentProtoLaneConnectionReference> disallowedPrimaryConnection) {
    this.disallowedPrimaryConnection = disallowedPrimaryConnection;
    return this;
  }

  /**
   * The set of restrictions that apply to this segment; these are actually *POSITIVE* restrictions,
   * i.e. they are known to be allowed.
   * @return value or {@code null} for none
   */
  public java.util.List<GeostoreRestrictionProto> getTravelAllowance() {
    return travelAllowance;
  }

  /**
   * The set of restrictions that apply to this segment; these are actually *POSITIVE* restrictions,
   * i.e. they are known to be allowed.
   * @param travelAllowance travelAllowance or {@code null} for none
   */
  public GeostoreInternalSegmentProto setTravelAllowance(java.util.List<GeostoreRestrictionProto> travelAllowance) {
    this.travelAllowance = travelAllowance;
    return this;
  }

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

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

}
