Index
GenerateVideoResponse
(message)Image
(message)ImageRAIScores
(message)Media
(message)NamedBoundingBox
(message)RaiInfo
(message)SemanticFilterResponse
(message)Video
(message)
GenerateVideoResponse
Generate video response.
The generates samples.
rai_media_filtered_count
int32
Returns if any videos were filtered due to RAI policies.
rai_media_filtered_reasons[]
string
Returns rai failure reasons if any.
Image
Image.
encoding
string
Image encoding, encoded as "image/png" or "image/jpg".
RAI scores for generated image.
RAI info for image.
Semantic filter info for image.
text
string
Text/Expanded text input for imagen.
Union field content
.
content
can be only one of the following:
image
bytes
Raw bytes.
uri
string
Path to another storage (typically Google Cloud Storage).
ImageRAIScores
RAI scores for generated image returned.
agile_watermark_detection_score
double
Agile watermark score for image.
Media
NamedBoundingBox
x1
float
x2
float
y1
float
y2
float
classes[]
string
entities[]
string
scores[]
float
RaiInfo
rai_categories[]
string
List of rai categories' information to return
scores[]
float
List of rai scores mapping to the rai categories. Rounded to 1 decimal place.
model_name
string
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
passed_semantic_filter
bool
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.
Class labels of the bounding boxes that failed the semantic filtering. Bounding box coordinates.
Video
Video
Union field content
.
content
can be only one of the following:
video
bytes
Raw bytes.
uri
string
Path to another storage (typically Google Cloud Storage).