Class IntentsGrpc.IntentsStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<IntentsGrpc.IntentsStub>
com.google.cloud.dialogflow.v2.IntentsGrpc.IntentsStub
Enclosing class:
IntentsGrpc

public static final class IntentsGrpc.IntentsStub extends io.grpc.stub.AbstractAsyncStub<IntentsGrpc.IntentsStub>
A stub to allow clients to do asynchronous 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 Type
    Method
    Description
    void
    batchDeleteIntents(BatchDeleteIntentsRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
    Deletes intents in the specified agent.
    void
    batchUpdateIntents(BatchUpdateIntentsRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
    Updates/Creates multiple intents in the specified agent.
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    void
    createIntent(CreateIntentRequest request, io.grpc.stub.StreamObserver<Intent> responseObserver)
    Creates an intent in the specified agent.
    void
    deleteIntent(DeleteIntentRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
    Deletes the specified intent and its direct or indirect followup intents.
    void
    getIntent(GetIntentRequest request, io.grpc.stub.StreamObserver<Intent> responseObserver)
    Retrieves the specified intent.
    void
    listIntents(ListIntentsRequest request, io.grpc.stub.StreamObserver<ListIntentsResponse> responseObserver)
    Returns the list of all intents in the specified agent.
    void
    updateIntent(UpdateIntentRequest request, io.grpc.stub.StreamObserver<Intent> responseObserver)
    Updates the specified intent.

    Methods inherited from class io.grpc.stub.AbstractAsyncStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

      protected IntentsGrpc.IntentsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<IntentsGrpc.IntentsStub>
    • listIntents

      public void listIntents(ListIntentsRequest request, io.grpc.stub.StreamObserver<ListIntentsResponse> responseObserver)
       Returns the list of all intents in the specified agent.
       
    • getIntent

      public void getIntent(GetIntentRequest request, io.grpc.stub.StreamObserver<Intent> responseObserver)
       Retrieves the specified intent.
       
    • createIntent

      public void createIntent(CreateIntentRequest request, io.grpc.stub.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).
       
    • updateIntent

      public void updateIntent(UpdateIntentRequest request, io.grpc.stub.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).
       
    • deleteIntent

      public void deleteIntent(DeleteIntentRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.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).
       
    • batchUpdateIntents

      public void batchUpdateIntents(BatchUpdateIntentsRequest request, io.grpc.stub.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).
       
    • batchDeleteIntents

      public void batchDeleteIntents(BatchDeleteIntentsRequest request, io.grpc.stub.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).