Cloud Speech V1 Client - Class CreateCustomClassRequest (1.13.1)

Reference documentation and code samples for the Cloud Speech V1 Client class CreateCustomClassRequest.

Message sent by the client for the CreateCustomClass method.

Generated from protobuf message google.cloud.speech.v1.CreateCustomClassRequest

Namespace

Google \ Cloud \ Speech \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ parentstring

Required. 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 with matching us or eu location value.

↳ custom_class_idstring

Required. 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.

↳ custom_classGoogle\Cloud\Speech\V1\CustomClass

Required. The custom class to create.

getParent

Required. 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 with matching us or eu location value.

Returns
TypeDescription
string

setParent

Required. 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 with matching us or eu location value.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getCustomClassId

Required. 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.

Returns
TypeDescription
string

setCustomClassId

Required. 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.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getCustomClass

Required. The custom class to create.

Returns
TypeDescription
Google\Cloud\Speech\V1\CustomClass|null

hasCustomClass

clearCustomClass

setCustomClass

Required. The custom class to create.

Parameter
NameDescription
varGoogle\Cloud\Speech\V1\CustomClass
Returns
TypeDescription
$this