/*
 * 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.containeranalysis.v1beta1.model;

/**
 * An entity that can have metadata. For example, a Docker image.
 *
 * <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 Container Analysis 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 Resource extends com.google.api.client.json.GenericJson {

  /**
   * Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the
   * Docker digest.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private Hash contentHash;

  /**
   * Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a
   * Docker image - "Debian".
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * Required. The unique URI of the resource. For example,
   * `https://gcr.io/project/image@sha256:foo` for a Docker image.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String uri;

  /**
   * Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the
   * Docker digest.
   * @return value or {@code null} for none
   */
  public Hash getContentHash() {
    return contentHash;
  }

  /**
   * Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the
   * Docker digest.
   * @param contentHash contentHash or {@code null} for none
   */
  public Resource setContentHash(Hash contentHash) {
    this.contentHash = contentHash;
    return this;
  }

  /**
   * Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a
   * Docker image - "Debian".
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a
   * Docker image - "Debian".
   * @param name name or {@code null} for none
   */
  public Resource setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * Required. The unique URI of the resource. For example,
   * `https://gcr.io/project/image@sha256:foo` for a Docker image.
   * @return value or {@code null} for none
   */
  public java.lang.String getUri() {
    return uri;
  }

  /**
   * Required. The unique URI of the resource. For example,
   * `https://gcr.io/project/image@sha256:foo` for a Docker image.
   * @param uri uri or {@code null} for none
   */
  public Resource setUri(java.lang.String uri) {
    this.uri = uri;
    return this;
  }

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

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

}
