Class GerritSourceContext

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.grafeas.v1beta1.source.GerritSourceContext
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GerritSourceContextOrBuilder, Serializable

@Generated public final class GerritSourceContext extends com.google.protobuf.GeneratedMessage implements GerritSourceContextOrBuilder
 A SourceContext referring to a Gerrit project.
 
Protobuf type grafeas.v1beta1.source.GerritSourceContext
See Also:
  • Field Details

    • HOST_URI_FIELD_NUMBER

      public static final int HOST_URI_FIELD_NUMBER
      See Also:
    • GERRIT_PROJECT_FIELD_NUMBER

      public static final int GERRIT_PROJECT_FIELD_NUMBER
      See Also:
    • REVISION_ID_FIELD_NUMBER

      public static final int REVISION_ID_FIELD_NUMBER
      See Also:
    • ALIAS_CONTEXT_FIELD_NUMBER

      public static final int ALIAS_CONTEXT_FIELD_NUMBER
      See Also:
  • 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
    • getRevisionCase

      public GerritSourceContext.RevisionCase getRevisionCase()
      Specified by:
      getRevisionCase in interface GerritSourceContextOrBuilder
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static GerritSourceContext parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GerritSourceContext parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GerritSourceContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GerritSourceContext parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GerritSourceContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GerritSourceContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GerritSourceContext parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GerritSourceContext parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GerritSourceContext parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GerritSourceContext parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GerritSourceContext parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GerritSourceContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static GerritSourceContext.Builder newBuilder()
    • newBuilder

      public static GerritSourceContext.Builder newBuilder(GerritSourceContext prototype)
    • toBuilder

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

      protected GerritSourceContext.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static GerritSourceContext getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GerritSourceContext> parser()
    • getParserForType

      public com.google.protobuf.Parser<GerritSourceContext> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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