/*
 * 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/devtools/cloudbuild/v1/cloudbuild.proto

package com.google.cloudbuild.v1;

public interface SourceOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.Source)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * If provided, get the source from this location in Google Cloud Storage.
   * </pre>
   *
   * <code>.google.devtools.cloudbuild.v1.StorageSource storage_source = 2;</code>
   *
   * @return Whether the storageSource field is set.
   */
  boolean hasStorageSource();
  /**
   *
   *
   * <pre>
   * If provided, get the source from this location in Google Cloud Storage.
   * </pre>
   *
   * <code>.google.devtools.cloudbuild.v1.StorageSource storage_source = 2;</code>
   *
   * @return The storageSource.
   */
  com.google.cloudbuild.v1.StorageSource getStorageSource();
  /**
   *
   *
   * <pre>
   * If provided, get the source from this location in Google Cloud Storage.
   * </pre>
   *
   * <code>.google.devtools.cloudbuild.v1.StorageSource storage_source = 2;</code>
   */
  com.google.cloudbuild.v1.StorageSourceOrBuilder getStorageSourceOrBuilder();

  /**
   *
   *
   * <pre>
   * If provided, get the source from this location in a Cloud Source
   * Repository.
   * </pre>
   *
   * <code>.google.devtools.cloudbuild.v1.RepoSource repo_source = 3;</code>
   *
   * @return Whether the repoSource field is set.
   */
  boolean hasRepoSource();
  /**
   *
   *
   * <pre>
   * If provided, get the source from this location in a Cloud Source
   * Repository.
   * </pre>
   *
   * <code>.google.devtools.cloudbuild.v1.RepoSource repo_source = 3;</code>
   *
   * @return The repoSource.
   */
  com.google.cloudbuild.v1.RepoSource getRepoSource();
  /**
   *
   *
   * <pre>
   * If provided, get the source from this location in a Cloud Source
   * Repository.
   * </pre>
   *
   * <code>.google.devtools.cloudbuild.v1.RepoSource repo_source = 3;</code>
   */
  com.google.cloudbuild.v1.RepoSourceOrBuilder getRepoSourceOrBuilder();

  /**
   *
   *
   * <pre>
   * If provided, get the source from this Git repository.
   * </pre>
   *
   * <code>.google.devtools.cloudbuild.v1.GitSource git_source = 5;</code>
   *
   * @return Whether the gitSource field is set.
   */
  boolean hasGitSource();
  /**
   *
   *
   * <pre>
   * If provided, get the source from this Git repository.
   * </pre>
   *
   * <code>.google.devtools.cloudbuild.v1.GitSource git_source = 5;</code>
   *
   * @return The gitSource.
   */
  com.google.cloudbuild.v1.GitSource getGitSource();
  /**
   *
   *
   * <pre>
   * If provided, get the source from this Git repository.
   * </pre>
   *
   * <code>.google.devtools.cloudbuild.v1.GitSource git_source = 5;</code>
   */
  com.google.cloudbuild.v1.GitSourceOrBuilder getGitSourceOrBuilder();

  /**
   *
   *
   * <pre>
   * If provided, get the source from this manifest in Google Cloud Storage.
   * This feature is in Preview; see description
   * [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
   * </pre>
   *
   * <code>.google.devtools.cloudbuild.v1.StorageSourceManifest storage_source_manifest = 8;</code>
   *
   * @return Whether the storageSourceManifest field is set.
   */
  boolean hasStorageSourceManifest();
  /**
   *
   *
   * <pre>
   * If provided, get the source from this manifest in Google Cloud Storage.
   * This feature is in Preview; see description
   * [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
   * </pre>
   *
   * <code>.google.devtools.cloudbuild.v1.StorageSourceManifest storage_source_manifest = 8;</code>
   *
   * @return The storageSourceManifest.
   */
  com.google.cloudbuild.v1.StorageSourceManifest getStorageSourceManifest();
  /**
   *
   *
   * <pre>
   * If provided, get the source from this manifest in Google Cloud Storage.
   * This feature is in Preview; see description
   * [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
   * </pre>
   *
   * <code>.google.devtools.cloudbuild.v1.StorageSourceManifest storage_source_manifest = 8;</code>
   */
  com.google.cloudbuild.v1.StorageSourceManifestOrBuilder getStorageSourceManifestOrBuilder();

  public com.google.cloudbuild.v1.Source.SourceCase getSourceCase();
}
