Cloud Speech V1p1beta1 Client - Class CreateCustomClassRequest (1.7.0)

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

Message sent by the client for the CreateCustomClass method.

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

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

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.

↳ custom_class_id string

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

↳ custom_class Google\Cloud\Speech\V1p1beta1\CustomClass

Required. The custom class to create.

getParent

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.

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

Returns
Type Description
string

setParent

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.

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

Parameter
Name Description
var string
Returns
Type Description
$this

getCustomClassId

Required. The ID to use for the custom class, which will become the final component of the custom class' 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 custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
string

setCustomClassId

Required. The ID to use for the custom class, which will become the final component of the custom class' 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 custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
var string
Returns
Type Description
$this

getCustomClass

Required. The custom class to create.

Generated from protobuf field .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Google\Cloud\Speech\V1p1beta1\CustomClass|null

hasCustomClass

clearCustomClass

setCustomClass

Required. The custom class to create.

Generated from protobuf field .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
var Google\Cloud\Speech\V1p1beta1\CustomClass
Returns
Type Description
$this