Class ProjectsResource.LocationsResource
The "locations" collection of methods.
Inherited Members
Namespace: Google.Apis.Translate.v3
Assembly: Google.Apis.Translate.v3.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
AdaptiveMtDatasets
Gets the AdaptiveMtDatasets resource.
Declaration
public virtual ProjectsResource.LocationsResource.AdaptiveMtDatasetsResource AdaptiveMtDatasets { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.AdaptiveMtDatasetsResource |
Datasets
Gets the Datasets resource.
Declaration
public virtual ProjectsResource.LocationsResource.DatasetsResource Datasets { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.DatasetsResource |
Glossaries
Gets the Glossaries resource.
Declaration
public virtual ProjectsResource.LocationsResource.GlossariesResource Glossaries { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.GlossariesResource |
Models
Gets the Models resource.
Declaration
public virtual ProjectsResource.LocationsResource.ModelsResource Models { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ModelsResource |
Operations
Gets the Operations resource.
Declaration
public virtual ProjectsResource.LocationsResource.OperationsResource Operations { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.OperationsResource |
Methods
AdaptiveMtTranslate(AdaptiveMtTranslateRequest, string)
Translate text using Adaptive MT.
Declaration
public virtual ProjectsResource.LocationsResource.AdaptiveMtTranslateRequest AdaptiveMtTranslate(AdaptiveMtTranslateRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| AdaptiveMtTranslateRequest | body | The body of the request. |
| string | parent | Required. Location to make a regional call. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.AdaptiveMtTranslateRequest |
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. This method lists locations based on
the resource scope provided in the ListLocationsRequest.name field: * Global locations: If name is
empty, the method lists the public locations available to all projects. * Project-specific
locations: If name follows the format projects/{project}, the method lists locations visible to
that specific project. This includes public, private, or other project-specific locations enabled for
the project. For gRPC and client library implementations, the resource name is passed as the name
field. For direct service calls, the resource name is incorporated into the request path based on the
specific service implementation and version.
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 |
RefineText(RefineTextRequest, string)
Refines the input translated text to improve the quality.
Declaration
public virtual ProjectsResource.LocationsResource.RefineTextRequest RefineText(RefineTextRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| RefineTextRequest | 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.RefineTextRequest |
RomanizeText(RomanizeTextRequest, string)
Romanize input text written in non-Latin scripts to Latin text.
Declaration
public virtual ProjectsResource.LocationsResource.RomanizeTextRequest RomanizeText(RomanizeTextRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| RomanizeTextRequest | 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.RomanizeTextRequest |
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 |