All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hedera.hashgraph.sdk.proto.SemanticVersion Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: basic_types.proto

package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * Hedera follows semantic versioning (https://semver.org/) for both the HAPI protobufs and the
 * Services software.  This type allows the <tt>getVersionInfo</tt> query in the
 * <tt>NetworkService</tt> to return the deployed versions of both protobufs and software on the
 * node answering the query.
 * 
* * Protobuf type {@code proto.SemanticVersion} */ public final class SemanticVersion extends com.google.protobuf.GeneratedMessageLite< SemanticVersion, SemanticVersion.Builder> implements // @@protoc_insertion_point(message_implements:proto.SemanticVersion) SemanticVersionOrBuilder { private SemanticVersion() { pre_ = ""; build_ = ""; } public static final int MAJOR_FIELD_NUMBER = 1; private int major_; /** *
   **
   * Increases with incompatible API changes
   * 
* * int32 major = 1; * @return The major. */ @java.lang.Override public int getMajor() { return major_; } /** *
   **
   * Increases with incompatible API changes
   * 
* * int32 major = 1; * @param value The major to set. */ private void setMajor(int value) { major_ = value; } /** *
   **
   * Increases with incompatible API changes
   * 
* * int32 major = 1; */ private void clearMajor() { major_ = 0; } public static final int MINOR_FIELD_NUMBER = 2; private int minor_; /** *
   **
   * Increases with backwards-compatible new functionality
   * 
* * int32 minor = 2; * @return The minor. */ @java.lang.Override public int getMinor() { return minor_; } /** *
   **
   * Increases with backwards-compatible new functionality
   * 
* * int32 minor = 2; * @param value The minor to set. */ private void setMinor(int value) { minor_ = value; } /** *
   **
   * Increases with backwards-compatible new functionality
   * 
* * int32 minor = 2; */ private void clearMinor() { minor_ = 0; } public static final int PATCH_FIELD_NUMBER = 3; private int patch_; /** *
   **
   * Increases with backwards-compatible bug fixes
   * 
* * int32 patch = 3; * @return The patch. */ @java.lang.Override public int getPatch() { return patch_; } /** *
   **
   * Increases with backwards-compatible bug fixes
   * 
* * int32 patch = 3; * @param value The patch to set. */ private void setPatch(int value) { patch_ = value; } /** *
   **
   * Increases with backwards-compatible bug fixes
   * 
* * int32 patch = 3; */ private void clearPatch() { patch_ = 0; } public static final int PRE_FIELD_NUMBER = 4; private java.lang.String pre_; /** *
   **
   * A pre-release version MAY be denoted by appending a hyphen and a series of dot separated
   * identifiers (https://semver.org/#spec-item-9); so given a semver 0.14.0-alpha.1+21AF26D3,
   * this field would contain 'alpha.1'
   * 
* * string pre = 4; * @return The pre. */ @java.lang.Override public java.lang.String getPre() { return pre_; } /** *
   **
   * A pre-release version MAY be denoted by appending a hyphen and a series of dot separated
   * identifiers (https://semver.org/#spec-item-9); so given a semver 0.14.0-alpha.1+21AF26D3,
   * this field would contain 'alpha.1'
   * 
* * string pre = 4; * @return The bytes for pre. */ @java.lang.Override public com.google.protobuf.ByteString getPreBytes() { return com.google.protobuf.ByteString.copyFromUtf8(pre_); } /** *
   **
   * A pre-release version MAY be denoted by appending a hyphen and a series of dot separated
   * identifiers (https://semver.org/#spec-item-9); so given a semver 0.14.0-alpha.1+21AF26D3,
   * this field would contain 'alpha.1'
   * 
* * string pre = 4; * @param value The pre to set. */ private void setPre( java.lang.String value) { java.lang.Class valueClass = value.getClass(); pre_ = value; } /** *
   **
   * A pre-release version MAY be denoted by appending a hyphen and a series of dot separated
   * identifiers (https://semver.org/#spec-item-9); so given a semver 0.14.0-alpha.1+21AF26D3,
   * this field would contain 'alpha.1'
   * 
* * string pre = 4; */ private void clearPre() { pre_ = getDefaultInstance().getPre(); } /** *
   **
   * A pre-release version MAY be denoted by appending a hyphen and a series of dot separated
   * identifiers (https://semver.org/#spec-item-9); so given a semver 0.14.0-alpha.1+21AF26D3,
   * this field would contain 'alpha.1'
   * 
* * string pre = 4; * @param value The bytes for pre to set. */ private void setPreBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); pre_ = value.toStringUtf8(); } public static final int BUILD_FIELD_NUMBER = 5; private java.lang.String build_; /** *
   **
   * Build metadata MAY be denoted by appending a plus sign and a series of dot separated
   * identifiers immediately following the patch or pre-release version
   * (https://semver.org/#spec-item-10); so given a semver 0.14.0-alpha.1+21AF26D3, this field
   * would contain '21AF26D3'
   * 
* * string build = 5; * @return The build. */ @java.lang.Override public java.lang.String getBuild() { return build_; } /** *
   **
   * Build metadata MAY be denoted by appending a plus sign and a series of dot separated
   * identifiers immediately following the patch or pre-release version
   * (https://semver.org/#spec-item-10); so given a semver 0.14.0-alpha.1+21AF26D3, this field
   * would contain '21AF26D3'
   * 
* * string build = 5; * @return The bytes for build. */ @java.lang.Override public com.google.protobuf.ByteString getBuildBytes() { return com.google.protobuf.ByteString.copyFromUtf8(build_); } /** *
   **
   * Build metadata MAY be denoted by appending a plus sign and a series of dot separated
   * identifiers immediately following the patch or pre-release version
   * (https://semver.org/#spec-item-10); so given a semver 0.14.0-alpha.1+21AF26D3, this field
   * would contain '21AF26D3'
   * 
* * string build = 5; * @param value The build to set. */ private void setBuild( java.lang.String value) { java.lang.Class valueClass = value.getClass(); build_ = value; } /** *
   **
   * Build metadata MAY be denoted by appending a plus sign and a series of dot separated
   * identifiers immediately following the patch or pre-release version
   * (https://semver.org/#spec-item-10); so given a semver 0.14.0-alpha.1+21AF26D3, this field
   * would contain '21AF26D3'
   * 
* * string build = 5; */ private void clearBuild() { build_ = getDefaultInstance().getBuild(); } /** *
   **
   * Build metadata MAY be denoted by appending a plus sign and a series of dot separated
   * identifiers immediately following the patch or pre-release version
   * (https://semver.org/#spec-item-10); so given a semver 0.14.0-alpha.1+21AF26D3, this field
   * would contain '21AF26D3'
   * 
* * string build = 5; * @param value The bytes for build to set. */ private void setBuildBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); build_ = value.toStringUtf8(); } public static com.hedera.hashgraph.sdk.proto.SemanticVersion parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.SemanticVersion parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.SemanticVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.SemanticVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.SemanticVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.SemanticVersion parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.SemanticVersion parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.SemanticVersion parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.SemanticVersion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.SemanticVersion parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.SemanticVersion parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.SemanticVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.SemanticVersion prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   **
   * Hedera follows semantic versioning (https://semver.org/) for both the HAPI protobufs and the
   * Services software.  This type allows the <tt>getVersionInfo</tt> query in the
   * <tt>NetworkService</tt> to return the deployed versions of both protobufs and software on the
   * node answering the query.
   * 
* * Protobuf type {@code proto.SemanticVersion} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.hedera.hashgraph.sdk.proto.SemanticVersion, Builder> implements // @@protoc_insertion_point(builder_implements:proto.SemanticVersion) com.hedera.hashgraph.sdk.proto.SemanticVersionOrBuilder { // Construct using com.hedera.hashgraph.sdk.proto.SemanticVersion.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     **
     * Increases with incompatible API changes
     * 
* * int32 major = 1; * @return The major. */ @java.lang.Override public int getMajor() { return instance.getMajor(); } /** *
     **
     * Increases with incompatible API changes
     * 
* * int32 major = 1; * @param value The major to set. * @return This builder for chaining. */ public Builder setMajor(int value) { copyOnWrite(); instance.setMajor(value); return this; } /** *
     **
     * Increases with incompatible API changes
     * 
* * int32 major = 1; * @return This builder for chaining. */ public Builder clearMajor() { copyOnWrite(); instance.clearMajor(); return this; } /** *
     **
     * Increases with backwards-compatible new functionality
     * 
* * int32 minor = 2; * @return The minor. */ @java.lang.Override public int getMinor() { return instance.getMinor(); } /** *
     **
     * Increases with backwards-compatible new functionality
     * 
* * int32 minor = 2; * @param value The minor to set. * @return This builder for chaining. */ public Builder setMinor(int value) { copyOnWrite(); instance.setMinor(value); return this; } /** *
     **
     * Increases with backwards-compatible new functionality
     * 
* * int32 minor = 2; * @return This builder for chaining. */ public Builder clearMinor() { copyOnWrite(); instance.clearMinor(); return this; } /** *
     **
     * Increases with backwards-compatible bug fixes
     * 
* * int32 patch = 3; * @return The patch. */ @java.lang.Override public int getPatch() { return instance.getPatch(); } /** *
     **
     * Increases with backwards-compatible bug fixes
     * 
* * int32 patch = 3; * @param value The patch to set. * @return This builder for chaining. */ public Builder setPatch(int value) { copyOnWrite(); instance.setPatch(value); return this; } /** *
     **
     * Increases with backwards-compatible bug fixes
     * 
* * int32 patch = 3; * @return This builder for chaining. */ public Builder clearPatch() { copyOnWrite(); instance.clearPatch(); return this; } /** *
     **
     * A pre-release version MAY be denoted by appending a hyphen and a series of dot separated
     * identifiers (https://semver.org/#spec-item-9); so given a semver 0.14.0-alpha.1+21AF26D3,
     * this field would contain 'alpha.1'
     * 
* * string pre = 4; * @return The pre. */ @java.lang.Override public java.lang.String getPre() { return instance.getPre(); } /** *
     **
     * A pre-release version MAY be denoted by appending a hyphen and a series of dot separated
     * identifiers (https://semver.org/#spec-item-9); so given a semver 0.14.0-alpha.1+21AF26D3,
     * this field would contain 'alpha.1'
     * 
* * string pre = 4; * @return The bytes for pre. */ @java.lang.Override public com.google.protobuf.ByteString getPreBytes() { return instance.getPreBytes(); } /** *
     **
     * A pre-release version MAY be denoted by appending a hyphen and a series of dot separated
     * identifiers (https://semver.org/#spec-item-9); so given a semver 0.14.0-alpha.1+21AF26D3,
     * this field would contain 'alpha.1'
     * 
* * string pre = 4; * @param value The pre to set. * @return This builder for chaining. */ public Builder setPre( java.lang.String value) { copyOnWrite(); instance.setPre(value); return this; } /** *
     **
     * A pre-release version MAY be denoted by appending a hyphen and a series of dot separated
     * identifiers (https://semver.org/#spec-item-9); so given a semver 0.14.0-alpha.1+21AF26D3,
     * this field would contain 'alpha.1'
     * 
* * string pre = 4; * @return This builder for chaining. */ public Builder clearPre() { copyOnWrite(); instance.clearPre(); return this; } /** *
     **
     * A pre-release version MAY be denoted by appending a hyphen and a series of dot separated
     * identifiers (https://semver.org/#spec-item-9); so given a semver 0.14.0-alpha.1+21AF26D3,
     * this field would contain 'alpha.1'
     * 
* * string pre = 4; * @param value The bytes for pre to set. * @return This builder for chaining. */ public Builder setPreBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setPreBytes(value); return this; } /** *
     **
     * Build metadata MAY be denoted by appending a plus sign and a series of dot separated
     * identifiers immediately following the patch or pre-release version
     * (https://semver.org/#spec-item-10); so given a semver 0.14.0-alpha.1+21AF26D3, this field
     * would contain '21AF26D3'
     * 
* * string build = 5; * @return The build. */ @java.lang.Override public java.lang.String getBuild() { return instance.getBuild(); } /** *
     **
     * Build metadata MAY be denoted by appending a plus sign and a series of dot separated
     * identifiers immediately following the patch or pre-release version
     * (https://semver.org/#spec-item-10); so given a semver 0.14.0-alpha.1+21AF26D3, this field
     * would contain '21AF26D3'
     * 
* * string build = 5; * @return The bytes for build. */ @java.lang.Override public com.google.protobuf.ByteString getBuildBytes() { return instance.getBuildBytes(); } /** *
     **
     * Build metadata MAY be denoted by appending a plus sign and a series of dot separated
     * identifiers immediately following the patch or pre-release version
     * (https://semver.org/#spec-item-10); so given a semver 0.14.0-alpha.1+21AF26D3, this field
     * would contain '21AF26D3'
     * 
* * string build = 5; * @param value The build to set. * @return This builder for chaining. */ public Builder setBuild( java.lang.String value) { copyOnWrite(); instance.setBuild(value); return this; } /** *
     **
     * Build metadata MAY be denoted by appending a plus sign and a series of dot separated
     * identifiers immediately following the patch or pre-release version
     * (https://semver.org/#spec-item-10); so given a semver 0.14.0-alpha.1+21AF26D3, this field
     * would contain '21AF26D3'
     * 
* * string build = 5; * @return This builder for chaining. */ public Builder clearBuild() { copyOnWrite(); instance.clearBuild(); return this; } /** *
     **
     * Build metadata MAY be denoted by appending a plus sign and a series of dot separated
     * identifiers immediately following the patch or pre-release version
     * (https://semver.org/#spec-item-10); so given a semver 0.14.0-alpha.1+21AF26D3, this field
     * would contain '21AF26D3'
     * 
* * string build = 5; * @param value The bytes for build to set. * @return This builder for chaining. */ public Builder setBuildBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setBuildBytes(value); return this; } // @@protoc_insertion_point(builder_scope:proto.SemanticVersion) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.hedera.hashgraph.sdk.proto.SemanticVersion(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "major_", "minor_", "patch_", "pre_", "build_", }; java.lang.String info = "\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0000\u0000\u0000\u0001\u0004\u0002\u0004" + "\u0003\u0004\u0004\u0208\u0005\u0208"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (com.hedera.hashgraph.sdk.proto.SemanticVersion.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser( DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:proto.SemanticVersion) private static final com.hedera.hashgraph.sdk.proto.SemanticVersion DEFAULT_INSTANCE; static { SemanticVersion defaultInstance = new SemanticVersion(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( SemanticVersion.class, defaultInstance); } public static com.hedera.hashgraph.sdk.proto.SemanticVersion getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy