Interface GerritSourceContextOrBuilder (1.44.0)

publicinterface GerritSourceContextOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getAliasContext()

publicabstractAliasContextgetAliasContext()

An alias, which may be a branch or tag.

.google.devtools.source.v1.AliasContext alias_context = 5;

Returns
Type Description
AliasContext

The aliasContext.

getAliasContextOrBuilder()

publicabstractAliasContextOrBuildergetAliasContextOrBuilder()

An alias, which may be a branch or tag.

.google.devtools.source.v1.AliasContext alias_context = 5;

Returns
Type Description
AliasContextOrBuilder

getAliasName() (deprecated)

publicabstractStringgetAliasName()

Deprecated. google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=129

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

string alias_name = 4 [deprecated = true];

Returns
Type Description
String

The aliasName.

getAliasNameBytes() (deprecated)

publicabstractByteStringgetAliasNameBytes()

Deprecated. google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=129

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

string alias_name = 4 [deprecated = true];

Returns
Type Description
ByteString

The bytes for aliasName.

getGerritProject()

publicabstractStringgetGerritProject()

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.

string gerrit_project = 2;

Returns
Type Description
String

The gerritProject.

getGerritProjectBytes()

publicabstractByteStringgetGerritProjectBytes()

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.

string gerrit_project = 2;

Returns
Type Description
ByteString

The bytes for gerritProject.

getHostUri()

publicabstractStringgetHostUri()

The URI of a running Gerrit instance.

string host_uri = 1;

Returns
Type Description
String

The hostUri.

getHostUriBytes()

publicabstractByteStringgetHostUriBytes()

The URI of a running Gerrit instance.

string host_uri = 1;

Returns
Type Description
ByteString

The bytes for hostUri.

getRevisionCase()

publicabstractGerritSourceContext.RevisionCasegetRevisionCase()
Returns
Type Description
GerritSourceContext.RevisionCase

getRevisionId()

publicabstractStringgetRevisionId()

A revision (commit) ID.

string revision_id = 3;

Returns
Type Description
String

The revisionId.

getRevisionIdBytes()

publicabstractByteStringgetRevisionIdBytes()

A revision (commit) ID.

string revision_id = 3;

Returns
Type Description
ByteString

The bytes for revisionId.

hasAliasContext()

publicabstractbooleanhasAliasContext()

An alias, which may be a branch or tag.

.google.devtools.source.v1.AliasContext alias_context = 5;

Returns
Type Description
boolean

Whether the aliasContext field is set.

hasAliasName() (deprecated)

publicabstractbooleanhasAliasName()

Deprecated. google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=129

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

string alias_name = 4 [deprecated = true];

Returns
Type Description
boolean

Whether the aliasName field is set.

hasRevisionId()

publicabstractbooleanhasRevisionId()

A revision (commit) ID.

string revision_id = 3;

Returns
Type Description
boolean

Whether the revisionId field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.