Class HttpJsonPlaybooksStub (0.52.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonPlaybooksStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(PlaybooksStubSettings settings)

public static final HttpJsonPlaybooksStub create(PlaybooksStubSettings settings)
Parameter
Name Description
settings PlaybooksStubSettings
Returns
Type Description
HttpJsonPlaybooksStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings PlaybooksStubSettings
clientContext ClientContext

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
Name Description
settings PlaybooksStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

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

close()

public final void close()
Overrides

createPlaybookCallable()

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

createPlaybookVersionCallable()

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

deletePlaybookCallable()

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

deletePlaybookVersionCallable()

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

getLocationCallable()

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

getPlaybookCallable()

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

getPlaybookVersionCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listLocationsCallable()

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

listLocationsPagedCallable()

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

listPlaybookVersionsCallable()

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

listPlaybookVersionsPagedCallable()

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

listPlaybooksCallable()

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

listPlaybooksPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updatePlaybookCallable()

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