Class LanguageAnalyzer.Builder

All Implemented Interfaces:
Enclosing class:

public static class LanguageAnalyzer.Builder
extends ObjectBuilderBase
implements ObjectBuilder<LanguageAnalyzer>
Builder for LanguageAnalyzer.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • version

      public final LanguageAnalyzer.Builder version​(@Nullable java.lang.String value)
      API name: version
    • language

      public final LanguageAnalyzer.Builder language​(Language value)
      Required - API name: language
    • stemExclusion

      public final LanguageAnalyzer.Builder stemExclusion​(java.util.List<java.lang.String> list)
      Required - API name: stem_exclusion

      Adds all elements of list to stemExclusion.

    • stemExclusion

      public final LanguageAnalyzer.Builder stemExclusion​(java.lang.String value, java.lang.String... values)
      Required - API name: stem_exclusion

      Adds one or more values to stemExclusion.

    • stopwords

      public final LanguageAnalyzer.Builder stopwords​(java.util.List<java.lang.String> list)
      API name: stopwords

      Adds all elements of list to stopwords.

    • stopwords

      public final LanguageAnalyzer.Builder stopwords​(java.lang.String value, java.lang.String... values)
      API name: stopwords

      Adds one or more values to stopwords.

    • stopwordsPath

      public final LanguageAnalyzer.Builder stopwordsPath​(@Nullable java.lang.String value)
      API name: stopwords_path
    • build

      public LanguageAnalyzer build()
      Specified by:
      build in interface ObjectBuilder<LanguageAnalyzer>
      java.lang.NullPointerException - if some of the required fields are null.