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

/**
 * All the possible location constraints. This message is associated with a location and can be
 * nested accordingly. E.g., for a compound location the constraint may be associated with the
 * entire location or with either of the two internal locations (loc_1 and loc_2). There is an
 * implicit AND relation between the different constraints. Next ID: 26.
 *
 * <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 NlpSemanticParsingLocalLocationConstraint extends com.google.api.client.json.GenericJson {

  /**
   * LINT.IfChange
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private NlpSemanticParsingLocalAmenities amenities;

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

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

  /**
   * Used for populating ElectricVehicleConnectorRefinement from QBF go/evcs-qbf-connector
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private NlpSemanticParsingLocalEvChargingStationConnectorConstraint evcsConnectorConstraint;

  /**
   * Used for populating ElectricVehiclePaymentRefinement from QBF go/evcs-qbf-payment
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private NlpSemanticParsingLocalEvChargingStationPaymentConstraint evcsPaymentConstraint;

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

  /**
   * Used for GCID filter. Unlike other grammar, for now this is populated in Superroot (currently
   * based on QBLD classification, and an allowlist of GCID).
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private NlpSemanticParsingLocalGcidConstraint gcidConstraint;

  /**
   * Used for health insurance filter populator.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private NlpSemanticParsingLocalHealthInsuranceConstraint healthInsurance;

  /**
   * Some constraints are also hyper-reliable, such as [brunch] and [coffee].
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private NlpSemanticParsingLocalHyperReliableData hyperReliableData;

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

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key("new")
  private java.lang.Boolean new__;

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

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

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

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

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

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

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

  /**
   * The span, in the raw input, which corresponds to this constraint, expressed as a byte offset
   * and byte size.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer startByte;

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

  /**
   * Experimental, may change.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean ungroundedConstraint;

  /**
   * Used to remove all constraints, e.g. [forget all the filters]
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean unspecified;

  /**
   * Used for vaccine refinement: go/covid-vaccine-refinement.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String vaccineType;

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

  /**
   * LINT.IfChange
   * @return value or {@code null} for none
   */
  public NlpSemanticParsingLocalAmenities getAmenities() {
    return amenities;
  }

  /**
   * LINT.IfChange
   * @param amenities amenities or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setAmenities(NlpSemanticParsingLocalAmenities amenities) {
    this.amenities = amenities;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public NlpSemanticParsingLocalChainMemberConstraint getChainMember() {
    return chainMember;
  }

  /**
   * @param chainMember chainMember or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setChainMember(NlpSemanticParsingLocalChainMemberConstraint chainMember) {
    this.chainMember = chainMember;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public NlpSemanticParsingLocalCuisineConstraint getCuisine() {
    return cuisine;
  }

  /**
   * @param cuisine cuisine or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setCuisine(NlpSemanticParsingLocalCuisineConstraint cuisine) {
    this.cuisine = cuisine;
    return this;
  }

  /**
   * Used for populating ElectricVehicleConnectorRefinement from QBF go/evcs-qbf-connector
   * @return value or {@code null} for none
   */
  public NlpSemanticParsingLocalEvChargingStationConnectorConstraint getEvcsConnectorConstraint() {
    return evcsConnectorConstraint;
  }

  /**
   * Used for populating ElectricVehicleConnectorRefinement from QBF go/evcs-qbf-connector
   * @param evcsConnectorConstraint evcsConnectorConstraint or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setEvcsConnectorConstraint(NlpSemanticParsingLocalEvChargingStationConnectorConstraint evcsConnectorConstraint) {
    this.evcsConnectorConstraint = evcsConnectorConstraint;
    return this;
  }

  /**
   * Used for populating ElectricVehiclePaymentRefinement from QBF go/evcs-qbf-payment
   * @return value or {@code null} for none
   */
  public NlpSemanticParsingLocalEvChargingStationPaymentConstraint getEvcsPaymentConstraint() {
    return evcsPaymentConstraint;
  }

  /**
   * Used for populating ElectricVehiclePaymentRefinement from QBF go/evcs-qbf-payment
   * @param evcsPaymentConstraint evcsPaymentConstraint or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setEvcsPaymentConstraint(NlpSemanticParsingLocalEvChargingStationPaymentConstraint evcsPaymentConstraint) {
    this.evcsPaymentConstraint = evcsPaymentConstraint;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public NlpSemanticParsingLocalEvChargingStationSpeedConstraint getEvcsSpeedConstraint() {
    return evcsSpeedConstraint;
  }

  /**
   * @param evcsSpeedConstraint evcsSpeedConstraint or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setEvcsSpeedConstraint(NlpSemanticParsingLocalEvChargingStationSpeedConstraint evcsSpeedConstraint) {
    this.evcsSpeedConstraint = evcsSpeedConstraint;
    return this;
  }

  /**
   * Used for GCID filter. Unlike other grammar, for now this is populated in Superroot (currently
   * based on QBLD classification, and an allowlist of GCID).
   * @return value or {@code null} for none
   */
  public NlpSemanticParsingLocalGcidConstraint getGcidConstraint() {
    return gcidConstraint;
  }

  /**
   * Used for GCID filter. Unlike other grammar, for now this is populated in Superroot (currently
   * based on QBLD classification, and an allowlist of GCID).
   * @param gcidConstraint gcidConstraint or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setGcidConstraint(NlpSemanticParsingLocalGcidConstraint gcidConstraint) {
    this.gcidConstraint = gcidConstraint;
    return this;
  }

  /**
   * Used for health insurance filter populator.
   * @return value or {@code null} for none
   */
  public NlpSemanticParsingLocalHealthInsuranceConstraint getHealthInsurance() {
    return healthInsurance;
  }

  /**
   * Used for health insurance filter populator.
   * @param healthInsurance healthInsurance or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setHealthInsurance(NlpSemanticParsingLocalHealthInsuranceConstraint healthInsurance) {
    this.healthInsurance = healthInsurance;
    return this;
  }

  /**
   * Some constraints are also hyper-reliable, such as [brunch] and [coffee].
   * @return value or {@code null} for none
   */
  public NlpSemanticParsingLocalHyperReliableData getHyperReliableData() {
    return hyperReliableData;
  }

  /**
   * Some constraints are also hyper-reliable, such as [brunch] and [coffee].
   * @param hyperReliableData hyperReliableData or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setHyperReliableData(NlpSemanticParsingLocalHyperReliableData hyperReliableData) {
    this.hyperReliableData = hyperReliableData;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public NlpSemanticParsingLocalMenuItem getMenuItem() {
    return menuItem;
  }

  /**
   * @param menuItem menuItem or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setMenuItem(NlpSemanticParsingLocalMenuItem menuItem) {
    this.menuItem = menuItem;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getNew() {
    return new__;
  }

  /**
   * @param new__ new__ or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setNew(java.lang.Boolean new__) {
    this.new__ = new__;
    return this;
  }

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

  /**
   * @param numBytes numBytes or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setNumBytes(java.lang.Integer numBytes) {
    this.numBytes = numBytes;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getOpen24Hours() {
    return open24Hours;
  }

  /**
   * @param open24Hours open24Hours or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setOpen24Hours(java.lang.Boolean open24Hours) {
    this.open24Hours = open24Hours;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public NlpSemanticParsingLocalPriceConstraint getPrice() {
    return price;
  }

  /**
   * @param price price or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setPrice(NlpSemanticParsingLocalPriceConstraint price) {
    this.price = price;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public NlpSemanticParsingLocalQualityConstraint getQuality() {
    return quality;
  }

  /**
   * @param quality quality or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setQuality(NlpSemanticParsingLocalQualityConstraint quality) {
    this.quality = quality;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public NlpSemanticParsingLocalRoomConstraint getRooms() {
    return rooms;
  }

  /**
   * @param rooms rooms or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setRooms(NlpSemanticParsingLocalRoomConstraint rooms) {
    this.rooms = rooms;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public NlpSemanticParsingLocalScalableAttribute getScalableAttribute() {
    return scalableAttribute;
  }

  /**
   * @param scalableAttribute scalableAttribute or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setScalableAttribute(NlpSemanticParsingLocalScalableAttribute scalableAttribute) {
    this.scalableAttribute = scalableAttribute;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public NlpSemanticParsingLocalServiceConstraint getService() {
    return service;
  }

  /**
   * @param service service or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setService(NlpSemanticParsingLocalServiceConstraint service) {
    this.service = service;
    return this;
  }

  /**
   * The span, in the raw input, which corresponds to this constraint, expressed as a byte offset
   * and byte size.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getStartByte() {
    return startByte;
  }

  /**
   * The span, in the raw input, which corresponds to this constraint, expressed as a byte offset
   * and byte size.
   * @param startByte startByte or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setStartByte(java.lang.Integer startByte) {
    this.startByte = startByte;
    return this;
  }

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

  /**
   * @param text text or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setText(java.lang.String text) {
    this.text = text;
    return this;
  }

  /**
   * Experimental, may change.
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getUngroundedConstraint() {
    return ungroundedConstraint;
  }

  /**
   * Experimental, may change.
   * @param ungroundedConstraint ungroundedConstraint or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setUngroundedConstraint(java.lang.Boolean ungroundedConstraint) {
    this.ungroundedConstraint = ungroundedConstraint;
    return this;
  }

  /**
   * Used to remove all constraints, e.g. [forget all the filters]
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getUnspecified() {
    return unspecified;
  }

  /**
   * Used to remove all constraints, e.g. [forget all the filters]
   * @param unspecified unspecified or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setUnspecified(java.lang.Boolean unspecified) {
    this.unspecified = unspecified;
    return this;
  }

  /**
   * Used for vaccine refinement: go/covid-vaccine-refinement.
   * @return value or {@code null} for none
   */
  public java.lang.String getVaccineType() {
    return vaccineType;
  }

  /**
   * Used for vaccine refinement: go/covid-vaccine-refinement.
   * @param vaccineType vaccineType or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setVaccineType(java.lang.String vaccineType) {
    this.vaccineType = vaccineType;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public NlpSemanticParsingLocalVisitHistoryConstraint getVisitHistory() {
    return visitHistory;
  }

  /**
   * @param visitHistory visitHistory or {@code null} for none
   */
  public NlpSemanticParsingLocalLocationConstraint setVisitHistory(NlpSemanticParsingLocalVisitHistoryConstraint visitHistory) {
    this.visitHistory = visitHistory;
    return this;
  }

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

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

}
