TranscoderService

google.cloud.video.transcoder.v1. TranscoderService

Represents a TranscoderService

Constructor

new TranscoderService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new TranscoderService 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

createJob(request, callback) → {undefined}

Calls CreateJob.

Parameters:
Name Type Description
request google.cloud.video.transcoder.v1.ICreateJobRequest

CreateJobRequest message or plain object

callback google.cloud.video.transcoder.v1.TranscoderService.CreateJobCallback

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

Returns:
Type Description
undefined

createJob(request) → {Promise.<google.cloud.video.transcoder.v1.Job>}

Calls CreateJob.

Parameters:
Name Type Description
request google.cloud.video.transcoder.v1.ICreateJobRequest

CreateJobRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.video.transcoder.v1.Job>

Promise

createJobTemplate(request, callback) → {undefined}

Calls CreateJobTemplate.

Parameters:
Name Type Description
request google.cloud.video.transcoder.v1.ICreateJobTemplateRequest

CreateJobTemplateRequest message or plain object

callback google.cloud.video.transcoder.v1.TranscoderService.CreateJobTemplateCallback

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

Returns:
Type Description
undefined

createJobTemplate(request) → {Promise.<google.cloud.video.transcoder.v1.JobTemplate>}

Calls CreateJobTemplate.

Parameters:
Name Type Description
request google.cloud.video.transcoder.v1.ICreateJobTemplateRequest

CreateJobTemplateRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.video.transcoder.v1.JobTemplate>

Promise

deleteJob(request, callback) → {undefined}

Calls DeleteJob.

Parameters:
Name Type Description
request google.cloud.video.transcoder.v1.IDeleteJobRequest

DeleteJobRequest message or plain object

callback google.cloud.video.transcoder.v1.TranscoderService.DeleteJobCallback

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

Returns:
Type Description
undefined

deleteJob(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteJob.

Parameters:
Name Type Description
request google.cloud.video.transcoder.v1.IDeleteJobRequest

DeleteJobRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

deleteJobTemplate(request, callback) → {undefined}

Calls DeleteJobTemplate.

Parameters:
Name Type Description
request google.cloud.video.transcoder.v1.IDeleteJobTemplateRequest

DeleteJobTemplateRequest message or plain object

callback google.cloud.video.transcoder.v1.TranscoderService.DeleteJobTemplateCallback

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

Returns:
Type Description
undefined

deleteJobTemplate(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteJobTemplate.

Parameters:
Name Type Description
request google.cloud.video.transcoder.v1.IDeleteJobTemplateRequest

DeleteJobTemplateRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

getJob(request, callback) → {undefined}

Calls GetJob.

Parameters:
Name Type Description
request google.cloud.video.transcoder.v1.IGetJobRequest

GetJobRequest message or plain object

callback google.cloud.video.transcoder.v1.TranscoderService.GetJobCallback

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

Returns:
Type Description
undefined

getJob(request) → {Promise.<google.cloud.video.transcoder.v1.Job>}

Calls GetJob.

Parameters:
Name Type Description
request google.cloud.video.transcoder.v1.IGetJobRequest

GetJobRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.video.transcoder.v1.Job>

Promise

getJobTemplate(request, callback) → {undefined}

Calls GetJobTemplate.

Parameters:
Name Type Description
request google.cloud.video.transcoder.v1.IGetJobTemplateRequest

GetJobTemplateRequest message or plain object

callback google.cloud.video.transcoder.v1.TranscoderService.GetJobTemplateCallback

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

Returns:
Type Description
undefined

getJobTemplate(request) → {Promise.<google.cloud.video.transcoder.v1.JobTemplate>}

Calls GetJobTemplate.

Parameters:
Name Type Description
request google.cloud.video.transcoder.v1.IGetJobTemplateRequest

GetJobTemplateRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.video.transcoder.v1.JobTemplate>

Promise

listJobTemplates(request, callback) → {undefined}

Calls ListJobTemplates.

Parameters:
Name Type Description
request google.cloud.video.transcoder.v1.IListJobTemplatesRequest

ListJobTemplatesRequest message or plain object

callback google.cloud.video.transcoder.v1.TranscoderService.ListJobTemplatesCallback

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

Returns:
Type Description
undefined

listJobTemplates(request) → {Promise.<google.cloud.video.transcoder.v1.ListJobTemplatesResponse>}

Calls ListJobTemplates.

Parameters:
Name Type Description
request google.cloud.video.transcoder.v1.IListJobTemplatesRequest

ListJobTemplatesRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.video.transcoder.v1.ListJobTemplatesResponse>

Promise

listJobs(request, callback) → {undefined}

Calls ListJobs.

Parameters:
Name Type Description
request google.cloud.video.transcoder.v1.IListJobsRequest

ListJobsRequest message or plain object

callback google.cloud.video.transcoder.v1.TranscoderService.ListJobsCallback

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

Returns:
Type Description
undefined

listJobs(request) → {Promise.<google.cloud.video.transcoder.v1.ListJobsResponse>}

Calls ListJobs.

Parameters:
Name Type Description
request google.cloud.video.transcoder.v1.IListJobsRequest

ListJobsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.video.transcoder.v1.ListJobsResponse>

Promise

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

Creates new TranscoderService 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
TranscoderService

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

Type Definitions

CreateJobCallback(error, responseopt)

Callback as used by createJob.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.video.transcoder.v1.Job <optional>

Job

CreateJobTemplateCallback(error, responseopt)

Callback as used by createJobTemplate.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.video.transcoder.v1.JobTemplate <optional>

JobTemplate

DeleteJobCallback(error, responseopt)

Callback as used by deleteJob.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

DeleteJobTemplateCallback(error, responseopt)

Callback as used by deleteJobTemplate.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetJobCallback(error, responseopt)

Callback as used by getJob.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.video.transcoder.v1.Job <optional>

Job

GetJobTemplateCallback(error, responseopt)

Callback as used by getJobTemplate.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.video.transcoder.v1.JobTemplate <optional>

JobTemplate

ListJobTemplatesCallback(error, responseopt)

Callback as used by listJobTemplates.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.video.transcoder.v1.ListJobTemplatesResponse <optional>

ListJobTemplatesResponse

ListJobsCallback(error, responseopt)

Callback as used by listJobs.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.video.transcoder.v1.ListJobsResponse <optional>

ListJobsResponse