Interface Examples

  • All Known Implementing Classes:
    ExamplesImpl

    public interface Examples
    An instance of this class provides access to all the operations defined in Examples.
    • Method Detail

      • add

        LabelExampleResponse add​(UUID appId,
                                 String versionId,
                                 ExampleLabelObject exampleLabelObject,
                                 AddExamplesOptionalParameter addOptionalParameter)
        Adds a labeled example utterance in a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        exampleLabelObject - A labeled example utterance with the expected intent and entities.
        addOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the LabelExampleResponse object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        ErrorResponseException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • addAsync

        rx.Observable<LabelExampleResponse> addAsync​(UUID appId,
                                                     String versionId,
                                                     ExampleLabelObject exampleLabelObject,
                                                     AddExamplesOptionalParameter addOptionalParameter)
        Adds a labeled example utterance in a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        exampleLabelObject - A labeled example utterance with the expected intent and entities.
        addOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the observable to the LabelExampleResponse object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • batch

        List<BatchLabelExample> batch​(UUID appId,
                                      String versionId,
                                      List<ExampleLabelObject> exampleLabelObjectArray,
                                      BatchOptionalParameter batchOptionalParameter)
        Adds a batch of labeled example utterances to a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        exampleLabelObjectArray - Array of example utterances.
        batchOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the List<BatchLabelExample> object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        ErrorResponseException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • batchAsync

        rx.Observable<List<BatchLabelExample>> batchAsync​(UUID appId,
                                                          String versionId,
                                                          List<ExampleLabelObject> exampleLabelObjectArray,
                                                          BatchOptionalParameter batchOptionalParameter)
        Adds a batch of labeled example utterances to a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        exampleLabelObjectArray - Array of example utterances.
        batchOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the observable to the List<BatchLabelExample> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • list

        List<LabeledUtterance> list​(UUID appId,
                                    String versionId,
                                    ListExamplesOptionalParameter listOptionalParameter)
        Returns example utterances to be reviewed from a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        listOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the List<LabeledUtterance> object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        ErrorResponseException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • listAsync

        rx.Observable<List<LabeledUtterance>> listAsync​(UUID appId,
                                                        String versionId,
                                                        ListExamplesOptionalParameter listOptionalParameter)
        Returns example utterances to be reviewed from a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        listOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the observable to the List<LabeledUtterance> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • delete

        OperationStatus delete​(UUID appId,
                               String versionId,
                               int exampleId)
        Deletes the labeled example utterances with the specified ID from a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        exampleId - The example ID.
        Returns:
        the OperationStatus object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        ErrorResponseException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • deleteAsync

        rx.Observable<OperationStatus> deleteAsync​(UUID appId,
                                                   String versionId,
                                                   int exampleId)
        Deletes the labeled example utterances with the specified ID from a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        exampleId - The example ID.
        Returns:
        the observable to the OperationStatus object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation