Class: Google::Apis::TranslateV3beta1::Glossary

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/translate_v3beta1/classes.rb,
lib/google/apis/translate_v3beta1/representations.rb,
lib/google/apis/translate_v3beta1/representations.rb

Overview

Represents a glossary built from user provided data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Glossary

Returns a new instance of Glossary.



509
510
511
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 509

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#end_timeString

Output only. When the glossary creation was finished. Corresponds to the JSON property endTime

Returns:

  • (String)


475
476
477
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 475

def end_time
  @end_time
end

#entry_countFixnum

Output only. The number of entries defined in the glossary. Corresponds to the JSON property entryCount

Returns:

  • (Fixnum)


480
481
482
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 480

def entry_count
  @entry_count
end

#input_configGoogle::Apis::TranslateV3beta1::GlossaryInputConfig

Input configuration for glossaries. Corresponds to the JSON property inputConfig



485
486
487
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 485

def input_config
  @input_config
end

#language_codes_setGoogle::Apis::TranslateV3beta1::LanguageCodesSet

Used with equivalent term set glossaries. Corresponds to the JSON property languageCodesSet



490
491
492
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 490

def language_codes_set
  @language_codes_set
end

#language_pairGoogle::Apis::TranslateV3beta1::LanguageCodePair

Used with unidirectional glossaries. Corresponds to the JSON property languagePair



495
496
497
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 495

def language_pair
  @language_pair
end

#nameString

Required. The resource name of the glossary. Glossary names have the form projects/project-number-or-id/locations/location-id/glossaries/glossary- id`. Corresponds to the JSON propertyname`

Returns:

  • (String)


502
503
504
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 502

def name
  @name
end

#submit_timeString

Output only. When CreateGlossary was called. Corresponds to the JSON property submitTime

Returns:

  • (String)


507
508
509
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 507

def submit_time
  @submit_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



514
515
516
517
518
519
520
521
522
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 514

def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @entry_count = args[:entry_count] if args.key?(:entry_count)
  @input_config = args[:input_config] if args.key?(:input_config)
  @language_codes_set = args[:language_codes_set] if args.key?(:language_codes_set)
  @language_pair = args[:language_pair] if args.key?(:language_pair)
  @name = args[:name] if args.key?(:name)
  @submit_time = args[:submit_time] if args.key?(:submit_time)
end