Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: node_update.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* Transaction body to modify address book node attributes.
* - This transaction SHALL enable the node operator, as identified by the
* `admin_key`, to modify operational attributes of the node.
* - This transaction MUST be signed by the active `admin_key` for the node.
* - If this transaction sets a new value for the `admin_key`, then both the
* current `admin_key`, and the new `admin_key` MUST sign this transaction.
* - This transaction SHALL NOT change any field that is not set (is null) in
* this transaction body.
* - This SHALL create a pending update to the node, but the change SHALL NOT
* be immediately applied to the active configuration.
* - All pending node updates SHALL be applied 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 `node_id` for the updated entry SHALL be in the
* transaction receipt.
*
*
* Protobuf type {@code com.hedera.hapi.node.addressbook.NodeUpdateTransactionBody}
*/
public final class NodeUpdateTransactionBody extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.hedera.hapi.node.addressbook.NodeUpdateTransactionBody)
NodeUpdateTransactionBodyOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeUpdateTransactionBody.newBuilder() to construct.
private NodeUpdateTransactionBody(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeUpdateTransactionBody() {
gossipEndpoint_ = java.util.Collections.emptyList();
serviceEndpoint_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeUpdateTransactionBody();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeUpdateTransactionBody(
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 8: {
nodeId_ = input.readUInt64();
break;
}
case 18: {
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 26: {
com.google.protobuf.StringValue.Builder subBuilder = null;
if (description_ != null) {
subBuilder = description_.toBuilder();
}
description_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(description_);
description_ = subBuilder.buildPartial();
}
break;
}
case 34: {
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 42: {
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 50: {
com.google.protobuf.BytesValue.Builder subBuilder = null;
if (gossipCaCertificate_ != null) {
subBuilder = gossipCaCertificate_.toBuilder();
}
gossipCaCertificate_ = input.readMessage(com.google.protobuf.BytesValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(gossipCaCertificate_);
gossipCaCertificate_ = subBuilder.buildPartial();
}
break;
}
case 58: {
com.google.protobuf.BytesValue.Builder subBuilder = null;
if (grpcCertificateHash_ != null) {
subBuilder = grpcCertificateHash_.toBuilder();
}
grpcCertificateHash_ = input.readMessage(com.google.protobuf.BytesValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(grpcCertificateHash_);
grpcCertificateHash_ = subBuilder.buildPartial();
}
break;
}
case 66: {
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.NodeUpdate.internal_static_com_hedera_hapi_node_addressbook_NodeUpdateTransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.NodeUpdate.internal_static_com_hedera_hapi_node_addressbook_NodeUpdateTransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.NodeUpdateTransactionBody.class, com.hederahashgraph.api.proto.java.NodeUpdateTransactionBody.Builder.class);
}
public static final int NODE_ID_FIELD_NUMBER = 1;
private long nodeId_;
/**
*
**
* A consensus node identifier in the network state.
* <p>
* The node identified MUST exist in the network address book.<br/>
* The node identified MUST NOT be deleted.<br/>
* This value is REQUIRED.
*
*
* uint64 node_id = 1;
* @return The nodeId.
*/
@java.lang.Override
public long getNodeId() {
return nodeId_;
}
public static final int ACCOUNT_ID_FIELD_NUMBER = 2;
private com.hederahashgraph.api.proto.java.AccountID accountId_;
/**
*
**
* An account identifier.
* <p>
* If set, this SHALL replace the node account identifier.<br/>
* If set, this transaction MUST be signed by the active `key` for _both_
* the current node account _and_ the identified new node account.
*
*
* .proto.AccountID account_id = 2;
* @return Whether the accountId field is set.
*/
@java.lang.Override
public boolean hasAccountId() {
return accountId_ != null;
}
/**
*
**
* An account identifier.
* <p>
* If set, this SHALL replace the node account identifier.<br/>
* If set, this transaction MUST be signed by the active `key` for _both_
* the current node account _and_ the identified new node account.
*
**
* An account identifier.
* <p>
* If set, this SHALL replace the node account identifier.<br/>
* If set, this transaction MUST be signed by the active `key` for _both_
* the current node account _and_ the identified new node account.
*
*
* .proto.AccountID account_id = 2;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAccountIdOrBuilder() {
return getAccountId();
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
private com.google.protobuf.StringValue description_;
/**
*
**
* A short description of the node.
* <p>
* This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
* If set, this value SHALL replace the previous value.
*
*
* .google.protobuf.StringValue description = 3;
* @return Whether the description field is set.
*/
@java.lang.Override
public boolean hasDescription() {
return description_ != null;
}
/**
*
**
* A short description of the node.
* <p>
* This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
* If set, this value SHALL replace the previous value.
*
**
* A short description of the node.
* <p>
* This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
* If set, this value SHALL replace the previous value.
*
*
* .google.protobuf.StringValue description = 3;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getDescriptionOrBuilder() {
return getDescription();
}
public static final int GOSSIP_ENDPOINT_FIELD_NUMBER = 4;
private java.util.List gossipEndpoint_;
/**
*
**
* A list of service endpoints for gossip.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gossip.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gossip.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 4;
*/
@java.lang.Override
public int getGossipEndpointCount() {
return gossipEndpoint_.size();
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gossip.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 4;
*/
@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 = 5;
private java.util.List serviceEndpoint_;
/**
*
**
* A list of service endpoints for gRPC calls.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gRPC calls.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gRPC calls.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
*
* repeated .proto.ServiceEndpoint service_endpoint = 5;
*/
@java.lang.Override
public int getServiceEndpointCount() {
return serviceEndpoint_.size();
}
/**
*
**
* A list of service endpoints for gRPC calls.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gRPC calls.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
*
* repeated .proto.ServiceEndpoint service_endpoint = 5;
*/
@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 = 6;
private com.google.protobuf.BytesValue 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.
* <p>
* If set, the new value SHALL replace the existing bytes value.
*
*
* .google.protobuf.BytesValue gossip_ca_certificate = 6;
* @return Whether the gossipCaCertificate field is set.
*/
@java.lang.Override
public boolean hasGossipCaCertificate() {
return gossipCaCertificate_ != null;
}
/**
*
**
* 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.
* <p>
* If set, the new value SHALL replace the existing bytes value.
*
**
* 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.
* <p>
* If set, the new value SHALL replace the existing bytes value.
*
*
* .google.protobuf.BytesValue gossip_ca_certificate = 6;
*/
@java.lang.Override
public com.google.protobuf.BytesValueOrBuilder getGossipCaCertificateOrBuilder() {
return getGossipCaCertificate();
}
public static final int GRPC_CERTIFICATE_HASH_FIELD_NUMBER = 7;
private com.google.protobuf.BytesValue 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/>
* <p>
* If set, the new value SHALL replace the existing hash value.
*
*
* .google.protobuf.BytesValue grpc_certificate_hash = 7;
* @return Whether the grpcCertificateHash field is set.
*/
@java.lang.Override
public boolean hasGrpcCertificateHash() {
return grpcCertificateHash_ != null;
}
/**
*
**
* 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/>
* <p>
* If set, the new value SHALL replace the existing hash value.
*
**
* 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/>
* <p>
* If set, the new value SHALL replace the existing hash value.
*
*
* .google.protobuf.BytesValue grpc_certificate_hash = 7;
*/
@java.lang.Override
public com.google.protobuf.BytesValueOrBuilder getGrpcCertificateHashOrBuilder() {
return getGrpcCertificateHash();
}
public static final int ADMIN_KEY_FIELD_NUMBER = 8;
private com.hederahashgraph.api.proto.java.Key adminKey_;
/**
*
**
* An administrative key controlled by the node operator.
* <p>
* This field is OPTIONAL.<br/>
* If set, this key MUST sign this transaction.<br/>
* If set, this key MUST sign each subsequent transaction to
* update this node.<br/>
* If set, this field MUST contain a valid `Key` value.<br/>
* If set, this field MUST NOT be set to an empty `KeyList`.
*
*
* .proto.Key admin_key = 8;
* @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 field is OPTIONAL.<br/>
* If set, this key MUST sign this transaction.<br/>
* If set, this key MUST sign each subsequent transaction to
* update this node.<br/>
* If set, this field MUST contain a valid `Key` value.<br/>
* If set, this field MUST NOT be set to an empty `KeyList`.
*
**
* An administrative key controlled by the node operator.
* <p>
* This field is OPTIONAL.<br/>
* If set, this key MUST sign this transaction.<br/>
* If set, this key MUST sign each subsequent transaction to
* update this node.<br/>
* If set, this field MUST contain a valid `Key` value.<br/>
* If set, this field MUST NOT be set to an empty `KeyList`.
*
*
* .proto.Key admin_key = 8;
*/
@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 (nodeId_ != 0L) {
output.writeUInt64(1, nodeId_);
}
if (accountId_ != null) {
output.writeMessage(2, getAccountId());
}
if (description_ != null) {
output.writeMessage(3, getDescription());
}
for (int i = 0; i < gossipEndpoint_.size(); i++) {
output.writeMessage(4, gossipEndpoint_.get(i));
}
for (int i = 0; i < serviceEndpoint_.size(); i++) {
output.writeMessage(5, serviceEndpoint_.get(i));
}
if (gossipCaCertificate_ != null) {
output.writeMessage(6, getGossipCaCertificate());
}
if (grpcCertificateHash_ != null) {
output.writeMessage(7, getGrpcCertificateHash());
}
if (adminKey_ != null) {
output.writeMessage(8, getAdminKey());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (nodeId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, nodeId_);
}
if (accountId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getAccountId());
}
if (description_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getDescription());
}
for (int i = 0; i < gossipEndpoint_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, gossipEndpoint_.get(i));
}
for (int i = 0; i < serviceEndpoint_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, serviceEndpoint_.get(i));
}
if (gossipCaCertificate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getGossipCaCertificate());
}
if (grpcCertificateHash_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getGrpcCertificateHash());
}
if (adminKey_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, 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.NodeUpdateTransactionBody)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.NodeUpdateTransactionBody other = (com.hederahashgraph.api.proto.java.NodeUpdateTransactionBody) obj;
if (getNodeId()
!= other.getNodeId()) return false;
if (hasAccountId() != other.hasAccountId()) return false;
if (hasAccountId()) {
if (!getAccountId()
.equals(other.getAccountId())) return false;
}
if (hasDescription() != other.hasDescription()) return false;
if (hasDescription()) {
if (!getDescription()
.equals(other.getDescription())) return false;
}
if (!getGossipEndpointList()
.equals(other.getGossipEndpointList())) return false;
if (!getServiceEndpointList()
.equals(other.getServiceEndpointList())) return false;
if (hasGossipCaCertificate() != other.hasGossipCaCertificate()) return false;
if (hasGossipCaCertificate()) {
if (!getGossipCaCertificate()
.equals(other.getGossipCaCertificate())) return false;
}
if (hasGrpcCertificateHash() != other.hasGrpcCertificateHash()) return false;
if (hasGrpcCertificateHash()) {
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();
hash = (37 * hash) + NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNodeId());
if (hasAccountId()) {
hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getAccountId().hashCode();
}
if (hasDescription()) {
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();
}
if (hasGossipCaCertificate()) {
hash = (37 * hash) + GOSSIP_CA_CERTIFICATE_FIELD_NUMBER;
hash = (53 * hash) + getGossipCaCertificate().hashCode();
}
if (hasGrpcCertificateHash()) {
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.NodeUpdateTransactionBody parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.NodeUpdateTransactionBody 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.NodeUpdateTransactionBody parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.NodeUpdateTransactionBody 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.NodeUpdateTransactionBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.NodeUpdateTransactionBody 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.NodeUpdateTransactionBody parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.NodeUpdateTransactionBody 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.NodeUpdateTransactionBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.NodeUpdateTransactionBody 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.NodeUpdateTransactionBody 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.NodeUpdateTransactionBody 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.NodeUpdateTransactionBody 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;
}
/**
*
**
* Transaction body to modify address book node attributes.
* - This transaction SHALL enable the node operator, as identified by the
* `admin_key`, to modify operational attributes of the node.
* - This transaction MUST be signed by the active `admin_key` for the node.
* - If this transaction sets a new value for the `admin_key`, then both the
* current `admin_key`, and the new `admin_key` MUST sign this transaction.
* - This transaction SHALL NOT change any field that is not set (is null) in
* this transaction body.
* - This SHALL create a pending update to the node, but the change SHALL NOT
* be immediately applied to the active configuration.
* - All pending node updates SHALL be applied 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 `node_id` for the updated entry SHALL be in the
* transaction receipt.
*
**
* A consensus node identifier in the network state.
* <p>
* The node identified MUST exist in the network address book.<br/>
* The node identified MUST NOT be deleted.<br/>
* This value is REQUIRED.
*
*
* uint64 node_id = 1;
* @return The nodeId.
*/
@java.lang.Override
public long getNodeId() {
return nodeId_;
}
/**
*
**
* A consensus node identifier in the network state.
* <p>
* The node identified MUST exist in the network address book.<br/>
* The node identified MUST NOT be deleted.<br/>
* This value is REQUIRED.
*
*
* uint64 node_id = 1;
* @param value The nodeId to set.
* @return This builder for chaining.
*/
public Builder setNodeId(long value) {
nodeId_ = value;
onChanged();
return this;
}
/**
*
**
* A consensus node identifier in the network state.
* <p>
* The node identified MUST exist in the network address book.<br/>
* The node identified MUST NOT be deleted.<br/>
* This value is REQUIRED.
*
**
* An account identifier.
* <p>
* If set, this SHALL replace the node account identifier.<br/>
* If set, this transaction MUST be signed by the active `key` for _both_
* the current node account _and_ the identified new node account.
*
*
* .proto.AccountID account_id = 2;
* @return Whether the accountId field is set.
*/
public boolean hasAccountId() {
return accountIdBuilder_ != null || accountId_ != null;
}
/**
*
**
* An account identifier.
* <p>
* If set, this SHALL replace the node account identifier.<br/>
* If set, this transaction MUST be signed by the active `key` for _both_
* the current node account _and_ the identified new node account.
*
**
* An account identifier.
* <p>
* If set, this SHALL replace the node account identifier.<br/>
* If set, this transaction MUST be signed by the active `key` for _both_
* the current node account _and_ the identified new node account.
*
*
* .proto.AccountID account_id = 2;
*/
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;
}
/**
*
**
* An account identifier.
* <p>
* If set, this SHALL replace the node account identifier.<br/>
* If set, this transaction MUST be signed by the active `key` for _both_
* the current node account _and_ the identified new node account.
*
**
* An account identifier.
* <p>
* If set, this SHALL replace the node account identifier.<br/>
* If set, this transaction MUST be signed by the active `key` for _both_
* the current node account _and_ the identified new node account.
*
**
* An account identifier.
* <p>
* If set, this SHALL replace the node account identifier.<br/>
* If set, this transaction MUST be signed by the active `key` for _both_
* the current node account _and_ the identified new node account.
*
**
* An account identifier.
* <p>
* If set, this SHALL replace the node account identifier.<br/>
* If set, this transaction MUST be signed by the active `key` for _both_
* the current node account _and_ the identified new node account.
*
**
* An account identifier.
* <p>
* If set, this SHALL replace the node account identifier.<br/>
* If set, this transaction MUST be signed by the active `key` for _both_
* the current node account _and_ the identified new node account.
*
**
* An account identifier.
* <p>
* If set, this SHALL replace the node account identifier.<br/>
* If set, this transaction MUST be signed by the active `key` for _both_
* the current node account _and_ the identified new node account.
*
**
* A short description of the node.
* <p>
* This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
* If set, this value SHALL replace the previous value.
*
*
* .google.protobuf.StringValue description = 3;
* @return Whether the description field is set.
*/
public boolean hasDescription() {
return descriptionBuilder_ != null || description_ != null;
}
/**
*
**
* A short description of the node.
* <p>
* This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
* If set, this value SHALL replace the previous value.
*
**
* A short description of the node.
* <p>
* This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
* If set, this value SHALL replace the previous value.
*
*
* .google.protobuf.StringValue description = 3;
*/
public Builder setDescription(com.google.protobuf.StringValue value) {
if (descriptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
} else {
descriptionBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* A short description of the node.
* <p>
* This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
* If set, this value SHALL replace the previous value.
*
**
* A short description of the node.
* <p>
* This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
* If set, this value SHALL replace the previous value.
*
**
* A short description of the node.
* <p>
* This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
* If set, this value SHALL replace the previous value.
*
**
* A short description of the node.
* <p>
* This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
* If set, this value SHALL replace the previous value.
*
**
* A short description of the node.
* <p>
* This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
* If set, this value SHALL replace the previous value.
*
**
* A short description of the node.
* <p>
* This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
* If set, this value SHALL replace the previous value.
*
**
* A list of service endpoints for gossip.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gossip.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 4;
*/
public int getGossipEndpointCount() {
if (gossipEndpointBuilder_ == null) {
return gossipEndpoint_.size();
} else {
return gossipEndpointBuilder_.getCount();
}
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gossip.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 4;
*/
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>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gossip.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 4;
*/
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>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 4;
*/
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>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gossip.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gossip.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gossip.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gossip.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gossip.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 4;
*/
public com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder getGossipEndpointBuilder(
int index) {
return getGossipEndpointFieldBuilder().getBuilder(index);
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 4;
*/
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>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gossip.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gossip.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gossip.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<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/>
* <blockquote>Example<blockquote>
* Hedera Mainnet _requires_ that address be specified, and does not
* permit DNS name (FQDN) to be specified.<br/>
* Mainnet also requires that the first entry be an "internal" IP
* address and the second entry be an "external" IP address.
* </blockquote>
* <blockquote>
* Solo, however, _requires_ DNS name (FQDN) but also permits
* address.
* </blockquote></blockquote>
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gRPC calls.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gRPC calls.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
*
* repeated .proto.ServiceEndpoint service_endpoint = 5;
*/
public int getServiceEndpointCount() {
if (serviceEndpointBuilder_ == null) {
return serviceEndpoint_.size();
} else {
return serviceEndpointBuilder_.getCount();
}
}
/**
*
**
* A list of service endpoints for gRPC calls.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gRPC calls.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
*
* repeated .proto.ServiceEndpoint service_endpoint = 5;
*/
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>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gRPC calls.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
*
* repeated .proto.ServiceEndpoint service_endpoint = 5;
*/
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>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
*
* repeated .proto.ServiceEndpoint service_endpoint = 5;
*/
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>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gRPC calls.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gRPC calls.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gRPC calls.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gRPC calls.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gRPC calls.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
*
* repeated .proto.ServiceEndpoint service_endpoint = 5;
*/
public com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder getServiceEndpointBuilder(
int index) {
return getServiceEndpointFieldBuilder().getBuilder(index);
}
/**
*
**
* A list of service endpoints for gRPC calls.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
*
* repeated .proto.ServiceEndpoint service_endpoint = 5;
*/
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>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gRPC calls.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gRPC calls.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* A list of service endpoints for gRPC calls.
* <p>
* If set, this list MUST meet the following requirements.
* <hr/>
* These endpoints SHALL represent the published endpoints to which clients
* may submit transactions.<br/>
* These endpoints SHOULD specify address and port.<br/>
* These endpoints MAY specify a DNS name.<br/>
* These endpoints SHOULD NOT specify both address and DNS name.<br/>
* This list MUST NOT be empty.<br/>
* This list MUST NOT contain more than `8` entries.
* <p>
* Each network may have additional requirements for these endpoints.
* A client MUST check network-specific documentation for those
* details.
* <p>
* If set, the new list SHALL replace the existing list.
*
**
* 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.
* <p>
* If set, the new value SHALL replace the existing bytes value.
*
*
* .google.protobuf.BytesValue gossip_ca_certificate = 6;
* @return Whether the gossipCaCertificate field is set.
*/
public boolean hasGossipCaCertificate() {
return gossipCaCertificateBuilder_ != null || gossipCaCertificate_ != null;
}
/**
*
**
* 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.
* <p>
* If set, the new value SHALL replace the existing bytes value.
*
**
* 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.
* <p>
* If set, the new value SHALL replace the existing bytes value.
*
*
* .google.protobuf.BytesValue gossip_ca_certificate = 6;
*/
public Builder setGossipCaCertificate(com.google.protobuf.BytesValue value) {
if (gossipCaCertificateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
gossipCaCertificate_ = value;
onChanged();
} else {
gossipCaCertificateBuilder_.setMessage(value);
}
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.
* <p>
* If set, the new value SHALL replace the existing bytes value.
*
**
* 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.
* <p>
* If set, the new value SHALL replace the existing bytes value.
*
**
* 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.
* <p>
* If set, the new value SHALL replace the existing bytes value.
*
**
* 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.
* <p>
* If set, the new value SHALL replace the existing bytes value.
*
**
* 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.
* <p>
* If set, the new value SHALL replace the existing bytes value.
*
**
* 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.
* <p>
* If set, the new value SHALL replace the existing bytes value.
*
**
* 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/>
* <p>
* If set, the new value SHALL replace the existing hash value.
*
*
* .google.protobuf.BytesValue grpc_certificate_hash = 7;
* @return Whether the grpcCertificateHash field is set.
*/
public boolean hasGrpcCertificateHash() {
return grpcCertificateHashBuilder_ != null || grpcCertificateHash_ != null;
}
/**
*
**
* 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/>
* <p>
* If set, the new value SHALL replace the existing hash value.
*
**
* 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/>
* <p>
* If set, the new value SHALL replace the existing hash value.
*
*
* .google.protobuf.BytesValue grpc_certificate_hash = 7;
*/
public Builder setGrpcCertificateHash(com.google.protobuf.BytesValue value) {
if (grpcCertificateHashBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
grpcCertificateHash_ = value;
onChanged();
} else {
grpcCertificateHashBuilder_.setMessage(value);
}
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/>
* <p>
* If set, the new value SHALL replace the existing hash value.
*
**
* 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/>
* <p>
* If set, the new value SHALL replace the existing hash value.
*
**
* 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/>
* <p>
* If set, the new value SHALL replace the existing hash value.
*
**
* 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/>
* <p>
* If set, the new value SHALL replace the existing hash value.
*
**
* 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/>
* <p>
* If set, the new value SHALL replace the existing hash value.
*
**
* 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/>
* <p>
* If set, the new value SHALL replace the existing hash value.
*
**
* An administrative key controlled by the node operator.
* <p>
* This field is OPTIONAL.<br/>
* If set, this key MUST sign this transaction.<br/>
* If set, this key MUST sign each subsequent transaction to
* update this node.<br/>
* If set, this field MUST contain a valid `Key` value.<br/>
* If set, this field MUST NOT be set to an empty `KeyList`.
*
*
* .proto.Key admin_key = 8;
* @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 field is OPTIONAL.<br/>
* If set, this key MUST sign this transaction.<br/>
* If set, this key MUST sign each subsequent transaction to
* update this node.<br/>
* If set, this field MUST contain a valid `Key` value.<br/>
* If set, this field MUST NOT be set to an empty `KeyList`.
*
**
* An administrative key controlled by the node operator.
* <p>
* This field is OPTIONAL.<br/>
* If set, this key MUST sign this transaction.<br/>
* If set, this key MUST sign each subsequent transaction to
* update this node.<br/>
* If set, this field MUST contain a valid `Key` value.<br/>
* If set, this field MUST NOT be set to an empty `KeyList`.
*
*
* .proto.Key admin_key = 8;
*/
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 field is OPTIONAL.<br/>
* If set, this key MUST sign this transaction.<br/>
* If set, this key MUST sign each subsequent transaction to
* update this node.<br/>
* If set, this field MUST contain a valid `Key` value.<br/>
* If set, this field MUST NOT be set to an empty `KeyList`.
*
**
* An administrative key controlled by the node operator.
* <p>
* This field is OPTIONAL.<br/>
* If set, this key MUST sign this transaction.<br/>
* If set, this key MUST sign each subsequent transaction to
* update this node.<br/>
* If set, this field MUST contain a valid `Key` value.<br/>
* If set, this field MUST NOT be set to an empty `KeyList`.
*
**
* An administrative key controlled by the node operator.
* <p>
* This field is OPTIONAL.<br/>
* If set, this key MUST sign this transaction.<br/>
* If set, this key MUST sign each subsequent transaction to
* update this node.<br/>
* If set, this field MUST contain a valid `Key` value.<br/>
* If set, this field MUST NOT be set to an empty `KeyList`.
*
**
* An administrative key controlled by the node operator.
* <p>
* This field is OPTIONAL.<br/>
* If set, this key MUST sign this transaction.<br/>
* If set, this key MUST sign each subsequent transaction to
* update this node.<br/>
* If set, this field MUST contain a valid `Key` value.<br/>
* If set, this field MUST NOT be set to an empty `KeyList`.
*
**
* An administrative key controlled by the node operator.
* <p>
* This field is OPTIONAL.<br/>
* If set, this key MUST sign this transaction.<br/>
* If set, this key MUST sign each subsequent transaction to
* update this node.<br/>
* If set, this field MUST contain a valid `Key` value.<br/>
* If set, this field MUST NOT be set to an empty `KeyList`.
*
**
* An administrative key controlled by the node operator.
* <p>
* This field is OPTIONAL.<br/>
* If set, this key MUST sign this transaction.<br/>
* If set, this key MUST sign each subsequent transaction to
* update this node.<br/>
* If set, this field MUST contain a valid `Key` value.<br/>
* If set, this field MUST NOT be set to an empty `KeyList`.
*
*
* .proto.Key admin_key = 8;
*/
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.NodeUpdateTransactionBody)
}
// @@protoc_insertion_point(class_scope:com.hedera.hapi.node.addressbook.NodeUpdateTransactionBody)
private static final com.hederahashgraph.api.proto.java.NodeUpdateTransactionBody DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.NodeUpdateTransactionBody();
}
public static com.hederahashgraph.api.proto.java.NodeUpdateTransactionBody getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NodeUpdateTransactionBody parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NodeUpdateTransactionBody(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.NodeUpdateTransactionBody getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}