Class CloudRepoSourceContext

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

@Generated public final class CloudRepoSourceContext extends com.google.protobuf.GeneratedMessage implements CloudRepoSourceContextOrBuilder
 A CloudRepoSourceContext denotes a particular revision in a Google Cloud
 Source Repo.
 
Protobuf type grafeas.v1beta1.source.CloudRepoSourceContext
See Also:
  • Field Details

    • REPO_ID_FIELD_NUMBER

      public static final int REPO_ID_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 CloudRepoSourceContext.RevisionCase getRevisionCase()
      Specified by:
      getRevisionCase in interface CloudRepoSourceContextOrBuilder
    • hasRepoId

      public boolean hasRepoId()
       The ID of the repo.
       
      .grafeas.v1beta1.source.RepoId repo_id = 1;
      Specified by:
      hasRepoId in interface CloudRepoSourceContextOrBuilder
      Returns:
      Whether the repoId field is set.
    • getRepoId

      public RepoId getRepoId()
       The ID of the repo.
       
      .grafeas.v1beta1.source.RepoId repo_id = 1;
      Specified by:
      getRepoId in interface CloudRepoSourceContextOrBuilder
      Returns:
      The repoId.
    • getRepoIdOrBuilder

      public RepoIdOrBuilder getRepoIdOrBuilder()
       The ID of the repo.
       
      .grafeas.v1beta1.source.RepoId repo_id = 1;
      Specified by:
      getRepoIdOrBuilder in interface CloudRepoSourceContextOrBuilder
    • hasRevisionId

      public boolean hasRevisionId()
       A revision ID.
       
      string revision_id = 2;
      Specified by:
      hasRevisionId in interface CloudRepoSourceContextOrBuilder
      Returns:
      Whether the revisionId field is set.
    • getRevisionId

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

      public com.google.protobuf.ByteString getRevisionIdBytes()
       A revision ID.
       
      string revision_id = 2;
      Specified by:
      getRevisionIdBytes in interface CloudRepoSourceContextOrBuilder
      Returns:
      The bytes for revisionId.
    • hasAliasContext

      public boolean hasAliasContext()
       An alias, which may be a branch or tag.
       
      .grafeas.v1beta1.source.AliasContext alias_context = 3;
      Specified by:
      hasAliasContext in interface CloudRepoSourceContextOrBuilder
      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 = 3;
      Specified by:
      getAliasContext in interface CloudRepoSourceContextOrBuilder
      Returns:
      The aliasContext.
    • getAliasContextOrBuilder

      public AliasContextOrBuilder getAliasContextOrBuilder()
       An alias, which may be a branch or tag.
       
      .grafeas.v1beta1.source.AliasContext alias_context = 3;
      Specified by:
      getAliasContextOrBuilder in interface CloudRepoSourceContextOrBuilder
    • 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 CloudRepoSourceContext parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static CloudRepoSourceContext.Builder newBuilder()
    • newBuilder

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

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

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

      public static CloudRepoSourceContext getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<CloudRepoSourceContext> 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 CloudRepoSourceContext getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder