Class GerritSourceContext.Builder (1.9.0)

publicstaticfinalclass GerritSourceContext.BuilderextendsGeneratedMessageV3.Builder<GerritSourceContext.Builder>implementsGerritSourceContextOrBuilder

A SourceContext referring to a Gerrit project.

Protobuf type google.devtools.source.v1.GerritSourceContext

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicGerritSourceContext.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

build()

publicGerritSourceContextbuild()
Returns
Type Description

buildPartial()

publicGerritSourceContextbuildPartial()
Returns
Type Description

clear()

publicGerritSourceContext.Builderclear()
Returns
Type Description
Overrides

clearAliasContext()

publicGerritSourceContext.BuilderclearAliasContext()

An alias, which may be a branch or tag.

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

Returns
Type Description

clearAliasName() (deprecated)

publicGerritSourceContext.BuilderclearAliasName()

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
GerritSourceContext.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicGerritSourceContext.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearGerritProject()

publicGerritSourceContext.BuilderclearGerritProject()

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
GerritSourceContext.Builder

This builder for chaining.

clearHostUri()

publicGerritSourceContext.BuilderclearHostUri()

The URI of a running Gerrit instance.

string host_uri = 1;

Returns
Type Description
GerritSourceContext.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicGerritSourceContext.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
Overrides

clearRevision()

publicGerritSourceContext.BuilderclearRevision()
Returns
Type Description

clearRevisionId()

publicGerritSourceContext.BuilderclearRevisionId()

A revision (commit) ID.

string revision_id = 3;

Returns
Type Description
GerritSourceContext.Builder

This builder for chaining.

clone()

publicGerritSourceContext.Builderclone()
Returns
Type Description
Overrides

getAliasContext()

publicAliasContextgetAliasContext()

An alias, which may be a branch or tag.

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

Returns
Type Description
AliasContext

The aliasContext.

getAliasContextBuilder()

publicAliasContext.BuildergetAliasContextBuilder()

An alias, which may be a branch or tag.

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

Returns
Type Description

getAliasContextOrBuilder()

publicAliasContextOrBuildergetAliasContextOrBuilder()

An alias, which may be a branch or tag.

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

Returns
Type Description

getAliasName() (deprecated)

publicStringgetAliasName()

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)

publicByteStringgetAliasNameBytes()

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.

getDefaultInstanceForType()

publicGerritSourceContextgetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Overrides

getGerritProject()

publicStringgetGerritProject()

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()

publicByteStringgetGerritProjectBytes()

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()

publicStringgetHostUri()

The URI of a running Gerrit instance.

string host_uri = 1;

Returns
Type Description
String

The hostUri.

getHostUriBytes()

publicByteStringgetHostUriBytes()

The URI of a running Gerrit instance.

string host_uri = 1;

Returns
Type Description
ByteString

The bytes for hostUri.

getRevisionCase()

publicGerritSourceContext.RevisionCasegetRevisionCase()
Returns
Type Description

getRevisionId()

publicStringgetRevisionId()

A revision (commit) ID.

string revision_id = 3;

Returns
Type Description
String

The revisionId.

getRevisionIdBytes()

publicByteStringgetRevisionIdBytes()

A revision (commit) ID.

string revision_id = 3;

Returns
Type Description
ByteString

The bytes for revisionId.

hasAliasContext()

publicbooleanhasAliasContext()

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)

publicbooleanhasAliasName()

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()

publicbooleanhasRevisionId()

A revision (commit) ID.

string revision_id = 3;

Returns
Type Description
boolean

Whether the revisionId field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeAliasContext(AliasContext value)

publicGerritSourceContext.BuildermergeAliasContext(AliasContextvalue)

An alias, which may be a branch or tag.

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

Parameter
Name Description
value AliasContext
Returns
Type Description

mergeFrom(GerritSourceContext other)

publicGerritSourceContext.BuildermergeFrom(GerritSourceContextother)
Parameter
Name Description
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicGerritSourceContext.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicGerritSourceContext.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalGerritSourceContext.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setAliasContext(AliasContext value)

publicGerritSourceContext.BuildersetAliasContext(AliasContextvalue)

An alias, which may be a branch or tag.

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

Parameter
Name Description
value AliasContext
Returns
Type Description

setAliasContext(AliasContext.Builder builderForValue)

publicGerritSourceContext.BuildersetAliasContext(AliasContext.BuilderbuilderForValue)

An alias, which may be a branch or tag.

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

Parameter
Name Description
builderForValue AliasContext.Builder
Returns
Type Description

setAliasName(String value) (deprecated)

publicGerritSourceContext.BuildersetAliasName(Stringvalue)

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];

Parameter
Name Description
value String

The aliasName to set.

Returns
Type Description
GerritSourceContext.Builder

This builder for chaining.

setAliasNameBytes(ByteString value) (deprecated)

publicGerritSourceContext.BuildersetAliasNameBytes(ByteStringvalue)

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];

Parameter
Name Description
value ByteString

The bytes for aliasName to set.

Returns
Type Description
GerritSourceContext.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicGerritSourceContext.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

setGerritProject(String value)

publicGerritSourceContext.BuildersetGerritProject(Stringvalue)

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;

Parameter
Name Description
value String

The gerritProject to set.

Returns
Type Description
GerritSourceContext.Builder

This builder for chaining.

setGerritProjectBytes(ByteString value)

publicGerritSourceContext.BuildersetGerritProjectBytes(ByteStringvalue)

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;

Parameter
Name Description
value ByteString

The bytes for gerritProject to set.

Returns
Type Description
GerritSourceContext.Builder

This builder for chaining.

setHostUri(String value)

publicGerritSourceContext.BuildersetHostUri(Stringvalue)

The URI of a running Gerrit instance.

string host_uri = 1;

Parameter
Name Description
value String

The hostUri to set.

Returns
Type Description
GerritSourceContext.Builder

This builder for chaining.

setHostUriBytes(ByteString value)

publicGerritSourceContext.BuildersetHostUriBytes(ByteStringvalue)

The URI of a running Gerrit instance.

string host_uri = 1;

Parameter
Name Description
value ByteString

The bytes for hostUri to set.

Returns
Type Description
GerritSourceContext.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicGerritSourceContext.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
Overrides

setRevisionId(String value)

publicGerritSourceContext.BuildersetRevisionId(Stringvalue)

A revision (commit) ID.

string revision_id = 3;

Parameter
Name Description
value String

The revisionId to set.

Returns
Type Description
GerritSourceContext.Builder

This builder for chaining.

setRevisionIdBytes(ByteString value)

publicGerritSourceContext.BuildersetRevisionIdBytes(ByteStringvalue)

A revision (commit) ID.

string revision_id = 3;

Parameter
Name Description
value ByteString

The bytes for revisionId to set.

Returns
Type Description
GerritSourceContext.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalGerritSourceContext.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

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.