Cloud Speech V2 Client - Class CreateRecognizerRequest (2.3.0) Stay organized with collections Save and categorize content based on your preferences.
Reference documentation and code samples for the Cloud Speech V2 Client class CreateRecognizerRequest.
Request message for theCreateRecognizer method.
Generated from protobuf messagegoogle.cloud.speech.v2.CreateRecognizerRequest
Namespace
Google \ Cloud \ Speech \ V2Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data | arrayOptional. Data for populating the Message object. |
↳ recognizer | RecognizerRequired. The Recognizer to create. |
↳ validate_only | boolIf set, validate the request and preview the Recognizer, but do not actually create it. |
↳ recognizer_id | stringThe ID to use for the Recognizer, which will become the final component of the Recognizer's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |
↳ parent | stringRequired. The project and location where this Recognizer will be created. The expected format is |
getRecognizer
Required. The Recognizer to create.
| Returns | |
|---|---|
| Type | Description |
Recognizer|null | |
hasRecognizer
clearRecognizer
setRecognizer
Required. The Recognizer to create.
| Parameter | |
|---|---|
| Name | Description |
var | Recognizer |
| Returns | |
|---|---|
| Type | Description |
$this | |
getValidateOnly
If set, validate the request and preview the Recognizer, but do notactually create it.
| Returns | |
|---|---|
| Type | Description |
bool | |
setValidateOnly
If set, validate the request and preview the Recognizer, but do notactually create it.
| Parameter | |
|---|---|
| Name | Description |
var | bool |
| Returns | |
|---|---|
| Type | Description |
$this | |
getRecognizerId
The ID to use for the Recognizer, which will become the final component ofthe Recognizer's resource name.
This value should be 4-63 characters, and valid charactersare /[a-z][0-9]-/.
| Returns | |
|---|---|
| Type | Description |
string | |
setRecognizerId
The ID to use for the Recognizer, which will become the final component ofthe Recognizer's resource name.
This value should be 4-63 characters, and valid charactersare /[a-z][0-9]-/.
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$this | |
getParent
Required. The project and location where this Recognizer will be created.
The expected format isprojects/{project}/locations/{location}.
| Returns | |
|---|---|
| Type | Description |
string | |
setParent
Required. The project and location where this Recognizer will be created.
The expected format isprojects/{project}/locations/{location}.
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$this | |
static::build
| Parameters | |
|---|---|
| Name | Description |
parent | stringRequired. The project and location where this Recognizer will be created.The expected format is |
recognizer | RecognizerRequired. The Recognizer to create. |
recognizerId | stringThe ID to use for the Recognizer, which will become the final component ofthe Recognizer's resource name. This value should be 4-63 characters, and valid charactersare /[a-z][0-9]-/. |
| Returns | |
|---|---|
| Type | Description |
CreateRecognizerRequest | |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-23 UTC.