Interface Features

  • All Known Implementing Classes:
    FeaturesImpl

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

      • addPhraseList

        int addPhraseList​(UUID appId,
                          String versionId,
                          PhraselistCreateObject phraselistCreateObject)
        Creates a new phraselist feature in a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        phraselistCreateObject - A Phraselist object containing Name, comma-separated Phrases and the isExchangeable boolean. Default value for isExchangeable is true.
        Returns:
        the int 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
      • addPhraseListAsync

        rx.Observable<Integer> addPhraseListAsync​(UUID appId,
                                                  String versionId,
                                                  PhraselistCreateObject phraselistCreateObject)
        Creates a new phraselist feature in a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        phraselistCreateObject - A Phraselist object containing Name, comma-separated Phrases and the isExchangeable boolean. Default value for isExchangeable is true.
        Returns:
        the observable to the int object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listPhraseLists

        List<PhraseListFeatureInfo> listPhraseLists​(UUID appId,
                                                    String versionId,
                                                    ListPhraseListsOptionalParameter listPhraseListsOptionalParameter)
        Gets all the phraselist features in a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        listPhraseListsOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the List<PhraseListFeatureInfo> 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
      • listPhraseListsAsync

        rx.Observable<List<PhraseListFeatureInfo>> listPhraseListsAsync​(UUID appId,
                                                                        String versionId,
                                                                        ListPhraseListsOptionalParameter listPhraseListsOptionalParameter)
        Gets all the phraselist features in a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        listPhraseListsOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the observable to the List<PhraseListFeatureInfo> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • list

        FeaturesResponseObject list​(UUID appId,
                                    String versionId,
                                    ListFeaturesOptionalParameter listOptionalParameter)
        Gets all the extraction phraselist and pattern features in 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 FeaturesResponseObject 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<FeaturesResponseObject> listAsync​(UUID appId,
                                                        String versionId,
                                                        ListFeaturesOptionalParameter listOptionalParameter)
        Gets all the extraction phraselist and pattern features in 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 FeaturesResponseObject object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • getPhraseList

        PhraseListFeatureInfo getPhraseList​(UUID appId,
                                            String versionId,
                                            int phraselistId)
        Gets phraselist feature info in a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        phraselistId - The ID of the feature to be retrieved.
        Returns:
        the PhraseListFeatureInfo 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
      • getPhraseListAsync

        rx.Observable<PhraseListFeatureInfo> getPhraseListAsync​(UUID appId,
                                                                String versionId,
                                                                int phraselistId)
        Gets phraselist feature info in a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        phraselistId - The ID of the feature to be retrieved.
        Returns:
        the observable to the PhraseListFeatureInfo object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • updatePhraseList

        OperationStatus updatePhraseList​(UUID appId,
                                         String versionId,
                                         int phraselistId,
                                         UpdatePhraseListOptionalParameter updatePhraseListOptionalParameter)
        Updates the phrases, the state and the name of the phraselist feature in a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        phraselistId - The ID of the feature to be updated.
        updatePhraseListOptionalParameter - the object representing the optional parameters to be set before calling this API
        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
      • updatePhraseListAsync

        rx.Observable<OperationStatus> updatePhraseListAsync​(UUID appId,
                                                             String versionId,
                                                             int phraselistId,
                                                             UpdatePhraseListOptionalParameter updatePhraseListOptionalParameter)
        Updates the phrases, the state and the name of the phraselist feature in a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        phraselistId - The ID of the feature to be updated.
        updatePhraseListOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the observable to the OperationStatus object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • deletePhraseList

        OperationStatus deletePhraseList​(UUID appId,
                                         String versionId,
                                         int phraselistId)
        Deletes a phraselist feature from a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        phraselistId - The ID of the feature to be deleted.
        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
      • deletePhraseListAsync

        rx.Observable<OperationStatus> deletePhraseListAsync​(UUID appId,
                                                             String versionId,
                                                             int phraselistId)
        Deletes a phraselist feature from a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        phraselistId - The ID of the feature to be deleted.
        Returns:
        the observable to the OperationStatus object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • addIntentFeature

        OperationStatus addIntentFeature​(UUID appId,
                                         String versionId,
                                         UUID intentId,
                                         ModelFeatureInformation featureRelationCreateObject)
        Adds a new feature relation to be used by the intent in a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        intentId - The intent classifier ID.
        featureRelationCreateObject - A Feature relation information object.
        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
      • addIntentFeatureAsync

        rx.Observable<OperationStatus> addIntentFeatureAsync​(UUID appId,
                                                             String versionId,
                                                             UUID intentId,
                                                             ModelFeatureInformation featureRelationCreateObject)
        Adds a new feature relation to be used by the intent in a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        intentId - The intent classifier ID.
        featureRelationCreateObject - A Feature relation information object.
        Returns:
        the observable to the OperationStatus object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • addEntityFeature

        OperationStatus addEntityFeature​(UUID appId,
                                         String versionId,
                                         UUID entityId,
                                         ModelFeatureInformation featureRelationCreateObject)
        Adds a new feature relation to be used by the entity in a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        entityId - The entity extractor ID.
        featureRelationCreateObject - A Feature relation information object.
        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
      • addEntityFeatureAsync

        rx.Observable<OperationStatus> addEntityFeatureAsync​(UUID appId,
                                                             String versionId,
                                                             UUID entityId,
                                                             ModelFeatureInformation featureRelationCreateObject)
        Adds a new feature relation to be used by the entity in a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        entityId - The entity extractor ID.
        featureRelationCreateObject - A Feature relation information object.
        Returns:
        the observable to the OperationStatus object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation