NAME

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

SYNOPSIS

use Grafeas::V1::Package;

my $msg = Grafeas::V1::Package::Distribution->new({
    cpe_uri => $cpe_uri,
    architecture => $architecture,
    latest_version => $latest_version,
    maintainer => $maintainer,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from grafeas/v1/package.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::Package::Distribution

This represents a particular channel of distribution for a given package. E.g., Debian's jessie-backports dpkg mirror.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.

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

    Type: Enum (Grafeas::V1::Architecture)

    The CPU architecture for which packages in this distribution channel were built.

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

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

    The latest available version of this package in this distribution channel.

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

    Type: String

    A freeform string denoting the maintainer of this package.

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

    Type: String

    The distribution channel-specific homepage for this package.

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

    Type: String

    The distribution channel-specific description of this package.

Grafeas::V1::Package::Location

An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Deprecated. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)

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

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

    Deprecated. The version installed at this location.

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

    Type: String

    The path from which we gathered that this package/version is installed.

Grafeas::V1::Package::PackageNote

PackageNote represents a particular package version.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The name of the package.

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

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

    Deprecated. The various channels by which a package is distributed.

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

    Type: String

    The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).

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

    Type: String

    The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. The cpe_uri will be blank for language packages.

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

    Type: Enum (Grafeas::V1::Architecture)

    The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.

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

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

    The version of the package.

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

    Type: String

    A freeform text denoting the maintainer of this package.

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

    Type: String

    The homepage for this package.

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

    Type: String

    The description of this package.

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

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

    Licenses that have been declared by the authors of the package.

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

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

    Hash value, typically a file digest, that allows unique identification a specific package.

Grafeas::V1::Package::PackageOccurrence

Details on how a particular software package was installed on a system.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The name of the installed package.

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

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

    All of the places within the filesystem versions of this package have been found.

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

    Type: String

    The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).

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

    Type: String

    The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. The cpe_uri will be blank for language packages.

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

    Type: Enum (Grafeas::V1::Architecture)

    The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.

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

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

    Licenses that have been declared by the authors of the package.

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

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

    The version of the package.

Grafeas::V1::Package::Version

Version contains structured information about the version of a package.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int32

    Used to correct mistakes in the version numbering scheme.

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

    Type: String

    Required only when version kind is NORMAL. The main part of the version name.

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

    Type: String

    The iteration of the package build from the above version.

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

    Type: Bool

    Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.

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

    Type: Enum (Grafeas::V1::Version::VersionKind)

    Required. Distinguishes between sentinel MIN/MAX versions and normal versions.

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

    Type: String

    Human readable version string. This string is of the form <epoch>:<name>-<revision> and is only set when kind is NORMAL.

Enum: Version::VersionKind

  • VERSION_KIND_UNSPECIFIED => 0

  • NORMAL => 1

  • MINIMUM => 2

  • MAXIMUM => 3

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.