Class GrpcPlaybooksStub (0.52.0)

public class GrpcPlaybooksStub extends PlaybooksStub

gRPC stub implementation for the Playbooks service API.

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

Inheritance

java.lang.Object > PlaybooksStub > GrpcPlaybooksStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(PlaybooksStubSettings settings)

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

Constructors

GrpcPlaybooksStub(PlaybooksStubSettings settings, ClientContext clientContext)

protected GrpcPlaybooksStub(PlaybooksStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcPlaybooksStub, 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

GrpcPlaybooksStub(PlaybooksStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcPlaybooksStub(PlaybooksStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcPlaybooksStub, 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
callableFactoryGrpcStubCallableFactory

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

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