Class Expression.LambdaInvocation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Expression.LambdaInvocation.Builder>
io.substrait.proto.Expression.LambdaInvocation.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Expression.LambdaInvocationOrBuilder, Cloneable
Enclosing class:
Expression.LambdaInvocation

public static final class Expression.LambdaInvocation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Expression.LambdaInvocation.Builder> implements Expression.LambdaInvocationOrBuilder
 Invokes an inline lambda expression with provided arguments.
 Enables immediate invocation patterns like: ((x) -> x * 2)(5)

 The return type is derived from the type of the lambda's body expression.
 
Protobuf type substrait.Expression.LambdaInvocation
  • 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<Expression.LambdaInvocation.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<Expression.LambdaInvocation.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<Expression.LambdaInvocation.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

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

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

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

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

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

      public Expression.LambdaInvocation.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<Expression.LambdaInvocation.Builder>
      Throws:
      IOException
    • hasLambda

      public boolean hasLambda()
       The lambda expression to invoke.
       
      .substrait.Expression.Lambda lambda = 1;
      Specified by:
      hasLambda in interface Expression.LambdaInvocationOrBuilder
      Returns:
      Whether the lambda field is set.
    • getLambda

      public Expression.Lambda getLambda()
       The lambda expression to invoke.
       
      .substrait.Expression.Lambda lambda = 1;
      Specified by:
      getLambda in interface Expression.LambdaInvocationOrBuilder
      Returns:
      The lambda.
    • setLambda

       The lambda expression to invoke.
       
      .substrait.Expression.Lambda lambda = 1;
    • setLambda

       The lambda expression to invoke.
       
      .substrait.Expression.Lambda lambda = 1;
    • mergeLambda

       The lambda expression to invoke.
       
      .substrait.Expression.Lambda lambda = 1;
    • clearLambda

       The lambda expression to invoke.
       
      .substrait.Expression.Lambda lambda = 1;
    • getLambdaBuilder

      public Expression.Lambda.Builder getLambdaBuilder()
       The lambda expression to invoke.
       
      .substrait.Expression.Lambda lambda = 1;
    • getLambdaOrBuilder

      public Expression.LambdaOrBuilder getLambdaOrBuilder()
       The lambda expression to invoke.
       
      .substrait.Expression.Lambda lambda = 1;
      Specified by:
      getLambdaOrBuilder in interface Expression.LambdaInvocationOrBuilder
    • hasArguments

      public boolean hasArguments()
       Arguments to pass to the lambda, as a struct expression. The struct must have
       exactly one Expression field for each lambda parameter, and the expression at
       each position must have a type that matches the corresponding parameter type.
       
      .substrait.Expression.Nested.Struct arguments = 2;
      Specified by:
      hasArguments in interface Expression.LambdaInvocationOrBuilder
      Returns:
      Whether the arguments field is set.
    • getArguments

      public Expression.Nested.Struct getArguments()
       Arguments to pass to the lambda, as a struct expression. The struct must have
       exactly one Expression field for each lambda parameter, and the expression at
       each position must have a type that matches the corresponding parameter type.
       
      .substrait.Expression.Nested.Struct arguments = 2;
      Specified by:
      getArguments in interface Expression.LambdaInvocationOrBuilder
      Returns:
      The arguments.
    • setArguments

       Arguments to pass to the lambda, as a struct expression. The struct must have
       exactly one Expression field for each lambda parameter, and the expression at
       each position must have a type that matches the corresponding parameter type.
       
      .substrait.Expression.Nested.Struct arguments = 2;
    • setArguments

       Arguments to pass to the lambda, as a struct expression. The struct must have
       exactly one Expression field for each lambda parameter, and the expression at
       each position must have a type that matches the corresponding parameter type.
       
      .substrait.Expression.Nested.Struct arguments = 2;
    • mergeArguments

       Arguments to pass to the lambda, as a struct expression. The struct must have
       exactly one Expression field for each lambda parameter, and the expression at
       each position must have a type that matches the corresponding parameter type.
       
      .substrait.Expression.Nested.Struct arguments = 2;
    • clearArguments

      public Expression.LambdaInvocation.Builder clearArguments()
       Arguments to pass to the lambda, as a struct expression. The struct must have
       exactly one Expression field for each lambda parameter, and the expression at
       each position must have a type that matches the corresponding parameter type.
       
      .substrait.Expression.Nested.Struct arguments = 2;
    • getArgumentsBuilder

      public Expression.Nested.Struct.Builder getArgumentsBuilder()
       Arguments to pass to the lambda, as a struct expression. The struct must have
       exactly one Expression field for each lambda parameter, and the expression at
       each position must have a type that matches the corresponding parameter type.
       
      .substrait.Expression.Nested.Struct arguments = 2;
    • getArgumentsOrBuilder

      public Expression.Nested.StructOrBuilder getArgumentsOrBuilder()
       Arguments to pass to the lambda, as a struct expression. The struct must have
       exactly one Expression field for each lambda parameter, and the expression at
       each position must have a type that matches the corresponding parameter type.
       
      .substrait.Expression.Nested.Struct arguments = 2;
      Specified by:
      getArgumentsOrBuilder in interface Expression.LambdaInvocationOrBuilder
    • setUnknownFields

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

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