Class GerritSourceContext.Builder (1.27.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
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

publicGerritSourceContextbuild()
Returns
Type Description
GerritSourceContext

buildPartial()

publicGerritSourceContextbuildPartial()
Returns
Type Description
GerritSourceContext

clear()

publicGerritSourceContext.Builderclear()
Returns
Type Description
GerritSourceContext.Builder
Overrides

clearAliasContext()

publicGerritSourceContext.BuilderclearAliasContext()

An alias, which may be a branch or tag.

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

Returns
Type Description
GerritSourceContext.Builder

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
field FieldDescriptor
Returns
Type Description
GerritSourceContext.Builder
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
oneof OneofDescriptor
Returns
Type Description
GerritSourceContext.Builder
Overrides

clearRevision()

publicGerritSourceContext.BuilderclearRevision()
Returns
Type Description
GerritSourceContext.Builder

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

getAliasContextOrBuilder()

publicAliasContextOrBuildergetAliasContextOrBuilder()

An alias, which may be a branch or tag.

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

Returns
Type Description
AliasContextOrBuilder

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
GerritSourceContext

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
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
GerritSourceContext.RevisionCase

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
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
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
GerritSourceContext.Builder

mergeFrom(GerritSourceContext other)

publicGerritSourceContext.BuildermergeFrom(GerritSourceContextother)
Parameter
Name Description
other GerritSourceContext
Returns
Type Description
GerritSourceContext.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicGerritSourceContext.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GerritSourceContext.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalGerritSourceContext.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GerritSourceContext.Builder
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
GerritSourceContext.Builder

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

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
field FieldDescriptor
value Object
Returns
Type Description
GerritSourceContext.Builder
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
field FieldDescriptor
index int
value Object
Returns
Type Description
GerritSourceContext.Builder
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
GerritSourceContext.Builder
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.