Class SemanticVersion

java.lang.Object
com.google.protobuf.AbstractMessageLite<SemanticVersion,SemanticVersion.Builder>
com.google.protobuf.GeneratedMessageLite<SemanticVersion,SemanticVersion.Builder>
com.hedera.hashgraph.sdk.proto.SemanticVersion
All Implemented Interfaces:
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, SemanticVersionOrBuilder

@Generated public final class SemanticVersion extends com.google.protobuf.GeneratedMessageLite<SemanticVersion,SemanticVersion.Builder> implements SemanticVersionOrBuilder
 *
 A software version according to "[semantic versioning](https://semver.org/)"
 or "date versioning".

 Hedera currently modifies the "typical" semantic versioning somewhat, the
 `major` version is always `0`, and each release increments the `minor`
 version. The `patch` and `pre` components are used in the typical manner.
 The `build` component is not generally used.
 
Protobuf type proto.SemanticVersion
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    * A software version according to "[semantic versioning](https://semver.org/)" or "date versioning".

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
    * A build version.
    com.google.protobuf.ByteString
    * A build version.
     
    int
    * A major version.<br/> Hedera does not increment this value and retains a `0` value to indicate that API may change for any release.
    int
    * A minor version.<br/> Hedera increments this value with each release.<br/> There may be incompatible API changes in any Hedera Services release.
    int
    * A patch version.
    * A pre-release version.
    com.google.protobuf.ByteString
    * A pre-release version.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<SemanticVersion>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

  • Method Details

    • getMajor

      public int getMajor()
       *
       A major version.<br/>
       Hedera does not increment this value and retains a `0` value to
       indicate that API may change for any release.
       <p>
       This value SHALL increment for an incompatible API change.<br/>
       
      int32 major = 1;
      Specified by:
      getMajor in interface SemanticVersionOrBuilder
      Returns:
      The major.
    • getMinor

      public int getMinor()
       *
       A minor version.<br/>
       Hedera increments this value with each release.<br/>
       There may be incompatible API changes in any Hedera Services release.
       <p>
       This value SHALL increment for backwards-compatible new
       functionality.
       
      int32 minor = 2;
      Specified by:
      getMinor in interface SemanticVersionOrBuilder
      Returns:
      The minor.
    • getPatch

      public int getPatch()
       *
       A patch version.
       <p>
       This value SHALL increment for backwards-compatible bug fixes.
       
      int32 patch = 3;
      Specified by:
      getPatch in interface SemanticVersionOrBuilder
      Returns:
      The patch.
    • getPre

      public String getPre()
       *
       A pre-release version.
       <p>
       This MAY be denoted by appending a hyphen and a series of dot separated
       identifiers per [Semver Specification](https://semver.org/#spec-item-9);
       given a string `0.14.0-alpha.1+21AF26D3`, this field would contain
       'alpha.1'
       
      string pre = 4;
      Specified by:
      getPre in interface SemanticVersionOrBuilder
      Returns:
      The pre.
    • getPreBytes

      public com.google.protobuf.ByteString getPreBytes()
       *
       A pre-release version.
       <p>
       This MAY be denoted by appending a hyphen and a series of dot separated
       identifiers per [Semver Specification](https://semver.org/#spec-item-9);
       given a string `0.14.0-alpha.1+21AF26D3`, this field would contain
       'alpha.1'
       
      string pre = 4;
      Specified by:
      getPreBytes in interface SemanticVersionOrBuilder
      Returns:
      The bytes for pre.
    • getBuild

      public String getBuild()
       *
       A build version.
       <p>
       Build version MAY be denoted by appending a plus sign and a series of
       dot separated identifiers immediately following the patch or pre-release
       version per [Semver Specification](https://semver.org/#spec-item-10); so
       given a string `0.14.0-alpha.1+21AF26D3`, this field
       would contain '21AF26D3'
       
      string build = 5;
      Specified by:
      getBuild in interface SemanticVersionOrBuilder
      Returns:
      The build.
    • getBuildBytes

      public com.google.protobuf.ByteString getBuildBytes()
       *
       A build version.
       <p>
       Build version MAY be denoted by appending a plus sign and a series of
       dot separated identifiers immediately following the patch or pre-release
       version per [Semver Specification](https://semver.org/#spec-item-10); so
       given a string `0.14.0-alpha.1+21AF26D3`, this field
       would contain '21AF26D3'
       
      string build = 5;
      Specified by:
      getBuildBytes in interface SemanticVersionOrBuilder
      Returns:
      The bytes for build.
    • parseFrom

      public static SemanticVersion parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SemanticVersion parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SemanticVersion parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SemanticVersion parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SemanticVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SemanticVersion parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SemanticVersion parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SemanticVersion parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SemanticVersion parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SemanticVersion parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SemanticVersion parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SemanticVersion parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static SemanticVersion.Builder newBuilder()
    • newBuilder

      public static SemanticVersion.Builder newBuilder(SemanticVersion prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<SemanticVersion,SemanticVersion.Builder>
    • getDefaultInstance

      public static SemanticVersion getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SemanticVersion> parser()