Enum OutputSink.Format
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<OutputSink.Format>,java.lang.constant.Constable
- Enclosing class:
- OutputSink
public static enum OutputSink.Format
extends Enum<OutputSink.Format>
implements com.google.protobuf.ProtocolMessageEnum
Output format. All output is in the form of one or more :ref:`TraceWrapper <envoy_api_msg_data.tap.v2alpha.TraceWrapper>` messages. This enumeration indicates how those messages are written. Note that not all sinks support all output formats. See individual sink documentation for more information.Protobuf enum
envoy.service.tap.v2alpha.OutputSink.Format-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEach message will be written as JSON.Each message will be written as JSON.Binary proto format.Messages are written as a sequence tuples, where each tuple is the message length encoded as a `protobuf 32-bit varint <https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.io.coded_stream>`_ followed by the binary message.Text proto format. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intEach message will be written as JSON.static final intEach message will be written as JSON.static final intMessages are written as a sequence tuples, where each tuple is the message length encoded as a `protobuf 32-bit varint <https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.io.coded_stream>`_ followed by the binary message.static final intBinary proto format.static final intText proto format. -
Method Summary
Modifier and TypeMethodDescriptionstatic OutputSink.FormatforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<OutputSink.Format>static OutputSink.FormatvalueOf(int value) Deprecated.static OutputSink.FormatvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static OutputSink.FormatReturns the enum constant of this type with the specified name.static OutputSink.Format[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
JSON_BODY_AS_BYTES
Each message will be written as JSON. Any :ref:`body <envoy_api_msg_data.tap.v2alpha.Body>` data will be present in the :ref:`as_bytes <envoy_api_field_data.tap.v2alpha.Body.as_bytes>` field. This means that body data will be base64 encoded as per the `proto3 JSON mappings <https://developers.google.com/protocol-buffers/docs/proto3#json>`_.
JSON_BODY_AS_BYTES = 0; -
JSON_BODY_AS_STRING
Each message will be written as JSON. Any :ref:`body <envoy_api_msg_data.tap.v2alpha.Body>` data will be present in the :ref:`as_string <envoy_api_field_data.tap.v2alpha.Body.as_string>` field. This means that body data will be string encoded as per the `proto3 JSON mappings <https://developers.google.com/protocol-buffers/docs/proto3#json>`_. This format type is useful when it is known that that body is human readable (e.g., JSON over HTTP) and the user wishes to view it directly without being forced to base64 decode the body.
JSON_BODY_AS_STRING = 1; -
PROTO_BINARY
Binary proto format. Note that binary proto is not self-delimiting. If a sink writes multiple binary messages without any length information the data stream will not be useful. However, for certain sinks that are self-delimiting (e.g., one message per file) this output format makes consumption simpler.
PROTO_BINARY = 2; -
PROTO_BINARY_LENGTH_DELIMITED
Messages are written as a sequence tuples, where each tuple is the message length encoded as a `protobuf 32-bit varint <https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.io.coded_stream>`_ followed by the binary message. The messages can be read back using the language specific protobuf coded stream implementation to obtain the message length and the message.
PROTO_BINARY_LENGTH_DELIMITED = 3; -
PROTO_TEXT
Text proto format.
PROTO_TEXT = 4; -
UNRECOGNIZED
-
-
Field Details
-
JSON_BODY_AS_BYTES_VALUE
public static final int JSON_BODY_AS_BYTES_VALUEEach message will be written as JSON. Any :ref:`body <envoy_api_msg_data.tap.v2alpha.Body>` data will be present in the :ref:`as_bytes <envoy_api_field_data.tap.v2alpha.Body.as_bytes>` field. This means that body data will be base64 encoded as per the `proto3 JSON mappings <https://developers.google.com/protocol-buffers/docs/proto3#json>`_.
JSON_BODY_AS_BYTES = 0;- See Also:
-
JSON_BODY_AS_STRING_VALUE
public static final int JSON_BODY_AS_STRING_VALUEEach message will be written as JSON. Any :ref:`body <envoy_api_msg_data.tap.v2alpha.Body>` data will be present in the :ref:`as_string <envoy_api_field_data.tap.v2alpha.Body.as_string>` field. This means that body data will be string encoded as per the `proto3 JSON mappings <https://developers.google.com/protocol-buffers/docs/proto3#json>`_. This format type is useful when it is known that that body is human readable (e.g., JSON over HTTP) and the user wishes to view it directly without being forced to base64 decode the body.
JSON_BODY_AS_STRING = 1;- See Also:
-
PROTO_BINARY_VALUE
public static final int PROTO_BINARY_VALUEBinary proto format. Note that binary proto is not self-delimiting. If a sink writes multiple binary messages without any length information the data stream will not be useful. However, for certain sinks that are self-delimiting (e.g., one message per file) this output format makes consumption simpler.
PROTO_BINARY = 2;- See Also:
-
PROTO_BINARY_LENGTH_DELIMITED_VALUE
public static final int PROTO_BINARY_LENGTH_DELIMITED_VALUEMessages are written as a sequence tuples, where each tuple is the message length encoded as a `protobuf 32-bit varint <https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.io.coded_stream>`_ followed by the binary message. The messages can be read back using the language specific protobuf coded stream implementation to obtain the message length and the message.
PROTO_BINARY_LENGTH_DELIMITED = 3;- See Also:
-
PROTO_TEXT_VALUE
public static final int PROTO_TEXT_VALUEText proto format.
PROTO_TEXT = 4;- See Also:
-
-
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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin 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
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
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:
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
-