Service Client: Google::Cloud::Speech::V1::CloudSpeechAdaptation::AdaptationClient
Client stub representing the remote Adaptation gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to speech.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Speech::V1::CloudSpeechAdaptation - Compiled Protocol Buffers messages for google/cloud/speech/v1/cloud_speech_adaptation.proto
SYNOPSIS
use Google::Cloud::Speech::V1::CloudSpeechAdaptation;
my $msg = Google::Cloud::Speech::V1::CloudSpeechAdaptation::CreatePhraseSetRequest->new({
parent => $parent,
phrase_set_id => $phrase_set_id,
phrase_set => $phrase_set,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Speech::V1::CloudSpeechAdaptation::CreatePhraseSetRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/speech/v1/cloud_speech_adaptation.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::Speech::V1::CloudSpeechAdaptation::CreatePhraseSetRequest
Message sent by the client for the `CreatePhraseSet` method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource where this phrase set will be created. Format:
`projects/{project}/locations/{location}`
Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
$msg->phrase_set_id()/$msg->phrase_set_id($value)Type:
StringRequired. The ID to use for the phrase set, which will become the final component of the phrase set's resource name.
This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters.
$msg->phrase_set()/$msg->phrase_set($value)Type:
Message(Google::Cloud::Speech::V1::Resource::PhraseSet)Required. The phrase set to create.
Google::Cloud::Speech::V1::CloudSpeechAdaptation::UpdatePhraseSetRequest
Message sent by the client for the `UpdatePhraseSet` method.
Inherits from Protobuf::Message.
Accessors
$msg->phrase_set()/$msg->phrase_set($value)Type:
Message(Google::Cloud::Speech::V1::Resource::PhraseSet)Required. The phrase set to update.
The phrase set's `name` field is used to identify the set to be updated. Format:
`projects/{project}/locations/{location}/phraseSets/{phrase_set}`
Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The list of fields to be updated.
Google::Cloud::Speech::V1::CloudSpeechAdaptation::GetPhraseSetRequest
Message sent by the client for the `GetPhraseSet` method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the phrase set to retrieve. Format:
`projects/{project}/locations/{location}/phraseSets/{phrase_set}`
Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
Google::Cloud::Speech::V1::CloudSpeechAdaptation::ListPhraseSetRequest
Message sent by the client for the `ListPhraseSet` method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent, which owns this collection of phrase set. Format:
`projects/{project}/locations/{location}`
Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of phrase sets to return. The service may return fewer than this value. If unspecified, at most 50 phrase sets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ListPhraseSet` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListPhraseSet` must match the call that provided the page token.
Google::Cloud::Speech::V1::CloudSpeechAdaptation::ListPhraseSetResponse
Message returned to the client by the `ListPhraseSet` method.
Inherits from Protobuf::Message.
Accessors
$msg->phrase_sets()/$msg->phrase_sets($value)Type:
Message(Google::Cloud::Speech::V1::Resource::PhraseSet)The phrase set.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Cloud::Speech::V1::CloudSpeechAdaptation::DeletePhraseSetRequest
Message sent by the client for the `DeletePhraseSet` method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the phrase set to delete. Format:
`projects/{project}/locations/{location}/phraseSets/{phrase_set}`
Google::Cloud::Speech::V1::CloudSpeechAdaptation::CreateCustomClassRequest
Message sent by the client for the `CreateCustomClass` method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource where this custom class will be created. Format:
`projects/{project}/locations/{location}/customClasses`
Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
$msg->custom_class_id()/$msg->custom_class_id($value)Type:
StringRequired. The ID to use for the custom class, which will become the final component of the custom class' resource name.
This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters.
$msg->custom_class()/$msg->custom_class($value)Type:
Message(Google::Cloud::Speech::V1::Resource::CustomClass)Required. The custom class to create.
Google::Cloud::Speech::V1::CloudSpeechAdaptation::UpdateCustomClassRequest
Message sent by the client for the `UpdateCustomClass` method.
Inherits from Protobuf::Message.
Accessors
$msg->custom_class()/$msg->custom_class($value)Type:
Message(Google::Cloud::Speech::V1::Resource::CustomClass)Required. The custom class to update.
The custom class's `name` field is used to identify the custom class to be updated. Format:
`projects/{project}/locations/{location}/customClasses/{custom_class}`
Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The list of fields to be updated.
Google::Cloud::Speech::V1::CloudSpeechAdaptation::GetCustomClassRequest
Message sent by the client for the `GetCustomClass` method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the custom class to retrieve. Format:
`projects/{project}/locations/{location}/customClasses/{custom_class}`
Google::Cloud::Speech::V1::CloudSpeechAdaptation::ListCustomClassesRequest
Message sent by the client for the `ListCustomClasses` method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent, which owns this collection of custom classes. Format:
`projects/{project}/locations/{location}/customClasses`
Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of custom classes to return. The service may return fewer than this value. If unspecified, at most 50 custom classes will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ListCustomClass` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListCustomClass` must match the call that provided the page token.
Google::Cloud::Speech::V1::CloudSpeechAdaptation::ListCustomClassesResponse
Message returned to the client by the `ListCustomClasses` method.
Inherits from Protobuf::Message.
Accessors
$msg->custom_classes()/$msg->custom_classes($value)Type:
Message(Google::Cloud::Speech::V1::Resource::CustomClass)The custom classes.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Cloud::Speech::V1::CloudSpeechAdaptation::DeleteCustomClassRequest
Message sent by the client for the `DeleteCustomClass` method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the custom class to delete. Format:
`projects/{project}/locations/{location}/customClasses/{custom_class}`
Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Speech::V1::CloudSpeechAdaptation::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.