java.lang.Object
co.elastic.clients.elasticsearch._types.Script
All Implemented Interfaces:
IntervalsFilterVariant, JsonpSerializable

See Also:
  • Field Details

  • Method Details

    • of

    • _intervalsFilterKind

      public IntervalsFilter.Kind _intervalsFilterKind()
      IntervalsFilter variant kind.
      Specified by:
      _intervalsFilterKind in interface IntervalsFilterVariant
    • source

      @Nullable public final String source()
      The script source.

      API name: source

    • id

      @Nullable public final String id()
      The id for a stored script.

      API name: id

    • params

      public final Map<String,JsonData> params()
      Specifies any named parameters that are passed into the script as variables. Use parameters instead of hard-coded values to decrease compile time.

      API name: params

    • lang

      @Nullable public final String lang()
      Specifies the language the script is written in.

      API name: lang

    • options

      public final Map<String,String> options()
      API name: options
    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

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

      protected static void setupScriptDeserializer(ObjectDeserializer<Script.Builder> op)