NAME

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

SYNOPSIS

use Grafeas::V1::Provenance;

my $msg = Grafeas::V1::Provenance::BuildProvenance->new({
    id => $id,
    project_id => $project_id,
    commands => $commands,
    built_artifacts => $built_artifacts,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from grafeas/v1/provenance.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::Provenance::BuildProvenance

Provenance of a build. Contains all information needed to verify the full details about the build from source to completion.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Unique identifier of the build.

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

    Type: String

    ID of the project.

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

    Type: Message (Grafeas::V1::Provenance::Command)

    Commands requested by the build.

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

    Type: Message (Grafeas::V1::Provenance::Artifact)

    Output of the build.

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

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

    Time at which the build was created.

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

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

    Time at which execution of the build was started.

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

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

    Time at which execution of the build was finished.

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

    Type: String

    E-mail address of the user who initiated this build. Note that this was the user's e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.

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

    Type: String

    URI where any logs for this provenance were written.

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

    Type: Message (Grafeas::V1::Provenance::Source)

    Details of the Source input to the build.

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

    Type: String

    Trigger identifier if the build was triggered automatically; empty if not.

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

    Type: Message (Grafeas::V1::Provenance::BuildProvenance::BuildOptionsEntry)

    Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.

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

    Type: String

    Version string of the builder at the time this build was executed.

Grafeas::V1::Provenance::Source

Source describes the location of the source used for the build.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    If provided, the input binary artifacts for the build came from this location.

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

    Type: Message (Grafeas::V1::Provenance::Source::FileHashesEntry)

    Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build.

    The keys to this map are file paths used as build source and the values contain the hash values for those files.

    If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file.

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

    Type: Message (Grafeas::V1::Provenance::SourceContext)

    If provided, the source code used for the build came from this location.

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

    Type: Message (Grafeas::V1::Provenance::SourceContext)

    If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.

Grafeas::V1::Provenance::FileHashes

Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build.

Inherits from Protobuf::Message.

Accessors

Grafeas::V1::Provenance::Hash

Container message for hash values.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The type of hash that was performed, e.g. "SHA-256".

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

    Type: Bytes

    Required. The hash value.

Grafeas::V1::Provenance::Command

Command describes a step performed as part of the build pipeline.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.

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

    Type: String

    Environment variables set before running this command.

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

    Type: String

    Command-line arguments used when executing this command.

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

    Type: String

    Working directory (relative to project source root) used when running this command.

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

    Type: String

    Optional unique identifier for this command, used in wait_for to reference this command as a dependency.

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

    Type: String

    The ID(s) of the command(s) that this command depends on.

Grafeas::V1::Provenance::Artifact

Artifact describes a build product.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.

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

    Type: String

    Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`.

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

    Type: String

    Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.

Grafeas::V1::Provenance::SourceContext

A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.

Inherits from Protobuf::Message.

Accessors

Grafeas::V1::Provenance::AliasContext

An alias to a repo revision.

Inherits from Protobuf::Message.

Accessors

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

    Type: Enum (Grafeas::V1::AliasContext::Kind)

    The alias kind.

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

    Type: String

    The alias name.

Enum: AliasContext::Kind

  • KIND_UNSPECIFIED => 0

  • FIXED => 1

  • MOVABLE => 2

  • OTHER => 4

Grafeas::V1::Provenance::CloudRepoSourceContext

A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo.

Inherits from Protobuf::Message.

Accessors

Grafeas::V1::Provenance::GerritSourceContext

A SourceContext referring to a Gerrit project.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The URI of a running Gerrit instance.

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

    Type: String

    The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project.

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

    Type: String

    A revision (commit) ID.

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

    Type: Message (Grafeas::V1::Provenance::AliasContext)

    An alias, which may be a branch or tag.

Grafeas::V1::Provenance::GitSourceContext

A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub).

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Git repository URL.

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

    Type: String

    Git commit hash.

Grafeas::V1::Provenance::RepoId

A unique identifier for a Cloud Repo.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Grafeas::V1::Provenance::ProjectRepoId)

    A combination of a project ID and a repo name.

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

    Type: String

    A server-assigned, globally unique identifier.

Grafeas::V1::Provenance::ProjectRepoId

Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The ID of the project.

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

    Type: String

    The name of the repo. Leave empty for the default repo.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.