Package com.google.cloud.dialogflow.v2
Class IntentsGrpc.IntentsBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<IntentsGrpc.IntentsBlockingV2Stub>
com.google.cloud.dialogflow.v2.IntentsGrpc.IntentsBlockingV2Stub
- Enclosing class:
- IntentsGrpc
public static final class IntentsGrpc.IntentsBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<IntentsGrpc.IntentsBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service Intents.
Service for managing [Intents][google.cloud.dialogflow.v2.Intent].
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionDeletes intents in the specified agent.Updates/Creates multiple intents in the specified agent.protected IntentsGrpc.IntentsBlockingV2Stubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) createIntent(CreateIntentRequest request) Creates an intent in the specified agent.com.google.protobuf.EmptydeleteIntent(DeleteIntentRequest request) Deletes the specified intent and its direct or indirect followup intents.getIntent(GetIntentRequest request) Retrieves the specified intent.listIntents(ListIntentsRequest request) Returns the list of all intents in the specified agent.updateIntent(UpdateIntentRequest request) Updates the specified intent.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected IntentsGrpc.IntentsBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<IntentsGrpc.IntentsBlockingV2Stub>
-
listIntents
Returns the list of all intents in the specified agent.
- Throws:
io.grpc.StatusException
-
getIntent
Retrieves the specified intent.
- Throws:
io.grpc.StatusException
-
createIntent
Creates an intent in the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).
- Throws:
io.grpc.StatusException
-
updateIntent
Updates the specified intent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).
- Throws:
io.grpc.StatusException
-
deleteIntent
public com.google.protobuf.Empty deleteIntent(DeleteIntentRequest request) throws io.grpc.StatusException Deletes the specified intent and its direct or indirect followup intents. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).
- Throws:
io.grpc.StatusException
-
batchUpdateIntents
public Operation batchUpdateIntents(BatchUpdateIntentsRequest request) throws io.grpc.StatusException Updates/Creates multiple intents in the specified agent. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse] Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).
- Throws:
io.grpc.StatusException
-
batchDeleteIntents
public Operation batchDeleteIntents(BatchDeleteIntentsRequest request) throws io.grpc.StatusException Deletes intents in the specified agent. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).
- Throws:
io.grpc.StatusException
-