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

/**
 * Inferred geometry defines the geometry of a feature as the union or exclusion of the geometry of
 * other features. For instance, the geometry of a timezone can be specified as the union of all the
 * countries it applies to. In this scenario, the timezone will can be considered a "composite
 * feature", while the countries are its "composing features". A composite feature must have a
 * bidirectional reference between itself and all its composing features. A composite feature refers
 * to its composing features via `geometry_composition`, while the composing features must refer
 * back to the composing feature via `defines_geometry_for`. See: go/inferred-geometry and go/geo-
 * schema:composite-geometry-editor for more details.
 *
 * <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 GeostoreInferredGeometryProto extends com.google.api.client.json.GenericJson {

  /**
   * Features whose geometry depends on this feature's geometry.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<GeostoreFeatureIdProto> definesGeometryFor;

  static {
    // hack to force ProGuard to consider GeostoreFeatureIdProto 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(GeostoreFeatureIdProto.class);
  }

  /**
   * Features whose geometry defines the geometry of this feature (i.e. "composing features").
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GeostoreGeometryComposition geometryComposition;

  /**
   * Features whose geometry depends on this feature's geometry.
   * @return value or {@code null} for none
   */
  public java.util.List<GeostoreFeatureIdProto> getDefinesGeometryFor() {
    return definesGeometryFor;
  }

  /**
   * Features whose geometry depends on this feature's geometry.
   * @param definesGeometryFor definesGeometryFor or {@code null} for none
   */
  public GeostoreInferredGeometryProto setDefinesGeometryFor(java.util.List<GeostoreFeatureIdProto> definesGeometryFor) {
    this.definesGeometryFor = definesGeometryFor;
    return this;
  }

  /**
   * Features whose geometry defines the geometry of this feature (i.e. "composing features").
   * @return value or {@code null} for none
   */
  public GeostoreGeometryComposition getGeometryComposition() {
    return geometryComposition;
  }

  /**
   * Features whose geometry defines the geometry of this feature (i.e. "composing features").
   * @param geometryComposition geometryComposition or {@code null} for none
   */
  public GeostoreInferredGeometryProto setGeometryComposition(GeostoreGeometryComposition geometryComposition) {
    this.geometryComposition = geometryComposition;
    return this;
  }

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

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

}
