Package dev.cel.expr

Class Explain.Builder

    • Method Detail

      • getDefaultInstanceForType

        public Explain getDefaultInstanceForType()
        Description copied from interface: MessageLiteOrBuilder
        Get an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from the getDefaultInstance() method of generated message classes in that this method is an abstract method of the MessageLite interface whereas getDefaultInstance() is a static method of a specific class. They return the same thing.
        Specified by:
        getDefaultInstanceForType in interface MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface MessageOrBuilder
      • mergeFrom

        public Explain.Builder mergeFrom​(Message other)
        Description copied from interface: Message.Builder
        Merge other into the message being built. other must have the exact same type as this (i.e. getDescriptorForType() == other.getDescriptorForType()).

        Merging occurs as follows. For each field:
        * For singular primitive fields, if the field is set in other, then other's value overwrites the value in this message.
        * For singular message fields, if the field is set in other, it is merged into the corresponding sub-message of this message using the same merging rules.
        * For repeated fields, the elements in other are concatenated with the elements in this message.
        * For oneof groups, if the other message has one of the fields set, the group of this message is cleared and replaced by the field of the other message, so that the oneof constraint is preserved.

        This is equivalent to the Message::MergeFrom method in C++.

        Specified by:
        mergeFrom in interface Message.Builder
        Overrides:
        mergeFrom in class AbstractMessage.Builder<Explain.Builder>
      • getValuesList

        public java.util.List<Value> getValuesList()
         All of the observed values.
         The field value_index is an index in the values list.
         Separating values from steps is needed to remove redundant values.
         
        repeated .cel.expr.Value values = 1;
        Specified by:
        getValuesList in interface ExplainOrBuilder
      • getValuesCount

        public int getValuesCount()
         All of the observed values.
         The field value_index is an index in the values list.
         Separating values from steps is needed to remove redundant values.
         
        repeated .cel.expr.Value values = 1;
        Specified by:
        getValuesCount in interface ExplainOrBuilder
      • getValues

        public Value getValues​(int index)
         All of the observed values.
         The field value_index is an index in the values list.
         Separating values from steps is needed to remove redundant values.
         
        repeated .cel.expr.Value values = 1;
        Specified by:
        getValues in interface ExplainOrBuilder
      • setValues

        public Explain.Builder setValues​(int index,
                                         Value value)
         All of the observed values.
         The field value_index is an index in the values list.
         Separating values from steps is needed to remove redundant values.
         
        repeated .cel.expr.Value values = 1;
      • setValues

        public Explain.Builder setValues​(int index,
                                         Value.Builder builderForValue)
         All of the observed values.
         The field value_index is an index in the values list.
         Separating values from steps is needed to remove redundant values.
         
        repeated .cel.expr.Value values = 1;
      • addValues

        public Explain.Builder addValues​(Value value)
         All of the observed values.
         The field value_index is an index in the values list.
         Separating values from steps is needed to remove redundant values.
         
        repeated .cel.expr.Value values = 1;
      • addValues

        public Explain.Builder addValues​(int index,
                                         Value value)
         All of the observed values.
         The field value_index is an index in the values list.
         Separating values from steps is needed to remove redundant values.
         
        repeated .cel.expr.Value values = 1;
      • addValues

        public Explain.Builder addValues​(Value.Builder builderForValue)
         All of the observed values.
         The field value_index is an index in the values list.
         Separating values from steps is needed to remove redundant values.
         
        repeated .cel.expr.Value values = 1;
      • addValues

        public Explain.Builder addValues​(int index,
                                         Value.Builder builderForValue)
         All of the observed values.
         The field value_index is an index in the values list.
         Separating values from steps is needed to remove redundant values.
         
        repeated .cel.expr.Value values = 1;
      • addAllValues

        public Explain.Builder addAllValues​(java.lang.Iterable<? extends Value> values)
         All of the observed values.
         The field value_index is an index in the values list.
         Separating values from steps is needed to remove redundant values.
         
        repeated .cel.expr.Value values = 1;
      • clearValues

        public Explain.Builder clearValues()
         All of the observed values.
         The field value_index is an index in the values list.
         Separating values from steps is needed to remove redundant values.
         
        repeated .cel.expr.Value values = 1;
      • removeValues

        public Explain.Builder removeValues​(int index)
         All of the observed values.
         The field value_index is an index in the values list.
         Separating values from steps is needed to remove redundant values.
         
        repeated .cel.expr.Value values = 1;
      • getValuesBuilder

        public Value.Builder getValuesBuilder​(int index)
         All of the observed values.
         The field value_index is an index in the values list.
         Separating values from steps is needed to remove redundant values.
         
        repeated .cel.expr.Value values = 1;
      • getValuesOrBuilder

        public ValueOrBuilder getValuesOrBuilder​(int index)
         All of the observed values.
         The field value_index is an index in the values list.
         Separating values from steps is needed to remove redundant values.
         
        repeated .cel.expr.Value values = 1;
        Specified by:
        getValuesOrBuilder in interface ExplainOrBuilder
      • getValuesOrBuilderList

        public java.util.List<? extends ValueOrBuilder> getValuesOrBuilderList()
         All of the observed values.
         The field value_index is an index in the values list.
         Separating values from steps is needed to remove redundant values.
         
        repeated .cel.expr.Value values = 1;
        Specified by:
        getValuesOrBuilderList in interface ExplainOrBuilder
      • addValuesBuilder

        public Value.Builder addValuesBuilder()
         All of the observed values.
         The field value_index is an index in the values list.
         Separating values from steps is needed to remove redundant values.
         
        repeated .cel.expr.Value values = 1;
      • addValuesBuilder

        public Value.Builder addValuesBuilder​(int index)
         All of the observed values.
         The field value_index is an index in the values list.
         Separating values from steps is needed to remove redundant values.
         
        repeated .cel.expr.Value values = 1;
      • getValuesBuilderList

        public java.util.List<Value.Builder> getValuesBuilderList()
         All of the observed values.
         The field value_index is an index in the values list.
         Separating values from steps is needed to remove redundant values.
         
        repeated .cel.expr.Value values = 1;
      • getExprStepsList

        public java.util.List<Explain.ExprStep> getExprStepsList()
         List of steps.
         Repeated evaluations of the same expression generate new ExprStep
         instances. The order of such ExprStep instances matches the order of
         elements returned by Comprehension.iter_range.
         
        repeated .cel.expr.Explain.ExprStep expr_steps = 2;
        Specified by:
        getExprStepsList in interface ExplainOrBuilder
      • getExprStepsCount

        public int getExprStepsCount()
         List of steps.
         Repeated evaluations of the same expression generate new ExprStep
         instances. The order of such ExprStep instances matches the order of
         elements returned by Comprehension.iter_range.
         
        repeated .cel.expr.Explain.ExprStep expr_steps = 2;
        Specified by:
        getExprStepsCount in interface ExplainOrBuilder
      • getExprSteps

        public Explain.ExprStep getExprSteps​(int index)
         List of steps.
         Repeated evaluations of the same expression generate new ExprStep
         instances. The order of such ExprStep instances matches the order of
         elements returned by Comprehension.iter_range.
         
        repeated .cel.expr.Explain.ExprStep expr_steps = 2;
        Specified by:
        getExprSteps in interface ExplainOrBuilder
      • setExprSteps

        public Explain.Builder setExprSteps​(int index,
                                            Explain.ExprStep value)
         List of steps.
         Repeated evaluations of the same expression generate new ExprStep
         instances. The order of such ExprStep instances matches the order of
         elements returned by Comprehension.iter_range.
         
        repeated .cel.expr.Explain.ExprStep expr_steps = 2;
      • setExprSteps

        public Explain.Builder setExprSteps​(int index,
                                            Explain.ExprStep.Builder builderForValue)
         List of steps.
         Repeated evaluations of the same expression generate new ExprStep
         instances. The order of such ExprStep instances matches the order of
         elements returned by Comprehension.iter_range.
         
        repeated .cel.expr.Explain.ExprStep expr_steps = 2;
      • addExprSteps

        public Explain.Builder addExprSteps​(Explain.ExprStep value)
         List of steps.
         Repeated evaluations of the same expression generate new ExprStep
         instances. The order of such ExprStep instances matches the order of
         elements returned by Comprehension.iter_range.
         
        repeated .cel.expr.Explain.ExprStep expr_steps = 2;
      • addExprSteps

        public Explain.Builder addExprSteps​(int index,
                                            Explain.ExprStep value)
         List of steps.
         Repeated evaluations of the same expression generate new ExprStep
         instances. The order of such ExprStep instances matches the order of
         elements returned by Comprehension.iter_range.
         
        repeated .cel.expr.Explain.ExprStep expr_steps = 2;
      • addExprSteps

        public Explain.Builder addExprSteps​(Explain.ExprStep.Builder builderForValue)
         List of steps.
         Repeated evaluations of the same expression generate new ExprStep
         instances. The order of such ExprStep instances matches the order of
         elements returned by Comprehension.iter_range.
         
        repeated .cel.expr.Explain.ExprStep expr_steps = 2;
      • addExprSteps

        public Explain.Builder addExprSteps​(int index,
                                            Explain.ExprStep.Builder builderForValue)
         List of steps.
         Repeated evaluations of the same expression generate new ExprStep
         instances. The order of such ExprStep instances matches the order of
         elements returned by Comprehension.iter_range.
         
        repeated .cel.expr.Explain.ExprStep expr_steps = 2;
      • addAllExprSteps

        public Explain.Builder addAllExprSteps​(java.lang.Iterable<? extends Explain.ExprStep> values)
         List of steps.
         Repeated evaluations of the same expression generate new ExprStep
         instances. The order of such ExprStep instances matches the order of
         elements returned by Comprehension.iter_range.
         
        repeated .cel.expr.Explain.ExprStep expr_steps = 2;
      • clearExprSteps

        public Explain.Builder clearExprSteps()
         List of steps.
         Repeated evaluations of the same expression generate new ExprStep
         instances. The order of such ExprStep instances matches the order of
         elements returned by Comprehension.iter_range.
         
        repeated .cel.expr.Explain.ExprStep expr_steps = 2;
      • removeExprSteps

        public Explain.Builder removeExprSteps​(int index)
         List of steps.
         Repeated evaluations of the same expression generate new ExprStep
         instances. The order of such ExprStep instances matches the order of
         elements returned by Comprehension.iter_range.
         
        repeated .cel.expr.Explain.ExprStep expr_steps = 2;
      • getExprStepsBuilder

        public Explain.ExprStep.Builder getExprStepsBuilder​(int index)
         List of steps.
         Repeated evaluations of the same expression generate new ExprStep
         instances. The order of such ExprStep instances matches the order of
         elements returned by Comprehension.iter_range.
         
        repeated .cel.expr.Explain.ExprStep expr_steps = 2;
      • getExprStepsOrBuilder

        public Explain.ExprStepOrBuilder getExprStepsOrBuilder​(int index)
         List of steps.
         Repeated evaluations of the same expression generate new ExprStep
         instances. The order of such ExprStep instances matches the order of
         elements returned by Comprehension.iter_range.
         
        repeated .cel.expr.Explain.ExprStep expr_steps = 2;
        Specified by:
        getExprStepsOrBuilder in interface ExplainOrBuilder
      • getExprStepsOrBuilderList

        public java.util.List<? extends Explain.ExprStepOrBuilder> getExprStepsOrBuilderList()
         List of steps.
         Repeated evaluations of the same expression generate new ExprStep
         instances. The order of such ExprStep instances matches the order of
         elements returned by Comprehension.iter_range.
         
        repeated .cel.expr.Explain.ExprStep expr_steps = 2;
        Specified by:
        getExprStepsOrBuilderList in interface ExplainOrBuilder
      • addExprStepsBuilder

        public Explain.ExprStep.Builder addExprStepsBuilder()
         List of steps.
         Repeated evaluations of the same expression generate new ExprStep
         instances. The order of such ExprStep instances matches the order of
         elements returned by Comprehension.iter_range.
         
        repeated .cel.expr.Explain.ExprStep expr_steps = 2;
      • addExprStepsBuilder

        public Explain.ExprStep.Builder addExprStepsBuilder​(int index)
         List of steps.
         Repeated evaluations of the same expression generate new ExprStep
         instances. The order of such ExprStep instances matches the order of
         elements returned by Comprehension.iter_range.
         
        repeated .cel.expr.Explain.ExprStep expr_steps = 2;
      • getExprStepsBuilderList

        public java.util.List<Explain.ExprStep.Builder> getExprStepsBuilderList()
         List of steps.
         Repeated evaluations of the same expression generate new ExprStep
         instances. The order of such ExprStep instances matches the order of
         elements returned by Comprehension.iter_range.
         
        repeated .cel.expr.Explain.ExprStep expr_steps = 2;