// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: basic_types.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* 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.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.SemanticVersion)
SemanticVersionOrBuilder {
private static final long serialVersionUID = 0L;
// Use SemanticVersion.newBuilder() to construct.
private SemanticVersion(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SemanticVersion() {
pre_ = "";
build_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SemanticVersion();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SemanticVersion(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
major_ = input.readInt32();
break;
}
case 16: {
minor_ = input.readInt32();
break;
}
case 24: {
patch_ = input.readInt32();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
pre_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
build_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_SemanticVersion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_SemanticVersion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.SemanticVersion.class, com.hederahashgraph.api.proto.java.SemanticVersion.Builder.class);
}
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_;
}
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_;
}
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_;
}
public static final int PRE_FIELD_NUMBER = 4;
private volatile java.lang.Object 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() {
java.lang.Object ref = pre_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pre_ = s;
return s;
}
}
/**
*
**
* 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() {
java.lang.Object ref = pre_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pre_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BUILD_FIELD_NUMBER = 5;
private volatile java.lang.Object 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() {
java.lang.Object ref = build_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
build_ = s;
return s;
}
}
/**
*
**
* 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() {
java.lang.Object ref = build_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
build_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (major_ != 0) {
output.writeInt32(1, major_);
}
if (minor_ != 0) {
output.writeInt32(2, minor_);
}
if (patch_ != 0) {
output.writeInt32(3, patch_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pre_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pre_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(build_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, build_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (major_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, major_);
}
if (minor_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, minor_);
}
if (patch_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, patch_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pre_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pre_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(build_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, build_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.hederahashgraph.api.proto.java.SemanticVersion)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.SemanticVersion other = (com.hederahashgraph.api.proto.java.SemanticVersion) obj;
if (getMajor()
!= other.getMajor()) return false;
if (getMinor()
!= other.getMinor()) return false;
if (getPatch()
!= other.getPatch()) return false;
if (!getPre()
.equals(other.getPre())) return false;
if (!getBuild()
.equals(other.getBuild())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MAJOR_FIELD_NUMBER;
hash = (53 * hash) + getMajor();
hash = (37 * hash) + MINOR_FIELD_NUMBER;
hash = (53 * hash) + getMinor();
hash = (37 * hash) + PATCH_FIELD_NUMBER;
hash = (53 * hash) + getPatch();
hash = (37 * hash) + PRE_FIELD_NUMBER;
hash = (53 * hash) + getPre().hashCode();
hash = (37 * hash) + BUILD_FIELD_NUMBER;
hash = (53 * hash) + getBuild().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.SemanticVersion parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.SemanticVersion parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.SemanticVersion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.SemanticVersion parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.SemanticVersion parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.SemanticVersion parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.SemanticVersion parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.SemanticVersion parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.SemanticVersion parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.SemanticVersion parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.SemanticVersion parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.SemanticVersion parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.hederahashgraph.api.proto.java.SemanticVersion prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
* 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.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.SemanticVersion)
com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_SemanticVersion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_SemanticVersion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.SemanticVersion.class, com.hederahashgraph.api.proto.java.SemanticVersion.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.SemanticVersion.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
major_ = 0;
minor_ = 0;
patch_ = 0;
pre_ = "";
build_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_SemanticVersion_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.SemanticVersion getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.SemanticVersion.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.SemanticVersion build() {
com.hederahashgraph.api.proto.java.SemanticVersion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.SemanticVersion buildPartial() {
com.hederahashgraph.api.proto.java.SemanticVersion result = new com.hederahashgraph.api.proto.java.SemanticVersion(this);
result.major_ = major_;
result.minor_ = minor_;
result.patch_ = patch_;
result.pre_ = pre_;
result.build_ = build_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hederahashgraph.api.proto.java.SemanticVersion) {
return mergeFrom((com.hederahashgraph.api.proto.java.SemanticVersion)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.SemanticVersion other) {
if (other == com.hederahashgraph.api.proto.java.SemanticVersion.getDefaultInstance()) return this;
if (other.getMajor() != 0) {
setMajor(other.getMajor());
}
if (other.getMinor() != 0) {
setMinor(other.getMinor());
}
if (other.getPatch() != 0) {
setPatch(other.getPatch());
}
if (!other.getPre().isEmpty()) {
pre_ = other.pre_;
onChanged();
}
if (!other.getBuild().isEmpty()) {
build_ = other.build_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.hederahashgraph.api.proto.java.SemanticVersion parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.SemanticVersion) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setMajor(int value) {
major_ = value;
onChanged();
return this;
}
/**
*
**
* Increases with incompatible API changes
*
*
* int32 major = 1;
* @return This builder for chaining.
*/
public Builder clearMajor() {
major_ = 0;
onChanged();
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setMinor(int value) {
minor_ = value;
onChanged();
return this;
}
/**
*
**
* Increases with backwards-compatible new functionality
*
*
* int32 minor = 2;
* @return This builder for chaining.
*/
public Builder clearMinor() {
minor_ = 0;
onChanged();
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setPatch(int value) {
patch_ = value;
onChanged();
return this;
}
/**
*
**
* Increases with backwards-compatible bug fixes
*
*
* int32 patch = 3;
* @return This builder for chaining.
*/
public Builder clearPatch() {
patch_ = 0;
onChanged();
return this;
}
private java.lang.Object 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.
*/
public java.lang.String getPre() {
java.lang.Object ref = pre_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pre_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* 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.
*/
public com.google.protobuf.ByteString
getPreBytes() {
java.lang.Object ref = pre_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pre_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* 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) {
if (value == null) {
throw new NullPointerException();
}
pre_ = value;
onChanged();
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() {
pre_ = getDefaultInstance().getPre();
onChanged();
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) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pre_ = value;
onChanged();
return this;
}
private java.lang.Object 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.
*/
public java.lang.String getBuild() {
java.lang.Object ref = build_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
build_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* 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.
*/
public com.google.protobuf.ByteString
getBuildBytes() {
java.lang.Object ref = build_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
build_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* 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) {
if (value == null) {
throw new NullPointerException();
}
build_ = value;
onChanged();
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() {
build_ = getDefaultInstance().getBuild();
onChanged();
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) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
build_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto.SemanticVersion)
}
// @@protoc_insertion_point(class_scope:proto.SemanticVersion)
private static final com.hederahashgraph.api.proto.java.SemanticVersion DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.SemanticVersion();
}
public static com.hederahashgraph.api.proto.java.SemanticVersion getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SemanticVersion parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SemanticVersion(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.SemanticVersion getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}