Cloud Speech V1p1beta1 Client - Class CustomClass (1.8.0)

Reference documentation and code samples for the Cloud Speech V1p1beta1 Client class CustomClass.

A set of words or phrases that represents a common concept likely to appear in your audio, for example a list of passenger ship names. CustomClass items can be substituted into placeholders that you set in PhraseSet phrases.

Generated from protobuf message google.cloud.speech.v1p1beta1.CustomClass

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ name
string

The resource name of the custom class.

↳ custom_class_id
string

If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive.

↳ items
array< Google\Cloud\Speech\V1p1beta1\CustomClass\ClassItem >

A collection of class items.

getName

The resource name of the custom class.

Generated from protobuf field string name = 1;

Returns
Type
Description
string

setName

The resource name of the custom class.

Generated from protobuf field string name = 1;

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getCustomClassId

If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive.

Generated from protobuf field string custom_class_id = 2;

Returns
Type
Description
string

setCustomClassId

If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive.

Generated from protobuf field string custom_class_id = 2;

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getItems

A collection of class items.

Generated from protobuf field repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3;

Returns
Type
Description
Google\Protobuf\Internal\RepeatedField

setItems

A collection of class items.

Generated from protobuf field repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3;

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: