Class SuggestUserProfilesRequest.Builder

All Implemented Interfaces:
WithJson<SuggestUserProfilesRequest.Builder>, ObjectBuilder<SuggestUserProfilesRequest>
Enclosing class:
SuggestUserProfilesRequest

public static class SuggestUserProfilesRequest.Builder
extends RequestBase.AbstractBuilder<SuggestUserProfilesRequest.Builder>
implements ObjectBuilder<SuggestUserProfilesRequest>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • data

      public final SuggestUserProfilesRequest.Builder data​(java.util.List<java.lang.String> list)
      List of filters for the data field of the profile document. To return all content use data=*. To return a subset of content use data=<key> to retrieve content nested under the specified <key>. By default returns no data content.

      API name: data

      Adds all elements of list to data.

    • data

      public final SuggestUserProfilesRequest.Builder data​(java.lang.String value, java.lang.String... values)
      List of filters for the data field of the profile document. To return all content use data=*. To return a subset of content use data=<key> to retrieve content nested under the specified <key>. By default returns no data content.

      API name: data

      Adds one or more values to data.

    • hint

      public final SuggestUserProfilesRequest.Builder hint​(@Nullable Hint value)
      Extra search criteria to improve relevance of the suggestion result. Profiles matching the spcified hint are ranked higher in the response. Profiles not matching the hint don't exclude the profile from the response as long as the profile matches the name field query.

      API name: hint

    • hint

      public final SuggestUserProfilesRequest.Builder hint​(java.util.function.Function<Hint.Builder,​ObjectBuilder<Hint>> fn)
      Extra search criteria to improve relevance of the suggestion result. Profiles matching the spcified hint are ranked higher in the response. Profiles not matching the hint don't exclude the profile from the response as long as the profile matches the name field query.

      API name: hint

    • name

      public final SuggestUserProfilesRequest.Builder name​(@Nullable java.lang.String value)
      Query string used to match name-related fields in user profile documents. Name-related fields are the user's username, full_name, and email.

      API name: name

    • size

      public final SuggestUserProfilesRequest.Builder size​(@Nullable java.lang.Long value)
      Number of profiles to return.

      API name: size

    • self

      Specified by:
      self in class RequestBase.AbstractBuilder<SuggestUserProfilesRequest.Builder>
    • build

      Specified by:
      build in interface ObjectBuilder<SuggestUserProfilesRequest>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.