Class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/videointelligence_v1p1beta1/classes.rb,
generated/google/apis/videointelligence_v1p1beta1/representations.rb,
generated/google/apis/videointelligence_v1p1beta1/representations.rb

Overview

StreamingAnnotateVideoResponse is the only message returned to the client by StreamingAnnotateVideo. A series of zero or more StreamingAnnotateVideoResponse messages are streamed back to the client.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse.



4412
4413
4414
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 4412

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#annotation_resultsGoogle::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults

Streaming annotation results corresponding to a portion of the video that is currently being processed. Corresponds to the JSON property annotationResults



4392
4393
4394
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 4392

def annotation_results
  @annotation_results
end

#annotation_results_uriString

GCS URI that stores annotation results of one streaming session. It is a directory that can hold multiple files in JSON format. Example uri format: gs://bucket_id/object_id/cloud_project_name-session_id Corresponds to the JSON property annotationResultsUri

Returns:

  • (String)


4400
4401
4402
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 4400

def annotation_results_uri
  @annotation_results_uri
end

#errorGoogle::Apis::VideointelligenceV1p1beta1::GoogleRpcStatus

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. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. Corresponds to the JSON property error



4410
4411
4412
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 4410

def error
  @error
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4417
4418
4419
4420
4421
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 4417

def update!(**args)
  @annotation_results = args[:annotation_results] if args.key?(:annotation_results)
  @annotation_results_uri = args[:annotation_results_uri] if args.key?(:annotation_results_uri)
  @error = args[:error] if args.key?(:error)
end