Package example.avro

Class User.Builder

  • All Implemented Interfaces:
    org.apache.avro.data.RecordBuilder<User>
    Enclosing class:
    User

    public static class User.Builder
    extends org.apache.avro.specific.SpecificRecordBuilderBase<User>
    implements org.apache.avro.data.RecordBuilder<User>
    RecordBuilder for User instances.
    • Method Detail

      • getName

        public CharSequence getName()
        Gets the value of the 'name' field.
        Returns:
        The value.
      • setName

        public User.Builder setName​(CharSequence value)
        Sets the value of the 'name' field.
        Parameters:
        value - The value of 'name'.
        Returns:
        This builder.
      • hasName

        public boolean hasName()
        Checks whether the 'name' field has been set.
        Returns:
        True if the 'name' field has been set, false otherwise.
      • clearName

        public User.Builder clearName()
        Clears the value of the 'name' field.
        Returns:
        This builder.
      • getFavoriteNumber

        public CharSequence getFavoriteNumber()
        Gets the value of the 'favoriteNumber' field.
        Returns:
        The value.
      • setFavoriteNumber

        public User.Builder setFavoriteNumber​(CharSequence value)
        Sets the value of the 'favoriteNumber' field.
        Parameters:
        value - The value of 'favoriteNumber'.
        Returns:
        This builder.
      • hasFavoriteNumber

        public boolean hasFavoriteNumber()
        Checks whether the 'favoriteNumber' field has been set.
        Returns:
        True if the 'favoriteNumber' field has been set, false otherwise.
      • clearFavoriteNumber

        public User.Builder clearFavoriteNumber()
        Clears the value of the 'favoriteNumber' field.
        Returns:
        This builder.
      • getFavoriteColor

        public CharSequence getFavoriteColor()
        Gets the value of the 'favoriteColor' field.
        Returns:
        The value.
      • setFavoriteColor

        public User.Builder setFavoriteColor​(CharSequence value)
        Sets the value of the 'favoriteColor' field.
        Parameters:
        value - The value of 'favoriteColor'.
        Returns:
        This builder.
      • hasFavoriteColor

        public boolean hasFavoriteColor()
        Checks whether the 'favoriteColor' field has been set.
        Returns:
        True if the 'favoriteColor' field has been set, false otherwise.
      • clearFavoriteColor

        public User.Builder clearFavoriteColor()
        Clears the value of the 'favoriteColor' field.
        Returns:
        This builder.
      • getEventType

        public EventType getEventType()
        Gets the value of the 'eventType' field.
        Returns:
        The value.
      • setEventType

        public User.Builder setEventType​(EventType value)
        Sets the value of the 'eventType' field.
        Parameters:
        value - The value of 'eventType'.
        Returns:
        This builder.
      • hasEventType

        public boolean hasEventType()
        Checks whether the 'eventType' field has been set.
        Returns:
        True if the 'eventType' field has been set, false otherwise.
      • clearEventType

        public User.Builder clearEventType()
        Clears the value of the 'eventType' field.
        Returns:
        This builder.
      • build

        public User build()
        Specified by:
        build in interface org.apache.avro.data.RecordBuilder<User>