Class Note

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

@Generated public final class Note extends com.google.protobuf.GeneratedMessage implements NoteOrBuilder
 A type of analysis that can be done for a resource.
 
Protobuf type grafeas.v1beta1.Note
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • SHORT_DESCRIPTION_FIELD_NUMBER

      public static final int SHORT_DESCRIPTION_FIELD_NUMBER
      See Also:
    • LONG_DESCRIPTION_FIELD_NUMBER

      public static final int LONG_DESCRIPTION_FIELD_NUMBER
      See Also:
    • KIND_FIELD_NUMBER

      public static final int KIND_FIELD_NUMBER
      See Also:
    • EXPIRATION_TIME_FIELD_NUMBER

      public static final int EXPIRATION_TIME_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • VULNERABILITY_FIELD_NUMBER

      public static final int VULNERABILITY_FIELD_NUMBER
      See Also:
    • BUILD_FIELD_NUMBER

      public static final int BUILD_FIELD_NUMBER
      See Also:
    • BASE_IMAGE_FIELD_NUMBER

      public static final int BASE_IMAGE_FIELD_NUMBER
      See Also:
    • PACKAGE_FIELD_NUMBER

      public static final int PACKAGE_FIELD_NUMBER
      See Also:
    • DEPLOYABLE_FIELD_NUMBER

      public static final int DEPLOYABLE_FIELD_NUMBER
      See Also:
    • DISCOVERY_FIELD_NUMBER

      public static final int DISCOVERY_FIELD_NUMBER
      See Also:
    • ATTESTATION_AUTHORITY_FIELD_NUMBER

      public static final int ATTESTATION_AUTHORITY_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
    • getTypeCase

      public Note.TypeCase getTypeCase()
      Specified by:
      getTypeCase in interface NoteOrBuilder
    • getName

      public String getName()
       Output only. The name of the note in the form of
       `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
       
      string name = 1;
      Specified by:
      getName in interface NoteOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The name of the note in the form of
       `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
       
      string name = 1;
      Specified by:
      getNameBytes in interface NoteOrBuilder
      Returns:
      The bytes for name.
    • getShortDescription

      public String getShortDescription()
       A one sentence description of this note.
       
      string short_description = 2;
      Specified by:
      getShortDescription in interface NoteOrBuilder
      Returns:
      The shortDescription.
    • getShortDescriptionBytes

      public com.google.protobuf.ByteString getShortDescriptionBytes()
       A one sentence description of this note.
       
      string short_description = 2;
      Specified by:
      getShortDescriptionBytes in interface NoteOrBuilder
      Returns:
      The bytes for shortDescription.
    • getLongDescription

      public String getLongDescription()
       A detailed description of this note.
       
      string long_description = 3;
      Specified by:
      getLongDescription in interface NoteOrBuilder
      Returns:
      The longDescription.
    • getLongDescriptionBytes

      public com.google.protobuf.ByteString getLongDescriptionBytes()
       A detailed description of this note.
       
      string long_description = 3;
      Specified by:
      getLongDescriptionBytes in interface NoteOrBuilder
      Returns:
      The bytes for longDescription.
    • getKindValue

      public int getKindValue()
       Output only. The type of analysis. This field can be used as a filter in
       list requests.
       
      .grafeas.v1beta1.NoteKind kind = 4;
      Specified by:
      getKindValue in interface NoteOrBuilder
      Returns:
      The enum numeric value on the wire for kind.
    • getKind

      public NoteKind getKind()
       Output only. The type of analysis. This field can be used as a filter in
       list requests.
       
      .grafeas.v1beta1.NoteKind kind = 4;
      Specified by:
      getKind in interface NoteOrBuilder
      Returns:
      The kind.
    • getRelatedUrlList

      public List<RelatedUrl> getRelatedUrlList()
       URLs associated with this note.
       
      repeated .grafeas.v1beta1.RelatedUrl related_url = 5;
      Specified by:
      getRelatedUrlList in interface NoteOrBuilder
    • getRelatedUrlOrBuilderList

      public List<? extends RelatedUrlOrBuilder> getRelatedUrlOrBuilderList()
       URLs associated with this note.
       
      repeated .grafeas.v1beta1.RelatedUrl related_url = 5;
      Specified by:
      getRelatedUrlOrBuilderList in interface NoteOrBuilder
    • getRelatedUrlCount

      public int getRelatedUrlCount()
       URLs associated with this note.
       
      repeated .grafeas.v1beta1.RelatedUrl related_url = 5;
      Specified by:
      getRelatedUrlCount in interface NoteOrBuilder
    • getRelatedUrl

      public RelatedUrl getRelatedUrl(int index)
       URLs associated with this note.
       
      repeated .grafeas.v1beta1.RelatedUrl related_url = 5;
      Specified by:
      getRelatedUrl in interface NoteOrBuilder
    • getRelatedUrlOrBuilder

      public RelatedUrlOrBuilder getRelatedUrlOrBuilder(int index)
       URLs associated with this note.
       
      repeated .grafeas.v1beta1.RelatedUrl related_url = 5;
      Specified by:
      getRelatedUrlOrBuilder in interface NoteOrBuilder
    • hasExpirationTime

      public boolean hasExpirationTime()
       Time of expiration for this note. Empty if note does not expire.
       
      .google.protobuf.Timestamp expiration_time = 6;
      Specified by:
      hasExpirationTime in interface NoteOrBuilder
      Returns:
      Whether the expirationTime field is set.
    • getExpirationTime

      public com.google.protobuf.Timestamp getExpirationTime()
       Time of expiration for this note. Empty if note does not expire.
       
      .google.protobuf.Timestamp expiration_time = 6;
      Specified by:
      getExpirationTime in interface NoteOrBuilder
      Returns:
      The expirationTime.
    • getExpirationTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder()
       Time of expiration for this note. Empty if note does not expire.
       
      .google.protobuf.Timestamp expiration_time = 6;
      Specified by:
      getExpirationTimeOrBuilder in interface NoteOrBuilder
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time this note was created. This field can be used as a
       filter in list requests.
       
      .google.protobuf.Timestamp create_time = 7;
      Specified by:
      hasCreateTime in interface NoteOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time this note was created. This field can be used as a
       filter in list requests.
       
      .google.protobuf.Timestamp create_time = 7;
      Specified by:
      getCreateTime in interface NoteOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time this note was created. This field can be used as a
       filter in list requests.
       
      .google.protobuf.Timestamp create_time = 7;
      Specified by:
      getCreateTimeOrBuilder in interface NoteOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The time this note was last updated. This field can be used as
       a filter in list requests.
       
      .google.protobuf.Timestamp update_time = 8;
      Specified by:
      hasUpdateTime in interface NoteOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The time this note was last updated. This field can be used as
       a filter in list requests.
       
      .google.protobuf.Timestamp update_time = 8;
      Specified by:
      getUpdateTime in interface NoteOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The time this note was last updated. This field can be used as
       a filter in list requests.
       
      .google.protobuf.Timestamp update_time = 8;
      Specified by:
      getUpdateTimeOrBuilder in interface NoteOrBuilder
    • getRelatedNoteNamesList

      public com.google.protobuf.ProtocolStringList getRelatedNoteNamesList()
       Other notes related to this note.
       
      repeated string related_note_names = 9;
      Specified by:
      getRelatedNoteNamesList in interface NoteOrBuilder
      Returns:
      A list containing the relatedNoteNames.
    • getRelatedNoteNamesCount

      public int getRelatedNoteNamesCount()
       Other notes related to this note.
       
      repeated string related_note_names = 9;
      Specified by:
      getRelatedNoteNamesCount in interface NoteOrBuilder
      Returns:
      The count of relatedNoteNames.
    • getRelatedNoteNames

      public String getRelatedNoteNames(int index)
       Other notes related to this note.
       
      repeated string related_note_names = 9;
      Specified by:
      getRelatedNoteNames in interface NoteOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The relatedNoteNames at the given index.
    • getRelatedNoteNamesBytes

      public com.google.protobuf.ByteString getRelatedNoteNamesBytes(int index)
       Other notes related to this note.
       
      repeated string related_note_names = 9;
      Specified by:
      getRelatedNoteNamesBytes in interface NoteOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the relatedNoteNames at the given index.
    • hasVulnerability

      public boolean hasVulnerability()
       A note describing a package vulnerability.
       
      .grafeas.v1beta1.vulnerability.Vulnerability vulnerability = 10;
      Specified by:
      hasVulnerability in interface NoteOrBuilder
      Returns:
      Whether the vulnerability field is set.
    • getVulnerability

      public Vulnerability getVulnerability()
       A note describing a package vulnerability.
       
      .grafeas.v1beta1.vulnerability.Vulnerability vulnerability = 10;
      Specified by:
      getVulnerability in interface NoteOrBuilder
      Returns:
      The vulnerability.
    • getVulnerabilityOrBuilder

      public VulnerabilityOrBuilder getVulnerabilityOrBuilder()
       A note describing a package vulnerability.
       
      .grafeas.v1beta1.vulnerability.Vulnerability vulnerability = 10;
      Specified by:
      getVulnerabilityOrBuilder in interface NoteOrBuilder
    • hasBuild

      public boolean hasBuild()
       A note describing build provenance for a verifiable build.
       
      .grafeas.v1beta1.build.Build build = 11;
      Specified by:
      hasBuild in interface NoteOrBuilder
      Returns:
      Whether the build field is set.
    • getBuild

      public Build getBuild()
       A note describing build provenance for a verifiable build.
       
      .grafeas.v1beta1.build.Build build = 11;
      Specified by:
      getBuild in interface NoteOrBuilder
      Returns:
      The build.
    • getBuildOrBuilder

      public BuildOrBuilder getBuildOrBuilder()
       A note describing build provenance for a verifiable build.
       
      .grafeas.v1beta1.build.Build build = 11;
      Specified by:
      getBuildOrBuilder in interface NoteOrBuilder
    • hasBaseImage

      public boolean hasBaseImage()
       A note describing a base image.
       
      .grafeas.v1beta1.image.Basis base_image = 12;
      Specified by:
      hasBaseImage in interface NoteOrBuilder
      Returns:
      Whether the baseImage field is set.
    • getBaseImage

      public Basis getBaseImage()
       A note describing a base image.
       
      .grafeas.v1beta1.image.Basis base_image = 12;
      Specified by:
      getBaseImage in interface NoteOrBuilder
      Returns:
      The baseImage.
    • getBaseImageOrBuilder

      public BasisOrBuilder getBaseImageOrBuilder()
       A note describing a base image.
       
      .grafeas.v1beta1.image.Basis base_image = 12;
      Specified by:
      getBaseImageOrBuilder in interface NoteOrBuilder
    • hasPackage

      public boolean hasPackage()
       A note describing a package hosted by various package managers.
       
      .grafeas.v1beta1.package.Package package = 13;
      Specified by:
      hasPackage in interface NoteOrBuilder
      Returns:
      Whether the package field is set.
    • getPackage

      public Package getPackage()
       A note describing a package hosted by various package managers.
       
      .grafeas.v1beta1.package.Package package = 13;
      Specified by:
      getPackage in interface NoteOrBuilder
      Returns:
      The package.
    • getPackageOrBuilder

      public PackageOrBuilder getPackageOrBuilder()
       A note describing a package hosted by various package managers.
       
      .grafeas.v1beta1.package.Package package = 13;
      Specified by:
      getPackageOrBuilder in interface NoteOrBuilder
    • hasDeployable

      public boolean hasDeployable()
       A note describing something that can be deployed.
       
      .grafeas.v1beta1.deployment.Deployable deployable = 14;
      Specified by:
      hasDeployable in interface NoteOrBuilder
      Returns:
      Whether the deployable field is set.
    • getDeployable

      public Deployable getDeployable()
       A note describing something that can be deployed.
       
      .grafeas.v1beta1.deployment.Deployable deployable = 14;
      Specified by:
      getDeployable in interface NoteOrBuilder
      Returns:
      The deployable.
    • getDeployableOrBuilder

      public DeployableOrBuilder getDeployableOrBuilder()
       A note describing something that can be deployed.
       
      .grafeas.v1beta1.deployment.Deployable deployable = 14;
      Specified by:
      getDeployableOrBuilder in interface NoteOrBuilder
    • hasDiscovery

      public boolean hasDiscovery()
       A note describing the initial analysis of a resource.
       
      .grafeas.v1beta1.discovery.Discovery discovery = 15;
      Specified by:
      hasDiscovery in interface NoteOrBuilder
      Returns:
      Whether the discovery field is set.
    • getDiscovery

      public Discovery getDiscovery()
       A note describing the initial analysis of a resource.
       
      .grafeas.v1beta1.discovery.Discovery discovery = 15;
      Specified by:
      getDiscovery in interface NoteOrBuilder
      Returns:
      The discovery.
    • getDiscoveryOrBuilder

      public DiscoveryOrBuilder getDiscoveryOrBuilder()
       A note describing the initial analysis of a resource.
       
      .grafeas.v1beta1.discovery.Discovery discovery = 15;
      Specified by:
      getDiscoveryOrBuilder in interface NoteOrBuilder
    • hasAttestationAuthority

      public boolean hasAttestationAuthority()
       A note describing an attestation role.
       
      .grafeas.v1beta1.attestation.Authority attestation_authority = 16;
      Specified by:
      hasAttestationAuthority in interface NoteOrBuilder
      Returns:
      Whether the attestationAuthority field is set.
    • getAttestationAuthority

      public Authority getAttestationAuthority()
       A note describing an attestation role.
       
      .grafeas.v1beta1.attestation.Authority attestation_authority = 16;
      Specified by:
      getAttestationAuthority in interface NoteOrBuilder
      Returns:
      The attestationAuthority.
    • getAttestationAuthorityOrBuilder

      public AuthorityOrBuilder getAttestationAuthorityOrBuilder()
       A note describing an attestation role.
       
      .grafeas.v1beta1.attestation.Authority attestation_authority = 16;
      Specified by:
      getAttestationAuthorityOrBuilder in interface NoteOrBuilder
    • 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 Note parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static Note.Builder newBuilder()
    • newBuilder

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

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

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

      public static Note getDefaultInstance()
    • parser

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

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