public static final class CloudBuildGrpc.CloudBuildStub extends AbstractAsyncStub<CloudBuildGrpc.CloudBuildStub>
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.AbstractAsyncStub >
CloudBuildGrpc.CloudBuildStub
Inherited Members
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withWaitForReady()
Methods
approveBuild(ApproveBuildRequest request, StreamObserver<Operation> responseObserver)
public void approveBuild(ApproveBuildRequest request, StreamObserver<Operation> responseObserver)
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.
build(Channel channel, CallOptions callOptions)
protected CloudBuildGrpc.CloudBuildStub build(Channel channel, CallOptions callOptions)
Parameters |
---|
Name | Description |
channel | io.grpc.Channel
|
callOptions | io.grpc.CallOptions
|
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
cancelBuild(CancelBuildRequest request, StreamObserver<Build> responseObserver)
public void cancelBuild(CancelBuildRequest request, StreamObserver<Build> responseObserver)
Cancels a build in progress.
createBuild(CreateBuildRequest request, StreamObserver<Operation> responseObserver)
public void createBuild(CreateBuildRequest request, StreamObserver<Operation> responseObserver)
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
).
createBuildTrigger(CreateBuildTriggerRequest request, StreamObserver<BuildTrigger> responseObserver)
public void createBuildTrigger(CreateBuildTriggerRequest request, StreamObserver<BuildTrigger> responseObserver)
Creates a new BuildTrigger
.
This API is experimental.
createWorkerPool(CreateWorkerPoolRequest request, StreamObserver<Operation> responseObserver)
public void createWorkerPool(CreateWorkerPoolRequest request, StreamObserver<Operation> responseObserver)
deleteBuildTrigger(DeleteBuildTriggerRequest request, StreamObserver<Empty> responseObserver)
public void deleteBuildTrigger(DeleteBuildTriggerRequest request, StreamObserver<Empty> responseObserver)
Deletes a BuildTrigger
by its project ID and trigger ID.
This API is experimental.
deleteWorkerPool(DeleteWorkerPoolRequest request, StreamObserver<Operation> responseObserver)
public void deleteWorkerPool(DeleteWorkerPoolRequest request, StreamObserver<Operation> responseObserver)
getBuild(GetBuildRequest request, StreamObserver<Build> responseObserver)
public void getBuild(GetBuildRequest request, StreamObserver<Build> responseObserver)
Returns information about a previously requested build.
The Build
that is returned includes its status (such as SUCCESS
,
FAILURE
, or WORKING
), and timing information.
getBuildTrigger(GetBuildTriggerRequest request, StreamObserver<BuildTrigger> responseObserver)
public void getBuildTrigger(GetBuildTriggerRequest request, StreamObserver<BuildTrigger> responseObserver)
Returns information about a BuildTrigger
.
This API is experimental.
getWorkerPool(GetWorkerPoolRequest request, StreamObserver<WorkerPool> responseObserver)
public void getWorkerPool(GetWorkerPoolRequest request, StreamObserver<WorkerPool> responseObserver)
Returns details of a WorkerPool
.
listBuildTriggers(ListBuildTriggersRequest request, StreamObserver<ListBuildTriggersResponse> responseObserver)
public void listBuildTriggers(ListBuildTriggersRequest request, StreamObserver<ListBuildTriggersResponse> responseObserver)
Lists existing BuildTrigger
s.
This API is experimental.
listBuilds(ListBuildsRequest request, StreamObserver<ListBuildsResponse> responseObserver)
public void listBuilds(ListBuildsRequest request, StreamObserver<ListBuildsResponse> responseObserver)
Lists previously requested builds.
Previously requested builds may still be in-progress, or may have finished
successfully or unsuccessfully.
listWorkerPools(ListWorkerPoolsRequest request, StreamObserver<ListWorkerPoolsResponse> responseObserver)
public void listWorkerPools(ListWorkerPoolsRequest request, StreamObserver<ListWorkerPoolsResponse> responseObserver)
receiveTriggerWebhook(ReceiveTriggerWebhookRequest request, StreamObserver<ReceiveTriggerWebhookResponse> responseObserver)
public void receiveTriggerWebhook(ReceiveTriggerWebhookRequest request, StreamObserver<ReceiveTriggerWebhookResponse> responseObserver)
ReceiveTriggerWebhook [Experimental] is called when the API receives a
webhook request targeted at a specific trigger.
retryBuild(RetryBuildRequest request, StreamObserver<Operation> responseObserver)
public void retryBuild(RetryBuildRequest request, StreamObserver<Operation> responseObserver)
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.
runBuildTrigger(RunBuildTriggerRequest request, StreamObserver<Operation> responseObserver)
public void runBuildTrigger(RunBuildTriggerRequest request, StreamObserver<Operation> responseObserver)
Runs a BuildTrigger
at a particular source revision.
updateBuildTrigger(UpdateBuildTriggerRequest request, StreamObserver<BuildTrigger> responseObserver)
public void updateBuildTrigger(UpdateBuildTriggerRequest request, StreamObserver<BuildTrigger> responseObserver)
Updates a BuildTrigger
by its project ID and trigger ID.
This API is experimental.
updateWorkerPool(UpdateWorkerPoolRequest request, StreamObserver<Operation> responseObserver)
public void updateWorkerPool(UpdateWorkerPoolRequest request, StreamObserver<Operation> responseObserver)