Class ProjectsResource.LocationsResource.BatchTranslateDocumentRequest
Translates a large volume of document 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.v3beta1
Assembly: Google.Apis.Translate.v3beta1.dll
Syntax
public class ProjectsResource.LocationsResource.BatchTranslateDocumentRequest : TranslateBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
BatchTranslateDocumentRequest(IClientService, BatchTranslateDocumentRequest, string)
Constructs a new BatchTranslateDocument request.
Declaration
public BatchTranslateDocumentRequest(IClientService service, BatchTranslateDocumentRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
BatchTranslateDocumentRequest | 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 regional call. 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 BatchTranslateDocument parameter list.
Declaration
protected override void InitParameters()