Class: Google::Cloud::Translate::V3::Glossary
- Inherits:
-
Object
- Object
- Google::Cloud::Translate::V3::Glossary
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/translate/v3/translation_service.rb
Overview
Represents a glossary built from user-provided data.
Defined Under Namespace
Classes: LanguageCodePair, LanguageCodesSet
Instance Attribute Summary collapse
-
#display_name ⇒ ::String
Optional.
-
#end_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#entry_count ⇒ ::Integer
readonly
Output only.
-
#input_config ⇒ ::Google::Cloud::Translate::V3::GlossaryInputConfig
Required.
-
#language_codes_set ⇒ ::Google::Cloud::Translate::V3::Glossary::LanguageCodesSet
Used with equivalent term set glossaries.
-
#language_pair ⇒ ::Google::Cloud::Translate::V3::Glossary::LanguageCodePair
Used with unidirectional glossaries.
-
#name ⇒ ::String
Required.
-
#submit_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
Instance Attribute Details
#display_name ⇒ ::String
972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 972 class Glossary include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Used with unidirectional glossaries. # @!attribute [rw] source_language_code # @return [::String] # Required. The ISO-639 language code of the input text, for example, # "en-US". Expected to be an exact match for GlossaryTerm.language_code. # @!attribute [rw] target_language_code # @return [::String] # Required. The ISO-639 language code for translation output, for example, # "zh-CN". Expected to be an exact match for GlossaryTerm.language_code. class LanguageCodePair include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Used with equivalent term set glossaries. # @!attribute [rw] language_codes # @return [::Array<::String>] # The ISO-639 language code(s) for terms defined in the glossary. # All entries are unique. The list contains at least two entries. # Expected to be an exact match for GlossaryTerm.language_code. class LanguageCodesSet include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#end_time ⇒ ::Google::Protobuf::Timestamp (readonly)
972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 972 class Glossary include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Used with unidirectional glossaries. # @!attribute [rw] source_language_code # @return [::String] # Required. The ISO-639 language code of the input text, for example, # "en-US". Expected to be an exact match for GlossaryTerm.language_code. # @!attribute [rw] target_language_code # @return [::String] # Required. The ISO-639 language code for translation output, for example, # "zh-CN". Expected to be an exact match for GlossaryTerm.language_code. class LanguageCodePair include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Used with equivalent term set glossaries. # @!attribute [rw] language_codes # @return [::Array<::String>] # The ISO-639 language code(s) for terms defined in the glossary. # All entries are unique. The list contains at least two entries. # Expected to be an exact match for GlossaryTerm.language_code. class LanguageCodesSet include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#entry_count ⇒ ::Integer (readonly)
972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 972 class Glossary include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Used with unidirectional glossaries. # @!attribute [rw] source_language_code # @return [::String] # Required. The ISO-639 language code of the input text, for example, # "en-US". Expected to be an exact match for GlossaryTerm.language_code. # @!attribute [rw] target_language_code # @return [::String] # Required. The ISO-639 language code for translation output, for example, # "zh-CN". Expected to be an exact match for GlossaryTerm.language_code. class LanguageCodePair include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Used with equivalent term set glossaries. # @!attribute [rw] language_codes # @return [::Array<::String>] # The ISO-639 language code(s) for terms defined in the glossary. # All entries are unique. The list contains at least two entries. # Expected to be an exact match for GlossaryTerm.language_code. class LanguageCodesSet include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#input_config ⇒ ::Google::Cloud::Translate::V3::GlossaryInputConfig
972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 972 class Glossary include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Used with unidirectional glossaries. # @!attribute [rw] source_language_code # @return [::String] # Required. The ISO-639 language code of the input text, for example, # "en-US". Expected to be an exact match for GlossaryTerm.language_code. # @!attribute [rw] target_language_code # @return [::String] # Required. The ISO-639 language code for translation output, for example, # "zh-CN". Expected to be an exact match for GlossaryTerm.language_code. class LanguageCodePair include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Used with equivalent term set glossaries. # @!attribute [rw] language_codes # @return [::Array<::String>] # The ISO-639 language code(s) for terms defined in the glossary. # All entries are unique. The list contains at least two entries. # Expected to be an exact match for GlossaryTerm.language_code. class LanguageCodesSet include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#language_codes_set ⇒ ::Google::Cloud::Translate::V3::Glossary::LanguageCodesSet
972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 972 class Glossary include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Used with unidirectional glossaries. # @!attribute [rw] source_language_code # @return [::String] # Required. The ISO-639 language code of the input text, for example, # "en-US". Expected to be an exact match for GlossaryTerm.language_code. # @!attribute [rw] target_language_code # @return [::String] # Required. The ISO-639 language code for translation output, for example, # "zh-CN". Expected to be an exact match for GlossaryTerm.language_code. class LanguageCodePair include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Used with equivalent term set glossaries. # @!attribute [rw] language_codes # @return [::Array<::String>] # The ISO-639 language code(s) for terms defined in the glossary. # All entries are unique. The list contains at least two entries. # Expected to be an exact match for GlossaryTerm.language_code. class LanguageCodesSet include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#language_pair ⇒ ::Google::Cloud::Translate::V3::Glossary::LanguageCodePair
972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 972 class Glossary include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Used with unidirectional glossaries. # @!attribute [rw] source_language_code # @return [::String] # Required. The ISO-639 language code of the input text, for example, # "en-US". Expected to be an exact match for GlossaryTerm.language_code. # @!attribute [rw] target_language_code # @return [::String] # Required. The ISO-639 language code for translation output, for example, # "zh-CN". Expected to be an exact match for GlossaryTerm.language_code. class LanguageCodePair include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Used with equivalent term set glossaries. # @!attribute [rw] language_codes # @return [::Array<::String>] # The ISO-639 language code(s) for terms defined in the glossary. # All entries are unique. The list contains at least two entries. # Expected to be an exact match for GlossaryTerm.language_code. class LanguageCodesSet include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#name ⇒ ::String
972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 972 class Glossary include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Used with unidirectional glossaries. # @!attribute [rw] source_language_code # @return [::String] # Required. The ISO-639 language code of the input text, for example, # "en-US". Expected to be an exact match for GlossaryTerm.language_code. # @!attribute [rw] target_language_code # @return [::String] # Required. The ISO-639 language code for translation output, for example, # "zh-CN". Expected to be an exact match for GlossaryTerm.language_code. class LanguageCodePair include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Used with equivalent term set glossaries. # @!attribute [rw] language_codes # @return [::Array<::String>] # The ISO-639 language code(s) for terms defined in the glossary. # All entries are unique. The list contains at least two entries. # Expected to be an exact match for GlossaryTerm.language_code. class LanguageCodesSet include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#submit_time ⇒ ::Google::Protobuf::Timestamp (readonly)
972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 972 class Glossary include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Used with unidirectional glossaries. # @!attribute [rw] source_language_code # @return [::String] # Required. The ISO-639 language code of the input text, for example, # "en-US". Expected to be an exact match for GlossaryTerm.language_code. # @!attribute [rw] target_language_code # @return [::String] # Required. The ISO-639 language code for translation output, for example, # "zh-CN". Expected to be an exact match for GlossaryTerm.language_code. class LanguageCodePair include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Used with equivalent term set glossaries. # @!attribute [rw] language_codes # @return [::Array<::String>] # The ISO-639 language code(s) for terms defined in the glossary. # All entries are unique. The list contains at least two entries. # Expected to be an exact match for GlossaryTerm.language_code. class LanguageCodesSet include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |