Class Note

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, NoteOrBuilder, Serializable

    public final class Note
    extends com.google.protobuf.GeneratedMessageV3
    implements NoteOrBuilder
     A type of analysis that can be done for a resource.
     
    Protobuf type grafeas.v1beta1.Note
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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​(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
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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