Class Version.Builder

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

public static final class Version.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder> implements VersionOrBuilder
Protobuf type substrait.Version
  • Method Summary

    Modifier and Type
    Method
    Description
    addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
     
     
     
    clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
     
    If a particular version of Substrait is used that does not correspond to a version number exactly (for example when using an unofficial fork or using a version that is not yet released or is between versions), set this to the full git hash of the utilized commit of https://github.com/substrait-io/substrait (or fork thereof), represented using a lowercase hex ASCII string 40 characters in length.
    Substrait version number.
    uint32 minor_number = 2;
    clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
     
    uint32 patch_number = 3;
    Identifying information for the producer that created this plan.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    If a particular version of Substrait is used that does not correspond to a version number exactly (for example when using an unofficial fork or using a version that is not yet released or is between versions), set this to the full git hash of the utilized commit of https://github.com/substrait-io/substrait (or fork thereof), represented using a lowercase hex ASCII string 40 characters in length.
    com.google.protobuf.ByteString
    If a particular version of Substrait is used that does not correspond to a version number exactly (for example when using an unofficial fork or using a version that is not yet released or is between versions), set this to the full git hash of the utilized commit of https://github.com/substrait-io/substrait (or fork thereof), represented using a lowercase hex ASCII string 40 characters in length.
    int
    Substrait version number.
    int
    uint32 minor_number = 2;
    int
    uint32 patch_number = 3;
    Identifying information for the producer that created this plan.
    com.google.protobuf.ByteString
    Identifying information for the producer that created this plan.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
    If a particular version of Substrait is used that does not correspond to a version number exactly (for example when using an unofficial fork or using a version that is not yet released or is between versions), set this to the full git hash of the utilized commit of https://github.com/substrait-io/substrait (or fork thereof), represented using a lowercase hex ASCII string 40 characters in length.
    setGitHashBytes(com.google.protobuf.ByteString value)
    If a particular version of Substrait is used that does not correspond to a version number exactly (for example when using an unofficial fork or using a version that is not yet released or is between versions), set this to the full git hash of the utilized commit of https://github.com/substrait-io/substrait (or fork thereof), represented using a lowercase hex ASCII string 40 characters in length.
    setMajorNumber(int value)
    Substrait version number.
    setMinorNumber(int value)
    uint32 minor_number = 2;
    setPatchNumber(int value)
    uint32 patch_number = 3;
    Identifying information for the producer that created this plan.
    setProducerBytes(com.google.protobuf.ByteString value)
    Identifying information for the producer that created this plan.
    setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
     
    setUnknownFields(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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public Version.Builder mergeFrom(Version other)
    • isInitialized

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

      public Version.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<Version.Builder>
      Throws:
      IOException
    • getMajorNumber

      public int getMajorNumber()
       Substrait version number.
       
      uint32 major_number = 1;
      Specified by:
      getMajorNumber in interface VersionOrBuilder
      Returns:
      The majorNumber.
    • setMajorNumber

      public Version.Builder setMajorNumber(int value)
       Substrait version number.
       
      uint32 major_number = 1;
      Parameters:
      value - The majorNumber to set.
      Returns:
      This builder for chaining.
    • clearMajorNumber

      public Version.Builder clearMajorNumber()
       Substrait version number.
       
      uint32 major_number = 1;
      Returns:
      This builder for chaining.
    • getMinorNumber

      public int getMinorNumber()
      uint32 minor_number = 2;
      Specified by:
      getMinorNumber in interface VersionOrBuilder
      Returns:
      The minorNumber.
    • setMinorNumber

      public Version.Builder setMinorNumber(int value)
      uint32 minor_number = 2;
      Parameters:
      value - The minorNumber to set.
      Returns:
      This builder for chaining.
    • clearMinorNumber

      public Version.Builder clearMinorNumber()
      uint32 minor_number = 2;
      Returns:
      This builder for chaining.
    • getPatchNumber

      public int getPatchNumber()
      uint32 patch_number = 3;
      Specified by:
      getPatchNumber in interface VersionOrBuilder
      Returns:
      The patchNumber.
    • setPatchNumber

      public Version.Builder setPatchNumber(int value)
      uint32 patch_number = 3;
      Parameters:
      value - The patchNumber to set.
      Returns:
      This builder for chaining.
    • clearPatchNumber

      public Version.Builder clearPatchNumber()
      uint32 patch_number = 3;
      Returns:
      This builder for chaining.
    • getGitHash

      public String getGitHash()
       If a particular version of Substrait is used that does not correspond to
       a version number exactly (for example when using an unofficial fork or
       using a version that is not yet released or is between versions), set this
       to the full git hash of the utilized commit of
       https://github.com/substrait-io/substrait (or fork thereof), represented
       using a lowercase hex ASCII string 40 characters in length. The version
       number above should be set to the most recent version tag in the history
       of that commit.
       
      string git_hash = 4;
      Specified by:
      getGitHash in interface VersionOrBuilder
      Returns:
      The gitHash.
    • getGitHashBytes

      public com.google.protobuf.ByteString getGitHashBytes()
       If a particular version of Substrait is used that does not correspond to
       a version number exactly (for example when using an unofficial fork or
       using a version that is not yet released or is between versions), set this
       to the full git hash of the utilized commit of
       https://github.com/substrait-io/substrait (or fork thereof), represented
       using a lowercase hex ASCII string 40 characters in length. The version
       number above should be set to the most recent version tag in the history
       of that commit.
       
      string git_hash = 4;
      Specified by:
      getGitHashBytes in interface VersionOrBuilder
      Returns:
      The bytes for gitHash.
    • setGitHash

      public Version.Builder setGitHash(String value)
       If a particular version of Substrait is used that does not correspond to
       a version number exactly (for example when using an unofficial fork or
       using a version that is not yet released or is between versions), set this
       to the full git hash of the utilized commit of
       https://github.com/substrait-io/substrait (or fork thereof), represented
       using a lowercase hex ASCII string 40 characters in length. The version
       number above should be set to the most recent version tag in the history
       of that commit.
       
      string git_hash = 4;
      Parameters:
      value - The gitHash to set.
      Returns:
      This builder for chaining.
    • clearGitHash

      public Version.Builder clearGitHash()
       If a particular version of Substrait is used that does not correspond to
       a version number exactly (for example when using an unofficial fork or
       using a version that is not yet released or is between versions), set this
       to the full git hash of the utilized commit of
       https://github.com/substrait-io/substrait (or fork thereof), represented
       using a lowercase hex ASCII string 40 characters in length. The version
       number above should be set to the most recent version tag in the history
       of that commit.
       
      string git_hash = 4;
      Returns:
      This builder for chaining.
    • setGitHashBytes

      public Version.Builder setGitHashBytes(com.google.protobuf.ByteString value)
       If a particular version of Substrait is used that does not correspond to
       a version number exactly (for example when using an unofficial fork or
       using a version that is not yet released or is between versions), set this
       to the full git hash of the utilized commit of
       https://github.com/substrait-io/substrait (or fork thereof), represented
       using a lowercase hex ASCII string 40 characters in length. The version
       number above should be set to the most recent version tag in the history
       of that commit.
       
      string git_hash = 4;
      Parameters:
      value - The bytes for gitHash to set.
      Returns:
      This builder for chaining.
    • getProducer

      public String getProducer()
       Identifying information for the producer that created this plan. Under
       ideal circumstances, consumers should not need this information. However,
       it is foreseen that consumers may need to work around bugs in particular
       producers in practice, and therefore may need to know which producer
       created the plan.
       
      string producer = 5;
      Specified by:
      getProducer in interface VersionOrBuilder
      Returns:
      The producer.
    • getProducerBytes

      public com.google.protobuf.ByteString getProducerBytes()
       Identifying information for the producer that created this plan. Under
       ideal circumstances, consumers should not need this information. However,
       it is foreseen that consumers may need to work around bugs in particular
       producers in practice, and therefore may need to know which producer
       created the plan.
       
      string producer = 5;
      Specified by:
      getProducerBytes in interface VersionOrBuilder
      Returns:
      The bytes for producer.
    • setProducer

      public Version.Builder setProducer(String value)
       Identifying information for the producer that created this plan. Under
       ideal circumstances, consumers should not need this information. However,
       it is foreseen that consumers may need to work around bugs in particular
       producers in practice, and therefore may need to know which producer
       created the plan.
       
      string producer = 5;
      Parameters:
      value - The producer to set.
      Returns:
      This builder for chaining.
    • clearProducer

      public Version.Builder clearProducer()
       Identifying information for the producer that created this plan. Under
       ideal circumstances, consumers should not need this information. However,
       it is foreseen that consumers may need to work around bugs in particular
       producers in practice, and therefore may need to know which producer
       created the plan.
       
      string producer = 5;
      Returns:
      This builder for chaining.
    • setProducerBytes

      public Version.Builder setProducerBytes(com.google.protobuf.ByteString value)
       Identifying information for the producer that created this plan. Under
       ideal circumstances, consumers should not need this information. However,
       it is foreseen that consumers may need to work around bugs in particular
       producers in practice, and therefore may need to know which producer
       created the plan.
       
      string producer = 5;
      Parameters:
      value - The bytes for producer to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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