Class ProcessingResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
io.envoyproxy.envoy.service.network_ext_proc.v3.ProcessingResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ProcessingResponseOrBuilder,Cloneable
- Enclosing class:
- ProcessingResponse
public static final class ProcessingResponse.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Optional: Determines the connection behavior after processing.Indicates whether the data was modified or not.Optional metadata associated with the request.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The processed ReadData containing potentially modified data for the request path.The processed WriteData containing potentially modified data for the response path.clone()Optional: 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 final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.StructOptional metadata associated with the request.com.google.protobuf.Struct.BuilderOptional metadata associated with the request.com.google.protobuf.StructOrBuilderOptional metadata associated with the request.The processed ReadData containing potentially modified data for the request path.The processed ReadData containing potentially modified data for the request path.The processed ReadData containing potentially modified data for the request path.The processed WriteData containing potentially modified data for the response path.The 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.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 booleanmergeDynamicMetadata(com.google.protobuf.Struct value) Optional metadata associated with the request.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ProcessingResponse other) mergeReadData(Data value) The processed ReadData containing potentially modified data for the request path.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) mergeWriteData(Data value) The processed WriteData containing potentially modified data for the response path.Optional: Determines the connection behavior after processing.setConnectionStatusValue(int value) Optional: Determines the connection behavior after processing.Indicates whether the data was modified or not.setDataProcessingStatusValue(int value) Indicates whether the data was modified or not.setDynamicMetadata(com.google.protobuf.Struct value) Optional metadata associated with the request.setDynamicMetadata(com.google.protobuf.Struct.Builder builderForValue) Optional metadata associated with the request.setReadData(Data value) The processed ReadData containing potentially modified data for the request path.setReadData(Data.Builder builderForValue) The processed ReadData containing potentially modified data for the request path.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setWriteData(Data value) The processed WriteData containing potentially modified data for the response path.setWriteData(Data.Builder builderForValue) The processed WriteData containing potentially modified data for the response path.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<ProcessingResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
-
setField
public ProcessingResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
-
setRepeatedField
public ProcessingResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
-
addRepeatedField
public ProcessingResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProcessingResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
-
mergeFrom
public ProcessingResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProcessingResponse.Builder>- Throws:
IOException
-
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.
-
setReadData
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; -
setReadData
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; -
mergeReadData
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; -
clearReadData
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; -
getReadDataBuilder
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; -
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.
-
setWriteData
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; -
setWriteData
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; -
mergeWriteData
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; -
clearWriteData
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; -
getWriteDataBuilder
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; -
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.
-
setDataProcessingStatusValue
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;- Parameters:
value- The enum numeric value on the wire for dataProcessingStatus to set.- Returns:
- This builder for chaining.
-
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.
-
setDataProcessingStatus
public ProcessingResponse.Builder setDataProcessingStatus(ProcessingResponse.DataProcessedStatus value) 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;- Parameters:
value- The dataProcessingStatus to set.- Returns:
- This builder for chaining.
-
clearDataProcessingStatus
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;- Returns:
- This builder for chaining.
-
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.
-
setConnectionStatusValue
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;- Parameters:
value- The enum numeric value on the wire for connectionStatus to set.- Returns:
- This builder for chaining.
-
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.
-
setConnectionStatus
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;- Parameters:
value- The connectionStatus to set.- Returns:
- This builder for chaining.
-
clearConnectionStatus
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;- Returns:
- This builder for chaining.
-
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.
-
setDynamicMetadata
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; -
setDynamicMetadata
public ProcessingResponse.Builder setDynamicMetadata(com.google.protobuf.Struct.Builder builderForValue) 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; -
mergeDynamicMetadata
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; -
clearDynamicMetadata
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; -
getDynamicMetadataBuilder
public com.google.protobuf.Struct.Builder getDynamicMetadataBuilder()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; -
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
-
setUnknownFields
public final ProcessingResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
-
mergeUnknownFields
public final ProcessingResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
-