Class HeaderMutation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<HeaderMutation.Builder>
io.envoyproxy.envoy.config.common.mutation_rules.v3.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
 The HeaderMutation structure specifies an action that may be taken on HTTP
 headers.
 
Protobuf type envoy.config.common.mutation_rules.v3.HeaderMutation
  • 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<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>
    • mergeFrom

      public HeaderMutation.Builder mergeFrom(HeaderMutation other)
    • 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
    • getActionCase

      public HeaderMutation.ActionCase getActionCase()
      Specified by:
      getActionCase in interface HeaderMutationOrBuilder
    • clearAction

      public HeaderMutation.Builder clearAction()
    • hasRemove

      public boolean hasRemove()
       Remove the specified header if it exists.
       
      string remove = 1 [(.validate.rules) = { ... }
      Specified by:
      hasRemove in interface HeaderMutationOrBuilder
      Returns:
      Whether the remove field is set.
    • getRemove

      public String getRemove()
       Remove the specified header if it exists.
       
      string remove = 1 [(.validate.rules) = { ... }
      Specified by:
      getRemove in interface HeaderMutationOrBuilder
      Returns:
      The remove.
    • getRemoveBytes

      public com.google.protobuf.ByteString getRemoveBytes()
       Remove the specified header if it exists.
       
      string remove = 1 [(.validate.rules) = { ... }
      Specified by:
      getRemoveBytes in interface HeaderMutationOrBuilder
      Returns:
      The bytes for remove.
    • setRemove

      public HeaderMutation.Builder setRemove(String value)
       Remove the specified header if it exists.
       
      string remove = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The remove to set.
      Returns:
      This builder for chaining.
    • clearRemove

      public HeaderMutation.Builder clearRemove()
       Remove the specified header if it exists.
       
      string remove = 1 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setRemoveBytes

      public HeaderMutation.Builder setRemoveBytes(com.google.protobuf.ByteString value)
       Remove the specified header if it exists.
       
      string remove = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for remove to set.
      Returns:
      This builder for chaining.
    • hasAppend

      public boolean hasAppend()
       Append new header by the specified HeaderValueOption.
       
      .envoy.config.core.v3.HeaderValueOption append = 2;
      Specified by:
      hasAppend in interface HeaderMutationOrBuilder
      Returns:
      Whether the append field is set.
    • getAppend

      public HeaderValueOption getAppend()
       Append new header by the specified HeaderValueOption.
       
      .envoy.config.core.v3.HeaderValueOption append = 2;
      Specified by:
      getAppend in interface HeaderMutationOrBuilder
      Returns:
      The append.
    • setAppend

      public HeaderMutation.Builder setAppend(HeaderValueOption value)
       Append new header by the specified HeaderValueOption.
       
      .envoy.config.core.v3.HeaderValueOption append = 2;
    • setAppend

      public HeaderMutation.Builder setAppend(HeaderValueOption.Builder builderForValue)
       Append new header by the specified HeaderValueOption.
       
      .envoy.config.core.v3.HeaderValueOption append = 2;
    • mergeAppend

      public HeaderMutation.Builder mergeAppend(HeaderValueOption value)
       Append new header by the specified HeaderValueOption.
       
      .envoy.config.core.v3.HeaderValueOption append = 2;
    • clearAppend

      public HeaderMutation.Builder clearAppend()
       Append new header by the specified HeaderValueOption.
       
      .envoy.config.core.v3.HeaderValueOption append = 2;
    • getAppendBuilder

      public HeaderValueOption.Builder getAppendBuilder()
       Append new header by the specified HeaderValueOption.
       
      .envoy.config.core.v3.HeaderValueOption append = 2;
    • getAppendOrBuilder

      public HeaderValueOptionOrBuilder getAppendOrBuilder()
       Append new header by the specified HeaderValueOption.
       
      .envoy.config.core.v3.HeaderValueOption append = 2;
      Specified by:
      getAppendOrBuilder in interface HeaderMutationOrBuilder
    • hasRemoveOnMatch

      public boolean hasRemoveOnMatch()
       Remove the header if the key matches the specified string matcher.
       
      .envoy.config.common.mutation_rules.v3.HeaderMutation.RemoveOnMatch remove_on_match = 3;
      Specified by:
      hasRemoveOnMatch in interface HeaderMutationOrBuilder
      Returns:
      Whether the removeOnMatch field is set.
    • getRemoveOnMatch

      public HeaderMutation.RemoveOnMatch getRemoveOnMatch()
       Remove the header if the key matches the specified string matcher.
       
      .envoy.config.common.mutation_rules.v3.HeaderMutation.RemoveOnMatch remove_on_match = 3;
      Specified by:
      getRemoveOnMatch in interface HeaderMutationOrBuilder
      Returns:
      The removeOnMatch.
    • setRemoveOnMatch

      public HeaderMutation.Builder setRemoveOnMatch(HeaderMutation.RemoveOnMatch value)
       Remove the header if the key matches the specified string matcher.
       
      .envoy.config.common.mutation_rules.v3.HeaderMutation.RemoveOnMatch remove_on_match = 3;
    • setRemoveOnMatch

      public HeaderMutation.Builder setRemoveOnMatch(HeaderMutation.RemoveOnMatch.Builder builderForValue)
       Remove the header if the key matches the specified string matcher.
       
      .envoy.config.common.mutation_rules.v3.HeaderMutation.RemoveOnMatch remove_on_match = 3;
    • mergeRemoveOnMatch

      public HeaderMutation.Builder mergeRemoveOnMatch(HeaderMutation.RemoveOnMatch value)
       Remove the header if the key matches the specified string matcher.
       
      .envoy.config.common.mutation_rules.v3.HeaderMutation.RemoveOnMatch remove_on_match = 3;
    • clearRemoveOnMatch

      public HeaderMutation.Builder clearRemoveOnMatch()
       Remove the header if the key matches the specified string matcher.
       
      .envoy.config.common.mutation_rules.v3.HeaderMutation.RemoveOnMatch remove_on_match = 3;
    • getRemoveOnMatchBuilder

      public HeaderMutation.RemoveOnMatch.Builder getRemoveOnMatchBuilder()
       Remove the header if the key matches the specified string matcher.
       
      .envoy.config.common.mutation_rules.v3.HeaderMutation.RemoveOnMatch remove_on_match = 3;
    • getRemoveOnMatchOrBuilder

      public HeaderMutation.RemoveOnMatchOrBuilder getRemoveOnMatchOrBuilder()
       Remove the header if the key matches the specified string matcher.
       
      .envoy.config.common.mutation_rules.v3.HeaderMutation.RemoveOnMatch remove_on_match = 3;
      Specified by:
      getRemoveOnMatchOrBuilder in interface HeaderMutationOrBuilder
    • 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>