Service Client: Google::Monitoring::V3::GroupService::GroupServiceClient
Client stub representing the remote GroupService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to monitoring.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Monitoring::V3::GroupService - Compiled Protocol Buffers messages for google/monitoring/v3/group_service.proto
SYNOPSIS
use Google::Monitoring::V3::GroupService;
my $msg = Google::Monitoring::V3::GroupService::ListGroupsRequest->new({
name => $name,
children_of_group => $children_of_group,
ancestors_of_group => $ancestors_of_group,
descendants_of_group => $descendants_of_group,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Monitoring::V3::GroupService::ListGroupsRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/monitoring/v3/group_service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Monitoring::V3::GroupService::ListGroupsRequest
The `ListGroup` request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The [project](https://cloud.google.com/monitoring/api/v3#project_name) whose groups are to be listed. The format is:
projects/[PROJECT_ID_OR_NUMBER]$msg->children_of_group()/$msg->children_of_group($value)Type:
StringA group name. The format is:
projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]Returns groups whose `parent_name` field contains the group name. If no groups have this parent, the results are empty.
$msg->ancestors_of_group()/$msg->ancestors_of_group($value)Type:
StringA group name. The format is:
projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]Returns groups that are ancestors of the specified group. The groups are returned in order, starting with the immediate parent and ending with the most distant ancestor. If the specified group has no immediate parent, the results are empty.
$msg->descendants_of_group()/$msg->descendants_of_group($value)Type:
StringA group name. The format is:
projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]Returns the descendants of the specified group. This is a superset of the results returned by the `children_of_group` filter, and includes children-of-children, and so forth.
$msg->page_size()/$msg->page_size($value)Type:
Int32A positive number that is the maximum number of results to return.
$msg->page_token()/$msg->page_token($value)Type:
StringIf this field is not empty then it must contain the `next_page_token` value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
Google::Monitoring::V3::GroupService::ListGroupsResponse
The `ListGroups` response.
Inherits from Protobuf::Message.
Accessors
$msg->group()/$msg->group($value)Type:
Message(Google::Monitoring::V3::Group::Group)The groups that match the specified filters.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringIf there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as `page_token` in the next call to this method.
Google::Monitoring::V3::GroupService::GetGroupRequest
The `GetGroup` request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The group to retrieve. The format is:
projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
Google::Monitoring::V3::GroupService::CreateGroupRequest
The `CreateGroup` request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in which to create the group. The format is:
projects/[PROJECT_ID_OR_NUMBER]$msg->group()/$msg->group($value)Type:
Message(Google::Monitoring::V3::Group::Group)Required. A group definition. It is an error to define the `name` field because the system assigns the name.
$msg->validate_only()/$msg->validate_only($value)Type:
BoolIf true, validate this request but do not create the group.
Google::Monitoring::V3::GroupService::UpdateGroupRequest
The `UpdateGroup` request.
Inherits from Protobuf::Message.
Accessors
$msg->group()/$msg->group($value)Type:
Message(Google::Monitoring::V3::Group::Group)Required. The new definition of the group. All fields of the existing group, excepting `name`, are replaced with the corresponding fields of this group.
$msg->validate_only()/$msg->validate_only($value)Type:
BoolIf true, validate this request but do not update the existing group.
Google::Monitoring::V3::GroupService::DeleteGroupRequest
The `DeleteGroup` request. The default behavior is to be able to delete a single group without any descendants.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The group to delete. The format is:
projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]$msg->recursive()/$msg->recursive($value)Type:
BoolIf this field is true, then the request means to delete a group with all its descendants. Otherwise, the request means to delete a group only when it has no descendants. The default value is false.
Google::Monitoring::V3::GroupService::ListGroupMembersRequest
The `ListGroupMembers` request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The group whose members are listed. The format is:
projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]$msg->page_size()/$msg->page_size($value)Type:
Int32A positive number that is the maximum number of results to return.
$msg->page_token()/$msg->page_token($value)Type:
StringIf this field is not empty then it must contain the `next_page_token` value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
$msg->filter()/$msg->filter($value)Type:
StringAn optional [list filter](https://cloud.google.com/monitoring/api/learn_more#filtering) describing the members to be returned. The filter may reference the type, labels, and metadata of monitored resources that comprise the group. For example, to return only resources representing Compute Engine VM instances, use this filter:
`resource.type = "gce_instance"`$msg->interval()/$msg->interval($value)Type:
Message(Google::Monitoring::V3::Common::TimeInterval)An optional time interval for which results should be returned. Only members that were part of the group during the specified interval are included in the response. If no interval is provided then the group membership over the last minute is returned.
Google::Monitoring::V3::GroupService::ListGroupMembersResponse
The `ListGroupMembers` response.
Inherits from Protobuf::Message.
Accessors
$msg->members()/$msg->members($value)Type:
Message(Google::Api::MonitoredResource::MonitoredResource)A set of monitored resources in the group.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringIf there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as `page_token` in the next call to this method.
$msg->total_size()/$msg->total_size($value)Type:
Int32The total number of elements matching this request.
SEE ALSO
Protobuf, Protobuf::Message, Google::Monitoring::V3::GroupService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.