Represents a StreamingVideoIntelligenceService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceServicePackage
@google-cloud/video-intelligenceConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new StreamingVideoIntelligenceService service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): StreamingVideoIntelligenceService;
Creates new StreamingVideoIntelligenceService service using the specified rpc implementation.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
StreamingVideoIntelligenceService | RPC service. Useful where requests and/or responses are streamed. |
streamingAnnotateVideo(request, callback)
public streamingAnnotateVideo(request: google.cloud.videointelligence.v1p3beta1.IStreamingAnnotateVideoRequest, callback: google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceService.StreamingAnnotateVideoCallback): void;
Calls StreamingAnnotateVideo.
Parameters | |
---|---|
Name | Description |
request |
IStreamingAnnotateVideoRequest
StreamingAnnotateVideoRequest message or plain object |
callback |
StreamingAnnotateVideoCallback
Node-style callback called with the error, if any, and StreamingAnnotateVideoResponse |
Returns | |
---|---|
Type | Description |
void |
streamingAnnotateVideo(request)
public streamingAnnotateVideo(request: google.cloud.videointelligence.v1p3beta1.IStreamingAnnotateVideoRequest): Promise<google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse>;
Calls StreamingAnnotateVideo.
Parameter | |
---|---|
Name | Description |
request |
IStreamingAnnotateVideoRequest
StreamingAnnotateVideoRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse> | Promise |