Package com.google.devtools.source.v1
Class GerritSourceContext.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
- com.google.devtools.source.v1.GerritSourceContext.Builder
-
- All Implemented Interfaces:
GerritSourceContextOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GerritSourceContext
public static final class GerritSourceContext.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder> implements GerritSourceContextOrBuilder
A SourceContext referring to a Gerrit project.
Protobuf typegoogle.devtools.source.v1.GerritSourceContext
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GerritSourceContext.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GerritSourceContextbuild()GerritSourceContextbuildPartial()GerritSourceContext.Builderclear()GerritSourceContext.BuilderclearAliasContext()An alias, which may be a branch or tag.GerritSourceContext.BuilderclearAliasName()Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated.GerritSourceContext.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GerritSourceContext.BuilderclearGerritProject()The full project name within the host.GerritSourceContext.BuilderclearHostUri()The URI of a running Gerrit instance.GerritSourceContext.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GerritSourceContext.BuilderclearRevision()GerritSourceContext.BuilderclearRevisionId()A revision (commit) ID.GerritSourceContext.Builderclone()AliasContextgetAliasContext()An alias, which may be a branch or tag.AliasContext.BuildergetAliasContextBuilder()An alias, which may be a branch or tag.AliasContextOrBuildergetAliasContextOrBuilder()An alias, which may be a branch or tag.StringgetAliasName()Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated.com.google.protobuf.ByteStringgetAliasNameBytes()Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated.GerritSourceContextgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetGerritProject()The full project name within the host.com.google.protobuf.ByteStringgetGerritProjectBytes()The full project name within the host.StringgetHostUri()The URI of a running Gerrit instance.com.google.protobuf.ByteStringgetHostUriBytes()The URI of a running Gerrit instance.GerritSourceContext.RevisionCasegetRevisionCase()StringgetRevisionId()A revision (commit) ID.com.google.protobuf.ByteStringgetRevisionIdBytes()A revision (commit) ID.booleanhasAliasContext()An alias, which may be a branch or tag.booleanhasAliasName()Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated.booleanhasRevisionId()A revision (commit) ID.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GerritSourceContext.BuildermergeAliasContext(AliasContext value)An alias, which may be a branch or tag.GerritSourceContext.BuildermergeFrom(GerritSourceContext other)GerritSourceContext.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GerritSourceContext.BuildermergeFrom(com.google.protobuf.Message other)GerritSourceContext.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GerritSourceContext.BuildersetAliasContext(AliasContext value)An alias, which may be a branch or tag.GerritSourceContext.BuildersetAliasContext(AliasContext.Builder builderForValue)An alias, which may be a branch or tag.GerritSourceContext.BuildersetAliasName(String value)Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated.GerritSourceContext.BuildersetAliasNameBytes(com.google.protobuf.ByteString value)Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated.GerritSourceContext.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GerritSourceContext.BuildersetGerritProject(String value)The full project name within the host.GerritSourceContext.BuildersetGerritProjectBytes(com.google.protobuf.ByteString value)The full project name within the host.GerritSourceContext.BuildersetHostUri(String value)The URI of a running Gerrit instance.GerritSourceContext.BuildersetHostUriBytes(com.google.protobuf.ByteString value)The URI of a running Gerrit instance.GerritSourceContext.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)GerritSourceContext.BuildersetRevisionId(String value)A revision (commit) ID.GerritSourceContext.BuildersetRevisionIdBytes(com.google.protobuf.ByteString value)A revision (commit) ID.GerritSourceContext.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
clear
public GerritSourceContext.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
getDefaultInstanceForType
public GerritSourceContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GerritSourceContext build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GerritSourceContext buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GerritSourceContext.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
setField
public GerritSourceContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
clearField
public GerritSourceContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
clearOneof
public GerritSourceContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
setRepeatedField
public GerritSourceContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
addRepeatedField
public GerritSourceContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
mergeFrom
public GerritSourceContext.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GerritSourceContext.Builder>
-
mergeFrom
public GerritSourceContext.Builder mergeFrom(GerritSourceContext other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
mergeFrom
public GerritSourceContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GerritSourceContext.Builder>- Throws:
IOException
-
getRevisionCase
public GerritSourceContext.RevisionCase getRevisionCase()
- Specified by:
getRevisionCasein interfaceGerritSourceContextOrBuilder
-
clearRevision
public GerritSourceContext.Builder clearRevision()
-
getHostUri
public String getHostUri()
The URI of a running Gerrit instance.
string host_uri = 1;- Specified by:
getHostUriin interfaceGerritSourceContextOrBuilder- Returns:
- The hostUri.
-
getHostUriBytes
public com.google.protobuf.ByteString getHostUriBytes()
The URI of a running Gerrit instance.
string host_uri = 1;- Specified by:
getHostUriBytesin interfaceGerritSourceContextOrBuilder- Returns:
- The bytes for hostUri.
-
setHostUri
public GerritSourceContext.Builder setHostUri(String value)
The URI of a running Gerrit instance.
string host_uri = 1;- Parameters:
value- The hostUri to set.- Returns:
- This builder for chaining.
-
clearHostUri
public GerritSourceContext.Builder clearHostUri()
The URI of a running Gerrit instance.
string host_uri = 1;- Returns:
- This builder for chaining.
-
setHostUriBytes
public GerritSourceContext.Builder setHostUriBytes(com.google.protobuf.ByteString value)
The URI of a running Gerrit instance.
string host_uri = 1;- Parameters:
value- The bytes for hostUri to set.- Returns:
- This builder for chaining.
-
getGerritProject
public String getGerritProject()
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;- Specified by:
getGerritProjectin interfaceGerritSourceContextOrBuilder- Returns:
- The gerritProject.
-
getGerritProjectBytes
public com.google.protobuf.ByteString getGerritProjectBytes()
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;- Specified by:
getGerritProjectBytesin interfaceGerritSourceContextOrBuilder- Returns:
- The bytes for gerritProject.
-
setGerritProject
public GerritSourceContext.Builder setGerritProject(String value)
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;- Parameters:
value- The gerritProject to set.- Returns:
- This builder for chaining.
-
clearGerritProject
public GerritSourceContext.Builder clearGerritProject()
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:
- This builder for chaining.
-
setGerritProjectBytes
public GerritSourceContext.Builder setGerritProjectBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for gerritProject to set.- Returns:
- This builder for chaining.
-
hasRevisionId
public boolean hasRevisionId()
A revision (commit) ID.
string revision_id = 3;- Specified by:
hasRevisionIdin interfaceGerritSourceContextOrBuilder- Returns:
- Whether the revisionId field is set.
-
getRevisionId
public String getRevisionId()
A revision (commit) ID.
string revision_id = 3;- Specified by:
getRevisionIdin interfaceGerritSourceContextOrBuilder- Returns:
- The revisionId.
-
getRevisionIdBytes
public com.google.protobuf.ByteString getRevisionIdBytes()
A revision (commit) ID.
string revision_id = 3;- Specified by:
getRevisionIdBytesin interfaceGerritSourceContextOrBuilder- Returns:
- The bytes for revisionId.
-
setRevisionId
public GerritSourceContext.Builder setRevisionId(String value)
A revision (commit) ID.
string revision_id = 3;- Parameters:
value- The revisionId to set.- Returns:
- This builder for chaining.
-
clearRevisionId
public GerritSourceContext.Builder clearRevisionId()
A revision (commit) ID.
string revision_id = 3;- Returns:
- This builder for chaining.
-
setRevisionIdBytes
public GerritSourceContext.Builder setRevisionIdBytes(com.google.protobuf.ByteString value)
A revision (commit) ID.
string revision_id = 3;- Parameters:
value- The bytes for revisionId to set.- Returns:
- This builder for chaining.
-
hasAliasName
@Deprecated public boolean hasAliasName()
Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=129The name of an alias (branch, tag, etc.).
string alias_name = 4 [deprecated = true];- Specified by:
hasAliasNamein interfaceGerritSourceContextOrBuilder- Returns:
- Whether the aliasName field is set.
-
getAliasName
@Deprecated public String getAliasName()
Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=129The name of an alias (branch, tag, etc.).
string alias_name = 4 [deprecated = true];- Specified by:
getAliasNamein interfaceGerritSourceContextOrBuilder- Returns:
- The aliasName.
-
getAliasNameBytes
@Deprecated public com.google.protobuf.ByteString getAliasNameBytes()
Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=129The name of an alias (branch, tag, etc.).
string alias_name = 4 [deprecated = true];- Specified by:
getAliasNameBytesin interfaceGerritSourceContextOrBuilder- Returns:
- The bytes for aliasName.
-
setAliasName
@Deprecated public GerritSourceContext.Builder setAliasName(String value)
Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=129The name of an alias (branch, tag, etc.).
string alias_name = 4 [deprecated = true];- Parameters:
value- The aliasName to set.- Returns:
- This builder for chaining.
-
clearAliasName
@Deprecated public GerritSourceContext.Builder clearAliasName()
Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=129The name of an alias (branch, tag, etc.).
string alias_name = 4 [deprecated = true];- Returns:
- This builder for chaining.
-
setAliasNameBytes
@Deprecated public GerritSourceContext.Builder setAliasNameBytes(com.google.protobuf.ByteString value)
Deprecated.google.devtools.source.v1.GerritSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=129The name of an alias (branch, tag, etc.).
string alias_name = 4 [deprecated = true];- Parameters:
value- The bytes for aliasName to set.- Returns:
- This builder for chaining.
-
hasAliasContext
public boolean hasAliasContext()
An alias, which may be a branch or tag.
.google.devtools.source.v1.AliasContext alias_context = 5;- Specified by:
hasAliasContextin interfaceGerritSourceContextOrBuilder- Returns:
- Whether the aliasContext field is set.
-
getAliasContext
public AliasContext getAliasContext()
An alias, which may be a branch or tag.
.google.devtools.source.v1.AliasContext alias_context = 5;- Specified by:
getAliasContextin interfaceGerritSourceContextOrBuilder- Returns:
- The aliasContext.
-
setAliasContext
public GerritSourceContext.Builder setAliasContext(AliasContext value)
An alias, which may be a branch or tag.
.google.devtools.source.v1.AliasContext alias_context = 5;
-
setAliasContext
public GerritSourceContext.Builder setAliasContext(AliasContext.Builder builderForValue)
An alias, which may be a branch or tag.
.google.devtools.source.v1.AliasContext alias_context = 5;
-
mergeAliasContext
public GerritSourceContext.Builder mergeAliasContext(AliasContext value)
An alias, which may be a branch or tag.
.google.devtools.source.v1.AliasContext alias_context = 5;
-
clearAliasContext
public GerritSourceContext.Builder clearAliasContext()
An alias, which may be a branch or tag.
.google.devtools.source.v1.AliasContext alias_context = 5;
-
getAliasContextBuilder
public AliasContext.Builder getAliasContextBuilder()
An alias, which may be a branch or tag.
.google.devtools.source.v1.AliasContext alias_context = 5;
-
getAliasContextOrBuilder
public AliasContextOrBuilder getAliasContextOrBuilder()
An alias, which may be a branch or tag.
.google.devtools.source.v1.AliasContext alias_context = 5;- Specified by:
getAliasContextOrBuilderin interfaceGerritSourceContextOrBuilder
-
setUnknownFields
public final GerritSourceContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
mergeUnknownFields
public final GerritSourceContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GerritSourceContext.Builder>
-
-