Class 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.config.filter.http.grpc_http1_reverse_bridge.v2alpha1.FilterConfig
    • Method Detail

      • 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>
      • 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.
         
        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.
         
        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.
         
        bool withhold_grpc_frames = 2;
        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>