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 Envoy can send to an external processing server. [#next-free-field: 8]
Protobuf typeenvoy.service.ext_proc.v3.ProcessingRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProcessingRequest.BuilderThis represents the different types of messages that Envoy can send to an external processing server.static classProcessingRequest.RequestCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intASYNC_MODE_FIELD_NUMBERstatic intREQUEST_BODY_FIELD_NUMBERstatic intREQUEST_HEADERS_FIELD_NUMBERstatic intREQUEST_TRAILERS_FIELD_NUMBERstatic intRESPONSE_BODY_FIELD_NUMBERstatic intRESPONSE_HEADERS_FIELD_NUMBERstatic intRESPONSE_TRAILERS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)booleangetAsyncMode()Specify whether the filter that sent this request is running in synchronous or asynchronous mode.static ProcessingRequestgetDefaultInstance()ProcessingRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<ProcessingRequest>getParserForType()HttpBodygetRequestBody()A chunk of the HTTP request body.HttpBodyOrBuildergetRequestBodyOrBuilder()A chunk of the HTTP request body.ProcessingRequest.RequestCasegetRequestCase()HttpHeadersgetRequestHeaders()Information about the HTTP request headers, as well as peer info and additional properties.HttpHeadersOrBuildergetRequestHeadersOrBuilder()Information about the HTTP request headers, as well as peer info and additional properties.HttpTrailersgetRequestTrailers()The HTTP trailers for the request path.HttpTrailersOrBuildergetRequestTrailersOrBuilder()The HTTP trailers for the request path.HttpBodygetResponseBody()A chunk of the HTTP request body.HttpBodyOrBuildergetResponseBodyOrBuilder()A chunk of the HTTP request body.HttpHeadersgetResponseHeaders()Information about the HTTP response headers, as well as peer info and additional properties.HttpHeadersOrBuildergetResponseHeadersOrBuilder()Information about the HTTP response headers, as well as peer info and additional properties.HttpTrailersgetResponseTrailers()The HTTP trailers for the response path.HttpTrailersOrBuildergetResponseTrailersOrBuilder()The HTTP trailers for the response path.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasRequestBody()A chunk of the HTTP request body.booleanhasRequestHeaders()Information about the HTTP request headers, as well as peer info and additional properties.booleanhasRequestTrailers()The HTTP trailers for the request path.booleanhasResponseBody()A chunk of the HTTP request body.booleanhasResponseHeaders()Information about the HTTP response headers, as well as peer info and additional properties.booleanhasResponseTrailers()The HTTP trailers for the response path.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ProcessingRequest.BuildernewBuilder()static ProcessingRequest.BuildernewBuilder(ProcessingRequest prototype)ProcessingRequest.BuildernewBuilderForType()protected ProcessingRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ProcessingRequestparseDelimitedFrom(InputStream input)static ProcessingRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProcessingRequestparseFrom(byte[] data)static ProcessingRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProcessingRequestparseFrom(com.google.protobuf.ByteString data)static ProcessingRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProcessingRequestparseFrom(com.google.protobuf.CodedInputStream input)static ProcessingRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProcessingRequestparseFrom(InputStream input)static ProcessingRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProcessingRequestparseFrom(ByteBuffer data)static ProcessingRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ProcessingRequest>parser()ProcessingRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ASYNC_MODE_FIELD_NUMBER
public static final int ASYNC_MODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUEST_HEADERS_FIELD_NUMBER
public static final int REQUEST_HEADERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESPONSE_HEADERS_FIELD_NUMBER
public static final int RESPONSE_HEADERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUEST_BODY_FIELD_NUMBER
public static final int REQUEST_BODY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESPONSE_BODY_FIELD_NUMBER
public static final int RESPONSE_BODY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUEST_TRAILERS_FIELD_NUMBER
public static final int REQUEST_TRAILERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESPONSE_TRAILERS_FIELD_NUMBER
public static final int RESPONSE_TRAILERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getRequestCase
public ProcessingRequest.RequestCase getRequestCase()
- Specified by:
getRequestCasein interfaceProcessingRequestOrBuilder
-
getAsyncMode
public boolean getAsyncMode()
Specify whether the filter that sent this request is running in synchronous or asynchronous mode. The choice of synchronous or asynchronous mode can be set in the filter configuration, 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 must not respond to this message, although it may still close the stream to indicate that no more messages are needed.
bool async_mode = 1;- Specified by:
getAsyncModein interfaceProcessingRequestOrBuilder- Returns:
- The asyncMode.
-
hasRequestHeaders
public boolean hasRequestHeaders()
Information about the HTTP request headers, as well as peer info and additional properties. Unless ``async_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:
hasRequestHeadersin interfaceProcessingRequestOrBuilder- 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 ``async_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:
getRequestHeadersin interfaceProcessingRequestOrBuilder- Returns:
- The requestHeaders.
-
getRequestHeadersOrBuilder
public HttpHeadersOrBuilder getRequestHeadersOrBuilder()
Information about the HTTP request headers, as well as peer info and additional properties. Unless ``async_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:
getRequestHeadersOrBuilderin interfaceProcessingRequestOrBuilder
-
hasResponseHeaders
public boolean hasResponseHeaders()
Information about the HTTP response headers, as well as peer info and additional properties. Unless ``async_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:
hasResponseHeadersin interfaceProcessingRequestOrBuilder- 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 ``async_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:
getResponseHeadersin interfaceProcessingRequestOrBuilder- Returns:
- The responseHeaders.
-
getResponseHeadersOrBuilder
public HttpHeadersOrBuilder getResponseHeadersOrBuilder()
Information about the HTTP response headers, as well as peer info and additional properties. Unless ``async_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:
getResponseHeadersOrBuilderin interfaceProcessingRequestOrBuilder
-
hasRequestBody
public boolean hasRequestBody()
A chunk of the HTTP request body. Unless ``async_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:
hasRequestBodyin interfaceProcessingRequestOrBuilder- Returns:
- Whether the requestBody field is set.
-
getRequestBody
public HttpBody getRequestBody()
A chunk of the HTTP request body. Unless ``async_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:
getRequestBodyin interfaceProcessingRequestOrBuilder- Returns:
- The requestBody.
-
getRequestBodyOrBuilder
public HttpBodyOrBuilder getRequestBodyOrBuilder()
A chunk of the HTTP request body. Unless ``async_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:
getRequestBodyOrBuilderin interfaceProcessingRequestOrBuilder
-
hasResponseBody
public boolean hasResponseBody()
A chunk of the HTTP request body. Unless ``async_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:
hasResponseBodyin interfaceProcessingRequestOrBuilder- Returns:
- Whether the responseBody field is set.
-
getResponseBody
public HttpBody getResponseBody()
A chunk of the HTTP request body. Unless ``async_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:
getResponseBodyin interfaceProcessingRequestOrBuilder- Returns:
- The responseBody.
-
getResponseBodyOrBuilder
public HttpBodyOrBuilder getResponseBodyOrBuilder()
A chunk of the HTTP request body. Unless ``async_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:
getResponseBodyOrBuilderin interfaceProcessingRequestOrBuilder
-
hasRequestTrailers
public boolean hasRequestTrailers()
The HTTP trailers for the request path. Unless ``async_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``. If there are no trailers on the original downstream request, then this message will only be sent (with empty trailers waiting to be populated) if the processing mode is set before the request headers are sent, such as in the filter configuration.
.envoy.service.ext_proc.v3.HttpTrailers request_trailers = 6;- Specified by:
hasRequestTrailersin interfaceProcessingRequestOrBuilder- Returns:
- Whether the requestTrailers field is set.
-
getRequestTrailers
public HttpTrailers getRequestTrailers()
The HTTP trailers for the request path. Unless ``async_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``. If there are no trailers on the original downstream request, then this message will only be sent (with empty trailers waiting to be populated) if the processing mode is set before the request headers are sent, such as in the filter configuration.
.envoy.service.ext_proc.v3.HttpTrailers request_trailers = 6;- Specified by:
getRequestTrailersin interfaceProcessingRequestOrBuilder- Returns:
- The requestTrailers.
-
getRequestTrailersOrBuilder
public HttpTrailersOrBuilder getRequestTrailersOrBuilder()
The HTTP trailers for the request path. Unless ``async_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``. If there are no trailers on the original downstream request, then this message will only be sent (with empty trailers waiting to be populated) if the processing mode is set before the request headers are sent, such as in the filter configuration.
.envoy.service.ext_proc.v3.HttpTrailers request_trailers = 6;- Specified by:
getRequestTrailersOrBuilderin interfaceProcessingRequestOrBuilder
-
hasResponseTrailers
public boolean hasResponseTrailers()
The HTTP trailers for the response path. Unless ``async_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``. If there are no trailers on the original downstream request, then this message will only be sent (with empty trailers waiting to be populated) if the processing mode is set before the request headers are sent, such as in the filter configuration.
.envoy.service.ext_proc.v3.HttpTrailers response_trailers = 7;- Specified by:
hasResponseTrailersin interfaceProcessingRequestOrBuilder- Returns:
- Whether the responseTrailers field is set.
-
getResponseTrailers
public HttpTrailers getResponseTrailers()
The HTTP trailers for the response path. Unless ``async_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``. If there are no trailers on the original downstream request, then this message will only be sent (with empty trailers waiting to be populated) if the processing mode is set before the request headers are sent, such as in the filter configuration.
.envoy.service.ext_proc.v3.HttpTrailers response_trailers = 7;- Specified by:
getResponseTrailersin interfaceProcessingRequestOrBuilder- Returns:
- The responseTrailers.
-
getResponseTrailersOrBuilder
public HttpTrailersOrBuilder getResponseTrailersOrBuilder()
The HTTP trailers for the response path. Unless ``async_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``. If there are no trailers on the original downstream request, then this message will only be sent (with empty trailers waiting to be populated) if the processing mode is set before the request headers are sent, such as in the filter configuration.
.envoy.service.ext_proc.v3.HttpTrailers response_trailers = 7;- Specified by:
getResponseTrailersOrBuilderin interfaceProcessingRequestOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ProcessingRequest.Builder newBuilder()
-
newBuilder
public static ProcessingRequest.Builder newBuilder(ProcessingRequest prototype)
-
toBuilder
public ProcessingRequest.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ProcessingRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ProcessingRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-