@@ -191,9 +191,9 @@ def __init__(
191191 # Service calls
192192 def annotate_video (
193193 self ,
194- features ,
195194 input_uri = None ,
196195 input_content = None ,
196+ features = None ,
197197 video_context = None ,
198198 output_uri = None ,
199199 location_id = None ,
@@ -213,11 +213,11 @@ def annotate_video(
213213 >>>
214214 >>> client = videointelligence_v1.VideoIntelligenceServiceClient()
215215 >>>
216+ >>> input_uri = 'gs://cloud-samples-data/video/cat.mp4'
216217 >>> features_element = enums.Feature.LABEL_DETECTION
217218 >>> features = [features_element]
218- >>> input_uri = 'gs://cloud-samples-data/video/cat.mp4'
219219 >>>
220- >>> response = client.annotate_video(features, input_uri=input_uri)
220+ >>> response = client.annotate_video(input_uri=input_uri, features=features )
221221 >>>
222222 >>> def callback(operation_future):
223223 ... # Handle result.
@@ -229,7 +229,6 @@ def annotate_video(
229229 >>> metadata = response.metadata()
230230
231231 Args:
232- features (list[~google.cloud.videointelligence_v1.types.Feature]): Required. Requested video annotation features.
233232 input_uri (str): Input video location. Currently, only `Google Cloud
234233 Storage <https://cloud.google.com/storage/>`__ URIs are supported, which
235234 must be specified in the following format: ``gs://bucket-id/object-id``
@@ -242,6 +241,7 @@ def annotate_video(
242241 request as ``input_content``. If set, ``input_content`` should be unset.
243242 input_content (bytes): The video data bytes. If unset, the input video(s) should be specified
244243 via ``input_uri``. If set, ``input_uri`` should be unset.
244+ features (list[~google.cloud.videointelligence_v1.types.Feature]): Required. Requested video annotation features.
245245 video_context (Union[dict, ~google.cloud.videointelligence_v1.types.VideoContext]): Additional video context and/or feature-specific parameters.
246246
247247 If a dict is provided, it must be of the same form as the protobuf
@@ -288,9 +288,9 @@ def annotate_video(
288288 )
289289
290290 request = video_intelligence_pb2 .AnnotateVideoRequest (
291- features = features ,
292291 input_uri = input_uri ,
293292 input_content = input_content ,
293+ features = features ,
294294 video_context = video_context ,
295295 output_uri = output_uri ,
296296 location_id = location_id ,
0 commit comments