Class ProcessingResponse
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.service.network_ext_proc.v3.ProcessingResponse
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ProcessingResponseOrBuilder,Serializable
public final class ProcessingResponse
extends com.google.protobuf.GeneratedMessageV3
implements ProcessingResponseOrBuilder
ProcessingResponse contains the response from the external processing server to Envoy. Each response corresponds to a ProcessingRequest and indicates how the network traffic should be handled. [#next-free-field: 6]Protobuf type
envoy.service.network_ext_proc.v3.ProcessingResponse- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProcessingResponse contains the response from the external processing server to Envoy.static enumConnectionStatus determines what happens to the connection after processing.static enumDataProcessedStatus indicates whether the data was modified by the external processor.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanOptional: Determines the connection behavior after processing.intOptional: Determines the connection behavior after processing.Indicates whether the data was modified or not.intIndicates whether the data was modified or not.static ProcessingResponsestatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.StructOptional metadata associated with the request.com.google.protobuf.StructOrBuilderOptional metadata associated with the request.com.google.protobuf.Parser<ProcessingResponse>The processed ReadData containing potentially modified data for the request path.The processed ReadData containing potentially modified data for the request path.intThe processed WriteData containing potentially modified data for the response path.The processed WriteData containing potentially modified data for the response path.booleanOptional metadata associated with the request.inthashCode()booleanThe processed ReadData containing potentially modified data for the request path.booleanThe processed WriteData containing potentially modified data for the response path.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic ProcessingResponse.Builderstatic ProcessingResponse.BuildernewBuilder(ProcessingResponse prototype) protected ProcessingResponse.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ProcessingResponseparseDelimitedFrom(InputStream input) static ProcessingResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessingResponseparseFrom(byte[] data) static ProcessingResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessingResponseparseFrom(com.google.protobuf.ByteString data) static ProcessingResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessingResponseparseFrom(com.google.protobuf.CodedInputStream input) static ProcessingResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessingResponseparseFrom(InputStream input) static ProcessingResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessingResponseparseFrom(ByteBuffer data) static ProcessingResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ProcessingResponse>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
READ_DATA_FIELD_NUMBER
public static final int READ_DATA_FIELD_NUMBER- See Also:
-
WRITE_DATA_FIELD_NUMBER
public static final int WRITE_DATA_FIELD_NUMBER- See Also:
-
DATA_PROCESSING_STATUS_FIELD_NUMBER
public static final int DATA_PROCESSING_STATUS_FIELD_NUMBER- See Also:
-
CONNECTION_STATUS_FIELD_NUMBER
public static final int CONNECTION_STATUS_FIELD_NUMBER- See Also:
-
DYNAMIC_METADATA_FIELD_NUMBER
public static final int DYNAMIC_METADATA_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein 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
-
hasReadData
public boolean hasReadData()The processed ReadData containing potentially modified data for the request path. This should be sent in response to a ProcessingRequest with read_data, and the previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane. If this is set, write_data should not be set.
.envoy.service.network_ext_proc.v3.Data read_data = 1;- Specified by:
hasReadDatain interfaceProcessingResponseOrBuilder- Returns:
- Whether the readData field is set.
-
getReadData
The processed ReadData containing potentially modified data for the request path. This should be sent in response to a ProcessingRequest with read_data, and the previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane. If this is set, write_data should not be set.
.envoy.service.network_ext_proc.v3.Data read_data = 1;- Specified by:
getReadDatain interfaceProcessingResponseOrBuilder- Returns:
- The readData.
-
getReadDataOrBuilder
The processed ReadData containing potentially modified data for the request path. This should be sent in response to a ProcessingRequest with read_data, and the previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane. If this is set, write_data should not be set.
.envoy.service.network_ext_proc.v3.Data read_data = 1;- Specified by:
getReadDataOrBuilderin interfaceProcessingResponseOrBuilder
-
hasWriteData
public boolean hasWriteData()The processed WriteData containing potentially modified data for the response path. This should be sent in response to a ProcessingRequest with write_data, and the previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane. If this is set, read_data should not be set.
.envoy.service.network_ext_proc.v3.Data write_data = 2;- Specified by:
hasWriteDatain interfaceProcessingResponseOrBuilder- Returns:
- Whether the writeData field is set.
-
getWriteData
The processed WriteData containing potentially modified data for the response path. This should be sent in response to a ProcessingRequest with write_data, and the previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane. If this is set, read_data should not be set.
.envoy.service.network_ext_proc.v3.Data write_data = 2;- Specified by:
getWriteDatain interfaceProcessingResponseOrBuilder- Returns:
- The writeData.
-
getWriteDataOrBuilder
The processed WriteData containing potentially modified data for the response path. This should be sent in response to a ProcessingRequest with write_data, and the previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane. If this is set, read_data should not be set.
.envoy.service.network_ext_proc.v3.Data write_data = 2;- Specified by:
getWriteDataOrBuilderin interfaceProcessingResponseOrBuilder
-
getDataProcessingStatusValue
public int getDataProcessingStatusValue()Indicates whether the data was modified or not. This is mandatory and tells Envoy whether to use the original or modified data.
.envoy.service.network_ext_proc.v3.ProcessingResponse.DataProcessedStatus data_processing_status = 3;- Specified by:
getDataProcessingStatusValuein interfaceProcessingResponseOrBuilder- Returns:
- The enum numeric value on the wire for dataProcessingStatus.
-
getDataProcessingStatus
Indicates whether the data was modified or not. This is mandatory and tells Envoy whether to use the original or modified data.
.envoy.service.network_ext_proc.v3.ProcessingResponse.DataProcessedStatus data_processing_status = 3;- Specified by:
getDataProcessingStatusin interfaceProcessingResponseOrBuilder- Returns:
- The dataProcessingStatus.
-
getConnectionStatusValue
public int getConnectionStatusValue()Optional: Determines the connection behavior after processing. If not specified, CONTINUE is assumed, and the connection proceeds normally. Use CLOSE or CLOSE_RST to terminate the connection based on processing results.
.envoy.service.network_ext_proc.v3.ProcessingResponse.ConnectionStatus connection_status = 4;- Specified by:
getConnectionStatusValuein interfaceProcessingResponseOrBuilder- Returns:
- The enum numeric value on the wire for connectionStatus.
-
getConnectionStatus
Optional: Determines the connection behavior after processing. If not specified, CONTINUE is assumed, and the connection proceeds normally. Use CLOSE or CLOSE_RST to terminate the connection based on processing results.
.envoy.service.network_ext_proc.v3.ProcessingResponse.ConnectionStatus connection_status = 4;- Specified by:
getConnectionStatusin interfaceProcessingResponseOrBuilder- Returns:
- The connectionStatus.
-
hasDynamicMetadata
public boolean hasDynamicMetadata()Optional metadata associated with the request. This can include connection properties, filter configuration, and any other contextual information that might be useful for processing decisions. The metadata is not automatically propagated from request to response. The external processor must include any needed metadata in its response.
.google.protobuf.Struct dynamic_metadata = 5;- Specified by:
hasDynamicMetadatain interfaceProcessingResponseOrBuilder- Returns:
- Whether the dynamicMetadata field is set.
-
getDynamicMetadata
public com.google.protobuf.Struct getDynamicMetadata()Optional metadata associated with the request. This can include connection properties, filter configuration, and any other contextual information that might be useful for processing decisions. The metadata is not automatically propagated from request to response. The external processor must include any needed metadata in its response.
.google.protobuf.Struct dynamic_metadata = 5;- Specified by:
getDynamicMetadatain interfaceProcessingResponseOrBuilder- Returns:
- The dynamicMetadata.
-
getDynamicMetadataOrBuilder
public com.google.protobuf.StructOrBuilder getDynamicMetadataOrBuilder()Optional metadata associated with the request. This can include connection properties, filter configuration, and any other contextual information that might be useful for processing decisions. The metadata is not automatically propagated from request to response. The external processor must include any needed metadata in its response.
.google.protobuf.Struct dynamic_metadata = 5;- Specified by:
getDynamicMetadataOrBuilderin interfaceProcessingResponseOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- 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
- 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 ProcessingResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessingResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessingResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessingResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessingResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessingResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ProcessingResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ProcessingResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ProcessingResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ProcessingResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ProcessingResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-