Class SessionConfig (0.1.0)

public final class SessionConfig extends GeneratedMessage implements SessionConfigOrBuilder

The configuration for the session.

Protobuf type google.cloud.ces.v1.SessionConfig

Static Fields

DEPLOYMENT_FIELD_NUMBER

public static final int DEPLOYMENT_FIELD_NUMBER
Field Value
Type Description
int

ENTRY_AGENT_FIELD_NUMBER

public static final int ENTRY_AGENT_FIELD_NUMBER
Field Value
Type Description
int

HISTORICAL_CONTEXTS_FIELD_NUMBER

public static final int HISTORICAL_CONTEXTS_FIELD_NUMBER
Field Value
Type Description
int

INPUT_AUDIO_CONFIG_FIELD_NUMBER

public static final int INPUT_AUDIO_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

OUTPUT_AUDIO_CONFIG_FIELD_NUMBER

public static final int OUTPUT_AUDIO_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

REMOTE_DIALOGFLOW_QUERY_PARAMETERS_FIELD_NUMBER

public static final int REMOTE_DIALOGFLOW_QUERY_PARAMETERS_FIELD_NUMBER
Field Value
Type Description
int

SESSION_FIELD_NUMBER

public static final int SESSION_FIELD_NUMBER
Field Value
Type Description
int

TIME_ZONE_FIELD_NUMBER

public static final int TIME_ZONE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SessionConfig getDefaultInstance()
Returns
Type Description
SessionConfig

getDescriptor()

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

newBuilder()

public static SessionConfig.Builder newBuilder()
Returns
Type Description
SessionConfig.Builder

newBuilder(SessionConfig prototype)

public static SessionConfig.Builder newBuilder(SessionConfig prototype)
Parameter
Name Description
prototype SessionConfig
Returns
Type Description
SessionConfig.Builder

parseDelimitedFrom(InputStream input)

public static SessionConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SessionConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SessionConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SessionConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SessionConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SessionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SessionConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SessionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SessionConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SessionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SessionConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SessionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SessionConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SessionConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SessionConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SessionConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SessionConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SessionConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SessionConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SessionConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SessionConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SessionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SessionConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SessionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SessionConfig> parser()
Returns
Type Description
Parser<SessionConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SessionConfig getDefaultInstanceForType()
Returns
Type Description
SessionConfig

getDeployment()

public String getDeployment()

Optional. The deployment of the app to use for the session. Format: projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}

string deployment = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The deployment.

getDeploymentBytes()

public ByteString getDeploymentBytes()

Optional. The deployment of the app to use for the session. Format: projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}

string deployment = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for deployment.

getEntryAgent()

public String getEntryAgent()

Optional. The entry agent to handle the session. If not specified, the session will be handled by the root agent of the app. Format: projects/{project}/locations/{location}/agents/{agent}

string entry_agent = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The entryAgent.

getEntryAgentBytes()

public ByteString getEntryAgentBytes()

Optional. The entry agent to handle the session. If not specified, the session will be handled by the root agent of the app. Format: projects/{project}/locations/{location}/agents/{agent}

string entry_agent = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for entryAgent.

getHistoricalContexts(int index)

public Message getHistoricalContexts(int index)

Optional. The historical context of the session, including user inputs, agent responses, and other messages. Typically, CES agent would manage session automatically so client doesn't need to explicitly populate this field. However, client can optionally override the historical contexts to force the session start from certain state.

repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Message

getHistoricalContextsCount()

public int getHistoricalContextsCount()

Optional. The historical context of the session, including user inputs, agent responses, and other messages. Typically, CES agent would manage session automatically so client doesn't need to explicitly populate this field. However, client can optionally override the historical contexts to force the session start from certain state.

repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getHistoricalContextsList()

public List<Message> getHistoricalContextsList()

Optional. The historical context of the session, including user inputs, agent responses, and other messages. Typically, CES agent would manage session automatically so client doesn't need to explicitly populate this field. However, client can optionally override the historical contexts to force the session start from certain state.

repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Message>

getHistoricalContextsOrBuilder(int index)

public MessageOrBuilder getHistoricalContextsOrBuilder(int index)

Optional. The historical context of the session, including user inputs, agent responses, and other messages. Typically, CES agent would manage session automatically so client doesn't need to explicitly populate this field. However, client can optionally override the historical contexts to force the session start from certain state.

repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
MessageOrBuilder

getHistoricalContextsOrBuilderList()

public List<? extends MessageOrBuilder> getHistoricalContextsOrBuilderList()

Optional. The historical context of the session, including user inputs, agent responses, and other messages. Typically, CES agent would manage session automatically so client doesn't need to explicitly populate this field. However, client can optionally override the historical contexts to force the session start from certain state.

repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.ces.v1.MessageOrBuilder>

getInputAudioConfig()

public InputAudioConfig getInputAudioConfig()

Optional. Configuration for processing the input audio.

.google.cloud.ces.v1.InputAudioConfig input_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InputAudioConfig

The inputAudioConfig.

getInputAudioConfigOrBuilder()

public InputAudioConfigOrBuilder getInputAudioConfigOrBuilder()

Optional. Configuration for processing the input audio.

.google.cloud.ces.v1.InputAudioConfig input_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InputAudioConfigOrBuilder

getOutputAudioConfig()

public OutputAudioConfig getOutputAudioConfig()

Optional. Configuration for generating the output audio.

.google.cloud.ces.v1.OutputAudioConfig output_audio_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OutputAudioConfig

The outputAudioConfig.

getOutputAudioConfigOrBuilder()

public OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder()

Optional. Configuration for generating the output audio.

.google.cloud.ces.v1.OutputAudioConfig output_audio_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OutputAudioConfigOrBuilder

getParserForType()

public Parser<SessionConfig> getParserForType()
Returns
Type Description
Parser<SessionConfig>
Overrides

getRemoteDialogflowQueryParameters()

public SessionConfig.RemoteDialogflowQueryParameters getRemoteDialogflowQueryParameters()

Optional. QueryParameters to send to the remote Dialogflow agent when the session control is transferred to the remote agent.

.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SessionConfig.RemoteDialogflowQueryParameters

The remoteDialogflowQueryParameters.

getRemoteDialogflowQueryParametersOrBuilder()

public SessionConfig.RemoteDialogflowQueryParametersOrBuilder getRemoteDialogflowQueryParametersOrBuilder()

Optional. QueryParameters to send to the remote Dialogflow agent when the session control is transferred to the remote agent.

.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SessionConfig.RemoteDialogflowQueryParametersOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSession()

public String getSession()

Required. The unique identifier of the session. Format: projects/{project}/locations/{location}/apps/{app}/sessions/{session}

string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The session.

getSessionBytes()

public ByteString getSessionBytes()

Required. The unique identifier of the session. Format: projects/{project}/locations/{location}/apps/{app}/sessions/{session}

string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for session.

getTimeZone()

public String getTimeZone()

Optional. The time zone of the user. If provided, the agent will use the time zone for date and time related variables. Otherwise, the agent will use the time zone specified in the App.time_zone_settings.

The format is the IANA Time Zone Database time zone, e.g. "America/Los_Angeles".

string time_zone = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The timeZone.

getTimeZoneBytes()

public ByteString getTimeZoneBytes()

Optional. The time zone of the user. If provided, the agent will use the time zone for date and time related variables. Otherwise, the agent will use the time zone specified in the App.time_zone_settings.

The format is the IANA Time Zone Database time zone, e.g. "America/Los_Angeles".

string time_zone = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for timeZone.

hasInputAudioConfig()

public boolean hasInputAudioConfig()

Optional. Configuration for processing the input audio.

.google.cloud.ces.v1.InputAudioConfig input_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the inputAudioConfig field is set.

hasOutputAudioConfig()

public boolean hasOutputAudioConfig()

Optional. Configuration for generating the output audio.

.google.cloud.ces.v1.OutputAudioConfig output_audio_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the outputAudioConfig field is set.

hasRemoteDialogflowQueryParameters()

public boolean hasRemoteDialogflowQueryParameters()

Optional. QueryParameters to send to the remote Dialogflow agent when the session control is transferred to the remote agent.

.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the remoteDialogflowQueryParameters field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SessionConfig.Builder newBuilderForType()
Returns
Type Description
SessionConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected SessionConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SessionConfig.Builder
Overrides

toBuilder()

public SessionConfig.Builder toBuilder()
Returns
Type Description
SessionConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException