diff --git a/api_names_out.yaml b/api_names_out.yaml index bf9cc1032..c766b77c6 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -66608,6 +66608,24 @@ "/iap:v1beta1/TestIamPermissionsResponse/permissions": permissions "/iap:v1beta1/TestIamPermissionsResponse/permissions/permission": permission "/iap:v1beta1/fields": fields +"/iap:v1beta1/iap.projects.iap_tunnel.getIamPolicy": get_iap_tunnel_iam_policy +"/iap:v1beta1/iap.projects.iap_tunnel.getIamPolicy/resource": resource +"/iap:v1beta1/iap.projects.iap_tunnel.setIamPolicy": set_iap_tunnel_iam_policy +"/iap:v1beta1/iap.projects.iap_tunnel.setIamPolicy/resource": resource +"/iap:v1beta1/iap.projects.iap_tunnel.testIamPermissions": test_iap_tunnel_iam_permissions +"/iap:v1beta1/iap.projects.iap_tunnel.testIamPermissions/resource": resource +"/iap:v1beta1/iap.projects.iap_tunnel.zones.getIamPolicy": get_zone_iam_policy +"/iap:v1beta1/iap.projects.iap_tunnel.zones.getIamPolicy/resource": resource +"/iap:v1beta1/iap.projects.iap_tunnel.zones.instances.getIamPolicy": get_instance_iam_policy +"/iap:v1beta1/iap.projects.iap_tunnel.zones.instances.getIamPolicy/resource": resource +"/iap:v1beta1/iap.projects.iap_tunnel.zones.instances.setIamPolicy": set_instance_iam_policy +"/iap:v1beta1/iap.projects.iap_tunnel.zones.instances.setIamPolicy/resource": resource +"/iap:v1beta1/iap.projects.iap_tunnel.zones.instances.testIamPermissions": test_instance_iam_permissions +"/iap:v1beta1/iap.projects.iap_tunnel.zones.instances.testIamPermissions/resource": resource +"/iap:v1beta1/iap.projects.iap_tunnel.zones.setIamPolicy": set_zone_iam_policy +"/iap:v1beta1/iap.projects.iap_tunnel.zones.setIamPolicy/resource": resource +"/iap:v1beta1/iap.projects.iap_tunnel.zones.testIamPermissions": test_zone_iam_permissions +"/iap:v1beta1/iap.projects.iap_tunnel.zones.testIamPermissions/resource": resource "/iap:v1beta1/iap.projects.iap_web.getIamPolicy": get_iap_web_iam_policy "/iap:v1beta1/iap.projects.iap_web.getIamPolicy/resource": resource "/iap:v1beta1/iap.projects.iap_web.services.getIamPolicy": get_service_iam_policy @@ -87764,6 +87782,231 @@ "/videointelligence:v1beta2/key": key "/videointelligence:v1beta2/quotaUser": quota_user "/videointelligence:v1beta2/videointelligence.videos.annotate": annotate_video +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_AnnotateVideoProgress": google_cloud_videointelligence_v1_annotate_video_progress +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_AnnotateVideoProgress/annotationProgress": annotation_progress +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_AnnotateVideoProgress/annotationProgress/annotation_progress": annotation_progress +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_AnnotateVideoResponse": google_cloud_videointelligence_v1_annotate_video_response +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_AnnotateVideoResponse/annotationResults": annotation_results +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_AnnotateVideoResponse/annotationResults/annotation_result": annotation_result +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_Entity": google_cloud_videointelligence_v1_entity +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_Entity/description": description +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_Entity/entityId": entity_id +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_Entity/languageCode": language_code +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_ExplicitContentAnnotation": google_cloud_videointelligence_v1_explicit_content_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_ExplicitContentAnnotation/frames": frames +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_ExplicitContentAnnotation/frames/frame": frame +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_ExplicitContentFrame": google_cloud_videointelligence_v1_explicit_content_frame +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_ExplicitContentFrame/pornographyLikelihood": pornography_likelihood +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_ExplicitContentFrame/timeOffset": time_offset +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_LabelAnnotation": google_cloud_videointelligence_v1_label_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_LabelAnnotation/categoryEntities": category_entities +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_LabelAnnotation/categoryEntities/category_entity": category_entity +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_LabelAnnotation/entity": entity +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_LabelAnnotation/frames": frames +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_LabelAnnotation/frames/frame": frame +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_LabelAnnotation/segments": segments +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_LabelAnnotation/segments/segment": segment +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_LabelFrame": google_cloud_videointelligence_v1_label_frame +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_LabelFrame/confidence": confidence +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_LabelFrame/timeOffset": time_offset +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_LabelSegment": google_cloud_videointelligence_v1_label_segment +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_LabelSegment/confidence": confidence +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_LabelSegment/segment": segment +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_VideoAnnotationProgress": google_cloud_videointelligence_v1_video_annotation_progress +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_VideoAnnotationProgress/inputUri": input_uri +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_VideoAnnotationProgress/progressPercent": progress_percent +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_VideoAnnotationProgress/startTime": start_time +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_VideoAnnotationProgress/updateTime": update_time +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_VideoAnnotationResults": google_cloud_videointelligence_v1_video_annotation_results +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_VideoAnnotationResults/error": error +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_VideoAnnotationResults/explicitAnnotation": explicit_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_VideoAnnotationResults/frameLabelAnnotations": frame_label_annotations +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_VideoAnnotationResults/frameLabelAnnotations/frame_label_annotation": frame_label_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_VideoAnnotationResults/inputUri": input_uri +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_VideoAnnotationResults/segmentLabelAnnotations": segment_label_annotations +? "/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_VideoAnnotationResults/segmentLabelAnnotations/segment_label_annotation" +: segment_label_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_VideoAnnotationResults/shotAnnotations": shot_annotations +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_VideoAnnotationResults/shotAnnotations/shot_annotation": shot_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_VideoAnnotationResults/shotLabelAnnotations": shot_label_annotations +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_VideoAnnotationResults/shotLabelAnnotations/shot_label_annotation": shot_label_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_VideoSegment": google_cloud_videointelligence_v1_video_segment +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_VideoSegment/endTimeOffset": end_time_offset +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1_VideoSegment/startTimeOffset": start_time_offset +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_AnnotateVideoProgress": google_cloud_videointelligence_v1beta2_annotate_video_progress +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_AnnotateVideoProgress/annotationProgress": annotation_progress +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_AnnotateVideoProgress/annotationProgress/annotation_progress": annotation_progress +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_AnnotateVideoResponse": google_cloud_videointelligence_v1beta2_annotate_video_response +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_AnnotateVideoResponse/annotationResults": annotation_results +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_AnnotateVideoResponse/annotationResults/annotation_result": annotation_result +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_Entity": google_cloud_videointelligence_v1beta2_entity +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_Entity/description": description +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_Entity/entityId": entity_id +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_Entity/languageCode": language_code +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_ExplicitContentAnnotation": google_cloud_videointelligence_v1beta2_explicit_content_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_ExplicitContentAnnotation/frames": frames +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_ExplicitContentAnnotation/frames/frame": frame +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_ExplicitContentFrame": google_cloud_videointelligence_v1beta2_explicit_content_frame +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_ExplicitContentFrame/pornographyLikelihood": pornography_likelihood +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_ExplicitContentFrame/timeOffset": time_offset +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_LabelAnnotation": google_cloud_videointelligence_v1beta2_label_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_LabelAnnotation/categoryEntities": category_entities +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_LabelAnnotation/categoryEntities/category_entity": category_entity +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_LabelAnnotation/entity": entity +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_LabelAnnotation/frames": frames +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_LabelAnnotation/frames/frame": frame +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_LabelAnnotation/segments": segments +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_LabelAnnotation/segments/segment": segment +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_LabelFrame": google_cloud_videointelligence_v1beta2_label_frame +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_LabelFrame/confidence": confidence +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_LabelFrame/timeOffset": time_offset +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_LabelSegment": google_cloud_videointelligence_v1beta2_label_segment +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_LabelSegment/confidence": confidence +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_LabelSegment/segment": segment +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_VideoAnnotationProgress": google_cloud_videointelligence_v1beta2_video_annotation_progress +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_VideoAnnotationProgress/inputUri": input_uri +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_VideoAnnotationProgress/progressPercent": progress_percent +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_VideoAnnotationProgress/startTime": start_time +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_VideoAnnotationProgress/updateTime": update_time +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults": google_cloud_videointelligence_v1beta2_video_annotation_results +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults/error": error +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults/explicitAnnotation": explicit_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults/frameLabelAnnotations": frame_label_annotations +? "/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults/frameLabelAnnotations/frame_label_annotation" +: frame_label_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults/inputUri": input_uri +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults/segmentLabelAnnotations": segment_label_annotations +? "/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults/segmentLabelAnnotations/segment_label_annotation" +: segment_label_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults/shotAnnotations": shot_annotations +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults/shotAnnotations/shot_annotation": shot_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults/shotLabelAnnotations": shot_label_annotations +? "/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults/shotLabelAnnotations/shot_label_annotation" +: shot_label_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_VideoSegment": google_cloud_videointelligence_v1beta2_video_segment +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_VideoSegment/endTimeOffset": end_time_offset +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1beta2_VideoSegment/startTimeOffset": start_time_offset +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoProgress": google_cloud_videointelligence_v1p1beta1_annotate_video_progress +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoProgress/annotationProgress": annotation_progress +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoProgress/annotationProgress/annotation_progress": annotation_progress +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoRequest": google_cloud_videointelligence_v1p1beta1_annotate_video_request +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoRequest/features": features +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoRequest/features/feature": feature +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoRequest/inputContent": input_content +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoRequest/inputUri": input_uri +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoRequest/locationId": location_id +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoRequest/outputUri": output_uri +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoRequest/videoContext": video_context +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoResponse": google_cloud_videointelligence_v1p1beta1_annotate_video_response +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoResponse/annotationResults": annotation_results +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoResponse/annotationResults/annotation_result": annotation_result +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_Entity": google_cloud_videointelligence_v1p1beta1_entity +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_Entity/description": description +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_Entity/entityId": entity_id +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_Entity/languageCode": language_code +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_ExplicitContentAnnotation": google_cloud_videointelligence_v1p1beta1_explicit_content_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_ExplicitContentAnnotation/frames": frames +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_ExplicitContentAnnotation/frames/frame": frame +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_ExplicitContentDetectionConfig": google_cloud_videointelligence_v1p1beta1_explicit_content_detection_config +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_ExplicitContentDetectionConfig/model": model +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_ExplicitContentFrame": google_cloud_videointelligence_v1p1beta1_explicit_content_frame +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_ExplicitContentFrame/pornographyLikelihood": pornography_likelihood +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_ExplicitContentFrame/timeOffset": time_offset +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation": google_cloud_videointelligence_v1p1beta1_label_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation/categoryEntities": category_entities +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation/categoryEntities/category_entity": category_entity +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation/entity": entity +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation/frames": frames +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation/frames/frame": frame +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation/segments": segments +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation/segments/segment": segment +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelDetectionConfig": google_cloud_videointelligence_v1p1beta1_label_detection_config +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelDetectionConfig/labelDetectionMode": label_detection_mode +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelDetectionConfig/model": model +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelDetectionConfig/stationaryCamera": stationary_camera +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelFrame": google_cloud_videointelligence_v1p1beta1_label_frame +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelFrame/confidence": confidence +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelFrame/timeOffset": time_offset +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelSegment": google_cloud_videointelligence_v1p1beta1_label_segment +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelSegment/confidence": confidence +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_LabelSegment/segment": segment +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_ShotChangeDetectionConfig": google_cloud_videointelligence_v1p1beta1_shot_change_detection_config +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_ShotChangeDetectionConfig/model": model +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechContext": google_cloud_videointelligence_v1p1beta1_speech_context +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechContext/phrases": phrases +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechContext/phrases/phrase": phrase +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative": google_cloud_videointelligence_v1p1beta1_speech_recognition_alternative +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative/confidence": confidence +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative/transcript": transcript +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative/words": words +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative/words/word": word +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechTranscription": google_cloud_videointelligence_v1p1beta1_speech_transcription +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechTranscription/alternatives": alternatives +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechTranscription/alternatives/alternative": alternative +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechTranscriptionConfig": google_cloud_videointelligence_v1p1beta1_speech_transcription_config +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechTranscriptionConfig/audioTracks": audio_tracks +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechTranscriptionConfig/audioTracks/audio_track": audio_track +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechTranscriptionConfig/enableAutomaticPunctuation": enable_automatic_punctuation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechTranscriptionConfig/filterProfanity": filter_profanity +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechTranscriptionConfig/languageCode": language_code +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechTranscriptionConfig/maxAlternatives": max_alternatives +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechTranscriptionConfig/speechContexts": speech_contexts +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_SpeechTranscriptionConfig/speechContexts/speech_context": speech_context +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress": google_cloud_videointelligence_v1p1beta1_video_annotation_progress +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress/inputUri": input_uri +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress/progressPercent": progress_percent +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress/startTime": start_time +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress/updateTime": update_time +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults": google_cloud_videointelligence_v1p1beta1_video_annotation_results +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/error": error +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/explicitAnnotation": explicit_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/frameLabelAnnotations": frame_label_annotations +? "/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/frameLabelAnnotations/frame_label_annotation" +: frame_label_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/inputUri": input_uri +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/segmentLabelAnnotations": segment_label_annotations +? "/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/segmentLabelAnnotations/segment_label_annotation" +: segment_label_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/shotAnnotations": shot_annotations +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/shotAnnotations/shot_annotation": shot_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/shotLabelAnnotations": shot_label_annotations +? "/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/shotLabelAnnotations/shot_label_annotation" +: shot_label_annotation +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/speechTranscriptions": speech_transcriptions +? "/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults/speechTranscriptions/speech_transcription" +: speech_transcription +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoContext": google_cloud_videointelligence_v1p1beta1_video_context +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoContext/explicitContentDetectionConfig": explicit_content_detection_config +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoContext/labelDetectionConfig": label_detection_config +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoContext/segments": segments +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoContext/segments/segment": segment +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoContext/shotChangeDetectionConfig": shot_change_detection_config +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoContext/speechTranscriptionConfig": speech_transcription_config +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoSegment": google_cloud_videointelligence_v1p1beta1_video_segment +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoSegment/endTimeOffset": end_time_offset +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_VideoSegment/startTimeOffset": start_time_offset +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_WordInfo": google_cloud_videointelligence_v1p1beta1_word_info +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_WordInfo/endTime": end_time +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_WordInfo/startTime": start_time +"/videointelligence:v1p1beta1/GoogleCloudVideointelligenceV1p1beta1_WordInfo/word": word +"/videointelligence:v1p1beta1/GoogleLongrunning_Operation": google_longrunning_operation +"/videointelligence:v1p1beta1/GoogleLongrunning_Operation/done": done +"/videointelligence:v1p1beta1/GoogleLongrunning_Operation/error": error +"/videointelligence:v1p1beta1/GoogleLongrunning_Operation/metadata": metadata +"/videointelligence:v1p1beta1/GoogleLongrunning_Operation/metadata/metadatum": metadatum +"/videointelligence:v1p1beta1/GoogleLongrunning_Operation/name": name +"/videointelligence:v1p1beta1/GoogleLongrunning_Operation/response": response +"/videointelligence:v1p1beta1/GoogleLongrunning_Operation/response/response": response +"/videointelligence:v1p1beta1/GoogleRpc_Status": google_rpc_status +"/videointelligence:v1p1beta1/GoogleRpc_Status/code": code +"/videointelligence:v1p1beta1/GoogleRpc_Status/details": details +"/videointelligence:v1p1beta1/GoogleRpc_Status/details/detail": detail +"/videointelligence:v1p1beta1/GoogleRpc_Status/details/detail/detail": detail +"/videointelligence:v1p1beta1/GoogleRpc_Status/message": message +"/videointelligence:v1p1beta1/fields": fields +"/videointelligence:v1p1beta1/key": key +"/videointelligence:v1p1beta1/quotaUser": quota_user +"/videointelligence:v1p1beta1/videointelligence.videos.annotate": annotate_video "/vision:v1/AnnotateFileResponse": annotate_file_response "/vision:v1/AnnotateFileResponse/inputConfig": input_config "/vision:v1/AnnotateFileResponse/responses": responses diff --git a/generated/google/apis/adexchangebuyer2_v2beta1.rb b/generated/google/apis/adexchangebuyer2_v2beta1.rb index d5113b8af..07204124d 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-exchange/buyer-rest/reference/rest/ module Adexchangebuyer2V2beta1 VERSION = 'V2beta1' - REVISION = '20180917' + REVISION = '20180921' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb b/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb index fd143a88a..a45119605 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb @@ -30,24 +30,26 @@ module Google class AbsoluteDateRange include Google::Apis::Core::Hashable - # Represents a whole calendar date, for example date of birth. The time of day + # Represents a whole or partial calendar date, e.g. a birthday. The time of day # and time zone are either specified elsewhere or are not significant. The date - # is relative to the Proleptic Gregorian Calendar. The day can be 0 to - # represent a year and month where the day is not significant, for example - # credit card expiration date. The year can be 0 to represent a month and day - # independent of year, for example anniversary date. Related types are - # google.type.TimeOfDay and `google.protobuf.Timestamp`. + # is relative to the Proleptic Gregorian Calendar. This can represent: + # * A full date, with non-zero year, month and day values + # * A month and day value, with a zero year, e.g. an anniversary + # * A year on its own, with zero month and day values + # * A year and month value, with a zero day, e.g. a credit card expiration date + # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. # Corresponds to the JSON property `endDate` # @return [Google::Apis::Adexchangebuyer2V2beta1::Date] attr_accessor :end_date - # Represents a whole calendar date, for example date of birth. The time of day + # Represents a whole or partial calendar date, e.g. a birthday. The time of day # and time zone are either specified elsewhere or are not significant. The date - # is relative to the Proleptic Gregorian Calendar. The day can be 0 to - # represent a year and month where the day is not significant, for example - # credit card expiration date. The year can be 0 to represent a month and day - # independent of year, for example anniversary date. Related types are - # google.type.TimeOfDay and `google.protobuf.Timestamp`. + # is relative to the Proleptic Gregorian Calendar. This can represent: + # * A full date, with non-zero year, month and day values + # * A month and day value, with a zero year, e.g. an anniversary + # * A year on its own, with zero month and day values + # * A year and month value, with a zero day, e.g. a credit card expiration date + # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. # Corresponds to the JSON property `startDate` # @return [Google::Apis::Adexchangebuyer2V2beta1::Date] attr_accessor :start_date @@ -1040,24 +1042,26 @@ module Google end end - # Represents a whole calendar date, for example date of birth. The time of day + # Represents a whole or partial calendar date, e.g. a birthday. The time of day # and time zone are either specified elsewhere or are not significant. The date - # is relative to the Proleptic Gregorian Calendar. The day can be 0 to - # represent a year and month where the day is not significant, for example - # credit card expiration date. The year can be 0 to represent a month and day - # independent of year, for example anniversary date. Related types are - # google.type.TimeOfDay and `google.protobuf.Timestamp`. + # is relative to the Proleptic Gregorian Calendar. This can represent: + # * A full date, with non-zero year, month and day values + # * A month and day value, with a zero year, e.g. an anniversary + # * A year on its own, with zero month and day values + # * A year and month value, with a zero day, e.g. a credit card expiration date + # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. class Date include Google::Apis::Core::Hashable # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 - # if specifying a year/month where the day is not significant. + # if specifying a year by itself or a year and month where the day is not + # significant. # Corresponds to the JSON property `day` # @return [Fixnum] attr_accessor :day - # Month of year. Must be from 1 to 12, or 0 if specifying a date without a - # month. + # Month of year. Must be from 1 to 12, or 0 if specifying a year without a + # month and day. # Corresponds to the JSON property `month` # @return [Fixnum] attr_accessor :month @@ -1763,13 +1767,14 @@ module Google class FilteringStats include Google::Apis::Core::Hashable - # Represents a whole calendar date, for example date of birth. The time of day + # Represents a whole or partial calendar date, e.g. a birthday. The time of day # and time zone are either specified elsewhere or are not significant. The date - # is relative to the Proleptic Gregorian Calendar. The day can be 0 to - # represent a year and month where the day is not significant, for example - # credit card expiration date. The year can be 0 to represent a month and day - # independent of year, for example anniversary date. Related types are - # google.type.TimeOfDay and `google.protobuf.Timestamp`. + # is relative to the Proleptic Gregorian Calendar. This can represent: + # * A full date, with non-zero year, month and day values + # * A month and day value, with a zero year, e.g. an anniversary + # * A year on its own, with zero month and day values + # * A year and month value, with a zero day, e.g. a credit card expiration date + # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. # Corresponds to the JSON property `date` # @return [Google::Apis::Adexchangebuyer2V2beta1::Date] attr_accessor :date diff --git a/generated/google/apis/adexchangebuyer2_v2beta1/service.rb b/generated/google/apis/adexchangebuyer2_v2beta1/service.rb index 490377bde..099d92b63 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1/service.rb @@ -1448,12 +1448,12 @@ module Google # snippet quota. A deleted creative should not be used in bidding (all bids # with that creative will be rejected). # @param [String] owner_name - # Name of the buyer account that owns the creative. - # Supports two cases: - # - For the buyer account representing bidder 123: - # `bidders/123/accounts/123/` - # - For the child seat buyer account 456 whose bidder is 123: - # `bidders/123/accounts/456/` + # Name of the owner (bidder or account) of the creative to be deleted. + # For example: + # - For an account-level creative for the buyer account representing bidder + # 123: `bidders/123/accounts/123/` + # - For an account-level creative for the child seat buyer account 456 + # whose bidder is 123: `bidders/123/accounts/456/` # @param [String] creative_id # The ID of the creative to delete. # @param [String] fields diff --git a/generated/google/apis/iap_v1beta1.rb b/generated/google/apis/iap_v1beta1.rb index 7e1c1cd2b..e1c9caa3a 100644 --- a/generated/google/apis/iap_v1beta1.rb +++ b/generated/google/apis/iap_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/iap module IapV1beta1 VERSION = 'V1beta1' - REVISION = '20180806' + REVISION = '20180919' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/iap_v1beta1/service.rb b/generated/google/apis/iap_v1beta1/service.rb index 6a243cbd6..4f746f89a 100644 --- a/generated/google/apis/iap_v1beta1/service.rb +++ b/generated/google/apis/iap_v1beta1/service.rb @@ -47,6 +47,345 @@ module Google @batch_path = 'batch' end + # Gets the access control policy for an Identity-Aware Proxy protected + # resource. + # More information about managing access via IAP can be found at: + # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::IapV1beta1::GetIamPolicyRequest] get_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IapV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IapV1beta1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_iap_tunnel_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::IapV1beta1::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::IapV1beta1::Policy::Representation + command.response_class = Google::Apis::IapV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy for an Identity-Aware Proxy protected + # resource. Replaces any existing policy. + # More information about managing access via IAP can be found at: + # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::IapV1beta1::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IapV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IapV1beta1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_iap_tunnel_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::IapV1beta1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::IapV1beta1::Policy::Representation + command.response_class = Google::Apis::IapV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the Identity-Aware Proxy protected + # resource. If the resource does not exist or the caller does not have + # Identity-Aware Proxy permissions a [google.rpc.Code.PERMISSION_DENIED] + # will be returned. + # More information about managing access via IAP can be found at: + # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::IapV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IapV1beta1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IapV1beta1::TestIamPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_iap_tunnel_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::IapV1beta1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::IapV1beta1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::IapV1beta1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the access control policy for an Identity-Aware Proxy protected + # resource. + # More information about managing access via IAP can be found at: + # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::IapV1beta1::GetIamPolicyRequest] get_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IapV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IapV1beta1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_zone_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::IapV1beta1::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::IapV1beta1::Policy::Representation + command.response_class = Google::Apis::IapV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy for an Identity-Aware Proxy protected + # resource. Replaces any existing policy. + # More information about managing access via IAP can be found at: + # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::IapV1beta1::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IapV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IapV1beta1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_zone_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::IapV1beta1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::IapV1beta1::Policy::Representation + command.response_class = Google::Apis::IapV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the Identity-Aware Proxy protected + # resource. If the resource does not exist or the caller does not have + # Identity-Aware Proxy permissions a [google.rpc.Code.PERMISSION_DENIED] + # will be returned. + # More information about managing access via IAP can be found at: + # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::IapV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IapV1beta1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IapV1beta1::TestIamPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_zone_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::IapV1beta1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::IapV1beta1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::IapV1beta1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the access control policy for an Identity-Aware Proxy protected + # resource. + # More information about managing access via IAP can be found at: + # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::IapV1beta1::GetIamPolicyRequest] get_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IapV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IapV1beta1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_instance_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::IapV1beta1::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::IapV1beta1::Policy::Representation + command.response_class = Google::Apis::IapV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy for an Identity-Aware Proxy protected + # resource. Replaces any existing policy. + # More information about managing access via IAP can be found at: + # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::IapV1beta1::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IapV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IapV1beta1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::IapV1beta1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::IapV1beta1::Policy::Representation + command.response_class = Google::Apis::IapV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the Identity-Aware Proxy protected + # resource. If the resource does not exist or the caller does not have + # Identity-Aware Proxy permissions a [google.rpc.Code.PERMISSION_DENIED] + # will be returned. + # More information about managing access via IAP can be found at: + # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::IapV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IapV1beta1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IapV1beta1::TestIamPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::IapV1beta1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::IapV1beta1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::IapV1beta1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Gets the access control policy for an Identity-Aware Proxy protected # resource. # More information about managing access via IAP can be found at: diff --git a/generated/google/apis/videointelligence_v1beta1.rb b/generated/google/apis/videointelligence_v1p1beta1.rb similarity index 76% rename from generated/google/apis/videointelligence_v1beta1.rb rename to generated/google/apis/videointelligence_v1p1beta1.rb index f6a6f8105..22b0c2c26 100644 --- a/generated/google/apis/videointelligence_v1beta1.rb +++ b/generated/google/apis/videointelligence_v1p1beta1.rb @@ -12,9 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -require 'google/apis/videointelligence_v1beta1/service.rb' -require 'google/apis/videointelligence_v1beta1/classes.rb' -require 'google/apis/videointelligence_v1beta1/representations.rb' +require 'google/apis/videointelligence_v1p1beta1/service.rb' +require 'google/apis/videointelligence_v1p1beta1/classes.rb' +require 'google/apis/videointelligence_v1p1beta1/representations.rb' module Google module Apis @@ -23,9 +23,9 @@ module Google # Cloud Video Intelligence API. # # @see https://cloud.google.com/video-intelligence/docs/ - module VideointelligenceV1beta1 - VERSION = 'V1beta1' - REVISION = '20180502' + module VideointelligenceV1p1beta1 + VERSION = 'V1p1beta1' + REVISION = '20180907' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/videointelligence_v1beta1/classes.rb b/generated/google/apis/videointelligence_v1p1beta1/classes.rb similarity index 71% rename from generated/google/apis/videointelligence_v1beta1/classes.rb rename to generated/google/apis/videointelligence_v1p1beta1/classes.rb index a8778cd74..6927bcb85 100644 --- a/generated/google/apis/videointelligence_v1beta1/classes.rb +++ b/generated/google/apis/videointelligence_v1p1beta1/classes.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis - module VideointelligenceV1beta1 + module VideointelligenceV1p1beta1 # Video annotation progress. Included in the `metadata` # field of the `Operation` returned by the `GetOperation` @@ -30,7 +30,7 @@ module Google # Progress metadata for all videos specified in `AnnotateVideoRequest`. # Corresponds to the JSON property `annotationProgress` - # @return [Array] + # @return [Array] attr_accessor :annotation_progress def initialize(**args) @@ -51,7 +51,7 @@ module Google # Annotation results for all videos specified in `AnnotateVideoRequest`. # Corresponds to the JSON property `annotationResults` - # @return [Array] + # @return [Array] attr_accessor :annotation_results def initialize(**args) @@ -105,7 +105,7 @@ module Google # All video frames where explicit content was detected. # Corresponds to the JSON property `frames` - # @return [Array] + # @return [Array] attr_accessor :frames def initialize(**args) @@ -153,22 +153,22 @@ module Google # cases there might be more than one categories e.g. `Terrier` could also be # a `pet`. # Corresponds to the JSON property `categoryEntities` - # @return [Array] + # @return [Array] attr_accessor :category_entities # Detected entity from video analysis. # Corresponds to the JSON property `entity` - # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1Entity] + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1Entity] attr_accessor :entity # All video frames where a label was detected. # Corresponds to the JSON property `frames` - # @return [Array] + # @return [Array] attr_accessor :frames # All video segments where a label was detected. # Corresponds to the JSON property `segments` - # @return [Array] + # @return [Array] attr_accessor :segments def initialize(**args) @@ -221,7 +221,7 @@ module Google # Video segment. # Corresponds to the JSON property `segment` - # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1VideoSegment] + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1VideoSegment] attr_accessor :segment def initialize(**args) @@ -239,24 +239,24 @@ module Google class GoogleCloudVideointelligenceV1VideoAnnotationProgress include Google::Apis::Core::Hashable - # Output only. Video file location in + # Video file location in # [Google Cloud Storage](https://cloud.google.com/storage/). # Corresponds to the JSON property `inputUri` # @return [String] attr_accessor :input_uri - # Output only. Approximate percentage processed thus far. Guaranteed to be + # Approximate percentage processed thus far. Guaranteed to be # 100 when fully processed. # Corresponds to the JSON property `progressPercent` # @return [Fixnum] attr_accessor :progress_percent - # Output only. Time when the request was received. + # Time when the request was received. # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time - # Output only. Time of the most recent update. + # Time of the most recent update. # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time @@ -318,23 +318,23 @@ module Google # - Logging. If some API errors are stored in logs, the message `Status` could # be used directly after any stripping needed for security/privacy reasons. # Corresponds to the JSON property `error` - # @return [Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus] + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleRpcStatus] attr_accessor :error # Explicit content annotation (based on per-frame visual signals only). # If no explicit content has been detected in a frame, no annotations are # present for that frame. # Corresponds to the JSON property `explicitAnnotation` - # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1ExplicitContentAnnotation] + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1ExplicitContentAnnotation] attr_accessor :explicit_annotation # Label annotations on frame level. # There is exactly one element for each unique label. # Corresponds to the JSON property `frameLabelAnnotations` - # @return [Array] + # @return [Array] attr_accessor :frame_label_annotations - # Output only. Video file location in + # Video file location in # [Google Cloud Storage](https://cloud.google.com/storage/). # Corresponds to the JSON property `inputUri` # @return [String] @@ -343,18 +343,18 @@ module Google # Label annotations on video level or user specified segment level. # There is exactly one element for each unique label. # Corresponds to the JSON property `segmentLabelAnnotations` - # @return [Array] + # @return [Array] attr_accessor :segment_label_annotations # Shot annotations. Each shot is represented as a video segment. # Corresponds to the JSON property `shotAnnotations` - # @return [Array] + # @return [Array] attr_accessor :shot_annotations # Label annotations on shot level. # There is exactly one element for each unique label. # Corresponds to the JSON property `shotLabelAnnotations` - # @return [Array] + # @return [Array] attr_accessor :shot_label_annotations def initialize(**args) @@ -400,434 +400,6 @@ module Google end end - # Video annotation progress. Included in the `metadata` - # field of the `Operation` returned by the `GetOperation` - # call of the `google::longrunning::Operations` service. - class GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress - include Google::Apis::Core::Hashable - - # Progress metadata for all videos specified in `AnnotateVideoRequest`. - # Corresponds to the JSON property `annotationProgress` - # @return [Array] - attr_accessor :annotation_progress - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @annotation_progress = args[:annotation_progress] if args.key?(:annotation_progress) - end - end - - # Video annotation request. - class GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest - include Google::Apis::Core::Hashable - - # Requested video annotation features. - # Corresponds to the JSON property `features` - # @return [Array] - attr_accessor :features - - # The video data bytes. Encoding: base64. If unset, the input video(s) - # should be specified via `input_uri`. If set, `input_uri` should be unset. - # Corresponds to the JSON property `inputContent` - # @return [String] - attr_accessor :input_content - - # Input video location. Currently, only - # [Google Cloud Storage](https://cloud.google.com/storage/) URIs are - # supported, which must be specified in the following format: - # `gs://bucket-id/object-id` (other URI formats return - # google.rpc.Code.INVALID_ARGUMENT). For more information, see - # [Request URIs](/storage/docs/reference-uris). - # A video URI may include wildcards in `object-id`, and thus identify - # multiple videos. Supported wildcards: '*' to match 0 or more characters; - # '?' to match 1 character. If unset, the input video should be embedded - # in the request as `input_content`. If set, `input_content` should be unset. - # Corresponds to the JSON property `inputUri` - # @return [String] - attr_accessor :input_uri - - # Optional cloud region where annotation should take place. Supported cloud - # regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region - # is specified, a region will be determined based on video file location. - # Corresponds to the JSON property `locationId` - # @return [String] - attr_accessor :location_id - - # Optional location where the output (in JSON format) should be stored. - # Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) - # URIs are supported, which must be specified in the following format: - # `gs://bucket-id/object-id` (other URI formats return - # google.rpc.Code.INVALID_ARGUMENT). For more information, see - # [Request URIs](/storage/docs/reference-uris). - # Corresponds to the JSON property `outputUri` - # @return [String] - attr_accessor :output_uri - - # Video context and/or feature-specific parameters. - # Corresponds to the JSON property `videoContext` - # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoContext] - attr_accessor :video_context - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @features = args[:features] if args.key?(:features) - @input_content = args[:input_content] if args.key?(:input_content) - @input_uri = args[:input_uri] if args.key?(:input_uri) - @location_id = args[:location_id] if args.key?(:location_id) - @output_uri = args[:output_uri] if args.key?(:output_uri) - @video_context = args[:video_context] if args.key?(:video_context) - end - end - - # Video annotation response. Included in the `response` - # field of the `Operation` returned by the `GetOperation` - # call of the `google::longrunning::Operations` service. - class GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse - include Google::Apis::Core::Hashable - - # Annotation results for all videos specified in `AnnotateVideoRequest`. - # Corresponds to the JSON property `annotationResults` - # @return [Array] - attr_accessor :annotation_results - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @annotation_results = args[:annotation_results] if args.key?(:annotation_results) - end - end - - # Label annotation. - class GoogleCloudVideointelligenceV1beta1LabelAnnotation - include Google::Apis::Core::Hashable - - # Textual description, e.g. `Fixed-gear bicycle`. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Language code for `description` in BCP-47 format. - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_code - - # Where the label was detected and with what confidence. - # Corresponds to the JSON property `locations` - # @return [Array] - attr_accessor :locations - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @description = args[:description] if args.key?(:description) - @language_code = args[:language_code] if args.key?(:language_code) - @locations = args[:locations] if args.key?(:locations) - end - end - - # Label location. - class GoogleCloudVideointelligenceV1beta1LabelLocation - include Google::Apis::Core::Hashable - - # Confidence that the label is accurate. Range: [0, 1]. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - # Label level. - # Corresponds to the JSON property `level` - # @return [String] - attr_accessor :level - - # Video segment. - # Corresponds to the JSON property `segment` - # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoSegment] - attr_accessor :segment - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @confidence = args[:confidence] if args.key?(:confidence) - @level = args[:level] if args.key?(:level) - @segment = args[:segment] if args.key?(:segment) - end - end - - # Safe search annotation (based on per-frame visual signals only). - # If no unsafe content has been detected in a frame, no annotations - # are present for that frame. If only some types of unsafe content - # have been detected in a frame, the likelihood is set to `UNKNOWN` - # for all other types of unsafe content. - class GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation - include Google::Apis::Core::Hashable - - # Likelihood of adult content. - # Corresponds to the JSON property `adult` - # @return [String] - attr_accessor :adult - - # Likelihood of medical content. - # Corresponds to the JSON property `medical` - # @return [String] - attr_accessor :medical - - # Likelihood of racy content. - # Corresponds to the JSON property `racy` - # @return [String] - attr_accessor :racy - - # Likelihood that an obvious modification was made to the original - # version to make it appear funny or offensive. - # Corresponds to the JSON property `spoof` - # @return [String] - attr_accessor :spoof - - # Video time offset in microseconds. - # Corresponds to the JSON property `timeOffset` - # @return [Fixnum] - attr_accessor :time_offset - - # Likelihood of violent content. - # Corresponds to the JSON property `violent` - # @return [String] - attr_accessor :violent - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @adult = args[:adult] if args.key?(:adult) - @medical = args[:medical] if args.key?(:medical) - @racy = args[:racy] if args.key?(:racy) - @spoof = args[:spoof] if args.key?(:spoof) - @time_offset = args[:time_offset] if args.key?(:time_offset) - @violent = args[:violent] if args.key?(:violent) - end - end - - # Annotation progress for a single video. - class GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress - include Google::Apis::Core::Hashable - - # Video file location in - # [Google Cloud Storage](https://cloud.google.com/storage/). - # Corresponds to the JSON property `inputUri` - # @return [String] - attr_accessor :input_uri - - # Approximate percentage processed thus far. - # Guaranteed to be 100 when fully processed. - # Corresponds to the JSON property `progressPercent` - # @return [Fixnum] - attr_accessor :progress_percent - - # Time when the request was received. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # Time of the most recent update. - # Corresponds to the JSON property `updateTime` - # @return [String] - attr_accessor :update_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @input_uri = args[:input_uri] if args.key?(:input_uri) - @progress_percent = args[:progress_percent] if args.key?(:progress_percent) - @start_time = args[:start_time] if args.key?(:start_time) - @update_time = args[:update_time] if args.key?(:update_time) - end - end - - # Annotation results for a single video. - class GoogleCloudVideointelligenceV1beta1VideoAnnotationResults - include Google::Apis::Core::Hashable - - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by - # [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error message, - # and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. - # Corresponds to the JSON property `error` - # @return [Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus] - attr_accessor :error - - # Video file location in - # [Google Cloud Storage](https://cloud.google.com/storage/). - # Corresponds to the JSON property `inputUri` - # @return [String] - attr_accessor :input_uri - - # Label annotations. There is exactly one element for each unique label. - # Corresponds to the JSON property `labelAnnotations` - # @return [Array] - attr_accessor :label_annotations - - # Safe search annotations. - # Corresponds to the JSON property `safeSearchAnnotations` - # @return [Array] - attr_accessor :safe_search_annotations - - # Shot annotations. Each shot is represented as a video segment. - # Corresponds to the JSON property `shotAnnotations` - # @return [Array] - attr_accessor :shot_annotations - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @error = args[:error] if args.key?(:error) - @input_uri = args[:input_uri] if args.key?(:input_uri) - @label_annotations = args[:label_annotations] if args.key?(:label_annotations) - @safe_search_annotations = args[:safe_search_annotations] if args.key?(:safe_search_annotations) - @shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations) - end - end - - # Video context and/or feature-specific parameters. - class GoogleCloudVideointelligenceV1beta1VideoContext - include Google::Apis::Core::Hashable - - # If label detection has been requested, what labels should be detected - # in addition to video-level labels or segment-level labels. If unspecified, - # defaults to `SHOT_MODE`. - # Corresponds to the JSON property `labelDetectionMode` - # @return [String] - attr_accessor :label_detection_mode - - # Model to use for label detection. - # Supported values: "latest" and "stable" (the default). - # Corresponds to the JSON property `labelDetectionModel` - # @return [String] - attr_accessor :label_detection_model - - # Model to use for safe search detection. - # Supported values: "latest" and "stable" (the default). - # Corresponds to the JSON property `safeSearchDetectionModel` - # @return [String] - attr_accessor :safe_search_detection_model - - # Video segments to annotate. The segments may overlap and are not required - # to be contiguous or span the whole video. If unspecified, each video - # is treated as a single segment. - # Corresponds to the JSON property `segments` - # @return [Array] - attr_accessor :segments - - # Model to use for shot change detection. - # Supported values: "latest" and "stable" (the default). - # Corresponds to the JSON property `shotChangeDetectionModel` - # @return [String] - attr_accessor :shot_change_detection_model - - # Whether the video has been shot from a stationary (i.e. non-moving) camera. - # When set to true, might improve detection accuracy for moving objects. - # Corresponds to the JSON property `stationaryCamera` - # @return [Boolean] - attr_accessor :stationary_camera - alias_method :stationary_camera?, :stationary_camera - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @label_detection_mode = args[:label_detection_mode] if args.key?(:label_detection_mode) - @label_detection_model = args[:label_detection_model] if args.key?(:label_detection_model) - @safe_search_detection_model = args[:safe_search_detection_model] if args.key?(:safe_search_detection_model) - @segments = args[:segments] if args.key?(:segments) - @shot_change_detection_model = args[:shot_change_detection_model] if args.key?(:shot_change_detection_model) - @stationary_camera = args[:stationary_camera] if args.key?(:stationary_camera) - end - end - - # Video segment. - class GoogleCloudVideointelligenceV1beta1VideoSegment - include Google::Apis::Core::Hashable - - # End offset in microseconds (inclusive). Unset means 0. - # Corresponds to the JSON property `endTimeOffset` - # @return [Fixnum] - attr_accessor :end_time_offset - - # Start offset in microseconds (inclusive). Unset means 0. - # Corresponds to the JSON property `startTimeOffset` - # @return [Fixnum] - attr_accessor :start_time_offset - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @end_time_offset = args[:end_time_offset] if args.key?(:end_time_offset) - @start_time_offset = args[:start_time_offset] if args.key?(:start_time_offset) - end - end - # Video annotation progress. Included in the `metadata` # field of the `Operation` returned by the `GetOperation` # call of the `google::longrunning::Operations` service. @@ -836,7 +408,7 @@ module Google # Progress metadata for all videos specified in `AnnotateVideoRequest`. # Corresponds to the JSON property `annotationProgress` - # @return [Array] + # @return [Array] attr_accessor :annotation_progress def initialize(**args) @@ -857,7 +429,7 @@ module Google # Annotation results for all videos specified in `AnnotateVideoRequest`. # Corresponds to the JSON property `annotationResults` - # @return [Array] + # @return [Array] attr_accessor :annotation_results def initialize(**args) @@ -911,7 +483,7 @@ module Google # All video frames where explicit content was detected. # Corresponds to the JSON property `frames` - # @return [Array] + # @return [Array] attr_accessor :frames def initialize(**args) @@ -959,22 +531,22 @@ module Google # cases there might be more than one categories e.g. `Terrier` could also be # a `pet`. # Corresponds to the JSON property `categoryEntities` - # @return [Array] + # @return [Array] attr_accessor :category_entities # Detected entity from video analysis. # Corresponds to the JSON property `entity` - # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2Entity] + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2Entity] attr_accessor :entity # All video frames where a label was detected. # Corresponds to the JSON property `frames` - # @return [Array] + # @return [Array] attr_accessor :frames # All video segments where a label was detected. # Corresponds to the JSON property `segments` - # @return [Array] + # @return [Array] attr_accessor :segments def initialize(**args) @@ -1027,7 +599,7 @@ module Google # Video segment. # Corresponds to the JSON property `segment` - # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2VideoSegment] + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2VideoSegment] attr_accessor :segment def initialize(**args) @@ -1045,24 +617,24 @@ module Google class GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress include Google::Apis::Core::Hashable - # Output only. Video file location in + # Video file location in # [Google Cloud Storage](https://cloud.google.com/storage/). # Corresponds to the JSON property `inputUri` # @return [String] attr_accessor :input_uri - # Output only. Approximate percentage processed thus far. Guaranteed to be + # Approximate percentage processed thus far. Guaranteed to be # 100 when fully processed. # Corresponds to the JSON property `progressPercent` # @return [Fixnum] attr_accessor :progress_percent - # Output only. Time when the request was received. + # Time when the request was received. # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time - # Output only. Time of the most recent update. + # Time of the most recent update. # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time @@ -1124,23 +696,23 @@ module Google # - Logging. If some API errors are stored in logs, the message `Status` could # be used directly after any stripping needed for security/privacy reasons. # Corresponds to the JSON property `error` - # @return [Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus] + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleRpcStatus] attr_accessor :error # Explicit content annotation (based on per-frame visual signals only). # If no explicit content has been detected in a frame, no annotations are # present for that frame. # Corresponds to the JSON property `explicitAnnotation` - # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation] + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation] attr_accessor :explicit_annotation # Label annotations on frame level. # There is exactly one element for each unique label. # Corresponds to the JSON property `frameLabelAnnotations` - # @return [Array] + # @return [Array] attr_accessor :frame_label_annotations - # Output only. Video file location in + # Video file location in # [Google Cloud Storage](https://cloud.google.com/storage/). # Corresponds to the JSON property `inputUri` # @return [String] @@ -1149,18 +721,18 @@ module Google # Label annotations on video level or user specified segment level. # There is exactly one element for each unique label. # Corresponds to the JSON property `segmentLabelAnnotations` - # @return [Array] + # @return [Array] attr_accessor :segment_label_annotations # Shot annotations. Each shot is represented as a video segment. # Corresponds to the JSON property `shotAnnotations` - # @return [Array] + # @return [Array] attr_accessor :shot_annotations # Label annotations on shot level. # There is exactly one element for each unique label. # Corresponds to the JSON property `shotLabelAnnotations` - # @return [Array] + # @return [Array] attr_accessor :shot_label_annotations def initialize(**args) @@ -1214,7 +786,7 @@ module Google # Progress metadata for all videos specified in `AnnotateVideoRequest`. # Corresponds to the JSON property `annotationProgress` - # @return [Array] + # @return [Array] attr_accessor :annotation_progress def initialize(**args) @@ -1227,6 +799,74 @@ module Google end end + # Video annotation request. + class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoRequest + include Google::Apis::Core::Hashable + + # Requested video annotation features. + # Corresponds to the JSON property `features` + # @return [Array] + attr_accessor :features + + # The video data bytes. + # If unset, the input video(s) should be specified via `input_uri`. + # If set, `input_uri` should be unset. + # Corresponds to the JSON property `inputContent` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :input_content + + # Input video location. Currently, only + # [Google Cloud Storage](https://cloud.google.com/storage/) URIs are + # supported, which must be specified in the following format: + # `gs://bucket-id/object-id` (other URI formats return + # google.rpc.Code.INVALID_ARGUMENT). For more information, see + # [Request URIs](/storage/docs/reference-uris). + # A video URI may include wildcards in `object-id`, and thus identify + # multiple videos. Supported wildcards: '*' to match 0 or more characters; + # '?' to match 1 character. If unset, the input video should be embedded + # in the request as `input_content`. If set, `input_content` should be unset. + # Corresponds to the JSON property `inputUri` + # @return [String] + attr_accessor :input_uri + + # Optional cloud region where annotation should take place. Supported cloud + # regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region + # is specified, a region will be determined based on video file location. + # Corresponds to the JSON property `locationId` + # @return [String] + attr_accessor :location_id + + # Optional location where the output (in JSON format) should be stored. + # Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) + # URIs are supported, which must be specified in the following format: + # `gs://bucket-id/object-id` (other URI formats return + # google.rpc.Code.INVALID_ARGUMENT). For more information, see + # [Request URIs](/storage/docs/reference-uris). + # Corresponds to the JSON property `outputUri` + # @return [String] + attr_accessor :output_uri + + # Video context and/or feature-specific parameters. + # Corresponds to the JSON property `videoContext` + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoContext] + attr_accessor :video_context + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @features = args[:features] if args.key?(:features) + @input_content = args[:input_content] if args.key?(:input_content) + @input_uri = args[:input_uri] if args.key?(:input_uri) + @location_id = args[:location_id] if args.key?(:location_id) + @output_uri = args[:output_uri] if args.key?(:output_uri) + @video_context = args[:video_context] if args.key?(:video_context) + end + end + # Video annotation response. Included in the `response` # field of the `Operation` returned by the `GetOperation` # call of the `google::longrunning::Operations` service. @@ -1235,7 +875,7 @@ module Google # Annotation results for all videos specified in `AnnotateVideoRequest`. # Corresponds to the JSON property `annotationResults` - # @return [Array] + # @return [Array] attr_accessor :annotation_results def initialize(**args) @@ -1248,31 +888,6 @@ module Google end end - # Emotion attribute. - class GoogleCloudVideointelligenceV1p1beta1EmotionAttribute - include Google::Apis::Core::Hashable - - # Emotion entry. - # Corresponds to the JSON property `emotion` - # @return [String] - attr_accessor :emotion - - # Confidence score. - # Corresponds to the JSON property `score` - # @return [Float] - attr_accessor :score - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @emotion = args[:emotion] if args.key?(:emotion) - @score = args[:score] if args.key?(:score) - end - end - # Detected entity from video analysis. class GoogleCloudVideointelligenceV1p1beta1Entity include Google::Apis::Core::Hashable @@ -1314,7 +929,7 @@ module Google # All video frames where explicit content was detected. # Corresponds to the JSON property `frames` - # @return [Array] + # @return [Array] attr_accessor :frames def initialize(**args) @@ -1327,6 +942,27 @@ module Google end end + # Config for EXPLICIT_CONTENT_DETECTION. + class GoogleCloudVideointelligenceV1p1beta1ExplicitContentDetectionConfig + include Google::Apis::Core::Hashable + + # Model to use for explicit content detection. + # Supported values: "builtin/stable" (the default if unset) and + # "builtin/latest". + # Corresponds to the JSON property `model` + # @return [String] + attr_accessor :model + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @model = args[:model] if args.key?(:model) + end + end + # Video frame level annotation results for explicit content. class GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame include Google::Apis::Core::Hashable @@ -1353,105 +989,6 @@ module Google end end - # Face detection annotation. - class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation - include Google::Apis::Core::Hashable - - # All video frames where a face was detected. - # Corresponds to the JSON property `frames` - # @return [Array] - attr_accessor :frames - - # All video segments where a face was detected. - # Corresponds to the JSON property `segments` - # @return [Array] - attr_accessor :segments - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @frames = args[:frames] if args.key?(:frames) - @segments = args[:segments] if args.key?(:segments) - end - end - - # Face detection attribute. - class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute - include Google::Apis::Core::Hashable - - # Emotion attributes. - # Corresponds to the JSON property `emotions` - # @return [Array] - attr_accessor :emotions - - # Normalized bounding box. - # The normalized vertex coordinates are relative to the original image. - # Range: [0, 1]. - # Corresponds to the JSON property `normalizedBoundingBox` - # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox] - attr_accessor :normalized_bounding_box - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @emotions = args[:emotions] if args.key?(:emotions) - @normalized_bounding_box = args[:normalized_bounding_box] if args.key?(:normalized_bounding_box) - end - end - - # Video frame level annotation results for face detection. - class GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame - include Google::Apis::Core::Hashable - - # Face attributes in a frame. - # There can be more than one attributes if the same face is detected in - # multiple locations within the current frame. - # Corresponds to the JSON property `attributes` - # @return [Array] - attr_accessor :attributes - - # Time-offset, relative to the beginning of the video, - # corresponding to the video frame for this location. - # Corresponds to the JSON property `timeOffset` - # @return [String] - attr_accessor :time_offset - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @attributes = args[:attributes] if args.key?(:attributes) - @time_offset = args[:time_offset] if args.key?(:time_offset) - end - end - - # Video segment level annotation results for face detection. - class GoogleCloudVideointelligenceV1p1beta1FaceSegment - include Google::Apis::Core::Hashable - - # Video segment. - # Corresponds to the JSON property `segment` - # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment] - attr_accessor :segment - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @segment = args[:segment] if args.key?(:segment) - end - end - # Label annotation. class GoogleCloudVideointelligenceV1p1beta1LabelAnnotation include Google::Apis::Core::Hashable @@ -1461,22 +998,22 @@ module Google # cases there might be more than one categories e.g. `Terrier` could also be # a `pet`. # Corresponds to the JSON property `categoryEntities` - # @return [Array] + # @return [Array] attr_accessor :category_entities # Detected entity from video analysis. # Corresponds to the JSON property `entity` - # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1Entity] + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1Entity] attr_accessor :entity # All video frames where a label was detected. # Corresponds to the JSON property `frames` - # @return [Array] + # @return [Array] attr_accessor :frames # All video segments where a label was detected. # Corresponds to the JSON property `segments` - # @return [Array] + # @return [Array] attr_accessor :segments def initialize(**args) @@ -1492,6 +1029,44 @@ module Google end end + # Config for LABEL_DETECTION. + class GoogleCloudVideointelligenceV1p1beta1LabelDetectionConfig + include Google::Apis::Core::Hashable + + # What labels should be detected with LABEL_DETECTION, in addition to + # video-level labels or segment-level labels. + # If unspecified, defaults to `SHOT_MODE`. + # Corresponds to the JSON property `labelDetectionMode` + # @return [String] + attr_accessor :label_detection_mode + + # Model to use for label detection. + # Supported values: "builtin/stable" (the default if unset) and + # "builtin/latest". + # Corresponds to the JSON property `model` + # @return [String] + attr_accessor :model + + # Whether the video has been shot from a stationary (i.e. non-moving) camera. + # When set to true, might improve detection accuracy for moving objects. + # Should be used with `SHOT_AND_FRAME_MODE` enabled. + # Corresponds to the JSON property `stationaryCamera` + # @return [Boolean] + attr_accessor :stationary_camera + alias_method :stationary_camera?, :stationary_camera + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @label_detection_mode = args[:label_detection_mode] if args.key?(:label_detection_mode) + @model = args[:model] if args.key?(:model) + @stationary_camera = args[:stationary_camera] if args.key?(:stationary_camera) + end + end + # Video frame level annotation results for label detection. class GoogleCloudVideointelligenceV1p1beta1LabelFrame include Google::Apis::Core::Hashable @@ -1529,7 +1104,7 @@ module Google # Video segment. # Corresponds to the JSON property `segment` - # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment] + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment] attr_accessor :segment def initialize(**args) @@ -1543,31 +1118,16 @@ module Google end end - # Normalized bounding box. - # The normalized vertex coordinates are relative to the original image. - # Range: [0, 1]. - class GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox + # Config for SHOT_CHANGE_DETECTION. + class GoogleCloudVideointelligenceV1p1beta1ShotChangeDetectionConfig include Google::Apis::Core::Hashable - # Bottom Y coordinate. - # Corresponds to the JSON property `bottom` - # @return [Float] - attr_accessor :bottom - - # Left X coordinate. - # Corresponds to the JSON property `left` - # @return [Float] - attr_accessor :left - - # Right X coordinate. - # Corresponds to the JSON property `right` - # @return [Float] - attr_accessor :right - - # Top Y coordinate. - # Corresponds to the JSON property `top` - # @return [Float] - attr_accessor :top + # Model to use for shot change detection. + # Supported values: "builtin/stable" (the default if unset) and + # "builtin/latest". + # Corresponds to the JSON property `model` + # @return [String] + attr_accessor :model def initialize(**args) update!(**args) @@ -1575,10 +1135,32 @@ module Google # Update properties of this object def update!(**args) - @bottom = args[:bottom] if args.key?(:bottom) - @left = args[:left] if args.key?(:left) - @right = args[:right] if args.key?(:right) - @top = args[:top] if args.key?(:top) + @model = args[:model] if args.key?(:model) + end + end + + # Provides "hints" to the speech recognizer to favor specific words and phrases + # in the results. + class GoogleCloudVideointelligenceV1p1beta1SpeechContext + include Google::Apis::Core::Hashable + + # *Optional* A list of strings containing words and phrases "hints" so that + # the speech recognition is more likely to recognize them. This can be used + # to improve the accuracy for specific words and phrases, for example, if + # specific commands are typically spoken by the user. This can also be used + # to add additional words to the vocabulary of the recognizer. See + # [usage limits](https://cloud.google.com/speech/limits#content). + # Corresponds to the JSON property `phrases` + # @return [Array] + attr_accessor :phrases + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @phrases = args[:phrases] if args.key?(:phrases) end end @@ -1586,7 +1168,7 @@ module Google class GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative include Google::Apis::Core::Hashable - # Output only. The confidence estimate between 0.0 and 1.0. A higher number + # The confidence estimate between 0.0 and 1.0. A higher number # indicates an estimated greater likelihood that the recognized words are # correct. This field is typically provided only for the top hypothesis, and # only for `is_final=true` results. Clients should not rely on the @@ -1596,14 +1178,14 @@ module Google # @return [Float] attr_accessor :confidence - # Output only. Transcript text representing the words that the user spoke. + # Transcript text representing the words that the user spoke. # Corresponds to the JSON property `transcript` # @return [String] attr_accessor :transcript - # Output only. A list of word-specific information for each recognized word. + # A list of word-specific information for each recognized word. # Corresponds to the JSON property `words` - # @return [Array] + # @return [Array] attr_accessor :words def initialize(**args) @@ -1622,12 +1204,12 @@ module Google class GoogleCloudVideointelligenceV1p1beta1SpeechTranscription include Google::Apis::Core::Hashable - # Output only. May contain one or more recognition hypotheses (up to the - # maximum specified in `max_alternatives`). - # These alternatives are ordered in terms of accuracy, with the top (first) - # alternative being the most probable, as ranked by the recognizer. + # May contain one or more recognition hypotheses (up to the maximum specified + # in `max_alternatives`). These alternatives are ordered in terms of + # accuracy, with the top (first) alternative being the most probable, as + # ranked by the recognizer. # Corresponds to the JSON property `alternatives` - # @return [Array] + # @return [Array] attr_accessor :alternatives def initialize(**args) @@ -1640,28 +1222,96 @@ module Google end end + # Config for SPEECH_TRANSCRIPTION. + class GoogleCloudVideointelligenceV1p1beta1SpeechTranscriptionConfig + include Google::Apis::Core::Hashable + + # *Optional* For file formats, such as MXF or MKV, supporting multiple audio + # tracks, specify up to two tracks. Default: track 0. + # Corresponds to the JSON property `audioTracks` + # @return [Array] + attr_accessor :audio_tracks + + # *Optional* If 'true', adds punctuation to recognition result hypotheses. + # This feature is only available in select languages. Setting this for + # requests in other languages has no effect at all. The default 'false' value + # does not add punctuation to result hypotheses. NOTE: "This is currently + # offered as an experimental service, complimentary to all users. In the + # future this may be exclusively available as a premium feature." + # Corresponds to the JSON property `enableAutomaticPunctuation` + # @return [Boolean] + attr_accessor :enable_automatic_punctuation + alias_method :enable_automatic_punctuation?, :enable_automatic_punctuation + + # *Optional* If set to `true`, the server will attempt to filter out + # profanities, replacing all but the initial character in each filtered word + # with asterisks, e.g. "f***". If set to `false` or omitted, profanities + # won't be filtered out. + # Corresponds to the JSON property `filterProfanity` + # @return [Boolean] + attr_accessor :filter_profanity + alias_method :filter_profanity?, :filter_profanity + + # *Required* The language of the supplied audio as a + # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. + # Example: "en-US". + # See [Language Support](https://cloud.google.com/speech/docs/languages) + # for a list of the currently supported language codes. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # *Optional* Maximum number of recognition hypotheses to be returned. + # Specifically, the maximum number of `SpeechRecognitionAlternative` messages + # within each `SpeechRecognitionResult`. The server may return fewer than + # `max_alternatives`. Valid values are `0`-`30`. A value of `0` or `1` will + # return a maximum of one. If omitted, will return a maximum of one. + # Corresponds to the JSON property `maxAlternatives` + # @return [Fixnum] + attr_accessor :max_alternatives + + # *Optional* A means to provide context to assist the speech recognition. + # Corresponds to the JSON property `speechContexts` + # @return [Array] + attr_accessor :speech_contexts + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audio_tracks = args[:audio_tracks] if args.key?(:audio_tracks) + @enable_automatic_punctuation = args[:enable_automatic_punctuation] if args.key?(:enable_automatic_punctuation) + @filter_profanity = args[:filter_profanity] if args.key?(:filter_profanity) + @language_code = args[:language_code] if args.key?(:language_code) + @max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives) + @speech_contexts = args[:speech_contexts] if args.key?(:speech_contexts) + end + end + # Annotation progress for a single video. class GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress include Google::Apis::Core::Hashable - # Output only. Video file location in + # Video file location in # [Google Cloud Storage](https://cloud.google.com/storage/). # Corresponds to the JSON property `inputUri` # @return [String] attr_accessor :input_uri - # Output only. Approximate percentage processed thus far. Guaranteed to be + # Approximate percentage processed thus far. Guaranteed to be # 100 when fully processed. # Corresponds to the JSON property `progressPercent` # @return [Fixnum] attr_accessor :progress_percent - # Output only. Time when the request was received. + # Time when the request was received. # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time - # Output only. Time of the most recent update. + # Time of the most recent update. # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time @@ -1723,28 +1373,23 @@ module Google # - Logging. If some API errors are stored in logs, the message `Status` could # be used directly after any stripping needed for security/privacy reasons. # Corresponds to the JSON property `error` - # @return [Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus] + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleRpcStatus] attr_accessor :error # Explicit content annotation (based on per-frame visual signals only). # If no explicit content has been detected in a frame, no annotations are # present for that frame. # Corresponds to the JSON property `explicitAnnotation` - # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation] + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation] attr_accessor :explicit_annotation - # Face detection annotations. - # Corresponds to the JSON property `faceDetectionAnnotations` - # @return [Array] - attr_accessor :face_detection_annotations - # Label annotations on frame level. # There is exactly one element for each unique label. # Corresponds to the JSON property `frameLabelAnnotations` - # @return [Array] + # @return [Array] attr_accessor :frame_label_annotations - # Output only. Video file location in + # Video file location in # [Google Cloud Storage](https://cloud.google.com/storage/). # Corresponds to the JSON property `inputUri` # @return [String] @@ -1753,23 +1398,23 @@ module Google # Label annotations on video level or user specified segment level. # There is exactly one element for each unique label. # Corresponds to the JSON property `segmentLabelAnnotations` - # @return [Array] + # @return [Array] attr_accessor :segment_label_annotations # Shot annotations. Each shot is represented as a video segment. # Corresponds to the JSON property `shotAnnotations` - # @return [Array] + # @return [Array] attr_accessor :shot_annotations # Label annotations on shot level. # There is exactly one element for each unique label. # Corresponds to the JSON property `shotLabelAnnotations` - # @return [Array] + # @return [Array] attr_accessor :shot_label_annotations # Speech transcription. # Corresponds to the JSON property `speechTranscriptions` - # @return [Array] + # @return [Array] attr_accessor :speech_transcriptions def initialize(**args) @@ -1780,7 +1425,6 @@ module Google def update!(**args) @error = args[:error] if args.key?(:error) @explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation) - @face_detection_annotations = args[:face_detection_annotations] if args.key?(:face_detection_annotations) @frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations) @input_uri = args[:input_uri] if args.key?(:input_uri) @segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations) @@ -1790,6 +1434,51 @@ module Google end end + # Video context and/or feature-specific parameters. + class GoogleCloudVideointelligenceV1p1beta1VideoContext + include Google::Apis::Core::Hashable + + # Config for EXPLICIT_CONTENT_DETECTION. + # Corresponds to the JSON property `explicitContentDetectionConfig` + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentDetectionConfig] + attr_accessor :explicit_content_detection_config + + # Config for LABEL_DETECTION. + # Corresponds to the JSON property `labelDetectionConfig` + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1LabelDetectionConfig] + attr_accessor :label_detection_config + + # Video segments to annotate. The segments may overlap and are not required + # to be contiguous or span the whole video. If unspecified, each video is + # treated as a single segment. + # Corresponds to the JSON property `segments` + # @return [Array] + attr_accessor :segments + + # Config for SHOT_CHANGE_DETECTION. + # Corresponds to the JSON property `shotChangeDetectionConfig` + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1ShotChangeDetectionConfig] + attr_accessor :shot_change_detection_config + + # Config for SPEECH_TRANSCRIPTION. + # Corresponds to the JSON property `speechTranscriptionConfig` + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechTranscriptionConfig] + attr_accessor :speech_transcription_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @explicit_content_detection_config = args[:explicit_content_detection_config] if args.key?(:explicit_content_detection_config) + @label_detection_config = args[:label_detection_config] if args.key?(:label_detection_config) + @segments = args[:segments] if args.key?(:segments) + @shot_change_detection_config = args[:shot_change_detection_config] if args.key?(:shot_change_detection_config) + @speech_transcription_config = args[:speech_transcription_config] if args.key?(:speech_transcription_config) + end + end + # Video segment. class GoogleCloudVideointelligenceV1p1beta1VideoSegment include Google::Apis::Core::Hashable @@ -1823,7 +1512,7 @@ module Google class GoogleCloudVideointelligenceV1p1beta1WordInfo include Google::Apis::Core::Hashable - # Output only. Time offset relative to the beginning of the audio, and + # Time offset relative to the beginning of the audio, and # corresponding to the end of the spoken word. This field is only set if # `enable_word_time_offsets=true` and only in the top hypothesis. This is an # experimental feature and the accuracy of the time offset can vary. @@ -1831,7 +1520,7 @@ module Google # @return [String] attr_accessor :end_time - # Output only. Time offset relative to the beginning of the audio, and + # Time offset relative to the beginning of the audio, and # corresponding to the start of the spoken word. This field is only set if # `enable_word_time_offsets=true` and only in the top hypothesis. This is an # experimental feature and the accuracy of the time offset can vary. @@ -1839,7 +1528,7 @@ module Google # @return [String] attr_accessor :start_time - # Output only. The word corresponding to this set of information. + # The word corresponding to this set of information. # Corresponds to the JSON property `word` # @return [String] attr_accessor :word @@ -1909,7 +1598,7 @@ module Google # - Logging. If some API errors are stored in logs, the message `Status` could # be used directly after any stripping needed for security/privacy reasons. # Corresponds to the JSON property `error` - # @return [Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus] + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleRpcStatus] attr_accessor :error # Service-specific metadata associated with the operation. It typically diff --git a/generated/google/apis/videointelligence_v1beta1/representations.rb b/generated/google/apis/videointelligence_v1p1beta1/representations.rb similarity index 56% rename from generated/google/apis/videointelligence_v1beta1/representations.rb rename to generated/google/apis/videointelligence_v1p1beta1/representations.rb index 3b07ae9be..98b5ddf20 100644 --- a/generated/google/apis/videointelligence_v1beta1/representations.rb +++ b/generated/google/apis/videointelligence_v1p1beta1/representations.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis - module VideointelligenceV1beta1 + module VideointelligenceV1p1beta1 class GoogleCloudVideointelligenceV1AnnotateVideoProgress class Representation < Google::Apis::Core::JsonRepresentation; end @@ -88,66 +88,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVideointelligenceV1beta1LabelAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVideointelligenceV1beta1LabelLocation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVideointelligenceV1beta1VideoAnnotationResults - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVideointelligenceV1beta1VideoContext - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVideointelligenceV1beta1VideoSegment - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress class Representation < Google::Apis::Core::JsonRepresentation; end @@ -220,13 +160,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse + class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudVideointelligenceV1p1beta1EmotionAttribute + class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -244,42 +184,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p1beta1ExplicitContentDetectionConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVideointelligenceV1p1beta1FaceSegment - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleCloudVideointelligenceV1p1beta1LabelAnnotation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p1beta1LabelDetectionConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p1beta1LabelFrame class Representation < Google::Apis::Core::JsonRepresentation; end @@ -292,7 +220,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox + class GoogleCloudVideointelligenceV1p1beta1ShotChangeDetectionConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVideointelligenceV1p1beta1SpeechContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -310,6 +244,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p1beta1SpeechTranscriptionConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress class Representation < Google::Apis::Core::JsonRepresentation; end @@ -322,6 +262,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p1beta1VideoContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p1beta1VideoSegment class Representation < Google::Apis::Core::JsonRepresentation; end @@ -349,7 +295,7 @@ module Google class GoogleCloudVideointelligenceV1AnnotateVideoProgress # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :annotation_progress, as: 'annotationProgress', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1VideoAnnotationProgress, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1VideoAnnotationProgress::Representation + collection :annotation_progress, as: 'annotationProgress', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1VideoAnnotationProgress, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1VideoAnnotationProgress::Representation end end @@ -357,7 +303,7 @@ module Google class GoogleCloudVideointelligenceV1AnnotateVideoResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :annotation_results, as: 'annotationResults', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1VideoAnnotationResults, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1VideoAnnotationResults::Representation + collection :annotation_results, as: 'annotationResults', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1VideoAnnotationResults, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1VideoAnnotationResults::Representation end end @@ -374,7 +320,7 @@ module Google class GoogleCloudVideointelligenceV1ExplicitContentAnnotation # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1ExplicitContentFrame, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1ExplicitContentFrame::Representation + collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1ExplicitContentFrame, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1ExplicitContentFrame::Representation end end @@ -390,13 +336,13 @@ module Google class GoogleCloudVideointelligenceV1LabelAnnotation # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :category_entities, as: 'categoryEntities', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1Entity, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1Entity::Representation + collection :category_entities, as: 'categoryEntities', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1Entity, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1Entity::Representation - property :entity, as: 'entity', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1Entity, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1Entity::Representation + property :entity, as: 'entity', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1Entity, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1Entity::Representation - collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelFrame, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelFrame::Representation + collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1LabelFrame, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1LabelFrame::Representation - collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelSegment, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelSegment::Representation + collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1LabelSegment, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1LabelSegment::Representation end end @@ -413,7 +359,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :confidence, as: 'confidence' - property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1VideoSegment::Representation + property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1VideoSegment, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1VideoSegment::Representation end end @@ -431,18 +377,18 @@ module Google class GoogleCloudVideointelligenceV1VideoAnnotationResults # @private class Representation < Google::Apis::Core::JsonRepresentation - property :error, as: 'error', class: Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus, decorator: Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus::Representation + property :error, as: 'error', class: Google::Apis::VideointelligenceV1p1beta1::GoogleRpcStatus, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleRpcStatus::Representation - property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1ExplicitContentAnnotation::Representation + property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1ExplicitContentAnnotation::Representation - collection :frame_label_annotations, as: 'frameLabelAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelAnnotation::Representation + collection :frame_label_annotations, as: 'frameLabelAnnotations', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1LabelAnnotation::Representation property :input_uri, as: 'inputUri' - collection :segment_label_annotations, as: 'segmentLabelAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelAnnotation::Representation + collection :segment_label_annotations, as: 'segmentLabelAnnotations', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1LabelAnnotation::Representation - collection :shot_annotations, as: 'shotAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1VideoSegment::Representation + collection :shot_annotations, as: 'shotAnnotations', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1VideoSegment, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1VideoSegment::Representation - collection :shot_label_annotations, as: 'shotLabelAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelAnnotation::Representation + collection :shot_label_annotations, as: 'shotLabelAnnotations', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1LabelAnnotation::Representation end end @@ -455,117 +401,10 @@ module Google end end - class GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :annotation_progress, as: 'annotationProgress', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress::Representation - - end - end - - class GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :features, as: 'features' - property :input_content, as: 'inputContent' - property :input_uri, as: 'inputUri' - property :location_id, as: 'locationId' - property :output_uri, as: 'outputUri' - property :video_context, as: 'videoContext', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoContext, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoContext::Representation - - end - end - - class GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :annotation_results, as: 'annotationResults', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoAnnotationResults, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoAnnotationResults::Representation - - end - end - - class GoogleCloudVideointelligenceV1beta1LabelAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :language_code, as: 'languageCode' - collection :locations, as: 'locations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1LabelLocation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1LabelLocation::Representation - - end - end - - class GoogleCloudVideointelligenceV1beta1LabelLocation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :confidence, as: 'confidence' - property :level, as: 'level' - property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoSegment::Representation - - end - end - - class GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :adult, as: 'adult' - property :medical, as: 'medical' - property :racy, as: 'racy' - property :spoof, as: 'spoof' - property :time_offset, :numeric_string => true, as: 'timeOffset' - property :violent, as: 'violent' - end - end - - class GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :input_uri, as: 'inputUri' - property :progress_percent, as: 'progressPercent' - property :start_time, as: 'startTime' - property :update_time, as: 'updateTime' - end - end - - class GoogleCloudVideointelligenceV1beta1VideoAnnotationResults - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :error, as: 'error', class: Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus, decorator: Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus::Representation - - property :input_uri, as: 'inputUri' - collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1LabelAnnotation::Representation - - collection :safe_search_annotations, as: 'safeSearchAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation::Representation - - collection :shot_annotations, as: 'shotAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoSegment::Representation - - end - end - - class GoogleCloudVideointelligenceV1beta1VideoContext - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :label_detection_mode, as: 'labelDetectionMode' - property :label_detection_model, as: 'labelDetectionModel' - property :safe_search_detection_model, as: 'safeSearchDetectionModel' - collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoSegment::Representation - - property :shot_change_detection_model, as: 'shotChangeDetectionModel' - property :stationary_camera, as: 'stationaryCamera' - end - end - - class GoogleCloudVideointelligenceV1beta1VideoSegment - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :end_time_offset, :numeric_string => true, as: 'endTimeOffset' - property :start_time_offset, :numeric_string => true, as: 'startTimeOffset' - end - end - class GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :annotation_progress, as: 'annotationProgress', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress::Representation + collection :annotation_progress, as: 'annotationProgress', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress::Representation end end @@ -573,7 +412,7 @@ module Google class GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :annotation_results, as: 'annotationResults', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2VideoAnnotationResults, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2VideoAnnotationResults::Representation + collection :annotation_results, as: 'annotationResults', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2VideoAnnotationResults, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2VideoAnnotationResults::Representation end end @@ -590,7 +429,7 @@ module Google class GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2ExplicitContentFrame, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2ExplicitContentFrame::Representation + collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2ExplicitContentFrame, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2ExplicitContentFrame::Representation end end @@ -606,13 +445,13 @@ module Google class GoogleCloudVideointelligenceV1beta2LabelAnnotation # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :category_entities, as: 'categoryEntities', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2Entity, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2Entity::Representation + collection :category_entities, as: 'categoryEntities', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2Entity, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2Entity::Representation - property :entity, as: 'entity', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2Entity, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2Entity::Representation + property :entity, as: 'entity', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2Entity, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2Entity::Representation - collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2LabelFrame, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2LabelFrame::Representation + collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2LabelFrame, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2LabelFrame::Representation - collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2LabelSegment, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2LabelSegment::Representation + collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2LabelSegment, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2LabelSegment::Representation end end @@ -629,7 +468,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :confidence, as: 'confidence' - property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2VideoSegment, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2VideoSegment::Representation + property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2VideoSegment, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2VideoSegment::Representation end end @@ -647,18 +486,18 @@ module Google class GoogleCloudVideointelligenceV1beta2VideoAnnotationResults # @private class Representation < Google::Apis::Core::JsonRepresentation - property :error, as: 'error', class: Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus, decorator: Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus::Representation + property :error, as: 'error', class: Google::Apis::VideointelligenceV1p1beta1::GoogleRpcStatus, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleRpcStatus::Representation - property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation::Representation + property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation::Representation - collection :frame_label_annotations, as: 'frameLabelAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2LabelAnnotation::Representation + collection :frame_label_annotations, as: 'frameLabelAnnotations', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2LabelAnnotation, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2LabelAnnotation::Representation property :input_uri, as: 'inputUri' - collection :segment_label_annotations, as: 'segmentLabelAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2LabelAnnotation::Representation + collection :segment_label_annotations, as: 'segmentLabelAnnotations', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2LabelAnnotation, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2LabelAnnotation::Representation - collection :shot_annotations, as: 'shotAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2VideoSegment, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2VideoSegment::Representation + collection :shot_annotations, as: 'shotAnnotations', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2VideoSegment, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2VideoSegment::Representation - collection :shot_label_annotations, as: 'shotLabelAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2LabelAnnotation::Representation + collection :shot_label_annotations, as: 'shotLabelAnnotations', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2LabelAnnotation, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2LabelAnnotation::Representation end end @@ -674,7 +513,20 @@ module Google class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :annotation_progress, as: 'annotationProgress', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress::Representation + collection :annotation_progress, as: 'annotationProgress', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress::Representation + + end + end + + class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :features, as: 'features' + property :input_content, :base64 => true, as: 'inputContent' + property :input_uri, as: 'inputUri' + property :location_id, as: 'locationId' + property :output_uri, as: 'outputUri' + property :video_context, as: 'videoContext', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoContext, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoContext::Representation end end @@ -682,19 +534,11 @@ module Google class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :annotation_results, as: 'annotationResults', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults::Representation + collection :annotation_results, as: 'annotationResults', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults::Representation end end - class GoogleCloudVideointelligenceV1p1beta1EmotionAttribute - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :emotion, as: 'emotion' - property :score, as: 'score' - end - end - class GoogleCloudVideointelligenceV1p1beta1Entity # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -707,11 +551,18 @@ module Google class GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame::Representation + collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame::Representation end end + class GoogleCloudVideointelligenceV1p1beta1ExplicitContentDetectionConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :model, as: 'model' + end + end + class GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -720,57 +571,29 @@ module Google end end - class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame::Representation - - collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceSegment, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceSegment::Representation - - end - end - - class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :emotions, as: 'emotions', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1EmotionAttribute, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1EmotionAttribute::Representation - - property :normalized_bounding_box, as: 'normalizedBoundingBox', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox::Representation - - end - end - - class GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :attributes, as: 'attributes', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute::Representation - - property :time_offset, as: 'timeOffset' - end - end - - class GoogleCloudVideointelligenceV1p1beta1FaceSegment - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment::Representation - - end - end - class GoogleCloudVideointelligenceV1p1beta1LabelAnnotation # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :category_entities, as: 'categoryEntities', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1Entity, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1Entity::Representation + collection :category_entities, as: 'categoryEntities', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1Entity, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1Entity::Representation - property :entity, as: 'entity', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1Entity, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1Entity::Representation + property :entity, as: 'entity', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1Entity, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1Entity::Representation - collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelFrame, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelFrame::Representation + collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1LabelFrame, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1LabelFrame::Representation - collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelSegment, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelSegment::Representation + collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1LabelSegment, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1LabelSegment::Representation end end + class GoogleCloudVideointelligenceV1p1beta1LabelDetectionConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :label_detection_mode, as: 'labelDetectionMode' + property :model, as: 'model' + property :stationary_camera, as: 'stationaryCamera' + end + end + class GoogleCloudVideointelligenceV1p1beta1LabelFrame # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -783,18 +606,22 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :confidence, as: 'confidence' - property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment::Representation + property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment::Representation end end - class GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox + class GoogleCloudVideointelligenceV1p1beta1ShotChangeDetectionConfig # @private class Representation < Google::Apis::Core::JsonRepresentation - property :bottom, as: 'bottom' - property :left, as: 'left' - property :right, as: 'right' - property :top, as: 'top' + property :model, as: 'model' + end + end + + class GoogleCloudVideointelligenceV1p1beta1SpeechContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :phrases, as: 'phrases' end end @@ -803,7 +630,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :confidence, as: 'confidence' property :transcript, as: 'transcript' - collection :words, as: 'words', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1WordInfo, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1WordInfo::Representation + collection :words, as: 'words', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1WordInfo, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1WordInfo::Representation end end @@ -811,7 +638,20 @@ module Google class GoogleCloudVideointelligenceV1p1beta1SpeechTranscription # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :alternatives, as: 'alternatives', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative::Representation + collection :alternatives, as: 'alternatives', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative::Representation + + end + end + + class GoogleCloudVideointelligenceV1p1beta1SpeechTranscriptionConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :audio_tracks, as: 'audioTracks' + property :enable_automatic_punctuation, as: 'enableAutomaticPunctuation' + property :filter_profanity, as: 'filterProfanity' + property :language_code, as: 'languageCode' + property :max_alternatives, as: 'maxAlternatives' + collection :speech_contexts, as: 'speechContexts', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechContext, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechContext::Representation end end @@ -829,22 +669,36 @@ module Google class GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults # @private class Representation < Google::Apis::Core::JsonRepresentation - property :error, as: 'error', class: Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus, decorator: Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus::Representation + property :error, as: 'error', class: Google::Apis::VideointelligenceV1p1beta1::GoogleRpcStatus, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleRpcStatus::Representation - property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation::Representation + property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation::Representation - collection :face_detection_annotations, as: 'faceDetectionAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation::Representation - - collection :frame_label_annotations, as: 'frameLabelAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation::Representation + collection :frame_label_annotations, as: 'frameLabelAnnotations', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation::Representation property :input_uri, as: 'inputUri' - collection :segment_label_annotations, as: 'segmentLabelAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation::Representation + collection :segment_label_annotations, as: 'segmentLabelAnnotations', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation::Representation - collection :shot_annotations, as: 'shotAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment::Representation + collection :shot_annotations, as: 'shotAnnotations', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment::Representation - collection :shot_label_annotations, as: 'shotLabelAnnotations', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation::Representation + collection :shot_label_annotations, as: 'shotLabelAnnotations', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation::Representation - collection :speech_transcriptions, as: 'speechTranscriptions', class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechTranscription, decorator: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechTranscription::Representation + collection :speech_transcriptions, as: 'speechTranscriptions', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechTranscription, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechTranscription::Representation + + end + end + + class GoogleCloudVideointelligenceV1p1beta1VideoContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :explicit_content_detection_config, as: 'explicitContentDetectionConfig', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentDetectionConfig, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentDetectionConfig::Representation + + property :label_detection_config, as: 'labelDetectionConfig', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1LabelDetectionConfig, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1LabelDetectionConfig::Representation + + collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment::Representation + + property :shot_change_detection_config, as: 'shotChangeDetectionConfig', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1ShotChangeDetectionConfig, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1ShotChangeDetectionConfig::Representation + + property :speech_transcription_config, as: 'speechTranscriptionConfig', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechTranscriptionConfig, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechTranscriptionConfig::Representation end end @@ -870,7 +724,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :done, as: 'done' - property :error, as: 'error', class: Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus, decorator: Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus::Representation + property :error, as: 'error', class: Google::Apis::VideointelligenceV1p1beta1::GoogleRpcStatus, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleRpcStatus::Representation hash :metadata, as: 'metadata' property :name, as: 'name' diff --git a/generated/google/apis/videointelligence_v1beta1/service.rb b/generated/google/apis/videointelligence_v1p1beta1/service.rb similarity index 78% rename from generated/google/apis/videointelligence_v1beta1/service.rb rename to generated/google/apis/videointelligence_v1p1beta1/service.rb index 1781c4dca..310a70b8b 100644 --- a/generated/google/apis/videointelligence_v1beta1/service.rb +++ b/generated/google/apis/videointelligence_v1p1beta1/service.rb @@ -19,15 +19,15 @@ require 'google/apis/errors' module Google module Apis - module VideointelligenceV1beta1 + module VideointelligenceV1p1beta1 # Cloud Video Intelligence API # # Cloud Video Intelligence API. # # @example - # require 'google/apis/videointelligence_v1beta1' + # require 'google/apis/videointelligence_v1p1beta1' # - # Videointelligence = Google::Apis::VideointelligenceV1beta1 # Alias the module + # Videointelligence = Google::Apis::VideointelligenceV1p1beta1 # Alias the module # service = Videointelligence::CloudVideoIntelligenceService.new # # @see https://cloud.google.com/video-intelligence/docs/ @@ -51,7 +51,7 @@ module Google # retrieved through the `google.longrunning.Operations` interface. # `Operation.metadata` contains `AnnotateVideoProgress` (progress). # `Operation.response` contains `AnnotateVideoResponse` (results). - # @param [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest] google_cloud_videointelligence_v1beta1_annotate_video_request_object + # @param [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1AnnotateVideoRequest] google_cloud_videointelligence_v1p1beta1_annotate_video_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -61,20 +61,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::VideointelligenceV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::VideointelligenceV1p1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::VideointelligenceV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleLongrunningOperation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def annotate_video(google_cloud_videointelligence_v1beta1_annotate_video_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/videos:annotate', options) - command.request_representation = Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest::Representation - command.request_object = google_cloud_videointelligence_v1beta1_annotate_video_request_object - command.response_representation = Google::Apis::VideointelligenceV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::VideointelligenceV1beta1::GoogleLongrunningOperation + def annotate_video(google_cloud_videointelligence_v1p1beta1_annotate_video_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1p1beta1/videos:annotate', options) + command.request_representation = Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1AnnotateVideoRequest::Representation + command.request_object = google_cloud_videointelligence_v1p1beta1_annotate_video_request_object + command.response_representation = Google::Apis::VideointelligenceV1p1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::VideointelligenceV1p1beta1::GoogleLongrunningOperation command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block)