com.smartgwt.client.ai

## Class BuildCriterionResponse

- java.lang.Object
- - com.smartgwt.client.core.JsObject
  - - com.smartgwt.client.core.DataClass
    - - com.smartgwt.client.core.RefDataClass
      - - com.smartgwt.client.util.AsyncOperationResult
        - - com.smartgwt.client.ai.BuildViaAIResponse
          - - com.smartgwt.client.ai.BuildCriterionResponse

- All Implemented Interfaces:
    com.google.gwt.event.shared.HasHandlers

      public class BuildCriterionResponse
      extends BuildViaAIResponse

  Represents a response to a request to build an `AdvancedCriteria` object from a natural language description of a filter.
  See Also:
    `AI.buildCriterion(com.smartgwt.client.ai.BuildCriterionRequest, com.smartgwt.client.callbacks.BuildCriterionResponseCallback)`

- - ### Field Summary

    - ### Fields inherited from class com.smartgwt.client.core.RefDataClass

      `id`

    - ### Fields inherited from class com.smartgwt.client.core.DataClass

      `factoryCreated, factoryProperties`

    - ### Fields inherited from class com.smartgwt.client.core.JsObject

      `jsObj`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `BuildCriterionResponse()`
    `BuildCriterionResponse(com.google.gwt.core.client.JavaScriptObject jsObj)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `AdvancedCriteria` | `getCriterion()` If successful, the generated `AdvancedCriteria` for the user's natural language description of a filter.
    `static BuildCriterionResponse` | `getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)`
    `BuildCriterionResponse` | `setCriterion(AdvancedCriteria criterion)` If successful, the generated `AdvancedCriteria` for the user's natural language description of a filter.

    - ### Methods inherited from class com.smartgwt.client.util.AsyncOperationResult

      `getCancellationReason, getDisabledMessage, getErrorMessage, getType, setCancellationReason, setDisabledMessage, setErrorMessage, setType`

    - ### Methods inherited from class com.smartgwt.client.core.RefDataClass

      `getRef, getRef, internalSetID`

    - ### Methods inherited from class com.smartgwt.client.core.DataClass

      `applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated`

    - ### Methods inherited from class com.smartgwt.client.core.JsObject

      `equals, getJsObj, hashCode, isCreated, setJavaScriptObject, setJsObj`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BuildCriterionResponse

          public BuildCriterionResponse()

    - #### BuildCriterionResponse

          public BuildCriterionResponse(com.google.gwt.core.client.JavaScriptObject jsObj)

  - ### Method Detail

    - #### getOrCreateRef

          public static BuildCriterionResponse getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)

    - #### setCriterion

          public BuildCriterionResponse setCriterion(AdvancedCriteria criterion)

      If successful, the generated `AdvancedCriteria` for the user's natural language description of a filter.
      Parameters:
        `criterion` - New criterion value. Default value is null
      Returns:
        `BuildCriterionResponse` instance, for chaining setter calls

    - #### getCriterion

          public AdvancedCriteria getCriterion()

      If successful, the generated `AdvancedCriteria` for the user's natural language description of a filter.
      Returns:
        Current criterion value. Default value is null