Interface SourceContextOrBuilder (1.48.0)

public interface SourceContextOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCloudRepo()

public abstract CloudRepoSourceContext getCloudRepo()

A SourceContext referring to a revision in a cloud repo.

.google.devtools.source.v1.CloudRepoSourceContext cloud_repo = 1;

Returns
Type Description
CloudRepoSourceContext

The cloudRepo.

getCloudRepoOrBuilder()

public abstract CloudRepoSourceContextOrBuilder getCloudRepoOrBuilder()

A SourceContext referring to a revision in a cloud repo.

.google.devtools.source.v1.CloudRepoSourceContext cloud_repo = 1;

Returns
Type Description
CloudRepoSourceContextOrBuilder

getCloudWorkspace()

public abstract CloudWorkspaceSourceContext getCloudWorkspace()

A SourceContext referring to a snapshot in a cloud workspace.

.google.devtools.source.v1.CloudWorkspaceSourceContext cloud_workspace = 2;

Returns
Type Description
CloudWorkspaceSourceContext

The cloudWorkspace.

getCloudWorkspaceOrBuilder()

public abstract CloudWorkspaceSourceContextOrBuilder getCloudWorkspaceOrBuilder()

A SourceContext referring to a snapshot in a cloud workspace.

.google.devtools.source.v1.CloudWorkspaceSourceContext cloud_workspace = 2;

Returns
Type Description
CloudWorkspaceSourceContextOrBuilder

getContextCase()

public abstract SourceContext.ContextCase getContextCase()
Returns
Type Description
SourceContext.ContextCase

getGerrit()

public abstract GerritSourceContext getGerrit()

A SourceContext referring to a Gerrit project.

.google.devtools.source.v1.GerritSourceContext gerrit = 3;

Returns
Type Description
GerritSourceContext

The gerrit.

getGerritOrBuilder()

public abstract GerritSourceContextOrBuilder getGerritOrBuilder()

A SourceContext referring to a Gerrit project.

.google.devtools.source.v1.GerritSourceContext gerrit = 3;

Returns
Type Description
GerritSourceContextOrBuilder

getGit()

public abstract GitSourceContext getGit()

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

.google.devtools.source.v1.GitSourceContext git = 6;

Returns
Type Description
GitSourceContext

The git.

getGitOrBuilder()

public abstract GitSourceContextOrBuilder getGitOrBuilder()

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

.google.devtools.source.v1.GitSourceContext git = 6;

Returns
Type Description
GitSourceContextOrBuilder

hasCloudRepo()

public abstract boolean hasCloudRepo()

A SourceContext referring to a revision in a cloud repo.

.google.devtools.source.v1.CloudRepoSourceContext cloud_repo = 1;

Returns
Type Description
boolean

Whether the cloudRepo field is set.

hasCloudWorkspace()

public abstract boolean hasCloudWorkspace()

A SourceContext referring to a snapshot in a cloud workspace.

.google.devtools.source.v1.CloudWorkspaceSourceContext cloud_workspace = 2;

Returns
Type Description
boolean

Whether the cloudWorkspace field is set.

hasGerrit()

public abstract boolean hasGerrit()

A SourceContext referring to a Gerrit project.

.google.devtools.source.v1.GerritSourceContext gerrit = 3;

Returns
Type Description
boolean

Whether the gerrit field is set.

hasGit()

public abstract boolean hasGit()

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

.google.devtools.source.v1.GitSourceContext git = 6;

Returns
Type Description
boolean

Whether the git field is set.