Class ErrorHandlingSettings.EndSessionConfig.Builder (0.9.0)

public static final class ErrorHandlingSettings.EndSessionConfig.Builder extends GeneratedMessage.Builder<ErrorHandlingSettings.EndSessionConfig.Builder> implements ErrorHandlingSettings.EndSessionConfigOrBuilder

Configuration for ending the session in case of system errors (e.g. LLM errors).

Protobuf type google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ErrorHandlingSettings.EndSessionConfig build()
Returns
Type Description
ErrorHandlingSettings.EndSessionConfig

buildPartial()

public ErrorHandlingSettings.EndSessionConfig buildPartial()
Returns
Type Description
ErrorHandlingSettings.EndSessionConfig

clear()

public ErrorHandlingSettings.EndSessionConfig.Builder clear()
Returns
Type Description
ErrorHandlingSettings.EndSessionConfig.Builder
Overrides

clearEscalateSession()

public ErrorHandlingSettings.EndSessionConfig.Builder clearEscalateSession()

Optional. Whether to escalate the session in EndSession. If session is escalated, metadata in EndSession will contain session_escalated = true. See https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent for details.

optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ErrorHandlingSettings.EndSessionConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public ErrorHandlingSettings.EndSessionConfig getDefaultInstanceForType()
Returns
Type Description
ErrorHandlingSettings.EndSessionConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEscalateSession()

public boolean getEscalateSession()

Optional. Whether to escalate the session in EndSession. If session is escalated, metadata in EndSession will contain session_escalated = true. See https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent for details.

optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The escalateSession.

hasEscalateSession()

public boolean hasEscalateSession()

Optional. Whether to escalate the session in EndSession. If session is escalated, metadata in EndSession will contain session_escalated = true. See https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent for details.

optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the escalateSession field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ErrorHandlingSettings.EndSessionConfig other)

public ErrorHandlingSettings.EndSessionConfig.Builder mergeFrom(ErrorHandlingSettings.EndSessionConfig other)
Parameter
Name Description
other ErrorHandlingSettings.EndSessionConfig
Returns
Type Description
ErrorHandlingSettings.EndSessionConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ErrorHandlingSettings.EndSessionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorHandlingSettings.EndSessionConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ErrorHandlingSettings.EndSessionConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ErrorHandlingSettings.EndSessionConfig.Builder
Overrides

setEscalateSession(boolean value)

public ErrorHandlingSettings.EndSessionConfig.Builder setEscalateSession(boolean value)

Optional. Whether to escalate the session in EndSession. If session is escalated, metadata in EndSession will contain session_escalated = true. See https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent for details.

optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The escalateSession to set.

Returns
Type Description
ErrorHandlingSettings.EndSessionConfig.Builder

This builder for chaining.