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

com.hedera.hashgraph.sdk.proto.Node Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: node.proto

// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * A single address book node in the network state.
 *
 * Each node in the network address book SHALL represent a single actual
 * consensus node that is eligible to participate in network consensus.
 *
 * Address book nodes SHALL NOT be _globally_ uniquely identified. A given node
 * is only valid within a single realm and shard combination, so the identifier
 * for a network node SHALL only be unique within a single realm and shard
 * combination.
 * 
* * Protobuf type {@code com.hedera.hapi.node.state.addressbook.Node} */ public final class Node extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.hedera.hapi.node.state.addressbook.Node) NodeOrBuilder { private static final long serialVersionUID = 0L; // Use Node.newBuilder() to construct. private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Node() { description_ = ""; gossipEndpoint_ = java.util.Collections.emptyList(); serviceEndpoint_ = java.util.Collections.emptyList(); gossipCaCertificate_ = com.google.protobuf.ByteString.EMPTY; grpcCertificateHash_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Node(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.NodeOuterClass.internal_static_com_hedera_hapi_node_state_addressbook_Node_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.NodeOuterClass.internal_static_com_hedera_hapi_node_state_addressbook_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.Node.class, com.hedera.hashgraph.sdk.proto.Node.Builder.class); } private int bitField0_; public static final int NODE_ID_FIELD_NUMBER = 1; private long nodeId_ = 0L; /** *
   **
   * A consensus node identifier.
   * <p>
   * Node identifiers SHALL be unique _within_ a shard and realm,
   * but a node SHALL NOT, ever, serve multiple shards or realms,
   * therefore the node identifier MAY be repeated _between_ shards and realms.
   * 
* * uint64 node_id = 1; * @return The nodeId. */ @java.lang.Override public long getNodeId() { return nodeId_; } public static final int ACCOUNT_ID_FIELD_NUMBER = 2; private com.hedera.hashgraph.sdk.proto.AccountID accountId_; /** *
   **
   * An account identifier.
   * <p>
   * This account SHALL be owned by the entity responsible for the node.<br/>
   * This account SHALL be charged transaction fees for any transactions that
   * are submitted to the network by this node and fail due diligence checks.
   * 
* * .proto.AccountID account_id = 2; * @return Whether the accountId field is set. */ @java.lang.Override public boolean hasAccountId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * An account identifier.
   * <p>
   * This account SHALL be owned by the entity responsible for the node.<br/>
   * This account SHALL be charged transaction fees for any transactions that
   * are submitted to the network by this node and fail due diligence checks.
   * 
* * .proto.AccountID account_id = 2; * @return The accountId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getAccountId() { return accountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_; } /** *
   **
   * An account identifier.
   * <p>
   * This account SHALL be owned by the entity responsible for the node.<br/>
   * This account SHALL be charged transaction fees for any transactions that
   * are submitted to the network by this node and fail due diligence checks.
   * 
* * .proto.AccountID account_id = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIdOrBuilder() { return accountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_; } public static final int DESCRIPTION_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** *
   **
   * A short description of the node.
   * <p>
   * This value, if set, SHALL NOT exceed 100 bytes when encoded as UTF-8.
   * 
* * string description = 3; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** *
   **
   * A short description of the node.
   * <p>
   * This value, if set, SHALL NOT exceed 100 bytes when encoded as UTF-8.
   * 
* * string description = 3; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GOSSIP_ENDPOINT_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List gossipEndpoint_; /** *
   **
   * A list of service endpoints for gossip.
   * <p>
   * These endpoints SHALL represent the published endpoints to which other
   * consensus nodes may _gossip_ transactions.<br/>
   * If the network configuration value `gossipFqdnRestricted` is set, then
   * all endpoints in this list SHALL supply only IP address.<br/>
   * If the network configuration value `gossipFqdnRestricted` is _not_ set,
   * then endpoints in this list MAY supply either IP address or FQDN, but
   * SHALL NOT supply both values for the same endpoint.<br/>
   * This list SHALL NOT be empty.<br/>
   * This list SHALL NOT contain more than `10` entries.<br/>
   * The first two entries in this list SHALL be the endpoints published to
   * all consensus nodes.<br/>
   * All other entries SHALL be reserved for future use.
   * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ @java.lang.Override public java.util.List getGossipEndpointList() { return gossipEndpoint_; } /** *
   **
   * A list of service endpoints for gossip.
   * <p>
   * These endpoints SHALL represent the published endpoints to which other
   * consensus nodes may _gossip_ transactions.<br/>
   * If the network configuration value `gossipFqdnRestricted` is set, then
   * all endpoints in this list SHALL supply only IP address.<br/>
   * If the network configuration value `gossipFqdnRestricted` is _not_ set,
   * then endpoints in this list MAY supply either IP address or FQDN, but
   * SHALL NOT supply both values for the same endpoint.<br/>
   * This list SHALL NOT be empty.<br/>
   * This list SHALL NOT contain more than `10` entries.<br/>
   * The first two entries in this list SHALL be the endpoints published to
   * all consensus nodes.<br/>
   * All other entries SHALL be reserved for future use.
   * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ @java.lang.Override public java.util.List getGossipEndpointOrBuilderList() { return gossipEndpoint_; } /** *
   **
   * A list of service endpoints for gossip.
   * <p>
   * These endpoints SHALL represent the published endpoints to which other
   * consensus nodes may _gossip_ transactions.<br/>
   * If the network configuration value `gossipFqdnRestricted` is set, then
   * all endpoints in this list SHALL supply only IP address.<br/>
   * If the network configuration value `gossipFqdnRestricted` is _not_ set,
   * then endpoints in this list MAY supply either IP address or FQDN, but
   * SHALL NOT supply both values for the same endpoint.<br/>
   * This list SHALL NOT be empty.<br/>
   * This list SHALL NOT contain more than `10` entries.<br/>
   * The first two entries in this list SHALL be the endpoints published to
   * all consensus nodes.<br/>
   * All other entries SHALL be reserved for future use.
   * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ @java.lang.Override public int getGossipEndpointCount() { return gossipEndpoint_.size(); } /** *
   **
   * A list of service endpoints for gossip.
   * <p>
   * These endpoints SHALL represent the published endpoints to which other
   * consensus nodes may _gossip_ transactions.<br/>
   * If the network configuration value `gossipFqdnRestricted` is set, then
   * all endpoints in this list SHALL supply only IP address.<br/>
   * If the network configuration value `gossipFqdnRestricted` is _not_ set,
   * then endpoints in this list MAY supply either IP address or FQDN, but
   * SHALL NOT supply both values for the same endpoint.<br/>
   * This list SHALL NOT be empty.<br/>
   * This list SHALL NOT contain more than `10` entries.<br/>
   * The first two entries in this list SHALL be the endpoints published to
   * all consensus nodes.<br/>
   * All other entries SHALL be reserved for future use.
   * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ServiceEndpoint getGossipEndpoint(int index) { return gossipEndpoint_.get(index); } /** *
   **
   * A list of service endpoints for gossip.
   * <p>
   * These endpoints SHALL represent the published endpoints to which other
   * consensus nodes may _gossip_ transactions.<br/>
   * If the network configuration value `gossipFqdnRestricted` is set, then
   * all endpoints in this list SHALL supply only IP address.<br/>
   * If the network configuration value `gossipFqdnRestricted` is _not_ set,
   * then endpoints in this list MAY supply either IP address or FQDN, but
   * SHALL NOT supply both values for the same endpoint.<br/>
   * This list SHALL NOT be empty.<br/>
   * This list SHALL NOT contain more than `10` entries.<br/>
   * The first two entries in this list SHALL be the endpoints published to
   * all consensus nodes.<br/>
   * All other entries SHALL be reserved for future use.
   * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ServiceEndpointOrBuilder getGossipEndpointOrBuilder( int index) { return gossipEndpoint_.get(index); } public static final int SERVICE_ENDPOINT_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List serviceEndpoint_; /** *
   **
   * A list of service endpoints for gRPC calls.
   * <p>
   * These endpoints SHALL represent the published endpoints to which clients
   * may submit transactions.<br/>
   * These endpoints SHALL specify a port.<br/>
   * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
   * NOT supply both values for the same endpoint.<br/>
   * This list SHALL NOT be empty.<br/>
   * This list SHALL NOT contain more than `8` entries.
   * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ @java.lang.Override public java.util.List getServiceEndpointList() { return serviceEndpoint_; } /** *
   **
   * A list of service endpoints for gRPC calls.
   * <p>
   * These endpoints SHALL represent the published endpoints to which clients
   * may submit transactions.<br/>
   * These endpoints SHALL specify a port.<br/>
   * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
   * NOT supply both values for the same endpoint.<br/>
   * This list SHALL NOT be empty.<br/>
   * This list SHALL NOT contain more than `8` entries.
   * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ @java.lang.Override public java.util.List getServiceEndpointOrBuilderList() { return serviceEndpoint_; } /** *
   **
   * A list of service endpoints for gRPC calls.
   * <p>
   * These endpoints SHALL represent the published endpoints to which clients
   * may submit transactions.<br/>
   * These endpoints SHALL specify a port.<br/>
   * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
   * NOT supply both values for the same endpoint.<br/>
   * This list SHALL NOT be empty.<br/>
   * This list SHALL NOT contain more than `8` entries.
   * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ @java.lang.Override public int getServiceEndpointCount() { return serviceEndpoint_.size(); } /** *
   **
   * A list of service endpoints for gRPC calls.
   * <p>
   * These endpoints SHALL represent the published endpoints to which clients
   * may submit transactions.<br/>
   * These endpoints SHALL specify a port.<br/>
   * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
   * NOT supply both values for the same endpoint.<br/>
   * This list SHALL NOT be empty.<br/>
   * This list SHALL NOT contain more than `8` entries.
   * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ServiceEndpoint getServiceEndpoint(int index) { return serviceEndpoint_.get(index); } /** *
   **
   * A list of service endpoints for gRPC calls.
   * <p>
   * These endpoints SHALL represent the published endpoints to which clients
   * may submit transactions.<br/>
   * These endpoints SHALL specify a port.<br/>
   * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
   * NOT supply both values for the same endpoint.<br/>
   * This list SHALL NOT be empty.<br/>
   * This list SHALL NOT contain more than `8` entries.
   * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ServiceEndpointOrBuilder getServiceEndpointOrBuilder( int index) { return serviceEndpoint_.get(index); } public static final int GOSSIP_CA_CERTIFICATE_FIELD_NUMBER = 6; private com.google.protobuf.ByteString gossipCaCertificate_ = com.google.protobuf.ByteString.EMPTY; /** *
   **
   * A certificate used to sign gossip events.
   * <p>
   * This value SHALL be a certificate of a type permitted for gossip
   * signatures.<br/>
   * This value SHALL be the DER encoding of the certificate presented.<br/>
   * This field is REQUIRED and MUST NOT be empty.
   * 
* * bytes gossip_ca_certificate = 6; * @return The gossipCaCertificate. */ @java.lang.Override public com.google.protobuf.ByteString getGossipCaCertificate() { return gossipCaCertificate_; } public static final int GRPC_CERTIFICATE_HASH_FIELD_NUMBER = 7; private com.google.protobuf.ByteString grpcCertificateHash_ = com.google.protobuf.ByteString.EMPTY; /** *
   **
   * A hash of the node gRPC certificate.
   * <p>
   * This value MAY be used to verify the certificate presented by the node
   * during TLS negotiation for gRPC.<br/>
   * This value SHALL be a SHA-384 hash.<br/>
   * The TLS certificate to be hashed SHALL first be in PEM format and SHALL
   * be encoded with UTF-8 NFKD encoding to a stream of bytes provided to
   * the hash algorithm.<br/>
   * This field is OPTIONAL.
   * 
* * bytes grpc_certificate_hash = 7; * @return The grpcCertificateHash. */ @java.lang.Override public com.google.protobuf.ByteString getGrpcCertificateHash() { return grpcCertificateHash_; } public static final int WEIGHT_FIELD_NUMBER = 8; private long weight_ = 0L; /** *
   **
   * A consensus weight.
   * <p>
   * Each node SHALL have a weight in consensus calculations.<br/>
   * The consensus weight of a node SHALL be calculated based on the amount
   * of HBAR staked to that node.<br/>
   * Consensus SHALL be calculated based on agreement of greater than `2/3`
   * of the total `weight` value of all nodes on the network.
   * 
* * uint64 weight = 8; * @return The weight. */ @java.lang.Override public long getWeight() { return weight_; } public static final int DELETED_FIELD_NUMBER = 9; private boolean deleted_ = false; /** *
   **
   * A flag indicating this node is deleted.
   * <p>
   * If this field is set, then this node SHALL NOT be included in the next
   * update of the network address book.<br/>
   * If this field is set, then this node SHALL be immutable and SHALL NOT
   * be modified.<br/>
   * If this field is set, then any `nodeUpdate` transaction to modify this
   * node SHALL fail.
   * 
* * bool deleted = 9; * @return The deleted. */ @java.lang.Override public boolean getDeleted() { return deleted_; } public static final int ADMIN_KEY_FIELD_NUMBER = 10; private com.hedera.hashgraph.sdk.proto.Key adminKey_; /** *
   **
   * An administrative key controlled by the node operator.
   * <p>
   * This key MUST sign each transaction to update this node.<br/>
   * This field MUST contain a valid `Key` value.<br/>
   * This field is REQUIRED and MUST NOT be set to an empty `KeyList`.
   * 
* * .proto.Key admin_key = 10; * @return Whether the adminKey field is set. */ @java.lang.Override public boolean hasAdminKey() { return ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * An administrative key controlled by the node operator.
   * <p>
   * This key MUST sign each transaction to update this node.<br/>
   * This field MUST contain a valid `Key` value.<br/>
   * This field is REQUIRED and MUST NOT be set to an empty `KeyList`.
   * 
* * .proto.Key admin_key = 10; * @return The adminKey. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.Key getAdminKey() { return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_; } /** *
   **
   * An administrative key controlled by the node operator.
   * <p>
   * This key MUST sign each transaction to update this node.<br/>
   * This field MUST contain a valid `Key` value.<br/>
   * This field is REQUIRED and MUST NOT be set to an empty `KeyList`.
   * 
* * .proto.Key admin_key = 10; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getAdminKeyOrBuilder() { return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_; } 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 (nodeId_ != 0L) { output.writeUInt64(1, nodeId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getAccountId()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } for (int i = 0; i < gossipEndpoint_.size(); i++) { output.writeMessage(4, gossipEndpoint_.get(i)); } for (int i = 0; i < serviceEndpoint_.size(); i++) { output.writeMessage(5, serviceEndpoint_.get(i)); } if (!gossipCaCertificate_.isEmpty()) { output.writeBytes(6, gossipCaCertificate_); } if (!grpcCertificateHash_.isEmpty()) { output.writeBytes(7, grpcCertificateHash_); } if (weight_ != 0L) { output.writeUInt64(8, weight_); } if (deleted_ != false) { output.writeBool(9, deleted_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(10, getAdminKey()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (nodeId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, nodeId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAccountId()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } for (int i = 0; i < gossipEndpoint_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, gossipEndpoint_.get(i)); } for (int i = 0; i < serviceEndpoint_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, serviceEndpoint_.get(i)); } if (!gossipCaCertificate_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, gossipCaCertificate_); } if (!grpcCertificateHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, grpcCertificateHash_); } if (weight_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(8, weight_); } if (deleted_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, deleted_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getAdminKey()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.hedera.hashgraph.sdk.proto.Node)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.Node other = (com.hedera.hashgraph.sdk.proto.Node) obj; if (getNodeId() != other.getNodeId()) return false; if (hasAccountId() != other.hasAccountId()) return false; if (hasAccountId()) { if (!getAccountId() .equals(other.getAccountId())) return false; } if (!getDescription() .equals(other.getDescription())) return false; if (!getGossipEndpointList() .equals(other.getGossipEndpointList())) return false; if (!getServiceEndpointList() .equals(other.getServiceEndpointList())) return false; if (!getGossipCaCertificate() .equals(other.getGossipCaCertificate())) return false; if (!getGrpcCertificateHash() .equals(other.getGrpcCertificateHash())) return false; if (getWeight() != other.getWeight()) return false; if (getDeleted() != other.getDeleted()) return false; if (hasAdminKey() != other.hasAdminKey()) return false; if (hasAdminKey()) { if (!getAdminKey() .equals(other.getAdminKey())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NODE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNodeId()); if (hasAccountId()) { hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getAccountId().hashCode(); } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (getGossipEndpointCount() > 0) { hash = (37 * hash) + GOSSIP_ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getGossipEndpointList().hashCode(); } if (getServiceEndpointCount() > 0) { hash = (37 * hash) + SERVICE_ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getServiceEndpointList().hashCode(); } hash = (37 * hash) + GOSSIP_CA_CERTIFICATE_FIELD_NUMBER; hash = (53 * hash) + getGossipCaCertificate().hashCode(); hash = (37 * hash) + GRPC_CERTIFICATE_HASH_FIELD_NUMBER; hash = (53 * hash) + getGrpcCertificateHash().hashCode(); hash = (37 * hash) + WEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWeight()); hash = (37 * hash) + DELETED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeleted()); if (hasAdminKey()) { hash = (37 * hash) + ADMIN_KEY_FIELD_NUMBER; hash = (53 * hash) + getAdminKey().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.Node parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.Node parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.Node parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.Node parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.Node parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.Node parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.Node parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.Node parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.Node parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.Node parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.Node parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.Node 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 single address book node in the network state.
   *
   * Each node in the network address book SHALL represent a single actual
   * consensus node that is eligible to participate in network consensus.
   *
   * Address book nodes SHALL NOT be _globally_ uniquely identified. A given node
   * is only valid within a single realm and shard combination, so the identifier
   * for a network node SHALL only be unique within a single realm and shard
   * combination.
   * 
* * Protobuf type {@code com.hedera.hapi.node.state.addressbook.Node} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.hedera.hapi.node.state.addressbook.Node) com.hedera.hashgraph.sdk.proto.NodeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.NodeOuterClass.internal_static_com_hedera_hapi_node_state_addressbook_Node_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.NodeOuterClass.internal_static_com_hedera_hapi_node_state_addressbook_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.Node.class, com.hedera.hashgraph.sdk.proto.Node.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.Node.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAccountIdFieldBuilder(); getGossipEndpointFieldBuilder(); getServiceEndpointFieldBuilder(); getAdminKeyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; nodeId_ = 0L; accountId_ = null; if (accountIdBuilder_ != null) { accountIdBuilder_.dispose(); accountIdBuilder_ = null; } description_ = ""; if (gossipEndpointBuilder_ == null) { gossipEndpoint_ = java.util.Collections.emptyList(); } else { gossipEndpoint_ = null; gossipEndpointBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (serviceEndpointBuilder_ == null) { serviceEndpoint_ = java.util.Collections.emptyList(); } else { serviceEndpoint_ = null; serviceEndpointBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); gossipCaCertificate_ = com.google.protobuf.ByteString.EMPTY; grpcCertificateHash_ = com.google.protobuf.ByteString.EMPTY; weight_ = 0L; deleted_ = false; adminKey_ = null; if (adminKeyBuilder_ != null) { adminKeyBuilder_.dispose(); adminKeyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.NodeOuterClass.internal_static_com_hedera_hapi_node_state_addressbook_Node_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.Node getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.Node.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.Node build() { com.hedera.hashgraph.sdk.proto.Node result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.Node buildPartial() { com.hedera.hashgraph.sdk.proto.Node result = new com.hedera.hashgraph.sdk.proto.Node(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.Node result) { if (gossipEndpointBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { gossipEndpoint_ = java.util.Collections.unmodifiableList(gossipEndpoint_); bitField0_ = (bitField0_ & ~0x00000008); } result.gossipEndpoint_ = gossipEndpoint_; } else { result.gossipEndpoint_ = gossipEndpointBuilder_.build(); } if (serviceEndpointBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { serviceEndpoint_ = java.util.Collections.unmodifiableList(serviceEndpoint_); bitField0_ = (bitField0_ & ~0x00000010); } result.serviceEndpoint_ = serviceEndpoint_; } else { result.serviceEndpoint_ = serviceEndpointBuilder_.build(); } } private void buildPartial0(com.hedera.hashgraph.sdk.proto.Node result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.nodeId_ = nodeId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.accountId_ = accountIdBuilder_ == null ? accountId_ : accountIdBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.gossipCaCertificate_ = gossipCaCertificate_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.grpcCertificateHash_ = grpcCertificateHash_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.weight_ = weight_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.deleted_ = deleted_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.adminKey_ = adminKeyBuilder_ == null ? adminKey_ : adminKeyBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.hedera.hashgraph.sdk.proto.Node) { return mergeFrom((com.hedera.hashgraph.sdk.proto.Node)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.Node other) { if (other == com.hedera.hashgraph.sdk.proto.Node.getDefaultInstance()) return this; if (other.getNodeId() != 0L) { setNodeId(other.getNodeId()); } if (other.hasAccountId()) { mergeAccountId(other.getAccountId()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000004; onChanged(); } if (gossipEndpointBuilder_ == null) { if (!other.gossipEndpoint_.isEmpty()) { if (gossipEndpoint_.isEmpty()) { gossipEndpoint_ = other.gossipEndpoint_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureGossipEndpointIsMutable(); gossipEndpoint_.addAll(other.gossipEndpoint_); } onChanged(); } } else { if (!other.gossipEndpoint_.isEmpty()) { if (gossipEndpointBuilder_.isEmpty()) { gossipEndpointBuilder_.dispose(); gossipEndpointBuilder_ = null; gossipEndpoint_ = other.gossipEndpoint_; bitField0_ = (bitField0_ & ~0x00000008); gossipEndpointBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGossipEndpointFieldBuilder() : null; } else { gossipEndpointBuilder_.addAllMessages(other.gossipEndpoint_); } } } if (serviceEndpointBuilder_ == null) { if (!other.serviceEndpoint_.isEmpty()) { if (serviceEndpoint_.isEmpty()) { serviceEndpoint_ = other.serviceEndpoint_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureServiceEndpointIsMutable(); serviceEndpoint_.addAll(other.serviceEndpoint_); } onChanged(); } } else { if (!other.serviceEndpoint_.isEmpty()) { if (serviceEndpointBuilder_.isEmpty()) { serviceEndpointBuilder_.dispose(); serviceEndpointBuilder_ = null; serviceEndpoint_ = other.serviceEndpoint_; bitField0_ = (bitField0_ & ~0x00000010); serviceEndpointBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getServiceEndpointFieldBuilder() : null; } else { serviceEndpointBuilder_.addAllMessages(other.serviceEndpoint_); } } } if (other.getGossipCaCertificate() != com.google.protobuf.ByteString.EMPTY) { setGossipCaCertificate(other.getGossipCaCertificate()); } if (other.getGrpcCertificateHash() != com.google.protobuf.ByteString.EMPTY) { setGrpcCertificateHash(other.getGrpcCertificateHash()); } if (other.getWeight() != 0L) { setWeight(other.getWeight()); } if (other.getDeleted() != false) { setDeleted(other.getDeleted()); } if (other.hasAdminKey()) { mergeAdminKey(other.getAdminKey()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { nodeId_ = input.readUInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getAccountIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.hedera.hashgraph.sdk.proto.ServiceEndpoint m = input.readMessage( com.hedera.hashgraph.sdk.proto.ServiceEndpoint.parser(), extensionRegistry); if (gossipEndpointBuilder_ == null) { ensureGossipEndpointIsMutable(); gossipEndpoint_.add(m); } else { gossipEndpointBuilder_.addMessage(m); } break; } // case 34 case 42: { com.hedera.hashgraph.sdk.proto.ServiceEndpoint m = input.readMessage( com.hedera.hashgraph.sdk.proto.ServiceEndpoint.parser(), extensionRegistry); if (serviceEndpointBuilder_ == null) { ensureServiceEndpointIsMutable(); serviceEndpoint_.add(m); } else { serviceEndpointBuilder_.addMessage(m); } break; } // case 42 case 50: { gossipCaCertificate_ = input.readBytes(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { grpcCertificateHash_ = input.readBytes(); bitField0_ |= 0x00000040; break; } // case 58 case 64: { weight_ = input.readUInt64(); bitField0_ |= 0x00000080; break; } // case 64 case 72: { deleted_ = input.readBool(); bitField0_ |= 0x00000100; break; } // case 72 case 82: { input.readMessage( getAdminKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long nodeId_ ; /** *
     **
     * A consensus node identifier.
     * <p>
     * Node identifiers SHALL be unique _within_ a shard and realm,
     * but a node SHALL NOT, ever, serve multiple shards or realms,
     * therefore the node identifier MAY be repeated _between_ shards and realms.
     * 
* * uint64 node_id = 1; * @return The nodeId. */ @java.lang.Override public long getNodeId() { return nodeId_; } /** *
     **
     * A consensus node identifier.
     * <p>
     * Node identifiers SHALL be unique _within_ a shard and realm,
     * but a node SHALL NOT, ever, serve multiple shards or realms,
     * therefore the node identifier MAY be repeated _between_ shards and realms.
     * 
* * uint64 node_id = 1; * @param value The nodeId to set. * @return This builder for chaining. */ public Builder setNodeId(long value) { nodeId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * A consensus node identifier.
     * <p>
     * Node identifiers SHALL be unique _within_ a shard and realm,
     * but a node SHALL NOT, ever, serve multiple shards or realms,
     * therefore the node identifier MAY be repeated _between_ shards and realms.
     * 
* * uint64 node_id = 1; * @return This builder for chaining. */ public Builder clearNodeId() { bitField0_ = (bitField0_ & ~0x00000001); nodeId_ = 0L; onChanged(); return this; } private com.hedera.hashgraph.sdk.proto.AccountID accountId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> accountIdBuilder_; /** *
     **
     * An account identifier.
     * <p>
     * This account SHALL be owned by the entity responsible for the node.<br/>
     * This account SHALL be charged transaction fees for any transactions that
     * are submitted to the network by this node and fail due diligence checks.
     * 
* * .proto.AccountID account_id = 2; * @return Whether the accountId field is set. */ public boolean hasAccountId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     **
     * An account identifier.
     * <p>
     * This account SHALL be owned by the entity responsible for the node.<br/>
     * This account SHALL be charged transaction fees for any transactions that
     * are submitted to the network by this node and fail due diligence checks.
     * 
* * .proto.AccountID account_id = 2; * @return The accountId. */ public com.hedera.hashgraph.sdk.proto.AccountID getAccountId() { if (accountIdBuilder_ == null) { return accountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_; } else { return accountIdBuilder_.getMessage(); } } /** *
     **
     * An account identifier.
     * <p>
     * This account SHALL be owned by the entity responsible for the node.<br/>
     * This account SHALL be charged transaction fees for any transactions that
     * are submitted to the network by this node and fail due diligence checks.
     * 
* * .proto.AccountID account_id = 2; */ public Builder setAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (accountIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } accountId_ = value; } else { accountIdBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * An account identifier.
     * <p>
     * This account SHALL be owned by the entity responsible for the node.<br/>
     * This account SHALL be charged transaction fees for any transactions that
     * are submitted to the network by this node and fail due diligence checks.
     * 
* * .proto.AccountID account_id = 2; */ public Builder setAccountId( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (accountIdBuilder_ == null) { accountId_ = builderForValue.build(); } else { accountIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * An account identifier.
     * <p>
     * This account SHALL be owned by the entity responsible for the node.<br/>
     * This account SHALL be charged transaction fees for any transactions that
     * are submitted to the network by this node and fail due diligence checks.
     * 
* * .proto.AccountID account_id = 2; */ public Builder mergeAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (accountIdBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && accountId_ != null && accountId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { getAccountIdBuilder().mergeFrom(value); } else { accountId_ = value; } } else { accountIdBuilder_.mergeFrom(value); } if (accountId_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     **
     * An account identifier.
     * <p>
     * This account SHALL be owned by the entity responsible for the node.<br/>
     * This account SHALL be charged transaction fees for any transactions that
     * are submitted to the network by this node and fail due diligence checks.
     * 
* * .proto.AccountID account_id = 2; */ public Builder clearAccountId() { bitField0_ = (bitField0_ & ~0x00000002); accountId_ = null; if (accountIdBuilder_ != null) { accountIdBuilder_.dispose(); accountIdBuilder_ = null; } onChanged(); return this; } /** *
     **
     * An account identifier.
     * <p>
     * This account SHALL be owned by the entity responsible for the node.<br/>
     * This account SHALL be charged transaction fees for any transactions that
     * are submitted to the network by this node and fail due diligence checks.
     * 
* * .proto.AccountID account_id = 2; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder getAccountIdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getAccountIdFieldBuilder().getBuilder(); } /** *
     **
     * An account identifier.
     * <p>
     * This account SHALL be owned by the entity responsible for the node.<br/>
     * This account SHALL be charged transaction fees for any transactions that
     * are submitted to the network by this node and fail due diligence checks.
     * 
* * .proto.AccountID account_id = 2; */ public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIdOrBuilder() { if (accountIdBuilder_ != null) { return accountIdBuilder_.getMessageOrBuilder(); } else { return accountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_; } } /** *
     **
     * An account identifier.
     * <p>
     * This account SHALL be owned by the entity responsible for the node.<br/>
     * This account SHALL be charged transaction fees for any transactions that
     * are submitted to the network by this node and fail due diligence checks.
     * 
* * .proto.AccountID account_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getAccountIdFieldBuilder() { if (accountIdBuilder_ == null) { accountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( getAccountId(), getParentForChildren(), isClean()); accountId_ = null; } return accountIdBuilder_; } private java.lang.Object description_ = ""; /** *
     **
     * A short description of the node.
     * <p>
     * This value, if set, SHALL NOT exceed 100 bytes when encoded as UTF-8.
     * 
* * string description = 3; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     **
     * A short description of the node.
     * <p>
     * This value, if set, SHALL NOT exceed 100 bytes when encoded as UTF-8.
     * 
* * string description = 3; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * A short description of the node.
     * <p>
     * This value, if set, SHALL NOT exceed 100 bytes when encoded as UTF-8.
     * 
* * string description = 3; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * A short description of the node.
     * <p>
     * This value, if set, SHALL NOT exceed 100 bytes when encoded as UTF-8.
     * 
* * string description = 3; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     **
     * A short description of the node.
     * <p>
     * This value, if set, SHALL NOT exceed 100 bytes when encoded as UTF-8.
     * 
* * string description = 3; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.util.List gossipEndpoint_ = java.util.Collections.emptyList(); private void ensureGossipEndpointIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { gossipEndpoint_ = new java.util.ArrayList(gossipEndpoint_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ServiceEndpoint, com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder, com.hedera.hashgraph.sdk.proto.ServiceEndpointOrBuilder> gossipEndpointBuilder_; /** *
     **
     * A list of service endpoints for gossip.
     * <p>
     * These endpoints SHALL represent the published endpoints to which other
     * consensus nodes may _gossip_ transactions.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list SHALL supply only IP address.<br/>
     * If the network configuration value `gossipFqdnRestricted` is _not_ set,
     * then endpoints in this list MAY supply either IP address or FQDN, but
     * SHALL NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `10` entries.<br/>
     * The first two entries in this list SHALL be the endpoints published to
     * all consensus nodes.<br/>
     * All other entries SHALL be reserved for future use.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ public java.util.List getGossipEndpointList() { if (gossipEndpointBuilder_ == null) { return java.util.Collections.unmodifiableList(gossipEndpoint_); } else { return gossipEndpointBuilder_.getMessageList(); } } /** *
     **
     * A list of service endpoints for gossip.
     * <p>
     * These endpoints SHALL represent the published endpoints to which other
     * consensus nodes may _gossip_ transactions.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list SHALL supply only IP address.<br/>
     * If the network configuration value `gossipFqdnRestricted` is _not_ set,
     * then endpoints in this list MAY supply either IP address or FQDN, but
     * SHALL NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `10` entries.<br/>
     * The first two entries in this list SHALL be the endpoints published to
     * all consensus nodes.<br/>
     * All other entries SHALL be reserved for future use.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ public int getGossipEndpointCount() { if (gossipEndpointBuilder_ == null) { return gossipEndpoint_.size(); } else { return gossipEndpointBuilder_.getCount(); } } /** *
     **
     * A list of service endpoints for gossip.
     * <p>
     * These endpoints SHALL represent the published endpoints to which other
     * consensus nodes may _gossip_ transactions.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list SHALL supply only IP address.<br/>
     * If the network configuration value `gossipFqdnRestricted` is _not_ set,
     * then endpoints in this list MAY supply either IP address or FQDN, but
     * SHALL NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `10` entries.<br/>
     * The first two entries in this list SHALL be the endpoints published to
     * all consensus nodes.<br/>
     * All other entries SHALL be reserved for future use.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ public com.hedera.hashgraph.sdk.proto.ServiceEndpoint getGossipEndpoint(int index) { if (gossipEndpointBuilder_ == null) { return gossipEndpoint_.get(index); } else { return gossipEndpointBuilder_.getMessage(index); } } /** *
     **
     * A list of service endpoints for gossip.
     * <p>
     * These endpoints SHALL represent the published endpoints to which other
     * consensus nodes may _gossip_ transactions.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list SHALL supply only IP address.<br/>
     * If the network configuration value `gossipFqdnRestricted` is _not_ set,
     * then endpoints in this list MAY supply either IP address or FQDN, but
     * SHALL NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `10` entries.<br/>
     * The first two entries in this list SHALL be the endpoints published to
     * all consensus nodes.<br/>
     * All other entries SHALL be reserved for future use.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ public Builder setGossipEndpoint( int index, com.hedera.hashgraph.sdk.proto.ServiceEndpoint value) { if (gossipEndpointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGossipEndpointIsMutable(); gossipEndpoint_.set(index, value); onChanged(); } else { gossipEndpointBuilder_.setMessage(index, value); } return this; } /** *
     **
     * A list of service endpoints for gossip.
     * <p>
     * These endpoints SHALL represent the published endpoints to which other
     * consensus nodes may _gossip_ transactions.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list SHALL supply only IP address.<br/>
     * If the network configuration value `gossipFqdnRestricted` is _not_ set,
     * then endpoints in this list MAY supply either IP address or FQDN, but
     * SHALL NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `10` entries.<br/>
     * The first two entries in this list SHALL be the endpoints published to
     * all consensus nodes.<br/>
     * All other entries SHALL be reserved for future use.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ public Builder setGossipEndpoint( int index, com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder builderForValue) { if (gossipEndpointBuilder_ == null) { ensureGossipEndpointIsMutable(); gossipEndpoint_.set(index, builderForValue.build()); onChanged(); } else { gossipEndpointBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     **
     * A list of service endpoints for gossip.
     * <p>
     * These endpoints SHALL represent the published endpoints to which other
     * consensus nodes may _gossip_ transactions.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list SHALL supply only IP address.<br/>
     * If the network configuration value `gossipFqdnRestricted` is _not_ set,
     * then endpoints in this list MAY supply either IP address or FQDN, but
     * SHALL NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `10` entries.<br/>
     * The first two entries in this list SHALL be the endpoints published to
     * all consensus nodes.<br/>
     * All other entries SHALL be reserved for future use.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ public Builder addGossipEndpoint(com.hedera.hashgraph.sdk.proto.ServiceEndpoint value) { if (gossipEndpointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGossipEndpointIsMutable(); gossipEndpoint_.add(value); onChanged(); } else { gossipEndpointBuilder_.addMessage(value); } return this; } /** *
     **
     * A list of service endpoints for gossip.
     * <p>
     * These endpoints SHALL represent the published endpoints to which other
     * consensus nodes may _gossip_ transactions.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list SHALL supply only IP address.<br/>
     * If the network configuration value `gossipFqdnRestricted` is _not_ set,
     * then endpoints in this list MAY supply either IP address or FQDN, but
     * SHALL NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `10` entries.<br/>
     * The first two entries in this list SHALL be the endpoints published to
     * all consensus nodes.<br/>
     * All other entries SHALL be reserved for future use.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ public Builder addGossipEndpoint( int index, com.hedera.hashgraph.sdk.proto.ServiceEndpoint value) { if (gossipEndpointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGossipEndpointIsMutable(); gossipEndpoint_.add(index, value); onChanged(); } else { gossipEndpointBuilder_.addMessage(index, value); } return this; } /** *
     **
     * A list of service endpoints for gossip.
     * <p>
     * These endpoints SHALL represent the published endpoints to which other
     * consensus nodes may _gossip_ transactions.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list SHALL supply only IP address.<br/>
     * If the network configuration value `gossipFqdnRestricted` is _not_ set,
     * then endpoints in this list MAY supply either IP address or FQDN, but
     * SHALL NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `10` entries.<br/>
     * The first two entries in this list SHALL be the endpoints published to
     * all consensus nodes.<br/>
     * All other entries SHALL be reserved for future use.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ public Builder addGossipEndpoint( com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder builderForValue) { if (gossipEndpointBuilder_ == null) { ensureGossipEndpointIsMutable(); gossipEndpoint_.add(builderForValue.build()); onChanged(); } else { gossipEndpointBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     **
     * A list of service endpoints for gossip.
     * <p>
     * These endpoints SHALL represent the published endpoints to which other
     * consensus nodes may _gossip_ transactions.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list SHALL supply only IP address.<br/>
     * If the network configuration value `gossipFqdnRestricted` is _not_ set,
     * then endpoints in this list MAY supply either IP address or FQDN, but
     * SHALL NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `10` entries.<br/>
     * The first two entries in this list SHALL be the endpoints published to
     * all consensus nodes.<br/>
     * All other entries SHALL be reserved for future use.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ public Builder addGossipEndpoint( int index, com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder builderForValue) { if (gossipEndpointBuilder_ == null) { ensureGossipEndpointIsMutable(); gossipEndpoint_.add(index, builderForValue.build()); onChanged(); } else { gossipEndpointBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     **
     * A list of service endpoints for gossip.
     * <p>
     * These endpoints SHALL represent the published endpoints to which other
     * consensus nodes may _gossip_ transactions.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list SHALL supply only IP address.<br/>
     * If the network configuration value `gossipFqdnRestricted` is _not_ set,
     * then endpoints in this list MAY supply either IP address or FQDN, but
     * SHALL NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `10` entries.<br/>
     * The first two entries in this list SHALL be the endpoints published to
     * all consensus nodes.<br/>
     * All other entries SHALL be reserved for future use.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ public Builder addAllGossipEndpoint( java.lang.Iterable values) { if (gossipEndpointBuilder_ == null) { ensureGossipEndpointIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, gossipEndpoint_); onChanged(); } else { gossipEndpointBuilder_.addAllMessages(values); } return this; } /** *
     **
     * A list of service endpoints for gossip.
     * <p>
     * These endpoints SHALL represent the published endpoints to which other
     * consensus nodes may _gossip_ transactions.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list SHALL supply only IP address.<br/>
     * If the network configuration value `gossipFqdnRestricted` is _not_ set,
     * then endpoints in this list MAY supply either IP address or FQDN, but
     * SHALL NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `10` entries.<br/>
     * The first two entries in this list SHALL be the endpoints published to
     * all consensus nodes.<br/>
     * All other entries SHALL be reserved for future use.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ public Builder clearGossipEndpoint() { if (gossipEndpointBuilder_ == null) { gossipEndpoint_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { gossipEndpointBuilder_.clear(); } return this; } /** *
     **
     * A list of service endpoints for gossip.
     * <p>
     * These endpoints SHALL represent the published endpoints to which other
     * consensus nodes may _gossip_ transactions.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list SHALL supply only IP address.<br/>
     * If the network configuration value `gossipFqdnRestricted` is _not_ set,
     * then endpoints in this list MAY supply either IP address or FQDN, but
     * SHALL NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `10` entries.<br/>
     * The first two entries in this list SHALL be the endpoints published to
     * all consensus nodes.<br/>
     * All other entries SHALL be reserved for future use.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ public Builder removeGossipEndpoint(int index) { if (gossipEndpointBuilder_ == null) { ensureGossipEndpointIsMutable(); gossipEndpoint_.remove(index); onChanged(); } else { gossipEndpointBuilder_.remove(index); } return this; } /** *
     **
     * A list of service endpoints for gossip.
     * <p>
     * These endpoints SHALL represent the published endpoints to which other
     * consensus nodes may _gossip_ transactions.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list SHALL supply only IP address.<br/>
     * If the network configuration value `gossipFqdnRestricted` is _not_ set,
     * then endpoints in this list MAY supply either IP address or FQDN, but
     * SHALL NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `10` entries.<br/>
     * The first two entries in this list SHALL be the endpoints published to
     * all consensus nodes.<br/>
     * All other entries SHALL be reserved for future use.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ public com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder getGossipEndpointBuilder( int index) { return getGossipEndpointFieldBuilder().getBuilder(index); } /** *
     **
     * A list of service endpoints for gossip.
     * <p>
     * These endpoints SHALL represent the published endpoints to which other
     * consensus nodes may _gossip_ transactions.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list SHALL supply only IP address.<br/>
     * If the network configuration value `gossipFqdnRestricted` is _not_ set,
     * then endpoints in this list MAY supply either IP address or FQDN, but
     * SHALL NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `10` entries.<br/>
     * The first two entries in this list SHALL be the endpoints published to
     * all consensus nodes.<br/>
     * All other entries SHALL be reserved for future use.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ public com.hedera.hashgraph.sdk.proto.ServiceEndpointOrBuilder getGossipEndpointOrBuilder( int index) { if (gossipEndpointBuilder_ == null) { return gossipEndpoint_.get(index); } else { return gossipEndpointBuilder_.getMessageOrBuilder(index); } } /** *
     **
     * A list of service endpoints for gossip.
     * <p>
     * These endpoints SHALL represent the published endpoints to which other
     * consensus nodes may _gossip_ transactions.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list SHALL supply only IP address.<br/>
     * If the network configuration value `gossipFqdnRestricted` is _not_ set,
     * then endpoints in this list MAY supply either IP address or FQDN, but
     * SHALL NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `10` entries.<br/>
     * The first two entries in this list SHALL be the endpoints published to
     * all consensus nodes.<br/>
     * All other entries SHALL be reserved for future use.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ public java.util.List getGossipEndpointOrBuilderList() { if (gossipEndpointBuilder_ != null) { return gossipEndpointBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(gossipEndpoint_); } } /** *
     **
     * A list of service endpoints for gossip.
     * <p>
     * These endpoints SHALL represent the published endpoints to which other
     * consensus nodes may _gossip_ transactions.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list SHALL supply only IP address.<br/>
     * If the network configuration value `gossipFqdnRestricted` is _not_ set,
     * then endpoints in this list MAY supply either IP address or FQDN, but
     * SHALL NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `10` entries.<br/>
     * The first two entries in this list SHALL be the endpoints published to
     * all consensus nodes.<br/>
     * All other entries SHALL be reserved for future use.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ public com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder addGossipEndpointBuilder() { return getGossipEndpointFieldBuilder().addBuilder( com.hedera.hashgraph.sdk.proto.ServiceEndpoint.getDefaultInstance()); } /** *
     **
     * A list of service endpoints for gossip.
     * <p>
     * These endpoints SHALL represent the published endpoints to which other
     * consensus nodes may _gossip_ transactions.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list SHALL supply only IP address.<br/>
     * If the network configuration value `gossipFqdnRestricted` is _not_ set,
     * then endpoints in this list MAY supply either IP address or FQDN, but
     * SHALL NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `10` entries.<br/>
     * The first two entries in this list SHALL be the endpoints published to
     * all consensus nodes.<br/>
     * All other entries SHALL be reserved for future use.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ public com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder addGossipEndpointBuilder( int index) { return getGossipEndpointFieldBuilder().addBuilder( index, com.hedera.hashgraph.sdk.proto.ServiceEndpoint.getDefaultInstance()); } /** *
     **
     * A list of service endpoints for gossip.
     * <p>
     * These endpoints SHALL represent the published endpoints to which other
     * consensus nodes may _gossip_ transactions.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list SHALL supply only IP address.<br/>
     * If the network configuration value `gossipFqdnRestricted` is _not_ set,
     * then endpoints in this list MAY supply either IP address or FQDN, but
     * SHALL NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `10` entries.<br/>
     * The first two entries in this list SHALL be the endpoints published to
     * all consensus nodes.<br/>
     * All other entries SHALL be reserved for future use.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 4; */ public java.util.List getGossipEndpointBuilderList() { return getGossipEndpointFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ServiceEndpoint, com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder, com.hedera.hashgraph.sdk.proto.ServiceEndpointOrBuilder> getGossipEndpointFieldBuilder() { if (gossipEndpointBuilder_ == null) { gossipEndpointBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ServiceEndpoint, com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder, com.hedera.hashgraph.sdk.proto.ServiceEndpointOrBuilder>( gossipEndpoint_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); gossipEndpoint_ = null; } return gossipEndpointBuilder_; } private java.util.List serviceEndpoint_ = java.util.Collections.emptyList(); private void ensureServiceEndpointIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { serviceEndpoint_ = new java.util.ArrayList(serviceEndpoint_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ServiceEndpoint, com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder, com.hedera.hashgraph.sdk.proto.ServiceEndpointOrBuilder> serviceEndpointBuilder_; /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published endpoints to which clients
     * may submit transactions.<br/>
     * These endpoints SHALL specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
     * NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ public java.util.List getServiceEndpointList() { if (serviceEndpointBuilder_ == null) { return java.util.Collections.unmodifiableList(serviceEndpoint_); } else { return serviceEndpointBuilder_.getMessageList(); } } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published endpoints to which clients
     * may submit transactions.<br/>
     * These endpoints SHALL specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
     * NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ public int getServiceEndpointCount() { if (serviceEndpointBuilder_ == null) { return serviceEndpoint_.size(); } else { return serviceEndpointBuilder_.getCount(); } } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published endpoints to which clients
     * may submit transactions.<br/>
     * These endpoints SHALL specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
     * NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ public com.hedera.hashgraph.sdk.proto.ServiceEndpoint getServiceEndpoint(int index) { if (serviceEndpointBuilder_ == null) { return serviceEndpoint_.get(index); } else { return serviceEndpointBuilder_.getMessage(index); } } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published endpoints to which clients
     * may submit transactions.<br/>
     * These endpoints SHALL specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
     * NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ public Builder setServiceEndpoint( int index, com.hedera.hashgraph.sdk.proto.ServiceEndpoint value) { if (serviceEndpointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureServiceEndpointIsMutable(); serviceEndpoint_.set(index, value); onChanged(); } else { serviceEndpointBuilder_.setMessage(index, value); } return this; } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published endpoints to which clients
     * may submit transactions.<br/>
     * These endpoints SHALL specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
     * NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ public Builder setServiceEndpoint( int index, com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder builderForValue) { if (serviceEndpointBuilder_ == null) { ensureServiceEndpointIsMutable(); serviceEndpoint_.set(index, builderForValue.build()); onChanged(); } else { serviceEndpointBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published endpoints to which clients
     * may submit transactions.<br/>
     * These endpoints SHALL specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
     * NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ public Builder addServiceEndpoint(com.hedera.hashgraph.sdk.proto.ServiceEndpoint value) { if (serviceEndpointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureServiceEndpointIsMutable(); serviceEndpoint_.add(value); onChanged(); } else { serviceEndpointBuilder_.addMessage(value); } return this; } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published endpoints to which clients
     * may submit transactions.<br/>
     * These endpoints SHALL specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
     * NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ public Builder addServiceEndpoint( int index, com.hedera.hashgraph.sdk.proto.ServiceEndpoint value) { if (serviceEndpointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureServiceEndpointIsMutable(); serviceEndpoint_.add(index, value); onChanged(); } else { serviceEndpointBuilder_.addMessage(index, value); } return this; } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published endpoints to which clients
     * may submit transactions.<br/>
     * These endpoints SHALL specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
     * NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ public Builder addServiceEndpoint( com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder builderForValue) { if (serviceEndpointBuilder_ == null) { ensureServiceEndpointIsMutable(); serviceEndpoint_.add(builderForValue.build()); onChanged(); } else { serviceEndpointBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published endpoints to which clients
     * may submit transactions.<br/>
     * These endpoints SHALL specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
     * NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ public Builder addServiceEndpoint( int index, com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder builderForValue) { if (serviceEndpointBuilder_ == null) { ensureServiceEndpointIsMutable(); serviceEndpoint_.add(index, builderForValue.build()); onChanged(); } else { serviceEndpointBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published endpoints to which clients
     * may submit transactions.<br/>
     * These endpoints SHALL specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
     * NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ public Builder addAllServiceEndpoint( java.lang.Iterable values) { if (serviceEndpointBuilder_ == null) { ensureServiceEndpointIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, serviceEndpoint_); onChanged(); } else { serviceEndpointBuilder_.addAllMessages(values); } return this; } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published endpoints to which clients
     * may submit transactions.<br/>
     * These endpoints SHALL specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
     * NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ public Builder clearServiceEndpoint() { if (serviceEndpointBuilder_ == null) { serviceEndpoint_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { serviceEndpointBuilder_.clear(); } return this; } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published endpoints to which clients
     * may submit transactions.<br/>
     * These endpoints SHALL specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
     * NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ public Builder removeServiceEndpoint(int index) { if (serviceEndpointBuilder_ == null) { ensureServiceEndpointIsMutable(); serviceEndpoint_.remove(index); onChanged(); } else { serviceEndpointBuilder_.remove(index); } return this; } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published endpoints to which clients
     * may submit transactions.<br/>
     * These endpoints SHALL specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
     * NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ public com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder getServiceEndpointBuilder( int index) { return getServiceEndpointFieldBuilder().getBuilder(index); } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published endpoints to which clients
     * may submit transactions.<br/>
     * These endpoints SHALL specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
     * NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ public com.hedera.hashgraph.sdk.proto.ServiceEndpointOrBuilder getServiceEndpointOrBuilder( int index) { if (serviceEndpointBuilder_ == null) { return serviceEndpoint_.get(index); } else { return serviceEndpointBuilder_.getMessageOrBuilder(index); } } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published endpoints to which clients
     * may submit transactions.<br/>
     * These endpoints SHALL specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
     * NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ public java.util.List getServiceEndpointOrBuilderList() { if (serviceEndpointBuilder_ != null) { return serviceEndpointBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(serviceEndpoint_); } } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published endpoints to which clients
     * may submit transactions.<br/>
     * These endpoints SHALL specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
     * NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ public com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder addServiceEndpointBuilder() { return getServiceEndpointFieldBuilder().addBuilder( com.hedera.hashgraph.sdk.proto.ServiceEndpoint.getDefaultInstance()); } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published endpoints to which clients
     * may submit transactions.<br/>
     * These endpoints SHALL specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
     * NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ public com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder addServiceEndpointBuilder( int index) { return getServiceEndpointFieldBuilder().addBuilder( index, com.hedera.hashgraph.sdk.proto.ServiceEndpoint.getDefaultInstance()); } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published endpoints to which clients
     * may submit transactions.<br/>
     * These endpoints SHALL specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but SHALL
     * NOT supply both values for the same endpoint.<br/>
     * This list SHALL NOT be empty.<br/>
     * This list SHALL NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 5; */ public java.util.List getServiceEndpointBuilderList() { return getServiceEndpointFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ServiceEndpoint, com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder, com.hedera.hashgraph.sdk.proto.ServiceEndpointOrBuilder> getServiceEndpointFieldBuilder() { if (serviceEndpointBuilder_ == null) { serviceEndpointBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ServiceEndpoint, com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder, com.hedera.hashgraph.sdk.proto.ServiceEndpointOrBuilder>( serviceEndpoint_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); serviceEndpoint_ = null; } return serviceEndpointBuilder_; } private com.google.protobuf.ByteString gossipCaCertificate_ = com.google.protobuf.ByteString.EMPTY; /** *
     **
     * A certificate used to sign gossip events.
     * <p>
     * This value SHALL be a certificate of a type permitted for gossip
     * signatures.<br/>
     * This value SHALL be the DER encoding of the certificate presented.<br/>
     * This field is REQUIRED and MUST NOT be empty.
     * 
* * bytes gossip_ca_certificate = 6; * @return The gossipCaCertificate. */ @java.lang.Override public com.google.protobuf.ByteString getGossipCaCertificate() { return gossipCaCertificate_; } /** *
     **
     * A certificate used to sign gossip events.
     * <p>
     * This value SHALL be a certificate of a type permitted for gossip
     * signatures.<br/>
     * This value SHALL be the DER encoding of the certificate presented.<br/>
     * This field is REQUIRED and MUST NOT be empty.
     * 
* * bytes gossip_ca_certificate = 6; * @param value The gossipCaCertificate to set. * @return This builder for chaining. */ public Builder setGossipCaCertificate(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } gossipCaCertificate_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     **
     * A certificate used to sign gossip events.
     * <p>
     * This value SHALL be a certificate of a type permitted for gossip
     * signatures.<br/>
     * This value SHALL be the DER encoding of the certificate presented.<br/>
     * This field is REQUIRED and MUST NOT be empty.
     * 
* * bytes gossip_ca_certificate = 6; * @return This builder for chaining. */ public Builder clearGossipCaCertificate() { bitField0_ = (bitField0_ & ~0x00000020); gossipCaCertificate_ = getDefaultInstance().getGossipCaCertificate(); onChanged(); return this; } private com.google.protobuf.ByteString grpcCertificateHash_ = com.google.protobuf.ByteString.EMPTY; /** *
     **
     * A hash of the node gRPC certificate.
     * <p>
     * This value MAY be used to verify the certificate presented by the node
     * during TLS negotiation for gRPC.<br/>
     * This value SHALL be a SHA-384 hash.<br/>
     * The TLS certificate to be hashed SHALL first be in PEM format and SHALL
     * be encoded with UTF-8 NFKD encoding to a stream of bytes provided to
     * the hash algorithm.<br/>
     * This field is OPTIONAL.
     * 
* * bytes grpc_certificate_hash = 7; * @return The grpcCertificateHash. */ @java.lang.Override public com.google.protobuf.ByteString getGrpcCertificateHash() { return grpcCertificateHash_; } /** *
     **
     * A hash of the node gRPC certificate.
     * <p>
     * This value MAY be used to verify the certificate presented by the node
     * during TLS negotiation for gRPC.<br/>
     * This value SHALL be a SHA-384 hash.<br/>
     * The TLS certificate to be hashed SHALL first be in PEM format and SHALL
     * be encoded with UTF-8 NFKD encoding to a stream of bytes provided to
     * the hash algorithm.<br/>
     * This field is OPTIONAL.
     * 
* * bytes grpc_certificate_hash = 7; * @param value The grpcCertificateHash to set. * @return This builder for chaining. */ public Builder setGrpcCertificateHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } grpcCertificateHash_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     **
     * A hash of the node gRPC certificate.
     * <p>
     * This value MAY be used to verify the certificate presented by the node
     * during TLS negotiation for gRPC.<br/>
     * This value SHALL be a SHA-384 hash.<br/>
     * The TLS certificate to be hashed SHALL first be in PEM format and SHALL
     * be encoded with UTF-8 NFKD encoding to a stream of bytes provided to
     * the hash algorithm.<br/>
     * This field is OPTIONAL.
     * 
* * bytes grpc_certificate_hash = 7; * @return This builder for chaining. */ public Builder clearGrpcCertificateHash() { bitField0_ = (bitField0_ & ~0x00000040); grpcCertificateHash_ = getDefaultInstance().getGrpcCertificateHash(); onChanged(); return this; } private long weight_ ; /** *
     **
     * A consensus weight.
     * <p>
     * Each node SHALL have a weight in consensus calculations.<br/>
     * The consensus weight of a node SHALL be calculated based on the amount
     * of HBAR staked to that node.<br/>
     * Consensus SHALL be calculated based on agreement of greater than `2/3`
     * of the total `weight` value of all nodes on the network.
     * 
* * uint64 weight = 8; * @return The weight. */ @java.lang.Override public long getWeight() { return weight_; } /** *
     **
     * A consensus weight.
     * <p>
     * Each node SHALL have a weight in consensus calculations.<br/>
     * The consensus weight of a node SHALL be calculated based on the amount
     * of HBAR staked to that node.<br/>
     * Consensus SHALL be calculated based on agreement of greater than `2/3`
     * of the total `weight` value of all nodes on the network.
     * 
* * uint64 weight = 8; * @param value The weight to set. * @return This builder for chaining. */ public Builder setWeight(long value) { weight_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     **
     * A consensus weight.
     * <p>
     * Each node SHALL have a weight in consensus calculations.<br/>
     * The consensus weight of a node SHALL be calculated based on the amount
     * of HBAR staked to that node.<br/>
     * Consensus SHALL be calculated based on agreement of greater than `2/3`
     * of the total `weight` value of all nodes on the network.
     * 
* * uint64 weight = 8; * @return This builder for chaining. */ public Builder clearWeight() { bitField0_ = (bitField0_ & ~0x00000080); weight_ = 0L; onChanged(); return this; } private boolean deleted_ ; /** *
     **
     * A flag indicating this node is deleted.
     * <p>
     * If this field is set, then this node SHALL NOT be included in the next
     * update of the network address book.<br/>
     * If this field is set, then this node SHALL be immutable and SHALL NOT
     * be modified.<br/>
     * If this field is set, then any `nodeUpdate` transaction to modify this
     * node SHALL fail.
     * 
* * bool deleted = 9; * @return The deleted. */ @java.lang.Override public boolean getDeleted() { return deleted_; } /** *
     **
     * A flag indicating this node is deleted.
     * <p>
     * If this field is set, then this node SHALL NOT be included in the next
     * update of the network address book.<br/>
     * If this field is set, then this node SHALL be immutable and SHALL NOT
     * be modified.<br/>
     * If this field is set, then any `nodeUpdate` transaction to modify this
     * node SHALL fail.
     * 
* * bool deleted = 9; * @param value The deleted to set. * @return This builder for chaining. */ public Builder setDeleted(boolean value) { deleted_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     **
     * A flag indicating this node is deleted.
     * <p>
     * If this field is set, then this node SHALL NOT be included in the next
     * update of the network address book.<br/>
     * If this field is set, then this node SHALL be immutable and SHALL NOT
     * be modified.<br/>
     * If this field is set, then any `nodeUpdate` transaction to modify this
     * node SHALL fail.
     * 
* * bool deleted = 9; * @return This builder for chaining. */ public Builder clearDeleted() { bitField0_ = (bitField0_ & ~0x00000100); deleted_ = false; onChanged(); return this; } private com.hedera.hashgraph.sdk.proto.Key adminKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> adminKeyBuilder_; /** *
     **
     * An administrative key controlled by the node operator.
     * <p>
     * This key MUST sign each transaction to update this node.<br/>
     * This field MUST contain a valid `Key` value.<br/>
     * This field is REQUIRED and MUST NOT be set to an empty `KeyList`.
     * 
* * .proto.Key admin_key = 10; * @return Whether the adminKey field is set. */ public boolean hasAdminKey() { return ((bitField0_ & 0x00000200) != 0); } /** *
     **
     * An administrative key controlled by the node operator.
     * <p>
     * This key MUST sign each transaction to update this node.<br/>
     * This field MUST contain a valid `Key` value.<br/>
     * This field is REQUIRED and MUST NOT be set to an empty `KeyList`.
     * 
* * .proto.Key admin_key = 10; * @return The adminKey. */ public com.hedera.hashgraph.sdk.proto.Key getAdminKey() { if (adminKeyBuilder_ == null) { return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_; } else { return adminKeyBuilder_.getMessage(); } } /** *
     **
     * An administrative key controlled by the node operator.
     * <p>
     * This key MUST sign each transaction to update this node.<br/>
     * This field MUST contain a valid `Key` value.<br/>
     * This field is REQUIRED and MUST NOT be set to an empty `KeyList`.
     * 
* * .proto.Key admin_key = 10; */ public Builder setAdminKey(com.hedera.hashgraph.sdk.proto.Key value) { if (adminKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } adminKey_ = value; } else { adminKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     **
     * An administrative key controlled by the node operator.
     * <p>
     * This key MUST sign each transaction to update this node.<br/>
     * This field MUST contain a valid `Key` value.<br/>
     * This field is REQUIRED and MUST NOT be set to an empty `KeyList`.
     * 
* * .proto.Key admin_key = 10; */ public Builder setAdminKey( com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) { if (adminKeyBuilder_ == null) { adminKey_ = builderForValue.build(); } else { adminKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     **
     * An administrative key controlled by the node operator.
     * <p>
     * This key MUST sign each transaction to update this node.<br/>
     * This field MUST contain a valid `Key` value.<br/>
     * This field is REQUIRED and MUST NOT be set to an empty `KeyList`.
     * 
* * .proto.Key admin_key = 10; */ public Builder mergeAdminKey(com.hedera.hashgraph.sdk.proto.Key value) { if (adminKeyBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && adminKey_ != null && adminKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getAdminKeyBuilder().mergeFrom(value); } else { adminKey_ = value; } } else { adminKeyBuilder_.mergeFrom(value); } if (adminKey_ != null) { bitField0_ |= 0x00000200; onChanged(); } return this; } /** *
     **
     * An administrative key controlled by the node operator.
     * <p>
     * This key MUST sign each transaction to update this node.<br/>
     * This field MUST contain a valid `Key` value.<br/>
     * This field is REQUIRED and MUST NOT be set to an empty `KeyList`.
     * 
* * .proto.Key admin_key = 10; */ public Builder clearAdminKey() { bitField0_ = (bitField0_ & ~0x00000200); adminKey_ = null; if (adminKeyBuilder_ != null) { adminKeyBuilder_.dispose(); adminKeyBuilder_ = null; } onChanged(); return this; } /** *
     **
     * An administrative key controlled by the node operator.
     * <p>
     * This key MUST sign each transaction to update this node.<br/>
     * This field MUST contain a valid `Key` value.<br/>
     * This field is REQUIRED and MUST NOT be set to an empty `KeyList`.
     * 
* * .proto.Key admin_key = 10; */ public com.hedera.hashgraph.sdk.proto.Key.Builder getAdminKeyBuilder() { bitField0_ |= 0x00000200; onChanged(); return getAdminKeyFieldBuilder().getBuilder(); } /** *
     **
     * An administrative key controlled by the node operator.
     * <p>
     * This key MUST sign each transaction to update this node.<br/>
     * This field MUST contain a valid `Key` value.<br/>
     * This field is REQUIRED and MUST NOT be set to an empty `KeyList`.
     * 
* * .proto.Key admin_key = 10; */ public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getAdminKeyOrBuilder() { if (adminKeyBuilder_ != null) { return adminKeyBuilder_.getMessageOrBuilder(); } else { return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_; } } /** *
     **
     * An administrative key controlled by the node operator.
     * <p>
     * This key MUST sign each transaction to update this node.<br/>
     * This field MUST contain a valid `Key` value.<br/>
     * This field is REQUIRED and MUST NOT be set to an empty `KeyList`.
     * 
* * .proto.Key admin_key = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getAdminKeyFieldBuilder() { if (adminKeyBuilder_ == null) { adminKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getAdminKey(), getParentForChildren(), isClean()); adminKey_ = null; } return adminKeyBuilder_; } @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.node.state.addressbook.Node) } // @@protoc_insertion_point(class_scope:com.hedera.hapi.node.state.addressbook.Node) private static final com.hedera.hashgraph.sdk.proto.Node DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.Node(); } public static com.hedera.hashgraph.sdk.proto.Node getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Node parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.Node getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy