VideoIntelligenceService

google.cloud.videointelligence.v1beta2. VideoIntelligenceService

Represents a VideoIntelligenceService

Constructor

new VideoIntelligenceService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new VideoIntelligenceService service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

annotateVideo(request, callback) → {undefined}

Calls AnnotateVideo.

Parameters:
Name Type Description
request google.cloud.videointelligence.v1beta2.IAnnotateVideoRequest

AnnotateVideoRequest message or plain object

callback google.cloud.videointelligence.v1beta2.VideoIntelligenceService.AnnotateVideoCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

annotateVideo(request) → {Promise.<google.longrunning.Operation>}

Calls AnnotateVideo.

Parameters:
Name Type Description
request google.cloud.videointelligence.v1beta2.IAnnotateVideoRequest

AnnotateVideoRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {VideoIntelligenceService}

Creates new VideoIntelligenceService service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
VideoIntelligenceService

RPC service. Useful where requests and/or responses are streamed.

Type Definitions

AnnotateVideoCallback(error, responseopt)

Callback as used by annotateVideo.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation