/*
 * 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/source/v1/source_context.proto

package com.google.devtools.source.v1;

public interface SourceContextOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.devtools.source.v1.SourceContext)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * A SourceContext referring to a revision in a cloud repo.
   * </pre>
   *
   * <code>.google.devtools.source.v1.CloudRepoSourceContext cloud_repo = 1;</code>
   *
   * @return Whether the cloudRepo field is set.
   */
  boolean hasCloudRepo();
  /**
   *
   *
   * <pre>
   * A SourceContext referring to a revision in a cloud repo.
   * </pre>
   *
   * <code>.google.devtools.source.v1.CloudRepoSourceContext cloud_repo = 1;</code>
   *
   * @return The cloudRepo.
   */
  com.google.devtools.source.v1.CloudRepoSourceContext getCloudRepo();
  /**
   *
   *
   * <pre>
   * A SourceContext referring to a revision in a cloud repo.
   * </pre>
   *
   * <code>.google.devtools.source.v1.CloudRepoSourceContext cloud_repo = 1;</code>
   */
  com.google.devtools.source.v1.CloudRepoSourceContextOrBuilder getCloudRepoOrBuilder();

  /**
   *
   *
   * <pre>
   * A SourceContext referring to a snapshot in a cloud workspace.
   * </pre>
   *
   * <code>.google.devtools.source.v1.CloudWorkspaceSourceContext cloud_workspace = 2;</code>
   *
   * @return Whether the cloudWorkspace field is set.
   */
  boolean hasCloudWorkspace();
  /**
   *
   *
   * <pre>
   * A SourceContext referring to a snapshot in a cloud workspace.
   * </pre>
   *
   * <code>.google.devtools.source.v1.CloudWorkspaceSourceContext cloud_workspace = 2;</code>
   *
   * @return The cloudWorkspace.
   */
  com.google.devtools.source.v1.CloudWorkspaceSourceContext getCloudWorkspace();
  /**
   *
   *
   * <pre>
   * A SourceContext referring to a snapshot in a cloud workspace.
   * </pre>
   *
   * <code>.google.devtools.source.v1.CloudWorkspaceSourceContext cloud_workspace = 2;</code>
   */
  com.google.devtools.source.v1.CloudWorkspaceSourceContextOrBuilder getCloudWorkspaceOrBuilder();

  /**
   *
   *
   * <pre>
   * A SourceContext referring to a Gerrit project.
   * </pre>
   *
   * <code>.google.devtools.source.v1.GerritSourceContext gerrit = 3;</code>
   *
   * @return Whether the gerrit field is set.
   */
  boolean hasGerrit();
  /**
   *
   *
   * <pre>
   * A SourceContext referring to a Gerrit project.
   * </pre>
   *
   * <code>.google.devtools.source.v1.GerritSourceContext gerrit = 3;</code>
   *
   * @return The gerrit.
   */
  com.google.devtools.source.v1.GerritSourceContext getGerrit();
  /**
   *
   *
   * <pre>
   * A SourceContext referring to a Gerrit project.
   * </pre>
   *
   * <code>.google.devtools.source.v1.GerritSourceContext gerrit = 3;</code>
   */
  com.google.devtools.source.v1.GerritSourceContextOrBuilder getGerritOrBuilder();

  /**
   *
   *
   * <pre>
   * A SourceContext referring to any third party Git repo (e.g. GitHub).
   * </pre>
   *
   * <code>.google.devtools.source.v1.GitSourceContext git = 6;</code>
   *
   * @return Whether the git field is set.
   */
  boolean hasGit();
  /**
   *
   *
   * <pre>
   * A SourceContext referring to any third party Git repo (e.g. GitHub).
   * </pre>
   *
   * <code>.google.devtools.source.v1.GitSourceContext git = 6;</code>
   *
   * @return The git.
   */
  com.google.devtools.source.v1.GitSourceContext getGit();
  /**
   *
   *
   * <pre>
   * A SourceContext referring to any third party Git repo (e.g. GitHub).
   * </pre>
   *
   * <code>.google.devtools.source.v1.GitSourceContext git = 6;</code>
   */
  com.google.devtools.source.v1.GitSourceContextOrBuilder getGitOrBuilder();

  public com.google.devtools.source.v1.SourceContext.ContextCase getContextCase();
}
