public final class SessionInput extends GeneratedMessage implements SessionInputOrBuilder
Input for the session.
Protobuf type google.cloud.ces.v1.SessionInput
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int AUDIO_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int BLOB_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int DTMF_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int EVENT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int IMAGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TOOL_RESPONSES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int VARIABLES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int WILL_CONTINUE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static SessionInput getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static SessionInput.Builder newBuilder()
public static SessionInput.Builder newBuilder(SessionInput prototype)
public static SessionInput parseDelimitedFrom(InputStream input)
public static SessionInput parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SessionInput parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static SessionInput parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SessionInput parseFrom(ByteString data)
public static SessionInput parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SessionInput parseFrom(CodedInputStream input)
public static SessionInput parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SessionInput parseFrom(InputStream input)
public static SessionInput parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SessionInput parseFrom(ByteBuffer data)
public static SessionInput parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<SessionInput> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public ByteString getAudio()
Optional. Audio data from the end user.
bytes audio = 2 [(.google.api.field_behavior) = OPTIONAL];
Optional. Blob data from the end user.
.google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
Blob |
The blob.
|
public BlobOrBuilder getBlobOrBuilder()
Optional. Blob data from the end user.
.google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL];
public SessionInput getDefaultInstanceForType()
Optional. DTMF digits from the end user.
string dtmf = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The dtmf.
|
public 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.
|
Optional. Event input.
.google.cloud.ces.v1.Event event = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
Event |
The event.
|
public EventOrBuilder getEventOrBuilder()
Optional. Event input.
.google.cloud.ces.v1.Event event = 9 [(.google.api.field_behavior) = OPTIONAL];
Optional. Image data from the end user.
.google.cloud.ces.v1.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
Image |
The image.
|
public ImageOrBuilder getImageOrBuilder()
Optional. Image data from the end user.
.google.cloud.ces.v1.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
public SessionInput.InputTypeCase getInputTypeCase()
public Parser<SessionInput> getParserForType()
Overrides
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getText()
Optional. Text data from the end user.
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The text.
|
getTextBytes()
public 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.
|
public ToolResponses getToolResponses()
Optional. Execution results for the tool calls from the client.
.google.cloud.ces.v1.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL];
public ToolResponsesOrBuilder getToolResponsesOrBuilder()
Optional. Execution results for the tool calls from the client.
.google.cloud.ces.v1.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL];
public 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.
|
public 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];
public boolean getWillContinue()
Optional. A flag to indicate if the current message is a fragment of a
larger input in the bidi streaming session. When true, the agent will
defer processing until a subsequent message with will_continue set to
false is received.
Note: This flag has no effect on audio and DTMF inputs, which are always
processed in real-time.
bool will_continue = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
The willContinue.
|
public 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.
|
Optional. Blob data from the end user.
.google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the blob field is set.
|
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.
|
public boolean hasEvent()
Optional. Event input.
.google.cloud.ces.v1.Event event = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the event field is set.
|
public boolean hasImage()
Optional. Image data from the end user.
.google.cloud.ces.v1.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the image field is set.
|
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.
|
public boolean hasToolResponses()
Optional. Execution results for the tool calls from the client.
.google.cloud.ces.v1.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the toolResponses field is set.
|
public 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.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public SessionInput.Builder newBuilderForType()
protected SessionInput.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public SessionInput.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides