Interface SlotValueOverride.Builder

    • Method Detail

      • shape

        SlotValueOverride.Builder shape​(String shape)

        When the shape value is List, it indicates that the values field contains a list of slot values. When the value is Scalar, it indicates that the value field contains a single value.

        Parameters:
        shape - When the shape value is List, it indicates that the values field contains a list of slot values. When the value is Scalar, it indicates that the value field contains a single value.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        SlotShape, SlotShape
      • shape

        SlotValueOverride.Builder shape​(SlotShape shape)

        When the shape value is List, it indicates that the values field contains a list of slot values. When the value is Scalar, it indicates that the value field contains a single value.

        Parameters:
        shape - When the shape value is List, it indicates that the values field contains a list of slot values. When the value is Scalar, it indicates that the value field contains a single value.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        SlotShape, SlotShape
      • value

        SlotValueOverride.Builder value​(SlotValue value)

        The current value of the slot.

        Parameters:
        value - The current value of the slot.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • values

        SlotValueOverride.Builder values​(Collection<SlotValueOverride> values)

        A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."

        Parameters:
        values - A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • values

        SlotValueOverride.Builder values​(SlotValueOverride... values)

        A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."

        Parameters:
        values - A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
        Returns:
        Returns a reference to this object so that method calls can be chained together.