Class GrpcCloudBuildStub (3.21.0)

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.

Inheritance

java.lang.Object > CloudBuildStub > GrpcCloudBuildStub

Static Methods

create(ClientContext clientContext)

public static final GrpcCloudBuildStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcCloudBuildStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcCloudBuildStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcCloudBuildStub
Exceptions
TypeDescription
IOException

create(CloudBuildStubSettings settings)

public static final GrpcCloudBuildStub create(CloudBuildStubSettings settings)
Parameter
NameDescription
settingsCloudBuildStubSettings
Returns
TypeDescription
GrpcCloudBuildStub
Exceptions
TypeDescription
IOException

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
NameDescription
settingsCloudBuildStubSettings
clientContextClientContext

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
NameDescription
settingsCloudBuildStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

approveBuildCallable()

public UnaryCallable<ApproveBuildRequest,Operation> approveBuildCallable()
Returns
TypeDescription
UnaryCallable<ApproveBuildRequest,Operation>
Overrides

approveBuildOperationCallable()

public OperationCallable<ApproveBuildRequest,Build,BuildOperationMetadata> approveBuildOperationCallable()
Returns
TypeDescription
OperationCallable<ApproveBuildRequest,Build,BuildOperationMetadata>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

cancelBuildCallable()

public UnaryCallable<CancelBuildRequest,Build> cancelBuildCallable()
Returns
TypeDescription
UnaryCallable<CancelBuildRequest,Build>
Overrides

close()

public final void close()
Overrides

createBuildCallable()

public UnaryCallable<CreateBuildRequest,Operation> createBuildCallable()
Returns
TypeDescription
UnaryCallable<CreateBuildRequest,Operation>
Overrides

createBuildOperationCallable()

public OperationCallable<CreateBuildRequest,Build,BuildOperationMetadata> createBuildOperationCallable()
Returns
TypeDescription
OperationCallable<CreateBuildRequest,Build,BuildOperationMetadata>
Overrides

createBuildTriggerCallable()

public UnaryCallable<CreateBuildTriggerRequest,BuildTrigger> createBuildTriggerCallable()
Returns
TypeDescription
UnaryCallable<CreateBuildTriggerRequest,BuildTrigger>
Overrides

createWorkerPoolCallable()

public UnaryCallable<CreateWorkerPoolRequest,Operation> createWorkerPoolCallable()
Returns
TypeDescription
UnaryCallable<CreateWorkerPoolRequest,Operation>
Overrides

createWorkerPoolOperationCallable()

public OperationCallable<CreateWorkerPoolRequest,WorkerPool,CreateWorkerPoolOperationMetadata> createWorkerPoolOperationCallable()
Returns
TypeDescription
OperationCallable<CreateWorkerPoolRequest,WorkerPool,CreateWorkerPoolOperationMetadata>
Overrides

deleteBuildTriggerCallable()

public UnaryCallable<DeleteBuildTriggerRequest,Empty> deleteBuildTriggerCallable()
Returns
TypeDescription
UnaryCallable<DeleteBuildTriggerRequest,Empty>
Overrides

deleteWorkerPoolCallable()

public UnaryCallable<DeleteWorkerPoolRequest,Operation> deleteWorkerPoolCallable()
Returns
TypeDescription
UnaryCallable<DeleteWorkerPoolRequest,Operation>
Overrides

deleteWorkerPoolOperationCallable()

public OperationCallable<DeleteWorkerPoolRequest,Empty,DeleteWorkerPoolOperationMetadata> deleteWorkerPoolOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteWorkerPoolRequest,Empty,DeleteWorkerPoolOperationMetadata>
Overrides

getBuildCallable()

public UnaryCallable<GetBuildRequest,Build> getBuildCallable()
Returns
TypeDescription
UnaryCallable<GetBuildRequest,Build>
Overrides

getBuildTriggerCallable()

public UnaryCallable<GetBuildTriggerRequest,BuildTrigger> getBuildTriggerCallable()
Returns
TypeDescription
UnaryCallable<GetBuildTriggerRequest,BuildTrigger>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

getWorkerPoolCallable()

public UnaryCallable<GetWorkerPoolRequest,WorkerPool> getWorkerPoolCallable()
Returns
TypeDescription
UnaryCallable<GetWorkerPoolRequest,WorkerPool>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listBuildTriggersCallable()

public UnaryCallable<ListBuildTriggersRequest,ListBuildTriggersResponse> listBuildTriggersCallable()
Returns
TypeDescription
UnaryCallable<ListBuildTriggersRequest,ListBuildTriggersResponse>
Overrides

listBuildTriggersPagedCallable()

public UnaryCallable<ListBuildTriggersRequest,CloudBuildClient.ListBuildTriggersPagedResponse> listBuildTriggersPagedCallable()
Returns
TypeDescription
UnaryCallable<ListBuildTriggersRequest,ListBuildTriggersPagedResponse>
Overrides

listBuildsCallable()

public UnaryCallable<ListBuildsRequest,ListBuildsResponse> listBuildsCallable()
Returns
TypeDescription
UnaryCallable<ListBuildsRequest,ListBuildsResponse>
Overrides

listBuildsPagedCallable()

public UnaryCallable<ListBuildsRequest,CloudBuildClient.ListBuildsPagedResponse> listBuildsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListBuildsRequest,ListBuildsPagedResponse>
Overrides

listWorkerPoolsCallable()

public UnaryCallable<ListWorkerPoolsRequest,ListWorkerPoolsResponse> listWorkerPoolsCallable()
Returns
TypeDescription
UnaryCallable<ListWorkerPoolsRequest,ListWorkerPoolsResponse>
Overrides

listWorkerPoolsPagedCallable()

public UnaryCallable<ListWorkerPoolsRequest,CloudBuildClient.ListWorkerPoolsPagedResponse> listWorkerPoolsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListWorkerPoolsRequest,ListWorkerPoolsPagedResponse>
Overrides

receiveTriggerWebhookCallable()

public UnaryCallable<ReceiveTriggerWebhookRequest,ReceiveTriggerWebhookResponse> receiveTriggerWebhookCallable()
Returns
TypeDescription
UnaryCallable<ReceiveTriggerWebhookRequest,ReceiveTriggerWebhookResponse>
Overrides

retryBuildCallable()

public UnaryCallable<RetryBuildRequest,Operation> retryBuildCallable()
Returns
TypeDescription
UnaryCallable<RetryBuildRequest,Operation>
Overrides

retryBuildOperationCallable()

public OperationCallable<RetryBuildRequest,Build,BuildOperationMetadata> retryBuildOperationCallable()
Returns
TypeDescription
OperationCallable<RetryBuildRequest,Build,BuildOperationMetadata>
Overrides

runBuildTriggerCallable()

public UnaryCallable<RunBuildTriggerRequest,Operation> runBuildTriggerCallable()
Returns
TypeDescription
UnaryCallable<RunBuildTriggerRequest,Operation>
Overrides

runBuildTriggerOperationCallable()

public OperationCallable<RunBuildTriggerRequest,Build,BuildOperationMetadata> runBuildTriggerOperationCallable()
Returns
TypeDescription
OperationCallable<RunBuildTriggerRequest,Build,BuildOperationMetadata>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateBuildTriggerCallable()

public UnaryCallable<UpdateBuildTriggerRequest,BuildTrigger> updateBuildTriggerCallable()
Returns
TypeDescription
UnaryCallable<UpdateBuildTriggerRequest,BuildTrigger>
Overrides

updateWorkerPoolCallable()

public UnaryCallable<UpdateWorkerPoolRequest,Operation> updateWorkerPoolCallable()
Returns
TypeDescription
UnaryCallable<UpdateWorkerPoolRequest,Operation>
Overrides

updateWorkerPoolOperationCallable()

public OperationCallable<UpdateWorkerPoolRequest,WorkerPool,UpdateWorkerPoolOperationMetadata> updateWorkerPoolOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateWorkerPoolRequest,WorkerPool,UpdateWorkerPoolOperationMetadata>
Overrides