Enum Class CodedInputStream.VarintExperiment
java.lang.Object
java.lang.Enum<CodedInputStream.VarintExperiment>
com.google.protobuf.CodedInputStream.VarintExperiment
- All Implemented Interfaces:
Serializable, Comparable<CodedInputStream.VarintExperiment>, Constable
- Enclosing class:
CodedInputStream
Experiment to enable new varint reading. Only for internal use for performance evaluation. Will
be removed once evaluation is complete.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse the new varint impl for all varint32 reads, even int32 where negative values are 10 bytes.Use the new varint only for cases where 10 bytes should never occur (though they may be legal). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static CodedInputStream.VarintExperiment[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTROL
-
NEW_ALL_CASES
Use the new varint impl for all varint32 reads, even int32 where negative values are 10 bytes. -
NEW_TAGS_LENGTHS_UNSIGNED_ONLY
Use the new varint only for cases where 10 bytes should never occur (though they may be legal).
-
-
Constructor Details
-
VarintExperiment
private VarintExperiment()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-