- 0.63.0 (latest)
- 0.62.0
- 0.60.0
- 0.59.0
- 0.58.0
- 0.57.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.7
- 0.13.1
- 0.12.1
- 0.11.5
public static final class TransitionRoute.Builder extends GeneratedMessageV3.Builder<TransitionRoute.Builder> implements TransitionRouteOrBuilder
A transition route specifies a 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
associated with the transition, it will be called. - If there is a
target_page
associated with the transition, the session will transition into the specified page. - If there is a
target_flow
associated with the transition, the session will transition into the specified flow.
Protobuf type google.cloud.dialogflow.cx.v3.TransitionRoute
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TransitionRoute.BuilderImplements
TransitionRouteOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TransitionRoute.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TransitionRoute.Builder |
build()
public TransitionRoute build()
Type | Description |
TransitionRoute |
buildPartial()
public TransitionRoute buildPartial()
Type | Description |
TransitionRoute |
clear()
public TransitionRoute.Builder clear()
Type | Description |
TransitionRoute.Builder |
clearCondition()
public TransitionRoute.Builder clearCondition()
The condition to evaluate against form parameters or
session parameters.
See the conditions
reference.
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;
Type | Description |
TransitionRoute.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public TransitionRoute.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
TransitionRoute.Builder |
clearIntent()
public TransitionRoute.Builder clearIntent()
The unique identifier of an 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) = { ... }
Type | Description |
TransitionRoute.Builder | 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];
Type | Description |
TransitionRoute.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public TransitionRoute.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
TransitionRoute.Builder |
clearTarget()
public TransitionRoute.Builder clearTarget()
Type | Description |
TransitionRoute.Builder |
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) = { ... }
Type | Description |
TransitionRoute.Builder | 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) = { ... }
Type | Description |
TransitionRoute.Builder | This builder for chaining. |
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;
Type | Description |
TransitionRoute.Builder |
clone()
public TransitionRoute.Builder clone()
Type | Description |
TransitionRoute.Builder |
getCondition()
public String getCondition()
The condition to evaluate against form parameters or
session parameters.
See the conditions
reference.
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;
Type | Description |
String | The condition. |
getConditionBytes()
public ByteString getConditionBytes()
The condition to evaluate against form parameters or
session parameters.
See the conditions
reference.
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;
Type | Description |
ByteString | The bytes for condition. |
getDefaultInstanceForType()
public TransitionRoute getDefaultInstanceForType()
Type | Description |
TransitionRoute |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getIntent()
public String getIntent()
The unique identifier of an 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) = { ... }
Type | Description |
String | The intent. |
getIntentBytes()
public ByteString getIntentBytes()
The unique identifier of an 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) = { ... }
Type | Description |
ByteString | The bytes for intent. |
getName()
public String getName()
Output only. The unique identifier of this transition route.
string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Output only. The unique identifier of this transition route.
string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ByteString | The bytes for name. |
getTargetCase()
public TransitionRoute.TargetCase getTargetCase()
Type | Description |
TransitionRoute.TargetCase |
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) = { ... }
Type | Description |
String | The targetFlow. |
getTargetFlowBytes()
public 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) = { ... }
Type | Description |
ByteString | The bytes for targetFlow. |
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) = { ... }
Type | Description |
String | The targetPage. |
getTargetPageBytes()
public 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) = { ... }
Type | Description |
ByteString | The bytes for targetPage. |
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;
Type | Description |
Fulfillment | The triggerFulfillment. |
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;
Type | Description |
Fulfillment.Builder |
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;
Type | Description |
FulfillmentOrBuilder |
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) = { ... }
Type | Description |
boolean | Whether the targetFlow field is set. |
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) = { ... }
Type | Description |
boolean | Whether the targetPage field is set. |
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;
Type | Description |
boolean | Whether the triggerFulfillment field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(TransitionRoute other)
public TransitionRoute.Builder mergeFrom(TransitionRoute other)
Name | Description |
other | TransitionRoute |
Type | Description |
TransitionRoute.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TransitionRoute.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TransitionRoute.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public TransitionRoute.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
TransitionRoute.Builder |
mergeTriggerFulfillment(Fulfillment value)
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;
Name | Description |
value | Fulfillment |
Type | Description |
TransitionRoute.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TransitionRoute.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TransitionRoute.Builder |
setCondition(String value)
public TransitionRoute.Builder setCondition(String value)
The condition to evaluate against form parameters or
session parameters.
See the conditions
reference.
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;
Name | Description |
value | String The condition to set. |
Type | Description |
TransitionRoute.Builder | This builder for chaining. |
setConditionBytes(ByteString value)
public TransitionRoute.Builder setConditionBytes(ByteString value)
The condition to evaluate against form parameters or
session parameters.
See the conditions
reference.
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;
Name | Description |
value | ByteString The bytes for condition to set. |
Type | Description |
TransitionRoute.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public TransitionRoute.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TransitionRoute.Builder |
setIntent(String value)
public TransitionRoute.Builder setIntent(String value)
The unique identifier of an 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) = { ... }
Name | Description |
value | String The intent to set. |
Type | Description |
TransitionRoute.Builder | This builder for chaining. |
setIntentBytes(ByteString value)
public TransitionRoute.Builder setIntentBytes(ByteString value)
The unique identifier of an 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) = { ... }
Name | Description |
value | ByteString The bytes for intent to set. |
Type | Description |
TransitionRoute.Builder | This builder for chaining. |
setName(String value)
public TransitionRoute.Builder setName(String value)
Output only. The unique identifier of this transition route.
string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | String The name to set. |
Type | Description |
TransitionRoute.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public TransitionRoute.Builder setNameBytes(ByteString value)
Output only. The unique identifier of this transition route.
string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
TransitionRoute.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TransitionRoute.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
TransitionRoute.Builder |
setTargetFlow(String value)
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) = { ... }
Name | Description |
value | String The targetFlow to set. |
Type | Description |
TransitionRoute.Builder | This builder for chaining. |
setTargetFlowBytes(ByteString value)
public TransitionRoute.Builder setTargetFlowBytes(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) = { ... }
Name | Description |
value | ByteString The bytes for targetFlow to set. |
Type | Description |
TransitionRoute.Builder | This builder for chaining. |
setTargetPage(String value)
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) = { ... }
Name | Description |
value | String The targetPage to set. |
Type | Description |
TransitionRoute.Builder | This builder for chaining. |
setTargetPageBytes(ByteString value)
public TransitionRoute.Builder setTargetPageBytes(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) = { ... }
Name | Description |
value | ByteString The bytes for targetPage to set. |
Type | Description |
TransitionRoute.Builder | This builder for chaining. |
setTriggerFulfillment(Fulfillment value)
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;
Name | Description |
value | Fulfillment |
Type | Description |
TransitionRoute.Builder |
setTriggerFulfillment(Fulfillment.Builder builderForValue)
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;
Name | Description |
builderForValue | Fulfillment.Builder |
Type | Description |
TransitionRoute.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final TransitionRoute.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TransitionRoute.Builder |