Class ProjectsResource
The "projects" collection of methods.
Inherited Members
Namespace: Google.Apis.Translate.v3beta1
Assembly: Google.Apis.Translate.v3beta1.dll
Syntax
public class ProjectsResource
Constructors
ProjectsResource(IClientService)
Constructs a new resource.
Declaration
public ProjectsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Locations
Gets the Locations resource.
Declaration
public virtual ProjectsResource.LocationsResource Locations { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource |
Methods
DetectLanguage(DetectLanguageRequest, string)
Detects the language of text within a request.
Declaration
public virtual ProjectsResource.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.DetectLanguageRequest |
GetSupportedLanguages(string)
Returns a list of supported languages for translation.
Declaration
public virtual ProjectsResource.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.GetSupportedLanguagesRequest |
TranslateText(TranslateTextRequest, string)
Translates input text and returns translated text.
Declaration
public virtual ProjectsResource.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.TranslateTextRequest |