Class ProjectsResource.LocationsResource
The "locations" collection of methods.
Inherited Members
Namespace: Google.Apis.Translate.v3beta1
Assembly: Google.Apis.Translate.v3beta1.dll
Syntax
public class ProjectsResource.LocationsResource
Constructors
LocationsResource(IClientService)
Constructs a new resource.
Declaration
public LocationsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Glossaries
Gets the Glossaries resource.
Declaration
public virtual ProjectsResource.LocationsResource.GlossariesResource Glossaries { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.GlossariesResource |
Operations
Gets the Operations resource.
Declaration
public virtual ProjectsResource.LocationsResource.OperationsResource Operations { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.OperationsResource |
Methods
BatchTranslateDocument(BatchTranslateDocumentRequest, string)
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.
Declaration
public virtual ProjectsResource.LocationsResource.BatchTranslateDocumentRequest BatchTranslateDocument(BatchTranslateDocumentRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
BatchTranslateDocumentRequest | body | The body of the request. |
string | parent | Required. Location to make a regional call. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.BatchTranslateDocumentRequest |
BatchTranslateText(BatchTranslateTextRequest, string)
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.
Declaration
public virtual ProjectsResource.LocationsResource.BatchTranslateTextRequest BatchTranslateText(BatchTranslateTextRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
BatchTranslateTextRequest | body | The body of the request. |
string | parent | Required. Location to make a call. Must refer to a caller's project. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.BatchTranslateTextRequest |
DetectLanguage(DetectLanguageRequest, string)
Detects the language of text within a request.
Declaration
public virtual ProjectsResource.LocationsResource.DetectLanguageRequest DetectLanguage(DetectLanguageRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
DetectLanguageRequest | body | The body of the request. |
string | parent | Required. Project or location to make a call. Must refer to a caller's project. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.DetectLanguageRequest |
Get(string)
Gets information about a location.
Declaration
public virtual ProjectsResource.LocationsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Resource name for the location. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.GetRequest |
GetSupportedLanguages(string)
Returns a list of supported languages for translation.
Declaration
public virtual ProjectsResource.LocationsResource.GetSupportedLanguagesRequest GetSupportedLanguages(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Project or location to make a call. Must refer to a caller's project. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.GetSupportedLanguagesRequest |
List(string)
Lists information about the supported locations for this service.
Declaration
public virtual ProjectsResource.LocationsResource.ListRequest List(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The resource that owns the locations collection, if applicable. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ListRequest |
TranslateDocument(TranslateDocumentRequest, string)
Translates documents in synchronous mode.
Declaration
public virtual ProjectsResource.LocationsResource.TranslateDocumentRequest TranslateDocument(TranslateDocumentRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
TranslateDocumentRequest | body | The body of the request. |
string | parent | Required. Location to make a regional call. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.TranslateDocumentRequest |
TranslateText(TranslateTextRequest, string)
Translates input text and returns translated text.
Declaration
public virtual ProjectsResource.LocationsResource.TranslateTextRequest TranslateText(TranslateTextRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
TranslateTextRequest | body | The body of the request. |
string | parent | Required. Project or location to make a call. Must refer to a caller's project. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.TranslateTextRequest |