public static final class SessionInfo.Builder extends GeneratedMessageV3.Builder<SessionInfo.Builder> implements SessionInfoOrBuilder
Represents session information communicated to and from the webhook.
Protobuf type google.cloud.dialogflow.cx.v3beta1.SessionInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SessionInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SessionInfo build()
Returns
buildPartial()
public SessionInfo buildPartial()
Returns
clear()
public SessionInfo.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SessionInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SessionInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParameters()
public SessionInfo.Builder clearParameters()
Returns
clearSession()
public SessionInfo.Builder clearSession()
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
clone()
public SessionInfo.Builder clone()
Returns
Overrides
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
getDefaultInstanceForType()
public SessionInfo getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMutableParameters()
public Map<String,Value> getMutableParameters()
Use alternate mutation accessors instead.
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
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Name |
Description |
number |
int
|
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Name |
Description |
number |
int
|
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SessionInfo other)
public SessionInfo.Builder mergeFrom(SessionInfo other)
Parameter
Returns
public SessionInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SessionInfo.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SessionInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
putAllParameters(Map<String,Value> values)
public SessionInfo.Builder putAllParameters(Map<String,Value> values)
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
putParameters(String key, Value value)
public SessionInfo.Builder putParameters(String key, Value value)
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
removeParameters(String key)
public SessionInfo.Builder removeParameters(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
setField(Descriptors.FieldDescriptor field, Object value)
public SessionInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SessionInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSession(String value)
public SessionInfo.Builder setSession(String value)
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) = { ... }
Parameter
Name |
Description |
value |
String
The session to set.
|
Returns
setSessionBytes(ByteString value)
public SessionInfo.Builder setSessionBytes(ByteString value)
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) = { ... }
Parameter
Name |
Description |
value |
ByteString
The bytes for session to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final SessionInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides