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

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

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

package com.hedera.hapi.block.protoc;

/**
 * 
 **
 * Version information for a block node.
 * The `stream_proto_version` SHOULD be an officially released Block Stream
 * version.
 * The `address_book_version` SHALL be defined by networks of block nodes.
 * The `software_version` SHALL be defined by the implementation of the
 * Block Node specification.
 * 
* * Protobuf type {@code com.hedera.hapi.block.BlockNodeVersions} */ public final class BlockNodeVersions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.hedera.hapi.block.BlockNodeVersions) BlockNodeVersionsOrBuilder { private static final long serialVersionUID = 0L; // Use BlockNodeVersions.newBuilder() to construct. private BlockNodeVersions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockNodeVersions() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BlockNodeVersions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlockNodeVersions( 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: { com.hederahashgraph.api.proto.java.SemanticVersion.Builder subBuilder = null; if (addressBookVersion_ != null) { subBuilder = addressBookVersion_.toBuilder(); } addressBookVersion_ = input.readMessage(com.hederahashgraph.api.proto.java.SemanticVersion.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(addressBookVersion_); addressBookVersion_ = subBuilder.buildPartial(); } break; } case 18: { com.hederahashgraph.api.proto.java.SemanticVersion.Builder subBuilder = null; if (streamProtoVersion_ != null) { subBuilder = streamProtoVersion_.toBuilder(); } streamProtoVersion_ = input.readMessage(com.hederahashgraph.api.proto.java.SemanticVersion.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(streamProtoVersion_); streamProtoVersion_ = subBuilder.buildPartial(); } break; } case 26: { com.hederahashgraph.api.proto.java.SemanticVersion.Builder subBuilder = null; if (softwareVersion_ != null) { subBuilder = softwareVersion_.toBuilder(); } softwareVersion_ = input.readMessage(com.hederahashgraph.api.proto.java.SemanticVersion.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(softwareVersion_); softwareVersion_ = 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_BlockNodeVersions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hapi.block.protoc.BlockService.internal_static_com_hedera_hapi_block_BlockNodeVersions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hapi.block.protoc.BlockNodeVersions.class, com.hedera.hapi.block.protoc.BlockNodeVersions.Builder.class); } public static final int ADDRESS_BOOK_VERSION_FIELD_NUMBER = 1; private com.hederahashgraph.api.proto.java.SemanticVersion addressBookVersion_; /** *
   **
   * A version of the Block Node network address book.<br/>
   * The address book version describes what version of address book
   * this block node holds for discovering and identifying other block nodes.
   * <p>
   * This version SHALL be specific to each "network" of interconnected
   * Block Nodes.
   * 
* * .proto.SemanticVersion address_book_version = 1; * @return Whether the addressBookVersion field is set. */ @java.lang.Override public boolean hasAddressBookVersion() { return addressBookVersion_ != null; } /** *
   **
   * A version of the Block Node network address book.<br/>
   * The address book version describes what version of address book
   * this block node holds for discovering and identifying other block nodes.
   * <p>
   * This version SHALL be specific to each "network" of interconnected
   * Block Nodes.
   * 
* * .proto.SemanticVersion address_book_version = 1; * @return The addressBookVersion. */ @java.lang.Override public com.hederahashgraph.api.proto.java.SemanticVersion getAddressBookVersion() { return addressBookVersion_ == null ? com.hederahashgraph.api.proto.java.SemanticVersion.getDefaultInstance() : addressBookVersion_; } /** *
   **
   * A version of the Block Node network address book.<br/>
   * The address book version describes what version of address book
   * this block node holds for discovering and identifying other block nodes.
   * <p>
   * This version SHALL be specific to each "network" of interconnected
   * Block Nodes.
   * 
* * .proto.SemanticVersion address_book_version = 1; */ @java.lang.Override public com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder getAddressBookVersionOrBuilder() { return getAddressBookVersion(); } public static final int STREAM_PROTO_VERSION_FIELD_NUMBER = 2; private com.hederahashgraph.api.proto.java.SemanticVersion streamProtoVersion_; /** *
   **
   * A version of the Block Stream specification.<br/>
   * This is the Stream version currently supported by this Block Node.
   * <p>
   * Implementations SHOULD make reasonable effort to ensure the latest
   * released Block Stream version is supported.<br/>
   * This version MUST be an officially released Block Stream version if
   * the responding block node is not private.
   * 
* * .proto.SemanticVersion stream_proto_version = 2; * @return Whether the streamProtoVersion field is set. */ @java.lang.Override public boolean hasStreamProtoVersion() { return streamProtoVersion_ != null; } /** *
   **
   * A version of the Block Stream specification.<br/>
   * This is the Stream version currently supported by this Block Node.
   * <p>
   * Implementations SHOULD make reasonable effort to ensure the latest
   * released Block Stream version is supported.<br/>
   * This version MUST be an officially released Block Stream version if
   * the responding block node is not private.
   * 
* * .proto.SemanticVersion stream_proto_version = 2; * @return The streamProtoVersion. */ @java.lang.Override public com.hederahashgraph.api.proto.java.SemanticVersion getStreamProtoVersion() { return streamProtoVersion_ == null ? com.hederahashgraph.api.proto.java.SemanticVersion.getDefaultInstance() : streamProtoVersion_; } /** *
   **
   * A version of the Block Stream specification.<br/>
   * This is the Stream version currently supported by this Block Node.
   * <p>
   * Implementations SHOULD make reasonable effort to ensure the latest
   * released Block Stream version is supported.<br/>
   * This version MUST be an officially released Block Stream version if
   * the responding block node is not private.
   * 
* * .proto.SemanticVersion stream_proto_version = 2; */ @java.lang.Override public com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder getStreamProtoVersionOrBuilder() { return getStreamProtoVersion(); } public static final int SOFTWARE_VERSION_FIELD_NUMBER = 3; private com.hederahashgraph.api.proto.java.SemanticVersion softwareVersion_; /** *
   **
   * A version of the block node software.<br/>
   * This is the software version that this block node is currently
   * running.
   * <p>
   * This value is implementation-defined.
   * 
* * .proto.SemanticVersion software_version = 3; * @return Whether the softwareVersion field is set. */ @java.lang.Override public boolean hasSoftwareVersion() { return softwareVersion_ != null; } /** *
   **
   * A version of the block node software.<br/>
   * This is the software version that this block node is currently
   * running.
   * <p>
   * This value is implementation-defined.
   * 
* * .proto.SemanticVersion software_version = 3; * @return The softwareVersion. */ @java.lang.Override public com.hederahashgraph.api.proto.java.SemanticVersion getSoftwareVersion() { return softwareVersion_ == null ? com.hederahashgraph.api.proto.java.SemanticVersion.getDefaultInstance() : softwareVersion_; } /** *
   **
   * A version of the block node software.<br/>
   * This is the software version that this block node is currently
   * running.
   * <p>
   * This value is implementation-defined.
   * 
* * .proto.SemanticVersion software_version = 3; */ @java.lang.Override public com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder getSoftwareVersionOrBuilder() { return getSoftwareVersion(); } 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 (addressBookVersion_ != null) { output.writeMessage(1, getAddressBookVersion()); } if (streamProtoVersion_ != null) { output.writeMessage(2, getStreamProtoVersion()); } if (softwareVersion_ != null) { output.writeMessage(3, getSoftwareVersion()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (addressBookVersion_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAddressBookVersion()); } if (streamProtoVersion_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStreamProtoVersion()); } if (softwareVersion_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSoftwareVersion()); } 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.BlockNodeVersions)) { return super.equals(obj); } com.hedera.hapi.block.protoc.BlockNodeVersions other = (com.hedera.hapi.block.protoc.BlockNodeVersions) obj; if (hasAddressBookVersion() != other.hasAddressBookVersion()) return false; if (hasAddressBookVersion()) { if (!getAddressBookVersion() .equals(other.getAddressBookVersion())) return false; } if (hasStreamProtoVersion() != other.hasStreamProtoVersion()) return false; if (hasStreamProtoVersion()) { if (!getStreamProtoVersion() .equals(other.getStreamProtoVersion())) return false; } if (hasSoftwareVersion() != other.hasSoftwareVersion()) return false; if (hasSoftwareVersion()) { if (!getSoftwareVersion() .equals(other.getSoftwareVersion())) 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(); if (hasAddressBookVersion()) { hash = (37 * hash) + ADDRESS_BOOK_VERSION_FIELD_NUMBER; hash = (53 * hash) + getAddressBookVersion().hashCode(); } if (hasStreamProtoVersion()) { hash = (37 * hash) + STREAM_PROTO_VERSION_FIELD_NUMBER; hash = (53 * hash) + getStreamProtoVersion().hashCode(); } if (hasSoftwareVersion()) { hash = (37 * hash) + SOFTWARE_VERSION_FIELD_NUMBER; hash = (53 * hash) + getSoftwareVersion().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hapi.block.protoc.BlockNodeVersions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hapi.block.protoc.BlockNodeVersions 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.BlockNodeVersions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hapi.block.protoc.BlockNodeVersions 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.BlockNodeVersions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hapi.block.protoc.BlockNodeVersions 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.BlockNodeVersions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hapi.block.protoc.BlockNodeVersions 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.BlockNodeVersions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hapi.block.protoc.BlockNodeVersions 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.BlockNodeVersions 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.BlockNodeVersions 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.BlockNodeVersions 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; } /** *
   **
   * Version information for a block node.
   * The `stream_proto_version` SHOULD be an officially released Block Stream
   * version.
   * The `address_book_version` SHALL be defined by networks of block nodes.
   * The `software_version` SHALL be defined by the implementation of the
   * Block Node specification.
   * 
* * Protobuf type {@code com.hedera.hapi.block.BlockNodeVersions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.hedera.hapi.block.BlockNodeVersions) com.hedera.hapi.block.protoc.BlockNodeVersionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hapi.block.protoc.BlockService.internal_static_com_hedera_hapi_block_BlockNodeVersions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hapi.block.protoc.BlockService.internal_static_com_hedera_hapi_block_BlockNodeVersions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hapi.block.protoc.BlockNodeVersions.class, com.hedera.hapi.block.protoc.BlockNodeVersions.Builder.class); } // Construct using com.hedera.hapi.block.protoc.BlockNodeVersions.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(); if (addressBookVersionBuilder_ == null) { addressBookVersion_ = null; } else { addressBookVersion_ = null; addressBookVersionBuilder_ = null; } if (streamProtoVersionBuilder_ == null) { streamProtoVersion_ = null; } else { streamProtoVersion_ = null; streamProtoVersionBuilder_ = null; } if (softwareVersionBuilder_ == null) { softwareVersion_ = null; } else { softwareVersion_ = null; softwareVersionBuilder_ = 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_BlockNodeVersions_descriptor; } @java.lang.Override public com.hedera.hapi.block.protoc.BlockNodeVersions getDefaultInstanceForType() { return com.hedera.hapi.block.protoc.BlockNodeVersions.getDefaultInstance(); } @java.lang.Override public com.hedera.hapi.block.protoc.BlockNodeVersions build() { com.hedera.hapi.block.protoc.BlockNodeVersions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hapi.block.protoc.BlockNodeVersions buildPartial() { com.hedera.hapi.block.protoc.BlockNodeVersions result = new com.hedera.hapi.block.protoc.BlockNodeVersions(this); if (addressBookVersionBuilder_ == null) { result.addressBookVersion_ = addressBookVersion_; } else { result.addressBookVersion_ = addressBookVersionBuilder_.build(); } if (streamProtoVersionBuilder_ == null) { result.streamProtoVersion_ = streamProtoVersion_; } else { result.streamProtoVersion_ = streamProtoVersionBuilder_.build(); } if (softwareVersionBuilder_ == null) { result.softwareVersion_ = softwareVersion_; } else { result.softwareVersion_ = softwareVersionBuilder_.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.BlockNodeVersions) { return mergeFrom((com.hedera.hapi.block.protoc.BlockNodeVersions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hapi.block.protoc.BlockNodeVersions other) { if (other == com.hedera.hapi.block.protoc.BlockNodeVersions.getDefaultInstance()) return this; if (other.hasAddressBookVersion()) { mergeAddressBookVersion(other.getAddressBookVersion()); } if (other.hasStreamProtoVersion()) { mergeStreamProtoVersion(other.getStreamProtoVersion()); } if (other.hasSoftwareVersion()) { mergeSoftwareVersion(other.getSoftwareVersion()); } 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.BlockNodeVersions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hedera.hapi.block.protoc.BlockNodeVersions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.hederahashgraph.api.proto.java.SemanticVersion addressBookVersion_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.SemanticVersion, com.hederahashgraph.api.proto.java.SemanticVersion.Builder, com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder> addressBookVersionBuilder_; /** *
     **
     * A version of the Block Node network address book.<br/>
     * The address book version describes what version of address book
     * this block node holds for discovering and identifying other block nodes.
     * <p>
     * This version SHALL be specific to each "network" of interconnected
     * Block Nodes.
     * 
* * .proto.SemanticVersion address_book_version = 1; * @return Whether the addressBookVersion field is set. */ public boolean hasAddressBookVersion() { return addressBookVersionBuilder_ != null || addressBookVersion_ != null; } /** *
     **
     * A version of the Block Node network address book.<br/>
     * The address book version describes what version of address book
     * this block node holds for discovering and identifying other block nodes.
     * <p>
     * This version SHALL be specific to each "network" of interconnected
     * Block Nodes.
     * 
* * .proto.SemanticVersion address_book_version = 1; * @return The addressBookVersion. */ public com.hederahashgraph.api.proto.java.SemanticVersion getAddressBookVersion() { if (addressBookVersionBuilder_ == null) { return addressBookVersion_ == null ? com.hederahashgraph.api.proto.java.SemanticVersion.getDefaultInstance() : addressBookVersion_; } else { return addressBookVersionBuilder_.getMessage(); } } /** *
     **
     * A version of the Block Node network address book.<br/>
     * The address book version describes what version of address book
     * this block node holds for discovering and identifying other block nodes.
     * <p>
     * This version SHALL be specific to each "network" of interconnected
     * Block Nodes.
     * 
* * .proto.SemanticVersion address_book_version = 1; */ public Builder setAddressBookVersion(com.hederahashgraph.api.proto.java.SemanticVersion value) { if (addressBookVersionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } addressBookVersion_ = value; onChanged(); } else { addressBookVersionBuilder_.setMessage(value); } return this; } /** *
     **
     * A version of the Block Node network address book.<br/>
     * The address book version describes what version of address book
     * this block node holds for discovering and identifying other block nodes.
     * <p>
     * This version SHALL be specific to each "network" of interconnected
     * Block Nodes.
     * 
* * .proto.SemanticVersion address_book_version = 1; */ public Builder setAddressBookVersion( com.hederahashgraph.api.proto.java.SemanticVersion.Builder builderForValue) { if (addressBookVersionBuilder_ == null) { addressBookVersion_ = builderForValue.build(); onChanged(); } else { addressBookVersionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * A version of the Block Node network address book.<br/>
     * The address book version describes what version of address book
     * this block node holds for discovering and identifying other block nodes.
     * <p>
     * This version SHALL be specific to each "network" of interconnected
     * Block Nodes.
     * 
* * .proto.SemanticVersion address_book_version = 1; */ public Builder mergeAddressBookVersion(com.hederahashgraph.api.proto.java.SemanticVersion value) { if (addressBookVersionBuilder_ == null) { if (addressBookVersion_ != null) { addressBookVersion_ = com.hederahashgraph.api.proto.java.SemanticVersion.newBuilder(addressBookVersion_).mergeFrom(value).buildPartial(); } else { addressBookVersion_ = value; } onChanged(); } else { addressBookVersionBuilder_.mergeFrom(value); } return this; } /** *
     **
     * A version of the Block Node network address book.<br/>
     * The address book version describes what version of address book
     * this block node holds for discovering and identifying other block nodes.
     * <p>
     * This version SHALL be specific to each "network" of interconnected
     * Block Nodes.
     * 
* * .proto.SemanticVersion address_book_version = 1; */ public Builder clearAddressBookVersion() { if (addressBookVersionBuilder_ == null) { addressBookVersion_ = null; onChanged(); } else { addressBookVersion_ = null; addressBookVersionBuilder_ = null; } return this; } /** *
     **
     * A version of the Block Node network address book.<br/>
     * The address book version describes what version of address book
     * this block node holds for discovering and identifying other block nodes.
     * <p>
     * This version SHALL be specific to each "network" of interconnected
     * Block Nodes.
     * 
* * .proto.SemanticVersion address_book_version = 1; */ public com.hederahashgraph.api.proto.java.SemanticVersion.Builder getAddressBookVersionBuilder() { onChanged(); return getAddressBookVersionFieldBuilder().getBuilder(); } /** *
     **
     * A version of the Block Node network address book.<br/>
     * The address book version describes what version of address book
     * this block node holds for discovering and identifying other block nodes.
     * <p>
     * This version SHALL be specific to each "network" of interconnected
     * Block Nodes.
     * 
* * .proto.SemanticVersion address_book_version = 1; */ public com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder getAddressBookVersionOrBuilder() { if (addressBookVersionBuilder_ != null) { return addressBookVersionBuilder_.getMessageOrBuilder(); } else { return addressBookVersion_ == null ? com.hederahashgraph.api.proto.java.SemanticVersion.getDefaultInstance() : addressBookVersion_; } } /** *
     **
     * A version of the Block Node network address book.<br/>
     * The address book version describes what version of address book
     * this block node holds for discovering and identifying other block nodes.
     * <p>
     * This version SHALL be specific to each "network" of interconnected
     * Block Nodes.
     * 
* * .proto.SemanticVersion address_book_version = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.SemanticVersion, com.hederahashgraph.api.proto.java.SemanticVersion.Builder, com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder> getAddressBookVersionFieldBuilder() { if (addressBookVersionBuilder_ == null) { addressBookVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.SemanticVersion, com.hederahashgraph.api.proto.java.SemanticVersion.Builder, com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder>( getAddressBookVersion(), getParentForChildren(), isClean()); addressBookVersion_ = null; } return addressBookVersionBuilder_; } private com.hederahashgraph.api.proto.java.SemanticVersion streamProtoVersion_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.SemanticVersion, com.hederahashgraph.api.proto.java.SemanticVersion.Builder, com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder> streamProtoVersionBuilder_; /** *
     **
     * A version of the Block Stream specification.<br/>
     * This is the Stream version currently supported by this Block Node.
     * <p>
     * Implementations SHOULD make reasonable effort to ensure the latest
     * released Block Stream version is supported.<br/>
     * This version MUST be an officially released Block Stream version if
     * the responding block node is not private.
     * 
* * .proto.SemanticVersion stream_proto_version = 2; * @return Whether the streamProtoVersion field is set. */ public boolean hasStreamProtoVersion() { return streamProtoVersionBuilder_ != null || streamProtoVersion_ != null; } /** *
     **
     * A version of the Block Stream specification.<br/>
     * This is the Stream version currently supported by this Block Node.
     * <p>
     * Implementations SHOULD make reasonable effort to ensure the latest
     * released Block Stream version is supported.<br/>
     * This version MUST be an officially released Block Stream version if
     * the responding block node is not private.
     * 
* * .proto.SemanticVersion stream_proto_version = 2; * @return The streamProtoVersion. */ public com.hederahashgraph.api.proto.java.SemanticVersion getStreamProtoVersion() { if (streamProtoVersionBuilder_ == null) { return streamProtoVersion_ == null ? com.hederahashgraph.api.proto.java.SemanticVersion.getDefaultInstance() : streamProtoVersion_; } else { return streamProtoVersionBuilder_.getMessage(); } } /** *
     **
     * A version of the Block Stream specification.<br/>
     * This is the Stream version currently supported by this Block Node.
     * <p>
     * Implementations SHOULD make reasonable effort to ensure the latest
     * released Block Stream version is supported.<br/>
     * This version MUST be an officially released Block Stream version if
     * the responding block node is not private.
     * 
* * .proto.SemanticVersion stream_proto_version = 2; */ public Builder setStreamProtoVersion(com.hederahashgraph.api.proto.java.SemanticVersion value) { if (streamProtoVersionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } streamProtoVersion_ = value; onChanged(); } else { streamProtoVersionBuilder_.setMessage(value); } return this; } /** *
     **
     * A version of the Block Stream specification.<br/>
     * This is the Stream version currently supported by this Block Node.
     * <p>
     * Implementations SHOULD make reasonable effort to ensure the latest
     * released Block Stream version is supported.<br/>
     * This version MUST be an officially released Block Stream version if
     * the responding block node is not private.
     * 
* * .proto.SemanticVersion stream_proto_version = 2; */ public Builder setStreamProtoVersion( com.hederahashgraph.api.proto.java.SemanticVersion.Builder builderForValue) { if (streamProtoVersionBuilder_ == null) { streamProtoVersion_ = builderForValue.build(); onChanged(); } else { streamProtoVersionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * A version of the Block Stream specification.<br/>
     * This is the Stream version currently supported by this Block Node.
     * <p>
     * Implementations SHOULD make reasonable effort to ensure the latest
     * released Block Stream version is supported.<br/>
     * This version MUST be an officially released Block Stream version if
     * the responding block node is not private.
     * 
* * .proto.SemanticVersion stream_proto_version = 2; */ public Builder mergeStreamProtoVersion(com.hederahashgraph.api.proto.java.SemanticVersion value) { if (streamProtoVersionBuilder_ == null) { if (streamProtoVersion_ != null) { streamProtoVersion_ = com.hederahashgraph.api.proto.java.SemanticVersion.newBuilder(streamProtoVersion_).mergeFrom(value).buildPartial(); } else { streamProtoVersion_ = value; } onChanged(); } else { streamProtoVersionBuilder_.mergeFrom(value); } return this; } /** *
     **
     * A version of the Block Stream specification.<br/>
     * This is the Stream version currently supported by this Block Node.
     * <p>
     * Implementations SHOULD make reasonable effort to ensure the latest
     * released Block Stream version is supported.<br/>
     * This version MUST be an officially released Block Stream version if
     * the responding block node is not private.
     * 
* * .proto.SemanticVersion stream_proto_version = 2; */ public Builder clearStreamProtoVersion() { if (streamProtoVersionBuilder_ == null) { streamProtoVersion_ = null; onChanged(); } else { streamProtoVersion_ = null; streamProtoVersionBuilder_ = null; } return this; } /** *
     **
     * A version of the Block Stream specification.<br/>
     * This is the Stream version currently supported by this Block Node.
     * <p>
     * Implementations SHOULD make reasonable effort to ensure the latest
     * released Block Stream version is supported.<br/>
     * This version MUST be an officially released Block Stream version if
     * the responding block node is not private.
     * 
* * .proto.SemanticVersion stream_proto_version = 2; */ public com.hederahashgraph.api.proto.java.SemanticVersion.Builder getStreamProtoVersionBuilder() { onChanged(); return getStreamProtoVersionFieldBuilder().getBuilder(); } /** *
     **
     * A version of the Block Stream specification.<br/>
     * This is the Stream version currently supported by this Block Node.
     * <p>
     * Implementations SHOULD make reasonable effort to ensure the latest
     * released Block Stream version is supported.<br/>
     * This version MUST be an officially released Block Stream version if
     * the responding block node is not private.
     * 
* * .proto.SemanticVersion stream_proto_version = 2; */ public com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder getStreamProtoVersionOrBuilder() { if (streamProtoVersionBuilder_ != null) { return streamProtoVersionBuilder_.getMessageOrBuilder(); } else { return streamProtoVersion_ == null ? com.hederahashgraph.api.proto.java.SemanticVersion.getDefaultInstance() : streamProtoVersion_; } } /** *
     **
     * A version of the Block Stream specification.<br/>
     * This is the Stream version currently supported by this Block Node.
     * <p>
     * Implementations SHOULD make reasonable effort to ensure the latest
     * released Block Stream version is supported.<br/>
     * This version MUST be an officially released Block Stream version if
     * the responding block node is not private.
     * 
* * .proto.SemanticVersion stream_proto_version = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.SemanticVersion, com.hederahashgraph.api.proto.java.SemanticVersion.Builder, com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder> getStreamProtoVersionFieldBuilder() { if (streamProtoVersionBuilder_ == null) { streamProtoVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.SemanticVersion, com.hederahashgraph.api.proto.java.SemanticVersion.Builder, com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder>( getStreamProtoVersion(), getParentForChildren(), isClean()); streamProtoVersion_ = null; } return streamProtoVersionBuilder_; } private com.hederahashgraph.api.proto.java.SemanticVersion softwareVersion_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.SemanticVersion, com.hederahashgraph.api.proto.java.SemanticVersion.Builder, com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder> softwareVersionBuilder_; /** *
     **
     * A version of the block node software.<br/>
     * This is the software version that this block node is currently
     * running.
     * <p>
     * This value is implementation-defined.
     * 
* * .proto.SemanticVersion software_version = 3; * @return Whether the softwareVersion field is set. */ public boolean hasSoftwareVersion() { return softwareVersionBuilder_ != null || softwareVersion_ != null; } /** *
     **
     * A version of the block node software.<br/>
     * This is the software version that this block node is currently
     * running.
     * <p>
     * This value is implementation-defined.
     * 
* * .proto.SemanticVersion software_version = 3; * @return The softwareVersion. */ public com.hederahashgraph.api.proto.java.SemanticVersion getSoftwareVersion() { if (softwareVersionBuilder_ == null) { return softwareVersion_ == null ? com.hederahashgraph.api.proto.java.SemanticVersion.getDefaultInstance() : softwareVersion_; } else { return softwareVersionBuilder_.getMessage(); } } /** *
     **
     * A version of the block node software.<br/>
     * This is the software version that this block node is currently
     * running.
     * <p>
     * This value is implementation-defined.
     * 
* * .proto.SemanticVersion software_version = 3; */ public Builder setSoftwareVersion(com.hederahashgraph.api.proto.java.SemanticVersion value) { if (softwareVersionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } softwareVersion_ = value; onChanged(); } else { softwareVersionBuilder_.setMessage(value); } return this; } /** *
     **
     * A version of the block node software.<br/>
     * This is the software version that this block node is currently
     * running.
     * <p>
     * This value is implementation-defined.
     * 
* * .proto.SemanticVersion software_version = 3; */ public Builder setSoftwareVersion( com.hederahashgraph.api.proto.java.SemanticVersion.Builder builderForValue) { if (softwareVersionBuilder_ == null) { softwareVersion_ = builderForValue.build(); onChanged(); } else { softwareVersionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * A version of the block node software.<br/>
     * This is the software version that this block node is currently
     * running.
     * <p>
     * This value is implementation-defined.
     * 
* * .proto.SemanticVersion software_version = 3; */ public Builder mergeSoftwareVersion(com.hederahashgraph.api.proto.java.SemanticVersion value) { if (softwareVersionBuilder_ == null) { if (softwareVersion_ != null) { softwareVersion_ = com.hederahashgraph.api.proto.java.SemanticVersion.newBuilder(softwareVersion_).mergeFrom(value).buildPartial(); } else { softwareVersion_ = value; } onChanged(); } else { softwareVersionBuilder_.mergeFrom(value); } return this; } /** *
     **
     * A version of the block node software.<br/>
     * This is the software version that this block node is currently
     * running.
     * <p>
     * This value is implementation-defined.
     * 
* * .proto.SemanticVersion software_version = 3; */ public Builder clearSoftwareVersion() { if (softwareVersionBuilder_ == null) { softwareVersion_ = null; onChanged(); } else { softwareVersion_ = null; softwareVersionBuilder_ = null; } return this; } /** *
     **
     * A version of the block node software.<br/>
     * This is the software version that this block node is currently
     * running.
     * <p>
     * This value is implementation-defined.
     * 
* * .proto.SemanticVersion software_version = 3; */ public com.hederahashgraph.api.proto.java.SemanticVersion.Builder getSoftwareVersionBuilder() { onChanged(); return getSoftwareVersionFieldBuilder().getBuilder(); } /** *
     **
     * A version of the block node software.<br/>
     * This is the software version that this block node is currently
     * running.
     * <p>
     * This value is implementation-defined.
     * 
* * .proto.SemanticVersion software_version = 3; */ public com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder getSoftwareVersionOrBuilder() { if (softwareVersionBuilder_ != null) { return softwareVersionBuilder_.getMessageOrBuilder(); } else { return softwareVersion_ == null ? com.hederahashgraph.api.proto.java.SemanticVersion.getDefaultInstance() : softwareVersion_; } } /** *
     **
     * A version of the block node software.<br/>
     * This is the software version that this block node is currently
     * running.
     * <p>
     * This value is implementation-defined.
     * 
* * .proto.SemanticVersion software_version = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.SemanticVersion, com.hederahashgraph.api.proto.java.SemanticVersion.Builder, com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder> getSoftwareVersionFieldBuilder() { if (softwareVersionBuilder_ == null) { softwareVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.SemanticVersion, com.hederahashgraph.api.proto.java.SemanticVersion.Builder, com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder>( getSoftwareVersion(), getParentForChildren(), isClean()); softwareVersion_ = null; } return softwareVersionBuilder_; } @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.BlockNodeVersions) } // @@protoc_insertion_point(class_scope:com.hedera.hapi.block.BlockNodeVersions) private static final com.hedera.hapi.block.protoc.BlockNodeVersions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hapi.block.protoc.BlockNodeVersions(); } public static com.hedera.hapi.block.protoc.BlockNodeVersions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BlockNodeVersions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockNodeVersions(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.BlockNodeVersions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy