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

main.org.onflow.protobuf.entities.NodeVersionInfoOuterClass Maven / Gradle / Ivy

The newest version!
// 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 CompatibleRangeOrBuilder extends
      // @@protoc_insertion_point(interface_extends:flow.entities.CompatibleRange)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * The first block that the version supports.
     * 
* * uint64 start_height = 1; * @return The startHeight. */ long getStartHeight(); /** *
     * The last block that the version supports.
     * 
* * uint64 end_height = 2; * @return The endHeight. */ long getEndHeight(); } /** * Protobuf type {@code flow.entities.CompatibleRange} */ public static final class CompatibleRange extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:flow.entities.CompatibleRange) CompatibleRangeOrBuilder { private static final long serialVersionUID = 0L; // Use CompatibleRange.newBuilder() to construct. private CompatibleRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CompatibleRange() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CompatibleRange(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CompatibleRange( 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: { startHeight_ = input.readUInt64(); break; } case 16: { endHeight_ = 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_CompatibleRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.onflow.protobuf.entities.NodeVersionInfoOuterClass.internal_static_flow_entities_CompatibleRange_fieldAccessorTable .ensureFieldAccessorsInitialized( org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange.class, org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange.Builder.class); } public static final int START_HEIGHT_FIELD_NUMBER = 1; private long startHeight_; /** *
     * The first block that the version supports.
     * 
* * uint64 start_height = 1; * @return The startHeight. */ @java.lang.Override public long getStartHeight() { return startHeight_; } public static final int END_HEIGHT_FIELD_NUMBER = 2; private long endHeight_; /** *
     * The last block that the version supports.
     * 
* * uint64 end_height = 2; * @return The endHeight. */ @java.lang.Override public long getEndHeight() { return endHeight_; } 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 (startHeight_ != 0L) { output.writeUInt64(1, startHeight_); } if (endHeight_ != 0L) { output.writeUInt64(2, endHeight_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startHeight_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, startHeight_); } if (endHeight_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, endHeight_); } 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.CompatibleRange)) { return super.equals(obj); } org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange other = (org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange) obj; if (getStartHeight() != other.getStartHeight()) return false; if (getEndHeight() != other.getEndHeight()) 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) + START_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartHeight()); hash = (37 * hash) + END_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEndHeight()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange 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.CompatibleRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange 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.CompatibleRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange 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.CompatibleRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange 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.CompatibleRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange 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.CompatibleRange 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.CompatibleRange 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.CompatibleRange 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.CompatibleRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flow.entities.CompatibleRange) org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.onflow.protobuf.entities.NodeVersionInfoOuterClass.internal_static_flow_entities_CompatibleRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.onflow.protobuf.entities.NodeVersionInfoOuterClass.internal_static_flow_entities_CompatibleRange_fieldAccessorTable .ensureFieldAccessorsInitialized( org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange.class, org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange.Builder.class); } // Construct using org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange.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(); startHeight_ = 0L; endHeight_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.onflow.protobuf.entities.NodeVersionInfoOuterClass.internal_static_flow_entities_CompatibleRange_descriptor; } @java.lang.Override public org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange getDefaultInstanceForType() { return org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange.getDefaultInstance(); } @java.lang.Override public org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange build() { org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange buildPartial() { org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange result = new org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange(this); result.startHeight_ = startHeight_; result.endHeight_ = endHeight_; 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.CompatibleRange) { return mergeFrom((org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange other) { if (other == org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange.getDefaultInstance()) return this; if (other.getStartHeight() != 0L) { setStartHeight(other.getStartHeight()); } if (other.getEndHeight() != 0L) { setEndHeight(other.getEndHeight()); } 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.CompatibleRange parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long startHeight_ ; /** *
       * The first block that the version supports.
       * 
* * uint64 start_height = 1; * @return The startHeight. */ @java.lang.Override public long getStartHeight() { return startHeight_; } /** *
       * The first block that the version supports.
       * 
* * uint64 start_height = 1; * @param value The startHeight to set. * @return This builder for chaining. */ public Builder setStartHeight(long value) { startHeight_ = value; onChanged(); return this; } /** *
       * The first block that the version supports.
       * 
* * uint64 start_height = 1; * @return This builder for chaining. */ public Builder clearStartHeight() { startHeight_ = 0L; onChanged(); return this; } private long endHeight_ ; /** *
       * The last block that the version supports.
       * 
* * uint64 end_height = 2; * @return The endHeight. */ @java.lang.Override public long getEndHeight() { return endHeight_; } /** *
       * The last block that the version supports.
       * 
* * uint64 end_height = 2; * @param value The endHeight to set. * @return This builder for chaining. */ public Builder setEndHeight(long value) { endHeight_ = value; onChanged(); return this; } /** *
       * The last block that the version supports.
       * 
* * uint64 end_height = 2; * @return This builder for chaining. */ public Builder clearEndHeight() { endHeight_ = 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.CompatibleRange) } // @@protoc_insertion_point(class_scope:flow.entities.CompatibleRange) private static final org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange(); } public static org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CompatibleRange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CompatibleRange(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.CompatibleRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } 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(); /** *
     * The compatible version range.
     * 
* * .flow.entities.CompatibleRange compatible_range = 7; * @return Whether the compatibleRange field is set. */ boolean hasCompatibleRange(); /** *
     * The compatible version range.
     * 
* * .flow.entities.CompatibleRange compatible_range = 7; * @return The compatibleRange. */ org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange getCompatibleRange(); /** *
     * The compatible version range.
     * 
* * .flow.entities.CompatibleRange compatible_range = 7; */ org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRangeOrBuilder getCompatibleRangeOrBuilder(); } /** * 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; } case 58: { org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange.Builder subBuilder = null; if (compatibleRange_ != null) { subBuilder = compatibleRange_.toBuilder(); } compatibleRange_ = input.readMessage(org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(compatibleRange_); compatibleRange_ = subBuilder.buildPartial(); } 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_; } public static final int COMPATIBLE_RANGE_FIELD_NUMBER = 7; private org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange compatibleRange_; /** *
     * The compatible version range.
     * 
* * .flow.entities.CompatibleRange compatible_range = 7; * @return Whether the compatibleRange field is set. */ @java.lang.Override public boolean hasCompatibleRange() { return compatibleRange_ != null; } /** *
     * The compatible version range.
     * 
* * .flow.entities.CompatibleRange compatible_range = 7; * @return The compatibleRange. */ @java.lang.Override public org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange getCompatibleRange() { return compatibleRange_ == null ? org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange.getDefaultInstance() : compatibleRange_; } /** *
     * The compatible version range.
     * 
* * .flow.entities.CompatibleRange compatible_range = 7; */ @java.lang.Override public org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRangeOrBuilder getCompatibleRangeOrBuilder() { return getCompatibleRange(); } 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_); } if (compatibleRange_ != null) { output.writeMessage(7, getCompatibleRange()); } 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_); } if (compatibleRange_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getCompatibleRange()); } 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 (hasCompatibleRange() != other.hasCompatibleRange()) return false; if (hasCompatibleRange()) { if (!getCompatibleRange() .equals(other.getCompatibleRange())) 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()); if (hasCompatibleRange()) { hash = (37 * hash) + COMPATIBLE_RANGE_FIELD_NUMBER; hash = (53 * hash) + getCompatibleRange().hashCode(); } 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; if (compatibleRangeBuilder_ == null) { compatibleRange_ = null; } else { compatibleRange_ = null; compatibleRangeBuilder_ = null; } 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_; if (compatibleRangeBuilder_ == null) { result.compatibleRange_ = compatibleRange_; } else { result.compatibleRange_ = compatibleRangeBuilder_.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 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()); } if (other.hasCompatibleRange()) { mergeCompatibleRange(other.getCompatibleRange()); } 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; } private org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange compatibleRange_; private com.google.protobuf.SingleFieldBuilderV3< org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange, org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange.Builder, org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRangeOrBuilder> compatibleRangeBuilder_; /** *
       * The compatible version range.
       * 
* * .flow.entities.CompatibleRange compatible_range = 7; * @return Whether the compatibleRange field is set. */ public boolean hasCompatibleRange() { return compatibleRangeBuilder_ != null || compatibleRange_ != null; } /** *
       * The compatible version range.
       * 
* * .flow.entities.CompatibleRange compatible_range = 7; * @return The compatibleRange. */ public org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange getCompatibleRange() { if (compatibleRangeBuilder_ == null) { return compatibleRange_ == null ? org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange.getDefaultInstance() : compatibleRange_; } else { return compatibleRangeBuilder_.getMessage(); } } /** *
       * The compatible version range.
       * 
* * .flow.entities.CompatibleRange compatible_range = 7; */ public Builder setCompatibleRange(org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange value) { if (compatibleRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } compatibleRange_ = value; onChanged(); } else { compatibleRangeBuilder_.setMessage(value); } return this; } /** *
       * The compatible version range.
       * 
* * .flow.entities.CompatibleRange compatible_range = 7; */ public Builder setCompatibleRange( org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange.Builder builderForValue) { if (compatibleRangeBuilder_ == null) { compatibleRange_ = builderForValue.build(); onChanged(); } else { compatibleRangeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The compatible version range.
       * 
* * .flow.entities.CompatibleRange compatible_range = 7; */ public Builder mergeCompatibleRange(org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange value) { if (compatibleRangeBuilder_ == null) { if (compatibleRange_ != null) { compatibleRange_ = org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange.newBuilder(compatibleRange_).mergeFrom(value).buildPartial(); } else { compatibleRange_ = value; } onChanged(); } else { compatibleRangeBuilder_.mergeFrom(value); } return this; } /** *
       * The compatible version range.
       * 
* * .flow.entities.CompatibleRange compatible_range = 7; */ public Builder clearCompatibleRange() { if (compatibleRangeBuilder_ == null) { compatibleRange_ = null; onChanged(); } else { compatibleRange_ = null; compatibleRangeBuilder_ = null; } return this; } /** *
       * The compatible version range.
       * 
* * .flow.entities.CompatibleRange compatible_range = 7; */ public org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange.Builder getCompatibleRangeBuilder() { onChanged(); return getCompatibleRangeFieldBuilder().getBuilder(); } /** *
       * The compatible version range.
       * 
* * .flow.entities.CompatibleRange compatible_range = 7; */ public org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRangeOrBuilder getCompatibleRangeOrBuilder() { if (compatibleRangeBuilder_ != null) { return compatibleRangeBuilder_.getMessageOrBuilder(); } else { return compatibleRange_ == null ? org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange.getDefaultInstance() : compatibleRange_; } } /** *
       * The compatible version range.
       * 
* * .flow.entities.CompatibleRange compatible_range = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange, org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange.Builder, org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRangeOrBuilder> getCompatibleRangeFieldBuilder() { if (compatibleRangeBuilder_ == null) { compatibleRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange, org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRange.Builder, org.onflow.protobuf.entities.NodeVersionInfoOuterClass.CompatibleRangeOrBuilder>( getCompatibleRange(), getParentForChildren(), isClean()); compatibleRange_ = null; } return compatibleRangeBuilder_; } @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_CompatibleRange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flow_entities_CompatibleRange_fieldAccessorTable; 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\";\n\017CompatibleRange\022\024\n\014sta" + "rt_height\030\001 \001(\004\022\022\n\nend_height\030\002 \001(\004\"\330\001\n\017" + "NodeVersionInfo\022\016\n\006semver\030\001 \001(\t\022\016\n\006commi" + "t\030\002 \001(\t\022\020\n\010spork_id\030\003 \001(\014\022\030\n\020protocol_ve" + "rsion\030\004 \001(\004\022\037\n\027spork_root_block_height\030\005" + " \001(\004\022\036\n\026node_root_block_height\030\006 \001(\004\0228\n\020" + "compatible_range\030\007 \001(\0132\036.flow.entities.C" + "ompatibleRangeBP\n\034org.onflow.protobuf.en" + "titiesZ0github.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_CompatibleRange_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_flow_entities_CompatibleRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flow_entities_CompatibleRange_descriptor, new java.lang.String[] { "StartHeight", "EndHeight", }); internal_static_flow_entities_NodeVersionInfo_descriptor = getDescriptor().getMessageTypes().get(1); 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", "CompatibleRange", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy