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 configuration
 
Protobuf type envoy.extensions.filters.http.grpc_http1_reverse_bridge.v3.FilterConfig
  • Method Summary

    Modifier and Type
    Method
    Description
    addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
     
     
     
    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.
     
    The content-type to pass to the upstream when the gRPC bridge filter is applied.
    com.google.protobuf.ByteString
    The content-type to pass to the upstream when the gRPC bridge filter is applied.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    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.ByteString
    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``.
    boolean
    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.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    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.
    setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
    setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object 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``.
    setUnknownFields(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, 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

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
    • clear

      public FilterConfig.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
    • getDefaultInstanceForType

      public FilterConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public FilterConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public FilterConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public FilterConfig.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
    • setField

      public FilterConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
    • clearField

      public FilterConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
    • clearOneof

      public FilterConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
    • setRepeatedField

      public FilterConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
    • addRepeatedField

      public FilterConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
    • mergeFrom

      public FilterConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FilterConfig.Builder>
    • mergeFrom

      public FilterConfig.Builder mergeFrom(FilterConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getContentType in interface FilterConfigOrBuilder
      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:
      getContentTypeBytes in interface FilterConfigOrBuilder
      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:
      getWithholdGrpcFrames in interface FilterConfigOrBuilder
      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:
      getResponseSizeHeader in interface FilterConfigOrBuilder
      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:
      getResponseSizeHeaderBytes in interface FilterConfigOrBuilder
      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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
    • mergeUnknownFields

      public final FilterConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>