Package io.substrait.proto
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 Summary
Modifier and TypeMethodDescriptionaddAllPreference(Iterable<String> values) List of behavior options allowed by the producer.addPreference(String value) List of behavior options allowed by the producer.addPreferenceBytes(com.google.protobuf.ByteString value) List of behavior options allowed by the producer.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Name of the option to set.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) List of behavior options allowed by the producer.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Name of the option to set.com.google.protobuf.ByteStringName of the option to set.getPreference(int index) List of behavior options allowed by the producer.com.google.protobuf.ByteStringgetPreferenceBytes(int index) List of behavior options allowed by the producer.intList of behavior options allowed by the producer.com.google.protobuf.ProtocolStringListList of behavior options allowed by the producer.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(FunctionOption other) final FunctionOption.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Name of the option to set.setNameBytes(com.google.protobuf.ByteString value) Name of the option to set.setPreference(int index, String value) List of behavior options allowed by the producer.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final FunctionOption.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionOption.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionOption.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionOption.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionOption.Builder>
-
setField
public FunctionOption.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionOption.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionOption.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionOption.Builder>
-
setRepeatedField
public FunctionOption.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionOption.Builder>
-
addRepeatedField
public FunctionOption.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionOption.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FunctionOption.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FunctionOption.Builder>- Throws:
IOException
-
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:
getNamein interfaceFunctionOptionOrBuilder- 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:
getNameBytesin interfaceFunctionOptionOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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:
getPreferenceListin interfaceFunctionOptionOrBuilder- 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:
getPreferenceCountin interfaceFunctionOptionOrBuilder- Returns:
- The count of preference.
-
getPreference
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:
getPreferencein interfaceFunctionOptionOrBuilder- 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:
getPreferenceBytesin interfaceFunctionOptionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the preference at the given index.
-
setPreference
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
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
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
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionOption.Builder>
-
mergeUnknownFields
public final FunctionOption.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionOption.Builder>
-