Class Type.Func.Builder

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

public static final class Type.Func.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Type.Func.Builder> implements Type.FuncOrBuilder
 A function type for higher-order functions.
 Represents a function that takes parameters of specified types and
 returns a value of a specified type.
 
Protobuf type substrait.Type.Func
  • 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<Type.Func.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public Type.Func.Builder mergeFrom(Type.Func other)
    • isInitialized

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

      public Type.Func.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<Type.Func.Builder>
      Throws:
      IOException
    • getParameterTypesList

      public List<Type> getParameterTypesList()
       Types of parameters this function type accepts.
       
      repeated .substrait.Type parameter_types = 1;
      Specified by:
      getParameterTypesList in interface Type.FuncOrBuilder
    • getParameterTypesCount

      public int getParameterTypesCount()
       Types of parameters this function type accepts.
       
      repeated .substrait.Type parameter_types = 1;
      Specified by:
      getParameterTypesCount in interface Type.FuncOrBuilder
    • getParameterTypes

      public Type getParameterTypes(int index)
       Types of parameters this function type accepts.
       
      repeated .substrait.Type parameter_types = 1;
      Specified by:
      getParameterTypes in interface Type.FuncOrBuilder
    • setParameterTypes

      public Type.Func.Builder setParameterTypes(int index, Type value)
       Types of parameters this function type accepts.
       
      repeated .substrait.Type parameter_types = 1;
    • setParameterTypes

      public Type.Func.Builder setParameterTypes(int index, Type.Builder builderForValue)
       Types of parameters this function type accepts.
       
      repeated .substrait.Type parameter_types = 1;
    • addParameterTypes

      public Type.Func.Builder addParameterTypes(Type value)
       Types of parameters this function type accepts.
       
      repeated .substrait.Type parameter_types = 1;
    • addParameterTypes

      public Type.Func.Builder addParameterTypes(int index, Type value)
       Types of parameters this function type accepts.
       
      repeated .substrait.Type parameter_types = 1;
    • addParameterTypes

      public Type.Func.Builder addParameterTypes(Type.Builder builderForValue)
       Types of parameters this function type accepts.
       
      repeated .substrait.Type parameter_types = 1;
    • addParameterTypes

      public Type.Func.Builder addParameterTypes(int index, Type.Builder builderForValue)
       Types of parameters this function type accepts.
       
      repeated .substrait.Type parameter_types = 1;
    • addAllParameterTypes

      public Type.Func.Builder addAllParameterTypes(Iterable<? extends Type> values)
       Types of parameters this function type accepts.
       
      repeated .substrait.Type parameter_types = 1;
    • clearParameterTypes

      public Type.Func.Builder clearParameterTypes()
       Types of parameters this function type accepts.
       
      repeated .substrait.Type parameter_types = 1;
    • removeParameterTypes

      public Type.Func.Builder removeParameterTypes(int index)
       Types of parameters this function type accepts.
       
      repeated .substrait.Type parameter_types = 1;
    • getParameterTypesBuilder

      public Type.Builder getParameterTypesBuilder(int index)
       Types of parameters this function type accepts.
       
      repeated .substrait.Type parameter_types = 1;
    • getParameterTypesOrBuilder

      public TypeOrBuilder getParameterTypesOrBuilder(int index)
       Types of parameters this function type accepts.
       
      repeated .substrait.Type parameter_types = 1;
      Specified by:
      getParameterTypesOrBuilder in interface Type.FuncOrBuilder
    • getParameterTypesOrBuilderList

      public List<? extends TypeOrBuilder> getParameterTypesOrBuilderList()
       Types of parameters this function type accepts.
       
      repeated .substrait.Type parameter_types = 1;
      Specified by:
      getParameterTypesOrBuilderList in interface Type.FuncOrBuilder
    • addParameterTypesBuilder

      public Type.Builder addParameterTypesBuilder()
       Types of parameters this function type accepts.
       
      repeated .substrait.Type parameter_types = 1;
    • addParameterTypesBuilder

      public Type.Builder addParameterTypesBuilder(int index)
       Types of parameters this function type accepts.
       
      repeated .substrait.Type parameter_types = 1;
    • getParameterTypesBuilderList

      public List<Type.Builder> getParameterTypesBuilderList()
       Types of parameters this function type accepts.
       
      repeated .substrait.Type parameter_types = 1;
    • hasReturnType

      public boolean hasReturnType()
       Return type of the function.
       
      .substrait.Type return_type = 2;
      Specified by:
      hasReturnType in interface Type.FuncOrBuilder
      Returns:
      Whether the returnType field is set.
    • getReturnType

      public Type getReturnType()
       Return type of the function.
       
      .substrait.Type return_type = 2;
      Specified by:
      getReturnType in interface Type.FuncOrBuilder
      Returns:
      The returnType.
    • setReturnType

      public Type.Func.Builder setReturnType(Type value)
       Return type of the function.
       
      .substrait.Type return_type = 2;
    • setReturnType

      public Type.Func.Builder setReturnType(Type.Builder builderForValue)
       Return type of the function.
       
      .substrait.Type return_type = 2;
    • mergeReturnType

      public Type.Func.Builder mergeReturnType(Type value)
       Return type of the function.
       
      .substrait.Type return_type = 2;
    • clearReturnType

      public Type.Func.Builder clearReturnType()
       Return type of the function.
       
      .substrait.Type return_type = 2;
    • getReturnTypeBuilder

      public Type.Builder getReturnTypeBuilder()
       Return type of the function.
       
      .substrait.Type return_type = 2;
    • getReturnTypeOrBuilder

      public TypeOrBuilder getReturnTypeOrBuilder()
       Return type of the function.
       
      .substrait.Type return_type = 2;
      Specified by:
      getReturnTypeOrBuilder in interface Type.FuncOrBuilder
    • getNullabilityValue

      public int getNullabilityValue()
       Nullability of the function value itself, not its return type.
       A nullable function type (e.g., func?<i32 -> i32>) means the function
       reference may be null. This is distinct from the return type's
       nullability (e.g., func<i32 -> i32?> where the function always exists
       but may return null).
       
      .substrait.Type.Nullability nullability = 3;
      Specified by:
      getNullabilityValue in interface Type.FuncOrBuilder
      Returns:
      The enum numeric value on the wire for nullability.
    • setNullabilityValue

      public Type.Func.Builder setNullabilityValue(int value)
       Nullability of the function value itself, not its return type.
       A nullable function type (e.g., func?<i32 -> i32>) means the function
       reference may be null. This is distinct from the return type's
       nullability (e.g., func<i32 -> i32?> where the function always exists
       but may return null).
       
      .substrait.Type.Nullability nullability = 3;
      Parameters:
      value - The enum numeric value on the wire for nullability to set.
      Returns:
      This builder for chaining.
    • getNullability

      public Type.Nullability getNullability()
       Nullability of the function value itself, not its return type.
       A nullable function type (e.g., func?<i32 -> i32>) means the function
       reference may be null. This is distinct from the return type's
       nullability (e.g., func<i32 -> i32?> where the function always exists
       but may return null).
       
      .substrait.Type.Nullability nullability = 3;
      Specified by:
      getNullability in interface Type.FuncOrBuilder
      Returns:
      The nullability.
    • setNullability

      public Type.Func.Builder setNullability(Type.Nullability value)
       Nullability of the function value itself, not its return type.
       A nullable function type (e.g., func?<i32 -> i32>) means the function
       reference may be null. This is distinct from the return type's
       nullability (e.g., func<i32 -> i32?> where the function always exists
       but may return null).
       
      .substrait.Type.Nullability nullability = 3;
      Parameters:
      value - The nullability to set.
      Returns:
      This builder for chaining.
    • clearNullability

      public Type.Func.Builder clearNullability()
       Nullability of the function value itself, not its return type.
       A nullable function type (e.g., func?<i32 -> i32>) means the function
       reference may be null. This is distinct from the return type's
       nullability (e.g., func<i32 -> i32?> where the function always exists
       but may return null).
       
      .substrait.Type.Nullability nullability = 3;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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