common.proto 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. syntax = "proto3";
  2. package envoy.data.tap.v2alpha;
  3. import "udpa/annotations/status.proto";
  4. option java_package = "io.envoyproxy.envoy.data.tap.v2alpha";
  5. option java_outer_classname = "CommonProto";
  6. option java_multiple_files = true;
  7. option go_package = "github.com/envoyproxy/go-control-plane/envoy/data/tap/v2alpha";
  8. option (udpa.annotations.file_status).package_version_status = FROZEN;
  9. // [#protodoc-title: Tap common data]
  10. // Wrapper for tapped body data. This includes HTTP request/response body, transport socket received
  11. // and transmitted data, etc.
  12. message Body {
  13. oneof body_type {
  14. // Body data as bytes. By default, tap body data will be present in this field, as the proto
  15. // `bytes` type can contain any valid byte.
  16. bytes as_bytes = 1;
  17. // Body data as string. This field is only used when the :ref:`JSON_BODY_AS_STRING
  18. // <envoy_api_enum_value_service.tap.v2alpha.OutputSink.Format.JSON_BODY_AS_STRING>` sink
  19. // format type is selected. See the documentation for that option for why this is useful.
  20. string as_string = 2;
  21. }
  22. // Specifies whether body data has been truncated to fit within the specified
  23. // :ref:`max_buffered_rx_bytes
  24. // <envoy_api_field_service.tap.v2alpha.OutputConfig.max_buffered_rx_bytes>` and
  25. // :ref:`max_buffered_tx_bytes
  26. // <envoy_api_field_service.tap.v2alpha.OutputConfig.max_buffered_tx_bytes>` settings.
  27. bool truncated = 3;
  28. }