Class HttpJsonPlaybooksStub (0.50.0)

public class HttpJsonPlaybooksStub extends PlaybooksStub

REST stub implementation for the Playbooks service API.

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

Inheritance

java.lang.Object > PlaybooksStub > HttpJsonPlaybooksStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(PlaybooksStubSettings settings)

public static final HttpJsonPlaybooksStub create(PlaybooksStubSettings settings)
Parameter
NameDescription
settingsPlaybooksStubSettings
Returns
TypeDescription
HttpJsonPlaybooksStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonPlaybooksStub(PlaybooksStubSettings settings, ClientContext clientContext)

protected HttpJsonPlaybooksStub(PlaybooksStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonPlaybooksStub, 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
settingsPlaybooksStubSettings
clientContextClientContext

HttpJsonPlaybooksStub(PlaybooksStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonPlaybooksStub(PlaybooksStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonPlaybooksStub, 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
settingsPlaybooksStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

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

close()

public final void close()
Overrides

createPlaybookCallable()

public UnaryCallable<CreatePlaybookRequest,Playbook> createPlaybookCallable()
Returns
TypeDescription
UnaryCallable<CreatePlaybookRequest,Playbook>
Overrides

createPlaybookVersionCallable()

public UnaryCallable<CreatePlaybookVersionRequest,PlaybookVersion> createPlaybookVersionCallable()
Returns
TypeDescription
UnaryCallable<CreatePlaybookVersionRequest,PlaybookVersion>
Overrides

deletePlaybookCallable()

public UnaryCallable<DeletePlaybookRequest,Empty> deletePlaybookCallable()
Returns
TypeDescription
UnaryCallable<DeletePlaybookRequest,Empty>
Overrides

deletePlaybookVersionCallable()

public UnaryCallable<DeletePlaybookVersionRequest,Empty> deletePlaybookVersionCallable()
Returns
TypeDescription
UnaryCallable<DeletePlaybookVersionRequest,Empty>
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getPlaybookCallable()

public UnaryCallable<GetPlaybookRequest,Playbook> getPlaybookCallable()
Returns
TypeDescription
UnaryCallable<GetPlaybookRequest,Playbook>
Overrides

getPlaybookVersionCallable()

public UnaryCallable<GetPlaybookVersionRequest,PlaybookVersion> getPlaybookVersionCallable()
Returns
TypeDescription
UnaryCallable<GetPlaybookVersionRequest,PlaybookVersion>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,PlaybooksClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listPlaybookVersionsCallable()

public UnaryCallable<ListPlaybookVersionsRequest,ListPlaybookVersionsResponse> listPlaybookVersionsCallable()
Returns
TypeDescription
UnaryCallable<ListPlaybookVersionsRequest,ListPlaybookVersionsResponse>
Overrides

listPlaybookVersionsPagedCallable()

public UnaryCallable<ListPlaybookVersionsRequest,PlaybooksClient.ListPlaybookVersionsPagedResponse> listPlaybookVersionsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListPlaybookVersionsRequest,ListPlaybookVersionsPagedResponse>
Overrides

listPlaybooksCallable()

public UnaryCallable<ListPlaybooksRequest,ListPlaybooksResponse> listPlaybooksCallable()
Returns
TypeDescription
UnaryCallable<ListPlaybooksRequest,ListPlaybooksResponse>
Overrides

listPlaybooksPagedCallable()

public UnaryCallable<ListPlaybooksRequest,PlaybooksClient.ListPlaybooksPagedResponse> listPlaybooksPagedCallable()
Returns
TypeDescription
UnaryCallable<ListPlaybooksRequest,ListPlaybooksPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updatePlaybookCallable()

public UnaryCallable<UpdatePlaybookRequest,Playbook> updatePlaybookCallable()
Returns
TypeDescription
UnaryCallable<UpdatePlaybookRequest,Playbook>
Overrides