Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
fix: allow calls with no request, add JSON proto
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and alexander-fenster committed Aug 2, 2019
1 parent e99822f commit 8fb7221
Show file tree
Hide file tree
Showing 11 changed files with 2,154 additions and 20 deletions.
34 changes: 26 additions & 8 deletions protos/google/cloud/videointelligence/v1/video_intelligence.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018 Google LLC.
// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -18,6 +18,7 @@ syntax = "proto3";
package google.cloud.videointelligence.v1;

import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
Expand All @@ -33,6 +34,10 @@ option ruby_package = "Google::Cloud::VideoIntelligence::V1";

// Service that implements Google Cloud Video Intelligence API.
service VideoIntelligenceService {
option (google.api.default_host) = "videointelligence.googleapis.com";
option (google.api.oauth_scopes) =
"https://www.googleapis.com/auth/cloud-platform";

// Performs asynchronous video annotation. Progress and results can be
// retrieved through the `google.longrunning.Operations` interface.
// `Operation.metadata` contains `AnnotateVideoProgress` (progress).
Expand Down Expand Up @@ -331,11 +336,14 @@ message VideoAnnotationResults {
// [Google Cloud Storage](https://cloud.google.com/storage/).
string input_uri = 1;

// Label annotations on video level or user specified segment level.
// Video segment on which the annotation is run.
VideoSegment segment = 10;

// Topical label annotations on video level or user specified segment level.
// There is exactly one element for each unique label.
repeated LabelAnnotation segment_label_annotations = 2;

// Label annotations on shot level.
// Topical label annotations on shot level.
// There is exactly one element for each unique label.
repeated LabelAnnotation shot_label_annotations = 3;

Expand Down Expand Up @@ -391,6 +399,14 @@ message VideoAnnotationProgress {

// Time of the most recent update.
google.protobuf.Timestamp update_time = 4;

// Specifies which feature is being tracked if the request contains more than
// one features.
Feature feature = 5;

// Specifies which segment is being tracked if the request contains more than
// one segments.
VideoSegment segment = 6;
}

// Video annotation progress. Included in the `metadata`
Expand Down Expand Up @@ -491,15 +507,17 @@ message SpeechRecognitionAlternative {
// Transcript text representing the words that the user spoke.
string transcript = 1;

// The confidence estimate between 0.0 and 1.0. A higher number
// Output only. 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
// `confidence` field as it is not guaranteed to be accurate or consistent.
// correct. This field is set only for the top alternative.
// This field is not guaranteed to be accurate and users should not rely on it
// to be always provided.
// The default of 0.0 is a sentinel value indicating `confidence` was not set.
float confidence = 2;

// A list of word-specific information for each recognized word.
// Output only. A list of word-specific information for each recognized word.
// Note: When `enable_speaker_diarization` is true, you will see all the words
// from the beginning of the audio.
repeated WordInfo words = 3;
}

Expand Down
Loading

0 comments on commit 8fb7221

Please sign in to comment.