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

/**
 * Distribution license information. Next ID: 6
 *
 * <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 ResearchScienceSearchLicense extends com.google.api.client.json.GenericJson {

  /**
   * A fingerprint id generated based on the license_class, URL or text. Since the knowledge graph
   * requires a unique string id for the license but any filed of license can be empty, a
   * fingerprint id can serve as a compact identifier representing the non-empty sub-fields.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String id;

  /**
   * A value from a controlled vocabulary that uniquely identifies a license. Unless this is set to
   * LICENSE_CLASS_UNDEFINED_NO_MATCH or LICENSE_CLASS_UNDEFINED_CONTRADICTING_MATCHES other fields
   * in this message should be empty.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String licenseClass;

  /**
   * mid for the license.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String licenseMid;

  /**
   * The text (usually, the name) of the distribution license.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String text;

  /**
   * The url for the distribution license.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String url;

  /**
   * A fingerprint id generated based on the license_class, URL or text. Since the knowledge graph
   * requires a unique string id for the license but any filed of license can be empty, a
   * fingerprint id can serve as a compact identifier representing the non-empty sub-fields.
   * @return value or {@code null} for none
   */
  public java.lang.String getId() {
    return id;
  }

  /**
   * A fingerprint id generated based on the license_class, URL or text. Since the knowledge graph
   * requires a unique string id for the license but any filed of license can be empty, a
   * fingerprint id can serve as a compact identifier representing the non-empty sub-fields.
   * @param id id or {@code null} for none
   */
  public ResearchScienceSearchLicense setId(java.lang.String id) {
    this.id = id;
    return this;
  }

  /**
   * A value from a controlled vocabulary that uniquely identifies a license. Unless this is set to
   * LICENSE_CLASS_UNDEFINED_NO_MATCH or LICENSE_CLASS_UNDEFINED_CONTRADICTING_MATCHES other fields
   * in this message should be empty.
   * @return value or {@code null} for none
   */
  public java.lang.String getLicenseClass() {
    return licenseClass;
  }

  /**
   * A value from a controlled vocabulary that uniquely identifies a license. Unless this is set to
   * LICENSE_CLASS_UNDEFINED_NO_MATCH or LICENSE_CLASS_UNDEFINED_CONTRADICTING_MATCHES other fields
   * in this message should be empty.
   * @param licenseClass licenseClass or {@code null} for none
   */
  public ResearchScienceSearchLicense setLicenseClass(java.lang.String licenseClass) {
    this.licenseClass = licenseClass;
    return this;
  }

  /**
   * mid for the license.
   * @return value or {@code null} for none
   */
  public java.lang.String getLicenseMid() {
    return licenseMid;
  }

  /**
   * mid for the license.
   * @param licenseMid licenseMid or {@code null} for none
   */
  public ResearchScienceSearchLicense setLicenseMid(java.lang.String licenseMid) {
    this.licenseMid = licenseMid;
    return this;
  }

  /**
   * The text (usually, the name) of the distribution license.
   * @return value or {@code null} for none
   */
  public java.lang.String getText() {
    return text;
  }

  /**
   * The text (usually, the name) of the distribution license.
   * @param text text or {@code null} for none
   */
  public ResearchScienceSearchLicense setText(java.lang.String text) {
    this.text = text;
    return this;
  }

  /**
   * The url for the distribution license.
   * @return value or {@code null} for none
   */
  public java.lang.String getUrl() {
    return url;
  }

  /**
   * The url for the distribution license.
   * @param url url or {@code null} for none
   */
  public ResearchScienceSearchLicense setUrl(java.lang.String url) {
    this.url = url;
    return this;
  }

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

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

}
