Class ProjectsResource.LocationsResource.BatchTranslateTextRequest
Translates a large volume of text in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call.
Inheritance
Inherited Members
Namespace: Google.Apis.Translate.v3
Assembly: Google.Apis.Translate.v3.dll
Syntax
public class ProjectsResource.LocationsResource.BatchTranslateTextRequest : TranslateBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
BatchTranslateTextRequest(IClientService, BatchTranslateTextRequest, string)
Constructs a new BatchTranslateText request.
Declaration
public BatchTranslateTextRequest(IClientService service, BatchTranslateTextRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
BatchTranslateTextRequest | 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. Location to make a call. Must refer to a caller's project. Format:
projects/{project-number-or-id}/locations/{location-id}
. The global
location is not supported
for batch translation. Only AutoML Translation models or glossaries within the same region (have the
same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.
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 BatchTranslateText parameter list.
Declaration
protected override void InitParameters()