Package com.google.protobuf
Enum TextFormat.Printer.FieldReporterLevel
- java.lang.Object
-
- java.lang.Enum<TextFormat.Printer.FieldReporterLevel>
-
- com.google.protobuf.TextFormat.Printer.FieldReporterLevel
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TextFormat.Printer.FieldReporterLevel>
- Enclosing class:
- TextFormat.Printer
static enum TextFormat.Printer.FieldReporterLevel extends java.lang.Enum<TextFormat.Printer.FieldReporterLevel>
A list of the public APIs that output human-readable text from a message. A higher-level API must be larger than any lower-level APIs it calls under the hood, e.g DEBUG_MULTILINE.compareTo(PRINTER_PRINT_TO_STRING) > 0. The inverse is not necessarily true.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABSTRACT_MUTABLE_TO_STRINGABSTRACT_TO_STRINGDEBUG_MULTILINEDEBUG_SINGLE_LINELEGACY_MULTILINELEGACY_SINGLE_LINENO_REPORTPRINTPRINT_UNICODEPRINTER_PRINT_TO_STRINGSHORT_DEBUG_STRINGTEXTFORMAT_PRINT_TO_STRING
-
Field Summary
Fields Modifier and Type Field Description private intindex
-
Constructor Summary
Constructors Modifier Constructor Description privateFieldReporterLevel(int index)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TextFormat.Printer.FieldReporterLevelvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TextFormat.Printer.FieldReporterLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_REPORT
public static final TextFormat.Printer.FieldReporterLevel NO_REPORT
-
PRINT
public static final TextFormat.Printer.FieldReporterLevel PRINT
-
PRINTER_PRINT_TO_STRING
public static final TextFormat.Printer.FieldReporterLevel PRINTER_PRINT_TO_STRING
-
TEXTFORMAT_PRINT_TO_STRING
public static final TextFormat.Printer.FieldReporterLevel TEXTFORMAT_PRINT_TO_STRING
-
PRINT_UNICODE
public static final TextFormat.Printer.FieldReporterLevel PRINT_UNICODE
-
SHORT_DEBUG_STRING
public static final TextFormat.Printer.FieldReporterLevel SHORT_DEBUG_STRING
-
LEGACY_MULTILINE
public static final TextFormat.Printer.FieldReporterLevel LEGACY_MULTILINE
-
LEGACY_SINGLE_LINE
public static final TextFormat.Printer.FieldReporterLevel LEGACY_SINGLE_LINE
-
DEBUG_MULTILINE
public static final TextFormat.Printer.FieldReporterLevel DEBUG_MULTILINE
-
DEBUG_SINGLE_LINE
public static final TextFormat.Printer.FieldReporterLevel DEBUG_SINGLE_LINE
-
ABSTRACT_TO_STRING
public static final TextFormat.Printer.FieldReporterLevel ABSTRACT_TO_STRING
-
ABSTRACT_MUTABLE_TO_STRING
public static final TextFormat.Printer.FieldReporterLevel ABSTRACT_MUTABLE_TO_STRING
-
-
Method Detail
-
values
public static TextFormat.Printer.FieldReporterLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TextFormat.Printer.FieldReporterLevel c : TextFormat.Printer.FieldReporterLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextFormat.Printer.FieldReporterLevel valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-