Class UserMessage.Builder<B extends UserMessage.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
UserMessage

public static class UserMessage.Builder<B extends UserMessage.Builder<B>> extends InitiallyUnowned.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
Since:
2.28
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public UserMessage build()
      Finish building the UserMessage object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to UserMessage.
      Overrides:
      build in class InitiallyUnowned.Builder<B extends UserMessage.Builder<B>>
      Returns:
      a new instance of UserMessage with the properties that were set in the Builder object.
    • setFdList

      public B setFdList(UnixFDList fdList)
      The UNIX file descriptors of the user message.
      Parameters:
      fdList - the value for the fd-list property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.28
    • setName

      public B setName(String name)
      The name of the user message.
      Parameters:
      name - the value for the name property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.28
    • setParameters

      public B setParameters(Variant parameters)
      The parameters of the user message as a GVariant, or null if the message doesn't include parameters. Note that only complete types are allowed.
      Parameters:
      parameters - the value for the parameters property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.28