Package example.avro
Class Sms.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<T>
org.apache.avro.specific.SpecificRecordBuilderBase<Sms>
example.avro.Sms.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<Sms>
- Enclosing class:
- Sms
public static class Sms.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<Sms>
implements org.apache.avro.data.RecordBuilder<Sms>
RecordBuilder for Sms instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'phoneNumber' field.Clears the value of the 'text' field.Gets the value of the 'phoneNumber' field.getText()Gets the value of the 'text' field.booleanChecks whether the 'phoneNumber' field has been set.booleanhasText()Checks whether the 'text' field has been set.setPhoneNumber(CharSequence value) Sets the value of the 'phoneNumber' field.setText(CharSequence value) Sets the value of the 'text' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getPhoneNumber
Gets the value of the 'phoneNumber' field.- Returns:
- The value.
-
setPhoneNumber
Sets the value of the 'phoneNumber' field.- Parameters:
value- The value of 'phoneNumber'.- Returns:
- This builder.
-
hasPhoneNumber
public boolean hasPhoneNumber()Checks whether the 'phoneNumber' field has been set.- Returns:
- True if the 'phoneNumber' field has been set, false otherwise.
-
clearPhoneNumber
Clears the value of the 'phoneNumber' field.- Returns:
- This builder.
-
getText
Gets the value of the 'text' field.- Returns:
- The value.
-
setText
Sets the value of the 'text' field.- Parameters:
value- The value of 'text'.- Returns:
- This builder.
-
hasText
public boolean hasText()Checks whether the 'text' field has been set.- Returns:
- True if the 'text' field has been set, false otherwise.
-
clearText
Clears the value of the 'text' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<Sms>
-