Represents a VideoIntelligenceService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.videointelligence.v1p1beta1.VideoIntelligenceServicePackage
@google-cloud/video-intelligenceConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new VideoIntelligenceService service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
annotateVideo(request, callback)
public annotateVideo(request: google.cloud.videointelligence.v1p1beta1.IAnnotateVideoRequest, callback: google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService.AnnotateVideoCallback): void;
Calls AnnotateVideo.
Parameters | |
---|---|
Name | Description |
request |
IAnnotateVideoRequest
AnnotateVideoRequest message or plain object |
callback |
AnnotateVideoCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
annotateVideo(request)
public annotateVideo(request: google.cloud.videointelligence.v1p1beta1.IAnnotateVideoRequest): Promise<google.longrunning.Operation>;
Calls AnnotateVideo.
Parameter | |
---|---|
Name | Description |
request |
IAnnotateVideoRequest
AnnotateVideoRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): VideoIntelligenceService;
Creates new VideoIntelligenceService 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 |
VideoIntelligenceService | RPC service. Useful where requests and/or responses are streamed. |