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>`, or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and users are under construction and will be available soon. The Context ID is always converted to lowercase. If <Environment ID> is not specified, we assume default 'draft' environment. If <User ID> is not specified, we assume default '-' user.
string name = 1;
ByteString getNameBytes()
Required. The unique identifier of the context. Format: `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`, or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and users are under construction and will be available soon. The Context ID is always converted to lowercase. If <Environment ID> is not specified, we assume default 'draft' environment. If <User ID> is not specified, we assume default '-' user.
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;