Class TypedResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<TypedResult.Builder>
dev.cel.expr.conformance.test.TypedResult.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TypedResultOrBuilder, Cloneable
Enclosing class:
TypedResult

public static final class TypedResult.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TypedResult.Builder> implements TypedResultOrBuilder
 Matches a result along with deduced expression type.
 
Protobuf type cel.expr.conformance.test.TypedResult
  • 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<TypedResult.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public TypedResult.Builder mergeFrom(TypedResult other)
    • isInitialized

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

      public TypedResult.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<TypedResult.Builder>
      Throws:
      IOException
    • hasResult

      public boolean hasResult()
       A normal value, which must match the evaluation result exactly
       via value equality semantics. This is ignored if the test is `check_only`.
       
      .cel.expr.Value result = 1;
      Specified by:
      hasResult in interface TypedResultOrBuilder
      Returns:
      Whether the result field is set.
    • getResult

      public Value getResult()
       A normal value, which must match the evaluation result exactly
       via value equality semantics. This is ignored if the test is `check_only`.
       
      .cel.expr.Value result = 1;
      Specified by:
      getResult in interface TypedResultOrBuilder
      Returns:
      The result.
    • setResult

      public TypedResult.Builder setResult(Value value)
       A normal value, which must match the evaluation result exactly
       via value equality semantics. This is ignored if the test is `check_only`.
       
      .cel.expr.Value result = 1;
    • setResult

      public TypedResult.Builder setResult(Value.Builder builderForValue)
       A normal value, which must match the evaluation result exactly
       via value equality semantics. This is ignored if the test is `check_only`.
       
      .cel.expr.Value result = 1;
    • mergeResult

      public TypedResult.Builder mergeResult(Value value)
       A normal value, which must match the evaluation result exactly
       via value equality semantics. This is ignored if the test is `check_only`.
       
      .cel.expr.Value result = 1;
    • clearResult

      public TypedResult.Builder clearResult()
       A normal value, which must match the evaluation result exactly
       via value equality semantics. This is ignored if the test is `check_only`.
       
      .cel.expr.Value result = 1;
    • getResultBuilder

      public Value.Builder getResultBuilder()
       A normal value, which must match the evaluation result exactly
       via value equality semantics. This is ignored if the test is `check_only`.
       
      .cel.expr.Value result = 1;
    • getResultOrBuilder

      public ValueOrBuilder getResultOrBuilder()
       A normal value, which must match the evaluation result exactly
       via value equality semantics. This is ignored if the test is `check_only`.
       
      .cel.expr.Value result = 1;
      Specified by:
      getResultOrBuilder in interface TypedResultOrBuilder
    • hasDeducedType

      public boolean hasDeducedType()
       The deduced type of the expression as reported by the checker.
       
      .cel.expr.Type deduced_type = 2;
      Specified by:
      hasDeducedType in interface TypedResultOrBuilder
      Returns:
      Whether the deducedType field is set.
    • getDeducedType

      public Type getDeducedType()
       The deduced type of the expression as reported by the checker.
       
      .cel.expr.Type deduced_type = 2;
      Specified by:
      getDeducedType in interface TypedResultOrBuilder
      Returns:
      The deducedType.
    • setDeducedType

      public TypedResult.Builder setDeducedType(Type value)
       The deduced type of the expression as reported by the checker.
       
      .cel.expr.Type deduced_type = 2;
    • setDeducedType

      public TypedResult.Builder setDeducedType(Type.Builder builderForValue)
       The deduced type of the expression as reported by the checker.
       
      .cel.expr.Type deduced_type = 2;
    • mergeDeducedType

      public TypedResult.Builder mergeDeducedType(Type value)
       The deduced type of the expression as reported by the checker.
       
      .cel.expr.Type deduced_type = 2;
    • clearDeducedType

      public TypedResult.Builder clearDeducedType()
       The deduced type of the expression as reported by the checker.
       
      .cel.expr.Type deduced_type = 2;
    • getDeducedTypeBuilder

      public Type.Builder getDeducedTypeBuilder()
       The deduced type of the expression as reported by the checker.
       
      .cel.expr.Type deduced_type = 2;
    • getDeducedTypeOrBuilder

      public TypeOrBuilder getDeducedTypeOrBuilder()
       The deduced type of the expression as reported by the checker.
       
      .cel.expr.Type deduced_type = 2;
      Specified by:
      getDeducedTypeOrBuilder in interface TypedResultOrBuilder
    • setUnknownFields

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

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