@@ -66,7 +66,8 @@ public final class GoogleCloudAiplatformV1beta1GenerationConfig extends com.goog
6666 private java .lang .Float frequencyPenalty ;
6767
6868 /**
69- * Optional. Config for image generation features.
69+ * Optional. Config for image generation features. Deprecated: Use `response_format.image`
70+ * instead.
7071 * The value may be {@code null}.
7172 */
7273 @ com .google .api .client .util .Key
@@ -117,9 +118,16 @@ public final class GoogleCloudAiplatformV1beta1GenerationConfig extends com.goog
117118 @ com .google .api .client .util .Key
118119 private java .lang .Float presencePenalty ;
119120
121+ /**
122+ * Optional. New response format field for the model to configure output formatting and delivery.
123+ * The value may be {@code null}.
124+ */
125+ @ com .google .api .client .util .Key
126+ private java .util .List <GoogleCloudAiplatformV1beta1ResponseFormat > responseFormat ;
127+
120128 /**
121129 * Optional. When this field is set, response_schema must be omitted and response_mime_type must
122- * be set to `application/json`.
130+ * be set to `application/json`. Deprecated: Use `response_format` instead.
123131 * The value may be {@code null}.
124132 */
125133 @ com .google .api .client .util .Key
@@ -139,7 +147,7 @@ public final class GoogleCloudAiplatformV1beta1GenerationConfig extends com.goog
139147 * Optional. The IANA standard MIME type of the response. The model will generate output that
140148 * conforms to this MIME type. Supported values include 'text/plain' (default) and
141149 * 'application/json'. The model needs to be prompted to output the appropriate response type,
142- * otherwise the behavior is undefined.
150+ * otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
143151 * The value may be {@code null}.
144152 */
145153 @ com .google .api .client .util .Key
@@ -159,7 +167,8 @@ public final class GoogleCloudAiplatformV1beta1GenerationConfig extends com.goog
159167 * conforms to a particular structure. This is useful for generating structured data such as JSON.
160168 * The schema is a subset of the [OpenAPI 3.0 schema
161169 * object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must
162- * also set the `response_mime_type` to `application/json`.
170+ * also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format`
171+ * instead.
163172 * The value may be {@code null}.
164173 */
165174 @ com .google .api .client .util .Key
@@ -320,15 +329,17 @@ public GoogleCloudAiplatformV1beta1GenerationConfig setFrequencyPenalty(java.lan
320329 }
321330
322331 /**
323- * Optional. Config for image generation features.
332+ * Optional. Config for image generation features. Deprecated: Use `response_format.image`
333+ * instead.
324334 * @return value or {@code null} for none
325335 */
326336 public GoogleCloudAiplatformV1beta1ImageConfig getImageConfig () {
327337 return imageConfig ;
328338 }
329339
330340 /**
331- * Optional. Config for image generation features.
341+ * Optional. Config for image generation features. Deprecated: Use `response_format.image`
342+ * instead.
332343 * @param imageConfig imageConfig or {@code null} for none
333344 */
334345 public GoogleCloudAiplatformV1beta1GenerationConfig setImageConfig (GoogleCloudAiplatformV1beta1ImageConfig imageConfig ) {
@@ -441,9 +452,26 @@ public GoogleCloudAiplatformV1beta1GenerationConfig setPresencePenalty(java.lang
441452 return this ;
442453 }
443454
455+ /**
456+ * Optional. New response format field for the model to configure output formatting and delivery.
457+ * @return value or {@code null} for none
458+ */
459+ public java .util .List <GoogleCloudAiplatformV1beta1ResponseFormat > getResponseFormat () {
460+ return responseFormat ;
461+ }
462+
463+ /**
464+ * Optional. New response format field for the model to configure output formatting and delivery.
465+ * @param responseFormat responseFormat or {@code null} for none
466+ */
467+ public GoogleCloudAiplatformV1beta1GenerationConfig setResponseFormat (java .util .List <GoogleCloudAiplatformV1beta1ResponseFormat > responseFormat ) {
468+ this .responseFormat = responseFormat ;
469+ return this ;
470+ }
471+
444472 /**
445473 * Optional. When this field is set, response_schema must be omitted and response_mime_type must
446- * be set to `application/json`.
474+ * be set to `application/json`. Deprecated: Use `response_format` instead.
447475 * @return value or {@code null} for none
448476 */
449477 public java .lang .Object getResponseJsonSchema () {
@@ -452,7 +480,7 @@ public java.lang.Object getResponseJsonSchema() {
452480
453481 /**
454482 * Optional. When this field is set, response_schema must be omitted and response_mime_type must
455- * be set to `application/json`.
483+ * be set to `application/json`. Deprecated: Use `response_format` instead.
456484 * @param responseJsonSchema responseJsonSchema or {@code null} for none
457485 */
458486 public GoogleCloudAiplatformV1beta1GenerationConfig setResponseJsonSchema (java .lang .Object responseJsonSchema ) {
@@ -487,7 +515,7 @@ public GoogleCloudAiplatformV1beta1GenerationConfig setResponseLogprobs(java.lan
487515 * Optional. The IANA standard MIME type of the response. The model will generate output that
488516 * conforms to this MIME type. Supported values include 'text/plain' (default) and
489517 * 'application/json'. The model needs to be prompted to output the appropriate response type,
490- * otherwise the behavior is undefined.
518+ * otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
491519 * @return value or {@code null} for none
492520 */
493521 public java .lang .String getResponseMimeType () {
@@ -498,7 +526,7 @@ public java.lang.String getResponseMimeType() {
498526 * Optional. The IANA standard MIME type of the response. The model will generate output that
499527 * conforms to this MIME type. Supported values include 'text/plain' (default) and
500528 * 'application/json'. The model needs to be prompted to output the appropriate response type,
501- * otherwise the behavior is undefined.
529+ * otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
502530 * @param responseMimeType responseMimeType or {@code null} for none
503531 */
504532 public GoogleCloudAiplatformV1beta1GenerationConfig setResponseMimeType (java .lang .String responseMimeType ) {
@@ -532,7 +560,8 @@ public GoogleCloudAiplatformV1beta1GenerationConfig setResponseModalities(java.u
532560 * conforms to a particular structure. This is useful for generating structured data such as JSON.
533561 * The schema is a subset of the [OpenAPI 3.0 schema
534562 * object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must
535- * also set the `response_mime_type` to `application/json`.
563+ * also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format`
564+ * instead.
536565 * @return value or {@code null} for none
537566 */
538567 public GoogleCloudAiplatformV1beta1Schema getResponseSchema () {
@@ -544,7 +573,8 @@ public GoogleCloudAiplatformV1beta1Schema getResponseSchema() {
544573 * conforms to a particular structure. This is useful for generating structured data such as JSON.
545574 * The schema is a subset of the [OpenAPI 3.0 schema
546575 * object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must
547- * also set the `response_mime_type` to `application/json`.
576+ * also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format`
577+ * instead.
548578 * @param responseSchema responseSchema or {@code null} for none
549579 */
550580 public GoogleCloudAiplatformV1beta1GenerationConfig setResponseSchema (GoogleCloudAiplatformV1beta1Schema responseSchema ) {
0 commit comments