Class HeaderMutation.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, HeaderMutationOrBuilder, Cloneable
    Enclosing class:
    HeaderMutation

    public static final class HeaderMutation.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<HeaderMutation.Builder>
    implements HeaderMutationOrBuilder
     Change HTTP headers or trailers by appending, replacing, or removing
     headers.
     
    Protobuf type envoy.service.ext_proc.v3.HeaderMutation
    • 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<HeaderMutation.Builder>
      • clear

        public HeaderMutation.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<HeaderMutation.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<HeaderMutation.Builder>
      • getDefaultInstanceForType

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

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

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

        public HeaderMutation.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<HeaderMutation.Builder>
      • setField

        public HeaderMutation.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<HeaderMutation.Builder>
      • clearField

        public HeaderMutation.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<HeaderMutation.Builder>
      • clearOneof

        public HeaderMutation.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<HeaderMutation.Builder>
      • setRepeatedField

        public HeaderMutation.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<HeaderMutation.Builder>
      • addRepeatedField

        public HeaderMutation.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<HeaderMutation.Builder>
      • mergeFrom

        public HeaderMutation.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<HeaderMutation.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMutation.Builder>
      • mergeFrom

        public HeaderMutation.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<HeaderMutation.Builder>
        Throws:
        IOException
      • getSetHeadersList

        public List<HeaderValueOption> getSetHeadersList()
         Add or replace HTTP headers. Attempts to set the value of
         any ``x-envoy`` header, and attempts to set the ``:method``,
         ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
         
        repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
        Specified by:
        getSetHeadersList in interface HeaderMutationOrBuilder
      • getSetHeadersCount

        public int getSetHeadersCount()
         Add or replace HTTP headers. Attempts to set the value of
         any ``x-envoy`` header, and attempts to set the ``:method``,
         ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
         
        repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
        Specified by:
        getSetHeadersCount in interface HeaderMutationOrBuilder
      • getSetHeaders

        public HeaderValueOption getSetHeaders​(int index)
         Add or replace HTTP headers. Attempts to set the value of
         any ``x-envoy`` header, and attempts to set the ``:method``,
         ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
         
        repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
        Specified by:
        getSetHeaders in interface HeaderMutationOrBuilder
      • setSetHeaders

        public HeaderMutation.Builder setSetHeaders​(int index,
                                                    HeaderValueOption value)
         Add or replace HTTP headers. Attempts to set the value of
         any ``x-envoy`` header, and attempts to set the ``:method``,
         ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
         
        repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
      • setSetHeaders

        public HeaderMutation.Builder setSetHeaders​(int index,
                                                    HeaderValueOption.Builder builderForValue)
         Add or replace HTTP headers. Attempts to set the value of
         any ``x-envoy`` header, and attempts to set the ``:method``,
         ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
         
        repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
      • addSetHeaders

        public HeaderMutation.Builder addSetHeaders​(HeaderValueOption value)
         Add or replace HTTP headers. Attempts to set the value of
         any ``x-envoy`` header, and attempts to set the ``:method``,
         ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
         
        repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
      • addSetHeaders

        public HeaderMutation.Builder addSetHeaders​(int index,
                                                    HeaderValueOption value)
         Add or replace HTTP headers. Attempts to set the value of
         any ``x-envoy`` header, and attempts to set the ``:method``,
         ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
         
        repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
      • addSetHeaders

        public HeaderMutation.Builder addSetHeaders​(HeaderValueOption.Builder builderForValue)
         Add or replace HTTP headers. Attempts to set the value of
         any ``x-envoy`` header, and attempts to set the ``:method``,
         ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
         
        repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
      • addSetHeaders

        public HeaderMutation.Builder addSetHeaders​(int index,
                                                    HeaderValueOption.Builder builderForValue)
         Add or replace HTTP headers. Attempts to set the value of
         any ``x-envoy`` header, and attempts to set the ``:method``,
         ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
         
        repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
      • addAllSetHeaders

        public HeaderMutation.Builder addAllSetHeaders​(Iterable<? extends HeaderValueOption> values)
         Add or replace HTTP headers. Attempts to set the value of
         any ``x-envoy`` header, and attempts to set the ``:method``,
         ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
         
        repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
      • clearSetHeaders

        public HeaderMutation.Builder clearSetHeaders()
         Add or replace HTTP headers. Attempts to set the value of
         any ``x-envoy`` header, and attempts to set the ``:method``,
         ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
         
        repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
      • removeSetHeaders

        public HeaderMutation.Builder removeSetHeaders​(int index)
         Add or replace HTTP headers. Attempts to set the value of
         any ``x-envoy`` header, and attempts to set the ``:method``,
         ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
         
        repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
      • getSetHeadersBuilder

        public HeaderValueOption.Builder getSetHeadersBuilder​(int index)
         Add or replace HTTP headers. Attempts to set the value of
         any ``x-envoy`` header, and attempts to set the ``:method``,
         ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
         
        repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
      • getSetHeadersOrBuilder

        public HeaderValueOptionOrBuilder getSetHeadersOrBuilder​(int index)
         Add or replace HTTP headers. Attempts to set the value of
         any ``x-envoy`` header, and attempts to set the ``:method``,
         ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
         
        repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
        Specified by:
        getSetHeadersOrBuilder in interface HeaderMutationOrBuilder
      • getSetHeadersOrBuilderList

        public List<? extends HeaderValueOptionOrBuilder> getSetHeadersOrBuilderList()
         Add or replace HTTP headers. Attempts to set the value of
         any ``x-envoy`` header, and attempts to set the ``:method``,
         ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
         
        repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
        Specified by:
        getSetHeadersOrBuilderList in interface HeaderMutationOrBuilder
      • addSetHeadersBuilder

        public HeaderValueOption.Builder addSetHeadersBuilder()
         Add or replace HTTP headers. Attempts to set the value of
         any ``x-envoy`` header, and attempts to set the ``:method``,
         ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
         
        repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
      • addSetHeadersBuilder

        public HeaderValueOption.Builder addSetHeadersBuilder​(int index)
         Add or replace HTTP headers. Attempts to set the value of
         any ``x-envoy`` header, and attempts to set the ``:method``,
         ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
         
        repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
      • getSetHeadersBuilderList

        public List<HeaderValueOption.Builder> getSetHeadersBuilderList()
         Add or replace HTTP headers. Attempts to set the value of
         any ``x-envoy`` header, and attempts to set the ``:method``,
         ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
         
        repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
      • getRemoveHeadersList

        public com.google.protobuf.ProtocolStringList getRemoveHeadersList()
         Remove these HTTP headers. Attempts to remove system headers --
         any header starting with ``:``, plus ``host`` -- will be ignored.
         
        repeated string remove_headers = 2;
        Specified by:
        getRemoveHeadersList in interface HeaderMutationOrBuilder
        Returns:
        A list containing the removeHeaders.
      • getRemoveHeadersCount

        public int getRemoveHeadersCount()
         Remove these HTTP headers. Attempts to remove system headers --
         any header starting with ``:``, plus ``host`` -- will be ignored.
         
        repeated string remove_headers = 2;
        Specified by:
        getRemoveHeadersCount in interface HeaderMutationOrBuilder
        Returns:
        The count of removeHeaders.
      • getRemoveHeaders

        public String getRemoveHeaders​(int index)
         Remove these HTTP headers. Attempts to remove system headers --
         any header starting with ``:``, plus ``host`` -- will be ignored.
         
        repeated string remove_headers = 2;
        Specified by:
        getRemoveHeaders in interface HeaderMutationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The removeHeaders at the given index.
      • getRemoveHeadersBytes

        public com.google.protobuf.ByteString getRemoveHeadersBytes​(int index)
         Remove these HTTP headers. Attempts to remove system headers --
         any header starting with ``:``, plus ``host`` -- will be ignored.
         
        repeated string remove_headers = 2;
        Specified by:
        getRemoveHeadersBytes in interface HeaderMutationOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the removeHeaders at the given index.
      • setRemoveHeaders

        public HeaderMutation.Builder setRemoveHeaders​(int index,
                                                       String value)
         Remove these HTTP headers. Attempts to remove system headers --
         any header starting with ``:``, plus ``host`` -- will be ignored.
         
        repeated string remove_headers = 2;
        Parameters:
        index - The index to set the value at.
        value - The removeHeaders to set.
        Returns:
        This builder for chaining.
      • addRemoveHeaders

        public HeaderMutation.Builder addRemoveHeaders​(String value)
         Remove these HTTP headers. Attempts to remove system headers --
         any header starting with ``:``, plus ``host`` -- will be ignored.
         
        repeated string remove_headers = 2;
        Parameters:
        value - The removeHeaders to add.
        Returns:
        This builder for chaining.
      • addAllRemoveHeaders

        public HeaderMutation.Builder addAllRemoveHeaders​(Iterable<String> values)
         Remove these HTTP headers. Attempts to remove system headers --
         any header starting with ``:``, plus ``host`` -- will be ignored.
         
        repeated string remove_headers = 2;
        Parameters:
        values - The removeHeaders to add.
        Returns:
        This builder for chaining.
      • clearRemoveHeaders

        public HeaderMutation.Builder clearRemoveHeaders()
         Remove these HTTP headers. Attempts to remove system headers --
         any header starting with ``:``, plus ``host`` -- will be ignored.
         
        repeated string remove_headers = 2;
        Returns:
        This builder for chaining.
      • addRemoveHeadersBytes

        public HeaderMutation.Builder addRemoveHeadersBytes​(com.google.protobuf.ByteString value)
         Remove these HTTP headers. Attempts to remove system headers --
         any header starting with ``:``, plus ``host`` -- will be ignored.
         
        repeated string remove_headers = 2;
        Parameters:
        value - The bytes of the removeHeaders to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final HeaderMutation.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<HeaderMutation.Builder>
      • mergeUnknownFields

        public final HeaderMutation.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<HeaderMutation.Builder>