com.hedera.hashgraph.sdk.proto.SemanticVersion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-full Show documentation
Show all versions of sdk-full Show documentation
Hedera™ Hashgraph SDK for Java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: basic_types.proto
// Protobuf Java Version: 3.25.3
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.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();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_SemanticVersion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_SemanticVersion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.SemanticVersion.class, com.hedera.hashgraph.sdk.proto.SemanticVersion.Builder.class);
}
public static final int MAJOR_FIELD_NUMBER = 1;
private int major_ = 0;
/**
*
**
* 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_ = 0;
/**
*
**
* 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_ = 0;
/**
*
**
* 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;
@SuppressWarnings("serial")
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;
@SuppressWarnings("serial")
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_);
}
getUnknownFields().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 += getUnknownFields().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.hedera.hashgraph.sdk.proto.SemanticVersion)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.SemanticVersion other = (com.hedera.hashgraph.sdk.proto.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.SemanticVersion parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(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 PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.SemanticVersion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(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 PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.SemanticVersion parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.SemanticVersion parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.SemanticVersion parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.SemanticVersion parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.SemanticVersion parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.SemanticVersionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_SemanticVersion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_SemanticVersion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.SemanticVersion.class, com.hedera.hashgraph.sdk.proto.SemanticVersion.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.SemanticVersion.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
major_ = 0;
minor_ = 0;
patch_ = 0;
pre_ = "";
build_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_SemanticVersion_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.SemanticVersion getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.SemanticVersion.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.SemanticVersion build() {
com.hedera.hashgraph.sdk.proto.SemanticVersion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.SemanticVersion buildPartial() {
com.hedera.hashgraph.sdk.proto.SemanticVersion result = new com.hedera.hashgraph.sdk.proto.SemanticVersion(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.SemanticVersion result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.major_ = major_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.minor_ = minor_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.patch_ = patch_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.pre_ = pre_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.build_ = build_;
}
}
@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.hedera.hashgraph.sdk.proto.SemanticVersion) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.SemanticVersion)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.SemanticVersion other) {
if (other == com.hedera.hashgraph.sdk.proto.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_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getBuild().isEmpty()) {
build_ = other.build_;
bitField0_ |= 0x00000010;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
major_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
minor_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
patch_ = input.readInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
pre_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
build_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* Increases with incompatible API changes
*
*
* int32 major = 1;
* @return This builder for chaining.
*/
public Builder clearMajor() {
bitField0_ = (bitField0_ & ~0x00000001);
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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Increases with backwards-compatible new functionality
*
*
* int32 minor = 2;
* @return This builder for chaining.
*/
public Builder clearMinor() {
bitField0_ = (bitField0_ & ~0x00000002);
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;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* Increases with backwards-compatible bug fixes
*
*
* int32 patch = 3;
* @return This builder for chaining.
*/
public Builder clearPatch() {
bitField0_ = (bitField0_ & ~0x00000004);
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;
bitField0_ |= 0x00000008;
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();
bitField0_ = (bitField0_ & ~0x00000008);
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;
bitField0_ |= 0x00000008;
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;
bitField0_ |= 0x00000010;
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();
bitField0_ = (bitField0_ & ~0x00000010);
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;
bitField0_ |= 0x00000010;
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.hedera.hashgraph.sdk.proto.SemanticVersion DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.SemanticVersion();
}
public static com.hedera.hashgraph.sdk.proto.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.hedera.hashgraph.sdk.proto.SemanticVersion getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}