Service Client: Grafeas::V1::Grafeas::GrafeasClient

Client stub representing the remote Grafeas gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to localhost:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Grafeas::V1::Grafeas - Compiled Protocol Buffers messages for grafeas/v1/grafeas.proto

SYNOPSIS

use Grafeas::V1::Grafeas;

my $msg = Grafeas::V1::Grafeas::Occurrence->new({
    name => $name,
    resource_uri => $resource_uri,
    note_name => $note_name,
    kind => $kind,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Grafeas::V1::Grafeas::Occurrence->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from grafeas/v1/grafeas.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Grafeas::V1::Grafeas::Occurrence

An instance of an analysis type that has been found on a resource.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.

  • $msg->resource_uri() / $msg->resource_uri($value)

    Type: String

    Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, `https://gcr.io/project/image@sha256:123abc` for a Docker image.

  • $msg->note_name() / $msg->note_name($value)

    Type: String

    Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests.

  • $msg->kind() / $msg->kind($value)

    Type: Enum (Grafeas::V1::NoteKind)

    Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.

  • $msg->remediation() / $msg->remediation($value)

    Type: String

    A description of actions that can be taken to remedy the note.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time this occurrence was created.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time this occurrence was last updated.

  • $msg->vulnerability() / $msg->vulnerability($value)

    Type: Message (Grafeas::V1::Vulnerability::VulnerabilityOccurrence)

    Describes a security vulnerability.

  • $msg->build() / $msg->build($value)

    Type: Message (Grafeas::V1::Build::BuildOccurrence)

    Describes a verifiable build.

  • $msg->image() / $msg->image($value)

    Type: Message (Grafeas::V1::Image::ImageOccurrence)

    Describes how this resource derives from the basis in the associated note.

  • $msg->package() / $msg->package($value)

    Type: Message (Grafeas::V1::Package::PackageOccurrence)

    Describes the installation of a package on the linked resource.

  • $msg->deployment() / $msg->deployment($value)

    Type: Message (Grafeas::V1::Deployment::DeploymentOccurrence)

    Describes the deployment of an artifact on a runtime.

  • $msg->discovery() / $msg->discovery($value)

    Type: Message (Grafeas::V1::Discovery::DiscoveryOccurrence)

    Describes when a resource was discovered.

  • $msg->attestation() / $msg->attestation($value)

    Type: Message (Grafeas::V1::Attestation::AttestationOccurrence)

    Describes an attestation of an artifact.

  • $msg->upgrade() / $msg->upgrade($value)

    Type: Message (Grafeas::V1::Upgrade::UpgradeOccurrence)

    Describes an available package upgrade on the linked resource.

  • $msg->compliance() / $msg->compliance($value)

    Type: Message (Grafeas::V1::Compliance::ComplianceOccurrence)

    Describes a compliance violation on a linked resource.

  • $msg->dsse_attestation() / $msg->dsse_attestation($value)

    Type: Message (Grafeas::V1::DsseAttestation::DSSEAttestationOccurrence)

    Describes an attestation of an artifact using dsse.

  • $msg->sbom_reference() / $msg->sbom_reference($value)

    Type: Message (Grafeas::V1::Sbom::SBOMReferenceOccurrence)

    Describes a specific SBOM reference occurrences.

  • $msg->secret() / $msg->secret($value)

    Type: Message (Grafeas::V1::Secret::SecretOccurrence)

    Describes a secret.

  • $msg->envelope() / $msg->envelope($value)

    Type: Message (Grafeas::V1::Common::Envelope)

    https://github.com/secure-systems-lab/dsse

Grafeas::V1::Grafeas::Note

A type of analysis that can be done for a resource.

Inherits from Protobuf::Message.

Accessors

Grafeas::V1::Grafeas::GetOccurrenceRequest

Request to get an occurrence.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.

Grafeas::V1::Grafeas::ListOccurrencesRequest

Request to list occurrences.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    The name of the project to list occurrences for in the form of `projects/[PROJECT_ID]`.

  • $msg->filter() / $msg->filter($value)

    Type: String

    The filter expression.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Number of occurrences to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Token to provide to skip to a particular spot in the list.

  • $msg->return_partial_success() / $msg->return_partial_success($value)

    Type: Bool

    If set, the request will return all reachable Occurrences and report all unreachable regions in the `unreachable` field in the response.

    Only applicable for requests in the global region.

Grafeas::V1::Grafeas::ListOccurrencesResponse

Response for listing occurrences.

Inherits from Protobuf::Message.

Accessors

  • $msg->occurrences() / $msg->occurrences($value)

    Type: Message (Grafeas::V1::Grafeas::Occurrence)

    The occurrences requested.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    The next pagination token in the list response. It should be used as `page_token` for the following request. An empty value means no more results.

  • $msg->unreachable() / $msg->unreachable($value)

    Type: String

    Unreachable regions. Populated for requests from the global region when `return_partial_success` is set.

    Format: `projects/[PROJECT_ID]/locations/[LOCATION]`

Grafeas::V1::Grafeas::DeleteOccurrenceRequest

Request to delete an occurrence.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.

Grafeas::V1::Grafeas::CreateOccurrenceRequest

Request to create a new occurrence.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created.

  • $msg->occurrence() / $msg->occurrence($value)

    Type: Message (Grafeas::V1::Grafeas::Occurrence)

    The occurrence to create.

Grafeas::V1::Grafeas::UpdateOccurrenceRequest

Request to update an occurrence.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.

  • $msg->occurrence() / $msg->occurrence($value)

    Type: Message (Grafeas::V1::Grafeas::Occurrence)

    The updated occurrence.

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    The fields to update.

Grafeas::V1::Grafeas::GetNoteRequest

Request to get a note.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.

Grafeas::V1::Grafeas::GetOccurrenceNoteRequest

Request to get the note to which the specified occurrence is attached.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.

Grafeas::V1::Grafeas::ListNotesRequest

Request to list notes.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    The name of the project to list notes for in the form of `projects/[PROJECT_ID]`.

  • $msg->filter() / $msg->filter($value)

    Type: String

    The filter expression.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Number of notes to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Token to provide to skip to a particular spot in the list.

  • $msg->return_partial_success() / $msg->return_partial_success($value)

    Type: Bool

    If set, the request will return all reachable Notes and report all unreachable regions in the `unreachable` field in the response.

    Only applicable for requests in the global region.

Grafeas::V1::Grafeas::ListNotesResponse

Response for listing notes.

Inherits from Protobuf::Message.

Accessors

  • $msg->notes() / $msg->notes($value)

    Type: Message (Grafeas::V1::Grafeas::Note)

    The notes requested.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    The next pagination token in the list response. It should be used as `page_token` for the following request. An empty value means no more results.

  • $msg->unreachable() / $msg->unreachable($value)

    Type: String

    Unreachable regions. Populated for requests from the global region when `return_partial_success` is set.

    Format: `projects/[PROJECT_ID]/locations/[LOCATION]`

Grafeas::V1::Grafeas::DeleteNoteRequest

Request to delete a note.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.

Grafeas::V1::Grafeas::CreateNoteRequest

Request to create a new note.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    The name of the project in the form of `projects/[PROJECT_ID]`, under which the note is to be created.

  • $msg->note_id() / $msg->note_id($value)

    Type: String

    The ID to use for this note.

  • $msg->note() / $msg->note($value)

    Type: Message (Grafeas::V1::Grafeas::Note)

    The note to create.

Grafeas::V1::Grafeas::UpdateNoteRequest

Request to update a note.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.

  • $msg->note() / $msg->note($value)

    Type: Message (Grafeas::V1::Grafeas::Note)

    The updated note.

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    The fields to update.

Grafeas::V1::Grafeas::ListNoteOccurrencesRequest

Request to list occurrences for a note.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The name of the note to list occurrences for in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.

  • $msg->filter() / $msg->filter($value)

    Type: String

    The filter expression.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Number of occurrences to return in the list.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Token to provide to skip to a particular spot in the list.

Grafeas::V1::Grafeas::ListNoteOccurrencesResponse

Response for listing occurrences for a note.

Inherits from Protobuf::Message.

Accessors

  • $msg->occurrences() / $msg->occurrences($value)

    Type: Message (Grafeas::V1::Grafeas::Occurrence)

    The occurrences attached to the specified note.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    Token to provide to skip to a particular spot in the list.

Grafeas::V1::Grafeas::BatchCreateNotesRequest

Request to create notes in batch.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created.

  • $msg->notes() / $msg->notes($value)

    Type: Message (Grafeas::V1::Grafeas::BatchCreateNotesRequest::NotesEntry)

    The notes to create. Max allowed length is 1000.

Grafeas::V1::Grafeas::BatchCreateNotesResponse

Response for creating notes in batch.

Inherits from Protobuf::Message.

Accessors

Grafeas::V1::Grafeas::BatchCreateOccurrencesRequest

Request to create occurrences in batch.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created.

  • $msg->occurrences() / $msg->occurrences($value)

    Type: Message (Grafeas::V1::Grafeas::Occurrence)

    The occurrences to create. Max allowed length is 1000.

Grafeas::V1::Grafeas::BatchCreateOccurrencesResponse

Response for creating occurrences in batch.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Grafeas::V1::Grafeas::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.