Skip to content

Commit 8d38a09

Browse files
feat: add aspect_ratio and image_config for v1beta1 version (#6814)
* feat: add aspect_ratio and image_config for v1beta1 version PiperOrigin-RevId: 818839226 Source-Link: googleapis/googleapis@db61975 Source-Link: googleapis/googleapis-gen@a5f3c7f Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6ImE1ZjNjN2YxMjBkYWEzYWMwZjk4ZmJmOTI0NDE5ZDExOTk5MjU1NGEifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 6c9eeab commit 8d38a09

File tree

4 files changed

+410
-0
lines changed

4 files changed

+410
-0
lines changed

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/content.proto

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,20 @@ message SpeechConfig {
205205
VoiceConfig voice_config = 1;
206206
}
207207

208+
// Config for image generation features.
209+
message ImageConfig {
210+
// Optional. The desired aspect ratio for the generated images. The following
211+
// aspect ratios are supported:
212+
//
213+
// "1:1"
214+
// "2:3", "3:2"
215+
// "3:4", "4:3"
216+
// "4:5", "5:4"
217+
// "9:16", "16:9"
218+
// "21:9"
219+
optional string aspect_ratio = 2 [(google.api.field_behavior) = OPTIONAL];
220+
}
221+
208222
// Generation config.
209223
message GenerationConfig {
210224
// The configuration for routing the request to a specific model.
@@ -429,6 +443,10 @@ message GenerationConfig {
429443

430444
// Optional. Config for model selection.
431445
ModelConfig model_config = 27 [(google.api.field_behavior) = OPTIONAL];
446+
447+
// Optional. Config for image generation features.
448+
optional ImageConfig image_config = 30
449+
[(google.api.field_behavior) = OPTIONAL];
432450
}
433451

434452
// Safety settings.

packages/google-cloud-aiplatform/protos/protos.d.ts

Lines changed: 103 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)