diff --git a/google/cloud/aiplatform_v1/types/content.py b/google/cloud/aiplatform_v1/types/content.py index 7ce727205d..cd7af1ce94 100644 --- a/google/cloud/aiplatform_v1/types/content.py +++ b/google/cloud/aiplatform_v1/types/content.py @@ -327,6 +327,8 @@ class VideoMetadata(proto.Message): Optional. The start offset of the video. end_offset (google.protobuf.duration_pb2.Duration): Optional. The end offset of the video. + fps (float): + Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. """ start_offset: duration_pb2.Duration = proto.Field( @@ -339,6 +341,10 @@ class VideoMetadata(proto.Message): number=2, message=duration_pb2.Duration, ) + fps: float = proto.Field( + proto.DOUBLE, + number=3, + ) class ImageConfig(proto.Message): diff --git a/google/cloud/aiplatform_v1beta1/types/content.py b/google/cloud/aiplatform_v1beta1/types/content.py index 59c5b57daa..b823d7e191 100644 --- a/google/cloud/aiplatform_v1beta1/types/content.py +++ b/google/cloud/aiplatform_v1beta1/types/content.py @@ -330,6 +330,8 @@ class VideoMetadata(proto.Message): Optional. The start offset of the video. end_offset (google.protobuf.duration_pb2.Duration): Optional. The end offset of the video. + fps (float): + Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. """ start_offset: duration_pb2.Duration = proto.Field( @@ -342,6 +344,10 @@ class VideoMetadata(proto.Message): number=2, message=duration_pb2.Duration, ) + fps: float = proto.Field( + proto.DOUBLE, + number=3, + ) class PrebuiltVoiceConfig(proto.Message): diff --git a/tests/unit/gapic/aiplatform_v1/test_gen_ai_tuning_service.py b/tests/unit/gapic/aiplatform_v1/test_gen_ai_tuning_service.py index 21e5de6937..47d41c60dc 100644 --- a/tests/unit/gapic/aiplatform_v1/test_gen_ai_tuning_service.py +++ b/tests/unit/gapic/aiplatform_v1/test_gen_ai_tuning_service.py @@ -4630,6 +4630,7 @@ def test_create_tuning_job_rest_call_success(request_type): "video_metadata": { "start_offset": {"seconds": 751, "nanos": 543}, "end_offset": {}, + "fps": 0.5, }, } ], @@ -6231,6 +6232,7 @@ async def test_create_tuning_job_rest_asyncio_call_success(request_type): "video_metadata": { "start_offset": {"seconds": 751, "nanos": 543}, "end_offset": {}, + "fps": 0.5, }, } ], diff --git a/tests/unit/gapic/aiplatform_v1beta1/test_gen_ai_tuning_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_gen_ai_tuning_service.py index 4506f9d553..5f30e1773b 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_gen_ai_tuning_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_gen_ai_tuning_service.py @@ -4734,6 +4734,7 @@ def test_create_tuning_job_rest_call_success(request_type): "video_metadata": { "start_offset": {"seconds": 751, "nanos": 543}, "end_offset": {}, + "fps": 0.5, }, "thought": True, "thought_signature": b"thought_signature_blob", @@ -6485,6 +6486,7 @@ async def test_create_tuning_job_rest_asyncio_call_success(request_type): "video_metadata": { "start_offset": {"seconds": 751, "nanos": 543}, "end_offset": {}, + "fps": 0.5, }, "thought": True, "thought_signature": b"thought_signature_blob", diff --git a/tests/unit/gapic/aiplatform_v1beta1/test_session_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_session_service.py index a12faa4603..4a563977e9 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_session_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_session_service.py @@ -6791,6 +6791,7 @@ def test_append_event_rest_call_success(request_type): "video_metadata": { "start_offset": {"seconds": 751, "nanos": 543}, "end_offset": {}, + "fps": 0.5, }, "thought": True, "thought_signature": b"thought_signature_blob", @@ -8989,6 +8990,7 @@ async def test_append_event_rest_asyncio_call_success(request_type): "video_metadata": { "start_offset": {"seconds": 751, "nanos": 543}, "end_offset": {}, + "fps": 0.5, }, "thought": True, "thought_signature": b"thought_signature_blob",