Class GrpcAgentsStub (4.6.0)

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
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcAgentsStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(AgentsStubSettings settings)

public static final GrpcAgentsStub create(AgentsStubSettings settings)
Parameter
NameDescription
settingsAgentsStubSettings
Returns
TypeDescription
GrpcAgentsStub
Exceptions
TypeDescription
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
NameDescription
settingsAgentsStubSettings
clientContextClientContext

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
NameDescription
settingsAgentsStubSettings
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

deleteAgentCallable()

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

exportAgentCallable()

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

exportAgentOperationCallable()

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

getAgentCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

getValidationResultCallable()

public UnaryCallable<GetValidationResultRequest,ValidationResult> getValidationResultCallable()
Returns
TypeDescription
UnaryCallable<GetValidationResultRequest,ValidationResult>
Overrides

importAgentCallable()

public UnaryCallable<ImportAgentRequest,Operation> importAgentCallable()
Returns
TypeDescription
UnaryCallable<ImportAgentRequest,Operation>
Overrides

importAgentOperationCallable()

public OperationCallable<ImportAgentRequest,Empty,Struct> importAgentOperationCallable()
Returns
TypeDescription
OperationCallable<ImportAgentRequest,Empty,Struct>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

restoreAgentCallable()

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

restoreAgentOperationCallable()

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

searchAgentsCallable()

public UnaryCallable<SearchAgentsRequest,SearchAgentsResponse> searchAgentsCallable()
Returns
TypeDescription
UnaryCallable<SearchAgentsRequest,SearchAgentsResponse>
Overrides

searchAgentsPagedCallable()

public UnaryCallable<SearchAgentsRequest,AgentsClient.SearchAgentsPagedResponse> searchAgentsPagedCallable()
Returns
TypeDescription
UnaryCallable<SearchAgentsRequest,SearchAgentsPagedResponse>
Overrides

setAgentCallable()

public UnaryCallable<SetAgentRequest,Agent> setAgentCallable()
Returns
TypeDescription
UnaryCallable<SetAgentRequest,Agent>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

trainAgentCallable()

public UnaryCallable<TrainAgentRequest,Operation> trainAgentCallable()
Returns
TypeDescription
UnaryCallable<TrainAgentRequest,Operation>
Overrides

trainAgentOperationCallable()

public OperationCallable<TrainAgentRequest,Empty,Struct> trainAgentOperationCallable()
Returns
TypeDescription
OperationCallable<TrainAgentRequest,Empty,Struct>
Overrides