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

com.hederahashgraph.api.proto.java.NodeCreateTransactionBody Maven / Gradle / Ivy

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

package com.hederahashgraph.api.proto.java;

/**
 * 
 **
 * A transaction body to add a new consensus node to the network address book.
 * This transaction body SHALL be considered a "privileged transaction".
 * This message supports a transaction to create a new node in the network
 * address book. The transaction, once complete, enables a new consensus node
 * to join the network, and requires governing council authorization.
 * - A `NodeCreateTransactionBody` MUST be signed by the governing council.
 * - A `NodeCreateTransactionBody` MUST be signed by the `Key` assigned to the
 *   `admin_key` field.
 * - The newly created node information SHALL be added to the network address
 *   book information in the network state.
 * - The new entry SHALL be created in "state" but SHALL NOT participate in
 *   network consensus and SHALL NOT be present in network "configuration"
 *   until the next "upgrade" transaction (as noted below).
 * - All new address book entries SHALL be added to the active network
 *   configuration during the next `freeze` transaction with the field
 *   `freeze_type` set to `PREPARE_UPGRADE`.
 * ### Record Stream Effects
 * Upon completion the newly assigned `node_id` SHALL be in the transaction
 * receipt.
 * 
* * Protobuf type {@code com.hedera.hapi.node.addressbook.NodeCreateTransactionBody} */ public final class NodeCreateTransactionBody extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.hedera.hapi.node.addressbook.NodeCreateTransactionBody) NodeCreateTransactionBodyOrBuilder { private static final long serialVersionUID = 0L; // Use NodeCreateTransactionBody.newBuilder() to construct. private NodeCreateTransactionBody(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeCreateTransactionBody() { 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 NodeCreateTransactionBody(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeCreateTransactionBody( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null; if (accountId_ != null) { subBuilder = accountId_.toBuilder(); } accountId_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(accountId_); accountId_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { gossipEndpoint_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } gossipEndpoint_.add( input.readMessage(com.hederahashgraph.api.proto.java.ServiceEndpoint.parser(), extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { serviceEndpoint_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } serviceEndpoint_.add( input.readMessage(com.hederahashgraph.api.proto.java.ServiceEndpoint.parser(), extensionRegistry)); break; } case 42: { gossipCaCertificate_ = input.readBytes(); break; } case 50: { grpcCertificateHash_ = input.readBytes(); break; } case 58: { com.hederahashgraph.api.proto.java.Key.Builder subBuilder = null; if (adminKey_ != null) { subBuilder = adminKey_.toBuilder(); } adminKey_ = input.readMessage(com.hederahashgraph.api.proto.java.Key.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(adminKey_); adminKey_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { gossipEndpoint_ = java.util.Collections.unmodifiableList(gossipEndpoint_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { serviceEndpoint_ = java.util.Collections.unmodifiableList(serviceEndpoint_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.NodeCreate.internal_static_com_hedera_hapi_node_addressbook_NodeCreateTransactionBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.NodeCreate.internal_static_com_hedera_hapi_node_addressbook_NodeCreateTransactionBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.NodeCreateTransactionBody.class, com.hederahashgraph.api.proto.java.NodeCreateTransactionBody.Builder.class); } public static final int ACCOUNT_ID_FIELD_NUMBER = 1; private com.hederahashgraph.api.proto.java.AccountID accountId_; /** *
   **
   * A Node account identifier.
   * <p>
   * This account identifier MUST be in the "account number" form.<br/>
   * This account identifier MUST NOT use the alias field.<br/>
   * If the identified account does not exist, this transaction SHALL fail.<br/>
   * Multiple nodes MAY share the same node account.<br/>
   * This field is REQUIRED.
   * 
* * .proto.AccountID account_id = 1; * @return Whether the accountId field is set. */ @java.lang.Override public boolean hasAccountId() { return accountId_ != null; } /** *
   **
   * A Node account identifier.
   * <p>
   * This account identifier MUST be in the "account number" form.<br/>
   * This account identifier MUST NOT use the alias field.<br/>
   * If the identified account does not exist, this transaction SHALL fail.<br/>
   * Multiple nodes MAY share the same node account.<br/>
   * This field is REQUIRED.
   * 
* * .proto.AccountID account_id = 1; * @return The accountId. */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountID getAccountId() { return accountId_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : accountId_; } /** *
   **
   * A Node account identifier.
   * <p>
   * This account identifier MUST be in the "account number" form.<br/>
   * This account identifier MUST NOT use the alias field.<br/>
   * If the identified account does not exist, this transaction SHALL fail.<br/>
   * Multiple nodes MAY share the same node account.<br/>
   * This field is REQUIRED.
   * 
* * .proto.AccountID account_id = 1; */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAccountIdOrBuilder() { return getAccountId(); } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** *
   **
   * A short description of the node.
   * <p>
   * This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
   * This field is OPTIONAL.
   * 
* * string description = 2; * @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, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
   * This field is OPTIONAL.
   * 
* * string description = 2; * @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 = 3; 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/>
   * These endpoints MUST specify a port.<br/>
   * This list MUST NOT be empty.<br/>
   * This list MUST 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.
   * <p>
   * Each network may have additional requirements for these endpoints.
   * A client MUST check network-specific documentation for those
   * details.<br/>
   * If the network configuration value `gossipFqdnRestricted` is set, then
   * all endpoints in this list MUST 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
   * MUST NOT supply both values for the same endpoint.
   * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ @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/>
   * These endpoints MUST specify a port.<br/>
   * This list MUST NOT be empty.<br/>
   * This list MUST 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.
   * <p>
   * Each network may have additional requirements for these endpoints.
   * A client MUST check network-specific documentation for those
   * details.<br/>
   * If the network configuration value `gossipFqdnRestricted` is set, then
   * all endpoints in this list MUST 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
   * MUST NOT supply both values for the same endpoint.
   * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ @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/>
   * These endpoints MUST specify a port.<br/>
   * This list MUST NOT be empty.<br/>
   * This list MUST 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.
   * <p>
   * Each network may have additional requirements for these endpoints.
   * A client MUST check network-specific documentation for those
   * details.<br/>
   * If the network configuration value `gossipFqdnRestricted` is set, then
   * all endpoints in this list MUST 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
   * MUST NOT supply both values for the same endpoint.
   * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ @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/>
   * These endpoints MUST specify a port.<br/>
   * This list MUST NOT be empty.<br/>
   * This list MUST 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.
   * <p>
   * Each network may have additional requirements for these endpoints.
   * A client MUST check network-specific documentation for those
   * details.<br/>
   * If the network configuration value `gossipFqdnRestricted` is set, then
   * all endpoints in this list MUST 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
   * MUST NOT supply both values for the same endpoint.
   * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ @java.lang.Override public com.hederahashgraph.api.proto.java.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/>
   * These endpoints MUST specify a port.<br/>
   * This list MUST NOT be empty.<br/>
   * This list MUST 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.
   * <p>
   * Each network may have additional requirements for these endpoints.
   * A client MUST check network-specific documentation for those
   * details.<br/>
   * If the network configuration value `gossipFqdnRestricted` is set, then
   * all endpoints in this list MUST 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
   * MUST NOT supply both values for the same endpoint.
   * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ @java.lang.Override public com.hederahashgraph.api.proto.java.ServiceEndpointOrBuilder getGossipEndpointOrBuilder( int index) { return gossipEndpoint_.get(index); } public static final int SERVICE_ENDPOINT_FIELD_NUMBER = 4; private java.util.List serviceEndpoint_; /** *
   **
   * A list of service endpoints for gRPC calls.
   * <p>
   * These endpoints SHALL represent the published gRPC endpoints to which
   * clients may submit transactions.<br/>
   * These endpoints MUST specify a port.<br/>
   * Endpoints in this list MAY supply either IP address or FQDN, but MUST
   * NOT supply both values for the same endpoint.<br/>
   * This list MUST NOT be empty.<br/>
   * This list MUST NOT contain more than `8` entries.
   * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ @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 gRPC endpoints to which
   * clients may submit transactions.<br/>
   * These endpoints MUST specify a port.<br/>
   * Endpoints in this list MAY supply either IP address or FQDN, but MUST
   * NOT supply both values for the same endpoint.<br/>
   * This list MUST NOT be empty.<br/>
   * This list MUST NOT contain more than `8` entries.
   * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ @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 gRPC endpoints to which
   * clients may submit transactions.<br/>
   * These endpoints MUST specify a port.<br/>
   * Endpoints in this list MAY supply either IP address or FQDN, but MUST
   * NOT supply both values for the same endpoint.<br/>
   * This list MUST NOT be empty.<br/>
   * This list MUST NOT contain more than `8` entries.
   * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ @java.lang.Override public int getServiceEndpointCount() { return serviceEndpoint_.size(); } /** *
   **
   * A list of service endpoints for gRPC calls.
   * <p>
   * These endpoints SHALL represent the published gRPC endpoints to which
   * clients may submit transactions.<br/>
   * These endpoints MUST specify a port.<br/>
   * Endpoints in this list MAY supply either IP address or FQDN, but MUST
   * NOT supply both values for the same endpoint.<br/>
   * This list MUST NOT be empty.<br/>
   * This list MUST NOT contain more than `8` entries.
   * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ @java.lang.Override public com.hederahashgraph.api.proto.java.ServiceEndpoint getServiceEndpoint(int index) { return serviceEndpoint_.get(index); } /** *
   **
   * A list of service endpoints for gRPC calls.
   * <p>
   * These endpoints SHALL represent the published gRPC endpoints to which
   * clients may submit transactions.<br/>
   * These endpoints MUST specify a port.<br/>
   * Endpoints in this list MAY supply either IP address or FQDN, but MUST
   * NOT supply both values for the same endpoint.<br/>
   * This list MUST NOT be empty.<br/>
   * This list MUST NOT contain more than `8` entries.
   * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ @java.lang.Override public com.hederahashgraph.api.proto.java.ServiceEndpointOrBuilder getServiceEndpointOrBuilder( int index) { return serviceEndpoint_.get(index); } public static final int GOSSIP_CA_CERTIFICATE_FIELD_NUMBER = 5; private com.google.protobuf.ByteString gossipCaCertificate_; /** *
   **
   * A certificate used to sign gossip events.
   * <p>
   * This value MUST be a certificate of a type permitted for gossip
   * signatures.<br/>
   * This value MUST be the DER encoding of the certificate presented.<br/>
   * This field is REQUIRED and MUST NOT be empty.
   * 
* * bytes gossip_ca_certificate = 5; * @return The gossipCaCertificate. */ @java.lang.Override public com.google.protobuf.ByteString getGossipCaCertificate() { return gossipCaCertificate_; } public static final int GRPC_CERTIFICATE_HASH_FIELD_NUMBER = 6; private com.google.protobuf.ByteString grpcCertificateHash_; /** *
   **
   * A hash of the node gRPC TLS certificate.
   * <p>
   * This value MAY be used to verify the certificate presented by the node
   * during TLS negotiation for gRPC.<br/>
   * This value MUST be a SHA-384 hash.<br/>
   * The TLS certificate to be hashed MUST first be in PEM format and MUST 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 = 6; * @return The grpcCertificateHash. */ @java.lang.Override public com.google.protobuf.ByteString getGrpcCertificateHash() { return grpcCertificateHash_; } public static final int ADMIN_KEY_FIELD_NUMBER = 7; private com.hederahashgraph.api.proto.java.Key adminKey_; /** *
   **
   * An administrative key controlled by the node operator.
   * <p>
   * This key MUST sign this transaction.<br/>
   * 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 = 7; * @return Whether the adminKey field is set. */ @java.lang.Override public boolean hasAdminKey() { return adminKey_ != null; } /** *
   **
   * An administrative key controlled by the node operator.
   * <p>
   * This key MUST sign this transaction.<br/>
   * 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 = 7; * @return The adminKey. */ @java.lang.Override public com.hederahashgraph.api.proto.java.Key getAdminKey() { return adminKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : adminKey_; } /** *
   **
   * An administrative key controlled by the node operator.
   * <p>
   * This key MUST sign this transaction.<br/>
   * 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 = 7; */ @java.lang.Override public com.hederahashgraph.api.proto.java.KeyOrBuilder getAdminKeyOrBuilder() { return getAdminKey(); } 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 (accountId_ != null) { output.writeMessage(1, getAccountId()); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } for (int i = 0; i < gossipEndpoint_.size(); i++) { output.writeMessage(3, gossipEndpoint_.get(i)); } for (int i = 0; i < serviceEndpoint_.size(); i++) { output.writeMessage(4, serviceEndpoint_.get(i)); } if (!gossipCaCertificate_.isEmpty()) { output.writeBytes(5, gossipCaCertificate_); } if (!grpcCertificateHash_.isEmpty()) { output.writeBytes(6, grpcCertificateHash_); } if (adminKey_ != null) { output.writeMessage(7, getAdminKey()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (accountId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAccountId()); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } for (int i = 0; i < gossipEndpoint_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, gossipEndpoint_.get(i)); } for (int i = 0; i < serviceEndpoint_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, serviceEndpoint_.get(i)); } if (!gossipCaCertificate_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, gossipCaCertificate_); } if (!grpcCertificateHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, grpcCertificateHash_); } if (adminKey_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getAdminKey()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.hederahashgraph.api.proto.java.NodeCreateTransactionBody)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.NodeCreateTransactionBody other = (com.hederahashgraph.api.proto.java.NodeCreateTransactionBody) obj; 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 (hasAdminKey() != other.hasAdminKey()) return false; if (hasAdminKey()) { if (!getAdminKey() .equals(other.getAdminKey())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (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(); if (hasAdminKey()) { hash = (37 * hash) + ADMIN_KEY_FIELD_NUMBER; hash = (53 * hash) + getAdminKey().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.NodeCreateTransactionBody parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.NodeCreateTransactionBody parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.NodeCreateTransactionBody parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.NodeCreateTransactionBody parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.NodeCreateTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.NodeCreateTransactionBody parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.NodeCreateTransactionBody parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.NodeCreateTransactionBody 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.hederahashgraph.api.proto.java.NodeCreateTransactionBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.NodeCreateTransactionBody 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.hederahashgraph.api.proto.java.NodeCreateTransactionBody parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.NodeCreateTransactionBody 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.hederahashgraph.api.proto.java.NodeCreateTransactionBody 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 transaction body to add a new consensus node to the network address book.
   * This transaction body SHALL be considered a "privileged transaction".
   * This message supports a transaction to create a new node in the network
   * address book. The transaction, once complete, enables a new consensus node
   * to join the network, and requires governing council authorization.
   * - A `NodeCreateTransactionBody` MUST be signed by the governing council.
   * - A `NodeCreateTransactionBody` MUST be signed by the `Key` assigned to the
   *   `admin_key` field.
   * - The newly created node information SHALL be added to the network address
   *   book information in the network state.
   * - The new entry SHALL be created in "state" but SHALL NOT participate in
   *   network consensus and SHALL NOT be present in network "configuration"
   *   until the next "upgrade" transaction (as noted below).
   * - All new address book entries SHALL be added to the active network
   *   configuration during the next `freeze` transaction with the field
   *   `freeze_type` set to `PREPARE_UPGRADE`.
   * ### Record Stream Effects
   * Upon completion the newly assigned `node_id` SHALL be in the transaction
   * receipt.
   * 
* * Protobuf type {@code com.hedera.hapi.node.addressbook.NodeCreateTransactionBody} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.hedera.hapi.node.addressbook.NodeCreateTransactionBody) com.hederahashgraph.api.proto.java.NodeCreateTransactionBodyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.NodeCreate.internal_static_com_hedera_hapi_node_addressbook_NodeCreateTransactionBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.NodeCreate.internal_static_com_hedera_hapi_node_addressbook_NodeCreateTransactionBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.NodeCreateTransactionBody.class, com.hederahashgraph.api.proto.java.NodeCreateTransactionBody.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.NodeCreateTransactionBody.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getGossipEndpointFieldBuilder(); getServiceEndpointFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (accountIdBuilder_ == null) { accountId_ = null; } else { accountId_ = null; accountIdBuilder_ = null; } description_ = ""; if (gossipEndpointBuilder_ == null) { gossipEndpoint_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { gossipEndpointBuilder_.clear(); } if (serviceEndpointBuilder_ == null) { serviceEndpoint_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { serviceEndpointBuilder_.clear(); } gossipCaCertificate_ = com.google.protobuf.ByteString.EMPTY; grpcCertificateHash_ = com.google.protobuf.ByteString.EMPTY; if (adminKeyBuilder_ == null) { adminKey_ = null; } else { adminKey_ = null; adminKeyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hederahashgraph.api.proto.java.NodeCreate.internal_static_com_hedera_hapi_node_addressbook_NodeCreateTransactionBody_descriptor; } @java.lang.Override public com.hederahashgraph.api.proto.java.NodeCreateTransactionBody getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.NodeCreateTransactionBody.getDefaultInstance(); } @java.lang.Override public com.hederahashgraph.api.proto.java.NodeCreateTransactionBody build() { com.hederahashgraph.api.proto.java.NodeCreateTransactionBody result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hederahashgraph.api.proto.java.NodeCreateTransactionBody buildPartial() { com.hederahashgraph.api.proto.java.NodeCreateTransactionBody result = new com.hederahashgraph.api.proto.java.NodeCreateTransactionBody(this); int from_bitField0_ = bitField0_; if (accountIdBuilder_ == null) { result.accountId_ = accountId_; } else { result.accountId_ = accountIdBuilder_.build(); } result.description_ = description_; if (gossipEndpointBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { gossipEndpoint_ = java.util.Collections.unmodifiableList(gossipEndpoint_); bitField0_ = (bitField0_ & ~0x00000001); } result.gossipEndpoint_ = gossipEndpoint_; } else { result.gossipEndpoint_ = gossipEndpointBuilder_.build(); } if (serviceEndpointBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { serviceEndpoint_ = java.util.Collections.unmodifiableList(serviceEndpoint_); bitField0_ = (bitField0_ & ~0x00000002); } result.serviceEndpoint_ = serviceEndpoint_; } else { result.serviceEndpoint_ = serviceEndpointBuilder_.build(); } result.gossipCaCertificate_ = gossipCaCertificate_; result.grpcCertificateHash_ = grpcCertificateHash_; if (adminKeyBuilder_ == null) { result.adminKey_ = adminKey_; } else { result.adminKey_ = adminKeyBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.hederahashgraph.api.proto.java.NodeCreateTransactionBody) { return mergeFrom((com.hederahashgraph.api.proto.java.NodeCreateTransactionBody)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.NodeCreateTransactionBody other) { if (other == com.hederahashgraph.api.proto.java.NodeCreateTransactionBody.getDefaultInstance()) return this; if (other.hasAccountId()) { mergeAccountId(other.getAccountId()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (gossipEndpointBuilder_ == null) { if (!other.gossipEndpoint_.isEmpty()) { if (gossipEndpoint_.isEmpty()) { gossipEndpoint_ = other.gossipEndpoint_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureGossipEndpointIsMutable(); gossipEndpoint_.addAll(other.gossipEndpoint_); } onChanged(); } } else { if (!other.gossipEndpoint_.isEmpty()) { if (gossipEndpointBuilder_.isEmpty()) { gossipEndpointBuilder_.dispose(); gossipEndpointBuilder_ = null; gossipEndpoint_ = other.gossipEndpoint_; bitField0_ = (bitField0_ & ~0x00000001); 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_ & ~0x00000002); } else { ensureServiceEndpointIsMutable(); serviceEndpoint_.addAll(other.serviceEndpoint_); } onChanged(); } } else { if (!other.serviceEndpoint_.isEmpty()) { if (serviceEndpointBuilder_.isEmpty()) { serviceEndpointBuilder_.dispose(); serviceEndpointBuilder_ = null; serviceEndpoint_ = other.serviceEndpoint_; bitField0_ = (bitField0_ & ~0x00000002); 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.hasAdminKey()) { mergeAdminKey(other.getAdminKey()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.hederahashgraph.api.proto.java.NodeCreateTransactionBody parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.NodeCreateTransactionBody) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.hederahashgraph.api.proto.java.AccountID accountId_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> accountIdBuilder_; /** *
     **
     * A Node account identifier.
     * <p>
     * This account identifier MUST be in the "account number" form.<br/>
     * This account identifier MUST NOT use the alias field.<br/>
     * If the identified account does not exist, this transaction SHALL fail.<br/>
     * Multiple nodes MAY share the same node account.<br/>
     * This field is REQUIRED.
     * 
* * .proto.AccountID account_id = 1; * @return Whether the accountId field is set. */ public boolean hasAccountId() { return accountIdBuilder_ != null || accountId_ != null; } /** *
     **
     * A Node account identifier.
     * <p>
     * This account identifier MUST be in the "account number" form.<br/>
     * This account identifier MUST NOT use the alias field.<br/>
     * If the identified account does not exist, this transaction SHALL fail.<br/>
     * Multiple nodes MAY share the same node account.<br/>
     * This field is REQUIRED.
     * 
* * .proto.AccountID account_id = 1; * @return The accountId. */ public com.hederahashgraph.api.proto.java.AccountID getAccountId() { if (accountIdBuilder_ == null) { return accountId_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : accountId_; } else { return accountIdBuilder_.getMessage(); } } /** *
     **
     * A Node account identifier.
     * <p>
     * This account identifier MUST be in the "account number" form.<br/>
     * This account identifier MUST NOT use the alias field.<br/>
     * If the identified account does not exist, this transaction SHALL fail.<br/>
     * Multiple nodes MAY share the same node account.<br/>
     * This field is REQUIRED.
     * 
* * .proto.AccountID account_id = 1; */ public Builder setAccountId(com.hederahashgraph.api.proto.java.AccountID value) { if (accountIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } accountId_ = value; onChanged(); } else { accountIdBuilder_.setMessage(value); } return this; } /** *
     **
     * A Node account identifier.
     * <p>
     * This account identifier MUST be in the "account number" form.<br/>
     * This account identifier MUST NOT use the alias field.<br/>
     * If the identified account does not exist, this transaction SHALL fail.<br/>
     * Multiple nodes MAY share the same node account.<br/>
     * This field is REQUIRED.
     * 
* * .proto.AccountID account_id = 1; */ public Builder setAccountId( com.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) { if (accountIdBuilder_ == null) { accountId_ = builderForValue.build(); onChanged(); } else { accountIdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * A Node account identifier.
     * <p>
     * This account identifier MUST be in the "account number" form.<br/>
     * This account identifier MUST NOT use the alias field.<br/>
     * If the identified account does not exist, this transaction SHALL fail.<br/>
     * Multiple nodes MAY share the same node account.<br/>
     * This field is REQUIRED.
     * 
* * .proto.AccountID account_id = 1; */ public Builder mergeAccountId(com.hederahashgraph.api.proto.java.AccountID value) { if (accountIdBuilder_ == null) { if (accountId_ != null) { accountId_ = com.hederahashgraph.api.proto.java.AccountID.newBuilder(accountId_).mergeFrom(value).buildPartial(); } else { accountId_ = value; } onChanged(); } else { accountIdBuilder_.mergeFrom(value); } return this; } /** *
     **
     * A Node account identifier.
     * <p>
     * This account identifier MUST be in the "account number" form.<br/>
     * This account identifier MUST NOT use the alias field.<br/>
     * If the identified account does not exist, this transaction SHALL fail.<br/>
     * Multiple nodes MAY share the same node account.<br/>
     * This field is REQUIRED.
     * 
* * .proto.AccountID account_id = 1; */ public Builder clearAccountId() { if (accountIdBuilder_ == null) { accountId_ = null; onChanged(); } else { accountId_ = null; accountIdBuilder_ = null; } return this; } /** *
     **
     * A Node account identifier.
     * <p>
     * This account identifier MUST be in the "account number" form.<br/>
     * This account identifier MUST NOT use the alias field.<br/>
     * If the identified account does not exist, this transaction SHALL fail.<br/>
     * Multiple nodes MAY share the same node account.<br/>
     * This field is REQUIRED.
     * 
* * .proto.AccountID account_id = 1; */ public com.hederahashgraph.api.proto.java.AccountID.Builder getAccountIdBuilder() { onChanged(); return getAccountIdFieldBuilder().getBuilder(); } /** *
     **
     * A Node account identifier.
     * <p>
     * This account identifier MUST be in the "account number" form.<br/>
     * This account identifier MUST NOT use the alias field.<br/>
     * If the identified account does not exist, this transaction SHALL fail.<br/>
     * Multiple nodes MAY share the same node account.<br/>
     * This field is REQUIRED.
     * 
* * .proto.AccountID account_id = 1; */ public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAccountIdOrBuilder() { if (accountIdBuilder_ != null) { return accountIdBuilder_.getMessageOrBuilder(); } else { return accountId_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : accountId_; } } /** *
     **
     * A Node account identifier.
     * <p>
     * This account identifier MUST be in the "account number" form.<br/>
     * This account identifier MUST NOT use the alias field.<br/>
     * If the identified account does not exist, this transaction SHALL fail.<br/>
     * Multiple nodes MAY share the same node account.<br/>
     * This field is REQUIRED.
     * 
* * .proto.AccountID account_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> getAccountIdFieldBuilder() { if (accountIdBuilder_ == null) { accountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>( getAccountId(), getParentForChildren(), isClean()); accountId_ = null; } return accountIdBuilder_; } private java.lang.Object description_ = ""; /** *
     **
     * A short description of the node.
     * <p>
     * This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
     * This field is OPTIONAL.
     * 
* * string description = 2; * @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, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
     * This field is OPTIONAL.
     * 
* * string description = 2; * @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, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
     * This field is OPTIONAL.
     * 
* * string description = 2; * @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; onChanged(); return this; } /** *
     **
     * A short description of the node.
     * <p>
     * This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
     * This field is OPTIONAL.
     * 
* * string description = 2; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
     **
     * A short description of the node.
     * <p>
     * This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
     * This field is OPTIONAL.
     * 
* * string description = 2; * @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; onChanged(); return this; } private java.util.List gossipEndpoint_ = java.util.Collections.emptyList(); private void ensureGossipEndpointIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { gossipEndpoint_ = new java.util.ArrayList(gossipEndpoint_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hederahashgraph.api.proto.java.ServiceEndpoint, com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder, com.hederahashgraph.api.proto.java.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/>
     * These endpoints MUST specify a port.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST 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.
     * <p>
     * Each network may have additional requirements for these endpoints.
     * A client MUST check network-specific documentation for those
     * details.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list MUST 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
     * MUST NOT supply both values for the same endpoint.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ 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/>
     * These endpoints MUST specify a port.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST 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.
     * <p>
     * Each network may have additional requirements for these endpoints.
     * A client MUST check network-specific documentation for those
     * details.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list MUST 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
     * MUST NOT supply both values for the same endpoint.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ 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/>
     * These endpoints MUST specify a port.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST 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.
     * <p>
     * Each network may have additional requirements for these endpoints.
     * A client MUST check network-specific documentation for those
     * details.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list MUST 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
     * MUST NOT supply both values for the same endpoint.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ public com.hederahashgraph.api.proto.java.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/>
     * These endpoints MUST specify a port.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST 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.
     * <p>
     * Each network may have additional requirements for these endpoints.
     * A client MUST check network-specific documentation for those
     * details.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list MUST 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
     * MUST NOT supply both values for the same endpoint.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ public Builder setGossipEndpoint( int index, com.hederahashgraph.api.proto.java.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/>
     * These endpoints MUST specify a port.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST 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.
     * <p>
     * Each network may have additional requirements for these endpoints.
     * A client MUST check network-specific documentation for those
     * details.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list MUST 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
     * MUST NOT supply both values for the same endpoint.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ public Builder setGossipEndpoint( int index, com.hederahashgraph.api.proto.java.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/>
     * These endpoints MUST specify a port.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST 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.
     * <p>
     * Each network may have additional requirements for these endpoints.
     * A client MUST check network-specific documentation for those
     * details.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list MUST 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
     * MUST NOT supply both values for the same endpoint.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ public Builder addGossipEndpoint(com.hederahashgraph.api.proto.java.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/>
     * These endpoints MUST specify a port.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST 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.
     * <p>
     * Each network may have additional requirements for these endpoints.
     * A client MUST check network-specific documentation for those
     * details.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list MUST 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
     * MUST NOT supply both values for the same endpoint.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ public Builder addGossipEndpoint( int index, com.hederahashgraph.api.proto.java.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/>
     * These endpoints MUST specify a port.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST 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.
     * <p>
     * Each network may have additional requirements for these endpoints.
     * A client MUST check network-specific documentation for those
     * details.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list MUST 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
     * MUST NOT supply both values for the same endpoint.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ public Builder addGossipEndpoint( com.hederahashgraph.api.proto.java.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/>
     * These endpoints MUST specify a port.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST 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.
     * <p>
     * Each network may have additional requirements for these endpoints.
     * A client MUST check network-specific documentation for those
     * details.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list MUST 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
     * MUST NOT supply both values for the same endpoint.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ public Builder addGossipEndpoint( int index, com.hederahashgraph.api.proto.java.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/>
     * These endpoints MUST specify a port.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST 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.
     * <p>
     * Each network may have additional requirements for these endpoints.
     * A client MUST check network-specific documentation for those
     * details.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list MUST 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
     * MUST NOT supply both values for the same endpoint.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ 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/>
     * These endpoints MUST specify a port.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST 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.
     * <p>
     * Each network may have additional requirements for these endpoints.
     * A client MUST check network-specific documentation for those
     * details.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list MUST 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
     * MUST NOT supply both values for the same endpoint.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ public Builder clearGossipEndpoint() { if (gossipEndpointBuilder_ == null) { gossipEndpoint_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); 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/>
     * These endpoints MUST specify a port.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST 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.
     * <p>
     * Each network may have additional requirements for these endpoints.
     * A client MUST check network-specific documentation for those
     * details.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list MUST 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
     * MUST NOT supply both values for the same endpoint.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ 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/>
     * These endpoints MUST specify a port.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST 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.
     * <p>
     * Each network may have additional requirements for these endpoints.
     * A client MUST check network-specific documentation for those
     * details.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list MUST 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
     * MUST NOT supply both values for the same endpoint.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ public com.hederahashgraph.api.proto.java.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/>
     * These endpoints MUST specify a port.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST 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.
     * <p>
     * Each network may have additional requirements for these endpoints.
     * A client MUST check network-specific documentation for those
     * details.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list MUST 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
     * MUST NOT supply both values for the same endpoint.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ public com.hederahashgraph.api.proto.java.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/>
     * These endpoints MUST specify a port.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST 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.
     * <p>
     * Each network may have additional requirements for these endpoints.
     * A client MUST check network-specific documentation for those
     * details.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list MUST 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
     * MUST NOT supply both values for the same endpoint.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ 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/>
     * These endpoints MUST specify a port.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST 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.
     * <p>
     * Each network may have additional requirements for these endpoints.
     * A client MUST check network-specific documentation for those
     * details.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list MUST 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
     * MUST NOT supply both values for the same endpoint.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ public com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder addGossipEndpointBuilder() { return getGossipEndpointFieldBuilder().addBuilder( com.hederahashgraph.api.proto.java.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/>
     * These endpoints MUST specify a port.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST 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.
     * <p>
     * Each network may have additional requirements for these endpoints.
     * A client MUST check network-specific documentation for those
     * details.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list MUST 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
     * MUST NOT supply both values for the same endpoint.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ public com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder addGossipEndpointBuilder( int index) { return getGossipEndpointFieldBuilder().addBuilder( index, com.hederahashgraph.api.proto.java.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/>
     * These endpoints MUST specify a port.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST 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.
     * <p>
     * Each network may have additional requirements for these endpoints.
     * A client MUST check network-specific documentation for those
     * details.<br/>
     * If the network configuration value `gossipFqdnRestricted` is set, then
     * all endpoints in this list MUST 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
     * MUST NOT supply both values for the same endpoint.
     * 
* * repeated .proto.ServiceEndpoint gossip_endpoint = 3; */ public java.util.List getGossipEndpointBuilderList() { return getGossipEndpointFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.hederahashgraph.api.proto.java.ServiceEndpoint, com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder, com.hederahashgraph.api.proto.java.ServiceEndpointOrBuilder> getGossipEndpointFieldBuilder() { if (gossipEndpointBuilder_ == null) { gossipEndpointBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hederahashgraph.api.proto.java.ServiceEndpoint, com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder, com.hederahashgraph.api.proto.java.ServiceEndpointOrBuilder>( gossipEndpoint_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); gossipEndpoint_ = null; } return gossipEndpointBuilder_; } private java.util.List serviceEndpoint_ = java.util.Collections.emptyList(); private void ensureServiceEndpointIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { serviceEndpoint_ = new java.util.ArrayList(serviceEndpoint_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hederahashgraph.api.proto.java.ServiceEndpoint, com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder, com.hederahashgraph.api.proto.java.ServiceEndpointOrBuilder> serviceEndpointBuilder_; /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published gRPC endpoints to which
     * clients may submit transactions.<br/>
     * These endpoints MUST specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but MUST
     * NOT supply both values for the same endpoint.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ 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 gRPC endpoints to which
     * clients may submit transactions.<br/>
     * These endpoints MUST specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but MUST
     * NOT supply both values for the same endpoint.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ 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 gRPC endpoints to which
     * clients may submit transactions.<br/>
     * These endpoints MUST specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but MUST
     * NOT supply both values for the same endpoint.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ public com.hederahashgraph.api.proto.java.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 gRPC endpoints to which
     * clients may submit transactions.<br/>
     * These endpoints MUST specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but MUST
     * NOT supply both values for the same endpoint.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ public Builder setServiceEndpoint( int index, com.hederahashgraph.api.proto.java.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 gRPC endpoints to which
     * clients may submit transactions.<br/>
     * These endpoints MUST specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but MUST
     * NOT supply both values for the same endpoint.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ public Builder setServiceEndpoint( int index, com.hederahashgraph.api.proto.java.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 gRPC endpoints to which
     * clients may submit transactions.<br/>
     * These endpoints MUST specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but MUST
     * NOT supply both values for the same endpoint.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ public Builder addServiceEndpoint(com.hederahashgraph.api.proto.java.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 gRPC endpoints to which
     * clients may submit transactions.<br/>
     * These endpoints MUST specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but MUST
     * NOT supply both values for the same endpoint.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ public Builder addServiceEndpoint( int index, com.hederahashgraph.api.proto.java.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 gRPC endpoints to which
     * clients may submit transactions.<br/>
     * These endpoints MUST specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but MUST
     * NOT supply both values for the same endpoint.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ public Builder addServiceEndpoint( com.hederahashgraph.api.proto.java.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 gRPC endpoints to which
     * clients may submit transactions.<br/>
     * These endpoints MUST specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but MUST
     * NOT supply both values for the same endpoint.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ public Builder addServiceEndpoint( int index, com.hederahashgraph.api.proto.java.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 gRPC endpoints to which
     * clients may submit transactions.<br/>
     * These endpoints MUST specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but MUST
     * NOT supply both values for the same endpoint.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ 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 gRPC endpoints to which
     * clients may submit transactions.<br/>
     * These endpoints MUST specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but MUST
     * NOT supply both values for the same endpoint.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ public Builder clearServiceEndpoint() { if (serviceEndpointBuilder_ == null) { serviceEndpoint_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { serviceEndpointBuilder_.clear(); } return this; } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published gRPC endpoints to which
     * clients may submit transactions.<br/>
     * These endpoints MUST specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but MUST
     * NOT supply both values for the same endpoint.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ 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 gRPC endpoints to which
     * clients may submit transactions.<br/>
     * These endpoints MUST specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but MUST
     * NOT supply both values for the same endpoint.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ public com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder getServiceEndpointBuilder( int index) { return getServiceEndpointFieldBuilder().getBuilder(index); } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published gRPC endpoints to which
     * clients may submit transactions.<br/>
     * These endpoints MUST specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but MUST
     * NOT supply both values for the same endpoint.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ public com.hederahashgraph.api.proto.java.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 gRPC endpoints to which
     * clients may submit transactions.<br/>
     * These endpoints MUST specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but MUST
     * NOT supply both values for the same endpoint.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ 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 gRPC endpoints to which
     * clients may submit transactions.<br/>
     * These endpoints MUST specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but MUST
     * NOT supply both values for the same endpoint.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ public com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder addServiceEndpointBuilder() { return getServiceEndpointFieldBuilder().addBuilder( com.hederahashgraph.api.proto.java.ServiceEndpoint.getDefaultInstance()); } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published gRPC endpoints to which
     * clients may submit transactions.<br/>
     * These endpoints MUST specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but MUST
     * NOT supply both values for the same endpoint.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ public com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder addServiceEndpointBuilder( int index) { return getServiceEndpointFieldBuilder().addBuilder( index, com.hederahashgraph.api.proto.java.ServiceEndpoint.getDefaultInstance()); } /** *
     **
     * A list of service endpoints for gRPC calls.
     * <p>
     * These endpoints SHALL represent the published gRPC endpoints to which
     * clients may submit transactions.<br/>
     * These endpoints MUST specify a port.<br/>
     * Endpoints in this list MAY supply either IP address or FQDN, but MUST
     * NOT supply both values for the same endpoint.<br/>
     * This list MUST NOT be empty.<br/>
     * This list MUST NOT contain more than `8` entries.
     * 
* * repeated .proto.ServiceEndpoint service_endpoint = 4; */ public java.util.List getServiceEndpointBuilderList() { return getServiceEndpointFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.hederahashgraph.api.proto.java.ServiceEndpoint, com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder, com.hederahashgraph.api.proto.java.ServiceEndpointOrBuilder> getServiceEndpointFieldBuilder() { if (serviceEndpointBuilder_ == null) { serviceEndpointBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hederahashgraph.api.proto.java.ServiceEndpoint, com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder, com.hederahashgraph.api.proto.java.ServiceEndpointOrBuilder>( serviceEndpoint_, ((bitField0_ & 0x00000002) != 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 MUST be a certificate of a type permitted for gossip
     * signatures.<br/>
     * This value MUST be the DER encoding of the certificate presented.<br/>
     * This field is REQUIRED and MUST NOT be empty.
     * 
* * bytes gossip_ca_certificate = 5; * @return The gossipCaCertificate. */ @java.lang.Override public com.google.protobuf.ByteString getGossipCaCertificate() { return gossipCaCertificate_; } /** *
     **
     * A certificate used to sign gossip events.
     * <p>
     * This value MUST be a certificate of a type permitted for gossip
     * signatures.<br/>
     * This value MUST be the DER encoding of the certificate presented.<br/>
     * This field is REQUIRED and MUST NOT be empty.
     * 
* * bytes gossip_ca_certificate = 5; * @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; onChanged(); return this; } /** *
     **
     * A certificate used to sign gossip events.
     * <p>
     * This value MUST be a certificate of a type permitted for gossip
     * signatures.<br/>
     * This value MUST be the DER encoding of the certificate presented.<br/>
     * This field is REQUIRED and MUST NOT be empty.
     * 
* * bytes gossip_ca_certificate = 5; * @return This builder for chaining. */ public Builder clearGossipCaCertificate() { gossipCaCertificate_ = getDefaultInstance().getGossipCaCertificate(); onChanged(); return this; } private com.google.protobuf.ByteString grpcCertificateHash_ = com.google.protobuf.ByteString.EMPTY; /** *
     **
     * A hash of the node gRPC TLS certificate.
     * <p>
     * This value MAY be used to verify the certificate presented by the node
     * during TLS negotiation for gRPC.<br/>
     * This value MUST be a SHA-384 hash.<br/>
     * The TLS certificate to be hashed MUST first be in PEM format and MUST 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 = 6; * @return The grpcCertificateHash. */ @java.lang.Override public com.google.protobuf.ByteString getGrpcCertificateHash() { return grpcCertificateHash_; } /** *
     **
     * A hash of the node gRPC TLS certificate.
     * <p>
     * This value MAY be used to verify the certificate presented by the node
     * during TLS negotiation for gRPC.<br/>
     * This value MUST be a SHA-384 hash.<br/>
     * The TLS certificate to be hashed MUST first be in PEM format and MUST 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 = 6; * @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; onChanged(); return this; } /** *
     **
     * A hash of the node gRPC TLS certificate.
     * <p>
     * This value MAY be used to verify the certificate presented by the node
     * during TLS negotiation for gRPC.<br/>
     * This value MUST be a SHA-384 hash.<br/>
     * The TLS certificate to be hashed MUST first be in PEM format and MUST 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 = 6; * @return This builder for chaining. */ public Builder clearGrpcCertificateHash() { grpcCertificateHash_ = getDefaultInstance().getGrpcCertificateHash(); onChanged(); return this; } private com.hederahashgraph.api.proto.java.Key adminKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder> adminKeyBuilder_; /** *
     **
     * An administrative key controlled by the node operator.
     * <p>
     * This key MUST sign this transaction.<br/>
     * 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 = 7; * @return Whether the adminKey field is set. */ public boolean hasAdminKey() { return adminKeyBuilder_ != null || adminKey_ != null; } /** *
     **
     * An administrative key controlled by the node operator.
     * <p>
     * This key MUST sign this transaction.<br/>
     * 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 = 7; * @return The adminKey. */ public com.hederahashgraph.api.proto.java.Key getAdminKey() { if (adminKeyBuilder_ == null) { return adminKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : adminKey_; } else { return adminKeyBuilder_.getMessage(); } } /** *
     **
     * An administrative key controlled by the node operator.
     * <p>
     * This key MUST sign this transaction.<br/>
     * 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 = 7; */ public Builder setAdminKey(com.hederahashgraph.api.proto.java.Key value) { if (adminKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } adminKey_ = value; onChanged(); } else { adminKeyBuilder_.setMessage(value); } return this; } /** *
     **
     * An administrative key controlled by the node operator.
     * <p>
     * This key MUST sign this transaction.<br/>
     * 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 = 7; */ public Builder setAdminKey( com.hederahashgraph.api.proto.java.Key.Builder builderForValue) { if (adminKeyBuilder_ == null) { adminKey_ = builderForValue.build(); onChanged(); } else { adminKeyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * An administrative key controlled by the node operator.
     * <p>
     * This key MUST sign this transaction.<br/>
     * 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 = 7; */ public Builder mergeAdminKey(com.hederahashgraph.api.proto.java.Key value) { if (adminKeyBuilder_ == null) { if (adminKey_ != null) { adminKey_ = com.hederahashgraph.api.proto.java.Key.newBuilder(adminKey_).mergeFrom(value).buildPartial(); } else { adminKey_ = value; } onChanged(); } else { adminKeyBuilder_.mergeFrom(value); } return this; } /** *
     **
     * An administrative key controlled by the node operator.
     * <p>
     * This key MUST sign this transaction.<br/>
     * 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 = 7; */ public Builder clearAdminKey() { if (adminKeyBuilder_ == null) { adminKey_ = null; onChanged(); } else { adminKey_ = null; adminKeyBuilder_ = null; } return this; } /** *
     **
     * An administrative key controlled by the node operator.
     * <p>
     * This key MUST sign this transaction.<br/>
     * 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 = 7; */ public com.hederahashgraph.api.proto.java.Key.Builder getAdminKeyBuilder() { onChanged(); return getAdminKeyFieldBuilder().getBuilder(); } /** *
     **
     * An administrative key controlled by the node operator.
     * <p>
     * This key MUST sign this transaction.<br/>
     * 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 = 7; */ public com.hederahashgraph.api.proto.java.KeyOrBuilder getAdminKeyOrBuilder() { if (adminKeyBuilder_ != null) { return adminKeyBuilder_.getMessageOrBuilder(); } else { return adminKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : adminKey_; } } /** *
     **
     * An administrative key controlled by the node operator.
     * <p>
     * This key MUST sign this transaction.<br/>
     * 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 = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder> getAdminKeyFieldBuilder() { if (adminKeyBuilder_ == null) { adminKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.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.addressbook.NodeCreateTransactionBody) } // @@protoc_insertion_point(class_scope:com.hedera.hapi.node.addressbook.NodeCreateTransactionBody) private static final com.hederahashgraph.api.proto.java.NodeCreateTransactionBody DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.NodeCreateTransactionBody(); } public static com.hederahashgraph.api.proto.java.NodeCreateTransactionBody getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeCreateTransactionBody parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeCreateTransactionBody(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.hederahashgraph.api.proto.java.NodeCreateTransactionBody getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy