public abstract static class MappedSchema.Field<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
groupFilter |
java.lang.String |
name |
int |
number |
boolean |
repeated |
WireFormat.FieldType |
type |
| Constructor and Description |
|---|
Field(WireFormat.FieldType type,
int number,
java.lang.String name,
boolean repeated,
Tag tag) |
Field(WireFormat.FieldType type,
int number,
java.lang.String name,
Tag tag) |
| Modifier and Type | Method and Description |
|---|---|
protected MappedSchema.Field<T> |
copy(IdStrategy strategy)
Overriden by impls to enable copying.
|
protected abstract void |
mergeFrom(Input input,
T message)
Reads the field value into the
message. |
protected abstract void |
transfer(Pipe pipe,
Input input,
Output output,
boolean repeated)
Transfer the input field to the output field.
|
protected abstract void |
writeTo(Output output,
T message)
Writes the value of a field to the
output. |
public final WireFormat.FieldType type
public final int number
public final java.lang.String name
public final boolean repeated
public final int groupFilter
public Field(WireFormat.FieldType type, int number, java.lang.String name, boolean repeated, Tag tag)
public Field(WireFormat.FieldType type, int number, java.lang.String name, Tag tag)
protected MappedSchema.Field<T> copy(IdStrategy strategy)
protected abstract void writeTo(Output output, T message) throws java.io.IOException
output.java.io.IOExceptionprotected abstract void mergeFrom(Input input, T message) throws java.io.IOException
message.java.io.IOExceptionCopyright © 2009-2023. All Rights Reserved.