Skip to main content

gproxy_protocol/gemini/
video.rs

1use serde::{Deserialize, Serialize};
2use serde_json::Value;
3
4use super::Status;
5
6#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Default)]
7#[serde(rename_all = "camelCase")]
8#[derive(gproxy_protocol_macros::WireBuilder)]
9#[cfg_attr(not(feature = "exhaustive"), non_exhaustive)]
10pub struct VeoPredictLongRunningRequest {
11    // models.predictLongRunning defines each instance as google.protobuf.Value.
12    pub instances: Vec<Value>,
13    /// `upstream_docs/gemini/docs/Models.md`, `models.predictLongRunning.parameters`:
14    /// prediction parameters are an arbitrary `google.protobuf.Value`.
15    #[serde(skip_serializing_if = "Option::is_none")]
16    pub parameters: Option<Value>,
17    #[serde(default, skip_serializing_if = "serde_json::Map::is_empty", flatten)]
18    pub rest: serde_json::Map<String, Value>,
19}
20
21#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
22#[serde(rename_all = "camelCase")]
23#[derive(gproxy_protocol_macros::WireBuilder)]
24#[cfg_attr(not(feature = "exhaustive"), non_exhaustive)]
25pub struct VeoOperation {
26    #[serde(skip_serializing_if = "Option::is_none")]
27    pub name: Option<String>,
28    /// `upstream_docs/gemini/docs/Batch API.md`, `Resource: Operation.metadata`:
29    /// service-specific `google.protobuf.Any` JSON, including its `@type` URI.
30    #[serde(skip_serializing_if = "Option::is_none")]
31    pub metadata: Option<Value>,
32    #[serde(skip_serializing_if = "Option::is_none")]
33    pub done: Option<bool>,
34    #[serde(skip_serializing_if = "Option::is_none")]
35    pub error: Option<Status>,
36    /// `upstream_docs/gemini/docs/Batch API.md`, `Resource: Operation.response`:
37    /// the service-specific result as `google.protobuf.Any` JSON with `@type`.
38    #[serde(skip_serializing_if = "Option::is_none")]
39    pub response: Option<Value>,
40    #[serde(default, skip_serializing_if = "serde_json::Map::is_empty", flatten)]
41    pub rest: serde_json::Map<String, Value>,
42}