Enum ZipkinConfig.CollectorEndpointVersion
java.lang.Object
java.lang.Enum<ZipkinConfig.CollectorEndpointVersion>
io.envoyproxy.envoy.config.trace.v3.ZipkinConfig.CollectorEndpointVersion
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<ZipkinConfig.CollectorEndpointVersion>
- Enclosing class:
ZipkinConfig
public static enum ZipkinConfig.CollectorEndpointVersion
extends Enum<ZipkinConfig.CollectorEndpointVersion>
implements com.google.protobuf.ProtocolMessageEnum
Available Zipkin collector endpoint versions.Protobuf enum
envoy.config.trace.v3.ZipkinConfig.CollectorEndpointVersion
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.[#not-implemented-hide:]Zipkin API v2, JSON over HTTP.Zipkin API v2, protobuf over HTTP. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated.static final int
[#not-implemented-hide:]static final int
Zipkin API v2, JSON over HTTP.static final int
Zipkin API v2, protobuf over HTTP.private static final com.google.protobuf.Internal.EnumLiteMap
<ZipkinConfig.CollectorEndpointVersion> private final int
private static final ZipkinConfig.CollectorEndpointVersion[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionforNumber
(int value) static final com.google.protobuf.Descriptors.EnumDescriptor
final com.google.protobuf.Descriptors.EnumDescriptor
final int
final com.google.protobuf.Descriptors.EnumValueDescriptor
static com.google.protobuf.Internal.EnumLiteMap
<ZipkinConfig.CollectorEndpointVersion> valueOf
(int value) Deprecated.valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEPRECATED_AND_UNAVAILABLE_DO_NOT_USE
@Deprecated public static final ZipkinConfig.CollectorEndpointVersion DEPRECATED_AND_UNAVAILABLE_DO_NOT_USEDeprecated.Zipkin API v1, JSON over HTTP. [#comment: The default implementation of Zipkin client before this field is added was only v1 and the way user configure this was by not explicitly specifying the version. Consequently, before this is added, the corresponding Zipkin collector expected to receive v1 payload. Hence the motivation of adding HTTP_JSON_V1 as the default is to avoid a breaking change when user upgrading Envoy with this change. Furthermore, we also immediately deprecate this field, since in Zipkin realm this v1 version is considered to be not preferable anymore.]
DEPRECATED_AND_UNAVAILABLE_DO_NOT_USE = 0 [deprecated = true, (.envoy.annotations.disallowed_by_default_enum) = true];
-
HTTP_JSON
Zipkin API v2, JSON over HTTP.
HTTP_JSON = 1;
-
HTTP_PROTO
Zipkin API v2, protobuf over HTTP.
HTTP_PROTO = 2;
-
GRPC
[#not-implemented-hide:]
GRPC = 3;
-
UNRECOGNIZED
-
-
Field Details
-
DEPRECATED_AND_UNAVAILABLE_DO_NOT_USE_VALUE
Deprecated.Zipkin API v1, JSON over HTTP. [#comment: The default implementation of Zipkin client before this field is added was only v1 and the way user configure this was by not explicitly specifying the version. Consequently, before this is added, the corresponding Zipkin collector expected to receive v1 payload. Hence the motivation of adding HTTP_JSON_V1 as the default is to avoid a breaking change when user upgrading Envoy with this change. Furthermore, we also immediately deprecate this field, since in Zipkin realm this v1 version is considered to be not preferable anymore.]
DEPRECATED_AND_UNAVAILABLE_DO_NOT_USE = 0 [deprecated = true, (.envoy.annotations.disallowed_by_default_enum) = true];
- See Also:
-
HTTP_JSON_VALUE
public static final int HTTP_JSON_VALUEZipkin API v2, JSON over HTTP.
HTTP_JSON = 1;
- See Also:
-
HTTP_PROTO_VALUE
public static final int HTTP_PROTO_VALUEZipkin API v2, protobuf over HTTP.
HTTP_PROTO = 2;
- See Also:
-
GRPC_VALUE
public static final int GRPC_VALUE[#not-implemented-hide:]
GRPC = 3;
- See Also:
-
internalValueMap
private static final com.google.protobuf.Internal.EnumLiteMap<ZipkinConfig.CollectorEndpointVersion> internalValueMap -
VALUES
-
value
private final int value
-
-
Constructor Details
-
CollectorEndpointVersion
private CollectorEndpointVersion(int value)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.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:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<ZipkinConfig.CollectorEndpointVersion> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static ZipkinConfig.CollectorEndpointVersion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) 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:
desc
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-