mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-09 22:36:01 +05:45
99 lines
3.3 KiB
Swift
99 lines
3.3 KiB
Swift
// Copyright 2026 Google LLC
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
import Foundation
|
|
|
|
/// An internal data model for `VideoResponseFormat`.
|
|
///
|
|
/// ### Gemini Developer API
|
|
///
|
|
/// > Important: This type is not supported in the Gemini Developer API.
|
|
///
|
|
/// ### Gemini Enterprise API
|
|
///
|
|
/// Type: `GoogleCloudAiplatformV1beta1VideoResponseFormat`
|
|
///
|
|
/// Configuration for video-specific output formatting.
|
|
package struct VideoResponseFormat: Codable, Sendable, Equatable, Hashable {
|
|
/// Optional. Delivery mode for the generated content.
|
|
///
|
|
/// ### Gemini Developer API
|
|
///
|
|
/// > Important: This property is not supported in the Gemini Developer API.
|
|
///
|
|
/// ### Gemini Enterprise API
|
|
///
|
|
/// Optional. Delivery mode for the generated content.
|
|
package let delivery: Delivery?
|
|
|
|
/// Optional. The Google Cloud Storage URI to store the video output. Required for Vertex
|
|
///
|
|
/// ### Gemini Developer API
|
|
///
|
|
/// > Important: This property is not supported in the Gemini Developer API.
|
|
///
|
|
/// ### Gemini Enterprise API
|
|
///
|
|
/// Optional. The Google Cloud Storage URI to store the video output. Required for Vertex
|
|
/// if delivery is URI.
|
|
package let gcsUri: String?
|
|
|
|
/// The aspect ratio for the video output.
|
|
///
|
|
/// ### Gemini Developer API
|
|
///
|
|
/// > Important: This property is not supported in the Gemini Developer API.
|
|
///
|
|
/// ### Gemini Enterprise API
|
|
///
|
|
/// The aspect ratio for the video output.
|
|
package let aspectRatio: AspectRatio?
|
|
|
|
/// Optional. The duration for the video output.
|
|
///
|
|
/// ### Gemini Developer API
|
|
///
|
|
/// > Important: This property is not supported in the Gemini Developer API.
|
|
///
|
|
/// ### Gemini Enterprise API
|
|
///
|
|
/// Optional. The duration for the video output.
|
|
package let duration: String?
|
|
|
|
/// Creates a new `VideoResponseFormat`.
|
|
///
|
|
/// - Parameters:
|
|
/// - delivery: Optional. Delivery mode for the generated content. (Gemini Enterprise API only). For more details, see ``delivery``.
|
|
/// - gcsUri: Optional. The Google Cloud Storage URI to store the video output. Required for Vertex (Gemini Enterprise API only). For more details, see ``gcsUri``.
|
|
/// - aspectRatio: The aspect ratio for the video output. (Gemini Enterprise API only). For more details, see ``aspectRatio``.
|
|
/// - duration: Optional. The duration for the video output. (Gemini Enterprise API only). For more details, see ``duration``.
|
|
package init(
|
|
delivery: Delivery? = nil,
|
|
gcsUri: String? = nil,
|
|
aspectRatio: AspectRatio? = nil,
|
|
duration: String? = nil
|
|
) {
|
|
self.delivery = delivery
|
|
self.gcsUri = gcsUri
|
|
self.aspectRatio = aspectRatio
|
|
self.duration = duration
|
|
}
|
|
enum CodingKeys: String, CodingKey {
|
|
case delivery = "delivery"
|
|
case gcsUri = "gcsUri"
|
|
case aspectRatio = "aspectRatio"
|
|
case duration = "duration"
|
|
}
|
|
}
|