public static class UserProfile.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<UserProfile> implements org.apache.avro.data.RecordBuilder<UserProfile>
| Modifier and Type | Method and Description |
|---|---|
UserProfile |
build() |
UserProfile.Builder |
clearActionsCount()
Clears the value of the 'actions_count' field.
|
UserProfile.Builder |
clearDeviceUsage()
Clears the value of the 'device_usage' field.
|
UserProfile.Builder |
clearFavouriteDevice()
Clears the value of the 'favourite_device' field.
|
UserProfile.Builder |
clearLastAction()
Clears the value of the 'last_action' field.
|
UserProfile.Builder |
clearUserId()
Clears the value of the 'user_id' field.
|
Long |
getActionsCount()
Gets the value of the 'actions_count' field.
|
List<DeviceUsage> |
getDeviceUsage()
Gets the value of the 'device_usage' field.
|
CharSequence |
getFavouriteDevice()
Gets the value of the 'favourite_device' field.
|
org.joda.time.DateTime |
getLastAction()
Gets the value of the 'last_action' field.
|
CharSequence |
getUserId()
Gets the value of the 'user_id' field.
|
boolean |
hasActionsCount()
Checks whether the 'actions_count' field has been set.
|
boolean |
hasDeviceUsage()
Checks whether the 'device_usage' field has been set.
|
boolean |
hasFavouriteDevice()
Checks whether the 'favourite_device' field has been set.
|
boolean |
hasLastAction()
Checks whether the 'last_action' field has been set.
|
boolean |
hasUserId()
Checks whether the 'user_id' field has been set.
|
UserProfile.Builder |
setActionsCount(long value)
Sets the value of the 'actions_count' field.
|
UserProfile.Builder |
setDeviceUsage(List<DeviceUsage> value)
Sets the value of the 'device_usage' field.
|
UserProfile.Builder |
setFavouriteDevice(CharSequence value)
Sets the value of the 'favourite_device' field.
|
UserProfile.Builder |
setLastAction(org.joda.time.DateTime value)
Sets the value of the 'last_action' field.
|
UserProfile.Builder |
setUserId(CharSequence value)
Sets the value of the 'user_id' field.
|
public CharSequence getUserId()
public UserProfile.Builder setUserId(CharSequence value)
value - The value of 'user_id'.public boolean hasUserId()
public UserProfile.Builder clearUserId()
public Long getActionsCount()
public UserProfile.Builder setActionsCount(long value)
value - The value of 'actions_count'.public boolean hasActionsCount()
public UserProfile.Builder clearActionsCount()
public org.joda.time.DateTime getLastAction()
public UserProfile.Builder setLastAction(org.joda.time.DateTime value)
value - The value of 'last_action'.public boolean hasLastAction()
public UserProfile.Builder clearLastAction()
public CharSequence getFavouriteDevice()
public UserProfile.Builder setFavouriteDevice(CharSequence value)
value - The value of 'favourite_device'.public boolean hasFavouriteDevice()
public UserProfile.Builder clearFavouriteDevice()
public List<DeviceUsage> getDeviceUsage()
public UserProfile.Builder setDeviceUsage(List<DeviceUsage> value)
value - The value of 'device_usage'.public boolean hasDeviceUsage()
public UserProfile.Builder clearDeviceUsage()
public UserProfile build()
build in interface org.apache.avro.data.RecordBuilder<UserProfile>Copyright © 2017. All rights reserved.