Class CelExtractString.Builder

  • All Implemented Interfaces:
    CelExtractStringOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    CelExtractString

    public static final class CelExtractString.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<CelExtractString.Builder>
    implements CelExtractStringOrBuilder
     Extracts a string by evaluating a `Common Expression Language
     <https://github.com/google/cel-spec>`_ (CEL) expression against the standardized set of
     :ref:`HTTP attributes <arch_overview_attributes>`.
    
     .. attention::
    
     Besides CEL evaluation raising an error explicitly, CEL program returning a type other than
     the ``string``, or not returning anything, are considered an error as well.
    
     [#comment:TODO(sergiitk): When implemented, add the extension tag.]
     
    Protobuf type xds.type.v3.CelExtractString
    • Field Detail

      • bitField0_

        private int bitField0_
      • defaultValue_

        private com.google.protobuf.StringValue defaultValue_
      • defaultValueBuilder_

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.StringValue,​com.google.protobuf.StringValue.Builder,​com.google.protobuf.StringValueOrBuilder> defaultValueBuilder_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CelExtractString.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

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

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

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

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

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

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

        public CelExtractString.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws java.io.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<CelExtractString.Builder>
        Throws:
        java.io.IOException
      • hasExprExtract

        public boolean hasExprExtract()
         The CEL expression used to extract a string from the CEL environment.
         the "subject string") that should be replaced.
         
        .xds.type.v3.CelExpression expr_extract = 1 [(.validate.rules) = { ... }
        Specified by:
        hasExprExtract in interface CelExtractStringOrBuilder
        Returns:
        Whether the exprExtract field is set.
      • getExprExtract

        public CelExpression getExprExtract()
         The CEL expression used to extract a string from the CEL environment.
         the "subject string") that should be replaced.
         
        .xds.type.v3.CelExpression expr_extract = 1 [(.validate.rules) = { ... }
        Specified by:
        getExprExtract in interface CelExtractStringOrBuilder
        Returns:
        The exprExtract.
      • setExprExtract

        public CelExtractString.Builder setExprExtract​(CelExpression value)
         The CEL expression used to extract a string from the CEL environment.
         the "subject string") that should be replaced.
         
        .xds.type.v3.CelExpression expr_extract = 1 [(.validate.rules) = { ... }
      • setExprExtract

        public CelExtractString.Builder setExprExtract​(CelExpression.Builder builderForValue)
         The CEL expression used to extract a string from the CEL environment.
         the "subject string") that should be replaced.
         
        .xds.type.v3.CelExpression expr_extract = 1 [(.validate.rules) = { ... }
      • mergeExprExtract

        public CelExtractString.Builder mergeExprExtract​(CelExpression value)
         The CEL expression used to extract a string from the CEL environment.
         the "subject string") that should be replaced.
         
        .xds.type.v3.CelExpression expr_extract = 1 [(.validate.rules) = { ... }
      • clearExprExtract

        public CelExtractString.Builder clearExprExtract()
         The CEL expression used to extract a string from the CEL environment.
         the "subject string") that should be replaced.
         
        .xds.type.v3.CelExpression expr_extract = 1 [(.validate.rules) = { ... }
      • getExprExtractBuilder

        public CelExpression.Builder getExprExtractBuilder()
         The CEL expression used to extract a string from the CEL environment.
         the "subject string") that should be replaced.
         
        .xds.type.v3.CelExpression expr_extract = 1 [(.validate.rules) = { ... }
      • getExprExtractOrBuilder

        public CelExpressionOrBuilder getExprExtractOrBuilder()
         The CEL expression used to extract a string from the CEL environment.
         the "subject string") that should be replaced.
         
        .xds.type.v3.CelExpression expr_extract = 1 [(.validate.rules) = { ... }
        Specified by:
        getExprExtractOrBuilder in interface CelExtractStringOrBuilder
      • getExprExtractFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<CelExpression,​CelExpression.Builder,​CelExpressionOrBuilder> getExprExtractFieldBuilder()
         The CEL expression used to extract a string from the CEL environment.
         the "subject string") that should be replaced.
         
        .xds.type.v3.CelExpression expr_extract = 1 [(.validate.rules) = { ... }
      • hasDefaultValue

        public boolean hasDefaultValue()
         If CEL expression evaluates to an error, this value is be returned to the caller.
         If not set, the error is propagated to the caller.
         
        .google.protobuf.StringValue default_value = 2;
        Specified by:
        hasDefaultValue in interface CelExtractStringOrBuilder
        Returns:
        Whether the defaultValue field is set.
      • getDefaultValue

        public com.google.protobuf.StringValue getDefaultValue()
         If CEL expression evaluates to an error, this value is be returned to the caller.
         If not set, the error is propagated to the caller.
         
        .google.protobuf.StringValue default_value = 2;
        Specified by:
        getDefaultValue in interface CelExtractStringOrBuilder
        Returns:
        The defaultValue.
      • setDefaultValue

        public CelExtractString.Builder setDefaultValue​(com.google.protobuf.StringValue value)
         If CEL expression evaluates to an error, this value is be returned to the caller.
         If not set, the error is propagated to the caller.
         
        .google.protobuf.StringValue default_value = 2;
      • setDefaultValue

        public CelExtractString.Builder setDefaultValue​(com.google.protobuf.StringValue.Builder builderForValue)
         If CEL expression evaluates to an error, this value is be returned to the caller.
         If not set, the error is propagated to the caller.
         
        .google.protobuf.StringValue default_value = 2;
      • mergeDefaultValue

        public CelExtractString.Builder mergeDefaultValue​(com.google.protobuf.StringValue value)
         If CEL expression evaluates to an error, this value is be returned to the caller.
         If not set, the error is propagated to the caller.
         
        .google.protobuf.StringValue default_value = 2;
      • clearDefaultValue

        public CelExtractString.Builder clearDefaultValue()
         If CEL expression evaluates to an error, this value is be returned to the caller.
         If not set, the error is propagated to the caller.
         
        .google.protobuf.StringValue default_value = 2;
      • getDefaultValueBuilder

        public com.google.protobuf.StringValue.Builder getDefaultValueBuilder()
         If CEL expression evaluates to an error, this value is be returned to the caller.
         If not set, the error is propagated to the caller.
         
        .google.protobuf.StringValue default_value = 2;
      • getDefaultValueOrBuilder

        public com.google.protobuf.StringValueOrBuilder getDefaultValueOrBuilder()
         If CEL expression evaluates to an error, this value is be returned to the caller.
         If not set, the error is propagated to the caller.
         
        .google.protobuf.StringValue default_value = 2;
        Specified by:
        getDefaultValueOrBuilder in interface CelExtractStringOrBuilder
      • getDefaultValueFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.StringValue,​com.google.protobuf.StringValue.Builder,​com.google.protobuf.StringValueOrBuilder> getDefaultValueFieldBuilder()
         If CEL expression evaluates to an error, this value is be returned to the caller.
         If not set, the error is propagated to the caller.
         
        .google.protobuf.StringValue default_value = 2;