Cloud Speech V2 Client - Class AdaptationPhraseSet (1.9.1)

Reference documentation and code samples for the Cloud Speech V2 Client class AdaptationPhraseSet.

A biasing phrase set, which can be either a string referencing the name of an existing phrase set resource, or an inline definition of a phrase set.

Generated from protobuf message google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ phrase_setstring

The name of an existing phrase set resource. The user must have read access to the resource and it must not be deleted.

↳ inline_phrase_setGoogle\Cloud\Speech\V2\PhraseSet

An inline defined phrase set.

getPhraseSet

The name of an existing phrase set resource. The user must have read access to the resource and it must not be deleted.

Returns
TypeDescription
string

hasPhraseSet

setPhraseSet

The name of an existing phrase set resource. The user must have read access to the resource and it must not be deleted.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getInlinePhraseSet

An inline defined phrase set.

Returns
TypeDescription
Google\Cloud\Speech\V2\PhraseSet|null

hasInlinePhraseSet

setInlinePhraseSet

An inline defined phrase set.

Parameter
NameDescription
varGoogle\Cloud\Speech\V2\PhraseSet
Returns
TypeDescription
$this

getValue

Returns
TypeDescription
string