Class NetworkExternalProcessor.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<NetworkExternalProcessor.Builder>
io.envoyproxy.envoy.extensions.filters.network.ext_proc.v3.NetworkExternalProcessor.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,NetworkExternalProcessorOrBuilder,Cloneable
- Enclosing class:
- NetworkExternalProcessor
public static final class NetworkExternalProcessor.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<NetworkExternalProcessor.Builder>
implements NetworkExternalProcessorOrBuilder
The Network External Processing filter allows an external service to process raw TCP/UDP traffic in a flexible way using a bidirectional gRPC stream. Unlike the HTTP External Processing filter, this filter operates at the L4 (transport) layer, giving access to raw network traffic. The filter communicates with an external gRPC service that can: 1. Inspect traffic in both directions 2. Modify the network traffic 3. Control connection lifecycle (continue, close, or reset) By using the filter's processing mode, you can selectively choose which data directions to process (read, write or both), allowing for efficient processing. [#next-free-field: 7]Protobuf type
envoy.extensions.filters.network.ext_proc.v3.NetworkExternalProcessor-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()By default, if the gRPC stream cannot be established, or if it is closed prematurely with an error, the filter will fail, leading to the close of connection.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The gRPC service that will process network traffic.Specifies the timeout for each individual message sent on the stream and when the filter is running in synchronous mode.Options related to the sending and receiving of dynamic metadata.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Options for controlling processing behavior.string stat_prefix = 5 [(.validate.rules) = { ... }clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanBy default, if the gRPC stream cannot be established, or if it is closed prematurely with an error, the filter will fail, leading to the close of connection.The gRPC service that will process network traffic.The gRPC service that will process network traffic.The gRPC service that will process network traffic.com.google.protobuf.DurationSpecifies the timeout for each individual message sent on the stream and when the filter is running in synchronous mode.com.google.protobuf.Duration.BuilderSpecifies the timeout for each individual message sent on the stream and when the filter is running in synchronous mode.com.google.protobuf.DurationOrBuilderSpecifies the timeout for each individual message sent on the stream and when the filter is running in synchronous mode.Options related to the sending and receiving of dynamic metadata.Options related to the sending and receiving of dynamic metadata.Options related to the sending and receiving of dynamic metadata.Options for controlling processing behavior.Options for controlling processing behavior.Options for controlling processing behavior.string stat_prefix = 5 [(.validate.rules) = { ... }com.google.protobuf.ByteStringstring stat_prefix = 5 [(.validate.rules) = { ... }booleanThe gRPC service that will process network traffic.booleanSpecifies the timeout for each individual message sent on the stream and when the filter is running in synchronous mode.booleanOptions related to the sending and receiving of dynamic metadata.booleanOptions for controlling processing behavior.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeGrpcService(GrpcService value) The gRPC service that will process network traffic.mergeMessageTimeout(com.google.protobuf.Duration value) Specifies the timeout for each individual message sent on the stream and when the filter is running in synchronous mode.Options related to the sending and receiving of dynamic metadata.Options for controlling processing behavior.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setFailureModeAllow(boolean value) By default, if the gRPC stream cannot be established, or if it is closed prematurely with an error, the filter will fail, leading to the close of connection.setGrpcService(GrpcService value) The gRPC service that will process network traffic.setGrpcService(GrpcService.Builder builderForValue) The gRPC service that will process network traffic.setMessageTimeout(com.google.protobuf.Duration value) Specifies the timeout for each individual message sent on the stream and when the filter is running in synchronous mode.setMessageTimeout(com.google.protobuf.Duration.Builder builderForValue) Specifies the timeout for each individual message sent on the stream and when the filter is running in synchronous mode.Options related to the sending and receiving of dynamic metadata.setMetadataOptions(MetadataOptions.Builder builderForValue) Options related to the sending and receiving of dynamic metadata.setProcessingMode(ProcessingMode value) Options for controlling processing behavior.setProcessingMode(ProcessingMode.Builder builderForValue) Options for controlling processing behavior.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStatPrefix(String value) string stat_prefix = 5 [(.validate.rules) = { ... }setStatPrefixBytes(com.google.protobuf.ByteString value) string stat_prefix = 5 [(.validate.rules) = { ... }setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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<NetworkExternalProcessor.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<NetworkExternalProcessor.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<NetworkExternalProcessor.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<NetworkExternalProcessor.Builder>
-
setField
public NetworkExternalProcessor.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<NetworkExternalProcessor.Builder>
-
clearField
public NetworkExternalProcessor.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkExternalProcessor.Builder>
-
clearOneof
public NetworkExternalProcessor.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkExternalProcessor.Builder>
-
setRepeatedField
public NetworkExternalProcessor.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<NetworkExternalProcessor.Builder>
-
addRepeatedField
public NetworkExternalProcessor.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<NetworkExternalProcessor.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NetworkExternalProcessor.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkExternalProcessor.Builder>
-
mergeFrom
public NetworkExternalProcessor.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<NetworkExternalProcessor.Builder>- Throws:
IOException
-
hasGrpcService
public boolean hasGrpcService()The gRPC service that will process network traffic. This service must implement the NetworkExternalProcessor service defined in the proto file /envoy/service/network_ext_proc/v3/external_processor.proto.
.envoy.config.core.v3.GrpcService grpc_service = 1;- Specified by:
hasGrpcServicein interfaceNetworkExternalProcessorOrBuilder- Returns:
- Whether the grpcService field is set.
-
getGrpcService
The gRPC service that will process network traffic. This service must implement the NetworkExternalProcessor service defined in the proto file /envoy/service/network_ext_proc/v3/external_processor.proto.
.envoy.config.core.v3.GrpcService grpc_service = 1;- Specified by:
getGrpcServicein interfaceNetworkExternalProcessorOrBuilder- Returns:
- The grpcService.
-
setGrpcService
The gRPC service that will process network traffic. This service must implement the NetworkExternalProcessor service defined in the proto file /envoy/service/network_ext_proc/v3/external_processor.proto.
.envoy.config.core.v3.GrpcService grpc_service = 1; -
setGrpcService
The gRPC service that will process network traffic. This service must implement the NetworkExternalProcessor service defined in the proto file /envoy/service/network_ext_proc/v3/external_processor.proto.
.envoy.config.core.v3.GrpcService grpc_service = 1; -
mergeGrpcService
The gRPC service that will process network traffic. This service must implement the NetworkExternalProcessor service defined in the proto file /envoy/service/network_ext_proc/v3/external_processor.proto.
.envoy.config.core.v3.GrpcService grpc_service = 1; -
clearGrpcService
The gRPC service that will process network traffic. This service must implement the NetworkExternalProcessor service defined in the proto file /envoy/service/network_ext_proc/v3/external_processor.proto.
.envoy.config.core.v3.GrpcService grpc_service = 1; -
getGrpcServiceBuilder
The gRPC service that will process network traffic. This service must implement the NetworkExternalProcessor service defined in the proto file /envoy/service/network_ext_proc/v3/external_processor.proto.
.envoy.config.core.v3.GrpcService grpc_service = 1; -
getGrpcServiceOrBuilder
The gRPC service that will process network traffic. This service must implement the NetworkExternalProcessor service defined in the proto file /envoy/service/network_ext_proc/v3/external_processor.proto.
.envoy.config.core.v3.GrpcService grpc_service = 1;- Specified by:
getGrpcServiceOrBuilderin interfaceNetworkExternalProcessorOrBuilder
-
getFailureModeAllow
public boolean getFailureModeAllow()By default, if the gRPC stream cannot be established, or if it is closed prematurely with an error, the filter will fail, leading to the close of connection. With this parameter set to true, however, then if the gRPC stream is prematurely closed or could not be opened, processing continues without error.
bool failure_mode_allow = 2;- Specified by:
getFailureModeAllowin interfaceNetworkExternalProcessorOrBuilder- Returns:
- The failureModeAllow.
-
setFailureModeAllow
By default, if the gRPC stream cannot be established, or if it is closed prematurely with an error, the filter will fail, leading to the close of connection. With this parameter set to true, however, then if the gRPC stream is prematurely closed or could not be opened, processing continues without error.
bool failure_mode_allow = 2;- Parameters:
value- The failureModeAllow to set.- Returns:
- This builder for chaining.
-
clearFailureModeAllow
By default, if the gRPC stream cannot be established, or if it is closed prematurely with an error, the filter will fail, leading to the close of connection. With this parameter set to true, however, then if the gRPC stream is prematurely closed or could not be opened, processing continues without error.
bool failure_mode_allow = 2;- Returns:
- This builder for chaining.
-
hasProcessingMode
public boolean hasProcessingMode()Options for controlling processing behavior.
.envoy.extensions.filters.network.ext_proc.v3.ProcessingMode processing_mode = 3;- Specified by:
hasProcessingModein interfaceNetworkExternalProcessorOrBuilder- Returns:
- Whether the processingMode field is set.
-
getProcessingMode
Options for controlling processing behavior.
.envoy.extensions.filters.network.ext_proc.v3.ProcessingMode processing_mode = 3;- Specified by:
getProcessingModein interfaceNetworkExternalProcessorOrBuilder- Returns:
- The processingMode.
-
setProcessingMode
Options for controlling processing behavior.
.envoy.extensions.filters.network.ext_proc.v3.ProcessingMode processing_mode = 3; -
setProcessingMode
Options for controlling processing behavior.
.envoy.extensions.filters.network.ext_proc.v3.ProcessingMode processing_mode = 3; -
mergeProcessingMode
Options for controlling processing behavior.
.envoy.extensions.filters.network.ext_proc.v3.ProcessingMode processing_mode = 3; -
clearProcessingMode
Options for controlling processing behavior.
.envoy.extensions.filters.network.ext_proc.v3.ProcessingMode processing_mode = 3; -
getProcessingModeBuilder
Options for controlling processing behavior.
.envoy.extensions.filters.network.ext_proc.v3.ProcessingMode processing_mode = 3; -
getProcessingModeOrBuilder
Options for controlling processing behavior.
.envoy.extensions.filters.network.ext_proc.v3.ProcessingMode processing_mode = 3;- Specified by:
getProcessingModeOrBuilderin interfaceNetworkExternalProcessorOrBuilder
-
hasMessageTimeout
public boolean hasMessageTimeout()Specifies the timeout for each individual message sent on the stream and when the filter is running in synchronous mode. Whenever the proxy sends a message on the stream that requires a response, it will reset this timer, and will stop processing and return an error (subject to the processing mode) if the timer expires. Default is 200 ms.
.google.protobuf.Duration message_timeout = 4 [(.validate.rules) = { ... }- Specified by:
hasMessageTimeoutin interfaceNetworkExternalProcessorOrBuilder- Returns:
- Whether the messageTimeout field is set.
-
getMessageTimeout
public com.google.protobuf.Duration getMessageTimeout()Specifies the timeout for each individual message sent on the stream and when the filter is running in synchronous mode. Whenever the proxy sends a message on the stream that requires a response, it will reset this timer, and will stop processing and return an error (subject to the processing mode) if the timer expires. Default is 200 ms.
.google.protobuf.Duration message_timeout = 4 [(.validate.rules) = { ... }- Specified by:
getMessageTimeoutin interfaceNetworkExternalProcessorOrBuilder- Returns:
- The messageTimeout.
-
setMessageTimeout
Specifies the timeout for each individual message sent on the stream and when the filter is running in synchronous mode. Whenever the proxy sends a message on the stream that requires a response, it will reset this timer, and will stop processing and return an error (subject to the processing mode) if the timer expires. Default is 200 ms.
.google.protobuf.Duration message_timeout = 4 [(.validate.rules) = { ... } -
setMessageTimeout
public NetworkExternalProcessor.Builder setMessageTimeout(com.google.protobuf.Duration.Builder builderForValue) Specifies the timeout for each individual message sent on the stream and when the filter is running in synchronous mode. Whenever the proxy sends a message on the stream that requires a response, it will reset this timer, and will stop processing and return an error (subject to the processing mode) if the timer expires. Default is 200 ms.
.google.protobuf.Duration message_timeout = 4 [(.validate.rules) = { ... } -
mergeMessageTimeout
Specifies the timeout for each individual message sent on the stream and when the filter is running in synchronous mode. Whenever the proxy sends a message on the stream that requires a response, it will reset this timer, and will stop processing and return an error (subject to the processing mode) if the timer expires. Default is 200 ms.
.google.protobuf.Duration message_timeout = 4 [(.validate.rules) = { ... } -
clearMessageTimeout
Specifies the timeout for each individual message sent on the stream and when the filter is running in synchronous mode. Whenever the proxy sends a message on the stream that requires a response, it will reset this timer, and will stop processing and return an error (subject to the processing mode) if the timer expires. Default is 200 ms.
.google.protobuf.Duration message_timeout = 4 [(.validate.rules) = { ... } -
getMessageTimeoutBuilder
public com.google.protobuf.Duration.Builder getMessageTimeoutBuilder()Specifies the timeout for each individual message sent on the stream and when the filter is running in synchronous mode. Whenever the proxy sends a message on the stream that requires a response, it will reset this timer, and will stop processing and return an error (subject to the processing mode) if the timer expires. Default is 200 ms.
.google.protobuf.Duration message_timeout = 4 [(.validate.rules) = { ... } -
getMessageTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getMessageTimeoutOrBuilder()Specifies the timeout for each individual message sent on the stream and when the filter is running in synchronous mode. Whenever the proxy sends a message on the stream that requires a response, it will reset this timer, and will stop processing and return an error (subject to the processing mode) if the timer expires. Default is 200 ms.
.google.protobuf.Duration message_timeout = 4 [(.validate.rules) = { ... }- Specified by:
getMessageTimeoutOrBuilderin interfaceNetworkExternalProcessorOrBuilder
-
getStatPrefix
string stat_prefix = 5 [(.validate.rules) = { ... }- Specified by:
getStatPrefixin interfaceNetworkExternalProcessorOrBuilder- Returns:
- The statPrefix.
-
getStatPrefixBytes
public com.google.protobuf.ByteString getStatPrefixBytes()string stat_prefix = 5 [(.validate.rules) = { ... }- Specified by:
getStatPrefixBytesin interfaceNetworkExternalProcessorOrBuilder- Returns:
- The bytes for statPrefix.
-
setStatPrefix
string stat_prefix = 5 [(.validate.rules) = { ... }- Parameters:
value- The statPrefix to set.- Returns:
- This builder for chaining.
-
clearStatPrefix
string stat_prefix = 5 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setStatPrefixBytes
string stat_prefix = 5 [(.validate.rules) = { ... }- Parameters:
value- The bytes for statPrefix to set.- Returns:
- This builder for chaining.
-
hasMetadataOptions
public boolean hasMetadataOptions()Options related to the sending and receiving of dynamic metadata.
.envoy.extensions.filters.network.ext_proc.v3.MetadataOptions metadata_options = 6;- Specified by:
hasMetadataOptionsin interfaceNetworkExternalProcessorOrBuilder- Returns:
- Whether the metadataOptions field is set.
-
getMetadataOptions
Options related to the sending and receiving of dynamic metadata.
.envoy.extensions.filters.network.ext_proc.v3.MetadataOptions metadata_options = 6;- Specified by:
getMetadataOptionsin interfaceNetworkExternalProcessorOrBuilder- Returns:
- The metadataOptions.
-
setMetadataOptions
Options related to the sending and receiving of dynamic metadata.
.envoy.extensions.filters.network.ext_proc.v3.MetadataOptions metadata_options = 6; -
setMetadataOptions
Options related to the sending and receiving of dynamic metadata.
.envoy.extensions.filters.network.ext_proc.v3.MetadataOptions metadata_options = 6; -
mergeMetadataOptions
Options related to the sending and receiving of dynamic metadata.
.envoy.extensions.filters.network.ext_proc.v3.MetadataOptions metadata_options = 6; -
clearMetadataOptions
Options related to the sending and receiving of dynamic metadata.
.envoy.extensions.filters.network.ext_proc.v3.MetadataOptions metadata_options = 6; -
getMetadataOptionsBuilder
Options related to the sending and receiving of dynamic metadata.
.envoy.extensions.filters.network.ext_proc.v3.MetadataOptions metadata_options = 6; -
getMetadataOptionsOrBuilder
Options related to the sending and receiving of dynamic metadata.
.envoy.extensions.filters.network.ext_proc.v3.MetadataOptions metadata_options = 6;- Specified by:
getMetadataOptionsOrBuilderin interfaceNetworkExternalProcessorOrBuilder
-
setUnknownFields
public final NetworkExternalProcessor.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkExternalProcessor.Builder>
-
mergeUnknownFields
public final NetworkExternalProcessor.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkExternalProcessor.Builder>
-