Class GrpcAgentsStub (0.12.1)

public class GrpcAgentsStub extends AgentsStub

gRPC stub implementation for the Agents service API.

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

Inheritance

java.lang.Object > AgentsStub > GrpcAgentsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(AgentsStubSettings settings)

public static final GrpcAgentsStub create(AgentsStubSettings settings)
Parameter
Name Description
settings AgentsStubSettings
Returns
Type Description
GrpcAgentsStub
Exceptions
Type Description
IOException

Constructors

GrpcAgentsStub(AgentsStubSettings settings, ClientContext clientContext)

protected GrpcAgentsStub(AgentsStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcAgentsStub, 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 AgentsStubSettings
clientContext ClientContext

GrpcAgentsStub(AgentsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcAgentsStub(AgentsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

createAgentCallable()

public UnaryCallable<CreateAgentRequest,Agent> createAgentCallable()
Returns
Type Description
UnaryCallable<CreateAgentRequest,Agent>
Overrides

deleteAgentCallable()

public UnaryCallable<DeleteAgentRequest,Empty> deleteAgentCallable()
Returns
Type Description
UnaryCallable<DeleteAgentRequest,Empty>
Overrides

exportAgentCallable()

public UnaryCallable<ExportAgentRequest,Operation> exportAgentCallable()
Returns
Type Description
UnaryCallable<ExportAgentRequest,Operation>
Overrides

exportAgentOperationCallable()

public OperationCallable<ExportAgentRequest,ExportAgentResponse,Struct> exportAgentOperationCallable()
Returns
Type Description
OperationCallable<ExportAgentRequest,ExportAgentResponse,Struct>
Overrides

getAgentCallable()

public UnaryCallable<GetAgentRequest,Agent> getAgentCallable()
Returns
Type Description
UnaryCallable<GetAgentRequest,Agent>
Overrides

getAgentValidationResultCallable()

public UnaryCallable<GetAgentValidationResultRequest,AgentValidationResult> getAgentValidationResultCallable()
Returns
Type Description
UnaryCallable<GetAgentValidationResultRequest,AgentValidationResult>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listAgentsCallable()

public UnaryCallable<ListAgentsRequest,ListAgentsResponse> listAgentsCallable()
Returns
Type Description
UnaryCallable<ListAgentsRequest,ListAgentsResponse>
Overrides

listAgentsPagedCallable()

public UnaryCallable<ListAgentsRequest,AgentsClient.ListAgentsPagedResponse> listAgentsPagedCallable()
Returns
Type Description
UnaryCallable<ListAgentsRequest,ListAgentsPagedResponse>
Overrides

restoreAgentCallable()

public UnaryCallable<RestoreAgentRequest,Operation> restoreAgentCallable()
Returns
Type Description
UnaryCallable<RestoreAgentRequest,Operation>
Overrides

restoreAgentOperationCallable()

public OperationCallable<RestoreAgentRequest,Empty,Struct> restoreAgentOperationCallable()
Returns
Type Description
OperationCallable<RestoreAgentRequest,Empty,Struct>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateAgentCallable()

public UnaryCallable<UpdateAgentRequest,Agent> updateAgentCallable()
Returns
Type Description
UnaryCallable<UpdateAgentRequest,Agent>
Overrides

validateAgentCallable()

public UnaryCallable<ValidateAgentRequest,AgentValidationResult> validateAgentCallable()
Returns
Type Description
UnaryCallable<ValidateAgentRequest,AgentValidationResult>
Overrides