public class GrpcCloudBuildStub extends CloudBuildStub
gRPC stub implementation for the CloudBuild service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final GrpcCloudBuildStub create(ClientContext clientContext)
Parameter
Returns
Exceptions
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcCloudBuildStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Returns
Exceptions
public static final GrpcCloudBuildStub create(CloudBuildStubSettings settings)
Parameter
Returns
Exceptions
Constructors
GrpcCloudBuildStub(CloudBuildStubSettings settings, ClientContext clientContext)
protected GrpcCloudBuildStub(CloudBuildStubSettings settings, ClientContext clientContext)
Constructs an instance of GrpcCloudBuildStub, using the given settings. This is protected so
that it is easy to make a subclass, but otherwise, the static factory methods should be
preferred.
Parameters
GrpcCloudBuildStub(CloudBuildStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcCloudBuildStub(CloudBuildStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcCloudBuildStub, using the given settings. This is protected so
that it is easy to make a subclass, but otherwise, the static factory methods should be
preferred.
Parameters
Methods
public UnaryCallable<ApproveBuildRequest,Operation> approveBuildCallable()
Returns
Overrides
public OperationCallable<ApproveBuildRequest,Build,BuildOperationMetadata> approveBuildOperationCallable()
Returns
Overrides
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Returns
Exceptions
public UnaryCallable<CancelBuildRequest,Build> cancelBuildCallable()
Returns
Overrides
public final void close()
Overrides
public UnaryCallable<CreateBuildRequest,Operation> createBuildCallable()
Returns
Overrides
public OperationCallable<CreateBuildRequest,Build,BuildOperationMetadata> createBuildOperationCallable()
Returns
Overrides
public UnaryCallable<CreateBuildTriggerRequest,BuildTrigger> createBuildTriggerCallable()
Returns
Overrides
public UnaryCallable<CreateWorkerPoolRequest,Operation> createWorkerPoolCallable()
Returns
Overrides
public OperationCallable<CreateWorkerPoolRequest,WorkerPool,CreateWorkerPoolOperationMetadata> createWorkerPoolOperationCallable()
Returns
Overrides
public UnaryCallable<DeleteBuildTriggerRequest,Empty> deleteBuildTriggerCallable()
Returns
Overrides
public UnaryCallable<DeleteWorkerPoolRequest,Operation> deleteWorkerPoolCallable()
Returns
Overrides
public OperationCallable<DeleteWorkerPoolRequest,Empty,DeleteWorkerPoolOperationMetadata> deleteWorkerPoolOperationCallable()
Returns
Overrides
public UnaryCallable<GetBuildRequest,Build> getBuildCallable()
Returns
Overrides
public UnaryCallable<GetBuildTriggerRequest,BuildTrigger> getBuildTriggerCallable()
Returns
Overrides
public GrpcOperationsStub getOperationsStub()
Returns
Overrides
public UnaryCallable<GetWorkerPoolRequest,WorkerPool> getWorkerPoolCallable()
Returns
Overrides
public boolean isShutdown()
Returns
public boolean isTerminated()
Returns
public UnaryCallable<ListBuildTriggersRequest,ListBuildTriggersResponse> listBuildTriggersCallable()
Returns
Overrides
listBuildTriggersPagedCallable()
public UnaryCallable<ListBuildTriggersRequest,CloudBuildClient.ListBuildTriggersPagedResponse> listBuildTriggersPagedCallable()
Returns
Overrides
public UnaryCallable<ListBuildsRequest,ListBuildsResponse> listBuildsCallable()
Returns
Overrides
listBuildsPagedCallable()
public UnaryCallable<ListBuildsRequest,CloudBuildClient.ListBuildsPagedResponse> listBuildsPagedCallable()
Returns
Overrides
public UnaryCallable<ListWorkerPoolsRequest,ListWorkerPoolsResponse> listWorkerPoolsCallable()
Returns
Overrides
listWorkerPoolsPagedCallable()
public UnaryCallable<ListWorkerPoolsRequest,CloudBuildClient.ListWorkerPoolsPagedResponse> listWorkerPoolsPagedCallable()
Returns
Overrides
public UnaryCallable<ReceiveTriggerWebhookRequest,ReceiveTriggerWebhookResponse> receiveTriggerWebhookCallable()
Returns
Overrides
public UnaryCallable<RetryBuildRequest,Operation> retryBuildCallable()
Returns
Overrides
public OperationCallable<RetryBuildRequest,Build,BuildOperationMetadata> retryBuildOperationCallable()
Returns
Overrides
public UnaryCallable<RunBuildTriggerRequest,Operation> runBuildTriggerCallable()
Returns
Overrides
public OperationCallable<RunBuildTriggerRequest,Build,BuildOperationMetadata> runBuildTriggerOperationCallable()
Returns
Overrides
public void shutdownNow()
public UnaryCallable<UpdateBuildTriggerRequest,BuildTrigger> updateBuildTriggerCallable()
Returns
Overrides
public UnaryCallable<UpdateWorkerPoolRequest,Operation> updateWorkerPoolCallable()
Returns
Overrides
public OperationCallable<UpdateWorkerPoolRequest,WorkerPool,UpdateWorkerPoolOperationMetadata> updateWorkerPoolOperationCallable()
Returns
Overrides