Service Client: Google::Devtools::Cloudprofiler::V2::Profiler::ProfilerServiceClient

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

target

The endpoint target address. Defaults to devtools.googleapis.com:443.

credentials

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

Service Client: Google::Devtools::Cloudprofiler::V2::Profiler::ExportServiceClient

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

target

The endpoint target address. Defaults to devtools.googleapis.com:443.

credentials

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

NAME

Google::Devtools::Cloudprofiler::V2::Profiler - Compiled Protocol Buffers messages for google/devtools/cloudprofiler/v2/profiler.proto

SYNOPSIS

use Google::Devtools::Cloudprofiler::V2::Profiler;

my $msg = Google::Devtools::Cloudprofiler::V2::Profiler::CreateProfileRequest->new({
    parent => $parent,
    deployment => $deployment,
    profile_type => $profile_type,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Devtools::Cloudprofiler::V2::Profiler::CreateProfileRequest->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/devtools/cloudprofiler/v2/profiler.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Devtools::Cloudprofiler::V2::Profiler::CreateProfileRequest

CreateProfileRequest describes a profile resource online creation request. The deployment field must be populated. The profile_type specifies the list of profile types supported by the agent. The creation call will hang until a profile of one of these types needs to be collected.

Inherits from Protobuf::Message.

Accessors

Google::Devtools::Cloudprofiler::V2::Profiler::CreateOfflineProfileRequest

CreateOfflineProfileRequest describes a profile resource offline creation request.

Inherits from Protobuf::Message.

Accessors

Google::Devtools::Cloudprofiler::V2::Profiler::UpdateProfileRequest

UpdateProfileRequest contains the profile to update.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Devtools::Cloudprofiler::V2::Profiler::Profile)

    Profile to update.

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

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

    Field mask used to specify the fields to be overwritten. Currently only profile_bytes and labels fields are supported by UpdateProfile, so only those fields can be specified in the mask. When no mask is provided, all fields are overwritten.

Google::Devtools::Cloudprofiler::V2::Profiler::Profile

Profile resource.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. Opaque, server-assigned, unique ID for this profile.

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

    Type: Enum (Google::Devtools::Cloudprofiler::V2::ProfileType)

    Type of profile. For offline mode, this must be specified when creating the profile. For online mode it is assigned and returned by the server.

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

    Type: Message (Google::Devtools::Cloudprofiler::V2::Profiler::Deployment)

    Deployment this profile corresponds to.

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

    Type: Message (Google::Protobuf::Duration::Duration)

    Duration of the profiling session. Input (for the offline mode) or output (for the online mode). The field represents requested profiling duration. It may slightly differ from the effective profiling duration, which is recorded in the profile data, in case the profiling can't be stopped immediately (e.g. in case stopping the profiling is handled asynchronously).

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

    Type: Bytes

    Input only. Profile bytes, as a gzip compressed serialized proto, the format is https://github.com/google/pprof/blob/master/proto/profile.proto.

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

    Type: Message (Google::Devtools::Cloudprofiler::V2::Profiler::Profile::LabelsEntry)

    Input only. Labels associated to this specific profile. These labels will get merged with the deployment labels for the final data set. See documentation on deployment labels for validation rules and limits.

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

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

    Output only. Start time for the profile. This output is only present in response from the ListProfiles method.

Google::Devtools::Cloudprofiler::V2::Profiler::Deployment

Deployment contains the deployment identification information.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Project ID is the ID of a cloud project. Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.

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

    Type: String

    Target is the service name used to group related deployments: * Service name for App Engine Flex / Standard. * Cluster and container name for GKE. * User-specified string for direct Compute Engine profiling (e.g. Java). * Job name for Dataflow. Validation regex: `^[a-z0-9]([-a-z0-9_.]{0,253}[a-z0-9])?$`.

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

    Type: Message (Google::Devtools::Cloudprofiler::V2::Profiler::Deployment::LabelsEntry)

    Labels identify the deployment within the user universe and same target. Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`. Value for an individual label must be <= 512 bytes, the total size of all label names and values must be <= 1024 bytes.

    Label named "language" can be used to record the programming language of the profiled deployment. The standard choices for the value include "java", "go", "python", "ruby", "nodejs", "php", "dotnet".

    For deployments running on Google Cloud Platform, "zone" or "region" label should be present describing the deployment location. An example of a zone is "us-central1-a", an example of a region is "us-central1" or "us-central".

Google::Devtools::Cloudprofiler::V2::Profiler::ListProfilesRequest

ListProfilesRequest contains request parameters for listing profiles for deployments in projects which the user has permissions to view.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent, which owns this collection of profiles. Format: projects/{user_project_id}

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

    Type: Int32

    The maximum number of items to return. Default page_size is 1000. Max limit is 1000.

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

    Type: String

    The token to continue pagination and get profiles from a particular page. When paginating, all other parameters provided to `ListProfiles` must match the call that provided the page token.

Google::Devtools::Cloudprofiler::V2::Profiler::ListProfilesResponse

ListProfileResponse contains the list of collected profiles for deployments in projects which the user has permissions to view.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Devtools::Cloudprofiler::V2::Profiler::Profile)

    List of profiles fetched.

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

    Type: String

    Token to receive the next page of results. This field maybe empty if there are no more profiles to fetch.

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

    Type: Int32

    Number of profiles that were skipped in the current page since they were not able to be fetched successfully. This should typically be zero. A non-zero value may indicate a transient failure, in which case if the number is too high for your use case, the call may be retried.

SEE ALSO

Protobuf, Protobuf::Message, Google::Devtools::Cloudprofiler::V2::Profiler::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.