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
Returns Describes the glossary entry.
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'proto_docs/google/cloud/translate/v3/common.rb', line 74 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
Returns Identifier. The resource name of the entry.
Format:
projects/*/locations/*/glossaries/*/glossaryEntries/*
.
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'proto_docs/google/cloud/translate/v3/common.rb', line 74 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
Returns Used for an unidirectional glossary.
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'proto_docs/google/cloud/translate/v3/common.rb', line 74 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
Returns Used for an equivalent term sets glossary.
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'proto_docs/google/cloud/translate/v3/common.rb', line 74 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 |