Public Member Functions | Private Attributes | List of all members
com.google.protobuf.TextFormat.UnknownFieldParseException Class Reference
Inheritance diagram for com.google.protobuf.TextFormat.UnknownFieldParseException:
Inheritance graph
[legend]

Public Member Functions

String getUnknownField ()
 
 UnknownFieldParseException (final int line, final int column, final String unknownField, final String message)
 
 UnknownFieldParseException (final String message)
 
- Public Member Functions inherited from com.google.protobuf.TextFormat.ParseException
int getColumn ()
 
int getLine ()
 
 ParseException (final int line, final int column, final String message)
 
 ParseException (final String message)
 

Private Attributes

final String unknownField
 

Detailed Description

Thrown when encountering an unknown field while parsing a text format message.

Definition at line 1245 of file TextFormat.java.

Constructor & Destructor Documentation

◆ UnknownFieldParseException() [1/2]

com.google.protobuf.TextFormat.UnknownFieldParseException.UnknownFieldParseException ( final String  message)
inline

Create a new instance, with -1 as the line and column numbers, and an empty unknown field name.

Definition at line 1252 of file TextFormat.java.

◆ UnknownFieldParseException() [2/2]

com.google.protobuf.TextFormat.UnknownFieldParseException.UnknownFieldParseException ( final int  line,
final int  column,
final String  unknownField,
final String  message 
)
inline

Create a new instance

Parameters
linethe line number where the parse error occurred, using 1-offset.
columnthe column number where the parser error occurred, using 1-offset.
unknownFieldthe name of the unknown field found while parsing.

Definition at line 1263 of file TextFormat.java.

Member Function Documentation

◆ getUnknownField()

String com.google.protobuf.TextFormat.UnknownFieldParseException.getUnknownField ( )
inline

Return the name of the unknown field encountered while parsing the protocol buffer string.

Definition at line 1272 of file TextFormat.java.

Member Data Documentation

◆ unknownField

final String com.google.protobuf.TextFormat.UnknownFieldParseException.unknownField
private

Definition at line 1246 of file TextFormat.java.


The documentation for this class was generated from the following file:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:08