public class Sms
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
Sms.Builder
RecordBuilder for Sms instances.
|
Modifier and Type | Field and Description |
---|---|
CharSequence |
phoneNumber
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
CharSequence |
text
Deprecated.
|
Constructor and Description |
---|
Sms()
Default constructor.
|
Sms(CharSequence phoneNumber,
CharSequence text)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
CharSequence |
getPhoneNumber()
Gets the value of the 'phoneNumber' field.
|
org.apache.avro.Schema |
getSchema() |
CharSequence |
getText()
Gets the value of the 'text' field.
|
static Sms.Builder |
newBuilder()
Creates a new Sms RecordBuilder.
|
static Sms.Builder |
newBuilder(Sms.Builder other)
Creates a new Sms RecordBuilder by copying an existing Builder.
|
static Sms.Builder |
newBuilder(Sms other)
Creates a new Sms RecordBuilder by copying an existing Sms instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setPhoneNumber(CharSequence value)
Sets the value of the 'phoneNumber' field.
|
void |
setText(CharSequence value)
Sets the value of the 'text' field.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public CharSequence phoneNumber
@Deprecated public CharSequence text
public Sms()
newBuilder()
.public Sms(CharSequence phoneNumber, CharSequence text)
phoneNumber
- The new value for phoneNumbertext
- The new value for textpublic static org.apache.avro.Schema getClassSchema()
public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
getSchema
in class org.apache.avro.specific.SpecificRecordBase
public Object get(int field$)
get
in interface org.apache.avro.generic.IndexedRecord
get
in class org.apache.avro.specific.SpecificRecordBase
public void put(int field$, Object value$)
put
in interface org.apache.avro.generic.IndexedRecord
put
in class org.apache.avro.specific.SpecificRecordBase
public CharSequence getPhoneNumber()
public void setPhoneNumber(CharSequence value)
value
- the value to set.public CharSequence getText()
public void setText(CharSequence value)
value
- the value to set.public static Sms.Builder newBuilder()
public static Sms.Builder newBuilder(Sms.Builder other)
other
- The existing builder to copy.public static Sms.Builder newBuilder(Sms other)
other
- The existing instance to copy.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class org.apache.avro.specific.SpecificRecordBase
IOException
public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
readExternal
in class org.apache.avro.specific.SpecificRecordBase
IOException
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.