Class FilterConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 configuration
Protobuf typeenvoy.extensions.filters.http.grpc_http1_reverse_bridge.v3.FilterConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FilterConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)FilterConfigbuild()FilterConfigbuildPartial()FilterConfig.Builderclear()FilterConfig.BuilderclearContentType()The content-type to pass to the upstream when the gRPC bridge filter is applied.FilterConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)FilterConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)FilterConfig.BuilderclearResponseSizeHeader()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``.FilterConfig.BuilderclearWithholdGrpcFrames()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.FilterConfig.Builderclone()StringgetContentType()The content-type to pass to the upstream when the gRPC bridge filter is applied.com.google.protobuf.ByteStringgetContentTypeBytes()The content-type to pass to the upstream when the gRPC bridge filter is applied.FilterConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetResponseSizeHeader()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``.com.google.protobuf.ByteStringgetResponseSizeHeaderBytes()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``.booleangetWithholdGrpcFrames()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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()FilterConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)FilterConfig.BuildermergeFrom(com.google.protobuf.Message other)FilterConfig.BuildermergeFrom(FilterConfig other)FilterConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)FilterConfig.BuildersetContentType(String value)The content-type to pass to the upstream when the gRPC bridge filter is applied.FilterConfig.BuildersetContentTypeBytes(com.google.protobuf.ByteString value)The content-type to pass to the upstream when the gRPC bridge filter is applied.FilterConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)FilterConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)FilterConfig.BuildersetResponseSizeHeader(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``.FilterConfig.BuildersetResponseSizeHeaderBytes(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``.FilterConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)FilterConfig.BuildersetWithholdGrpcFrames(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, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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
public 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
public FilterConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public FilterConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public FilterConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public FilterConfig.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
public FilterConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
-
clearOneof
public FilterConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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
public FilterConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FilterConfig.Builder>
-
mergeFrom
public FilterConfig.Builder mergeFrom(FilterConfig other)
-
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
public String 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
public FilterConfig.Builder setContentType(String value)
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
public FilterConfig.Builder 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
public FilterConfig.Builder setContentTypeBytes(com.google.protobuf.ByteString value)
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
public FilterConfig.Builder 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. 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
public FilterConfig.Builder 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
public String 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
public FilterConfig.Builder 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``. 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
public FilterConfig.Builder 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
public FilterConfig.Builder 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``. 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>
-
-