NAME

Google::Cloud::Capacityplanner::V1beta::Resource - Compiled Protocol Buffers messages for google/cloud/capacityplanner/v1beta/resource.proto

SYNOPSIS

use Google::Cloud::Capacityplanner::V1beta::Resource;

my $msg = Google::Cloud::Capacityplanner::V1beta::Resource::ResourceContainer->new({
    type => $type,
    id => $id,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Capacityplanner::V1beta::Resource::ResourceContainer->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/capacityplanner/v1beta/resource.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Capacityplanner::V1beta::Resource::ResourceContainer

The resource container of Google Cloud Platform hierarchy such as a project.

Inherits from Protobuf::Message.

Accessors

Enum: ResourceContainer::Type

  • TYPE_UNSPECIFIED => 0

  • PROJECT => 1

  • FOLDER => 2

  • ORG => 3

Google::Cloud::Capacityplanner::V1beta::Resource::ResourceIdKey

The id for a Google Cloud Platform resource key.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. resource_code for the resource. eg: gce-ram, gce-vcpus, gce-gpu, gce-tpu, gce-vm, gce-persistent-disk, gce-local-ssd.

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

    Type: Message (Google::Cloud::Capacityplanner::V1beta::Resource::ResourceIdentifier)

    Required. Id of the resource.

Google::Cloud::Capacityplanner::V1beta::Resource::ResourceIdentifier

The identifier for a Google Cloud Platform resource.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Capacityplanner::V1beta::Resource::ResourceAttribute

An attribute of a Google Cloud Platform resource.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Capacityplanner::V1beta::Resource::ResourceValue

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Capacityplanner::V1beta::Resource::Value

Inherits from Protobuf::Message.

Accessors

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

    Type: Int64

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

    Type: String

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

    Type: Double

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

    Type: Bool

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Capacityplanner::V1beta::Resource::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.