Class HttpJsonAgentsStub (0.52.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
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonAgentsStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonAgentsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonAgentsStub
Exceptions
TypeDescription
IOException

create(AgentsStubSettings settings)

public static final HttpJsonAgentsStub create(AgentsStubSettings settings)
Parameter
NameDescription
settingsAgentsStubSettings
Returns
TypeDescription
HttpJsonAgentsStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsAgentsStubSettings
clientContextClientContext

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

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

createAgentCallable()

public UnaryCallable<CreateAgentRequest,Agent> createAgentCallable()
Returns
TypeDescription
UnaryCallable<CreateAgentRequest,Agent>
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

getAgentValidationResultCallable()

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

getGenerativeSettingsCallable()

public UnaryCallable<GetGenerativeSettingsRequest,GenerativeSettings> getGenerativeSettingsCallable()
Returns
TypeDescription
UnaryCallable<GetGenerativeSettingsRequest,GenerativeSettings>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getLocationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listAgentsCallable()

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

listAgentsPagedCallable()

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

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,AgentsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateAgentCallable()

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

updateGenerativeSettingsCallable()

public UnaryCallable<UpdateGenerativeSettingsRequest,GenerativeSettings> updateGenerativeSettingsCallable()
Returns
TypeDescription
UnaryCallable<UpdateGenerativeSettingsRequest,GenerativeSettings>
Overrides

validateAgentCallable()

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