Index
GenerateVideoResponse
(message)Image
(message)Image.ImageSize
(message)ImageRAIScores
(message)Media
(message)NamedBoundingBox
(message)RaiInfo
(message)SemanticFilterResponse
(message)Video
(message)
GenerateVideoResponse
Generate video response.
Fields | |
---|---|
generated_ |
The generates samples. |
rai_ |
Returns if any videos were filtered due to RAI policies. |
rai_ |
Returns rai failure reasons if any. |
Image
Image.
Fields | |
---|---|
encoding |
Image encoding, encoded as "image/png" or "image/jpg". |
image_ |
RAI scores for generated image. |
rai_ |
RAI info for image. |
semantic_ |
Semantic filter info for image. |
text |
Text/Expanded text input for imagen. |
image_ |
Image size. The size of the image. Can be self reported, or computed from the image bytes. |
Union field
|
|
image |
Raw bytes. |
uri |
Path to another storage (typically Google Cloud Storage). |
ImageSize
Image size.
Fields | |
---|---|
width |
|
height |
|
channels |
|
ImageRAIScores
RAI scores for generated image returned.
Fields | |
---|---|
agile_ |
Agile watermark score for image. |
Media
Media.
Fields | |
---|---|
Union field
|
|
image |
Image. |
video |
Video |
NamedBoundingBox
Fields | |
---|---|
x1 |
|
x2 |
|
y1 |
|
y2 |
|
classes[] |
|
entities[] |
|
scores[] |
|
RaiInfo
Next ID: 6
Fields | |
---|---|
rai_ |
List of rai categories' information to return |
scores[] |
List of rai scores mapping to the rai categories. Rounded to 1 decimal place. |
blocked_ |
List of blocked entities from the blocklist if it is detected. |
model_ |
The model name used to indexing into the RaiFilterConfig map. Would either be one of imagegeneration@002-006, imagen-3.0-... api endpoint names, or internal names used for mapping to different filter configs (genselfie, ai_watermark) than its api endpoint. |
SemanticFilterResponse
Fields | |
---|---|
passed_ |
This response is added when semantic filter config is turned on in EditConfig. It reports if this image is passed semantic filter response. If passed_semantic_filter is false, the bounding box information will be populated for user to check what caused the semantic filter to fail. |
named_ |
Class labels of the bounding boxes that failed the semantic filtering. Bounding box coordinates. |
Video
Video
Fields | |
---|---|
encoding |
Video encoding, for example "video/mp4". |
Union field
|
|
video |
Raw bytes. |
uri |
Path to another storage (typically Google Cloud Storage). |
encoded_ |
Base 64 encoded video bytes. |