Class UuidRequestIdConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.extensions.request_id.uuid.v3.UuidRequestIdConfig
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,UuidRequestIdConfigOrBuilder,Serializable
public final class UuidRequestIdConfig extends com.google.protobuf.GeneratedMessageV3 implements UuidRequestIdConfigOrBuilder
Configuration for the default UUID request ID extension which has the following behavior: 1. Request ID is propagated using the :ref:`x-request-id <config_http_conn_man_headers_x-request-id>` header. 2. Request ID is a universally unique identifier `(UUID4) <https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)>`_. 3. Tracing decision (sampled, forced, etc) is set in 14th nibble of the UUID. By default this will overwrite existing UUIDs received in the ``x-request-id`` header if the trace sampling decision is changed. The 14th nibble of the UUID4 has been chosen because it is fixed to '4' by the standard. Thus, '4' indicates a default UUID and no trace status. This nibble is swapped to: a. '9': Sampled. b. 'a': Force traced due to server-side override. c. 'b': Force traced due to client-side request ID joining. See the :ref:`x-request-id <config_http_conn_man_headers_x-request-id>` documentation for more information.Protobuf typeenvoy.extensions.request_id.uuid.v3.UuidRequestIdConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUuidRequestIdConfig.BuilderConfiguration for the default UUID request ID extension which has the following behavior: 1.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intPACK_TRACE_REASON_FIELD_NUMBERstatic intUSE_REQUEST_ID_FOR_TRACE_SAMPLING_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static UuidRequestIdConfiggetDefaultInstance()UuidRequestIdConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.BoolValuegetPackTraceReason()Whether the implementation alters the UUID to contain the trace sampling decision as per the ``UuidRequestIdConfig`` message documentation.com.google.protobuf.BoolValueOrBuildergetPackTraceReasonOrBuilder()Whether the implementation alters the UUID to contain the trace sampling decision as per the ``UuidRequestIdConfig`` message documentation.com.google.protobuf.Parser<UuidRequestIdConfig>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()com.google.protobuf.BoolValuegetUseRequestIdForTraceSampling()Set whether to use :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` for sampling or not.com.google.protobuf.BoolValueOrBuildergetUseRequestIdForTraceSamplingOrBuilder()Set whether to use :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` for sampling or not.inthashCode()booleanhasPackTraceReason()Whether the implementation alters the UUID to contain the trace sampling decision as per the ``UuidRequestIdConfig`` message documentation.booleanhasUseRequestIdForTraceSampling()Set whether to use :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` for sampling or not.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static UuidRequestIdConfig.BuildernewBuilder()static UuidRequestIdConfig.BuildernewBuilder(UuidRequestIdConfig prototype)UuidRequestIdConfig.BuildernewBuilderForType()protected UuidRequestIdConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static UuidRequestIdConfigparseDelimitedFrom(InputStream input)static UuidRequestIdConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static UuidRequestIdConfigparseFrom(byte[] data)static UuidRequestIdConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static UuidRequestIdConfigparseFrom(com.google.protobuf.ByteString data)static UuidRequestIdConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static UuidRequestIdConfigparseFrom(com.google.protobuf.CodedInputStream input)static UuidRequestIdConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static UuidRequestIdConfigparseFrom(InputStream input)static UuidRequestIdConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static UuidRequestIdConfigparseFrom(ByteBuffer data)static UuidRequestIdConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<UuidRequestIdConfig>parser()UuidRequestIdConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
PACK_TRACE_REASON_FIELD_NUMBER
public static final int PACK_TRACE_REASON_FIELD_NUMBER
- See Also:
- Constant Field Values
-
USE_REQUEST_ID_FOR_TRACE_SAMPLING_FIELD_NUMBER
public static final int USE_REQUEST_ID_FOR_TRACE_SAMPLING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasPackTraceReason
public boolean hasPackTraceReason()
Whether the implementation alters the UUID to contain the trace sampling decision as per the ``UuidRequestIdConfig`` message documentation. This defaults to true. If disabled no modification to the UUID will be performed. It is important to note that if disabled, stable sampling of traces, access logs, etc. will no longer work and only random sampling will be possible.
.google.protobuf.BoolValue pack_trace_reason = 1;- Specified by:
hasPackTraceReasonin interfaceUuidRequestIdConfigOrBuilder- Returns:
- Whether the packTraceReason field is set.
-
getPackTraceReason
public com.google.protobuf.BoolValue getPackTraceReason()
Whether the implementation alters the UUID to contain the trace sampling decision as per the ``UuidRequestIdConfig`` message documentation. This defaults to true. If disabled no modification to the UUID will be performed. It is important to note that if disabled, stable sampling of traces, access logs, etc. will no longer work and only random sampling will be possible.
.google.protobuf.BoolValue pack_trace_reason = 1;- Specified by:
getPackTraceReasonin interfaceUuidRequestIdConfigOrBuilder- Returns:
- The packTraceReason.
-
getPackTraceReasonOrBuilder
public com.google.protobuf.BoolValueOrBuilder getPackTraceReasonOrBuilder()
Whether the implementation alters the UUID to contain the trace sampling decision as per the ``UuidRequestIdConfig`` message documentation. This defaults to true. If disabled no modification to the UUID will be performed. It is important to note that if disabled, stable sampling of traces, access logs, etc. will no longer work and only random sampling will be possible.
.google.protobuf.BoolValue pack_trace_reason = 1;- Specified by:
getPackTraceReasonOrBuilderin interfaceUuidRequestIdConfigOrBuilder
-
hasUseRequestIdForTraceSampling
public boolean hasUseRequestIdForTraceSampling()
Set whether to use :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` for sampling or not. This defaults to true. See the :ref:`context propagation <arch_overview_tracing_context_propagation>` overview for more information.
.google.protobuf.BoolValue use_request_id_for_trace_sampling = 2;- Specified by:
hasUseRequestIdForTraceSamplingin interfaceUuidRequestIdConfigOrBuilder- Returns:
- Whether the useRequestIdForTraceSampling field is set.
-
getUseRequestIdForTraceSampling
public com.google.protobuf.BoolValue getUseRequestIdForTraceSampling()
Set whether to use :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` for sampling or not. This defaults to true. See the :ref:`context propagation <arch_overview_tracing_context_propagation>` overview for more information.
.google.protobuf.BoolValue use_request_id_for_trace_sampling = 2;- Specified by:
getUseRequestIdForTraceSamplingin interfaceUuidRequestIdConfigOrBuilder- Returns:
- The useRequestIdForTraceSampling.
-
getUseRequestIdForTraceSamplingOrBuilder
public com.google.protobuf.BoolValueOrBuilder getUseRequestIdForTraceSamplingOrBuilder()
Set whether to use :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` for sampling or not. This defaults to true. See the :ref:`context propagation <arch_overview_tracing_context_propagation>` overview for more information.
.google.protobuf.BoolValue use_request_id_for_trace_sampling = 2;- Specified by:
getUseRequestIdForTraceSamplingOrBuilderin interfaceUuidRequestIdConfigOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static UuidRequestIdConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UuidRequestIdConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UuidRequestIdConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UuidRequestIdConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UuidRequestIdConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UuidRequestIdConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UuidRequestIdConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static UuidRequestIdConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static UuidRequestIdConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static UuidRequestIdConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static UuidRequestIdConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static UuidRequestIdConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public UuidRequestIdConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static UuidRequestIdConfig.Builder newBuilder()
-
newBuilder
public static UuidRequestIdConfig.Builder newBuilder(UuidRequestIdConfig prototype)
-
toBuilder
public UuidRequestIdConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected UuidRequestIdConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static UuidRequestIdConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<UuidRequestIdConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<UuidRequestIdConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public UuidRequestIdConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-