Service Client: Google::Cloud::Support::V2::CaseService::CaseServiceClient
Client stub representing the remote CaseService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to support.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Support::V2::CaseService - Compiled Protocol Buffers messages for google/cloud/support/v2/case_service.proto
SYNOPSIS
use Google::Cloud::Support::V2::CaseService;
my $msg = Google::Cloud::Support::V2::CaseService::GetCaseRequest->new({
name => $name,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Support::V2::CaseService::GetCaseRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/support/v2/case_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::Cloud::Support::V2::CaseService::GetCaseRequest
The request message for the GetCase endpoint.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The full name of a case to be retrieved.
Google::Cloud::Support::V2::CaseService::CreateCaseRequest
The request message for the CreateCase endpoint.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the parent under which the case should be created.
$msg->case()/$msg->case($value)Type:
Message(Google::Cloud::Support::V2::Case::Case)Required. The case to be created.
Google::Cloud::Support::V2::CaseService::ListCasesRequest
The request message for the ListCases endpoint.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of a parent to list cases under.
$msg->filter()/$msg->filter($value)Type:
StringAn expression used to filter cases.
If it's an empty string, then no filtering happens. Otherwise, the endpoint returns the cases that match the filter.
Expressions use the following fields separated by `AND` and specified with `=`:
- `state`: Can be `OPEN` or `CLOSED`. - `priority`: Can be `P0`, `P1`, `P2`, `P3`, or `P4`. You can specify multiple values for priority using the `OR` operator. For example, `priority=P1 OR priority=P2`. - `creator.email`: The email address of the case creator.
EXAMPLES:
- `state=CLOSED` - `state=OPEN AND creator.email="tester@example.com"` - `state=OPEN AND (priority=P0 OR priority=P1)`
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of cases fetched with each request. Defaults to 10.
$msg->page_token()/$msg->page_token($value)Type:
StringA token identifying the page of results to return. If unspecified, the first page is retrieved.
Google::Cloud::Support::V2::CaseService::ListCasesResponse
The response message for the ListCases endpoint.
Inherits from Protobuf::Message.
Accessors
$msg->cases()/$msg->cases($value)Type:
Message(Google::Cloud::Support::V2::Case::Case)The list of cases associated with the parent after any filters have been applied.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token to retrieve the next page of results. Set this in the `page_token` field of subsequent `cases.list` requests. If unspecified, there are no more results to retrieve.
Google::Cloud::Support::V2::CaseService::SearchCasesRequest
The request message for the SearchCases endpoint.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringThe name of the parent resource to search for cases under.
$msg->query()/$msg->query($value)Type:
StringAn expression used to filter cases.
Expressions use the following fields separated by `AND` and specified with `=`:
- `state`: Can be `OPEN` or `CLOSED`. - `priority`: Can be `P0`, `P1`, `P2`, `P3`, or `P4`. You can specify multiple values for priority using the `OR` operator. For example, `priority=P1 OR priority=P2`. - `creator.email`: The email address of the case creator.
To search across `displayName`, `description`, and comments, use a global restriction with no keyword or operator. For example, `"my search"`.
To search only cases updated after a certain date, use `update_time` restricted with that particular date, time, and timezone in ISO datetime format. For example, `update_time>"2020-01-01T00:00:00-05:00"`. `update_time` only supports the greater than operator (`>`).
If you are using the `v2` version of the API, you must specify the case parent in the `parent` field. If you provide an empty `query`, all cases under the parent resource will be returned.
If you are using the `v2beta` version of the API, you must specify the case parent in the `query` field using one of the two fields below, which are only available for `v2beta`. The `parent` field will be ignored.
- `organization`: An organization name in the form `organizations/<organization_id>`. - `project`: A project name in the form `projects/<project_id>`.
Examples:
For `v2`:
- `state=CLOSED` - `state=OPEN AND creator.email="tester@example.com"` - `state=OPEN AND (priority=P0 OR priority=P1)` - `update_time>"2020-01-01T00:00:00-05:00"`
For `v2beta`:
- `organization="organizations/123456789"` - `project="projects/my-project-id"` - `project="projects/123456789"` - `organization="organizations/123456789" AND state=CLOSED` - `project="projects/my-project-id" AND creator.email="tester@example.com"` - `project="projects/my-project-id" AND (priority=P0 OR priority=P1)`
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of cases fetched with each request. The default page size is 10.
$msg->page_token()/$msg->page_token($value)Type:
StringA token identifying the page of results to return. If unspecified, the first page is retrieved.
Google::Cloud::Support::V2::CaseService::SearchCasesResponse
The response message for the SearchCases endpoint.
Inherits from Protobuf::Message.
Accessors
$msg->cases()/$msg->cases($value)Type:
Message(Google::Cloud::Support::V2::Case::Case)The list of cases associated with the parent after any filters have been applied.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token to retrieve the next page of results. Set this in the `page_token` field of subsequent `cases.search` requests. If unspecified, there are no more results to retrieve.
Google::Cloud::Support::V2::CaseService::EscalateCaseRequest
The request message for the EscalateCase endpoint.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the case to be escalated.
$msg->escalation()/$msg->escalation($value)Type:
Message(Google::Cloud::Support::V2::Escalation::Escalation)The escalation information to be sent with the escalation request.
Google::Cloud::Support::V2::CaseService::UpdateCaseRequest
The request message for the UpdateCase endpoint
Inherits from Protobuf::Message.
Accessors
$msg->case()/$msg->case($value)Type:
Message(Google::Cloud::Support::V2::Case::Case)Required. The case to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)A list of attributes of the case that should be updated. Supported values are `priority`, `display_name`, and `subscriber_email_addresses`. If no fields are specified, all supported fields are updated.
Be careful - if you do not provide a field mask, then you might accidentally clear some fields. For example, if you leave the field mask empty and do not provide a value for `subscriber_email_addresses`, then `subscriber_email_addresses` is updated to empty.
Google::Cloud::Support::V2::CaseService::CloseCaseRequest
The request message for the CloseCase endpoint.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the case to close.
Google::Cloud::Support::V2::CaseService::SearchCaseClassificationsRequest
The request message for the SearchCaseClassifications endpoint.
Inherits from Protobuf::Message.
Accessors
$msg->query()/$msg->query($value)Type:
StringAn expression used to filter case classifications.
If it's an empty string, then no filtering happens. Otherwise, case classifications will be returned that match the filter.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of classifications fetched with each request.
$msg->page_token()/$msg->page_token($value)Type:
StringA token identifying the page of results to return. If unspecified, the first page is retrieved.
Google::Cloud::Support::V2::CaseService::SearchCaseClassificationsResponse
The response message for SearchCaseClassifications endpoint.
Inherits from Protobuf::Message.
Accessors
$msg->case_classifications()/$msg->case_classifications($value)Type:
Message(Google::Cloud::Support::V2::Case::CaseClassification)The classifications retrieved.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token to retrieve the next page of results. Set this in the `page_token` field of subsequent `caseClassifications.list` requests. If unspecified, there are no more results to retrieve.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Support::V2::CaseService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.