3030public final class GoogleCloudDiscoveryengineV1SessionTurn extends com .google .api .client .json .GenericJson {
3131
3232 /**
33- * The resource name of the answer to the user query. Only set if the answer generation (/answer
34- * API call) happened in this turn.
33+ * Optional. The resource name of the answer to the user query. Only set if the answer generation
34+ * (/answer API call) happened in this turn.
3535 * The value may be {@code null}.
3636 */
3737 @ com .google .api .client .util .Key
@@ -47,38 +47,25 @@ public final class GoogleCloudDiscoveryengineV1SessionTurn extends com.google.ap
4747 private GoogleCloudDiscoveryengineV1Answer detailedAnswer ;
4848
4949 /**
50- * The user query.
50+ * Optional. The user query. May not be set if this turn is merely regenerating an answer to a
51+ * different turn
5152 * The value may be {@code null}.
5253 */
5354 @ com .google .api .client .util .Key
5455 private GoogleCloudDiscoveryengineV1Query query ;
5556
5657 /**
57- * Optional. Represents metadata related to the query config, for example LLM model and version
58- * used, model parameters (temperature, grounding parameters, etc.). We don't want to import
59- * directly the [AnswerGenerationSpec] structure as this will serve a more general purpose and a
60- * wider set of customers. This information is used in particular when rendering alternative
61- * answers to the same prompt, providing visual information about how each answer was generated.
62- * The prefix "google." will be reserved for the key, and 1P services (Answer, Assistant, etc.)
63- * should always store their information with "google..". 3P services can use anything not
64- * starting with "google."
65- * The value may be {@code null}.
66- */
67- @ com .google .api .client .util .Key
68- private java .util .Map <String , java .lang .String > queryConfigs ;
69-
70- /**
71- * The resource name of the answer to the user query. Only set if the answer generation (/answer
72- * API call) happened in this turn.
58+ * Optional. The resource name of the answer to the user query. Only set if the answer generation
59+ * (/answer API call) happened in this turn.
7360 * @return value or {@code null} for none
7461 */
7562 public java .lang .String getAnswer () {
7663 return answer ;
7764 }
7865
7966 /**
80- * The resource name of the answer to the user query. Only set if the answer generation (/answer
81- * API call) happened in this turn.
67+ * Optional. The resource name of the answer to the user query. Only set if the answer generation
68+ * (/answer API call) happened in this turn.
8269 * @param answer answer or {@code null} for none
8370 */
8471 public GoogleCloudDiscoveryengineV1SessionTurn setAnswer (java .lang .String answer ) {
@@ -108,53 +95,24 @@ public GoogleCloudDiscoveryengineV1SessionTurn setDetailedAnswer(GoogleCloudDisc
10895 }
10996
11097 /**
111- * The user query.
98+ * Optional. The user query. May not be set if this turn is merely regenerating an answer to a
99+ * different turn
112100 * @return value or {@code null} for none
113101 */
114102 public GoogleCloudDiscoveryengineV1Query getQuery () {
115103 return query ;
116104 }
117105
118106 /**
119- * The user query.
107+ * Optional. The user query. May not be set if this turn is merely regenerating an answer to a
108+ * different turn
120109 * @param query query or {@code null} for none
121110 */
122111 public GoogleCloudDiscoveryengineV1SessionTurn setQuery (GoogleCloudDiscoveryengineV1Query query ) {
123112 this .query = query ;
124113 return this ;
125114 }
126115
127- /**
128- * Optional. Represents metadata related to the query config, for example LLM model and version
129- * used, model parameters (temperature, grounding parameters, etc.). We don't want to import
130- * directly the [AnswerGenerationSpec] structure as this will serve a more general purpose and a
131- * wider set of customers. This information is used in particular when rendering alternative
132- * answers to the same prompt, providing visual information about how each answer was generated.
133- * The prefix "google." will be reserved for the key, and 1P services (Answer, Assistant, etc.)
134- * should always store their information with "google..". 3P services can use anything not
135- * starting with "google."
136- * @return value or {@code null} for none
137- */
138- public java .util .Map <String , java .lang .String > getQueryConfigs () {
139- return queryConfigs ;
140- }
141-
142- /**
143- * Optional. Represents metadata related to the query config, for example LLM model and version
144- * used, model parameters (temperature, grounding parameters, etc.). We don't want to import
145- * directly the [AnswerGenerationSpec] structure as this will serve a more general purpose and a
146- * wider set of customers. This information is used in particular when rendering alternative
147- * answers to the same prompt, providing visual information about how each answer was generated.
148- * The prefix "google." will be reserved for the key, and 1P services (Answer, Assistant, etc.)
149- * should always store their information with "google..". 3P services can use anything not
150- * starting with "google."
151- * @param queryConfigs queryConfigs or {@code null} for none
152- */
153- public GoogleCloudDiscoveryengineV1SessionTurn setQueryConfigs (java .util .Map <String , java .lang .String > queryConfigs ) {
154- this .queryConfigs = queryConfigs ;
155- return this ;
156- }
157-
158116 @ Override
159117 public GoogleCloudDiscoveryengineV1SessionTurn set (String fieldName , Object value ) {
160118 return (GoogleCloudDiscoveryengineV1SessionTurn ) super .set (fieldName , value );
0 commit comments