Class IntentState.Builder

  • Enclosing class:
    IntentState

    public static final class IntentState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • action

        public IntentState.Builder action​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> action)
        Parameters:
        action - The name of the action associated with the intent. Note: The action name must not contain whitespaces.
        Returns:
        builder
      • action

        public IntentState.Builder action​(java.lang.String action)
        Parameters:
        action - The name of the action associated with the intent. Note: The action name must not contain whitespaces.
        Returns:
        builder
      • defaultResponsePlatforms

        public IntentState.Builder defaultResponsePlatforms​(@Nullable
                                                            com.pulumi.core.Output<java.util.List<java.lang.String>> defaultResponsePlatforms)
        Parameters:
        defaultResponsePlatforms - The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). Each value may be one of: `FACEBOOK`, `SLACK`, `TELEGRAM`, `KIK`, `SKYPE`, `LINE`, `VIBER`, `ACTIONS_ON_GOOGLE`, `GOOGLE_HANGOUTS`.
        Returns:
        builder
      • defaultResponsePlatforms

        public IntentState.Builder defaultResponsePlatforms​(java.util.List<java.lang.String> defaultResponsePlatforms)
        Parameters:
        defaultResponsePlatforms - The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). Each value may be one of: `FACEBOOK`, `SLACK`, `TELEGRAM`, `KIK`, `SKYPE`, `LINE`, `VIBER`, `ACTIONS_ON_GOOGLE`, `GOOGLE_HANGOUTS`.
        Returns:
        builder
      • defaultResponsePlatforms

        public IntentState.Builder defaultResponsePlatforms​(java.lang.String... defaultResponsePlatforms)
        Parameters:
        defaultResponsePlatforms - The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). Each value may be one of: `FACEBOOK`, `SLACK`, `TELEGRAM`, `KIK`, `SKYPE`, `LINE`, `VIBER`, `ACTIONS_ON_GOOGLE`, `GOOGLE_HANGOUTS`.
        Returns:
        builder
      • displayName

        public IntentState.Builder displayName​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> displayName)
        Parameters:
        displayName - The name of this intent to be displayed on the console. ***
        Returns:
        builder
      • displayName

        public IntentState.Builder displayName​(java.lang.String displayName)
        Parameters:
        displayName - The name of this intent to be displayed on the console. ***
        Returns:
        builder
      • events

        public IntentState.Builder events​(@Nullable
                                          com.pulumi.core.Output<java.util.List<java.lang.String>> events)
        Parameters:
        events - The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. See the [events reference](https://cloud.google.com/dialogflow/docs/events-overview) for more details.
        Returns:
        builder
      • events

        public IntentState.Builder events​(java.util.List<java.lang.String> events)
        Parameters:
        events - The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. See the [events reference](https://cloud.google.com/dialogflow/docs/events-overview) for more details.
        Returns:
        builder
      • events

        public IntentState.Builder events​(java.lang.String... events)
        Parameters:
        events - The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. See the [events reference](https://cloud.google.com/dialogflow/docs/events-overview) for more details.
        Returns:
        builder
      • followupIntentInfos

        public IntentState.Builder followupIntentInfos​(@Nullable
                                                       com.pulumi.core.Output<java.util.List<IntentFollowupIntentInfoArgs>> followupIntentInfos)
        Parameters:
        followupIntentInfos - Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output. Structure is documented below.
        Returns:
        builder
      • followupIntentInfos

        public IntentState.Builder followupIntentInfos​(java.util.List<IntentFollowupIntentInfoArgs> followupIntentInfos)
        Parameters:
        followupIntentInfos - Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output. Structure is documented below.
        Returns:
        builder
      • followupIntentInfos

        public IntentState.Builder followupIntentInfos​(IntentFollowupIntentInfoArgs... followupIntentInfos)
        Parameters:
        followupIntentInfos - Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output. Structure is documented below.
        Returns:
        builder
      • inputContextNames

        public IntentState.Builder inputContextNames​(@Nullable
                                                     com.pulumi.core.Output<java.util.List<java.lang.String>> inputContextNames)
        Parameters:
        inputContextNames - The list of context names required for this intent to be triggered. Format: projects/<Project ID>/agent/sessions/-/contexts/<Context ID>.
        Returns:
        builder
      • inputContextNames

        public IntentState.Builder inputContextNames​(java.util.List<java.lang.String> inputContextNames)
        Parameters:
        inputContextNames - The list of context names required for this intent to be triggered. Format: projects/<Project ID>/agent/sessions/-/contexts/<Context ID>.
        Returns:
        builder
      • inputContextNames

        public IntentState.Builder inputContextNames​(java.lang.String... inputContextNames)
        Parameters:
        inputContextNames - The list of context names required for this intent to be triggered. Format: projects/<Project ID>/agent/sessions/-/contexts/<Context ID>.
        Returns:
        builder
      • isFallback

        public IntentState.Builder isFallback​(@Nullable
                                              com.pulumi.core.Output<java.lang.Boolean> isFallback)
        Parameters:
        isFallback - Indicates whether this is a fallback intent.
        Returns:
        builder
      • isFallback

        public IntentState.Builder isFallback​(java.lang.Boolean isFallback)
        Parameters:
        isFallback - Indicates whether this is a fallback intent.
        Returns:
        builder
      • mlDisabled

        public IntentState.Builder mlDisabled​(@Nullable
                                              com.pulumi.core.Output<java.lang.Boolean> mlDisabled)
        Parameters:
        mlDisabled - Indicates whether Machine Learning is disabled for the intent. Note: If mlDisabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off.
        Returns:
        builder
      • mlDisabled

        public IntentState.Builder mlDisabled​(java.lang.Boolean mlDisabled)
        Parameters:
        mlDisabled - Indicates whether Machine Learning is disabled for the intent. Note: If mlDisabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off.
        Returns:
        builder
      • name

        public IntentState.Builder name​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - The unique identifier of this intent. Format: projects/<Project ID>/agent/intents/<Intent ID>.
        Returns:
        builder
      • name

        public IntentState.Builder name​(java.lang.String name)
        Parameters:
        name - The unique identifier of this intent. Format: projects/<Project ID>/agent/intents/<Intent ID>.
        Returns:
        builder
      • parentFollowupIntentName

        public IntentState.Builder parentFollowupIntentName​(@Nullable
                                                            com.pulumi.core.Output<java.lang.String> parentFollowupIntentName)
        Parameters:
        parentFollowupIntentName - The unique identifier of the parent intent in the chain of followup intents. Format: projects/<Project ID>/agent/intents/<Intent ID>.
        Returns:
        builder
      • parentFollowupIntentName

        public IntentState.Builder parentFollowupIntentName​(java.lang.String parentFollowupIntentName)
        Parameters:
        parentFollowupIntentName - The unique identifier of the parent intent in the chain of followup intents. Format: projects/<Project ID>/agent/intents/<Intent ID>.
        Returns:
        builder
      • priority

        public IntentState.Builder priority​(@Nullable
                                            com.pulumi.core.Output<java.lang.Integer> priority)
        Parameters:
        priority - The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the Normal priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
        Returns:
        builder
      • priority

        public IntentState.Builder priority​(java.lang.Integer priority)
        Parameters:
        priority - The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the Normal priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
        Returns:
        builder
      • project

        public IntentState.Builder project​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> project)
        Parameters:
        project - The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
        Returns:
        builder
      • project

        public IntentState.Builder project​(java.lang.String project)
        Parameters:
        project - The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
        Returns:
        builder
      • resetContexts

        public IntentState.Builder resetContexts​(@Nullable
                                                 com.pulumi.core.Output<java.lang.Boolean> resetContexts)
        Parameters:
        resetContexts - Indicates whether to delete all contexts in the current session when this intent is matched.
        Returns:
        builder
      • resetContexts

        public IntentState.Builder resetContexts​(java.lang.Boolean resetContexts)
        Parameters:
        resetContexts - Indicates whether to delete all contexts in the current session when this intent is matched.
        Returns:
        builder
      • rootFollowupIntentName

        public IntentState.Builder rootFollowupIntentName​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> rootFollowupIntentName)
        Parameters:
        rootFollowupIntentName - The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: projects/<Project ID>/agent/intents/<Intent ID>.
        Returns:
        builder
      • rootFollowupIntentName

        public IntentState.Builder rootFollowupIntentName​(java.lang.String rootFollowupIntentName)
        Parameters:
        rootFollowupIntentName - The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: projects/<Project ID>/agent/intents/<Intent ID>.
        Returns:
        builder
      • webhookState

        public IntentState.Builder webhookState​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> webhookState)
        Parameters:
        webhookState - Indicates whether webhooks are enabled for the intent. * WEBHOOK_STATE_ENABLED: Webhook is enabled in the agent and in the intent. * WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING: Webhook is enabled in the agent and in the intent. Also, each slot filling prompt is forwarded to the webhook. Possible values are: `WEBHOOK_STATE_ENABLED`, `WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING`.
        Returns:
        builder
      • webhookState

        public IntentState.Builder webhookState​(java.lang.String webhookState)
        Parameters:
        webhookState - Indicates whether webhooks are enabled for the intent. * WEBHOOK_STATE_ENABLED: Webhook is enabled in the agent and in the intent. * WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING: Webhook is enabled in the agent and in the intent. Also, each slot filling prompt is forwarded to the webhook. Possible values are: `WEBHOOK_STATE_ENABLED`, `WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING`.
        Returns:
        builder