Package dev.cel.expr

Class Expr.Select.Builder

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

    public static final class Expr.Select.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<Expr.Select.Builder>
    implements Expr.SelectOrBuilder
     A field selection expression. e.g. `request.auth`.
     
    Protobuf type cel.expr.Expr.Select
    • Field Detail

      • bitField0_

        private int bitField0_
      • operand_

        private Expr operand_
      • field_

        private java.lang.Object field_
      • testOnly_

        private boolean testOnly_
    • 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<Expr.Select.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

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

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

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

        public Expr.Select buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • buildPartial0

        private void buildPartial0​(Expr.Select result)
      • mergeFrom

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

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

        public Expr.Select.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<Expr.Select.Builder>
        Throws:
        java.io.IOException
      • hasOperand

        public boolean hasOperand()
         Required. The target of the selection expression.
        
         For example, in the select expression `request.auth`, the `request`
         portion of the expression is the `operand`.
         
        .cel.expr.Expr operand = 1;
        Specified by:
        hasOperand in interface Expr.SelectOrBuilder
        Returns:
        Whether the operand field is set.
      • getOperand

        public Expr getOperand()
         Required. The target of the selection expression.
        
         For example, in the select expression `request.auth`, the `request`
         portion of the expression is the `operand`.
         
        .cel.expr.Expr operand = 1;
        Specified by:
        getOperand in interface Expr.SelectOrBuilder
        Returns:
        The operand.
      • setOperand

        public Expr.Select.Builder setOperand​(Expr value)
         Required. The target of the selection expression.
        
         For example, in the select expression `request.auth`, the `request`
         portion of the expression is the `operand`.
         
        .cel.expr.Expr operand = 1;
      • setOperand

        public Expr.Select.Builder setOperand​(Expr.Builder builderForValue)
         Required. The target of the selection expression.
        
         For example, in the select expression `request.auth`, the `request`
         portion of the expression is the `operand`.
         
        .cel.expr.Expr operand = 1;
      • mergeOperand

        public Expr.Select.Builder mergeOperand​(Expr value)
         Required. The target of the selection expression.
        
         For example, in the select expression `request.auth`, the `request`
         portion of the expression is the `operand`.
         
        .cel.expr.Expr operand = 1;
      • clearOperand

        public Expr.Select.Builder clearOperand()
         Required. The target of the selection expression.
        
         For example, in the select expression `request.auth`, the `request`
         portion of the expression is the `operand`.
         
        .cel.expr.Expr operand = 1;
      • getOperandBuilder

        public Expr.Builder getOperandBuilder()
         Required. The target of the selection expression.
        
         For example, in the select expression `request.auth`, the `request`
         portion of the expression is the `operand`.
         
        .cel.expr.Expr operand = 1;
      • getOperandOrBuilder

        public ExprOrBuilder getOperandOrBuilder()
         Required. The target of the selection expression.
        
         For example, in the select expression `request.auth`, the `request`
         portion of the expression is the `operand`.
         
        .cel.expr.Expr operand = 1;
        Specified by:
        getOperandOrBuilder in interface Expr.SelectOrBuilder
      • getOperandFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<Expr,​Expr.Builder,​ExprOrBuilder> getOperandFieldBuilder()
         Required. The target of the selection expression.
        
         For example, in the select expression `request.auth`, the `request`
         portion of the expression is the `operand`.
         
        .cel.expr.Expr operand = 1;
      • getField

        public java.lang.String getField()
         Required. The name of the field to select.
        
         For example, in the select expression `request.auth`, the `auth` portion
         of the expression would be the `field`.
         
        string field = 2;
        Specified by:
        getField in interface Expr.SelectOrBuilder
        Returns:
        The field.
      • getFieldBytes

        public com.google.protobuf.ByteString getFieldBytes()
         Required. The name of the field to select.
        
         For example, in the select expression `request.auth`, the `auth` portion
         of the expression would be the `field`.
         
        string field = 2;
        Specified by:
        getFieldBytes in interface Expr.SelectOrBuilder
        Returns:
        The bytes for field.
      • setField

        public Expr.Select.Builder setField​(java.lang.String value)
         Required. The name of the field to select.
        
         For example, in the select expression `request.auth`, the `auth` portion
         of the expression would be the `field`.
         
        string field = 2;
        Parameters:
        value - The field to set.
        Returns:
        This builder for chaining.
      • clearField

        public Expr.Select.Builder clearField()
         Required. The name of the field to select.
        
         For example, in the select expression `request.auth`, the `auth` portion
         of the expression would be the `field`.
         
        string field = 2;
        Returns:
        This builder for chaining.
      • setFieldBytes

        public Expr.Select.Builder setFieldBytes​(com.google.protobuf.ByteString value)
         Required. The name of the field to select.
        
         For example, in the select expression `request.auth`, the `auth` portion
         of the expression would be the `field`.
         
        string field = 2;
        Parameters:
        value - The bytes for field to set.
        Returns:
        This builder for chaining.
      • getTestOnly

        public boolean getTestOnly()
         Whether the select is to be interpreted as a field presence test.
        
         This results from the macro `has(request.auth)`.
         
        bool test_only = 3;
        Specified by:
        getTestOnly in interface Expr.SelectOrBuilder
        Returns:
        The testOnly.
      • setTestOnly

        public Expr.Select.Builder setTestOnly​(boolean value)
         Whether the select is to be interpreted as a field presence test.
        
         This results from the macro `has(request.auth)`.
         
        bool test_only = 3;
        Parameters:
        value - The testOnly to set.
        Returns:
        This builder for chaining.
      • clearTestOnly

        public Expr.Select.Builder clearTestOnly()
         Whether the select is to be interpreted as a field presence test.
        
         This results from the macro `has(request.auth)`.
         
        bool test_only = 3;
        Returns:
        This builder for chaining.