Show / Hide Table of Contents

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
object
ClientServiceRequest
ClientServiceRequest<Operation>
TranslateBaseServiceRequest<Operation>
ProjectsResource.LocationsResource.BatchTranslateDocumentRequest
Implements
IClientServiceRequest<Operation>
IClientServiceRequest
Inherited Members
TranslateBaseServiceRequest<Operation>.Xgafv
TranslateBaseServiceRequest<Operation>.AccessToken
TranslateBaseServiceRequest<Operation>.Alt
TranslateBaseServiceRequest<Operation>.Callback
TranslateBaseServiceRequest<Operation>.Fields
TranslateBaseServiceRequest<Operation>.Key
TranslateBaseServiceRequest<Operation>.OauthToken
TranslateBaseServiceRequest<Operation>.PrettyPrint
TranslateBaseServiceRequest<Operation>.QuotaUser
TranslateBaseServiceRequest<Operation>.UploadType
TranslateBaseServiceRequest<Operation>.UploadProtocol
ClientServiceRequest<Operation>.Execute()
ClientServiceRequest<Operation>.ExecuteAsStream()
ClientServiceRequest<Operation>.ExecuteAsync()
ClientServiceRequest<Operation>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Operation>.ExecuteAsStreamAsync()
ClientServiceRequest<Operation>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Operation>.CreateRequest(bool?)
ClientServiceRequest<Operation>.GenerateRequestUri()
ClientServiceRequest<Operation>.GetDefaultETagAction(string)
ClientServiceRequest<Operation>.ETagAction
ClientServiceRequest<Operation>.ModifyRequest
ClientServiceRequest<Operation>.ValidateParameters
ClientServiceRequest<Operation>.ApiVersion
ClientServiceRequest<Operation>.RequestParameters
ClientServiceRequest<Operation>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
ClientServiceRequest<Operation>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Operation>.MethodName

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
ClientServiceRequest<Operation>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<Operation>.GetBody()

InitParameters()

Initializes BatchTranslateDocument parameter list.

Declaration
protected override void InitParameters()
Overrides
TranslateBaseServiceRequest<Operation>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX