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 | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ phrase_set |
string
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_set |
Google\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.
Generated from protobuf field string phrase_set = 1 [(.google.api.resource_reference) = {
Returns | |
---|---|
Type | Description |
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.
Generated from protobuf field string phrase_set = 1 [(.google.api.resource_reference) = {
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getInlinePhraseSet
An inline defined phrase set.
Generated from protobuf field .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
Returns | |
---|---|
Type | Description |
Google\Cloud\Speech\V2\PhraseSet|null |
hasInlinePhraseSet
setInlinePhraseSet
An inline defined phrase set.
Generated from protobuf field .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Speech\V2\PhraseSet
|
Returns | |
---|---|
Type | Description |
$this |
getValue
Returns | |
---|---|
Type | Description |
string |