/* * Copyright 2025 Google. This software is provided as-is, without warranty or representation for any use or purpose. * Your use of it is subject to your agreement with Google. */ package com.example.dto.dialogflow.base; import com.example.dto.dialogflow.conversation.QueryResultDTO; import com.fasterxml.jackson.annotation.JsonProperty; import com.example.dto.quickreplies.QuickReplyDTO; import com.fasterxml.jackson.annotation.JsonInclude; @JsonInclude(JsonInclude.Include.NON_NULL) public record DetectIntentResponseDTO( @JsonProperty("responseId") String responseId, @JsonProperty("queryResult") QueryResultDTO queryResult, @JsonProperty("quick_replies") QuickReplyDTO quickReplies ) { public DetectIntentResponseDTO(String responseId, QueryResultDTO queryResult) { this(responseId, queryResult, null); } }