common.proto 1.5 KB

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