Class: Google::Apis::TranslateV3::Glossary
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::TranslateV3::Glossary
 
 
- 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 glossary built from user-provided data.
Instance Attribute Summary collapse
- 
  
    
      #display_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 - 
  
    
      #end_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 - 
  
    
      #entry_count  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 - 
  
    
      #input_config  ⇒ Google::Apis::TranslateV3::GlossaryInputConfig 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Input configuration for glossaries.
 - 
  
    
      #language_codes_set  ⇒ Google::Apis::TranslateV3::LanguageCodesSet 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Used with equivalent term set glossaries.
 - 
  
    
      #language_pair  ⇒ Google::Apis::TranslateV3::LanguageCodePair 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Used with unidirectional glossaries.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required.
 - 
  
    
      #submit_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Glossary 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Glossary.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ Glossary
Returns a new instance of Glossary.
      1027 1028 1029  | 
    
      # File 'lib/google/apis/translate_v3/classes.rb', line 1027 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#display_name ⇒ String
Optional. The display name of the glossary.
Corresponds to the JSON property displayName
      988 989 990  | 
    
      # File 'lib/google/apis/translate_v3/classes.rb', line 988 def display_name @display_name end  | 
  
#end_time ⇒ String
Output only. When the glossary creation was finished.
Corresponds to the JSON property endTime
      993 994 995  | 
    
      # File 'lib/google/apis/translate_v3/classes.rb', line 993 def end_time @end_time end  | 
  
#entry_count ⇒ Fixnum
Output only. The number of entries defined in the glossary.
Corresponds to the JSON property entryCount
      998 999 1000  | 
    
      # File 'lib/google/apis/translate_v3/classes.rb', line 998 def entry_count @entry_count end  | 
  
#input_config ⇒ Google::Apis::TranslateV3::GlossaryInputConfig
Input configuration for glossaries.
Corresponds to the JSON property inputConfig
      1003 1004 1005  | 
    
      # File 'lib/google/apis/translate_v3/classes.rb', line 1003 def input_config @input_config end  | 
  
#language_codes_set ⇒ Google::Apis::TranslateV3::LanguageCodesSet
Used with equivalent term set glossaries.
Corresponds to the JSON property languageCodesSet
      1008 1009 1010  | 
    
      # File 'lib/google/apis/translate_v3/classes.rb', line 1008 def language_codes_set @language_codes_set end  | 
  
#language_pair ⇒ Google::Apis::TranslateV3::LanguageCodePair
Used with unidirectional glossaries.
Corresponds to the JSON property languagePair
      1013 1014 1015  | 
    
      # File 'lib/google/apis/translate_v3/classes.rb', line 1013 def language_pair @language_pair end  | 
  
#name ⇒ String
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`
      1020 1021 1022  | 
    
      # File 'lib/google/apis/translate_v3/classes.rb', line 1020 def name @name end  | 
  
#submit_time ⇒ String
Output only. When CreateGlossary was called.
Corresponds to the JSON property submitTime
      1025 1026 1027  | 
    
      # File 'lib/google/apis/translate_v3/classes.rb', line 1025 def submit_time @submit_time end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      1032 1033 1034 1035 1036 1037 1038 1039 1040 1041  | 
    
      # File 'lib/google/apis/translate_v3/classes.rb', line 1032 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @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  |