Package io.envoyproxy.envoy.data.tap.v3
Interface BodyOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Body,Body.Builder
public interface BodyOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.ByteStringBody data as bytes.Body data as string.com.google.protobuf.ByteStringBody data as string.booleanSpecifies whether body data has been truncated to fit within the specified :ref:`max_buffered_rx_bytes <envoy_v3_api_field_config.tap.v3.OutputConfig.max_buffered_rx_bytes>` and :ref:`max_buffered_tx_bytes <envoy_v3_api_field_config.tap.v3.OutputConfig.max_buffered_tx_bytes>` settings.booleanBody data as bytes.booleanBody data as string.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasAsBytes
boolean hasAsBytes()Body data as bytes. By default, tap body data will be present in this field, as the proto ``bytes`` type can contain any valid byte.
bytes as_bytes = 1;- Returns:
- Whether the asBytes field is set.
-
getAsBytes
com.google.protobuf.ByteString getAsBytes()Body data as bytes. By default, tap body data will be present in this field, as the proto ``bytes`` type can contain any valid byte.
bytes as_bytes = 1;- Returns:
- The asBytes.
-
hasAsString
boolean hasAsString()Body data as string. This field is only used when the :ref:`JSON_BODY_AS_STRING <envoy_v3_api_enum_value_config.tap.v3.OutputSink.Format.JSON_BODY_AS_STRING>` sink format type is selected. See the documentation for that option for why this is useful.
string as_string = 2;- Returns:
- Whether the asString field is set.
-
getAsString
String getAsString()Body data as string. This field is only used when the :ref:`JSON_BODY_AS_STRING <envoy_v3_api_enum_value_config.tap.v3.OutputSink.Format.JSON_BODY_AS_STRING>` sink format type is selected. See the documentation for that option for why this is useful.
string as_string = 2;- Returns:
- The asString.
-
getAsStringBytes
com.google.protobuf.ByteString getAsStringBytes()Body data as string. This field is only used when the :ref:`JSON_BODY_AS_STRING <envoy_v3_api_enum_value_config.tap.v3.OutputSink.Format.JSON_BODY_AS_STRING>` sink format type is selected. See the documentation for that option for why this is useful.
string as_string = 2;- Returns:
- The bytes for asString.
-
getTruncated
boolean getTruncated()Specifies whether body data has been truncated to fit within the specified :ref:`max_buffered_rx_bytes <envoy_v3_api_field_config.tap.v3.OutputConfig.max_buffered_rx_bytes>` and :ref:`max_buffered_tx_bytes <envoy_v3_api_field_config.tap.v3.OutputConfig.max_buffered_tx_bytes>` settings.
bool truncated = 3;- Returns:
- The truncated.
-
getBodyTypeCase
Body.BodyTypeCase getBodyTypeCase()
-