Class EntityType.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<EntityType.Builder>
com.google.cloud.dialogflow.cx.v3beta1.EntityType.Builder
All Implemented Interfaces:
EntityTypeOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
EntityType

public static final class EntityType.Builder extends com.google.protobuf.GeneratedMessage.Builder<EntityType.Builder> implements EntityTypeOrBuilder
 Entities are extracted from user input and represent parameters that are
 meaningful to your application. For example, a date range, a proper name
 such as a geographic location or landmark, and so on. Entities represent
 actionable data for your application.

 When you define an entity, you can also include synonyms that all map to
 that entity. For example, "soft drink", "soda", "pop", and so on.

 There are three types of entities:

 *   **System** - entities that are defined by the Dialogflow API for common
 data types such as date, time, currency, and so on. A system entity is
 represented by the `EntityType` type.

 *   **Custom** - entities that are defined by you that represent
 actionable data that is meaningful to your application. For example,
 you could define a `pizza.sauce` entity for red or white pizza sauce,
 a `pizza.cheese` entity for the different types of cheese on a pizza,
 a `pizza.topping` entity for different toppings, and so on. A custom
 entity is represented by the `EntityType` type.

 *   **User** - entities that are built for an individual user such as
 favorites, preferences, playlists, and so on. A user entity is
 represented by the
 [SessionEntityType][google.cloud.dialogflow.cx.v3beta1.SessionEntityType]
 type.

 For more information about entity types, see the [Dialogflow
 documentation](https://cloud.google.com/dialogflow/docs/entities-overview).
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.EntityType
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<EntityType.Builder>
    • clear

      public EntityType.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<EntityType.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<EntityType.Builder>
    • getDefaultInstanceForType

      public EntityType getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public EntityType build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public EntityType buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public EntityType.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EntityType.Builder>
    • mergeFrom

      public EntityType.Builder mergeFrom(EntityType other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<EntityType.Builder>
    • mergeFrom

      public EntityType.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EntityType.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The unique identifier of the entity type.
       Required for
       [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityType].
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
       
      string name = 1;
      Specified by:
      getName in interface EntityTypeOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The unique identifier of the entity type.
       Required for
       [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityType].
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
       
      string name = 1;
      Specified by:
      getNameBytes in interface EntityTypeOrBuilder
      Returns:
      The bytes for name.
    • setName

      public EntityType.Builder setName(String value)
       The unique identifier of the entity type.
       Required for
       [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityType].
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public EntityType.Builder clearName()
       The unique identifier of the entity type.
       Required for
       [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityType].
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public EntityType.Builder setNameBytes(com.google.protobuf.ByteString value)
       The unique identifier of the entity type.
       Required for
       [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityType].
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Required. The human-readable name of the entity type, unique within the
       agent.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayName in interface EntityTypeOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. The human-readable name of the entity type, unique within the
       agent.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayNameBytes in interface EntityTypeOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public EntityType.Builder setDisplayName(String value)
       Required. The human-readable name of the entity type, unique within the
       agent.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public EntityType.Builder clearDisplayName()
       Required. The human-readable name of the entity type, unique within the
       agent.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public EntityType.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Required. The human-readable name of the entity type, unique within the
       agent.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getKindValue

      public int getKindValue()
       Required. Indicates the kind of entity type.
       
      .google.cloud.dialogflow.cx.v3beta1.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKindValue in interface EntityTypeOrBuilder
      Returns:
      The enum numeric value on the wire for kind.
    • setKindValue

      public EntityType.Builder setKindValue(int value)
       Required. Indicates the kind of entity type.
       
      .google.cloud.dialogflow.cx.v3beta1.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for kind to set.
      Returns:
      This builder for chaining.
    • getKind

      public EntityType.Kind getKind()
       Required. Indicates the kind of entity type.
       
      .google.cloud.dialogflow.cx.v3beta1.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKind in interface EntityTypeOrBuilder
      Returns:
      The kind.
    • setKind

      public EntityType.Builder setKind(EntityType.Kind value)
       Required. Indicates the kind of entity type.
       
      .google.cloud.dialogflow.cx.v3beta1.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The kind to set.
      Returns:
      This builder for chaining.
    • clearKind

      public EntityType.Builder clearKind()
       Required. Indicates the kind of entity type.
       
      .google.cloud.dialogflow.cx.v3beta1.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getAutoExpansionModeValue

      public int getAutoExpansionModeValue()
       Indicates whether the entity type can be automatically expanded.
       
      .google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode auto_expansion_mode = 4;
      Specified by:
      getAutoExpansionModeValue in interface EntityTypeOrBuilder
      Returns:
      The enum numeric value on the wire for autoExpansionMode.
    • setAutoExpansionModeValue

      public EntityType.Builder setAutoExpansionModeValue(int value)
       Indicates whether the entity type can be automatically expanded.
       
      .google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode auto_expansion_mode = 4;
      Parameters:
      value - The enum numeric value on the wire for autoExpansionMode to set.
      Returns:
      This builder for chaining.
    • getAutoExpansionMode

      public EntityType.AutoExpansionMode getAutoExpansionMode()
       Indicates whether the entity type can be automatically expanded.
       
      .google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode auto_expansion_mode = 4;
      Specified by:
      getAutoExpansionMode in interface EntityTypeOrBuilder
      Returns:
      The autoExpansionMode.
    • setAutoExpansionMode

      public EntityType.Builder setAutoExpansionMode(EntityType.AutoExpansionMode value)
       Indicates whether the entity type can be automatically expanded.
       
      .google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode auto_expansion_mode = 4;
      Parameters:
      value - The autoExpansionMode to set.
      Returns:
      This builder for chaining.
    • clearAutoExpansionMode

      public EntityType.Builder clearAutoExpansionMode()
       Indicates whether the entity type can be automatically expanded.
       
      .google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode auto_expansion_mode = 4;
      Returns:
      This builder for chaining.
    • getEntitiesList

      public List<EntityType.Entity> getEntitiesList()
       The collection of entity entries associated with the entity type.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.Entity entities = 5;
      Specified by:
      getEntitiesList in interface EntityTypeOrBuilder
    • getEntitiesCount

      public int getEntitiesCount()
       The collection of entity entries associated with the entity type.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.Entity entities = 5;
      Specified by:
      getEntitiesCount in interface EntityTypeOrBuilder
    • getEntities

      public EntityType.Entity getEntities(int index)
       The collection of entity entries associated with the entity type.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.Entity entities = 5;
      Specified by:
      getEntities in interface EntityTypeOrBuilder
    • setEntities

      public EntityType.Builder setEntities(int index, EntityType.Entity value)
       The collection of entity entries associated with the entity type.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.Entity entities = 5;
    • setEntities

      public EntityType.Builder setEntities(int index, EntityType.Entity.Builder builderForValue)
       The collection of entity entries associated with the entity type.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.Entity entities = 5;
    • addEntities

      public EntityType.Builder addEntities(EntityType.Entity value)
       The collection of entity entries associated with the entity type.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.Entity entities = 5;
    • addEntities

      public EntityType.Builder addEntities(int index, EntityType.Entity value)
       The collection of entity entries associated with the entity type.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.Entity entities = 5;
    • addEntities

      public EntityType.Builder addEntities(EntityType.Entity.Builder builderForValue)
       The collection of entity entries associated with the entity type.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.Entity entities = 5;
    • addEntities

      public EntityType.Builder addEntities(int index, EntityType.Entity.Builder builderForValue)
       The collection of entity entries associated with the entity type.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.Entity entities = 5;
    • addAllEntities

      public EntityType.Builder addAllEntities(Iterable<? extends EntityType.Entity> values)
       The collection of entity entries associated with the entity type.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.Entity entities = 5;
    • clearEntities

      public EntityType.Builder clearEntities()
       The collection of entity entries associated with the entity type.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.Entity entities = 5;
    • removeEntities

      public EntityType.Builder removeEntities(int index)
       The collection of entity entries associated with the entity type.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.Entity entities = 5;
    • getEntitiesBuilder

      public EntityType.Entity.Builder getEntitiesBuilder(int index)
       The collection of entity entries associated with the entity type.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.Entity entities = 5;
    • getEntitiesOrBuilder

      public EntityType.EntityOrBuilder getEntitiesOrBuilder(int index)
       The collection of entity entries associated with the entity type.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.Entity entities = 5;
      Specified by:
      getEntitiesOrBuilder in interface EntityTypeOrBuilder
    • getEntitiesOrBuilderList

      public List<? extends EntityType.EntityOrBuilder> getEntitiesOrBuilderList()
       The collection of entity entries associated with the entity type.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.Entity entities = 5;
      Specified by:
      getEntitiesOrBuilderList in interface EntityTypeOrBuilder
    • addEntitiesBuilder

      public EntityType.Entity.Builder addEntitiesBuilder()
       The collection of entity entries associated with the entity type.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.Entity entities = 5;
    • addEntitiesBuilder

      public EntityType.Entity.Builder addEntitiesBuilder(int index)
       The collection of entity entries associated with the entity type.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.Entity entities = 5;
    • getEntitiesBuilderList

      public List<EntityType.Entity.Builder> getEntitiesBuilderList()
       The collection of entity entries associated with the entity type.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.Entity entities = 5;
    • getExcludedPhrasesList

      public List<EntityType.ExcludedPhrase> getExcludedPhrasesList()
       Collection of exceptional words and phrases that shouldn't be matched.
       For example, if you have a size entity type with entry `giant`(an
       adjective), you might consider adding `giants`(a noun) as an exclusion.
       If the kind of entity type is `KIND_MAP`, then the phrases specified by
       entities and excluded phrases should be mutually exclusive.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase excluded_phrases = 6;
      Specified by:
      getExcludedPhrasesList in interface EntityTypeOrBuilder
    • getExcludedPhrasesCount

      public int getExcludedPhrasesCount()
       Collection of exceptional words and phrases that shouldn't be matched.
       For example, if you have a size entity type with entry `giant`(an
       adjective), you might consider adding `giants`(a noun) as an exclusion.
       If the kind of entity type is `KIND_MAP`, then the phrases specified by
       entities and excluded phrases should be mutually exclusive.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase excluded_phrases = 6;
      Specified by:
      getExcludedPhrasesCount in interface EntityTypeOrBuilder
    • getExcludedPhrases

      public EntityType.ExcludedPhrase getExcludedPhrases(int index)
       Collection of exceptional words and phrases that shouldn't be matched.
       For example, if you have a size entity type with entry `giant`(an
       adjective), you might consider adding `giants`(a noun) as an exclusion.
       If the kind of entity type is `KIND_MAP`, then the phrases specified by
       entities and excluded phrases should be mutually exclusive.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase excluded_phrases = 6;
      Specified by:
      getExcludedPhrases in interface EntityTypeOrBuilder
    • setExcludedPhrases

      public EntityType.Builder setExcludedPhrases(int index, EntityType.ExcludedPhrase value)
       Collection of exceptional words and phrases that shouldn't be matched.
       For example, if you have a size entity type with entry `giant`(an
       adjective), you might consider adding `giants`(a noun) as an exclusion.
       If the kind of entity type is `KIND_MAP`, then the phrases specified by
       entities and excluded phrases should be mutually exclusive.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase excluded_phrases = 6;
    • setExcludedPhrases

      public EntityType.Builder setExcludedPhrases(int index, EntityType.ExcludedPhrase.Builder builderForValue)
       Collection of exceptional words and phrases that shouldn't be matched.
       For example, if you have a size entity type with entry `giant`(an
       adjective), you might consider adding `giants`(a noun) as an exclusion.
       If the kind of entity type is `KIND_MAP`, then the phrases specified by
       entities and excluded phrases should be mutually exclusive.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase excluded_phrases = 6;
    • addExcludedPhrases

      public EntityType.Builder addExcludedPhrases(EntityType.ExcludedPhrase value)
       Collection of exceptional words and phrases that shouldn't be matched.
       For example, if you have a size entity type with entry `giant`(an
       adjective), you might consider adding `giants`(a noun) as an exclusion.
       If the kind of entity type is `KIND_MAP`, then the phrases specified by
       entities and excluded phrases should be mutually exclusive.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase excluded_phrases = 6;
    • addExcludedPhrases

      public EntityType.Builder addExcludedPhrases(int index, EntityType.ExcludedPhrase value)
       Collection of exceptional words and phrases that shouldn't be matched.
       For example, if you have a size entity type with entry `giant`(an
       adjective), you might consider adding `giants`(a noun) as an exclusion.
       If the kind of entity type is `KIND_MAP`, then the phrases specified by
       entities and excluded phrases should be mutually exclusive.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase excluded_phrases = 6;
    • addExcludedPhrases

      public EntityType.Builder addExcludedPhrases(EntityType.ExcludedPhrase.Builder builderForValue)
       Collection of exceptional words and phrases that shouldn't be matched.
       For example, if you have a size entity type with entry `giant`(an
       adjective), you might consider adding `giants`(a noun) as an exclusion.
       If the kind of entity type is `KIND_MAP`, then the phrases specified by
       entities and excluded phrases should be mutually exclusive.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase excluded_phrases = 6;
    • addExcludedPhrases

      public EntityType.Builder addExcludedPhrases(int index, EntityType.ExcludedPhrase.Builder builderForValue)
       Collection of exceptional words and phrases that shouldn't be matched.
       For example, if you have a size entity type with entry `giant`(an
       adjective), you might consider adding `giants`(a noun) as an exclusion.
       If the kind of entity type is `KIND_MAP`, then the phrases specified by
       entities and excluded phrases should be mutually exclusive.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase excluded_phrases = 6;
    • addAllExcludedPhrases

      public EntityType.Builder addAllExcludedPhrases(Iterable<? extends EntityType.ExcludedPhrase> values)
       Collection of exceptional words and phrases that shouldn't be matched.
       For example, if you have a size entity type with entry `giant`(an
       adjective), you might consider adding `giants`(a noun) as an exclusion.
       If the kind of entity type is `KIND_MAP`, then the phrases specified by
       entities and excluded phrases should be mutually exclusive.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase excluded_phrases = 6;
    • clearExcludedPhrases

      public EntityType.Builder clearExcludedPhrases()
       Collection of exceptional words and phrases that shouldn't be matched.
       For example, if you have a size entity type with entry `giant`(an
       adjective), you might consider adding `giants`(a noun) as an exclusion.
       If the kind of entity type is `KIND_MAP`, then the phrases specified by
       entities and excluded phrases should be mutually exclusive.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase excluded_phrases = 6;
    • removeExcludedPhrases

      public EntityType.Builder removeExcludedPhrases(int index)
       Collection of exceptional words and phrases that shouldn't be matched.
       For example, if you have a size entity type with entry `giant`(an
       adjective), you might consider adding `giants`(a noun) as an exclusion.
       If the kind of entity type is `KIND_MAP`, then the phrases specified by
       entities and excluded phrases should be mutually exclusive.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase excluded_phrases = 6;
    • getExcludedPhrasesBuilder

      public EntityType.ExcludedPhrase.Builder getExcludedPhrasesBuilder(int index)
       Collection of exceptional words and phrases that shouldn't be matched.
       For example, if you have a size entity type with entry `giant`(an
       adjective), you might consider adding `giants`(a noun) as an exclusion.
       If the kind of entity type is `KIND_MAP`, then the phrases specified by
       entities and excluded phrases should be mutually exclusive.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase excluded_phrases = 6;
    • getExcludedPhrasesOrBuilder

      public EntityType.ExcludedPhraseOrBuilder getExcludedPhrasesOrBuilder(int index)
       Collection of exceptional words and phrases that shouldn't be matched.
       For example, if you have a size entity type with entry `giant`(an
       adjective), you might consider adding `giants`(a noun) as an exclusion.
       If the kind of entity type is `KIND_MAP`, then the phrases specified by
       entities and excluded phrases should be mutually exclusive.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase excluded_phrases = 6;
      Specified by:
      getExcludedPhrasesOrBuilder in interface EntityTypeOrBuilder
    • getExcludedPhrasesOrBuilderList

      public List<? extends EntityType.ExcludedPhraseOrBuilder> getExcludedPhrasesOrBuilderList()
       Collection of exceptional words and phrases that shouldn't be matched.
       For example, if you have a size entity type with entry `giant`(an
       adjective), you might consider adding `giants`(a noun) as an exclusion.
       If the kind of entity type is `KIND_MAP`, then the phrases specified by
       entities and excluded phrases should be mutually exclusive.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase excluded_phrases = 6;
      Specified by:
      getExcludedPhrasesOrBuilderList in interface EntityTypeOrBuilder
    • addExcludedPhrasesBuilder

      public EntityType.ExcludedPhrase.Builder addExcludedPhrasesBuilder()
       Collection of exceptional words and phrases that shouldn't be matched.
       For example, if you have a size entity type with entry `giant`(an
       adjective), you might consider adding `giants`(a noun) as an exclusion.
       If the kind of entity type is `KIND_MAP`, then the phrases specified by
       entities and excluded phrases should be mutually exclusive.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase excluded_phrases = 6;
    • addExcludedPhrasesBuilder

      public EntityType.ExcludedPhrase.Builder addExcludedPhrasesBuilder(int index)
       Collection of exceptional words and phrases that shouldn't be matched.
       For example, if you have a size entity type with entry `giant`(an
       adjective), you might consider adding `giants`(a noun) as an exclusion.
       If the kind of entity type is `KIND_MAP`, then the phrases specified by
       entities and excluded phrases should be mutually exclusive.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase excluded_phrases = 6;
    • getExcludedPhrasesBuilderList

      public List<EntityType.ExcludedPhrase.Builder> getExcludedPhrasesBuilderList()
       Collection of exceptional words and phrases that shouldn't be matched.
       For example, if you have a size entity type with entry `giant`(an
       adjective), you might consider adding `giants`(a noun) as an exclusion.
       If the kind of entity type is `KIND_MAP`, then the phrases specified by
       entities and excluded phrases should be mutually exclusive.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase excluded_phrases = 6;
    • getEnableFuzzyExtraction

      public boolean getEnableFuzzyExtraction()
       Enables fuzzy entity extraction during classification.
       
      bool enable_fuzzy_extraction = 7;
      Specified by:
      getEnableFuzzyExtraction in interface EntityTypeOrBuilder
      Returns:
      The enableFuzzyExtraction.
    • setEnableFuzzyExtraction

      public EntityType.Builder setEnableFuzzyExtraction(boolean value)
       Enables fuzzy entity extraction during classification.
       
      bool enable_fuzzy_extraction = 7;
      Parameters:
      value - The enableFuzzyExtraction to set.
      Returns:
      This builder for chaining.
    • clearEnableFuzzyExtraction

      public EntityType.Builder clearEnableFuzzyExtraction()
       Enables fuzzy entity extraction during classification.
       
      bool enable_fuzzy_extraction = 7;
      Returns:
      This builder for chaining.
    • getRedact

      public boolean getRedact()
       Indicates whether parameters of the entity type should be redacted in log.
       If redaction is enabled, page parameters and intent parameters referring to
       the entity type will be replaced by parameter name during logging.
       
      bool redact = 9;
      Specified by:
      getRedact in interface EntityTypeOrBuilder
      Returns:
      The redact.
    • setRedact

      public EntityType.Builder setRedact(boolean value)
       Indicates whether parameters of the entity type should be redacted in log.
       If redaction is enabled, page parameters and intent parameters referring to
       the entity type will be replaced by parameter name during logging.
       
      bool redact = 9;
      Parameters:
      value - The redact to set.
      Returns:
      This builder for chaining.
    • clearRedact

      public EntityType.Builder clearRedact()
       Indicates whether parameters of the entity type should be redacted in log.
       If redaction is enabled, page parameters and intent parameters referring to
       the entity type will be replaced by parameter name during logging.
       
      bool redact = 9;
      Returns:
      This builder for chaining.