Package io.grafeas.v1beta1.source
Class GerritSourceContext.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GerritSourceContext.Builder>
io.grafeas.v1beta1.source.GerritSourceContext.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GerritSourceContextOrBuilder,Cloneable
- Enclosing class:
- GerritSourceContext
public static final class GerritSourceContext.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GerritSourceContext.Builder>
implements GerritSourceContextOrBuilder
A SourceContext referring to a Gerrit project.Protobuf type
grafeas.v1beta1.source.GerritSourceContext-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()An alias, which may be a branch or tag.The full project name within the host.The URI of a running Gerrit instance.A revision (commit) ID.An alias, which may be a branch or tag.An alias, which may be a branch or tag.An alias, which may be a branch or tag.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe full project name within the host.com.google.protobuf.ByteStringThe full project name within the host.The URI of a running Gerrit instance.com.google.protobuf.ByteStringThe URI of a running Gerrit instance.A revision (commit) ID.com.google.protobuf.ByteStringA revision (commit) ID.booleanAn alias, which may be a branch or tag.booleanA revision (commit) ID.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAliasContext(AliasContext value) An alias, which may be a branch or tag.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(GerritSourceContext other) setAliasContext(AliasContext value) An alias, which may be a branch or tag.setAliasContext(AliasContext.Builder builderForValue) An alias, which may be a branch or tag.setGerritProject(String value) The full project name within the host.setGerritProjectBytes(com.google.protobuf.ByteString value) The full project name within the host.setHostUri(String value) The URI of a running Gerrit instance.setHostUriBytes(com.google.protobuf.ByteString value) The URI of a running Gerrit instance.setRevisionId(String value) A revision (commit) ID.setRevisionIdBytes(com.google.protobuf.ByteString value) A revision (commit) ID.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GerritSourceContext.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<GerritSourceContext.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GerritSourceContext.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
- Specified by:
getRevisionCasein interfaceGerritSourceContextOrBuilder
-
clearRevision
-
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
The URI of a running Gerrit instance.
string host_uri = 1;- Parameters:
value- The hostUri to set.- Returns:
- This builder for chaining.
-
clearHostUri
The URI of a running Gerrit instance.
string host_uri = 1;- Returns:
- This builder for chaining.
-
setHostUriBytes
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
The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the 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 the hostURI/project.
string gerrit_project = 2;- Specified by:
getGerritProjectBytesin interfaceGerritSourceContextOrBuilder- Returns:
- The bytes for gerritProject.
-
setGerritProject
The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project.
string gerrit_project = 2;- Parameters:
value- The gerritProject to set.- Returns:
- This builder for chaining.
-
clearGerritProject
The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project.
string gerrit_project = 2;- Returns:
- This builder for chaining.
-
setGerritProjectBytes
The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the 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
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
A revision (commit) ID.
string revision_id = 3;- Parameters:
value- The revisionId to set.- Returns:
- This builder for chaining.
-
clearRevisionId
A revision (commit) ID.
string revision_id = 3;- Returns:
- This builder for chaining.
-
setRevisionIdBytes
A revision (commit) ID.
string revision_id = 3;- Parameters:
value- The bytes for revisionId to set.- Returns:
- This builder for chaining.
-
hasAliasContext
public boolean hasAliasContext()An alias, which may be a branch or tag.
.grafeas.v1beta1.source.AliasContext alias_context = 4;- Specified by:
hasAliasContextin interfaceGerritSourceContextOrBuilder- Returns:
- Whether the aliasContext field is set.
-
getAliasContext
An alias, which may be a branch or tag.
.grafeas.v1beta1.source.AliasContext alias_context = 4;- Specified by:
getAliasContextin interfaceGerritSourceContextOrBuilder- Returns:
- The aliasContext.
-
setAliasContext
An alias, which may be a branch or tag.
.grafeas.v1beta1.source.AliasContext alias_context = 4; -
setAliasContext
An alias, which may be a branch or tag.
.grafeas.v1beta1.source.AliasContext alias_context = 4; -
mergeAliasContext
An alias, which may be a branch or tag.
.grafeas.v1beta1.source.AliasContext alias_context = 4; -
clearAliasContext
An alias, which may be a branch or tag.
.grafeas.v1beta1.source.AliasContext alias_context = 4; -
getAliasContextBuilder
An alias, which may be a branch or tag.
.grafeas.v1beta1.source.AliasContext alias_context = 4; -
getAliasContextOrBuilder
An alias, which may be a branch or tag.
.grafeas.v1beta1.source.AliasContext alias_context = 4;- Specified by:
getAliasContextOrBuilderin interfaceGerritSourceContextOrBuilder
-