/*
 * Copyright 2020 Google LLC
 *
 * 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
 *
 *     https://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.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/apigeeregistry/v1/registry_models.proto

package com.google.cloud.apigeeregistry.v1;

public interface ArtifactOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.apigeeregistry.v1.Artifact)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * Resource name.
   * </pre>
   *
   * <code>string name = 1;</code>
   *
   * @return The name.
   */
  java.lang.String getName();
  /**
   *
   *
   * <pre>
   * Resource name.
   * </pre>
   *
   * <code>string name = 1;</code>
   *
   * @return The bytes for name.
   */
  com.google.protobuf.ByteString getNameBytes();

  /**
   *
   *
   * <pre>
   * Output only. Creation timestamp.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the createTime field is set.
   */
  boolean hasCreateTime();
  /**
   *
   *
   * <pre>
   * Output only. Creation timestamp.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The createTime.
   */
  com.google.protobuf.Timestamp getCreateTime();
  /**
   *
   *
   * <pre>
   * Output only. Creation timestamp.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();

  /**
   *
   *
   * <pre>
   * Output only. Last update timestamp.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the updateTime field is set.
   */
  boolean hasUpdateTime();
  /**
   *
   *
   * <pre>
   * Output only. Last update timestamp.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The updateTime.
   */
  com.google.protobuf.Timestamp getUpdateTime();
  /**
   *
   *
   * <pre>
   * Output only. Last update timestamp.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();

  /**
   *
   *
   * <pre>
   * A content type specifier for the artifact.
   * Content type specifiers are Media Types
   * (https://en.wikipedia.org/wiki/Media_type) with a possible "schema"
   * parameter that specifies a schema for the stored information.
   * Content types can specify compression. Currently only GZip compression is
   * supported (indicated with "+gzip").
   * </pre>
   *
   * <code>string mime_type = 4;</code>
   *
   * @return The mimeType.
   */
  java.lang.String getMimeType();
  /**
   *
   *
   * <pre>
   * A content type specifier for the artifact.
   * Content type specifiers are Media Types
   * (https://en.wikipedia.org/wiki/Media_type) with a possible "schema"
   * parameter that specifies a schema for the stored information.
   * Content types can specify compression. Currently only GZip compression is
   * supported (indicated with "+gzip").
   * </pre>
   *
   * <code>string mime_type = 4;</code>
   *
   * @return The bytes for mimeType.
   */
  com.google.protobuf.ByteString getMimeTypeBytes();

  /**
   *
   *
   * <pre>
   * Output only. The size of the artifact in bytes. If the artifact is gzipped, this is
   * the size of the uncompressed artifact.
   * </pre>
   *
   * <code>int32 size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The sizeBytes.
   */
  int getSizeBytes();

  /**
   *
   *
   * <pre>
   * Output only. A SHA-256 hash of the artifact's contents. If the artifact is gzipped,
   * this is the hash of the uncompressed artifact.
   * </pre>
   *
   * <code>string hash = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The hash.
   */
  java.lang.String getHash();
  /**
   *
   *
   * <pre>
   * Output only. A SHA-256 hash of the artifact's contents. If the artifact is gzipped,
   * this is the hash of the uncompressed artifact.
   * </pre>
   *
   * <code>string hash = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for hash.
   */
  com.google.protobuf.ByteString getHashBytes();

  /**
   *
   *
   * <pre>
   * Input only. The contents of the artifact.
   * Provided by API callers when artifacts are created or replaced.
   * To access the contents of an artifact, use GetArtifactContents.
   * </pre>
   *
   * <code>bytes contents = 7 [(.google.api.field_behavior) = INPUT_ONLY];</code>
   *
   * @return The contents.
   */
  com.google.protobuf.ByteString getContents();
}
