Class CelExpressionConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CelExpressionConfig.Builder>
io.envoyproxy.envoy.config.core.v3.CelExpressionConfig.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CelExpressionConfigOrBuilder, Cloneable
Enclosing class:
CelExpressionConfig

public static final class CelExpressionConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CelExpressionConfig.Builder> implements CelExpressionConfigOrBuilder
 CEL expression evaluation configuration.
 These options control the behavior of the Common Expression Language runtime for
 individual CEL expressions.
 
Protobuf type envoy.config.core.v3.CelExpressionConfig
  • 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<CelExpressionConfig.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<CelExpressionConfig.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<CelExpressionConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

      public CelExpressionConfig.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<CelExpressionConfig.Builder>
      Throws:
      IOException
    • getEnableStringConversion

      public boolean getEnableStringConversion()
       Enable string conversion functions for CEL expressions. When enabled, CEL expressions
       can convert values to strings using the ``string()`` function.
      
       .. attention::
      
         This option is disabled by default to avoid unbounded memory allocation.
         CEL evaluation cost is typically bounded by the expression size, but converting
         arbitrary values (e.g., large messages, lists, or maps) to strings may allocate
         memory proportional to input data size, which can be unbounded and lead to
         memory exhaustion.
       
      bool enable_string_conversion = 1;
      Specified by:
      getEnableStringConversion in interface CelExpressionConfigOrBuilder
      Returns:
      The enableStringConversion.
    • setEnableStringConversion

      public CelExpressionConfig.Builder setEnableStringConversion(boolean value)
       Enable string conversion functions for CEL expressions. When enabled, CEL expressions
       can convert values to strings using the ``string()`` function.
      
       .. attention::
      
         This option is disabled by default to avoid unbounded memory allocation.
         CEL evaluation cost is typically bounded by the expression size, but converting
         arbitrary values (e.g., large messages, lists, or maps) to strings may allocate
         memory proportional to input data size, which can be unbounded and lead to
         memory exhaustion.
       
      bool enable_string_conversion = 1;
      Parameters:
      value - The enableStringConversion to set.
      Returns:
      This builder for chaining.
    • clearEnableStringConversion

      public CelExpressionConfig.Builder clearEnableStringConversion()
       Enable string conversion functions for CEL expressions. When enabled, CEL expressions
       can convert values to strings using the ``string()`` function.
      
       .. attention::
      
         This option is disabled by default to avoid unbounded memory allocation.
         CEL evaluation cost is typically bounded by the expression size, but converting
         arbitrary values (e.g., large messages, lists, or maps) to strings may allocate
         memory proportional to input data size, which can be unbounded and lead to
         memory exhaustion.
       
      bool enable_string_conversion = 1;
      Returns:
      This builder for chaining.
    • getEnableStringConcat

      public boolean getEnableStringConcat()
       Enable string concatenation for CEL expressions. When enabled, CEL expressions
       can concatenate strings using the ``+`` operator.
      
       .. attention::
      
         This option is disabled by default to avoid unbounded memory allocation.
         While CEL normally bounds evaluation by expression size, enabling string
         concatenation allows building outputs whose size depends on input data,
         potentially causing large intermediate allocations and memory exhaustion.
       
      bool enable_string_concat = 2;
      Specified by:
      getEnableStringConcat in interface CelExpressionConfigOrBuilder
      Returns:
      The enableStringConcat.
    • setEnableStringConcat

      public CelExpressionConfig.Builder setEnableStringConcat(boolean value)
       Enable string concatenation for CEL expressions. When enabled, CEL expressions
       can concatenate strings using the ``+`` operator.
      
       .. attention::
      
         This option is disabled by default to avoid unbounded memory allocation.
         While CEL normally bounds evaluation by expression size, enabling string
         concatenation allows building outputs whose size depends on input data,
         potentially causing large intermediate allocations and memory exhaustion.
       
      bool enable_string_concat = 2;
      Parameters:
      value - The enableStringConcat to set.
      Returns:
      This builder for chaining.
    • clearEnableStringConcat

      public CelExpressionConfig.Builder clearEnableStringConcat()
       Enable string concatenation for CEL expressions. When enabled, CEL expressions
       can concatenate strings using the ``+`` operator.
      
       .. attention::
      
         This option is disabled by default to avoid unbounded memory allocation.
         While CEL normally bounds evaluation by expression size, enabling string
         concatenation allows building outputs whose size depends on input data,
         potentially causing large intermediate allocations and memory exhaustion.
       
      bool enable_string_concat = 2;
      Returns:
      This builder for chaining.
    • getEnableStringFunctions

      public boolean getEnableStringFunctions()
       Enable string manipulation functions for CEL expressions. When enabled, CEL
       expressions can use additional string functions:
      
       * ``replace(old, new)`` - Replaces all occurrences of ``old`` with ``new``.
       * ``split(separator)`` - Splits a string into a list of substrings.
       * ``lowerAscii()`` - Converts ASCII characters to lowercase.
       * ``upperAscii()`` - Converts ASCII characters to uppercase.
      
       .. note::
      
         Standard CEL string functions like ``contains()``, ``startsWith()``, and
         ``endsWith()`` are always available regardless of this setting.
      
       .. attention::
      
         This option is disabled by default to avoid unbounded memory allocation.
         Although CEL generally bounds evaluation by expression size, functions such as
         ``replace``, ``split``, ``lowerAscii()``, and ``upperAscii()`` can allocate memory
         proportional to input data size. Under adversarial inputs this can lead to
         unbounded allocations and memory exhaustion.
       
      bool enable_string_functions = 3;
      Specified by:
      getEnableStringFunctions in interface CelExpressionConfigOrBuilder
      Returns:
      The enableStringFunctions.
    • setEnableStringFunctions

      public CelExpressionConfig.Builder setEnableStringFunctions(boolean value)
       Enable string manipulation functions for CEL expressions. When enabled, CEL
       expressions can use additional string functions:
      
       * ``replace(old, new)`` - Replaces all occurrences of ``old`` with ``new``.
       * ``split(separator)`` - Splits a string into a list of substrings.
       * ``lowerAscii()`` - Converts ASCII characters to lowercase.
       * ``upperAscii()`` - Converts ASCII characters to uppercase.
      
       .. note::
      
         Standard CEL string functions like ``contains()``, ``startsWith()``, and
         ``endsWith()`` are always available regardless of this setting.
      
       .. attention::
      
         This option is disabled by default to avoid unbounded memory allocation.
         Although CEL generally bounds evaluation by expression size, functions such as
         ``replace``, ``split``, ``lowerAscii()``, and ``upperAscii()`` can allocate memory
         proportional to input data size. Under adversarial inputs this can lead to
         unbounded allocations and memory exhaustion.
       
      bool enable_string_functions = 3;
      Parameters:
      value - The enableStringFunctions to set.
      Returns:
      This builder for chaining.
    • clearEnableStringFunctions

      public CelExpressionConfig.Builder clearEnableStringFunctions()
       Enable string manipulation functions for CEL expressions. When enabled, CEL
       expressions can use additional string functions:
      
       * ``replace(old, new)`` - Replaces all occurrences of ``old`` with ``new``.
       * ``split(separator)`` - Splits a string into a list of substrings.
       * ``lowerAscii()`` - Converts ASCII characters to lowercase.
       * ``upperAscii()`` - Converts ASCII characters to uppercase.
      
       .. note::
      
         Standard CEL string functions like ``contains()``, ``startsWith()``, and
         ``endsWith()`` are always available regardless of this setting.
      
       .. attention::
      
         This option is disabled by default to avoid unbounded memory allocation.
         Although CEL generally bounds evaluation by expression size, functions such as
         ``replace``, ``split``, ``lowerAscii()``, and ``upperAscii()`` can allocate memory
         proportional to input data size. Under adversarial inputs this can lead to
         unbounded allocations and memory exhaustion.
       
      bool enable_string_functions = 3;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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