# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/devtools/source/v1/source_context.proto

require 'google/protobuf'

require 'google/api/annotations_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
  add_message "google.devtools.source.v1.SourceContext" do
    oneof :context do
      optional :cloud_repo, :message, 1, "google.devtools.source.v1.CloudRepoSourceContext"
      optional :cloud_workspace, :message, 2, "google.devtools.source.v1.CloudWorkspaceSourceContext"
      optional :gerrit, :message, 3, "google.devtools.source.v1.GerritSourceContext"
      optional :git, :message, 6, "google.devtools.source.v1.GitSourceContext"
    end
  end
  add_message "google.devtools.source.v1.ExtendedSourceContext" do
    optional :context, :message, 1, "google.devtools.source.v1.SourceContext"
    map :labels, :string, :string, 2
  end
  add_message "google.devtools.source.v1.AliasContext" do
    optional :kind, :enum, 1, "google.devtools.source.v1.AliasContext.Kind"
    optional :name, :string, 2
  end
  add_enum "google.devtools.source.v1.AliasContext.Kind" do
    value :ANY, 0
    value :FIXED, 1
    value :MOVABLE, 2
    value :OTHER, 4
  end
  add_message "google.devtools.source.v1.CloudRepoSourceContext" do
    optional :repo_id, :message, 1, "google.devtools.source.v1.RepoId"
    oneof :revision do
      optional :revision_id, :string, 2
      optional :alias_name, :string, 3
      optional :alias_context, :message, 4, "google.devtools.source.v1.AliasContext"
    end
  end
  add_message "google.devtools.source.v1.CloudWorkspaceSourceContext" do
    optional :workspace_id, :message, 1, "google.devtools.source.v1.CloudWorkspaceId"
    optional :snapshot_id, :string, 2
  end
  add_message "google.devtools.source.v1.GerritSourceContext" do
    optional :host_uri, :string, 1
    optional :gerrit_project, :string, 2
    oneof :revision do
      optional :revision_id, :string, 3
      optional :alias_name, :string, 4
      optional :alias_context, :message, 5, "google.devtools.source.v1.AliasContext"
    end
  end
  add_message "google.devtools.source.v1.GitSourceContext" do
    optional :url, :string, 1
    optional :revision_id, :string, 2
  end
  add_message "google.devtools.source.v1.RepoId" do
    oneof :id do
      optional :project_repo_id, :message, 1, "google.devtools.source.v1.ProjectRepoId"
      optional :uid, :string, 2
    end
  end
  add_message "google.devtools.source.v1.ProjectRepoId" do
    optional :project_id, :string, 1
    optional :repo_name, :string, 2
  end
  add_message "google.devtools.source.v1.CloudWorkspaceId" do
    optional :repo_id, :message, 1, "google.devtools.source.v1.RepoId"
    optional :name, :string, 2
  end
end

module Google
  module Devtools
    module Source
      module V1
        SourceContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.source.v1.SourceContext").msgclass
        ExtendedSourceContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.source.v1.ExtendedSourceContext").msgclass
        AliasContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.source.v1.AliasContext").msgclass
        AliasContext::Kind = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.source.v1.AliasContext.Kind").enummodule
        CloudRepoSourceContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.source.v1.CloudRepoSourceContext").msgclass
        CloudWorkspaceSourceContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.source.v1.CloudWorkspaceSourceContext").msgclass
        GerritSourceContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.source.v1.GerritSourceContext").msgclass
        GitSourceContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.source.v1.GitSourceContext").msgclass
        RepoId = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.source.v1.RepoId").msgclass
        ProjectRepoId = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.source.v1.ProjectRepoId").msgclass
        CloudWorkspaceId = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.source.v1.CloudWorkspaceId").msgclass
      end
    end
  end
end
