Class HttpJsonCloudBuildStub (3.53.0)

public class HttpJsonCloudBuildStub extends CloudBuildStub

REST stub implementation for the CloudBuild service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > CloudBuildStub > HttpJsonCloudBuildStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonCloudBuildStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonCloudBuildStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonCloudBuildStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonCloudBuildStub
Exceptions
Type Description
IOException

create(CloudBuildStubSettings settings)

public static final HttpJsonCloudBuildStub create(CloudBuildStubSettings settings)
Parameter
Name Description
settings CloudBuildStubSettings
Returns
Type Description
HttpJsonCloudBuildStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonCloudBuildStub(CloudBuildStubSettings settings, ClientContext clientContext)

protected HttpJsonCloudBuildStub(CloudBuildStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonCloudBuildStub, 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
Name Description
settings CloudBuildStubSettings
clientContext ClientContext

HttpJsonCloudBuildStub(CloudBuildStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonCloudBuildStub(CloudBuildStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonCloudBuildStub, 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
Name Description
settings CloudBuildStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

approveBuildCallable()

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

approveBuildOperationCallable()

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

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

cancelBuildCallable()

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

close()

public final void close()
Overrides

createBuildCallable()

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

createBuildOperationCallable()

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

createBuildTriggerCallable()

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

createWorkerPoolCallable()

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

createWorkerPoolOperationCallable()

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

deleteBuildTriggerCallable()

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

deleteWorkerPoolCallable()

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

deleteWorkerPoolOperationCallable()

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

getBuildCallable()

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

getBuildTriggerCallable()

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getWorkerPoolCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listBuildTriggersCallable()

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

listBuildTriggersPagedCallable()

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

listBuildsCallable()

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

listBuildsPagedCallable()

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

listWorkerPoolsCallable()

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

listWorkerPoolsPagedCallable()

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

receiveTriggerWebhookCallable()

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

retryBuildCallable()

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

retryBuildOperationCallable()

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

runBuildTriggerCallable()

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

runBuildTriggerOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateBuildTriggerCallable()

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

updateWorkerPoolCallable()

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

updateWorkerPoolOperationCallable()

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