public final class SessionInfo extends GeneratedMessageV3 implements SessionInfoOrBuilder
Represents session information communicated to and from the webhook.
Protobuf type google.cloud.dialogflow.cx.v3.SessionInfo
Static Fields
PARAMETERS_FIELD_NUMBER
public static final int PARAMETERS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SESSION_FIELD_NUMBER
public static final int SESSION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static SessionInfo getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SessionInfo.Builder newBuilder()
newBuilder(SessionInfo prototype)
public static SessionInfo.Builder newBuilder(SessionInfo prototype)
public static SessionInfo parseDelimitedFrom(InputStream input)
public static SessionInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SessionInfo parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SessionInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SessionInfo parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SessionInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SessionInfo parseFrom(CodedInputStream input)
public static SessionInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SessionInfo parseFrom(InputStream input)
public static SessionInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SessionInfo parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SessionInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SessionInfo> parser()
Methods
containsParameters(String key)
public boolean containsParameters(String key)
Optional for
WebhookRequest. Optional
for WebhookResponse. All
parameters collected from forms and intents during the session. Parameters
can be created, updated, or removed by the webhook. To remove a parameter
from the session, the webhook should explicitly set the parameter value to
null in WebhookResponse.
The map is keyed by parameters' display names.
map<string, .google.protobuf.Value> parameters = 2;
Parameter |
Name |
Description |
key |
String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public SessionInfo getDefaultInstanceForType()
getParameters()
public Map<String,Value> getParameters()
getParametersCount()
public int getParametersCount()
Optional for
WebhookRequest. Optional
for WebhookResponse. All
parameters collected from forms and intents during the session. Parameters
can be created, updated, or removed by the webhook. To remove a parameter
from the session, the webhook should explicitly set the parameter value to
null in WebhookResponse.
The map is keyed by parameters' display names.
map<string, .google.protobuf.Value> parameters = 2;
Returns |
Type |
Description |
int |
|
getParametersMap()
public Map<String,Value> getParametersMap()
Optional for
WebhookRequest. Optional
for WebhookResponse. All
parameters collected from forms and intents during the session. Parameters
can be created, updated, or removed by the webhook. To remove a parameter
from the session, the webhook should explicitly set the parameter value to
null in WebhookResponse.
The map is keyed by parameters' display names.
map<string, .google.protobuf.Value> parameters = 2;
getParametersOrDefault(String key, Value defaultValue)
public Value getParametersOrDefault(String key, Value defaultValue)
Optional for
WebhookRequest. Optional
for WebhookResponse. All
parameters collected from forms and intents during the session. Parameters
can be created, updated, or removed by the webhook. To remove a parameter
from the session, the webhook should explicitly set the parameter value to
null in WebhookResponse.
The map is keyed by parameters' display names.
map<string, .google.protobuf.Value> parameters = 2;
Parameters |
Name |
Description |
key |
String
|
defaultValue |
Value
|
Returns |
Type |
Description |
Value |
|
getParametersOrThrow(String key)
public Value getParametersOrThrow(String key)
Optional for
WebhookRequest. Optional
for WebhookResponse. All
parameters collected from forms and intents during the session. Parameters
can be created, updated, or removed by the webhook. To remove a parameter
from the session, the webhook should explicitly set the parameter value to
null in WebhookResponse.
The map is keyed by parameters' display names.
map<string, .google.protobuf.Value> parameters = 2;
Parameter |
Name |
Description |
key |
String
|
Returns |
Type |
Description |
Value |
|
getParserForType()
public Parser<SessionInfo> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getSession()
public String getSession()
Always present for
WebhookRequest. Ignored for
WebhookResponse. The
unique identifier of the
session. This
field can be used by the webhook to identify a session.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/sessions/<Session ID>
or projects/<Project ID>/locations/<Location
ID>/agents/<Agent ID>/environments/<Environment ID>/sessions/<Session ID>
if environment is specified.
string session = 1 [(.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
String |
The session.
|
getSessionBytes()
public ByteString getSessionBytes()
Always present for
WebhookRequest. Ignored for
WebhookResponse. The
unique identifier of the
session. This
field can be used by the webhook to identify a session.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/sessions/<Session ID>
or projects/<Project ID>/locations/<Location
ID>/agents/<Agent ID>/environments/<Environment ID>/sessions/<Session ID>
if environment is specified.
string session = 1 [(.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for session.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
Name |
Description |
number |
int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SessionInfo.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SessionInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public SessionInfo.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides