Class BodyTransformation.Builder

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

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

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

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

      public BodyTransformation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<BodyTransformation.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public BodyTransformation.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<BodyTransformation.Builder>
      Throws:
      IOException
    • hasBodyFormat

      public boolean hasBodyFormat()
       Body transformation configuration. The substitution format string is used as the template
       to generate the transformed new body content.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       And except the commonly used format specifiers, the additional format specifiers
       ``%REQUEST_BODY(KEY*)%`` and ``%RESPONSE_BODY(KEY*)%`` could also be used here.
       
      .envoy.config.core.v3.SubstitutionFormatString body_format = 1 [(.validate.rules) = { ... }
      Specified by:
      hasBodyFormat in interface BodyTransformationOrBuilder
      Returns:
      Whether the bodyFormat field is set.
    • getBodyFormat

      public SubstitutionFormatString getBodyFormat()
       Body transformation configuration. The substitution format string is used as the template
       to generate the transformed new body content.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       And except the commonly used format specifiers, the additional format specifiers
       ``%REQUEST_BODY(KEY*)%`` and ``%RESPONSE_BODY(KEY*)%`` could also be used here.
       
      .envoy.config.core.v3.SubstitutionFormatString body_format = 1 [(.validate.rules) = { ... }
      Specified by:
      getBodyFormat in interface BodyTransformationOrBuilder
      Returns:
      The bodyFormat.
    • setBodyFormat

       Body transformation configuration. The substitution format string is used as the template
       to generate the transformed new body content.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       And except the commonly used format specifiers, the additional format specifiers
       ``%REQUEST_BODY(KEY*)%`` and ``%RESPONSE_BODY(KEY*)%`` could also be used here.
       
      .envoy.config.core.v3.SubstitutionFormatString body_format = 1 [(.validate.rules) = { ... }
    • setBodyFormat

      public BodyTransformation.Builder setBodyFormat(SubstitutionFormatString.Builder builderForValue)
       Body transformation configuration. The substitution format string is used as the template
       to generate the transformed new body content.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       And except the commonly used format specifiers, the additional format specifiers
       ``%REQUEST_BODY(KEY*)%`` and ``%RESPONSE_BODY(KEY*)%`` could also be used here.
       
      .envoy.config.core.v3.SubstitutionFormatString body_format = 1 [(.validate.rules) = { ... }
    • mergeBodyFormat

      public BodyTransformation.Builder mergeBodyFormat(SubstitutionFormatString value)
       Body transformation configuration. The substitution format string is used as the template
       to generate the transformed new body content.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       And except the commonly used format specifiers, the additional format specifiers
       ``%REQUEST_BODY(KEY*)%`` and ``%RESPONSE_BODY(KEY*)%`` could also be used here.
       
      .envoy.config.core.v3.SubstitutionFormatString body_format = 1 [(.validate.rules) = { ... }
    • clearBodyFormat

      public BodyTransformation.Builder clearBodyFormat()
       Body transformation configuration. The substitution format string is used as the template
       to generate the transformed new body content.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       And except the commonly used format specifiers, the additional format specifiers
       ``%REQUEST_BODY(KEY*)%`` and ``%RESPONSE_BODY(KEY*)%`` could also be used here.
       
      .envoy.config.core.v3.SubstitutionFormatString body_format = 1 [(.validate.rules) = { ... }
    • getBodyFormatBuilder

      public SubstitutionFormatString.Builder getBodyFormatBuilder()
       Body transformation configuration. The substitution format string is used as the template
       to generate the transformed new body content.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       And except the commonly used format specifiers, the additional format specifiers
       ``%REQUEST_BODY(KEY*)%`` and ``%RESPONSE_BODY(KEY*)%`` could also be used here.
       
      .envoy.config.core.v3.SubstitutionFormatString body_format = 1 [(.validate.rules) = { ... }
    • getBodyFormatOrBuilder

      public SubstitutionFormatStringOrBuilder getBodyFormatOrBuilder()
       Body transformation configuration. The substitution format string is used as the template
       to generate the transformed new body content.
       The :ref:`substitution format specifier <config_access_log_format>` could be applied here.
       And except the commonly used format specifiers, the additional format specifiers
       ``%REQUEST_BODY(KEY*)%`` and ``%RESPONSE_BODY(KEY*)%`` could also be used here.
       
      .envoy.config.core.v3.SubstitutionFormatString body_format = 1 [(.validate.rules) = { ... }
      Specified by:
      getBodyFormatOrBuilder in interface BodyTransformationOrBuilder
    • getActionValue

      public int getActionValue()
       The action to perform for new body content and original body content.
       For example, if ``MERGE`` is used, then the new body content generated from the ``body_format``
       will be merged into the original body content.
      
       Default is ``MERGE``.
       
      .envoy.extensions.filters.http.transform.v3.BodyTransformation.TransformAction action = 2;
      Specified by:
      getActionValue in interface BodyTransformationOrBuilder
      Returns:
      The enum numeric value on the wire for action.
    • setActionValue

      public BodyTransformation.Builder setActionValue(int value)
       The action to perform for new body content and original body content.
       For example, if ``MERGE`` is used, then the new body content generated from the ``body_format``
       will be merged into the original body content.
      
       Default is ``MERGE``.
       
      .envoy.extensions.filters.http.transform.v3.BodyTransformation.TransformAction action = 2;
      Parameters:
      value - The enum numeric value on the wire for action to set.
      Returns:
      This builder for chaining.
    • getAction

       The action to perform for new body content and original body content.
       For example, if ``MERGE`` is used, then the new body content generated from the ``body_format``
       will be merged into the original body content.
      
       Default is ``MERGE``.
       
      .envoy.extensions.filters.http.transform.v3.BodyTransformation.TransformAction action = 2;
      Specified by:
      getAction in interface BodyTransformationOrBuilder
      Returns:
      The action.
    • setAction

       The action to perform for new body content and original body content.
       For example, if ``MERGE`` is used, then the new body content generated from the ``body_format``
       will be merged into the original body content.
      
       Default is ``MERGE``.
       
      .envoy.extensions.filters.http.transform.v3.BodyTransformation.TransformAction action = 2;
      Parameters:
      value - The action to set.
      Returns:
      This builder for chaining.
    • clearAction

      public BodyTransformation.Builder clearAction()
       The action to perform for new body content and original body content.
       For example, if ``MERGE`` is used, then the new body content generated from the ``body_format``
       will be merged into the original body content.
      
       Default is ``MERGE``.
       
      .envoy.extensions.filters.http.transform.v3.BodyTransformation.TransformAction action = 2;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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