Class: Google::Cloud::Translate::V3::GlossaryEntry
- Inherits:
-
Object
- Object
- Google::Cloud::Translate::V3::GlossaryEntry
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/translate/v3/common.rb
Overview
Represents a single entry in a glossary.
Defined Under Namespace
Classes: GlossaryTermsPair, GlossaryTermsSet
Instance Attribute Summary collapse
-
#description ⇒ ::String
Describes the glossary entry.
-
#name ⇒ ::String
Identifier.
-
#terms_pair ⇒ ::Google::Cloud::Translate::V3::GlossaryEntry::GlossaryTermsPair
Used for an unidirectional glossary.
-
#terms_set ⇒ ::Google::Cloud::Translate::V3::GlossaryEntry::GlossaryTermsSet
Used for an equivalent term sets glossary.
Instance Attribute Details
#description ⇒ ::String
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'proto_docs/google/cloud/translate/v3/common.rb', line 78 class GlossaryEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents a single entry for an unidirectional glossary. # @!attribute [rw] source_term # @return [::Google::Cloud::Translate::V3::GlossaryTerm] # The source term is the term that will get match in the text, # @!attribute [rw] target_term # @return [::Google::Cloud::Translate::V3::GlossaryTerm] # The term that will replace the match source term. class GlossaryTermsPair include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Represents a single entry for an equivalent term set glossary. This is used # for equivalent term sets where each term can be replaced by the other terms # in the set. # @!attribute [rw] terms # @return [::Array<::Google::Cloud::Translate::V3::GlossaryTerm>] # Each term in the set represents a term that can be replaced by the other # terms. class GlossaryTermsSet include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#name ⇒ ::String
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'proto_docs/google/cloud/translate/v3/common.rb', line 78 class GlossaryEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents a single entry for an unidirectional glossary. # @!attribute [rw] source_term # @return [::Google::Cloud::Translate::V3::GlossaryTerm] # The source term is the term that will get match in the text, # @!attribute [rw] target_term # @return [::Google::Cloud::Translate::V3::GlossaryTerm] # The term that will replace the match source term. class GlossaryTermsPair include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Represents a single entry for an equivalent term set glossary. This is used # for equivalent term sets where each term can be replaced by the other terms # in the set. # @!attribute [rw] terms # @return [::Array<::Google::Cloud::Translate::V3::GlossaryTerm>] # Each term in the set represents a term that can be replaced by the other # terms. class GlossaryTermsSet include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#terms_pair ⇒ ::Google::Cloud::Translate::V3::GlossaryEntry::GlossaryTermsPair
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'proto_docs/google/cloud/translate/v3/common.rb', line 78 class GlossaryEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents a single entry for an unidirectional glossary. # @!attribute [rw] source_term # @return [::Google::Cloud::Translate::V3::GlossaryTerm] # The source term is the term that will get match in the text, # @!attribute [rw] target_term # @return [::Google::Cloud::Translate::V3::GlossaryTerm] # The term that will replace the match source term. class GlossaryTermsPair include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Represents a single entry for an equivalent term set glossary. This is used # for equivalent term sets where each term can be replaced by the other terms # in the set. # @!attribute [rw] terms # @return [::Array<::Google::Cloud::Translate::V3::GlossaryTerm>] # Each term in the set represents a term that can be replaced by the other # terms. class GlossaryTermsSet include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#terms_set ⇒ ::Google::Cloud::Translate::V3::GlossaryEntry::GlossaryTermsSet
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'proto_docs/google/cloud/translate/v3/common.rb', line 78 class GlossaryEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Represents a single entry for an unidirectional glossary. # @!attribute [rw] source_term # @return [::Google::Cloud::Translate::V3::GlossaryTerm] # The source term is the term that will get match in the text, # @!attribute [rw] target_term # @return [::Google::Cloud::Translate::V3::GlossaryTerm] # The term that will replace the match source term. class GlossaryTermsPair include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Represents a single entry for an equivalent term set glossary. This is used # for equivalent term sets where each term can be replaced by the other terms # in the set. # @!attribute [rw] terms # @return [::Array<::Google::Cloud::Translate::V3::GlossaryTerm>] # Each term in the set represents a term that can be replaced by the other # terms. class GlossaryTermsSet include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |