REST Resource: projects.locations

Resource: Location

A resource that represents a Google Cloud location.

JSON representation
 { 
 "name" 
 : 
 string 
 , 
 "locationId" 
 : 
 string 
 , 
 "displayName" 
 : 
 string 
 , 
 "labels" 
 : 
 { 
 string 
 : 
 string 
 , 
 ... 
 } 
 , 
 "metadata" 
 : 
 { 
 "@type" 
 : 
 string 
 , 
 field1 
 : 
 ... 
 , 
 ... 
 } 
 } 
Fields
name

string

Resource name for the location, which may vary between implementations. For example: "projects/example-project/locations/us-east1"

locationId

string

The canonical id for this location. For example: "us-east1" .

displayName

string

The friendly name for this location, typically a nearby city name. For example, "Tokyo".

labels

map (key: string, value: string)

Cross-service attributes for the location. For example

 {"cloud.googleapis.com/region": "us-east1"} 

Methods

batchTranslateDocument

Translates a large volume of document in asynchronous batch mode.

batchTranslateText

Translates a large volume of text in asynchronous batch mode.

detectLanguage

Detects the language of text within a request.

get

Gets information about a location.

getSupportedLanguages

Returns a list of supported languages for translation.

list

Lists information about the supported locations for this service.

translateDocument

Translates documents in synchronous mode.

translateText

Translates input text and returns translated text.
Create a Mobile Website
View Site in Mobile | Classic
Share by: