Class Transformation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Transformation.Builder>
io.envoyproxy.envoy.extensions.filters.http.transform.v3.Transformation.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TransformationOrBuilder, Cloneable
Enclosing class:
Transformation

public static final class Transformation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Transformation.Builder> implements TransformationOrBuilder
Protobuf type envoy.extensions.filters.http.transform.v3.Transformation
  • 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<Transformation.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public Transformation.Builder mergeFrom(Transformation other)
    • isInitialized

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

      public Transformation.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<Transformation.Builder>
      Throws:
      IOException
    • getHeadersMutationsList

      public List<HeaderMutation> getHeadersMutationsList()
       The header mutations to perform.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       In addition to the commonly used format specifiers, this filter introduces additional format specifiers:
      
       * ``%REQUEST_BODY(KEY*)%``: the request body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       * ``%RESPONSE_BODY(KEY*)%``: the response body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation headers_mutations = 1;
      Specified by:
      getHeadersMutationsList in interface TransformationOrBuilder
    • getHeadersMutationsCount

      public int getHeadersMutationsCount()
       The header mutations to perform.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       In addition to the commonly used format specifiers, this filter introduces additional format specifiers:
      
       * ``%REQUEST_BODY(KEY*)%``: the request body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       * ``%RESPONSE_BODY(KEY*)%``: the response body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation headers_mutations = 1;
      Specified by:
      getHeadersMutationsCount in interface TransformationOrBuilder
    • getHeadersMutations

      public HeaderMutation getHeadersMutations(int index)
       The header mutations to perform.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       In addition to the commonly used format specifiers, this filter introduces additional format specifiers:
      
       * ``%REQUEST_BODY(KEY*)%``: the request body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       * ``%RESPONSE_BODY(KEY*)%``: the response body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation headers_mutations = 1;
      Specified by:
      getHeadersMutations in interface TransformationOrBuilder
    • setHeadersMutations

      public Transformation.Builder setHeadersMutations(int index, HeaderMutation value)
       The header mutations to perform.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       In addition to the commonly used format specifiers, this filter introduces additional format specifiers:
      
       * ``%REQUEST_BODY(KEY*)%``: the request body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       * ``%RESPONSE_BODY(KEY*)%``: the response body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation headers_mutations = 1;
    • setHeadersMutations

      public Transformation.Builder setHeadersMutations(int index, HeaderMutation.Builder builderForValue)
       The header mutations to perform.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       In addition to the commonly used format specifiers, this filter introduces additional format specifiers:
      
       * ``%REQUEST_BODY(KEY*)%``: the request body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       * ``%RESPONSE_BODY(KEY*)%``: the response body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation headers_mutations = 1;
    • addHeadersMutations

      public Transformation.Builder addHeadersMutations(HeaderMutation value)
       The header mutations to perform.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       In addition to the commonly used format specifiers, this filter introduces additional format specifiers:
      
       * ``%REQUEST_BODY(KEY*)%``: the request body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       * ``%RESPONSE_BODY(KEY*)%``: the response body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation headers_mutations = 1;
    • addHeadersMutations

      public Transformation.Builder addHeadersMutations(int index, HeaderMutation value)
       The header mutations to perform.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       In addition to the commonly used format specifiers, this filter introduces additional format specifiers:
      
       * ``%REQUEST_BODY(KEY*)%``: the request body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       * ``%RESPONSE_BODY(KEY*)%``: the response body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation headers_mutations = 1;
    • addHeadersMutations

      public Transformation.Builder addHeadersMutations(HeaderMutation.Builder builderForValue)
       The header mutations to perform.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       In addition to the commonly used format specifiers, this filter introduces additional format specifiers:
      
       * ``%REQUEST_BODY(KEY*)%``: the request body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       * ``%RESPONSE_BODY(KEY*)%``: the response body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation headers_mutations = 1;
    • addHeadersMutations

      public Transformation.Builder addHeadersMutations(int index, HeaderMutation.Builder builderForValue)
       The header mutations to perform.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       In addition to the commonly used format specifiers, this filter introduces additional format specifiers:
      
       * ``%REQUEST_BODY(KEY*)%``: the request body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       * ``%RESPONSE_BODY(KEY*)%``: the response body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation headers_mutations = 1;
    • addAllHeadersMutations

      public Transformation.Builder addAllHeadersMutations(Iterable<? extends HeaderMutation> values)
       The header mutations to perform.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       In addition to the commonly used format specifiers, this filter introduces additional format specifiers:
      
       * ``%REQUEST_BODY(KEY*)%``: the request body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       * ``%RESPONSE_BODY(KEY*)%``: the response body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation headers_mutations = 1;
    • clearHeadersMutations

      public Transformation.Builder clearHeadersMutations()
       The header mutations to perform.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       In addition to the commonly used format specifiers, this filter introduces additional format specifiers:
      
       * ``%REQUEST_BODY(KEY*)%``: the request body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       * ``%RESPONSE_BODY(KEY*)%``: the response body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation headers_mutations = 1;
    • removeHeadersMutations

      public Transformation.Builder removeHeadersMutations(int index)
       The header mutations to perform.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       In addition to the commonly used format specifiers, this filter introduces additional format specifiers:
      
       * ``%REQUEST_BODY(KEY*)%``: the request body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       * ``%RESPONSE_BODY(KEY*)%``: the response body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation headers_mutations = 1;
    • getHeadersMutationsBuilder

      public HeaderMutation.Builder getHeadersMutationsBuilder(int index)
       The header mutations to perform.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       In addition to the commonly used format specifiers, this filter introduces additional format specifiers:
      
       * ``%REQUEST_BODY(KEY*)%``: the request body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       * ``%RESPONSE_BODY(KEY*)%``: the response body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation headers_mutations = 1;
    • getHeadersMutationsOrBuilder

      public HeaderMutationOrBuilder getHeadersMutationsOrBuilder(int index)
       The header mutations to perform.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       In addition to the commonly used format specifiers, this filter introduces additional format specifiers:
      
       * ``%REQUEST_BODY(KEY*)%``: the request body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       * ``%RESPONSE_BODY(KEY*)%``: the response body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation headers_mutations = 1;
      Specified by:
      getHeadersMutationsOrBuilder in interface TransformationOrBuilder
    • getHeadersMutationsOrBuilderList

      public List<? extends HeaderMutationOrBuilder> getHeadersMutationsOrBuilderList()
       The header mutations to perform.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       In addition to the commonly used format specifiers, this filter introduces additional format specifiers:
      
       * ``%REQUEST_BODY(KEY*)%``: the request body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       * ``%RESPONSE_BODY(KEY*)%``: the response body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation headers_mutations = 1;
      Specified by:
      getHeadersMutationsOrBuilderList in interface TransformationOrBuilder
    • addHeadersMutationsBuilder

      public HeaderMutation.Builder addHeadersMutationsBuilder()
       The header mutations to perform.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       In addition to the commonly used format specifiers, this filter introduces additional format specifiers:
      
       * ``%REQUEST_BODY(KEY*)%``: the request body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       * ``%RESPONSE_BODY(KEY*)%``: the response body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation headers_mutations = 1;
    • addHeadersMutationsBuilder

      public HeaderMutation.Builder addHeadersMutationsBuilder(int index)
       The header mutations to perform.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       In addition to the commonly used format specifiers, this filter introduces additional format specifiers:
      
       * ``%REQUEST_BODY(KEY*)%``: the request body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       * ``%RESPONSE_BODY(KEY*)%``: the response body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation headers_mutations = 1;
    • getHeadersMutationsBuilderList

      public List<HeaderMutation.Builder> getHeadersMutationsBuilderList()
       The header mutations to perform.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       In addition to the commonly used format specifiers, this filter introduces additional format specifiers:
      
       * ``%REQUEST_BODY(KEY*)%``: the request body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       * ``%RESPONSE_BODY(KEY*)%``: the response body. And ``Key`` KEY is an optional
         lookup key in the namespace with the option of specifying nested keys separated by ':'.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation headers_mutations = 1;
    • hasBodyTransformation

      public boolean hasBodyTransformation()
       The body transformation configuration. If not set, no body transformation will be performed.
       
      .envoy.extensions.filters.http.transform.v3.BodyTransformation body_transformation = 2;
      Specified by:
      hasBodyTransformation in interface TransformationOrBuilder
      Returns:
      Whether the bodyTransformation field is set.
    • getBodyTransformation

      public BodyTransformation getBodyTransformation()
       The body transformation configuration. If not set, no body transformation will be performed.
       
      .envoy.extensions.filters.http.transform.v3.BodyTransformation body_transformation = 2;
      Specified by:
      getBodyTransformation in interface TransformationOrBuilder
      Returns:
      The bodyTransformation.
    • setBodyTransformation

      public Transformation.Builder setBodyTransformation(BodyTransformation value)
       The body transformation configuration. If not set, no body transformation will be performed.
       
      .envoy.extensions.filters.http.transform.v3.BodyTransformation body_transformation = 2;
    • setBodyTransformation

      public Transformation.Builder setBodyTransformation(BodyTransformation.Builder builderForValue)
       The body transformation configuration. If not set, no body transformation will be performed.
       
      .envoy.extensions.filters.http.transform.v3.BodyTransformation body_transformation = 2;
    • mergeBodyTransformation

      public Transformation.Builder mergeBodyTransformation(BodyTransformation value)
       The body transformation configuration. If not set, no body transformation will be performed.
       
      .envoy.extensions.filters.http.transform.v3.BodyTransformation body_transformation = 2;
    • clearBodyTransformation

      public Transformation.Builder clearBodyTransformation()
       The body transformation configuration. If not set, no body transformation will be performed.
       
      .envoy.extensions.filters.http.transform.v3.BodyTransformation body_transformation = 2;
    • getBodyTransformationBuilder

      public BodyTransformation.Builder getBodyTransformationBuilder()
       The body transformation configuration. If not set, no body transformation will be performed.
       
      .envoy.extensions.filters.http.transform.v3.BodyTransformation body_transformation = 2;
    • getBodyTransformationOrBuilder

      public BodyTransformationOrBuilder getBodyTransformationOrBuilder()
       The body transformation configuration. If not set, no body transformation will be performed.
       
      .envoy.extensions.filters.http.transform.v3.BodyTransformation body_transformation = 2;
      Specified by:
      getBodyTransformationOrBuilder in interface TransformationOrBuilder
    • setUnknownFields

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

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