public final class FieldToParse
extends java.lang.Object
Constructor and Description |
---|
FieldToParse(com.google.protobuf.Descriptors.FieldDescriptor descriptor,
java.lang.String objectVariable,
java.lang.String messageVariable)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
com.google.protobuf.Descriptors.FieldDescriptor |
descriptor()
Obtains the descriptor of the field.
|
java.lang.String |
messageVariable()
Obtains the name of a variable to set the field at.
|
java.lang.String |
value()
Obtains the reference to the field value on the source object.
|
public FieldToParse(com.google.protobuf.Descriptors.FieldDescriptor descriptor, java.lang.String objectVariable, java.lang.String messageVariable)
descriptor
- the descriptor of the field to be parsedobjectVariable
- the name of the object to get the field value to be parsedmessageVariable
- the name of the message to set the parsed fieldpublic com.google.protobuf.Descriptors.FieldDescriptor descriptor()
public java.lang.String messageVariable()
public java.lang.String value()