public static final class IntentsGrpc.IntentsStub extends AbstractAsyncStub<IntentsGrpc.IntentsStub>
Service for managing [Intents][google.cloud.dialogflow.v2.Intent].
AbstractStub.StubFactory<T extends AbstractStub<T>>
Modifier and Type | Method and Description |
---|---|
void |
batchDeleteIntents(BatchDeleteIntentsRequest request,
StreamObserver<Operation> responseObserver)
Deletes intents in the specified agent.
|
void |
batchUpdateIntents(BatchUpdateIntentsRequest request,
StreamObserver<Operation> responseObserver)
Updates/Creates multiple intents in the specified agent.
|
protected IntentsGrpc.IntentsStub |
build(Channel channel,
CallOptions callOptions) |
void |
createIntent(CreateIntentRequest request,
StreamObserver<Intent> responseObserver)
Creates an intent in the specified agent.
|
void |
deleteIntent(DeleteIntentRequest request,
StreamObserver<Empty> responseObserver)
Deletes the specified intent and its direct or indirect followup intents.
|
void |
getIntent(GetIntentRequest request,
StreamObserver<Intent> responseObserver)
Retrieves the specified intent.
|
void |
listIntents(ListIntentsRequest request,
StreamObserver<ListIntentsResponse> responseObserver)
Returns the list of all intents in the specified agent.
|
void |
updateIntent(UpdateIntentRequest request,
StreamObserver<Intent> responseObserver)
Updates the specified intent.
|
newStub, newStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
protected IntentsGrpc.IntentsStub build(Channel channel, CallOptions callOptions)
build
in class AbstractStub<IntentsGrpc.IntentsStub>
public void listIntents(ListIntentsRequest request, StreamObserver<ListIntentsResponse> responseObserver)
Returns the list of all intents in the specified agent.
public void getIntent(GetIntentRequest request, StreamObserver<Intent> responseObserver)
Retrieves the specified intent.
public void createIntent(CreateIntentRequest request, StreamObserver<Intent> responseObserver)
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).
public void updateIntent(UpdateIntentRequest request, StreamObserver<Intent> responseObserver)
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).
public void deleteIntent(DeleteIntentRequest request, StreamObserver<Empty> responseObserver)
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).
public void batchUpdateIntents(BatchUpdateIntentsRequest request, StreamObserver<Operation> responseObserver)
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).
public void batchDeleteIntents(BatchDeleteIntentsRequest request, StreamObserver<Operation> responseObserver)
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).
Copyright © 2022 Google LLC. All rights reserved.