// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: flow/entities/node_version_info.proto
package org.onflow.protobuf.entities;
public final class NodeVersionInfoOuterClass {
private NodeVersionInfoOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface NodeVersionInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.entities.NodeVersionInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
* The currently running node software version.
*
*
* string semver = 1;
* @return The semver.
*/
java.lang.String getSemver();
/**
*
* The currently running node software version.
*
*
* string semver = 1;
* @return The bytes for semver.
*/
com.google.protobuf.ByteString
getSemverBytes();
/**
*
* The git commit hash of the currently running node software.
*
*
* string commit = 2;
* @return The commit.
*/
java.lang.String getCommit();
/**
*
* The git commit hash of the currently running node software.
*
*
* string commit = 2;
* @return The bytes for commit.
*/
com.google.protobuf.ByteString
getCommitBytes();
/**
*
* The unique identifier for the node's network within the current spork.
*
*
* bytes spork_id = 3;
* @return The sporkId.
*/
com.google.protobuf.ByteString getSporkId();
/**
*
* The protocol version of the currently running node software.
*
*
* uint64 protocol_version = 4;
* @return The protocolVersion.
*/
long getProtocolVersion();
/**
*
* The spork root block height. This is the height of the first sealed block in the spork network.
*
*
* uint64 spork_root_block_height = 5;
* @return The sporkRootBlockHeight.
*/
long getSporkRootBlockHeight();
/**
*
* The node's root block height. This is the first sealed block in the node's protocol database.
* If the node started at the beginning of the spork, it is the same as the spork root block height.
* If the node started after the beginning of the spork, it is the height of the first sealed block
* indexed.
*
*
* uint64 node_root_block_height = 6;
* @return The nodeRootBlockHeight.
*/
long getNodeRootBlockHeight();
}
/**
* Protobuf type {@code flow.entities.NodeVersionInfo}
*/
public static final class NodeVersionInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.entities.NodeVersionInfo)
NodeVersionInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeVersionInfo.newBuilder() to construct.
private NodeVersionInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeVersionInfo() {
semver_ = "";
commit_ = "";
sporkId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeVersionInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeVersionInfo(
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 10: {
java.lang.String s = input.readStringRequireUtf8();
semver_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
commit_ = s;
break;
}
case 26: {
sporkId_ = input.readBytes();
break;
}
case 32: {
protocolVersion_ = input.readUInt64();
break;
}
case 40: {
sporkRootBlockHeight_ = input.readUInt64();
break;
}
case 48: {
nodeRootBlockHeight_ = input.readUInt64();
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 org.onflow.protobuf.entities.NodeVersionInfoOuterClass.internal_static_flow_entities_NodeVersionInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.entities.NodeVersionInfoOuterClass.internal_static_flow_entities_NodeVersionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo.class, org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo.Builder.class);
}
public static final int SEMVER_FIELD_NUMBER = 1;
private volatile java.lang.Object semver_;
/**
*
* The currently running node software version.
*
*
* string semver = 1;
* @return The semver.
*/
@java.lang.Override
public java.lang.String getSemver() {
java.lang.Object ref = semver_;
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();
semver_ = s;
return s;
}
}
/**
*
* The currently running node software version.
*
*
* string semver = 1;
* @return The bytes for semver.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSemverBytes() {
java.lang.Object ref = semver_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
semver_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMMIT_FIELD_NUMBER = 2;
private volatile java.lang.Object commit_;
/**
*
* The git commit hash of the currently running node software.
*
*
* string commit = 2;
* @return The commit.
*/
@java.lang.Override
public java.lang.String getCommit() {
java.lang.Object ref = commit_;
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();
commit_ = s;
return s;
}
}
/**
*
* The git commit hash of the currently running node software.
*
*
* string commit = 2;
* @return The bytes for commit.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCommitBytes() {
java.lang.Object ref = commit_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
commit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SPORK_ID_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString sporkId_;
/**
*
* The unique identifier for the node's network within the current spork.
*
*
* bytes spork_id = 3;
* @return The sporkId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSporkId() {
return sporkId_;
}
public static final int PROTOCOL_VERSION_FIELD_NUMBER = 4;
private long protocolVersion_;
/**
*
* The protocol version of the currently running node software.
*
*
* uint64 protocol_version = 4;
* @return The protocolVersion.
*/
@java.lang.Override
public long getProtocolVersion() {
return protocolVersion_;
}
public static final int SPORK_ROOT_BLOCK_HEIGHT_FIELD_NUMBER = 5;
private long sporkRootBlockHeight_;
/**
*
* The spork root block height. This is the height of the first sealed block in the spork network.
*
*
* uint64 spork_root_block_height = 5;
* @return The sporkRootBlockHeight.
*/
@java.lang.Override
public long getSporkRootBlockHeight() {
return sporkRootBlockHeight_;
}
public static final int NODE_ROOT_BLOCK_HEIGHT_FIELD_NUMBER = 6;
private long nodeRootBlockHeight_;
/**
*
* The node's root block height. This is the first sealed block in the node's protocol database.
* If the node started at the beginning of the spork, it is the same as the spork root block height.
* If the node started after the beginning of the spork, it is the height of the first sealed block
* indexed.
*
*
* uint64 node_root_block_height = 6;
* @return The nodeRootBlockHeight.
*/
@java.lang.Override
public long getNodeRootBlockHeight() {
return nodeRootBlockHeight_;
}
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 (!getSemverBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, semver_);
}
if (!getCommitBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commit_);
}
if (!sporkId_.isEmpty()) {
output.writeBytes(3, sporkId_);
}
if (protocolVersion_ != 0L) {
output.writeUInt64(4, protocolVersion_);
}
if (sporkRootBlockHeight_ != 0L) {
output.writeUInt64(5, sporkRootBlockHeight_);
}
if (nodeRootBlockHeight_ != 0L) {
output.writeUInt64(6, nodeRootBlockHeight_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getSemverBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, semver_);
}
if (!getCommitBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commit_);
}
if (!sporkId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, sporkId_);
}
if (protocolVersion_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, protocolVersion_);
}
if (sporkRootBlockHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, sporkRootBlockHeight_);
}
if (nodeRootBlockHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, nodeRootBlockHeight_);
}
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 org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo)) {
return super.equals(obj);
}
org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo other = (org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo) obj;
if (!getSemver()
.equals(other.getSemver())) return false;
if (!getCommit()
.equals(other.getCommit())) return false;
if (!getSporkId()
.equals(other.getSporkId())) return false;
if (getProtocolVersion()
!= other.getProtocolVersion()) return false;
if (getSporkRootBlockHeight()
!= other.getSporkRootBlockHeight()) return false;
if (getNodeRootBlockHeight()
!= other.getNodeRootBlockHeight()) 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) + SEMVER_FIELD_NUMBER;
hash = (53 * hash) + getSemver().hashCode();
hash = (37 * hash) + COMMIT_FIELD_NUMBER;
hash = (53 * hash) + getCommit().hashCode();
hash = (37 * hash) + SPORK_ID_FIELD_NUMBER;
hash = (53 * hash) + getSporkId().hashCode();
hash = (37 * hash) + PROTOCOL_VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getProtocolVersion());
hash = (37 * hash) + SPORK_ROOT_BLOCK_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSporkRootBlockHeight());
hash = (37 * hash) + NODE_ROOT_BLOCK_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNodeRootBlockHeight());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo 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 org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo 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 org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo 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(org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo 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;
}
/**
* Protobuf type {@code flow.entities.NodeVersionInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.entities.NodeVersionInfo)
org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.entities.NodeVersionInfoOuterClass.internal_static_flow_entities_NodeVersionInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.entities.NodeVersionInfoOuterClass.internal_static_flow_entities_NodeVersionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo.class, org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo.Builder.class);
}
// Construct using org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo.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();
semver_ = "";
commit_ = "";
sporkId_ = com.google.protobuf.ByteString.EMPTY;
protocolVersion_ = 0L;
sporkRootBlockHeight_ = 0L;
nodeRootBlockHeight_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.entities.NodeVersionInfoOuterClass.internal_static_flow_entities_NodeVersionInfo_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo getDefaultInstanceForType() {
return org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo build() {
org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo buildPartial() {
org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo result = new org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo(this);
result.semver_ = semver_;
result.commit_ = commit_;
result.sporkId_ = sporkId_;
result.protocolVersion_ = protocolVersion_;
result.sporkRootBlockHeight_ = sporkRootBlockHeight_;
result.nodeRootBlockHeight_ = nodeRootBlockHeight_;
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 org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo) {
return mergeFrom((org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo other) {
if (other == org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo.getDefaultInstance()) return this;
if (!other.getSemver().isEmpty()) {
semver_ = other.semver_;
onChanged();
}
if (!other.getCommit().isEmpty()) {
commit_ = other.commit_;
onChanged();
}
if (other.getSporkId() != com.google.protobuf.ByteString.EMPTY) {
setSporkId(other.getSporkId());
}
if (other.getProtocolVersion() != 0L) {
setProtocolVersion(other.getProtocolVersion());
}
if (other.getSporkRootBlockHeight() != 0L) {
setSporkRootBlockHeight(other.getSporkRootBlockHeight());
}
if (other.getNodeRootBlockHeight() != 0L) {
setNodeRootBlockHeight(other.getNodeRootBlockHeight());
}
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 {
org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object semver_ = "";
/**
*
* The currently running node software version.
*
*
* string semver = 1;
* @return The semver.
*/
public java.lang.String getSemver() {
java.lang.Object ref = semver_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
semver_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The currently running node software version.
*
*
* string semver = 1;
* @return The bytes for semver.
*/
public com.google.protobuf.ByteString
getSemverBytes() {
java.lang.Object ref = semver_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
semver_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The currently running node software version.
*
*
* string semver = 1;
* @param value The semver to set.
* @return This builder for chaining.
*/
public Builder setSemver(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
semver_ = value;
onChanged();
return this;
}
/**
*
* The currently running node software version.
*
*
* string semver = 1;
* @return This builder for chaining.
*/
public Builder clearSemver() {
semver_ = getDefaultInstance().getSemver();
onChanged();
return this;
}
/**
*
* The currently running node software version.
*
*
* string semver = 1;
* @param value The bytes for semver to set.
* @return This builder for chaining.
*/
public Builder setSemverBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
semver_ = value;
onChanged();
return this;
}
private java.lang.Object commit_ = "";
/**
*
* The git commit hash of the currently running node software.
*
*
* string commit = 2;
* @return The commit.
*/
public java.lang.String getCommit() {
java.lang.Object ref = commit_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
commit_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The git commit hash of the currently running node software.
*
*
* string commit = 2;
* @return The bytes for commit.
*/
public com.google.protobuf.ByteString
getCommitBytes() {
java.lang.Object ref = commit_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
commit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The git commit hash of the currently running node software.
*
*
* string commit = 2;
* @param value The commit to set.
* @return This builder for chaining.
*/
public Builder setCommit(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
commit_ = value;
onChanged();
return this;
}
/**
*
* The git commit hash of the currently running node software.
*
*
* string commit = 2;
* @return This builder for chaining.
*/
public Builder clearCommit() {
commit_ = getDefaultInstance().getCommit();
onChanged();
return this;
}
/**
*
* The git commit hash of the currently running node software.
*
*
* string commit = 2;
* @param value The bytes for commit to set.
* @return This builder for chaining.
*/
public Builder setCommitBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
commit_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString sporkId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* The unique identifier for the node's network within the current spork.
*
*
* bytes spork_id = 3;
* @return The sporkId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSporkId() {
return sporkId_;
}
/**
*
* The unique identifier for the node's network within the current spork.
*
*
* bytes spork_id = 3;
* @param value The sporkId to set.
* @return This builder for chaining.
*/
public Builder setSporkId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
sporkId_ = value;
onChanged();
return this;
}
/**
*
* The unique identifier for the node's network within the current spork.
*
*
* bytes spork_id = 3;
* @return This builder for chaining.
*/
public Builder clearSporkId() {
sporkId_ = getDefaultInstance().getSporkId();
onChanged();
return this;
}
private long protocolVersion_ ;
/**
*
* The protocol version of the currently running node software.
*
*
* uint64 protocol_version = 4;
* @return The protocolVersion.
*/
@java.lang.Override
public long getProtocolVersion() {
return protocolVersion_;
}
/**
*
* The protocol version of the currently running node software.
*
*
* uint64 protocol_version = 4;
* @param value The protocolVersion to set.
* @return This builder for chaining.
*/
public Builder setProtocolVersion(long value) {
protocolVersion_ = value;
onChanged();
return this;
}
/**
*
* The protocol version of the currently running node software.
*
*
* uint64 protocol_version = 4;
* @return This builder for chaining.
*/
public Builder clearProtocolVersion() {
protocolVersion_ = 0L;
onChanged();
return this;
}
private long sporkRootBlockHeight_ ;
/**
*
* The spork root block height. This is the height of the first sealed block in the spork network.
*
*
* uint64 spork_root_block_height = 5;
* @return The sporkRootBlockHeight.
*/
@java.lang.Override
public long getSporkRootBlockHeight() {
return sporkRootBlockHeight_;
}
/**
*
* The spork root block height. This is the height of the first sealed block in the spork network.
*
*
* uint64 spork_root_block_height = 5;
* @param value The sporkRootBlockHeight to set.
* @return This builder for chaining.
*/
public Builder setSporkRootBlockHeight(long value) {
sporkRootBlockHeight_ = value;
onChanged();
return this;
}
/**
*
* The spork root block height. This is the height of the first sealed block in the spork network.
*
*
* uint64 spork_root_block_height = 5;
* @return This builder for chaining.
*/
public Builder clearSporkRootBlockHeight() {
sporkRootBlockHeight_ = 0L;
onChanged();
return this;
}
private long nodeRootBlockHeight_ ;
/**
*
* The node's root block height. This is the first sealed block in the node's protocol database.
* If the node started at the beginning of the spork, it is the same as the spork root block height.
* If the node started after the beginning of the spork, it is the height of the first sealed block
* indexed.
*
*
* uint64 node_root_block_height = 6;
* @return The nodeRootBlockHeight.
*/
@java.lang.Override
public long getNodeRootBlockHeight() {
return nodeRootBlockHeight_;
}
/**
*
* The node's root block height. This is the first sealed block in the node's protocol database.
* If the node started at the beginning of the spork, it is the same as the spork root block height.
* If the node started after the beginning of the spork, it is the height of the first sealed block
* indexed.
*
*
* uint64 node_root_block_height = 6;
* @param value The nodeRootBlockHeight to set.
* @return This builder for chaining.
*/
public Builder setNodeRootBlockHeight(long value) {
nodeRootBlockHeight_ = value;
onChanged();
return this;
}
/**
*
* The node's root block height. This is the first sealed block in the node's protocol database.
* If the node started at the beginning of the spork, it is the same as the spork root block height.
* If the node started after the beginning of the spork, it is the height of the first sealed block
* indexed.
*
*
* uint64 node_root_block_height = 6;
* @return This builder for chaining.
*/
public Builder clearNodeRootBlockHeight() {
nodeRootBlockHeight_ = 0L;
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:flow.entities.NodeVersionInfo)
}
// @@protoc_insertion_point(class_scope:flow.entities.NodeVersionInfo)
private static final org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo();
}
public static org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NodeVersionInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NodeVersionInfo(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 org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_entities_NodeVersionInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_entities_NodeVersionInfo_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n%flow/entities/node_version_info.proto\022" +
"\rflow.entities\"\236\001\n\017NodeVersionInfo\022\016\n\006se" +
"mver\030\001 \001(\t\022\016\n\006commit\030\002 \001(\t\022\020\n\010spork_id\030\003" +
" \001(\014\022\030\n\020protocol_version\030\004 \001(\004\022\037\n\027spork_" +
"root_block_height\030\005 \001(\004\022\036\n\026node_root_blo" +
"ck_height\030\006 \001(\004BP\n\034org.onflow.protobuf.e" +
"ntitiesZ0github.com/onflow/flow/protobuf" +
"/go/flow/entitiesb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_flow_entities_NodeVersionInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_flow_entities_NodeVersionInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_entities_NodeVersionInfo_descriptor,
new java.lang.String[] { "Semver", "Commit", "SporkId", "ProtocolVersion", "SporkRootBlockHeight", "NodeRootBlockHeight", });
}
// @@protoc_insertion_point(outer_class_scope)
}