Class protos.google.cloud.run.v2.Builds (1.5.0)

Represents a Builds

Inheritance

$protobuf.rpc.Service > protos.google.cloud.run.v2.Builds

Package

@google-cloud/run

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new Builds 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): Builds;

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

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

submitBuild(request, callback)

public submitBuild(request: google.cloud.run.v2.ISubmitBuildRequest, callback: google.cloud.run.v2.Builds.SubmitBuildCallback): void;

Calls SubmitBuild.

Parameters
Name Description
request ISubmitBuildRequest

SubmitBuildRequest message or plain object

callback SubmitBuildCallback

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

Returns
Type Description
void

submitBuild(request)

public submitBuild(request: google.cloud.run.v2.ISubmitBuildRequest): Promise<google.cloud.run.v2.SubmitBuildResponse>;

Calls SubmitBuild.

Parameter
Name Description
request ISubmitBuildRequest

SubmitBuildRequest message or plain object

Returns
Type Description
Promise<google.cloud.run.v2.SubmitBuildResponse>

Promise