Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::Glossary.
Represents a glossary built from user provided data.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#end_time
def end_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. When the glossary creation was finished.
#entry_count
def entry_count() -> ::Integer
Returns
- (::Integer) — Output only. The number of entries defined in the glossary.
#input_config
def input_config() -> ::Google::Cloud::Translate::V3::GlossaryInputConfig
Returns
- (::Google::Cloud::Translate::V3::GlossaryInputConfig) — Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
#input_config=
def input_config=(value) -> ::Google::Cloud::Translate::V3::GlossaryInputConfig
Parameter
- value (::Google::Cloud::Translate::V3::GlossaryInputConfig) — Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
Returns
- (::Google::Cloud::Translate::V3::GlossaryInputConfig) — Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
#language_codes_set
def language_codes_set() -> ::Google::Cloud::Translate::V3::Glossary::LanguageCodesSet
Returns
- (::Google::Cloud::Translate::V3::Glossary::LanguageCodesSet) — Used with equivalent term set glossaries.
#language_codes_set=
def language_codes_set=(value) -> ::Google::Cloud::Translate::V3::Glossary::LanguageCodesSet
Parameter
- value (::Google::Cloud::Translate::V3::Glossary::LanguageCodesSet) — Used with equivalent term set glossaries.
Returns
- (::Google::Cloud::Translate::V3::Glossary::LanguageCodesSet) — Used with equivalent term set glossaries.
#language_pair
def language_pair() -> ::Google::Cloud::Translate::V3::Glossary::LanguageCodePair
Returns
- (::Google::Cloud::Translate::V3::Glossary::LanguageCodePair) — Used with unidirectional glossaries.
#language_pair=
def language_pair=(value) -> ::Google::Cloud::Translate::V3::Glossary::LanguageCodePair
Parameter
- value (::Google::Cloud::Translate::V3::Glossary::LanguageCodePair) — Used with unidirectional glossaries.
Returns
- (::Google::Cloud::Translate::V3::Glossary::LanguageCodePair) — Used with unidirectional glossaries.
#name
def name() -> ::String
Returns
-
(::String) — Required. The resource name of the glossary. Glossary names have the form
projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}
.
#name=
def name=(value) -> ::String
Parameter
-
value (::String) — Required. The resource name of the glossary. Glossary names have the form
projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}
.
Returns
-
(::String) — Required. The resource name of the glossary. Glossary names have the form
projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}
.
#submit_time
def submit_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. When CreateGlossary was called.