com.smartgwt.client.ai

## Class BuildCriterionContext

- java.lang.Object
- - com.smartgwt.client.core.JsObject
  - - com.smartgwt.client.core.DataClass
    - - com.smartgwt.client.core.RefDataClass
      - - com.smartgwt.client.util.AsyncOperationContext
        - - com.smartgwt.client.ai.BuildViaAIContext
          - - com.smartgwt.client.ai.BuildCriterionContext

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

      public class BuildCriterionContext
      extends BuildViaAIContext

  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
    `BuildCriterionContext()`
    `BuildCriterionContext(com.google.gwt.core.client.JavaScriptObject jsObj)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `BuildCriterionRequest` | `getBuildRequest()` The initial request.
    `AIServiceMode` | `getMode()` The AI service mode being used to process the request.
    `static BuildCriterionContext` | `getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)`
    `BuildCriterionContext` | `setBuildRequest(BuildCriterionRequest buildRequest)` The initial request.
    `BuildCriterionContext` | `setMode(AIServiceMode mode)` The AI service mode being used to process the request.

    - ### Methods inherited from class com.smartgwt.client.ai.BuildViaAIContext

      `setBuildRequest`

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

      `getCancellationController, setCancellationController`

    - ### 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

    - #### BuildCriterionContext

          public BuildCriterionContext()

    - #### BuildCriterionContext

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

  - ### Method Detail

    - #### getOrCreateRef

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

    - #### setBuildRequest

          public BuildCriterionContext setBuildRequest(BuildCriterionRequest buildRequest)

      The initial request. It is read-only; do not modify it during handling of the request.
      Parameters:
        `buildRequest` - New buildRequest value. Default value is *initialized by the implementation*
      Returns:
        `BuildCriterionContext` instance, for chaining setter calls

    - #### getBuildRequest

          public BuildCriterionRequest getBuildRequest()

      The initial request. It is read-only; do not modify it during handling of the request.
      Overrides:
        `getBuildRequest` in class `BuildViaAIContext`
      Returns:
        Current buildRequest value. Default value is *initialized by the implementation*

    - #### setMode

          public BuildCriterionContext setMode(AIServiceMode mode)

      The AI service mode being used to process the request.
      Parameters:
        `mode` - New mode value. Default value is *initialized by the implementation*
      Returns:
        `BuildCriterionContext` instance, for chaining setter calls

    - #### getMode

          public AIServiceMode getMode()

      The AI service mode being used to process the request.
      Returns:
        Current mode value. Default value is *initialized by the implementation*