public final class GeneratedParser extends java.lang.Object implements Snippet
This parser should be generated for all messages except standard ones
like Any
, int32
, Timestamp
. The parsers for these
standard types are manually created and require no code generation.
Code provided by the class is in ES5
standard
since Protobuf compiler generates JavaScript in ES5
.
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
parseMethodCall(java.lang.String parserVariable,
java.lang.String valueToParse)
Obtains the string representing a call to a method parsing an object into a message.
|
CodeLines |
value()
Obtains code lines representing this snippet.
|
public CodeLines value()
Snippet
public static java.lang.String parseMethodCall(java.lang.String parserVariable, java.lang.String valueToParse)
The method can be used to reference the a call to a handcrafted parser as well as for a generated parser.
parserVariable
- the name of the parser variablevalueToParse
- the object to parse