Class ProjectsResource.LocationsResource.CustomClassesResource.CreateRequest
Create a custom class.
Inheritance
ProjectsResource.LocationsResource.CustomClassesResource.CreateRequest
Inherited Members
Namespace: Google.Apis.Speech.v1p1beta1
Assembly: Google.Apis.Speech.v1p1beta1.dll
Syntax
public class ProjectsResource.LocationsResource.CustomClassesResource.CreateRequest : SpeechBaseServiceRequest<CustomClass>, IClientServiceRequest<CustomClass>, IClientServiceRequest
Constructors
CreateRequest(IClientService, CreateCustomClassRequest, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, CreateCustomClassRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
CreateCustomClassRequest | 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 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.
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()