public enum Encoding extends Enum<Encoding>
| Enum Constant and Description |
|---|
JSON |
PROTO3
Repeated (type 2) fields are length-prefixed.
|
THRIFT
Deprecated.
this format is deprecated in favor of json or proto3
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
listSizeInBytes(int encodedSizeInBytes)
Like
listSizeInBytes(List), except for a single element. |
abstract int |
listSizeInBytes(List<byte[]> values) |
static Encoding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Encoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Encoding JSON
@Deprecated public static final Encoding THRIFT
The message's binary data includes a list header followed by N spans serialized in TBinaryProtocol
public static final Encoding PROTO3
See https://developers.google.com/protocol-buffers/docs/encoding#optional
public static Encoding[] values()
for (Encoding c : Encoding.values()) System.out.println(c);
public static Encoding valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract int listSizeInBytes(int encodedSizeInBytes)
listSizeInBytes(List), except for a single element.public abstract int listSizeInBytes(List<byte[]> values)
Copyright © 2015–2018 OpenZipkin. All rights reserved.