Class TransitionRoute.Builder

  • All Implemented Interfaces:
    TransitionRouteOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    TransitionRoute

    public static final class TransitionRoute.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<TransitionRoute.Builder>
    implements TransitionRouteOrBuilder
     A transition route specifies a [intent][google.cloud.dialogflow.cx.v3.Intent]
     that can be matched and/or a data condition that can be evaluated during a
     session. When a specified transition is matched, the following actions are
     taken in order:
    
     *   If there is a
     [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.TransitionRoute.trigger_fulfillment]
     associated with the transition, it will be called.
     *   If there is a
     [`target_page`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_page]
     associated with the transition, the session will transition into the
     specified page.
     *   If there is a
     [`target_flow`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_flow]
     associated with the transition, the session will transition into the
     specified flow.
     
    Protobuf type google.cloud.dialogflow.cx.v3.TransitionRoute
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TransitionRoute.Builder>
      • clear

        public TransitionRoute.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<TransitionRoute.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TransitionRoute.Builder>
      • getDefaultInstanceForType

        public TransitionRoute getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public TransitionRoute build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public TransitionRoute buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public TransitionRoute.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<TransitionRoute.Builder>
      • setField

        public TransitionRoute.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<TransitionRoute.Builder>
      • clearField

        public TransitionRoute.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TransitionRoute.Builder>
      • clearOneof

        public TransitionRoute.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TransitionRoute.Builder>
      • setRepeatedField

        public TransitionRoute.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransitionRoute.Builder>
      • addRepeatedField

        public TransitionRoute.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransitionRoute.Builder>
      • mergeFrom

        public TransitionRoute.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransitionRoute.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TransitionRoute.Builder>
      • mergeFrom

        public TransitionRoute.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransitionRoute.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Output only. The unique identifier of this transition route.
         
        string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface TransitionRouteOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The unique identifier of this transition route.
         
        string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface TransitionRouteOrBuilder
        Returns:
        The bytes for name.
      • setName

        public TransitionRoute.Builder setName​(String value)
         Output only. The unique identifier of this transition route.
         
        string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public TransitionRoute.Builder clearName()
         Output only. The unique identifier of this transition route.
         
        string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public TransitionRoute.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The unique identifier of this transition route.
         
        string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDescription

        public String getDescription()
         Optional. The description of the transition route. The maximum length is
         500 characters.
         
        string description = 8 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDescription in interface TransitionRouteOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Optional. The description of the transition route. The maximum length is
         500 characters.
         
        string description = 8 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDescriptionBytes in interface TransitionRouteOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public TransitionRoute.Builder setDescription​(String value)
         Optional. The description of the transition route. The maximum length is
         500 characters.
         
        string description = 8 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public TransitionRoute.Builder clearDescription()
         Optional. The description of the transition route. The maximum length is
         500 characters.
         
        string description = 8 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public TransitionRoute.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Optional. The description of the transition route. The maximum length is
         500 characters.
         
        string description = 8 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • getIntent

        public String getIntent()
         The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3.Intent].
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/intents/<Intent ID>`.
         Indicates that the transition can only happen when the given intent is
         matched.
         At least one of `intent` or `condition` must be specified. When both
         `intent` and `condition` are specified, the transition can only happen
         when both are fulfilled.
         
        string intent = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getIntent in interface TransitionRouteOrBuilder
        Returns:
        The intent.
      • getIntentBytes

        public com.google.protobuf.ByteString getIntentBytes()
         The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3.Intent].
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/intents/<Intent ID>`.
         Indicates that the transition can only happen when the given intent is
         matched.
         At least one of `intent` or `condition` must be specified. When both
         `intent` and `condition` are specified, the transition can only happen
         when both are fulfilled.
         
        string intent = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getIntentBytes in interface TransitionRouteOrBuilder
        Returns:
        The bytes for intent.
      • setIntent

        public TransitionRoute.Builder setIntent​(String value)
         The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3.Intent].
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/intents/<Intent ID>`.
         Indicates that the transition can only happen when the given intent is
         matched.
         At least one of `intent` or `condition` must be specified. When both
         `intent` and `condition` are specified, the transition can only happen
         when both are fulfilled.
         
        string intent = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The intent to set.
        Returns:
        This builder for chaining.
      • clearIntent

        public TransitionRoute.Builder clearIntent()
         The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3.Intent].
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/intents/<Intent ID>`.
         Indicates that the transition can only happen when the given intent is
         matched.
         At least one of `intent` or `condition` must be specified. When both
         `intent` and `condition` are specified, the transition can only happen
         when both are fulfilled.
         
        string intent = 1 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setIntentBytes

        public TransitionRoute.Builder setIntentBytes​(com.google.protobuf.ByteString value)
         The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3.Intent].
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/intents/<Intent ID>`.
         Indicates that the transition can only happen when the given intent is
         matched.
         At least one of `intent` or `condition` must be specified. When both
         `intent` and `condition` are specified, the transition can only happen
         when both are fulfilled.
         
        string intent = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for intent to set.
        Returns:
        This builder for chaining.
      • getCondition

        public String getCondition()
         The condition to evaluate against [form
         parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
         parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
        
         See the [conditions
         reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
         At least one of `intent` or `condition` must be specified. When both
         `intent` and `condition` are specified, the transition can only happen
         when both are fulfilled.
         
        string condition = 2;
        Specified by:
        getCondition in interface TransitionRouteOrBuilder
        Returns:
        The condition.
      • getConditionBytes

        public com.google.protobuf.ByteString getConditionBytes()
         The condition to evaluate against [form
         parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
         parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
        
         See the [conditions
         reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
         At least one of `intent` or `condition` must be specified. When both
         `intent` and `condition` are specified, the transition can only happen
         when both are fulfilled.
         
        string condition = 2;
        Specified by:
        getConditionBytes in interface TransitionRouteOrBuilder
        Returns:
        The bytes for condition.
      • setCondition

        public TransitionRoute.Builder setCondition​(String value)
         The condition to evaluate against [form
         parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
         parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
        
         See the [conditions
         reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
         At least one of `intent` or `condition` must be specified. When both
         `intent` and `condition` are specified, the transition can only happen
         when both are fulfilled.
         
        string condition = 2;
        Parameters:
        value - The condition to set.
        Returns:
        This builder for chaining.
      • clearCondition

        public TransitionRoute.Builder clearCondition()
         The condition to evaluate against [form
         parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
         parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
        
         See the [conditions
         reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
         At least one of `intent` or `condition` must be specified. When both
         `intent` and `condition` are specified, the transition can only happen
         when both are fulfilled.
         
        string condition = 2;
        Returns:
        This builder for chaining.
      • setConditionBytes

        public TransitionRoute.Builder setConditionBytes​(com.google.protobuf.ByteString value)
         The condition to evaluate against [form
         parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
         parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
        
         See the [conditions
         reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
         At least one of `intent` or `condition` must be specified. When both
         `intent` and `condition` are specified, the transition can only happen
         when both are fulfilled.
         
        string condition = 2;
        Parameters:
        value - The bytes for condition to set.
        Returns:
        This builder for chaining.
      • hasTriggerFulfillment

        public boolean hasTriggerFulfillment()
         The fulfillment to call when the condition is satisfied. At least one of
         `trigger_fulfillment` and `target` must be specified. When both are
         defined, `trigger_fulfillment` is executed first.
         
        .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 3;
        Specified by:
        hasTriggerFulfillment in interface TransitionRouteOrBuilder
        Returns:
        Whether the triggerFulfillment field is set.
      • getTriggerFulfillment

        public Fulfillment getTriggerFulfillment()
         The fulfillment to call when the condition is satisfied. At least one of
         `trigger_fulfillment` and `target` must be specified. When both are
         defined, `trigger_fulfillment` is executed first.
         
        .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 3;
        Specified by:
        getTriggerFulfillment in interface TransitionRouteOrBuilder
        Returns:
        The triggerFulfillment.
      • setTriggerFulfillment

        public TransitionRoute.Builder setTriggerFulfillment​(Fulfillment value)
         The fulfillment to call when the condition is satisfied. At least one of
         `trigger_fulfillment` and `target` must be specified. When both are
         defined, `trigger_fulfillment` is executed first.
         
        .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 3;
      • setTriggerFulfillment

        public TransitionRoute.Builder setTriggerFulfillment​(Fulfillment.Builder builderForValue)
         The fulfillment to call when the condition is satisfied. At least one of
         `trigger_fulfillment` and `target` must be specified. When both are
         defined, `trigger_fulfillment` is executed first.
         
        .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 3;
      • mergeTriggerFulfillment

        public TransitionRoute.Builder mergeTriggerFulfillment​(Fulfillment value)
         The fulfillment to call when the condition is satisfied. At least one of
         `trigger_fulfillment` and `target` must be specified. When both are
         defined, `trigger_fulfillment` is executed first.
         
        .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 3;
      • clearTriggerFulfillment

        public TransitionRoute.Builder clearTriggerFulfillment()
         The fulfillment to call when the condition is satisfied. At least one of
         `trigger_fulfillment` and `target` must be specified. When both are
         defined, `trigger_fulfillment` is executed first.
         
        .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 3;
      • getTriggerFulfillmentBuilder

        public Fulfillment.Builder getTriggerFulfillmentBuilder()
         The fulfillment to call when the condition is satisfied. At least one of
         `trigger_fulfillment` and `target` must be specified. When both are
         defined, `trigger_fulfillment` is executed first.
         
        .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 3;
      • getTriggerFulfillmentOrBuilder

        public FulfillmentOrBuilder getTriggerFulfillmentOrBuilder()
         The fulfillment to call when the condition is satisfied. At least one of
         `trigger_fulfillment` and `target` must be specified. When both are
         defined, `trigger_fulfillment` is executed first.
         
        .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 3;
        Specified by:
        getTriggerFulfillmentOrBuilder in interface TransitionRouteOrBuilder
      • hasTargetPage

        public boolean hasTargetPage()
         The target page to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/pages/<Page ID>`.
         
        string target_page = 4 [(.google.api.resource_reference) = { ... }
        Specified by:
        hasTargetPage in interface TransitionRouteOrBuilder
        Returns:
        Whether the targetPage field is set.
      • getTargetPage

        public String getTargetPage()
         The target page to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/pages/<Page ID>`.
         
        string target_page = 4 [(.google.api.resource_reference) = { ... }
        Specified by:
        getTargetPage in interface TransitionRouteOrBuilder
        Returns:
        The targetPage.
      • getTargetPageBytes

        public com.google.protobuf.ByteString getTargetPageBytes()
         The target page to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/pages/<Page ID>`.
         
        string target_page = 4 [(.google.api.resource_reference) = { ... }
        Specified by:
        getTargetPageBytes in interface TransitionRouteOrBuilder
        Returns:
        The bytes for targetPage.
      • setTargetPage

        public TransitionRoute.Builder setTargetPage​(String value)
         The target page to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/pages/<Page ID>`.
         
        string target_page = 4 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The targetPage to set.
        Returns:
        This builder for chaining.
      • clearTargetPage

        public TransitionRoute.Builder clearTargetPage()
         The target page to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/pages/<Page ID>`.
         
        string target_page = 4 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setTargetPageBytes

        public TransitionRoute.Builder setTargetPageBytes​(com.google.protobuf.ByteString value)
         The target page to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/pages/<Page ID>`.
         
        string target_page = 4 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for targetPage to set.
        Returns:
        This builder for chaining.
      • hasTargetFlow

        public boolean hasTargetFlow()
         The target flow to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>`.
         
        string target_flow = 5 [(.google.api.resource_reference) = { ... }
        Specified by:
        hasTargetFlow in interface TransitionRouteOrBuilder
        Returns:
        Whether the targetFlow field is set.
      • getTargetFlow

        public String getTargetFlow()
         The target flow to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>`.
         
        string target_flow = 5 [(.google.api.resource_reference) = { ... }
        Specified by:
        getTargetFlow in interface TransitionRouteOrBuilder
        Returns:
        The targetFlow.
      • getTargetFlowBytes

        public com.google.protobuf.ByteString getTargetFlowBytes()
         The target flow to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>`.
         
        string target_flow = 5 [(.google.api.resource_reference) = { ... }
        Specified by:
        getTargetFlowBytes in interface TransitionRouteOrBuilder
        Returns:
        The bytes for targetFlow.
      • setTargetFlow

        public TransitionRoute.Builder setTargetFlow​(String value)
         The target flow to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>`.
         
        string target_flow = 5 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The targetFlow to set.
        Returns:
        This builder for chaining.
      • clearTargetFlow

        public TransitionRoute.Builder clearTargetFlow()
         The target flow to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>`.
         
        string target_flow = 5 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setTargetFlowBytes

        public TransitionRoute.Builder setTargetFlowBytes​(com.google.protobuf.ByteString value)
         The target flow to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>`.
         
        string target_flow = 5 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for targetFlow to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final TransitionRoute.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransitionRoute.Builder>
      • mergeUnknownFields

        public final TransitionRoute.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransitionRoute.Builder>