Class EntityTypesGrpc.EntityTypesBlockingV2Stub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<EntityTypesGrpc.EntityTypesBlockingV2Stub>
com.google.cloud.dialogflow.v2.EntityTypesGrpc.EntityTypesBlockingV2Stub
Enclosing class:
EntityTypesGrpc

public static final class EntityTypesGrpc.EntityTypesBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<EntityTypesGrpc.EntityTypesBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service EntityTypes.
 Service for managing [EntityTypes][google.cloud.dialogflow.v2.EntityType].
 
  • Method Details

    • build

      protected EntityTypesGrpc.EntityTypesBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<EntityTypesGrpc.EntityTypesBlockingV2Stub>
    • listEntityTypes

      public ListEntityTypesResponse listEntityTypes(ListEntityTypesRequest request) throws io.grpc.StatusException
       Returns the list of all entity types in the specified agent.
       
      Throws:
      io.grpc.StatusException
    • getEntityType

      public EntityType getEntityType(GetEntityTypeRequest request) throws io.grpc.StatusException
       Retrieves the specified entity type.
       
      Throws:
      io.grpc.StatusException
    • createEntityType

      public EntityType createEntityType(CreateEntityTypeRequest request) throws io.grpc.StatusException
       Creates an entity type 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
    • updateEntityType

      public EntityType updateEntityType(UpdateEntityTypeRequest request) throws io.grpc.StatusException
       Updates the specified entity type.
       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
    • deleteEntityType

      public com.google.protobuf.Empty deleteEntityType(DeleteEntityTypeRequest request) throws io.grpc.StatusException
       Deletes the specified entity type.
       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
    • batchUpdateEntityTypes

      public Operation batchUpdateEntityTypes(BatchUpdateEntityTypesRequest request) throws io.grpc.StatusException
       Updates/Creates multiple entity types 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`:
       [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse]
       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
    • batchDeleteEntityTypes

      public Operation batchDeleteEntityTypes(BatchDeleteEntityTypesRequest request) throws io.grpc.StatusException
       Deletes entity types 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
    • batchCreateEntities

      public Operation batchCreateEntities(BatchCreateEntitiesRequest request) throws io.grpc.StatusException
       Creates multiple new entities in the specified entity type.
       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
    • batchUpdateEntities

      public Operation batchUpdateEntities(BatchUpdateEntitiesRequest request) throws io.grpc.StatusException
       Updates or creates multiple entities in the specified entity type. This
       method does not affect entities in the entity type that aren't explicitly
       specified in the request.
       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
    • batchDeleteEntities

      public Operation batchDeleteEntities(BatchDeleteEntitiesRequest request) throws io.grpc.StatusException
       Deletes entities in the specified entity type.
       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