Class JsonIndexConfig.BuilderBase<BUILDER extends JsonIndexConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends JsonIndexConfig>

java.lang.Object
io.helidon.integrations.langchain4j.providers.oracle.JsonIndexConfig.BuilderBase<BUILDER,PROTOTYPE>
Type Parameters:
BUILDER - type of the builder extending this abstract builder
PROTOTYPE - type of the prototype interface that would be built by Prototype.Builder.buildPrototype()
All Implemented Interfaces:
Prototype.Builder<BUILDER,PROTOTYPE>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Direct Known Subclasses:
JsonIndexConfig.Builder
Enclosing interface:
JsonIndexConfig

public abstract static class JsonIndexConfig.BuilderBase<BUILDER extends JsonIndexConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends JsonIndexConfig> extends Object implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for JsonIndexConfig.
  • Constructor Details

    • BuilderBase

      protected BuilderBase()
      Protected to support extensibility.
  • Method Details

    • from

      public BUILDER from(JsonIndexConfig prototype)
      Update this builder from an existing prototype instance. This method disables automatic service discovery.
      Parameters:
      prototype - existing prototype to update this builder from
      Returns:
      updated builder instance
    • from

      public BUILDER from(JsonIndexConfig.BuilderBase<?,?> builder)
      Update this builder from an existing prototype builder instance.
      Parameters:
      builder - existing builder prototype to update this builder from
      Returns:
      updated builder instance
    • config

      @Deprecated public BUILDER config(Config config)
      Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.
      Specified by:
      config in interface ConfigBuilderSupport.ConfiguredBuilder<BUILDER extends JsonIndexConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends JsonIndexConfig>
      Parameters:
      config - configuration instance used to obtain values to update this builder
      Returns:
      updated builder instance
    • config

      public BUILDER config(Config config)
      Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.
      Specified by:
      config in interface ConfigBuilderSupport.ConfiguredBuilder<BUILDER extends JsonIndexConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends JsonIndexConfig>
      Parameters:
      config - configuration instance used to obtain values to update this builder
      Returns:
      updated builder instance
    • clearIsUnique

      public BUILDER clearIsUnique()
      Clear existing value of isUnique.
      Returns:
      updated builder instance
      See Also:
    • isUnique

      public BUILDER isUnique(boolean isUnique)
      Generated from JSONIndexBuilder.isUnique(boolean)
      Parameters:
      isUnique - boolean property
      Returns:
      updated builder instance
      See Also:
    • clearName

      public BUILDER clearName()
      Clear existing value of name.
      Returns:
      updated builder instance
      See Also:
    • name

      public BUILDER name(String name)
      Generated from IndexBuilder.name(java.lang.String)
      Parameters:
      name - String property
      Returns:
      updated builder instance
      See Also:
    • clearIsBitmap

      public BUILDER clearIsBitmap()
      Clear existing value of isBitmap.
      Returns:
      updated builder instance
      See Also:
    • isBitmap

      public BUILDER isBitmap(boolean isBitmap)
      Generated from JSONIndexBuilder.isBitmap(boolean)
      Parameters:
      isBitmap - boolean property
      Returns:
      updated builder instance
      See Also:
    • clearCreateOption

      public BUILDER clearCreateOption()
      Clear existing value of createOption.
      Returns:
      updated builder instance
      See Also:
    • createOption

      public BUILDER createOption(dev.langchain4j.store.embedding.oracle.CreateOption createOption)
      Generated from IndexBuilder.createOption(dev.langchain4j.store.embedding.oracle.CreateOption)
      Parameters:
      createOption - CreateOption property
      Returns:
      updated builder instance
      See Also:
    • serviceRegistry

      public BUILDER serviceRegistry(ServiceRegistry serviceRegistry)
      Service registry used to discover providers and services. Provide an explicit registry instance to use.

      If not configured, the GlobalServiceRegistry would be used to discover services.

      Parameters:
      serviceRegistry - service registry to use
      Returns:
      updated builder instance
      See Also:
    • isUnique

      public Optional<Boolean> isUnique()
      Generated from JSONIndexBuilder.isUnique(boolean)
      Returns:
      boolean property
    • name

      public Optional<String> name()
      Generated from IndexBuilder.name(java.lang.String)
      Returns:
      String property
    • isBitmap

      public Optional<Boolean> isBitmap()
      Generated from JSONIndexBuilder.isBitmap(boolean)
      Returns:
      boolean property
    • createOption

      public Optional<dev.langchain4j.store.embedding.oracle.CreateOption> createOption()
      Generated from IndexBuilder.createOption(dev.langchain4j.store.embedding.oracle.CreateOption)
      Returns:
      CreateOption property
    • serviceRegistry

      public Optional<ServiceRegistry> serviceRegistry()
      Service registry used to discover providers and services. Provide an explicit registry instance to use.

      If not configured, the GlobalServiceRegistry would be used to discover services.

      Returns:
      service registry to use
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • preBuildPrototype

      protected void preBuildPrototype()
      Handles providers and decorators.
    • validatePrototype

      protected void validatePrototype()
      Validates required properties.
    • config

      protected Optional<Config> config()
      Configuration used to configure this instance.
      Returns:
      config instance