All Implemented Interfaces:
QueryVariant, JsonpSerializable, TaggedUnion<PinnedQuery.Kind,​java.lang.Object>

public class PinnedQuery
extends QueryBase
implements TaggedUnion<PinnedQuery.Kind,​java.lang.Object>, QueryVariant, JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • _queryKind

      public Query.Kind _queryKind()
      Query variant kind.
      Specified by:
      _queryKind in interface QueryVariant
    • _kind

      public final PinnedQuery.Kind _kind()
      Description copied from interface: TaggedUnion
      Get the of the kind of variant held by this object.
      Specified by:
      _kind in interface TaggedUnion<PinnedQuery.Kind,​java.lang.Object>
      the variant kind
    • _get

      public final java.lang.Object _get()
      Specified by:
      _get in interface TaggedUnion<PinnedQuery.Kind,​java.lang.Object>
    • of

      public static PinnedQuery of​(java.util.function.Function<PinnedQuery.Builder,​ObjectBuilder<PinnedQuery>> fn)
    • organic

      public final Query organic()
      Required - API name: organic
    • isIds

      public boolean isIds()
      Is this variant instance of kind ids?
    • ids

      public java.util.List<java.lang.String> ids()
      Get the ids variant value.
      java.lang.IllegalStateException - if the current variant is not of the ids kind.
    • isDocs

      public boolean isDocs()
      Is this variant instance of kind docs?
    • docs

      public java.util.List<PinnedDoc> docs()
      Get the docs variant value.
      java.lang.IllegalStateException - if the current variant is not of the docs kind.
    • serialize

      public void serialize​( generator, JsonpMapper mapper)
      Description copied from class: QueryBase
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
      serialize in class QueryBase
    • setupPinnedQueryDeserializer

      protected static void setupPinnedQueryDeserializer​(ObjectDeserializer<PinnedQuery.Builder> op)