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:
StringRequired. Unique identifier of the build.
$msg->project_id()/$msg->project_id($value)Type:
StringID 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:
StringE-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:
StringURI 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:
StringTrigger 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:
StringVersion 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:
StringIf 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
$msg->file_hash()/$msg->file_hash($value)Type:
Message(Grafeas::V1::Provenance::Hash)Required. Collection of file hashes.
Grafeas::V1::Provenance::Hash
Container message for hash values.
Inherits from Protobuf::Message.
Accessors
$msg->type()/$msg->type($value)Type:
StringRequired. The type of hash that was performed, e.g. "SHA-256".
$msg->value()/$msg->value($value)Type:
BytesRequired. 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:
StringRequired. 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:
StringEnvironment variables set before running this command.
$msg->args()/$msg->args($value)Type:
StringCommand-line arguments used when executing this command.
$msg->dir()/$msg->dir($value)Type:
StringWorking directory (relative to project source root) used when running this command.
$msg->id()/$msg->id($value)Type:
StringOptional unique identifier for this command, used in wait_for to reference this command as a dependency.
$msg->wait_for()/$msg->wait_for($value)Type:
StringThe 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:
StringHash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
$msg->id()/$msg->id($value)Type:
StringArtifact 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:
StringRelated 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
$msg->cloud_repo()/$msg->cloud_repo($value)Type:
Message(Grafeas::V1::Provenance::CloudRepoSourceContext)A SourceContext referring to a revision in a Google Cloud Source Repo.
$msg->gerrit()/$msg->gerrit($value)Type:
Message(Grafeas::V1::Provenance::GerritSourceContext)A SourceContext referring to a Gerrit project.
$msg->git()/$msg->git($value)Type:
Message(Grafeas::V1::Provenance::GitSourceContext)A SourceContext referring to any third party Git repo (e.g., GitHub).
$msg->labels()/$msg->labels($value)Type:
Message(Grafeas::V1::Provenance::SourceContext::LabelsEntry)Labels with user defined metadata.
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:
StringThe alias name.
Enum: AliasContext::Kind
KIND_UNSPECIFIED=>0FIXED=>1MOVABLE=>2OTHER=>4
Grafeas::V1::Provenance::CloudRepoSourceContext
A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo.
Inherits from Protobuf::Message.
Accessors
$msg->repo_id()/$msg->repo_id($value)Type:
Message(Grafeas::V1::Provenance::RepoId)The ID of the repo.
$msg->revision_id()/$msg->revision_id($value)Type:
StringA revision 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::GerritSourceContext
A SourceContext referring to a Gerrit project.
Inherits from Protobuf::Message.
Accessors
$msg->host_uri()/$msg->host_uri($value)Type:
StringThe URI of a running Gerrit instance.
$msg->gerrit_project()/$msg->gerrit_project($value)Type:
StringThe 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:
StringA 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:
StringGit repository URL.
$msg->revision_id()/$msg->revision_id($value)Type:
StringGit 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:
StringA 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:
StringThe ID of the project.
$msg->repo_name()/$msg->repo_name($value)Type:
StringThe 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.