Class: Google::Apis::TranslateV3::GlossaryEntry
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3::GlossaryEntry
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/translate_v3/classes.rb,
lib/google/apis/translate_v3/representations.rb,
lib/google/apis/translate_v3/representations.rb
Overview
Represents a single entry in a glossary.
Instance Attribute Summary collapse
-
#description ⇒ String
Describes the glossary entry.
-
#name ⇒ String
Identifier.
-
#terms_pair ⇒ Google::Apis::TranslateV3::GlossaryTermsPair
Represents a single entry for an unidirectional glossary.
-
#terms_set ⇒ Google::Apis::TranslateV3::GlossaryTermsSet
Represents a single entry for an equivalent term set glossary.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GlossaryEntry
constructor
A new instance of GlossaryEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GlossaryEntry
Returns a new instance of GlossaryEntry.
1071 1072 1073 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1071 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Describes the glossary entry.
Corresponds to the JSON property description
1051 1052 1053 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1051 def description @description end |
#name ⇒ String
Identifier. The resource name of the entry. Format: "projects//locations//
glossaries//glossaryEntries/"
Corresponds to the JSON property name
1057 1058 1059 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1057 def name @name end |
#terms_pair ⇒ Google::Apis::TranslateV3::GlossaryTermsPair
Represents a single entry for an unidirectional glossary.
Corresponds to the JSON property termsPair
1062 1063 1064 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1062 def terms_pair @terms_pair end |
#terms_set ⇒ Google::Apis::TranslateV3::GlossaryTermsSet
Represents a single entry for an equivalent term set glossary. This is used
for equivalent term sets where each term can be replaced by the other terms in
the set.
Corresponds to the JSON property termsSet
1069 1070 1071 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1069 def terms_set @terms_set end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1076 1077 1078 1079 1080 1081 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1076 def update!(**args) @description = args[:description] if args.key?(:description) @name = args[:name] if args.key?(:name) @terms_pair = args[:terms_pair] if args.key?(:terms_pair) @terms_set = args[:terms_set] if args.key?(:terms_set) end |