Package com.google.protobuf
Class TextFormatParseInfoTree.Builder
java.lang.Object
com.google.protobuf.TextFormatParseInfoTree.Builder
- Enclosing class:
TextFormatParseInfoTree
Builder for a
TextFormatParseInfoTree
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theTextFormatParseInfoTree
.getBuilderForSubMessageField
(Descriptors.FieldDescriptor fieldDescriptor) Set for a sub message.setLocation
(Descriptors.FieldDescriptor fieldDescriptor, TextFormatParseLocation location) Record the starting location of a single value for a field.
-
Method Details
-
setLocation
public TextFormatParseInfoTree.Builder setLocation(Descriptors.FieldDescriptor fieldDescriptor, TextFormatParseLocation location) Record the starting location of a single value for a field.- Parameters:
fieldDescriptor
- the fieldlocation
- source code location information
-
getBuilderForSubMessageField
public TextFormatParseInfoTree.Builder getBuilderForSubMessageField(Descriptors.FieldDescriptor fieldDescriptor) Set for a sub message.A new builder is created for a sub message. The builder that is returned is a new builder. The return is not the invoked
builder.getBuilderForSubMessageField
.- Parameters:
fieldDescriptor
- the field whose value is the submessage- Returns:
- a new Builder for the sub message
-
build
Build theTextFormatParseInfoTree
.- Returns:
- the
TextFormatParseInfoTree
-