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
Returns Optional. The display name of the glossary.
923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 923 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)
Returns Output only. When the glossary creation was finished.
923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 923 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)
Returns Output only. The number of entries defined in the glossary.
923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 923 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
Returns Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 923 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
Returns Used with equivalent term set glossaries.
923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 923 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
Returns Used with unidirectional glossaries.
923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 923 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
Returns Required. The resource name of the glossary. Glossary names have the form
projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}
.
923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 923 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)
Returns Output only. When CreateGlossary was called.
923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 923 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 |