class ProjectsLocationsGlossariesGlossaryEntries extends Resource (View source)

The "glossaryEntries" collection of methods.

Typical usage is:

 $translateService = new Google\Service\Translate(...);
 $glossaryEntries = $translateService->projects_locations_glossaries_glossaryEntries;

Methods

create(string $parent, GlossaryEntry $postBody, array $optParams = [])

Creates a glossary entry. (glossaryEntries.create)

delete(string $name, array $optParams = [])

Deletes a single entry from the glossary (glossaryEntries.delete)

get(string $name, array $optParams = [])

Gets a single glossary entry by the given id. (glossaryEntries.get)

listProjectsLocationsGlossariesGlossaryEntries(string $parent, array $optParams = [])

List the entries for the glossary.

patch(string $name, GlossaryEntry $postBody, array $optParams = [])

Updates a glossary entry. (glossaryEntries.patch)

Details

GlossaryEntry create(string $parent, GlossaryEntry $postBody, array $optParams = [])

Creates a glossary entry. (glossaryEntries.create)

Parameters

string $parent

Required. The resource name of the glossary to create the entry under.

GlossaryEntry $postBody
array $optParams

Optional parameters.

Return Value

GlossaryEntry

Exceptions

Exception

TranslateEmpty delete(string $name, array $optParams = [])

Deletes a single entry from the glossary (glossaryEntries.delete)

Parameters

string $name

Required. The resource name of the glossary entry to delete

array $optParams

Optional parameters.

Return Value

TranslateEmpty

Exceptions

Exception

GlossaryEntry get(string $name, array $optParams = [])

Gets a single glossary entry by the given id. (glossaryEntries.get)

Parameters

string $name

Required. The resource name of the glossary entry to get

array $optParams

Optional parameters.

Return Value

GlossaryEntry

Exceptions

Exception

ListGlossaryEntriesResponse listProjectsLocationsGlossariesGlossaryEntries(string $parent, array $optParams = [])

List the entries for the glossary.

(glossaryEntries.listProjectsLocationsGlossariesGlossaryEntries)

Parameters

string $parent

Required. The parent glossary resource name for listing the glossary's entries.

array $optParams

Optional parameters.

Return Value

ListGlossaryEntriesResponse

Exceptions

Exception

GlossaryEntry patch(string $name, GlossaryEntry $postBody, array $optParams = [])

Updates a glossary entry. (glossaryEntries.patch)

Parameters

string $name

Identifier. The resource name of the entry. Format: "projects/locations/glossaries/glossaryEntries"

GlossaryEntry $postBody
array $optParams

Optional parameters.

Return Value

GlossaryEntry

Exceptions

Exception