| Modifier and Type | Field and Description |
|---|---|
Pipe.Schema<Object> |
pipeSchema
This pipe schema delegates to another schema derived from the input.
|
IdStrategy |
strategy |
| Constructor and Description |
|---|
DerivativeSchema(IdStrategy strategy) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doMergeFrom(Input input,
Schema<Object> derivedSchema,
Object owner) |
String |
getFieldName(int number) |
int |
getFieldNumber(String name) |
boolean |
isInitialized(Object owner) |
void |
mergeFrom(Input input,
Object owner)
Delegates to the schema derived from the input.
|
String |
messageFullName() |
String |
messageName() |
Object |
newMessage() |
Class<? super Object> |
typeClass() |
void |
writeTo(Output output,
Object value)
Delegates to the schema derived from the
value. |
public final IdStrategy strategy
public final Pipe.Schema<Object> pipeSchema
public DerivativeSchema(IdStrategy strategy)
public String getFieldName(int number)
getFieldName in interface Schema<Object>public int getFieldNumber(String name)
getFieldNumber in interface Schema<Object>public boolean isInitialized(Object owner)
isInitialized in interface Schema<Object>public String messageFullName()
messageFullName in interface Schema<Object>public String messageName()
messageName in interface Schema<Object>public Object newMessage()
newMessage in interface Schema<Object>public void mergeFrom(Input input, Object owner) throws IOException
owner owns the message (polymorphic) that is tied to
this schema.mergeFrom in interface Schema<Object>IOExceptionpublic void writeTo(Output output, Object value) throws IOException
value.writeTo in interface Schema<Object>IOExceptionprotected abstract void doMergeFrom(Input input, Schema<Object> derivedSchema, Object owner) throws IOException
IOExceptionCopyright © 2009–2020. All rights reserved.