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
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Capacityplanner::V1beta::ResourceContainer::Type)$msg->id()/$msg->id($value)Type:
StringRequired. Identifier of the resource container. For example, project number for project type.
Enum: ResourceContainer::Type
TYPE_UNSPECIFIED=>0PROJECT=>1FOLDER=>2ORG=>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:
StringRequired. 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
$msg->service_name()/$msg->service_name($value)Type:
String$msg->resource_name()/$msg->resource_name($value)Type:
String$msg->resource_attributes()/$msg->resource_attributes($value)Type:
Message(Google::Cloud::Capacityplanner::V1beta::Resource::ResourceAttribute)
Google::Cloud::Capacityplanner::V1beta::Resource::ResourceAttribute
An attribute of a Google Cloud Platform resource.
Inherits from Protobuf::Message.
Accessors
$msg->key()/$msg->key($value)Type:
String$msg->value()/$msg->value($value)Type:
Message(Google::Cloud::Capacityplanner::V1beta::Resource::ResourceValue)
Google::Cloud::Capacityplanner::V1beta::Resource::ResourceValue
Inherits from Protobuf::Message.
Accessors
$msg->unit()/$msg->unit($value)Type:
Enum(Google::Cloud::Capacityplanner::V1beta::Unit)$msg->value()/$msg->value($value)Type:
Message(Google::Cloud::Capacityplanner::V1beta::Resource::Value)
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.