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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GerritSourceContext.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GerritSourceContext.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GerritSourceContext.Builder>
    • getDefaultInstanceForType

      public GerritSourceContext getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public GerritSourceContext build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GerritSourceContext buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GerritSourceContext.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GerritSourceContext.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GerritSourceContext.Builder>
      Throws:
      IOException
    • getRevisionCase

      public GerritSourceContext.RevisionCase getRevisionCase()
      Specified by:
      getRevisionCase in interface GerritSourceContextOrBuilder
    • clearRevision

      public GerritSourceContext.Builder clearRevision()
    • getHostUri

      public String getHostUri()
       The URI of a running Gerrit instance.
       
      string host_uri = 1;
      Specified by:
      getHostUri in interface GerritSourceContextOrBuilder
      Returns:
      The hostUri.
    • getHostUriBytes

      public com.google.protobuf.ByteString getHostUriBytes()
       The URI of a running Gerrit instance.
       
      string host_uri = 1;
      Specified by:
      getHostUriBytes in interface GerritSourceContextOrBuilder
      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 the
       hostURI/project.
       
      string gerrit_project = 2;
      Specified by:
      getGerritProject in interface GerritSourceContextOrBuilder
      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:
      getGerritProjectBytes in interface GerritSourceContextOrBuilder
      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 the
       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 the
       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 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:
      hasRevisionId in interface GerritSourceContextOrBuilder
      Returns:
      Whether the revisionId field is set.
    • getRevisionId

      public String getRevisionId()
       A revision (commit) ID.
       
      string revision_id = 3;
      Specified by:
      getRevisionId in interface GerritSourceContextOrBuilder
      Returns:
      The revisionId.
    • getRevisionIdBytes

      public com.google.protobuf.ByteString getRevisionIdBytes()
       A revision (commit) ID.
       
      string revision_id = 3;
      Specified by:
      getRevisionIdBytes in interface GerritSourceContextOrBuilder
      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.
    • hasAliasContext

      public boolean hasAliasContext()
       An alias, which may be a branch or tag.
       
      .grafeas.v1beta1.source.AliasContext alias_context = 4;
      Specified by:
      hasAliasContext in interface GerritSourceContextOrBuilder
      Returns:
      Whether the aliasContext field is set.
    • getAliasContext

      public AliasContext getAliasContext()
       An alias, which may be a branch or tag.
       
      .grafeas.v1beta1.source.AliasContext alias_context = 4;
      Specified by:
      getAliasContext in interface GerritSourceContextOrBuilder
      Returns:
      The aliasContext.
    • setAliasContext

      public GerritSourceContext.Builder setAliasContext(AliasContext value)
       An alias, which may be a branch or tag.
       
      .grafeas.v1beta1.source.AliasContext alias_context = 4;
    • setAliasContext

      public GerritSourceContext.Builder setAliasContext(AliasContext.Builder builderForValue)
       An alias, which may be a branch or tag.
       
      .grafeas.v1beta1.source.AliasContext alias_context = 4;
    • mergeAliasContext

      public GerritSourceContext.Builder mergeAliasContext(AliasContext value)
       An alias, which may be a branch or tag.
       
      .grafeas.v1beta1.source.AliasContext alias_context = 4;
    • clearAliasContext

      public GerritSourceContext.Builder clearAliasContext()
       An alias, which may be a branch or tag.
       
      .grafeas.v1beta1.source.AliasContext alias_context = 4;
    • getAliasContextBuilder

      public AliasContext.Builder getAliasContextBuilder()
       An alias, which may be a branch or tag.
       
      .grafeas.v1beta1.source.AliasContext alias_context = 4;
    • getAliasContextOrBuilder

      public AliasContextOrBuilder getAliasContextOrBuilder()
       An alias, which may be a branch or tag.
       
      .grafeas.v1beta1.source.AliasContext alias_context = 4;
      Specified by:
      getAliasContextOrBuilder in interface GerritSourceContextOrBuilder