Class HttpJsonCloudBuildStub (3.15.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
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonCloudBuildStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonCloudBuildStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonCloudBuildStub
Exceptions
TypeDescription
IOException

create(CloudBuildStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsCloudBuildStubSettings
clientContextClientContext

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

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
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