Class ProjectsResource.LocationsResource.PhraseSetsResource.CreateRequest
Create a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call that includes the PhraseSet.
Inheritance
ProjectsResource.LocationsResource.PhraseSetsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.Speech.v1p1beta1
Assembly: Google.Apis.Speech.v1p1beta1.dll
Syntax
public class ProjectsResource.LocationsResource.PhraseSetsResource.CreateRequest : SpeechBaseServiceRequest<PhraseSet>, IClientServiceRequest<PhraseSet>, IClientServiceRequest
Constructors
CreateRequest(IClientService, CreatePhraseSetRequest, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, CreatePhraseSetRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
CreatePhraseSetRequest | body | |
string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Parent
Required. The parent resource where this phrase set will be created. Format:
projects/{project}/locations/{location}
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.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()