public interface ContextOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
int |
getLifespanCount()
Optional.
|
java.lang.String |
getName()
Required.
|
ByteString |
getNameBytes()
Required.
|
Struct |
getParameters()
Optional.
|
StructOrBuilder |
getParametersOrBuilder()
Optional.
|
boolean |
hasParameters()
Optional.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
java.lang.String getName()
Required. The unique identifier of the context. Format: `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
string name = 1;
ByteString getNameBytes()
Required. The unique identifier of the context. Format: `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
string name = 1;
int getLifespanCount()
Optional. The number of conversational query requests after which the context expires. If set to `0` (the default) the context expires immediately. Contexts expire automatically after 10 minutes even if there are no matching queries.
int32 lifespan_count = 2;
boolean hasParameters()
Optional. The collection of parameters associated with this context. Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for syntax.
.google.protobuf.Struct parameters = 3;
Struct getParameters()
Optional. The collection of parameters associated with this context. Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for syntax.
.google.protobuf.Struct parameters = 3;
StructOrBuilder getParametersOrBuilder()
Optional. The collection of parameters associated with this context. Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for syntax.
.google.protobuf.Struct parameters = 3;