Class GerritSourceContext.Builder (1.27.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 1.60.0 (latest)
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.49.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.1.10
publicstaticfinalclass GerritSourceContext.BuilderextendsGeneratedMessageV3.Builder<GerritSourceContext.Builder>implementsGerritSourceContextOrBuilderA SourceContext referring to a Gerrit project.
Protobuf type google.devtools.source.v1.GerritSourceContext
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GerritSourceContext.BuilderImplements
GerritSourceContextOrBuilderInherited Members
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 |
|
build()
publicGerritSourceContextbuild()| Returns | |
|---|---|
| Type | Description |
GerritSourceContext |
|
buildPartial()
publicGerritSourceContextbuildPartial()| Returns | |
|---|---|
| Type | Description |
GerritSourceContext |
|
clear()
publicGerritSourceContext.Builderclear()| Returns | |
|---|---|
| Type | Description |
GerritSourceContext.Builder |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicGerritSourceContext.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GerritSourceContext.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalGerritSourceContext.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
GerritSourceContext.Builder |
|
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 |
|
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 |
|
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 |
|