Class HttpJsonAgentsStub (4.57.0)

public class HttpJsonAgentsStub extends AgentsStub

REST stub implementation for the Agents service API.

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

Inheritance

java.lang.Object > AgentsStub > HttpJsonAgentsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(AgentsStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonAgentsStub(AgentsStubSettings settings, ClientContext clientContext)

protected HttpJsonAgentsStub(AgentsStubSettings settings, ClientContext clientContext)

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

HttpJsonAgentsStub(AgentsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonAgentsStub(AgentsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getLocationCallable()

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

getValidationResultCallable()

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

importAgentCallable()

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

importAgentOperationCallable()

public OperationCallable<ImportAgentRequest,Empty,Struct> importAgentOperationCallable()
Returns
Type Description
OperationCallable<ImportAgentRequest,Empty,Struct>
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,AgentsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
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

searchAgentsCallable()

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

searchAgentsPagedCallable()

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

setAgentCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

trainAgentCallable()

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

trainAgentOperationCallable()

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