Package com.google.protobuf
Enum ProtobufToStringOutput.OutputMode
- java.lang.Object
-
- java.lang.Enum<ProtobufToStringOutput.OutputMode>
-
- com.google.protobuf.ProtobufToStringOutput.OutputMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ProtobufToStringOutput.OutputMode>
- Enclosing class:
- ProtobufToStringOutput
private static enum ProtobufToStringOutput.OutputMode extends java.lang.Enum<ProtobufToStringOutput.OutputMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEBUG_FORMAT
TEXT_FORMAT
-
Constructor Summary
Constructors Modifier Constructor Description private
OutputMode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProtobufToStringOutput.OutputMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ProtobufToStringOutput.OutputMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEBUG_FORMAT
public static final ProtobufToStringOutput.OutputMode DEBUG_FORMAT
-
TEXT_FORMAT
public static final ProtobufToStringOutput.OutputMode TEXT_FORMAT
-
-
Method Detail
-
values
public static ProtobufToStringOutput.OutputMode[] 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 (ProtobufToStringOutput.OutputMode c : ProtobufToStringOutput.OutputMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProtobufToStringOutput.OutputMode 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
-
-