Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::MessageAnnotation.
Represents the result of annotation for the message.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#contain_entities
def contain_entities() -> ::Boolean
Returns
- (::Boolean) — Indicates whether the text message contains entities.
#contain_entities=
def contain_entities=(value) -> ::Boolean
Parameter
- value (::Boolean) — Indicates whether the text message contains entities.
Returns
- (::Boolean) — Indicates whether the text message contains entities.
#parts
def parts() -> ::Array<::Google::Cloud::Dialogflow::V2::AnnotatedMessagePart>
Returns
- (::Array<::Google::Cloud::Dialogflow::V2::AnnotatedMessagePart>) — The collection of annotated message parts ordered by their position in the message. You can recover the annotated message by concatenating [AnnotatedMessagePart.text].
#parts=
def parts=(value) -> ::Array<::Google::Cloud::Dialogflow::V2::AnnotatedMessagePart>
Parameter
- value (::Array<::Google::Cloud::Dialogflow::V2::AnnotatedMessagePart>) — The collection of annotated message parts ordered by their position in the message. You can recover the annotated message by concatenating [AnnotatedMessagePart.text].
Returns
- (::Array<::Google::Cloud::Dialogflow::V2::AnnotatedMessagePart>) — The collection of annotated message parts ordered by their position in the message. You can recover the annotated message by concatenating [AnnotatedMessagePart.text].