Interface SessionInputOrBuilder (0.19.0)

public interface SessionInputOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAudio()

public abstract ByteString getAudio()

Optional. Audio data from the end user.

bytes audio = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The audio.

getBlob()

public abstract Blob getBlob()

Optional. Blob data from the end user.

.google.cloud.ces.v1beta.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Blob

The blob.

getBlobOrBuilder()

public abstract BlobOrBuilder getBlobOrBuilder()

Optional. Blob data from the end user.

.google.cloud.ces.v1beta.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BlobOrBuilder

getDtmf()

public abstract String getDtmf()

Optional. DTMF digits from the end user.

string dtmf = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The dtmf.

getDtmfBytes()

public abstract ByteString getDtmfBytes()

Optional. DTMF digits from the end user.

string dtmf = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for dtmf.

getEvent()

public abstract Event getEvent()

Optional. Event input.

.google.cloud.ces.v1beta.Event event = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Event

The event.

getEventOrBuilder()

public abstract EventOrBuilder getEventOrBuilder()

Optional. Event input.

.google.cloud.ces.v1beta.Event event = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EventOrBuilder

getImage()

public abstract Image getImage()

Optional. Image data from the end user.

.google.cloud.ces.v1beta.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Image

The image.

getImageOrBuilder()

public abstract ImageOrBuilder getImageOrBuilder()

Optional. Image data from the end user.

.google.cloud.ces.v1beta.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImageOrBuilder

getInputTypeCase()

public abstract SessionInput.InputTypeCase getInputTypeCase()
Returns
Type Description
SessionInput.InputTypeCase

getRecordingControl()

public abstract SessionInput.RecordingControl getRecordingControl()

Optional. Whether the conversation may be recorded and logged from here on.

Use this when the app, rather than the agent, decides what may be kept: for example when the end user has to consent to being recorded before anything about the call can be stored.

The value stays in effect until the client sends a different one, so it only needs to be sent when the answer changes. Whatever is in effect when a turn completes decides that turn, both whether its audio reaches the recording bucket and whether its transcript reaches conversation history, BigQuery and Cloud Logging. It covers the agent's side of the turn as well as the end user's.

Turns that complete before the client first sends this are recorded according to the app's logging settings, as though the field did not exist.

If more than one input in the same request sets it, the last one wins.

.google.cloud.ces.v1beta.SessionInput.RecordingControl recording_control = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SessionInput.RecordingControl

The recordingControl.

getRecordingControlValue()

public abstract int getRecordingControlValue()

Optional. Whether the conversation may be recorded and logged from here on.

Use this when the app, rather than the agent, decides what may be kept: for example when the end user has to consent to being recorded before anything about the call can be stored.

The value stays in effect until the client sends a different one, so it only needs to be sent when the answer changes. Whatever is in effect when a turn completes decides that turn, both whether its audio reaches the recording bucket and whether its transcript reaches conversation history, BigQuery and Cloud Logging. It covers the agent's side of the turn as well as the end user's.

Turns that complete before the client first sends this are recorded according to the app's logging settings, as though the field did not exist.

If more than one input in the same request sets it, the last one wins.

.google.cloud.ces.v1beta.SessionInput.RecordingControl recording_control = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for recordingControl.

getText()

public abstract String getText()

Optional. Text data from the end user.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

Optional. Text data from the end user.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for text.

getToolResponses()

public abstract ToolResponses getToolResponses()

Optional. Execution results for the tool calls from the client.

.google.cloud.ces.v1beta.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ToolResponses

The toolResponses.

getToolResponsesOrBuilder()

public abstract ToolResponsesOrBuilder getToolResponsesOrBuilder()

Optional. Execution results for the tool calls from the client.

.google.cloud.ces.v1beta.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ToolResponsesOrBuilder

getVariables()

public abstract Struct getVariables()

Optional. Contextual variables for the session, keyed by name. Only variables declared in the app will be used by the CES agent.

Unrecognized variables will still be sent to the Dialogflow agent as additional session parameters.

.google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The variables.

getVariablesOrBuilder()

public abstract StructOrBuilder getVariablesOrBuilder()

Optional. Contextual variables for the session, keyed by name. Only variables declared in the app will be used by the CES agent.

Unrecognized variables will still be sent to the Dialogflow agent as additional session parameters.

.google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getWillContinue()

public abstract boolean getWillContinue()

Optional. A flag to indicate if the current message is a fragment of a larger input in the bidi streaming session.

When set to true, the agent defers processing until it receives a subsequent message where will_continue is false, or until the system detects an endpoint in the audio input.

NOTE: This field does not apply to audio and DTMF inputs, as they are always processed automatically based on the endpointing signal.

bool will_continue = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The willContinue.

hasAudio()

public abstract boolean hasAudio()

Optional. Audio data from the end user.

bytes audio = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the audio field is set.

hasBlob()

public abstract boolean hasBlob()

Optional. Blob data from the end user.

.google.cloud.ces.v1beta.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the blob field is set.

hasDtmf()

public abstract boolean hasDtmf()

Optional. DTMF digits from the end user.

string dtmf = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the dtmf field is set.

hasEvent()

public abstract boolean hasEvent()

Optional. Event input.

.google.cloud.ces.v1beta.Event event = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the event field is set.

hasImage()

public abstract boolean hasImage()

Optional. Image data from the end user.

.google.cloud.ces.v1beta.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the image field is set.

hasText()

public abstract boolean hasText()

Optional. Text data from the end user.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the text field is set.

hasToolResponses()

public abstract boolean hasToolResponses()

Optional. Execution results for the tool calls from the client.

.google.cloud.ces.v1beta.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the toolResponses field is set.

hasVariables()

public abstract boolean hasVariables()

Optional. Contextual variables for the session, keyed by name. Only variables declared in the app will be used by the CES agent.

Unrecognized variables will still be sent to the Dialogflow agent as additional session parameters.

.google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the variables field is set.