Class ProcessingRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.service.ext_proc.v3.ProcessingRequest
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ProcessingRequestOrBuilder, Serializable

public final class ProcessingRequest extends com.google.protobuf.GeneratedMessageV3 implements ProcessingRequestOrBuilder
 This represents the different types of messages that the data plane can send
 to an external processing server.
 [#next-free-field: 12]
 
Protobuf type envoy.service.ext_proc.v3.ProcessingRequest
See Also:
  • Field Details

    • REQUEST_HEADERS_FIELD_NUMBER

      public static final int REQUEST_HEADERS_FIELD_NUMBER
      See Also:
    • RESPONSE_HEADERS_FIELD_NUMBER

      public static final int RESPONSE_HEADERS_FIELD_NUMBER
      See Also:
    • REQUEST_BODY_FIELD_NUMBER

      public static final int REQUEST_BODY_FIELD_NUMBER
      See Also:
    • RESPONSE_BODY_FIELD_NUMBER

      public static final int RESPONSE_BODY_FIELD_NUMBER
      See Also:
    • REQUEST_TRAILERS_FIELD_NUMBER

      public static final int REQUEST_TRAILERS_FIELD_NUMBER
      See Also:
    • RESPONSE_TRAILERS_FIELD_NUMBER

      public static final int RESPONSE_TRAILERS_FIELD_NUMBER
      See Also:
    • METADATA_CONTEXT_FIELD_NUMBER

      public static final int METADATA_CONTEXT_FIELD_NUMBER
      See Also:
    • ATTRIBUTES_FIELD_NUMBER

      public static final int ATTRIBUTES_FIELD_NUMBER
      See Also:
    • OBSERVABILITY_MODE_FIELD_NUMBER

      public static final int OBSERVABILITY_MODE_FIELD_NUMBER
      See Also:
    • PROTOCOL_CONFIG_FIELD_NUMBER

      public static final int PROTOCOL_CONFIG_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getRequestCase

      public ProcessingRequest.RequestCase getRequestCase()
      Specified by:
      getRequestCase in interface ProcessingRequestOrBuilder
    • hasRequestHeaders

      public boolean hasRequestHeaders()
       Information about the HTTP request headers, as well as peer info and additional
       properties. Unless ``observability_mode`` is ``true``, the server must send back a
       HeaderResponse message, an ImmediateResponse message, or close the stream.
       
      .envoy.service.ext_proc.v3.HttpHeaders request_headers = 2;
      Specified by:
      hasRequestHeaders in interface ProcessingRequestOrBuilder
      Returns:
      Whether the requestHeaders field is set.
    • getRequestHeaders

      public HttpHeaders getRequestHeaders()
       Information about the HTTP request headers, as well as peer info and additional
       properties. Unless ``observability_mode`` is ``true``, the server must send back a
       HeaderResponse message, an ImmediateResponse message, or close the stream.
       
      .envoy.service.ext_proc.v3.HttpHeaders request_headers = 2;
      Specified by:
      getRequestHeaders in interface ProcessingRequestOrBuilder
      Returns:
      The requestHeaders.
    • getRequestHeadersOrBuilder

      public HttpHeadersOrBuilder getRequestHeadersOrBuilder()
       Information about the HTTP request headers, as well as peer info and additional
       properties. Unless ``observability_mode`` is ``true``, the server must send back a
       HeaderResponse message, an ImmediateResponse message, or close the stream.
       
      .envoy.service.ext_proc.v3.HttpHeaders request_headers = 2;
      Specified by:
      getRequestHeadersOrBuilder in interface ProcessingRequestOrBuilder
    • hasResponseHeaders

      public boolean hasResponseHeaders()
       Information about the HTTP response headers, as well as peer info and additional
       properties. Unless ``observability_mode`` is ``true``, the server must send back a
       HeaderResponse message or close the stream.
       
      .envoy.service.ext_proc.v3.HttpHeaders response_headers = 3;
      Specified by:
      hasResponseHeaders in interface ProcessingRequestOrBuilder
      Returns:
      Whether the responseHeaders field is set.
    • getResponseHeaders

      public HttpHeaders getResponseHeaders()
       Information about the HTTP response headers, as well as peer info and additional
       properties. Unless ``observability_mode`` is ``true``, the server must send back a
       HeaderResponse message or close the stream.
       
      .envoy.service.ext_proc.v3.HttpHeaders response_headers = 3;
      Specified by:
      getResponseHeaders in interface ProcessingRequestOrBuilder
      Returns:
      The responseHeaders.
    • getResponseHeadersOrBuilder

      public HttpHeadersOrBuilder getResponseHeadersOrBuilder()
       Information about the HTTP response headers, as well as peer info and additional
       properties. Unless ``observability_mode`` is ``true``, the server must send back a
       HeaderResponse message or close the stream.
       
      .envoy.service.ext_proc.v3.HttpHeaders response_headers = 3;
      Specified by:
      getResponseHeadersOrBuilder in interface ProcessingRequestOrBuilder
    • hasRequestBody

      public boolean hasRequestBody()
       A chunk of the HTTP request body. Unless ``observability_mode`` is true, the server must send back
       a BodyResponse message, an ImmediateResponse message, or close the stream.
       
      .envoy.service.ext_proc.v3.HttpBody request_body = 4;
      Specified by:
      hasRequestBody in interface ProcessingRequestOrBuilder
      Returns:
      Whether the requestBody field is set.
    • getRequestBody

      public HttpBody getRequestBody()
       A chunk of the HTTP request body. Unless ``observability_mode`` is true, the server must send back
       a BodyResponse message, an ImmediateResponse message, or close the stream.
       
      .envoy.service.ext_proc.v3.HttpBody request_body = 4;
      Specified by:
      getRequestBody in interface ProcessingRequestOrBuilder
      Returns:
      The requestBody.
    • getRequestBodyOrBuilder

      public HttpBodyOrBuilder getRequestBodyOrBuilder()
       A chunk of the HTTP request body. Unless ``observability_mode`` is true, the server must send back
       a BodyResponse message, an ImmediateResponse message, or close the stream.
       
      .envoy.service.ext_proc.v3.HttpBody request_body = 4;
      Specified by:
      getRequestBodyOrBuilder in interface ProcessingRequestOrBuilder
    • hasResponseBody

      public boolean hasResponseBody()
       A chunk of the HTTP response body. Unless ``observability_mode`` is ``true``, the server must send back
       a BodyResponse message or close the stream.
       
      .envoy.service.ext_proc.v3.HttpBody response_body = 5;
      Specified by:
      hasResponseBody in interface ProcessingRequestOrBuilder
      Returns:
      Whether the responseBody field is set.
    • getResponseBody

      public HttpBody getResponseBody()
       A chunk of the HTTP response body. Unless ``observability_mode`` is ``true``, the server must send back
       a BodyResponse message or close the stream.
       
      .envoy.service.ext_proc.v3.HttpBody response_body = 5;
      Specified by:
      getResponseBody in interface ProcessingRequestOrBuilder
      Returns:
      The responseBody.
    • getResponseBodyOrBuilder

      public HttpBodyOrBuilder getResponseBodyOrBuilder()
       A chunk of the HTTP response body. Unless ``observability_mode`` is ``true``, the server must send back
       a BodyResponse message or close the stream.
       
      .envoy.service.ext_proc.v3.HttpBody response_body = 5;
      Specified by:
      getResponseBodyOrBuilder in interface ProcessingRequestOrBuilder
    • hasRequestTrailers

      public boolean hasRequestTrailers()
       The HTTP trailers for the request path. Unless ``observability_mode`` is ``true``, the server
       must send back a TrailerResponse message or close the stream.
      
       This message is only sent if the trailers processing mode is set to ``SEND`` and
       the original downstream request has trailers.
       
      .envoy.service.ext_proc.v3.HttpTrailers request_trailers = 6;
      Specified by:
      hasRequestTrailers in interface ProcessingRequestOrBuilder
      Returns:
      Whether the requestTrailers field is set.
    • getRequestTrailers

      public HttpTrailers getRequestTrailers()
       The HTTP trailers for the request path. Unless ``observability_mode`` is ``true``, the server
       must send back a TrailerResponse message or close the stream.
      
       This message is only sent if the trailers processing mode is set to ``SEND`` and
       the original downstream request has trailers.
       
      .envoy.service.ext_proc.v3.HttpTrailers request_trailers = 6;
      Specified by:
      getRequestTrailers in interface ProcessingRequestOrBuilder
      Returns:
      The requestTrailers.
    • getRequestTrailersOrBuilder

      public HttpTrailersOrBuilder getRequestTrailersOrBuilder()
       The HTTP trailers for the request path. Unless ``observability_mode`` is ``true``, the server
       must send back a TrailerResponse message or close the stream.
      
       This message is only sent if the trailers processing mode is set to ``SEND`` and
       the original downstream request has trailers.
       
      .envoy.service.ext_proc.v3.HttpTrailers request_trailers = 6;
      Specified by:
      getRequestTrailersOrBuilder in interface ProcessingRequestOrBuilder
    • hasResponseTrailers

      public boolean hasResponseTrailers()
       The HTTP trailers for the response path. Unless ``observability_mode`` is ``true``, the server
       must send back a TrailerResponse message or close the stream.
      
       This message is only sent if the trailers processing mode is set to ``SEND`` and
       the original upstream response has trailers.
       
      .envoy.service.ext_proc.v3.HttpTrailers response_trailers = 7;
      Specified by:
      hasResponseTrailers in interface ProcessingRequestOrBuilder
      Returns:
      Whether the responseTrailers field is set.
    • getResponseTrailers

      public HttpTrailers getResponseTrailers()
       The HTTP trailers for the response path. Unless ``observability_mode`` is ``true``, the server
       must send back a TrailerResponse message or close the stream.
      
       This message is only sent if the trailers processing mode is set to ``SEND`` and
       the original upstream response has trailers.
       
      .envoy.service.ext_proc.v3.HttpTrailers response_trailers = 7;
      Specified by:
      getResponseTrailers in interface ProcessingRequestOrBuilder
      Returns:
      The responseTrailers.
    • getResponseTrailersOrBuilder

      public HttpTrailersOrBuilder getResponseTrailersOrBuilder()
       The HTTP trailers for the response path. Unless ``observability_mode`` is ``true``, the server
       must send back a TrailerResponse message or close the stream.
      
       This message is only sent if the trailers processing mode is set to ``SEND`` and
       the original upstream response has trailers.
       
      .envoy.service.ext_proc.v3.HttpTrailers response_trailers = 7;
      Specified by:
      getResponseTrailersOrBuilder in interface ProcessingRequestOrBuilder
    • hasMetadataContext

      public boolean hasMetadataContext()
       Dynamic metadata associated with the request.
       
      .envoy.config.core.v3.Metadata metadata_context = 8;
      Specified by:
      hasMetadataContext in interface ProcessingRequestOrBuilder
      Returns:
      Whether the metadataContext field is set.
    • getMetadataContext

      public Metadata getMetadataContext()
       Dynamic metadata associated with the request.
       
      .envoy.config.core.v3.Metadata metadata_context = 8;
      Specified by:
      getMetadataContext in interface ProcessingRequestOrBuilder
      Returns:
      The metadataContext.
    • getMetadataContextOrBuilder

      public MetadataOrBuilder getMetadataContextOrBuilder()
       Dynamic metadata associated with the request.
       
      .envoy.config.core.v3.Metadata metadata_context = 8;
      Specified by:
      getMetadataContextOrBuilder in interface ProcessingRequestOrBuilder
    • getAttributesCount

      public int getAttributesCount()
      Description copied from interface: ProcessingRequestOrBuilder
       The values of properties selected by the ``request_attributes``
       or ``response_attributes`` list in the configuration. Each entry
       in the list is populated from the standard
       :ref:`attributes <arch_overview_attributes>` supported in the data plane.
       
      map<string, .google.protobuf.Struct> attributes = 9;
      Specified by:
      getAttributesCount in interface ProcessingRequestOrBuilder
    • containsAttributes

      public boolean containsAttributes(String key)
       The values of properties selected by the ``request_attributes``
       or ``response_attributes`` list in the configuration. Each entry
       in the list is populated from the standard
       :ref:`attributes <arch_overview_attributes>` supported in the data plane.
       
      map<string, .google.protobuf.Struct> attributes = 9;
      Specified by:
      containsAttributes in interface ProcessingRequestOrBuilder
    • getAttributes

      @Deprecated public Map<String,com.google.protobuf.Struct> getAttributes()
      Deprecated.
      Use getAttributesMap() instead.
      Specified by:
      getAttributes in interface ProcessingRequestOrBuilder
    • getAttributesMap

      public Map<String,com.google.protobuf.Struct> getAttributesMap()
       The values of properties selected by the ``request_attributes``
       or ``response_attributes`` list in the configuration. Each entry
       in the list is populated from the standard
       :ref:`attributes <arch_overview_attributes>` supported in the data plane.
       
      map<string, .google.protobuf.Struct> attributes = 9;
      Specified by:
      getAttributesMap in interface ProcessingRequestOrBuilder
    • getAttributesOrDefault

      public com.google.protobuf.Struct getAttributesOrDefault(String key, com.google.protobuf.Struct defaultValue)
       The values of properties selected by the ``request_attributes``
       or ``response_attributes`` list in the configuration. Each entry
       in the list is populated from the standard
       :ref:`attributes <arch_overview_attributes>` supported in the data plane.
       
      map<string, .google.protobuf.Struct> attributes = 9;
      Specified by:
      getAttributesOrDefault in interface ProcessingRequestOrBuilder
    • getAttributesOrThrow

      public com.google.protobuf.Struct getAttributesOrThrow(String key)
       The values of properties selected by the ``request_attributes``
       or ``response_attributes`` list in the configuration. Each entry
       in the list is populated from the standard
       :ref:`attributes <arch_overview_attributes>` supported in the data plane.
       
      map<string, .google.protobuf.Struct> attributes = 9;
      Specified by:
      getAttributesOrThrow in interface ProcessingRequestOrBuilder
    • getObservabilityMode

      public boolean getObservabilityMode()
       Specify whether the filter that sent this request is running in :ref:`observability_mode
       <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.observability_mode>`
       and defaults to false.
      
       * A value of ``false`` indicates that the server must respond
         to this message by either sending back a matching ProcessingResponse message,
         or by closing the stream.
       * A value of ``true`` indicates that the server should not respond to this message, as any
         responses will be ignored. However, it may still close the stream to indicate that no more messages
         are needed.
       
      bool observability_mode = 10;
      Specified by:
      getObservabilityMode in interface ProcessingRequestOrBuilder
      Returns:
      The observabilityMode.
    • hasProtocolConfig

      public boolean hasProtocolConfig()
       Specify the filter protocol configurations to be sent to the server.
       ``protocol_config`` is only encoded in the first ``ProcessingRequest`` message from the client to the server.
       
      .envoy.service.ext_proc.v3.ProtocolConfiguration protocol_config = 11;
      Specified by:
      hasProtocolConfig in interface ProcessingRequestOrBuilder
      Returns:
      Whether the protocolConfig field is set.
    • getProtocolConfig

      public ProtocolConfiguration getProtocolConfig()
       Specify the filter protocol configurations to be sent to the server.
       ``protocol_config`` is only encoded in the first ``ProcessingRequest`` message from the client to the server.
       
      .envoy.service.ext_proc.v3.ProtocolConfiguration protocol_config = 11;
      Specified by:
      getProtocolConfig in interface ProcessingRequestOrBuilder
      Returns:
      The protocolConfig.
    • getProtocolConfigOrBuilder

      public ProtocolConfigurationOrBuilder getProtocolConfigOrBuilder()
       Specify the filter protocol configurations to be sent to the server.
       ``protocol_config`` is only encoded in the first ``ProcessingRequest`` message from the client to the server.
       
      .envoy.service.ext_proc.v3.ProtocolConfiguration protocol_config = 11;
      Specified by:
      getProtocolConfigOrBuilder in interface ProcessingRequestOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ProcessingRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProcessingRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProcessingRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProcessingRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProcessingRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProcessingRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProcessingRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProcessingRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ProcessingRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ProcessingRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProcessingRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProcessingRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ProcessingRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ProcessingRequest.Builder newBuilder()
    • newBuilder

      public static ProcessingRequest.Builder newBuilder(ProcessingRequest prototype)
    • toBuilder

      public ProcessingRequest.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ProcessingRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static ProcessingRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ProcessingRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<ProcessingRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public ProcessingRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder