Class FunctionOption.Builder

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

public static final class FunctionOption.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FunctionOption.Builder> implements FunctionOptionOrBuilder
 An optional function argument.  Typically used for specifying behavior in
 invalid or corner cases.
 
Protobuf type substrait.FunctionOption
  • 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<FunctionOption.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public FunctionOption.Builder mergeFrom(FunctionOption other)
    • isInitialized

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

      public FunctionOption.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<FunctionOption.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Name of the option to set. If the consumer does not recognize the
       option, it must reject the plan. The name is matched case-insensitively
       with option names defined for the function.
       
      string name = 1;
      Specified by:
      getName in interface FunctionOptionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the option to set. If the consumer does not recognize the
       option, it must reject the plan. The name is matched case-insensitively
       with option names defined for the function.
       
      string name = 1;
      Specified by:
      getNameBytes in interface FunctionOptionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public FunctionOption.Builder setName(String value)
       Name of the option to set. If the consumer does not recognize the
       option, it must reject the plan. The name is matched case-insensitively
       with option names defined for the function.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public FunctionOption.Builder clearName()
       Name of the option to set. If the consumer does not recognize the
       option, it must reject the plan. The name is matched case-insensitively
       with option names defined for the function.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public FunctionOption.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of the option to set. If the consumer does not recognize the
       option, it must reject the plan. The name is matched case-insensitively
       with option names defined for the function.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getPreferenceList

      public com.google.protobuf.ProtocolStringList getPreferenceList()
       List of behavior options allowed by the producer. At least one must be
       specified; to leave an option unspecified, simply don't add an entry to
       `options`. The consumer must use the first option from the list that it
       supports. If the consumer supports none of the specified options, it
       must reject the plan. The name is matched case-insensitively and must
       match one of the option values defined for the option.
       
      repeated string preference = 2;
      Specified by:
      getPreferenceList in interface FunctionOptionOrBuilder
      Returns:
      A list containing the preference.
    • getPreferenceCount

      public int getPreferenceCount()
       List of behavior options allowed by the producer. At least one must be
       specified; to leave an option unspecified, simply don't add an entry to
       `options`. The consumer must use the first option from the list that it
       supports. If the consumer supports none of the specified options, it
       must reject the plan. The name is matched case-insensitively and must
       match one of the option values defined for the option.
       
      repeated string preference = 2;
      Specified by:
      getPreferenceCount in interface FunctionOptionOrBuilder
      Returns:
      The count of preference.
    • getPreference

      public String getPreference(int index)
       List of behavior options allowed by the producer. At least one must be
       specified; to leave an option unspecified, simply don't add an entry to
       `options`. The consumer must use the first option from the list that it
       supports. If the consumer supports none of the specified options, it
       must reject the plan. The name is matched case-insensitively and must
       match one of the option values defined for the option.
       
      repeated string preference = 2;
      Specified by:
      getPreference in interface FunctionOptionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The preference at the given index.
    • getPreferenceBytes

      public com.google.protobuf.ByteString getPreferenceBytes(int index)
       List of behavior options allowed by the producer. At least one must be
       specified; to leave an option unspecified, simply don't add an entry to
       `options`. The consumer must use the first option from the list that it
       supports. If the consumer supports none of the specified options, it
       must reject the plan. The name is matched case-insensitively and must
       match one of the option values defined for the option.
       
      repeated string preference = 2;
      Specified by:
      getPreferenceBytes in interface FunctionOptionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the preference at the given index.
    • setPreference

      public FunctionOption.Builder setPreference(int index, String value)
       List of behavior options allowed by the producer. At least one must be
       specified; to leave an option unspecified, simply don't add an entry to
       `options`. The consumer must use the first option from the list that it
       supports. If the consumer supports none of the specified options, it
       must reject the plan. The name is matched case-insensitively and must
       match one of the option values defined for the option.
       
      repeated string preference = 2;
      Parameters:
      index - The index to set the value at.
      value - The preference to set.
      Returns:
      This builder for chaining.
    • addPreference

      public FunctionOption.Builder addPreference(String value)
       List of behavior options allowed by the producer. At least one must be
       specified; to leave an option unspecified, simply don't add an entry to
       `options`. The consumer must use the first option from the list that it
       supports. If the consumer supports none of the specified options, it
       must reject the plan. The name is matched case-insensitively and must
       match one of the option values defined for the option.
       
      repeated string preference = 2;
      Parameters:
      value - The preference to add.
      Returns:
      This builder for chaining.
    • addAllPreference

      public FunctionOption.Builder addAllPreference(Iterable<String> values)
       List of behavior options allowed by the producer. At least one must be
       specified; to leave an option unspecified, simply don't add an entry to
       `options`. The consumer must use the first option from the list that it
       supports. If the consumer supports none of the specified options, it
       must reject the plan. The name is matched case-insensitively and must
       match one of the option values defined for the option.
       
      repeated string preference = 2;
      Parameters:
      values - The preference to add.
      Returns:
      This builder for chaining.
    • clearPreference

      public FunctionOption.Builder clearPreference()
       List of behavior options allowed by the producer. At least one must be
       specified; to leave an option unspecified, simply don't add an entry to
       `options`. The consumer must use the first option from the list that it
       supports. If the consumer supports none of the specified options, it
       must reject the plan. The name is matched case-insensitively and must
       match one of the option values defined for the option.
       
      repeated string preference = 2;
      Returns:
      This builder for chaining.
    • addPreferenceBytes

      public FunctionOption.Builder addPreferenceBytes(com.google.protobuf.ByteString value)
       List of behavior options allowed by the producer. At least one must be
       specified; to leave an option unspecified, simply don't add an entry to
       `options`. The consumer must use the first option from the list that it
       supports. If the consumer supports none of the specified options, it
       must reject the plan. The name is matched case-insensitively and must
       match one of the option values defined for the option.
       
      repeated string preference = 2;
      Parameters:
      value - The bytes of the preference to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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