Class FilterConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
io.envoyproxy.envoy.extensions.filters.http.grpc_http1_reverse_bridge.v3.FilterConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,FilterConfigOrBuilder,Cloneable
- Enclosing class:
- FilterConfig
public static final class FilterConfig.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
implements FilterConfigOrBuilder
gRPC reverse bridge filter configurationProtobuf type
envoy.extensions.filters.http.grpc_http1_reverse_bridge.v3.FilterConfig-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The content-type to pass to the upstream when the gRPC bridge filter is applied.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) When :ref:`withhold_grpc_frames <envoy_v3_api_field_extensions.filters.http.grpc_http1_reverse_bridge.v3.FilterConfig.withhold_grpc_frames>` is true, this option controls how Envoy calculates the ``Content-Length``.If true, Envoy will assume that the upstream doesn't understand gRPC frames and strip the gRPC frame from the request, and add it back in to the response.clone()The content-type to pass to the upstream when the gRPC bridge filter is applied.com.google.protobuf.ByteStringThe content-type to pass to the upstream when the gRPC bridge filter is applied.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorWhen :ref:`withhold_grpc_frames <envoy_v3_api_field_extensions.filters.http.grpc_http1_reverse_bridge.v3.FilterConfig.withhold_grpc_frames>` is true, this option controls how Envoy calculates the ``Content-Length``.com.google.protobuf.ByteStringWhen :ref:`withhold_grpc_frames <envoy_v3_api_field_extensions.filters.http.grpc_http1_reverse_bridge.v3.FilterConfig.withhold_grpc_frames>` is true, this option controls how Envoy calculates the ``Content-Length``.booleanIf true, Envoy will assume that the upstream doesn't understand gRPC frames and strip the gRPC frame from the request, and add it back in to the response.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(FilterConfig other) final FilterConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setContentType(String value) The content-type to pass to the upstream when the gRPC bridge filter is applied.setContentTypeBytes(com.google.protobuf.ByteString value) The content-type to pass to the upstream when the gRPC bridge filter is applied.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResponseSizeHeader(String value) When :ref:`withhold_grpc_frames <envoy_v3_api_field_extensions.filters.http.grpc_http1_reverse_bridge.v3.FilterConfig.withhold_grpc_frames>` is true, this option controls how Envoy calculates the ``Content-Length``.setResponseSizeHeaderBytes(com.google.protobuf.ByteString value) When :ref:`withhold_grpc_frames <envoy_v3_api_field_extensions.filters.http.grpc_http1_reverse_bridge.v3.FilterConfig.withhold_grpc_frames>` is true, this option controls how Envoy calculates the ``Content-Length``.final FilterConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setWithholdGrpcFrames(boolean value) If true, Envoy will assume that the upstream doesn't understand gRPC frames and strip the gRPC frame from the request, and add it back in to the response.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<FilterConfig.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<FilterConfig.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<FilterConfig.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<FilterConfig.Builder>
-
setField
public FilterConfig.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<FilterConfig.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
-
setRepeatedField
public FilterConfig.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<FilterConfig.Builder>
-
addRepeatedField
public FilterConfig.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<FilterConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FilterConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
-
mergeFrom
public FilterConfig.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<FilterConfig.Builder>- Throws:
IOException
-
getContentType
The content-type to pass to the upstream when the gRPC bridge filter is applied. The filter will also validate that the upstream responds with the same content type.
string content_type = 1 [(.validate.rules) = { ... }- Specified by:
getContentTypein interfaceFilterConfigOrBuilder- Returns:
- The contentType.
-
getContentTypeBytes
public com.google.protobuf.ByteString getContentTypeBytes()The content-type to pass to the upstream when the gRPC bridge filter is applied. The filter will also validate that the upstream responds with the same content type.
string content_type = 1 [(.validate.rules) = { ... }- Specified by:
getContentTypeBytesin interfaceFilterConfigOrBuilder- Returns:
- The bytes for contentType.
-
setContentType
The content-type to pass to the upstream when the gRPC bridge filter is applied. The filter will also validate that the upstream responds with the same content type.
string content_type = 1 [(.validate.rules) = { ... }- Parameters:
value- The contentType to set.- Returns:
- This builder for chaining.
-
clearContentType
The content-type to pass to the upstream when the gRPC bridge filter is applied. The filter will also validate that the upstream responds with the same content type.
string content_type = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setContentTypeBytes
The content-type to pass to the upstream when the gRPC bridge filter is applied. The filter will also validate that the upstream responds with the same content type.
string content_type = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for contentType to set.- Returns:
- This builder for chaining.
-
getWithholdGrpcFrames
public boolean getWithholdGrpcFrames()If true, Envoy will assume that the upstream doesn't understand gRPC frames and strip the gRPC frame from the request, and add it back in to the response. This will hide the gRPC semantics from the upstream, allowing it to receive and respond with a simple binary encoded protobuf. In order to calculate the ``Content-Length`` header value, Envoy will buffer the upstream response unless :ref:`response_size_header <envoy_v3_api_field_extensions.filters.http.grpc_http1_reverse_bridge.v3.FilterConfig.response_size_header>` is set, in which case Envoy will use the value of an upstream header to calculate the content length.
bool withhold_grpc_frames = 2;- Specified by:
getWithholdGrpcFramesin interfaceFilterConfigOrBuilder- Returns:
- The withholdGrpcFrames.
-
setWithholdGrpcFrames
If true, Envoy will assume that the upstream doesn't understand gRPC frames and strip the gRPC frame from the request, and add it back in to the response. This will hide the gRPC semantics from the upstream, allowing it to receive and respond with a simple binary encoded protobuf. In order to calculate the ``Content-Length`` header value, Envoy will buffer the upstream response unless :ref:`response_size_header <envoy_v3_api_field_extensions.filters.http.grpc_http1_reverse_bridge.v3.FilterConfig.response_size_header>` is set, in which case Envoy will use the value of an upstream header to calculate the content length.
bool withhold_grpc_frames = 2;- Parameters:
value- The withholdGrpcFrames to set.- Returns:
- This builder for chaining.
-
clearWithholdGrpcFrames
If true, Envoy will assume that the upstream doesn't understand gRPC frames and strip the gRPC frame from the request, and add it back in to the response. This will hide the gRPC semantics from the upstream, allowing it to receive and respond with a simple binary encoded protobuf. In order to calculate the ``Content-Length`` header value, Envoy will buffer the upstream response unless :ref:`response_size_header <envoy_v3_api_field_extensions.filters.http.grpc_http1_reverse_bridge.v3.FilterConfig.response_size_header>` is set, in which case Envoy will use the value of an upstream header to calculate the content length.
bool withhold_grpc_frames = 2;- Returns:
- This builder for chaining.
-
getResponseSizeHeader
When :ref:`withhold_grpc_frames <envoy_v3_api_field_extensions.filters.http.grpc_http1_reverse_bridge.v3.FilterConfig.withhold_grpc_frames>` is true, this option controls how Envoy calculates the ``Content-Length``. When ``response_size_header`` is empty, Envoy will buffer the upstream response to calculate its size. When ``response_size_header`` is set to a non-empty string, Envoy will stream the response to the downstream and it will use the value of the response header with this name to set the ``Content-Length`` header and gRPC frame size. If the header with this name is repeated, only the first value will be used. Envoy will treat the upstream response as an error if this option is specified and the header is missing or if the value does not match the actual response body size.
string response_size_header = 3 [(.validate.rules) = { ... }- Specified by:
getResponseSizeHeaderin interfaceFilterConfigOrBuilder- Returns:
- The responseSizeHeader.
-
getResponseSizeHeaderBytes
public com.google.protobuf.ByteString getResponseSizeHeaderBytes()When :ref:`withhold_grpc_frames <envoy_v3_api_field_extensions.filters.http.grpc_http1_reverse_bridge.v3.FilterConfig.withhold_grpc_frames>` is true, this option controls how Envoy calculates the ``Content-Length``. When ``response_size_header`` is empty, Envoy will buffer the upstream response to calculate its size. When ``response_size_header`` is set to a non-empty string, Envoy will stream the response to the downstream and it will use the value of the response header with this name to set the ``Content-Length`` header and gRPC frame size. If the header with this name is repeated, only the first value will be used. Envoy will treat the upstream response as an error if this option is specified and the header is missing or if the value does not match the actual response body size.
string response_size_header = 3 [(.validate.rules) = { ... }- Specified by:
getResponseSizeHeaderBytesin interfaceFilterConfigOrBuilder- Returns:
- The bytes for responseSizeHeader.
-
setResponseSizeHeader
When :ref:`withhold_grpc_frames <envoy_v3_api_field_extensions.filters.http.grpc_http1_reverse_bridge.v3.FilterConfig.withhold_grpc_frames>` is true, this option controls how Envoy calculates the ``Content-Length``. When ``response_size_header`` is empty, Envoy will buffer the upstream response to calculate its size. When ``response_size_header`` is set to a non-empty string, Envoy will stream the response to the downstream and it will use the value of the response header with this name to set the ``Content-Length`` header and gRPC frame size. If the header with this name is repeated, only the first value will be used. Envoy will treat the upstream response as an error if this option is specified and the header is missing or if the value does not match the actual response body size.
string response_size_header = 3 [(.validate.rules) = { ... }- Parameters:
value- The responseSizeHeader to set.- Returns:
- This builder for chaining.
-
clearResponseSizeHeader
When :ref:`withhold_grpc_frames <envoy_v3_api_field_extensions.filters.http.grpc_http1_reverse_bridge.v3.FilterConfig.withhold_grpc_frames>` is true, this option controls how Envoy calculates the ``Content-Length``. When ``response_size_header`` is empty, Envoy will buffer the upstream response to calculate its size. When ``response_size_header`` is set to a non-empty string, Envoy will stream the response to the downstream and it will use the value of the response header with this name to set the ``Content-Length`` header and gRPC frame size. If the header with this name is repeated, only the first value will be used. Envoy will treat the upstream response as an error if this option is specified and the header is missing or if the value does not match the actual response body size.
string response_size_header = 3 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setResponseSizeHeaderBytes
When :ref:`withhold_grpc_frames <envoy_v3_api_field_extensions.filters.http.grpc_http1_reverse_bridge.v3.FilterConfig.withhold_grpc_frames>` is true, this option controls how Envoy calculates the ``Content-Length``. When ``response_size_header`` is empty, Envoy will buffer the upstream response to calculate its size. When ``response_size_header`` is set to a non-empty string, Envoy will stream the response to the downstream and it will use the value of the response header with this name to set the ``Content-Length`` header and gRPC frame size. If the header with this name is repeated, only the first value will be used. Envoy will treat the upstream response as an error if this option is specified and the header is missing or if the value does not match the actual response body size.
string response_size_header = 3 [(.validate.rules) = { ... }- Parameters:
value- The bytes for responseSizeHeader to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final FilterConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
-
mergeUnknownFields
public final FilterConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
-