public final class SessionInfo extends GeneratedMessageV3 implements SessionInfoOrBuilder
Represents session information communicated to and from the webhook.
Protobuf type google.cloud.dialogflow.cx.v3beta1.SessionInfo
Static Fields
PARAMETERS_FIELD_NUMBER
public static final int PARAMETERS_FIELD_NUMBER
Field Value
SESSION_FIELD_NUMBER
public static final int SESSION_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static SessionInfo getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static SessionInfo.Builder newBuilder()
Returns
newBuilder(SessionInfo prototype)
public static SessionInfo.Builder newBuilder(SessionInfo prototype)
Parameter
Returns
public static SessionInfo parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static SessionInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static SessionInfo parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SessionInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static SessionInfo parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SessionInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SessionInfo parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static SessionInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SessionInfo parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static SessionInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static SessionInfo parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SessionInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<SessionInfo> parser()
Returns
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
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public SessionInfo getDefaultInstanceForType()
Returns
getParameters()
public Map<String,Value> getParameters()
Returns
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
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;
Returns
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
Returns
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
Returns
getParserForType()
public Parser<SessionInfo> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
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()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Name |
Description |
number |
int
|
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public SessionInfo.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SessionInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public SessionInfo.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions