/*
 * 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.mybusinessbusinessinformation.v1.model;

/**
 * Represents a location that was modified by Google.
 *
 * <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 My Business Business Information 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 GoogleUpdatedLocation extends com.google.api.client.json.GenericJson {

  /**
   * The fields that Google updated.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String diffMask;

  /**
   * The Google-updated version of this location.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private Location location;

  /**
   * The fields that have pending edits that haven't yet been pushed to Maps and Search.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String pendingMask;

  /**
   * The fields that Google updated.
   * @return value or {@code null} for none
   */
  public String getDiffMask() {
    return diffMask;
  }

  /**
   * The fields that Google updated.
   * @param diffMask diffMask or {@code null} for none
   */
  public GoogleUpdatedLocation setDiffMask(String diffMask) {
    this.diffMask = diffMask;
    return this;
  }

  /**
   * The Google-updated version of this location.
   * @return value or {@code null} for none
   */
  public Location getLocation() {
    return location;
  }

  /**
   * The Google-updated version of this location.
   * @param location location or {@code null} for none
   */
  public GoogleUpdatedLocation setLocation(Location location) {
    this.location = location;
    return this;
  }

  /**
   * The fields that have pending edits that haven't yet been pushed to Maps and Search.
   * @return value or {@code null} for none
   */
  public String getPendingMask() {
    return pendingMask;
  }

  /**
   * The fields that have pending edits that haven't yet been pushed to Maps and Search.
   * @param pendingMask pendingMask or {@code null} for none
   */
  public GoogleUpdatedLocation setPendingMask(String pendingMask) {
    this.pendingMask = pendingMask;
    return this;
  }

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

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

}
