Class HttpJsonIntentsStub (0.53.0)

public class HttpJsonIntentsStub extends IntentsStub

REST stub implementation for the Intents service API.

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

Inheritance

java.lang.Object > IntentsStub > HttpJsonIntentsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(IntentsStubSettings settings)

public static final HttpJsonIntentsStub create(IntentsStubSettings settings)
Parameter
Name Description
settings IntentsStubSettings
Returns
Type Description
HttpJsonIntentsStub
Exceptions
Type Description
IOException

getMethodDescriptors()

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

Constructors

HttpJsonIntentsStub(IntentsStubSettings settings, ClientContext clientContext)

protected HttpJsonIntentsStub(IntentsStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonIntentsStub, 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 IntentsStubSettings
clientContext ClientContext

HttpJsonIntentsStub(IntentsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonIntentsStub(IntentsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

createIntentCallable()

public UnaryCallable<CreateIntentRequest,Intent> createIntentCallable()
Returns
Type Description
UnaryCallable<CreateIntentRequest,Intent>
Overrides

deleteIntentCallable()

public UnaryCallable<DeleteIntentRequest,Empty> deleteIntentCallable()
Returns
Type Description
UnaryCallable<DeleteIntentRequest,Empty>
Overrides

exportIntentsCallable()

public UnaryCallable<ExportIntentsRequest,Operation> exportIntentsCallable()
Returns
Type Description
UnaryCallable<ExportIntentsRequest,Operation>
Overrides

exportIntentsOperationCallable()

public OperationCallable<ExportIntentsRequest,ExportIntentsResponse,ExportIntentsMetadata> exportIntentsOperationCallable()
Returns
Type Description
OperationCallable<ExportIntentsRequest,ExportIntentsResponse,ExportIntentsMetadata>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getIntentCallable()

public UnaryCallable<GetIntentRequest,Intent> getIntentCallable()
Returns
Type Description
UnaryCallable<GetIntentRequest,Intent>
Overrides

getLocationCallable()

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

importIntentsCallable()

public UnaryCallable<ImportIntentsRequest,Operation> importIntentsCallable()
Returns
Type Description
UnaryCallable<ImportIntentsRequest,Operation>
Overrides

importIntentsOperationCallable()

public OperationCallable<ImportIntentsRequest,ImportIntentsResponse,ImportIntentsMetadata> importIntentsOperationCallable()
Returns
Type Description
OperationCallable<ImportIntentsRequest,ImportIntentsResponse,ImportIntentsMetadata>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listIntentsCallable()

public UnaryCallable<ListIntentsRequest,ListIntentsResponse> listIntentsCallable()
Returns
Type Description
UnaryCallable<ListIntentsRequest,ListIntentsResponse>
Overrides

listIntentsPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateIntentCallable()

public UnaryCallable<UpdateIntentRequest,Intent> updateIntentCallable()
Returns
Type Description
UnaryCallable<UpdateIntentRequest,Intent>
Overrides