Cloud Speech V1 Client - Class CreatePhraseSetRequest (1.8.0)

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

Message sent by the client for the CreatePhraseSet method.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent resource where this phrase set will be created. Format: projects/{project}/locations/{location}/phraseSets 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.

↳ phrase_set_id string

Required. The ID to use for the phrase set, which will become the final component of the phrase set's 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.

↳ phrase_set Google\Cloud\Speech\V1\PhraseSet

Required. The phrase set to create.

getParent

Required. The parent resource where this phrase set will be created. Format: projects/{project}/locations/{location}/phraseSets 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.

Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Returns
TypeDescription
string

setParent

Required. The parent resource where this phrase set will be created. Format: projects/{project}/locations/{location}/phraseSets 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.

Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPhraseSetId

Required. The ID to use for the phrase set, which will become the final component of the phrase set's 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.

Generated from protobuf field string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
string

setPhraseSetId

Required. The ID to use for the phrase set, which will become the final component of the phrase set's 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.

Generated from protobuf field string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPhraseSet

Required. The phrase set to create.

Generated from protobuf field .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED];

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

hasPhraseSet

clearPhraseSet

setPhraseSet

Required. The phrase set to create.

Generated from protobuf field .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
var Google\Cloud\Speech\V1\PhraseSet
Returns
TypeDescription
$this