Class CloudBuildGrpc.CloudBuildBlockingStub (3.21.0)

public static final class CloudBuildGrpc.CloudBuildBlockingStub extends AbstractBlockingStub<CloudBuildGrpc.CloudBuildBlockingStub>

A stub to allow clients to do synchronous rpc calls to service CloudBuild.

Creates and manages builds on Google Cloud Platform. The main concept used by this API is a Build, which describes the location of the source to build, how to build the source, and where to store the built artifacts, if any. A user can list previously-requested builds or get builds by their ID to determine the status of the build.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > CloudBuildGrpc.CloudBuildBlockingStub

Methods

approveBuild(ApproveBuildRequest request)

public Operation approveBuild(ApproveBuildRequest request)

Approves or rejects a pending build. If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call. If rejected, the returned LRO will be immediately done.

Parameter
NameDescription
requestApproveBuildRequest
Returns
TypeDescription
Operation

build(Channel channel, CallOptions callOptions)

protected CloudBuildGrpc.CloudBuildBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
CloudBuildGrpc.CloudBuildBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

cancelBuild(CancelBuildRequest request)

public Build cancelBuild(CancelBuildRequest request)

Cancels a build in progress.

Parameter
NameDescription
requestCancelBuildRequest
Returns
TypeDescription
Build

createBuild(CreateBuildRequest request)

public Operation createBuild(CreateBuildRequest request)

Starts a build with the specified configuration. This method returns a long-running Operation, which includes the build ID. Pass the build ID to GetBuild to determine the build status (such as SUCCESS or FAILURE).

Parameter
NameDescription
requestCreateBuildRequest
Returns
TypeDescription
Operation

createBuildTrigger(CreateBuildTriggerRequest request)

public BuildTrigger createBuildTrigger(CreateBuildTriggerRequest request)

Creates a new BuildTrigger. This API is experimental.

Parameter
NameDescription
requestCreateBuildTriggerRequest
Returns
TypeDescription
BuildTrigger

createWorkerPool(CreateWorkerPoolRequest request)

public Operation createWorkerPool(CreateWorkerPoolRequest request)

Creates a WorkerPool.

Parameter
NameDescription
requestCreateWorkerPoolRequest
Returns
TypeDescription
Operation

deleteBuildTrigger(DeleteBuildTriggerRequest request)

public Empty deleteBuildTrigger(DeleteBuildTriggerRequest request)

Deletes a BuildTrigger by its project ID and trigger ID. This API is experimental.

Parameter
NameDescription
requestDeleteBuildTriggerRequest
Returns
TypeDescription
Empty

deleteWorkerPool(DeleteWorkerPoolRequest request)

public Operation deleteWorkerPool(DeleteWorkerPoolRequest request)

Deletes a WorkerPool.

Parameter
NameDescription
requestDeleteWorkerPoolRequest
Returns
TypeDescription
Operation

getBuild(GetBuildRequest request)

public Build getBuild(GetBuildRequest request)

Returns information about a previously requested build. The Build that is returned includes its status (such as SUCCESS, FAILURE, or WORKING), and timing information.

Parameter
NameDescription
requestGetBuildRequest
Returns
TypeDescription
Build

getBuildTrigger(GetBuildTriggerRequest request)

public BuildTrigger getBuildTrigger(GetBuildTriggerRequest request)

Returns information about a BuildTrigger. This API is experimental.

Parameter
NameDescription
requestGetBuildTriggerRequest
Returns
TypeDescription
BuildTrigger

getWorkerPool(GetWorkerPoolRequest request)

public WorkerPool getWorkerPool(GetWorkerPoolRequest request)

Returns details of a WorkerPool.

Parameter
NameDescription
requestGetWorkerPoolRequest
Returns
TypeDescription
WorkerPool

listBuildTriggers(ListBuildTriggersRequest request)

public ListBuildTriggersResponse listBuildTriggers(ListBuildTriggersRequest request)

Lists existing BuildTriggers. This API is experimental.

Parameter
NameDescription
requestListBuildTriggersRequest
Returns
TypeDescription
ListBuildTriggersResponse

listBuilds(ListBuildsRequest request)

public ListBuildsResponse listBuilds(ListBuildsRequest request)

Lists previously requested builds. Previously requested builds may still be in-progress, or may have finished successfully or unsuccessfully.

Parameter
NameDescription
requestListBuildsRequest
Returns
TypeDescription
ListBuildsResponse

listWorkerPools(ListWorkerPoolsRequest request)

public ListWorkerPoolsResponse listWorkerPools(ListWorkerPoolsRequest request)

Lists WorkerPools.

Parameter
NameDescription
requestListWorkerPoolsRequest
Returns
TypeDescription
ListWorkerPoolsResponse

receiveTriggerWebhook(ReceiveTriggerWebhookRequest request)

public ReceiveTriggerWebhookResponse receiveTriggerWebhook(ReceiveTriggerWebhookRequest request)

ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger.

Parameter
NameDescription
requestReceiveTriggerWebhookRequest
Returns
TypeDescription
ReceiveTriggerWebhookResponse

retryBuild(RetryBuildRequest request)

public Operation retryBuild(RetryBuildRequest request)

Creates a new build based on the specified build. This method creates a new build using the original build request, which may or may not result in an identical build. For triggered builds:

  • Triggered builds resolve to a precise revision; therefore a retry of a triggered build will result in a build that uses the same revision. For non-triggered builds that specify RepoSource:
  • If the original build built from the tip of a branch, the retried build will build from the tip of that branch, which may not be the same revision as the original build.
  • If the original build specified a commit sha or revision ID, the retried build will use the identical source. For builds that specify StorageSource:
  • If the original build pulled source from Google Cloud Storage without specifying the generation of the object, the new build will use the current object, which may be different from the original build source.
  • If the original build pulled source from Cloud Storage and specified the generation of the object, the new build will attempt to use the same object, which may or may not be available depending on the bucket's lifecycle management settings.
Parameter
NameDescription
requestRetryBuildRequest
Returns
TypeDescription
Operation

runBuildTrigger(RunBuildTriggerRequest request)

public Operation runBuildTrigger(RunBuildTriggerRequest request)

Runs a BuildTrigger at a particular source revision.

Parameter
NameDescription
requestRunBuildTriggerRequest
Returns
TypeDescription
Operation

updateBuildTrigger(UpdateBuildTriggerRequest request)

public BuildTrigger updateBuildTrigger(UpdateBuildTriggerRequest request)

Updates a BuildTrigger by its project ID and trigger ID. This API is experimental.

Parameter
NameDescription
requestUpdateBuildTriggerRequest
Returns
TypeDescription
BuildTrigger

updateWorkerPool(UpdateWorkerPoolRequest request)

public Operation updateWorkerPool(UpdateWorkerPoolRequest request)

Updates a WorkerPool.

Parameter
NameDescription
requestUpdateWorkerPoolRequest
Returns
TypeDescription
Operation