-
public final class GenericMessageAn aggregation of Messages used in Sentence. This is usually a "generic" view of ConnectorMessage.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classGenericMessage.Companion
-
Field Summary
Fields Modifier and Type Field Description private final ConnectorTypeconnectorTypeprivate final List<Attachment>attachmentsprivate final List<Choice>choicesprivate final Map<String, String>textsprivate final List<Location>locationsprivate final Map<String, String>metadataprivate final List<GenericElement>subElements
-
Constructor Summary
Constructors Constructor Description GenericMessage(ConnectorMessage connectorMessage, List<Attachment> attachments, List<Choice> choices, Map<String, String> texts, List<Location> locations, Map<String, String> metadata, List<GenericElement> subElements)GenericMessage(ConnectorType connectorType, List<Attachment> attachments, List<Choice> choices, Map<String, String> texts, List<Location> locations, Map<String, String> metadata, List<GenericElement> subElements, ConnectorMessage connectorMessage)
-
Method Summary
Modifier and Type Method Description Booleanequals(Object other)IntegerhashCode()final ConnectorTypecomponent1()final List<Attachment>component2()final List<Choice>component3()final Map<String, String>component4()final List<Location>component5()final Map<String, String>component6()final List<GenericElement>component7()final GenericMessagecopy(ConnectorType connectorType, List<Attachment> attachments, List<Choice> choices, Map<String, String> texts, List<Location> locations, Map<String, String> metadata, List<GenericElement> subElements, ConnectorMessage connectorMessage)final ConnectorTypegetConnectorType()final List<Attachment>getAttachments()final List<Choice>getChoices()final Map<String, String>getTexts()final List<Location>getLocations()final Map<String, String>getMetadata()final List<GenericElement>getSubElements()-
-
Constructor Detail
-
GenericMessage
GenericMessage(ConnectorMessage connectorMessage, List<Attachment> attachments, List<Choice> choices, Map<String, String> texts, List<Location> locations, Map<String, String> metadata, List<GenericElement> subElements)
-
GenericMessage
GenericMessage(ConnectorType connectorType, List<Attachment> attachments, List<Choice> choices, Map<String, String> texts, List<Location> locations, Map<String, String> metadata, List<GenericElement> subElements, ConnectorMessage connectorMessage)
-
-
Method Detail
-
component1
final ConnectorType component1()
-
component2
final List<Attachment> component2()
-
component3
final List<Choice> component3()
-
component4
final Map<String, String> component4()
-
component5
final List<Location> component5()
-
component6
final Map<String, String> component6()
-
component7
final List<GenericElement> component7()
-
copy
final GenericMessage copy(ConnectorType connectorType, List<Attachment> attachments, List<Choice> choices, Map<String, String> texts, List<Location> locations, Map<String, String> metadata, List<GenericElement> subElements, ConnectorMessage connectorMessage)
-
getConnectorType
final ConnectorType getConnectorType()
-
getAttachments
final List<Attachment> getAttachments()
-
getChoices
final List<Choice> getChoices()
-
getLocations
final List<Location> getLocations()
-
getMetadata
final Map<String, String> getMetadata()
-
getSubElements
final List<GenericElement> getSubElements()
-
-
-
-