Class GrpcCompanionAgentsStub (4.105.0)

public class GrpcCompanionAgentsStub extends CompanionAgentsStub

gRPC stub implementation for the CompanionAgents service API.

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

Inheritance

java.lang.Object > CompanionAgentsStub > GrpcCompanionAgentsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(CompanionAgentsStubSettings settings)

public static final GrpcCompanionAgentsStub create(CompanionAgentsStubSettings settings)
Parameter
Name Description
settings CompanionAgentsStubSettings
Returns
Type Description
GrpcCompanionAgentsStub
Exceptions
Type Description
IOException

Constructors

GrpcCompanionAgentsStub(CompanionAgentsStubSettings settings, ClientContext clientContext)

protected GrpcCompanionAgentsStub(CompanionAgentsStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcCompanionAgentsStub, 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 CompanionAgentsStubSettings
clientContext ClientContext

GrpcCompanionAgentsStub(CompanionAgentsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcCompanionAgentsStub(CompanionAgentsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcCompanionAgentsStub, 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 CompanionAgentsStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

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

createCompanionAgentCallable()

public UnaryCallable<CreateCompanionAgentRequest,CompanionAgent> createCompanionAgentCallable()
Returns
Type Description
UnaryCallable<CreateCompanionAgentRequest,CompanionAgent>
Overrides

deleteCompanionAgentCallable()

public UnaryCallable<DeleteCompanionAgentRequest,Empty> deleteCompanionAgentCallable()
Returns
Type Description
UnaryCallable<DeleteCompanionAgentRequest,Empty>
Overrides

getCompanionAgentCallable()

public UnaryCallable<GetCompanionAgentRequest,CompanionAgent> getCompanionAgentCallable()
Returns
Type Description
UnaryCallable<GetCompanionAgentRequest,CompanionAgent>
Overrides

getLocationCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCompanionAgentsCallable()

public UnaryCallable<ListCompanionAgentsRequest,ListCompanionAgentsResponse> listCompanionAgentsCallable()
Returns
Type Description
UnaryCallable<ListCompanionAgentsRequest,ListCompanionAgentsResponse>
Overrides

listCompanionAgentsPagedCallable()

public UnaryCallable<ListCompanionAgentsRequest,CompanionAgentsClient.ListCompanionAgentsPagedResponse> listCompanionAgentsPagedCallable()
Returns
Type Description
UnaryCallable<ListCompanionAgentsRequest,ListCompanionAgentsPagedResponse>
Overrides

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,CompanionAgentsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCompanionAgentCallable()

public UnaryCallable<UpdateCompanionAgentRequest,CompanionAgent> updateCompanionAgentCallable()
Returns
Type Description
UnaryCallable<UpdateCompanionAgentRequest,CompanionAgent>
Overrides