diff --git a/api_names_out.yaml b/api_names_out.yaml index 213cd02af..185f7f6b3 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -89691,6 +89691,7 @@ "/videointelligence:v1beta2/GoogleCloudVideointelligenceV1p1beta1_SpeechTranscription": google_cloud_videointelligence_v1p1beta1_speech_transcription "/videointelligence:v1beta2/GoogleCloudVideointelligenceV1p1beta1_SpeechTranscription/alternatives": alternatives "/videointelligence:v1beta2/GoogleCloudVideointelligenceV1p1beta1_SpeechTranscription/alternatives/alternative": alternative +"/videointelligence:v1beta2/GoogleCloudVideointelligenceV1p1beta1_SpeechTranscription/languageCode": language_code "/videointelligence:v1beta2/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress": google_cloud_videointelligence_v1p1beta1_video_annotation_progress "/videointelligence:v1beta2/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress/inputUri": input_uri "/videointelligence:v1beta2/GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress/progressPercent": progress_percent @@ -89787,6 +89788,9 @@ "/videointelligence:v1beta2/GoogleCloudVideointelligenceV1p2beta1_TextFrame/rotatedBoundingBox": rotated_bounding_box "/videointelligence:v1beta2/GoogleCloudVideointelligenceV1p2beta1_TextFrame/timeOffset": time_offset "/videointelligence:v1beta2/GoogleCloudVideointelligenceV1p2beta1_TextSegment": google_cloud_videointelligence_v1p2beta1_text_segment +"/videointelligence:v1beta2/GoogleCloudVideointelligenceV1p2beta1_TextSegment/confidence": confidence +"/videointelligence:v1beta2/GoogleCloudVideointelligenceV1p2beta1_TextSegment/frames": frames +"/videointelligence:v1beta2/GoogleCloudVideointelligenceV1p2beta1_TextSegment/frames/frame": frame "/videointelligence:v1beta2/GoogleCloudVideointelligenceV1p2beta1_TextSegment/segment": segment "/videointelligence:v1beta2/GoogleCloudVideointelligenceV1p2beta1_VideoAnnotationProgress": google_cloud_videointelligence_v1p2beta1_video_annotation_progress "/videointelligence:v1beta2/GoogleCloudVideointelligenceV1p2beta1_VideoAnnotationProgress/inputUri": input_uri diff --git a/generated/google/apis/videointelligence_v1beta2.rb b/generated/google/apis/videointelligence_v1beta2.rb index 4795ae127..da785d87a 100644 --- a/generated/google/apis/videointelligence_v1beta2.rb +++ b/generated/google/apis/videointelligence_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/video-intelligence/docs/ module VideointelligenceV1beta2 VERSION = 'V1beta2' - REVISION = '20180920' + REVISION = '20181003' # 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_v1beta2/classes.rb b/generated/google/apis/videointelligence_v1beta2/classes.rb index 0d9d03203..99e474812 100644 --- a/generated/google/apis/videointelligence_v1beta2/classes.rb +++ b/generated/google/apis/videointelligence_v1beta2/classes.rb @@ -1226,6 +1226,14 @@ module Google # @return [Array] attr_accessor :alternatives + # Output only. The + # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the + # language in this result. This language code was detected to have the most + # likelihood of being spoken in the audio. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + def initialize(**args) update!(**args) end @@ -1233,6 +1241,7 @@ module Google # Update properties of this object def update!(**args) @alternatives = args[:alternatives] if args.key?(:alternatives) + @language_code = args[:language_code] if args.key?(:language_code) end end @@ -1849,17 +1858,6 @@ module Google class GoogleCloudVideointelligenceV1p2beta1TextAnnotation include Google::Apis::Core::Hashable - # Confidence for the track of detected text. It is calculated as the highest - # over all frames where OCR detected text appears. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - # Information related to the frames where OCR detected text appears. - # Corresponds to the JSON property `frames` - # @return [Array] - attr_accessor :frames - # All video segments where OCR detected text appears. # Corresponds to the JSON property `segments` # @return [Array] @@ -1876,8 +1874,6 @@ module Google # Update properties of this object def update!(**args) - @confidence = args[:confidence] if args.key?(:confidence) - @frames = args[:frames] if args.key?(:frames) @segments = args[:segments] if args.key?(:segments) @text = args[:text] if args.key?(:text) end @@ -1928,6 +1924,17 @@ module Google class GoogleCloudVideointelligenceV1p2beta1TextSegment include Google::Apis::Core::Hashable + # Confidence for the track of detected text. It is calculated as the highest + # over all frames where OCR detected text appears. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Information related to the frames where OCR detected text appears. + # Corresponds to the JSON property `frames` + # @return [Array] + attr_accessor :frames + # Video segment. # Corresponds to the JSON property `segment` # @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1VideoSegment] @@ -1939,6 +1946,8 @@ module Google # Update properties of this object def update!(**args) + @confidence = args[:confidence] if args.key?(:confidence) + @frames = args[:frames] if args.key?(:frames) @segment = args[:segment] if args.key?(:segment) end end diff --git a/generated/google/apis/videointelligence_v1beta2/representations.rb b/generated/google/apis/videointelligence_v1beta2/representations.rb index ba82576c4..12af92c84 100644 --- a/generated/google/apis/videointelligence_v1beta2/representations.rb +++ b/generated/google/apis/videointelligence_v1beta2/representations.rb @@ -749,6 +749,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :alternatives, as: 'alternatives', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative::Representation + property :language_code, as: 'languageCode' end end @@ -925,9 +926,6 @@ module Google class GoogleCloudVideointelligenceV1p2beta1TextAnnotation # @private class Representation < Google::Apis::Core::JsonRepresentation - property :confidence, as: 'confidence' - collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1TextFrame, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1TextFrame::Representation - collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1TextSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1TextSegment::Representation property :text, as: 'text' @@ -946,6 +944,9 @@ module Google class GoogleCloudVideointelligenceV1p2beta1TextSegment # @private class Representation < Google::Apis::Core::JsonRepresentation + property :confidence, as: 'confidence' + collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1TextFrame, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1TextFrame::Representation + property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1VideoSegment::Representation end