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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SessionInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SessionInfo build()
buildPartial()
public SessionInfo buildPartial()
clear()
public SessionInfo.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SessionInfo.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SessionInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearParameters()
public SessionInfo.Builder clearParameters()
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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID>
or
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>
if environment is specified.
string session = 1 [(.google.api.resource_reference) = { ... }
clone()
public SessionInfo.Builder clone()
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 |
Name |
Description |
key |
String
|
getDefaultInstanceForType()
public SessionInfo getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMutableParameters() (deprecated)
public Map<String,Value> getMutableParameters()
Use alternate mutation accessors instead.
getParameters() (deprecated)
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 |
|
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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID>
or
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>
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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID>
or
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>
if environment is specified.
string session = 1 [(.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for session.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SessionInfo other)
public SessionInfo.Builder mergeFrom(SessionInfo other)
public SessionInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SessionInfo.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SessionInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
putParametersBuilderIfAbsent(String key)
public Value.Builder putParametersBuilderIfAbsent(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
|
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 |
Name |
Description |
key |
String
|
setField(Descriptors.FieldDescriptor field, Object value)
public SessionInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SessionInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID>
or
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>
if environment is specified.
string session = 1 [(.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
String
The session to set.
|
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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID>
or
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>
if environment is specified.
string session = 1 [(.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes for session to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final SessionInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides