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

com.hedera.hapi.block.protoc.ServerStatusResponse Maven / Gradle / Ivy

There is a newer version: 0.54.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: block_service.proto

package com.hedera.hapi.block.protoc;

/**
 * 
 **
 * A response to a server status request.
 * This message SHALL provide a client with information needed to successfully
 * query this block node server for a block, stream of blocks, or
 * state snapshot.<br/>
 * A request for blocks between `first_available_block` and
 * `last_available_block`, inclusive, SHOULD succeed. Any request for blocks
 * outside that range SHOULD fail.
 * 
* * Protobuf type {@code com.hedera.hapi.block.ServerStatusResponse} */ public final class ServerStatusResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.hedera.hapi.block.ServerStatusResponse) ServerStatusResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ServerStatusResponse.newBuilder() to construct. private ServerStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ServerStatusResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ServerStatusResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ServerStatusResponse( 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: { firstAvailableBlock_ = input.readUInt64(); break; } case 16: { lastAvailableBlock_ = input.readUInt64(); break; } case 24: { onlyLatestState_ = input.readBool(); break; } case 34: { com.hedera.hapi.block.protoc.BlockNodeVersions.Builder subBuilder = null; if (versionInformation_ != null) { subBuilder = versionInformation_.toBuilder(); } versionInformation_ = input.readMessage(com.hedera.hapi.block.protoc.BlockNodeVersions.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(versionInformation_); versionInformation_ = 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 com.hedera.hapi.block.protoc.BlockService.internal_static_com_hedera_hapi_block_ServerStatusResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hapi.block.protoc.BlockService.internal_static_com_hedera_hapi_block_ServerStatusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hapi.block.protoc.ServerStatusResponse.class, com.hedera.hapi.block.protoc.ServerStatusResponse.Builder.class); } public static final int FIRST_AVAILABLE_BLOCK_FIELD_NUMBER = 1; private long firstAvailableBlock_; /** *
   **
   * The lowest numbered block available on this block node server.
   * <p>
   * Any request for a block with lower number than this value SHALL fail
   * with a status value indicating and invalid start block number.
   * 
* * uint64 first_available_block = 1; * @return The firstAvailableBlock. */ @java.lang.Override public long getFirstAvailableBlock() { return firstAvailableBlock_; } public static final int LAST_AVAILABLE_BLOCK_FIELD_NUMBER = 2; private long lastAvailableBlock_; /** *
   **
   * The greatest block number available from this block node server.
   * <p>
   * Any request for a block with a block number higher than this
   * value MAY fail.
   * 
* * uint64 last_available_block = 2; * @return The lastAvailableBlock. */ @java.lang.Override public long getLastAvailableBlock() { return lastAvailableBlock_; } public static final int ONLY_LATEST_STATE_FIELD_NUMBER = 3; private boolean onlyLatestState_; /** *
   **
   * A flag indicating this block node only offers the latest state snapshot.
   * <p>
   * If this value is `true` the client MUST set `retrieve_latest` `true`
   * in any `StateSnapshotRequest` sent to this block node.
   * 
* * bool only_latest_state = 3; * @return The onlyLatestState. */ @java.lang.Override public boolean getOnlyLatestState() { return onlyLatestState_; } public static final int VERSION_INFORMATION_FIELD_NUMBER = 4; private com.hedera.hapi.block.protoc.BlockNodeVersions versionInformation_; /** *
   **
   * Version information.<br/>
   * Versions for the block network address book, block stream protocol
   * buffer schema, and block node software.
   * 
* * .com.hedera.hapi.block.BlockNodeVersions version_information = 4; * @return Whether the versionInformation field is set. */ @java.lang.Override public boolean hasVersionInformation() { return versionInformation_ != null; } /** *
   **
   * Version information.<br/>
   * Versions for the block network address book, block stream protocol
   * buffer schema, and block node software.
   * 
* * .com.hedera.hapi.block.BlockNodeVersions version_information = 4; * @return The versionInformation. */ @java.lang.Override public com.hedera.hapi.block.protoc.BlockNodeVersions getVersionInformation() { return versionInformation_ == null ? com.hedera.hapi.block.protoc.BlockNodeVersions.getDefaultInstance() : versionInformation_; } /** *
   **
   * Version information.<br/>
   * Versions for the block network address book, block stream protocol
   * buffer schema, and block node software.
   * 
* * .com.hedera.hapi.block.BlockNodeVersions version_information = 4; */ @java.lang.Override public com.hedera.hapi.block.protoc.BlockNodeVersionsOrBuilder getVersionInformationOrBuilder() { return getVersionInformation(); } 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 (firstAvailableBlock_ != 0L) { output.writeUInt64(1, firstAvailableBlock_); } if (lastAvailableBlock_ != 0L) { output.writeUInt64(2, lastAvailableBlock_); } if (onlyLatestState_ != false) { output.writeBool(3, onlyLatestState_); } if (versionInformation_ != null) { output.writeMessage(4, getVersionInformation()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (firstAvailableBlock_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, firstAvailableBlock_); } if (lastAvailableBlock_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, lastAvailableBlock_); } if (onlyLatestState_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, onlyLatestState_); } if (versionInformation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getVersionInformation()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.hedera.hapi.block.protoc.ServerStatusResponse)) { return super.equals(obj); } com.hedera.hapi.block.protoc.ServerStatusResponse other = (com.hedera.hapi.block.protoc.ServerStatusResponse) obj; if (getFirstAvailableBlock() != other.getFirstAvailableBlock()) return false; if (getLastAvailableBlock() != other.getLastAvailableBlock()) return false; if (getOnlyLatestState() != other.getOnlyLatestState()) return false; if (hasVersionInformation() != other.hasVersionInformation()) return false; if (hasVersionInformation()) { if (!getVersionInformation() .equals(other.getVersionInformation())) 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) + FIRST_AVAILABLE_BLOCK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFirstAvailableBlock()); hash = (37 * hash) + LAST_AVAILABLE_BLOCK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLastAvailableBlock()); hash = (37 * hash) + ONLY_LATEST_STATE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getOnlyLatestState()); if (hasVersionInformation()) { hash = (37 * hash) + VERSION_INFORMATION_FIELD_NUMBER; hash = (53 * hash) + getVersionInformation().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hapi.block.protoc.ServerStatusResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hapi.block.protoc.ServerStatusResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hapi.block.protoc.ServerStatusResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hapi.block.protoc.ServerStatusResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hapi.block.protoc.ServerStatusResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hapi.block.protoc.ServerStatusResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hapi.block.protoc.ServerStatusResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hapi.block.protoc.ServerStatusResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hapi.block.protoc.ServerStatusResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hapi.block.protoc.ServerStatusResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hapi.block.protoc.ServerStatusResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hapi.block.protoc.ServerStatusResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.hedera.hapi.block.protoc.ServerStatusResponse 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; } /** *
   **
   * A response to a server status request.
   * This message SHALL provide a client with information needed to successfully
   * query this block node server for a block, stream of blocks, or
   * state snapshot.<br/>
   * A request for blocks between `first_available_block` and
   * `last_available_block`, inclusive, SHOULD succeed. Any request for blocks
   * outside that range SHOULD fail.
   * 
* * Protobuf type {@code com.hedera.hapi.block.ServerStatusResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.hedera.hapi.block.ServerStatusResponse) com.hedera.hapi.block.protoc.ServerStatusResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hapi.block.protoc.BlockService.internal_static_com_hedera_hapi_block_ServerStatusResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hapi.block.protoc.BlockService.internal_static_com_hedera_hapi_block_ServerStatusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hapi.block.protoc.ServerStatusResponse.class, com.hedera.hapi.block.protoc.ServerStatusResponse.Builder.class); } // Construct using com.hedera.hapi.block.protoc.ServerStatusResponse.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(); firstAvailableBlock_ = 0L; lastAvailableBlock_ = 0L; onlyLatestState_ = false; if (versionInformationBuilder_ == null) { versionInformation_ = null; } else { versionInformation_ = null; versionInformationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hapi.block.protoc.BlockService.internal_static_com_hedera_hapi_block_ServerStatusResponse_descriptor; } @java.lang.Override public com.hedera.hapi.block.protoc.ServerStatusResponse getDefaultInstanceForType() { return com.hedera.hapi.block.protoc.ServerStatusResponse.getDefaultInstance(); } @java.lang.Override public com.hedera.hapi.block.protoc.ServerStatusResponse build() { com.hedera.hapi.block.protoc.ServerStatusResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hapi.block.protoc.ServerStatusResponse buildPartial() { com.hedera.hapi.block.protoc.ServerStatusResponse result = new com.hedera.hapi.block.protoc.ServerStatusResponse(this); result.firstAvailableBlock_ = firstAvailableBlock_; result.lastAvailableBlock_ = lastAvailableBlock_; result.onlyLatestState_ = onlyLatestState_; if (versionInformationBuilder_ == null) { result.versionInformation_ = versionInformation_; } else { result.versionInformation_ = versionInformationBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.hedera.hapi.block.protoc.ServerStatusResponse) { return mergeFrom((com.hedera.hapi.block.protoc.ServerStatusResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hapi.block.protoc.ServerStatusResponse other) { if (other == com.hedera.hapi.block.protoc.ServerStatusResponse.getDefaultInstance()) return this; if (other.getFirstAvailableBlock() != 0L) { setFirstAvailableBlock(other.getFirstAvailableBlock()); } if (other.getLastAvailableBlock() != 0L) { setLastAvailableBlock(other.getLastAvailableBlock()); } if (other.getOnlyLatestState() != false) { setOnlyLatestState(other.getOnlyLatestState()); } if (other.hasVersionInformation()) { mergeVersionInformation(other.getVersionInformation()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.hedera.hapi.block.protoc.ServerStatusResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hedera.hapi.block.protoc.ServerStatusResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long firstAvailableBlock_ ; /** *
     **
     * The lowest numbered block available on this block node server.
     * <p>
     * Any request for a block with lower number than this value SHALL fail
     * with a status value indicating and invalid start block number.
     * 
* * uint64 first_available_block = 1; * @return The firstAvailableBlock. */ @java.lang.Override public long getFirstAvailableBlock() { return firstAvailableBlock_; } /** *
     **
     * The lowest numbered block available on this block node server.
     * <p>
     * Any request for a block with lower number than this value SHALL fail
     * with a status value indicating and invalid start block number.
     * 
* * uint64 first_available_block = 1; * @param value The firstAvailableBlock to set. * @return This builder for chaining. */ public Builder setFirstAvailableBlock(long value) { firstAvailableBlock_ = value; onChanged(); return this; } /** *
     **
     * The lowest numbered block available on this block node server.
     * <p>
     * Any request for a block with lower number than this value SHALL fail
     * with a status value indicating and invalid start block number.
     * 
* * uint64 first_available_block = 1; * @return This builder for chaining. */ public Builder clearFirstAvailableBlock() { firstAvailableBlock_ = 0L; onChanged(); return this; } private long lastAvailableBlock_ ; /** *
     **
     * The greatest block number available from this block node server.
     * <p>
     * Any request for a block with a block number higher than this
     * value MAY fail.
     * 
* * uint64 last_available_block = 2; * @return The lastAvailableBlock. */ @java.lang.Override public long getLastAvailableBlock() { return lastAvailableBlock_; } /** *
     **
     * The greatest block number available from this block node server.
     * <p>
     * Any request for a block with a block number higher than this
     * value MAY fail.
     * 
* * uint64 last_available_block = 2; * @param value The lastAvailableBlock to set. * @return This builder for chaining. */ public Builder setLastAvailableBlock(long value) { lastAvailableBlock_ = value; onChanged(); return this; } /** *
     **
     * The greatest block number available from this block node server.
     * <p>
     * Any request for a block with a block number higher than this
     * value MAY fail.
     * 
* * uint64 last_available_block = 2; * @return This builder for chaining. */ public Builder clearLastAvailableBlock() { lastAvailableBlock_ = 0L; onChanged(); return this; } private boolean onlyLatestState_ ; /** *
     **
     * A flag indicating this block node only offers the latest state snapshot.
     * <p>
     * If this value is `true` the client MUST set `retrieve_latest` `true`
     * in any `StateSnapshotRequest` sent to this block node.
     * 
* * bool only_latest_state = 3; * @return The onlyLatestState. */ @java.lang.Override public boolean getOnlyLatestState() { return onlyLatestState_; } /** *
     **
     * A flag indicating this block node only offers the latest state snapshot.
     * <p>
     * If this value is `true` the client MUST set `retrieve_latest` `true`
     * in any `StateSnapshotRequest` sent to this block node.
     * 
* * bool only_latest_state = 3; * @param value The onlyLatestState to set. * @return This builder for chaining. */ public Builder setOnlyLatestState(boolean value) { onlyLatestState_ = value; onChanged(); return this; } /** *
     **
     * A flag indicating this block node only offers the latest state snapshot.
     * <p>
     * If this value is `true` the client MUST set `retrieve_latest` `true`
     * in any `StateSnapshotRequest` sent to this block node.
     * 
* * bool only_latest_state = 3; * @return This builder for chaining. */ public Builder clearOnlyLatestState() { onlyLatestState_ = false; onChanged(); return this; } private com.hedera.hapi.block.protoc.BlockNodeVersions versionInformation_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hapi.block.protoc.BlockNodeVersions, com.hedera.hapi.block.protoc.BlockNodeVersions.Builder, com.hedera.hapi.block.protoc.BlockNodeVersionsOrBuilder> versionInformationBuilder_; /** *
     **
     * Version information.<br/>
     * Versions for the block network address book, block stream protocol
     * buffer schema, and block node software.
     * 
* * .com.hedera.hapi.block.BlockNodeVersions version_information = 4; * @return Whether the versionInformation field is set. */ public boolean hasVersionInformation() { return versionInformationBuilder_ != null || versionInformation_ != null; } /** *
     **
     * Version information.<br/>
     * Versions for the block network address book, block stream protocol
     * buffer schema, and block node software.
     * 
* * .com.hedera.hapi.block.BlockNodeVersions version_information = 4; * @return The versionInformation. */ public com.hedera.hapi.block.protoc.BlockNodeVersions getVersionInformation() { if (versionInformationBuilder_ == null) { return versionInformation_ == null ? com.hedera.hapi.block.protoc.BlockNodeVersions.getDefaultInstance() : versionInformation_; } else { return versionInformationBuilder_.getMessage(); } } /** *
     **
     * Version information.<br/>
     * Versions for the block network address book, block stream protocol
     * buffer schema, and block node software.
     * 
* * .com.hedera.hapi.block.BlockNodeVersions version_information = 4; */ public Builder setVersionInformation(com.hedera.hapi.block.protoc.BlockNodeVersions value) { if (versionInformationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } versionInformation_ = value; onChanged(); } else { versionInformationBuilder_.setMessage(value); } return this; } /** *
     **
     * Version information.<br/>
     * Versions for the block network address book, block stream protocol
     * buffer schema, and block node software.
     * 
* * .com.hedera.hapi.block.BlockNodeVersions version_information = 4; */ public Builder setVersionInformation( com.hedera.hapi.block.protoc.BlockNodeVersions.Builder builderForValue) { if (versionInformationBuilder_ == null) { versionInformation_ = builderForValue.build(); onChanged(); } else { versionInformationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * Version information.<br/>
     * Versions for the block network address book, block stream protocol
     * buffer schema, and block node software.
     * 
* * .com.hedera.hapi.block.BlockNodeVersions version_information = 4; */ public Builder mergeVersionInformation(com.hedera.hapi.block.protoc.BlockNodeVersions value) { if (versionInformationBuilder_ == null) { if (versionInformation_ != null) { versionInformation_ = com.hedera.hapi.block.protoc.BlockNodeVersions.newBuilder(versionInformation_).mergeFrom(value).buildPartial(); } else { versionInformation_ = value; } onChanged(); } else { versionInformationBuilder_.mergeFrom(value); } return this; } /** *
     **
     * Version information.<br/>
     * Versions for the block network address book, block stream protocol
     * buffer schema, and block node software.
     * 
* * .com.hedera.hapi.block.BlockNodeVersions version_information = 4; */ public Builder clearVersionInformation() { if (versionInformationBuilder_ == null) { versionInformation_ = null; onChanged(); } else { versionInformation_ = null; versionInformationBuilder_ = null; } return this; } /** *
     **
     * Version information.<br/>
     * Versions for the block network address book, block stream protocol
     * buffer schema, and block node software.
     * 
* * .com.hedera.hapi.block.BlockNodeVersions version_information = 4; */ public com.hedera.hapi.block.protoc.BlockNodeVersions.Builder getVersionInformationBuilder() { onChanged(); return getVersionInformationFieldBuilder().getBuilder(); } /** *
     **
     * Version information.<br/>
     * Versions for the block network address book, block stream protocol
     * buffer schema, and block node software.
     * 
* * .com.hedera.hapi.block.BlockNodeVersions version_information = 4; */ public com.hedera.hapi.block.protoc.BlockNodeVersionsOrBuilder getVersionInformationOrBuilder() { if (versionInformationBuilder_ != null) { return versionInformationBuilder_.getMessageOrBuilder(); } else { return versionInformation_ == null ? com.hedera.hapi.block.protoc.BlockNodeVersions.getDefaultInstance() : versionInformation_; } } /** *
     **
     * Version information.<br/>
     * Versions for the block network address book, block stream protocol
     * buffer schema, and block node software.
     * 
* * .com.hedera.hapi.block.BlockNodeVersions version_information = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hapi.block.protoc.BlockNodeVersions, com.hedera.hapi.block.protoc.BlockNodeVersions.Builder, com.hedera.hapi.block.protoc.BlockNodeVersionsOrBuilder> getVersionInformationFieldBuilder() { if (versionInformationBuilder_ == null) { versionInformationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hapi.block.protoc.BlockNodeVersions, com.hedera.hapi.block.protoc.BlockNodeVersions.Builder, com.hedera.hapi.block.protoc.BlockNodeVersionsOrBuilder>( getVersionInformation(), getParentForChildren(), isClean()); versionInformation_ = null; } return versionInformationBuilder_; } @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:com.hedera.hapi.block.ServerStatusResponse) } // @@protoc_insertion_point(class_scope:com.hedera.hapi.block.ServerStatusResponse) private static final com.hedera.hapi.block.protoc.ServerStatusResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hapi.block.protoc.ServerStatusResponse(); } public static com.hedera.hapi.block.protoc.ServerStatusResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ServerStatusResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ServerStatusResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.hedera.hapi.block.protoc.ServerStatusResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy