Message constructor
Message({
- String? name,
- String? content,
- String? languageCode,
- String? participant,
- Participant_Role? participantRole,
- Timestamp? createTime,
- MessageAnnotation? messageAnnotation,
- SentimentAnalysisResult? sentimentAnalysis,
- Timestamp? sendTime,
Implementation
factory Message({
$core.String? name,
$core.String? content,
$core.String? languageCode,
$core.String? participant,
Participant_Role? participantRole,
$17.Timestamp? createTime,
MessageAnnotation? messageAnnotation,
$9.SentimentAnalysisResult? sentimentAnalysis,
$17.Timestamp? sendTime,
}) {
final _result = create();
if (name != null) {
_result.name = name;
}
if (content != null) {
_result.content = content;
}
if (languageCode != null) {
_result.languageCode = languageCode;
}
if (participant != null) {
_result.participant = participant;
}
if (participantRole != null) {
_result.participantRole = participantRole;
}
if (createTime != null) {
_result.createTime = createTime;
}
if (messageAnnotation != null) {
_result.messageAnnotation = messageAnnotation;
}
if (sentimentAnalysis != null) {
_result.sentimentAnalysis = sentimentAnalysis;
}
if (sendTime != null) {
_result.sendTime = sendTime;
}
return _result;
}