public static final class SessionEntityType.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SessionEntityType.Builder> implements SessionEntityTypeOrBuilder
A session represents a conversation between a Dialogflow agent and an end-user. You can create special entities, called session entities, during a session. Session entities can extend or replace custom entity types and only exist during the session that they were created for. All session data, including session entities, is stored by Dialogflow for 20 minutes. For more information, see the [session entity guide](https://cloud.google.com/dialogflow/docs/entities-session).Protobuf type
google.cloud.dialogflow.v2beta1.SessionEntityTypegetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEntityType.Builder>public SessionEntityType.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEntityType.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEntityType.Builder>public SessionEntityType getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SessionEntityType build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SessionEntityType buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SessionEntityType.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEntityType.Builder>public SessionEntityType.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEntityType.Builder>public SessionEntityType.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEntityType.Builder>public SessionEntityType.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEntityType.Builder>public SessionEntityType.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEntityType.Builder>public SessionEntityType.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEntityType.Builder>public SessionEntityType.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SessionEntityType.Builder>public SessionEntityType.Builder mergeFrom(SessionEntityType other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEntityType.Builder>public SessionEntityType.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SessionEntityType.Builder>IOExceptionpublic String getName()
Required. The unique identifier of this session entity type. Supported formats: - `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>` - `projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>` - `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>` - `projects/<Project ID>/locations/<Location ID>/agent/environments/ <Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>` If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. `<Entity Type Display Name>` must be the display name of an existing entity type in the same agent that will be overridden or supplemented.
string name = 1;getName in interface SessionEntityTypeOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. The unique identifier of this session entity type. Supported formats: - `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>` - `projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>` - `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>` - `projects/<Project ID>/locations/<Location ID>/agent/environments/ <Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>` If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. `<Entity Type Display Name>` must be the display name of an existing entity type in the same agent that will be overridden or supplemented.
string name = 1;getNameBytes in interface SessionEntityTypeOrBuilderpublic SessionEntityType.Builder setName(String value)
Required. The unique identifier of this session entity type. Supported formats: - `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>` - `projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>` - `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>` - `projects/<Project ID>/locations/<Location ID>/agent/environments/ <Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>` If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. `<Entity Type Display Name>` must be the display name of an existing entity type in the same agent that will be overridden or supplemented.
string name = 1;value - The name to set.public SessionEntityType.Builder clearName()
Required. The unique identifier of this session entity type. Supported formats: - `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>` - `projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>` - `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>` - `projects/<Project ID>/locations/<Location ID>/agent/environments/ <Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>` If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. `<Entity Type Display Name>` must be the display name of an existing entity type in the same agent that will be overridden or supplemented.
string name = 1;public SessionEntityType.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. The unique identifier of this session entity type. Supported formats: - `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>` - `projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>` - `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>` - `projects/<Project ID>/locations/<Location ID>/agent/environments/ <Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>` If `Location ID` is not specified we assume default 'us' location. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user. `<Entity Type Display Name>` must be the display name of an existing entity type in the same agent that will be overridden or supplemented.
string name = 1;value - The bytes for name to set.public int getEntityOverrideModeValue()
Required. Indicates whether the additional data should override or supplement the custom entity type definition.
.google.cloud.dialogflow.v2beta1.SessionEntityType.EntityOverrideMode entity_override_mode = 2;
getEntityOverrideModeValue in interface SessionEntityTypeOrBuilderpublic SessionEntityType.Builder setEntityOverrideModeValue(int value)
Required. Indicates whether the additional data should override or supplement the custom entity type definition.
.google.cloud.dialogflow.v2beta1.SessionEntityType.EntityOverrideMode entity_override_mode = 2;
value - The enum numeric value on the wire for entityOverrideMode to set.public SessionEntityType.EntityOverrideMode getEntityOverrideMode()
Required. Indicates whether the additional data should override or supplement the custom entity type definition.
.google.cloud.dialogflow.v2beta1.SessionEntityType.EntityOverrideMode entity_override_mode = 2;
getEntityOverrideMode in interface SessionEntityTypeOrBuilderpublic SessionEntityType.Builder setEntityOverrideMode(SessionEntityType.EntityOverrideMode value)
Required. Indicates whether the additional data should override or supplement the custom entity type definition.
.google.cloud.dialogflow.v2beta1.SessionEntityType.EntityOverrideMode entity_override_mode = 2;
value - The entityOverrideMode to set.public SessionEntityType.Builder clearEntityOverrideMode()
Required. Indicates whether the additional data should override or supplement the custom entity type definition.
.google.cloud.dialogflow.v2beta1.SessionEntityType.EntityOverrideMode entity_override_mode = 2;
public List<EntityType.Entity> getEntitiesList()
Required. The collection of entities associated with this session entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 3;getEntitiesList in interface SessionEntityTypeOrBuilderpublic int getEntitiesCount()
Required. The collection of entities associated with this session entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 3;getEntitiesCount in interface SessionEntityTypeOrBuilderpublic EntityType.Entity getEntities(int index)
Required. The collection of entities associated with this session entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 3;getEntities in interface SessionEntityTypeOrBuilderpublic SessionEntityType.Builder setEntities(int index, EntityType.Entity value)
Required. The collection of entities associated with this session entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 3;public SessionEntityType.Builder setEntities(int index, EntityType.Entity.Builder builderForValue)
Required. The collection of entities associated with this session entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 3;public SessionEntityType.Builder addEntities(EntityType.Entity value)
Required. The collection of entities associated with this session entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 3;public SessionEntityType.Builder addEntities(int index, EntityType.Entity value)
Required. The collection of entities associated with this session entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 3;public SessionEntityType.Builder addEntities(EntityType.Entity.Builder builderForValue)
Required. The collection of entities associated with this session entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 3;public SessionEntityType.Builder addEntities(int index, EntityType.Entity.Builder builderForValue)
Required. The collection of entities associated with this session entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 3;public SessionEntityType.Builder addAllEntities(Iterable<? extends EntityType.Entity> values)
Required. The collection of entities associated with this session entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 3;public SessionEntityType.Builder clearEntities()
Required. The collection of entities associated with this session entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 3;public SessionEntityType.Builder removeEntities(int index)
Required. The collection of entities associated with this session entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 3;public EntityType.Entity.Builder getEntitiesBuilder(int index)
Required. The collection of entities associated with this session entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 3;public EntityType.EntityOrBuilder getEntitiesOrBuilder(int index)
Required. The collection of entities associated with this session entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 3;getEntitiesOrBuilder in interface SessionEntityTypeOrBuilderpublic List<? extends EntityType.EntityOrBuilder> getEntitiesOrBuilderList()
Required. The collection of entities associated with this session entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 3;getEntitiesOrBuilderList in interface SessionEntityTypeOrBuilderpublic EntityType.Entity.Builder addEntitiesBuilder()
Required. The collection of entities associated with this session entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 3;public EntityType.Entity.Builder addEntitiesBuilder(int index)
Required. The collection of entities associated with this session entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 3;public List<EntityType.Entity.Builder> getEntitiesBuilderList()
Required. The collection of entities associated with this session entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 3;public final SessionEntityType.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEntityType.Builder>public final SessionEntityType.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEntityType.Builder>Copyright © 2023 Google LLC. All rights reserved.