Package example.avro
Class User.Builder
- java.lang.Object
-
- org.apache.avro.data.RecordBuilderBase<T>
-
- org.apache.avro.specific.SpecificRecordBuilderBase<User>
-
- example.avro.User.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description User
build()
User.Builder
clearEventType()
Clears the value of the 'eventType' field.User.Builder
clearFavoriteColor()
Clears the value of the 'favoriteColor' field.User.Builder
clearFavoriteNumber()
Clears the value of the 'favoriteNumber' field.User.Builder
clearName()
Clears the value of the 'name' field.EventType
getEventType()
Gets the value of the 'eventType' field.CharSequence
getFavoriteColor()
Gets the value of the 'favoriteColor' field.CharSequence
getFavoriteNumber()
Gets the value of the 'favoriteNumber' field.CharSequence
getName()
Gets the value of the 'name' field.boolean
hasEventType()
Checks whether the 'eventType' field has been set.boolean
hasFavoriteColor()
Checks whether the 'favoriteColor' field has been set.boolean
hasFavoriteNumber()
Checks whether the 'favoriteNumber' field has been set.boolean
hasName()
Checks whether the 'name' field has been set.User.Builder
setEventType(EventType value)
Sets the value of the 'eventType' field.User.Builder
setFavoriteColor(CharSequence value)
Sets the value of the 'favoriteColor' field.User.Builder
setFavoriteNumber(CharSequence value)
Sets the value of the 'favoriteNumber' field.User.Builder
setName(CharSequence value)
Sets the value of the 'name' field.
-
-
-
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.
-
-