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 ClassesModifier and TypeClassDescriptionstatic 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) getBuild()* A build version.com.google.protobuf.ByteString* A build version.static SemanticVersionintgetMajor()* A major version.<br/> Hedera does not increment this value and retains a `0` value to indicate that API may change for any release.intgetMinor()* A minor version.<br/> Hedera increments this value with each release.<br/> There may be incompatible API changes in any Hedera Services release.intgetPatch()* A patch version.getPre()* A pre-release version.com.google.protobuf.ByteString* A pre-release version.static SemanticVersion.Builderstatic SemanticVersion.BuildernewBuilder(SemanticVersion prototype) static SemanticVersionparseDelimitedFrom(InputStream input) static SemanticVersionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SemanticVersionparseFrom(byte[] data) static SemanticVersionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SemanticVersionparseFrom(com.google.protobuf.ByteString data) static SemanticVersionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SemanticVersionparseFrom(com.google.protobuf.CodedInputStream input) static SemanticVersionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SemanticVersionparseFrom(InputStream input) static SemanticVersionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SemanticVersionparseFrom(ByteBuffer data) static SemanticVersionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SemanticVersion> parser()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, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
MAJOR_FIELD_NUMBER
public static final int MAJOR_FIELD_NUMBER- See Also:
-
MINOR_FIELD_NUMBER
public static final int MINOR_FIELD_NUMBER- See Also:
-
PATCH_FIELD_NUMBER
public static final int PATCH_FIELD_NUMBER- See Also:
-
PRE_FIELD_NUMBER
public static final int PRE_FIELD_NUMBER- See Also:
-
BUILD_FIELD_NUMBER
public static final int BUILD_FIELD_NUMBER- See Also:
-
-
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:
getMajorin interfaceSemanticVersionOrBuilder- 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:
getMinorin interfaceSemanticVersionOrBuilder- 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:
getPatchin interfaceSemanticVersionOrBuilder- Returns:
- The patch.
-
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:
getPrein interfaceSemanticVersionOrBuilder- 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:
getPreBytesin interfaceSemanticVersionOrBuilder- Returns:
- The bytes for pre.
-
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:
getBuildin interfaceSemanticVersionOrBuilder- 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:
getBuildBytesin interfaceSemanticVersionOrBuilder- 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
- Throws:
IOException
-
parseFrom
public static SemanticVersion parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<SemanticVersion,SemanticVersion.Builder>
-
getDefaultInstance
-
parser
-