class ProjectsLocationsCustomClasses extends Resource (View source)

The "customClasses" collection of methods.

Typical usage is:

 $speechService = new Google\Service\Speech(...);
 $customClasses = $speechService->projects_locations_customClasses;

Methods

create(string $parent, CreateCustomClassRequest $postBody, array $optParams = [])

Create a custom class. (customClasses.create)

delete(string $name, array $optParams = [])

Delete a custom class. (customClasses.delete)

get(string $name, array $optParams = [])

Get a custom class. (customClasses.get)

listProjectsLocationsCustomClasses(string $parent, array $optParams = [])

List custom classes. (customClasses.listProjectsLocationsCustomClasses)

patch(string $name, CustomClass $postBody, array $optParams = [])

Update a custom class. (customClasses.patch)

Details

CustomClass create(string $parent, CreateCustomClassRequest $postBody, array $optParams = [])

Create a custom class. (customClasses.create)

Parameters

string $parent

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.

CreateCustomClassRequest $postBody
array $optParams

Optional parameters.

Return Value

CustomClass

Exceptions

Exception

SpeechEmpty delete(string $name, array $optParams = [])

Delete a custom class. (customClasses.delete)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

SpeechEmpty

Exceptions

Exception

CustomClass get(string $name, array $optParams = [])

Get a custom class. (customClasses.get)

Parameters

string $name

Required. The name of the custom class to retrieve. Format: projects/{project}/locations/{location}/customClasses/{custom_class}

array $optParams

Optional parameters.

Return Value

CustomClass

Exceptions

Exception

ListCustomClassesResponse listProjectsLocationsCustomClasses(string $parent, array $optParams = [])

List custom classes. (customClasses.listProjectsLocationsCustomClasses)

Parameters

string $parent

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

array $optParams

Optional parameters.

Return Value

ListCustomClassesResponse

Exceptions

Exception

CustomClass patch(string $name, CustomClass $postBody, array $optParams = [])

Update a custom class. (customClasses.patch)

Parameters

string $name

The resource name of the custom class.

CustomClass $postBody
array $optParams

Optional parameters.

Return Value

CustomClass

Exceptions

Exception