Cloud Debugger is deprecated and will be shutdown May 31, 2023. See the deprecations page and release notes for more information.

Package google.devtools.source.v1

Stay organized with collections Save and categorize content based on your preferences.

Index

AliasContext

An alias to a repo revision.

Fields
kind

Kind

The alias kind.

name

string

The alias name.

Kind

The type of an Alias.

Enums
ANY Do not use.
FIXED Git tag
MOVABLE Git branch
OTHER OTHER is used to specify non-standard aliases, those not of the kinds above. For example, if a Git repo has a ref named "refs/foo/bar", it is considered to be of kind OTHER.

CloudRepoSourceContext

A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo hosted by the Google Cloud Platform).

Fields
repo_id

RepoId

The ID of the repo.

Union field revision. A revision in a cloud repository can be identified by either its revision ID or its Alias. revision can be only one of the following:
revision_id

string

A revision ID.

alias_name
(deprecated)

string

The name of an alias (branch, tag, etc.).

alias_context

AliasContext

An alias, which may be a branch or tag.

CloudWorkspaceId

A CloudWorkspaceId is a unique identifier for a cloud workspace. A cloud workspace is a place associated with a repo where modified files can be stored before they are committed.

Fields
repo_id

RepoId

The ID of the repo containing the workspace.

name

string

The unique name of the workspace within the repo. This is the name chosen by the client in the Source API's CreateWorkspace method.

CloudWorkspaceSourceContext

A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.

Fields
workspace_id

CloudWorkspaceId

The ID of the workspace.

snapshot_id

string

The ID of the snapshot. An empty snapshot_id refers to the most recent snapshot.

ExtendedSourceContext

An ExtendedSourceContext is a SourceContext combined with additional details describing the context.

Fields
context

SourceContext

Any source context.

labels

map<string, string>

Labels with user defined metadata.

GerritSourceContext

A SourceContext referring to a Gerrit project.

Fields
host_uri

string

The URI of a running Gerrit instance.

gerrit_project

string

The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is hostURI/project.

Union field revision. A revision in a Gerrit project can be identified by either its revision ID or its alias. revision can be only one of the following:
revision_id

string

A revision (commit) ID.

alias_name
(deprecated)

string

The name of an alias (branch, tag, etc.).

alias_context

AliasContext

An alias, which may be a branch or tag.

GitSourceContext

A GitSourceContext denotes a particular revision in a third party Git repository (e.g. GitHub).

Fields
url

string

Git repository URL.

revision_id

string

Git commit hash. required.

ProjectRepoId

Selects a repo using a Google Cloud Platform project ID (e.g. winged-cargo-31) and a repo name within that project.

Fields
project_id

string

The ID of the project.

repo_name

string

The name of the repo. Leave empty for the default repo.

RepoId

A unique identifier for a cloud repo.

Fields
Union field id. A cloud repository can be identified by either its project ID and repository name combination, or its globally unique identifier. id can be only one of the following:
project_repo_id

ProjectRepoId

A combination of a project ID and a repo name.

uid

string

A server-assigned, globally unique identifier.

SourceContext

A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.

Fields
Union field context. A SourceContext can refer any one of the following types of repositories. context can be only one of the following:
cloud_repo

CloudRepoSourceContext

A SourceContext referring to a revision in a cloud repo.

cloud_workspace

CloudWorkspaceSourceContext

A SourceContext referring to a snapshot in a cloud workspace.

gerrit

GerritSourceContext

A SourceContext referring to a Gerrit project.

git

GitSourceContext

A SourceContext referring to any third party Git repo (e.g. GitHub).