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

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

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

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

/**
 * 
 **
 * The data about a node, including its service endpoints and the Hedera account to be paid for
 * services provided by the node (that is, queries answered and transactions submitted.)
 *
 * If the `serviceEndpoint` list is not set, or empty, then the endpoint given by the
 * (deprecated) `ipAddress` and `portno` fields should be used.
 *
 * All fields are populated in the 0.0.102 address book file while only fields that start with # are
 * populated in the 0.0.101 address book file.
 * 
* * Protobuf type {@code proto.NodeAddress} */ public final class NodeAddress extends com.google.protobuf.GeneratedMessageLite< NodeAddress, NodeAddress.Builder> implements // @@protoc_insertion_point(message_implements:proto.NodeAddress) NodeAddressOrBuilder { private NodeAddress() { ipAddress_ = com.google.protobuf.ByteString.EMPTY; memo_ = com.google.protobuf.ByteString.EMPTY; rSAPubKey_ = ""; nodeCertHash_ = com.google.protobuf.ByteString.EMPTY; serviceEndpoint_ = emptyProtobufList(); description_ = ""; } private int bitField0_; public static final int IPADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ipAddress_; /** *
   **
   * The IP address of the Node with separator & octets encoded in UTF-8.  Usage is deprecated,
   * ServiceEndpoint is preferred to retrieve a node's list of IP addresses and ports
   * 
* * bytes ipAddress = 1 [deprecated = true]; * @deprecated proto.NodeAddress.ipAddress is deprecated. * See basic_types.proto;l=1446 * @return The ipAddress. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getIpAddress() { return ipAddress_; } /** *
   **
   * The IP address of the Node with separator & octets encoded in UTF-8.  Usage is deprecated,
   * ServiceEndpoint is preferred to retrieve a node's list of IP addresses and ports
   * 
* * bytes ipAddress = 1 [deprecated = true]; * @deprecated proto.NodeAddress.ipAddress is deprecated. * See basic_types.proto;l=1446 * @param value The ipAddress to set. */ private void setIpAddress(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); ipAddress_ = value; } /** *
   **
   * The IP address of the Node with separator & octets encoded in UTF-8.  Usage is deprecated,
   * ServiceEndpoint is preferred to retrieve a node's list of IP addresses and ports
   * 
* * bytes ipAddress = 1 [deprecated = true]; * @deprecated proto.NodeAddress.ipAddress is deprecated. * See basic_types.proto;l=1446 */ private void clearIpAddress() { ipAddress_ = getDefaultInstance().getIpAddress(); } public static final int PORTNO_FIELD_NUMBER = 2; private int portno_; /** *
   **
   * The port number of the grpc server for the node.  Usage is deprecated, ServiceEndpoint is
   * preferred to retrieve a node's list of IP addresses and ports
   * 
* * int32 portno = 2 [deprecated = true]; * @deprecated proto.NodeAddress.portno is deprecated. * See basic_types.proto;l=1452 * @return The portno. */ @java.lang.Override @java.lang.Deprecated public int getPortno() { return portno_; } /** *
   **
   * The port number of the grpc server for the node.  Usage is deprecated, ServiceEndpoint is
   * preferred to retrieve a node's list of IP addresses and ports
   * 
* * int32 portno = 2 [deprecated = true]; * @deprecated proto.NodeAddress.portno is deprecated. * See basic_types.proto;l=1452 * @param value The portno to set. */ private void setPortno(int value) { portno_ = value; } /** *
   **
   * The port number of the grpc server for the node.  Usage is deprecated, ServiceEndpoint is
   * preferred to retrieve a node's list of IP addresses and ports
   * 
* * int32 portno = 2 [deprecated = true]; * @deprecated proto.NodeAddress.portno is deprecated. * See basic_types.proto;l=1452 */ private void clearPortno() { portno_ = 0; } public static final int MEMO_FIELD_NUMBER = 3; private com.google.protobuf.ByteString memo_; /** *
   **
   * Usage is deprecated, nodeAccountId is preferred to retrieve a node's account ID
   * 
* * bytes memo = 3 [deprecated = true]; * @deprecated proto.NodeAddress.memo is deprecated. * See basic_types.proto;l=1457 * @return The memo. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getMemo() { return memo_; } /** *
   **
   * Usage is deprecated, nodeAccountId is preferred to retrieve a node's account ID
   * 
* * bytes memo = 3 [deprecated = true]; * @deprecated proto.NodeAddress.memo is deprecated. * See basic_types.proto;l=1457 * @param value The memo to set. */ private void setMemo(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); memo_ = value; } /** *
   **
   * Usage is deprecated, nodeAccountId is preferred to retrieve a node's account ID
   * 
* * bytes memo = 3 [deprecated = true]; * @deprecated proto.NodeAddress.memo is deprecated. * See basic_types.proto;l=1457 */ private void clearMemo() { memo_ = getDefaultInstance().getMemo(); } public static final int RSA_PUBKEY_FIELD_NUMBER = 4; private java.lang.String rSAPubKey_; /** *
   **
   * The node's X509 RSA public key used to sign stream files (e.g., record stream
   * files). Precisely, this field is a string of hexadecimal characters which,
   * translated to binary, are the public key's DER encoding.
   * 
* * string RSA_PubKey = 4; * @return The rSAPubKey. */ @java.lang.Override public java.lang.String getRSAPubKey() { return rSAPubKey_; } /** *
   **
   * The node's X509 RSA public key used to sign stream files (e.g., record stream
   * files). Precisely, this field is a string of hexadecimal characters which,
   * translated to binary, are the public key's DER encoding.
   * 
* * string RSA_PubKey = 4; * @return The bytes for rSAPubKey. */ @java.lang.Override public com.google.protobuf.ByteString getRSAPubKeyBytes() { return com.google.protobuf.ByteString.copyFromUtf8(rSAPubKey_); } /** *
   **
   * The node's X509 RSA public key used to sign stream files (e.g., record stream
   * files). Precisely, this field is a string of hexadecimal characters which,
   * translated to binary, are the public key's DER encoding.
   * 
* * string RSA_PubKey = 4; * @param value The rSAPubKey to set. */ private void setRSAPubKey( java.lang.String value) { java.lang.Class valueClass = value.getClass(); rSAPubKey_ = value; } /** *
   **
   * The node's X509 RSA public key used to sign stream files (e.g., record stream
   * files). Precisely, this field is a string of hexadecimal characters which,
   * translated to binary, are the public key's DER encoding.
   * 
* * string RSA_PubKey = 4; */ private void clearRSAPubKey() { rSAPubKey_ = getDefaultInstance().getRSAPubKey(); } /** *
   **
   * The node's X509 RSA public key used to sign stream files (e.g., record stream
   * files). Precisely, this field is a string of hexadecimal characters which,
   * translated to binary, are the public key's DER encoding.
   * 
* * string RSA_PubKey = 4; * @param value The bytes for rSAPubKey to set. */ private void setRSAPubKeyBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); rSAPubKey_ = value.toStringUtf8(); } public static final int NODEID_FIELD_NUMBER = 5; private long nodeId_; /** *
   **
   * # A non-sequential identifier for the node
   * 
* * int64 nodeId = 5; * @return The nodeId. */ @java.lang.Override public long getNodeId() { return nodeId_; } /** *
   **
   * # A non-sequential identifier for the node
   * 
* * int64 nodeId = 5; * @param value The nodeId to set. */ private void setNodeId(long value) { nodeId_ = value; } /** *
   **
   * # A non-sequential identifier for the node
   * 
* * int64 nodeId = 5; */ private void clearNodeId() { nodeId_ = 0L; } public static final int NODEACCOUNTID_FIELD_NUMBER = 6; private com.hedera.hashgraph.sdk.proto.AccountID nodeAccountId_; /** *
   **
   * # The account to be paid for queries and transactions sent to this node
   * 
* * .proto.AccountID nodeAccountId = 6; */ @java.lang.Override public boolean hasNodeAccountId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * # The account to be paid for queries and transactions sent to this node
   * 
* * .proto.AccountID nodeAccountId = 6; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getNodeAccountId() { return nodeAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : nodeAccountId_; } /** *
   **
   * # The account to be paid for queries and transactions sent to this node
   * 
* * .proto.AccountID nodeAccountId = 6; */ private void setNodeAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { value.getClass(); nodeAccountId_ = value; bitField0_ |= 0x00000001; } /** *
   **
   * # The account to be paid for queries and transactions sent to this node
   * 
* * .proto.AccountID nodeAccountId = 6; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeNodeAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { value.getClass(); if (nodeAccountId_ != null && nodeAccountId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { nodeAccountId_ = com.hedera.hashgraph.sdk.proto.AccountID.newBuilder(nodeAccountId_).mergeFrom(value).buildPartial(); } else { nodeAccountId_ = value; } bitField0_ |= 0x00000001; } /** *
   **
   * # The account to be paid for queries and transactions sent to this node
   * 
* * .proto.AccountID nodeAccountId = 6; */ private void clearNodeAccountId() { nodeAccountId_ = null; bitField0_ = (bitField0_ & ~0x00000001); } public static final int NODECERTHASH_FIELD_NUMBER = 7; private com.google.protobuf.ByteString nodeCertHash_; /** *
   **
   * # Hash of the node's TLS certificate. Precisely, this field is a string of
   * hexadecimal characters which, translated to binary, are the SHA-384 hash of
   * the UTF-8 NFKD encoding of the node's TLS cert in PEM format. Its value can be
   * used to verify the node's certificate it presents during TLS negotiations.
   * 
* * bytes nodeCertHash = 7; * @return The nodeCertHash. */ @java.lang.Override public com.google.protobuf.ByteString getNodeCertHash() { return nodeCertHash_; } /** *
   **
   * # Hash of the node's TLS certificate. Precisely, this field is a string of
   * hexadecimal characters which, translated to binary, are the SHA-384 hash of
   * the UTF-8 NFKD encoding of the node's TLS cert in PEM format. Its value can be
   * used to verify the node's certificate it presents during TLS negotiations.
   * 
* * bytes nodeCertHash = 7; * @param value The nodeCertHash to set. */ private void setNodeCertHash(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); nodeCertHash_ = value; } /** *
   **
   * # Hash of the node's TLS certificate. Precisely, this field is a string of
   * hexadecimal characters which, translated to binary, are the SHA-384 hash of
   * the UTF-8 NFKD encoding of the node's TLS cert in PEM format. Its value can be
   * used to verify the node's certificate it presents during TLS negotiations.
   * 
* * bytes nodeCertHash = 7; */ private void clearNodeCertHash() { nodeCertHash_ = getDefaultInstance().getNodeCertHash(); } public static final int SERVICEENDPOINT_FIELD_NUMBER = 8; private com.google.protobuf.Internal.ProtobufList serviceEndpoint_; /** *
   **
   * # A node's service IP addresses and ports
   * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ @java.lang.Override public java.util.List getServiceEndpointList() { return serviceEndpoint_; } /** *
   **
   * # A node's service IP addresses and ports
   * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ public java.util.List getServiceEndpointOrBuilderList() { return serviceEndpoint_; } /** *
   **
   * # A node's service IP addresses and ports
   * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ @java.lang.Override public int getServiceEndpointCount() { return serviceEndpoint_.size(); } /** *
   **
   * # A node's service IP addresses and ports
   * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ServiceEndpoint getServiceEndpoint(int index) { return serviceEndpoint_.get(index); } /** *
   **
   * # A node's service IP addresses and ports
   * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ public com.hedera.hashgraph.sdk.proto.ServiceEndpointOrBuilder getServiceEndpointOrBuilder( int index) { return serviceEndpoint_.get(index); } private void ensureServiceEndpointIsMutable() { com.google.protobuf.Internal.ProtobufList tmp = serviceEndpoint_; if (!tmp.isModifiable()) { serviceEndpoint_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); } } /** *
   **
   * # A node's service IP addresses and ports
   * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ private void setServiceEndpoint( int index, com.hedera.hashgraph.sdk.proto.ServiceEndpoint value) { value.getClass(); ensureServiceEndpointIsMutable(); serviceEndpoint_.set(index, value); } /** *
   **
   * # A node's service IP addresses and ports
   * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ private void addServiceEndpoint(com.hedera.hashgraph.sdk.proto.ServiceEndpoint value) { value.getClass(); ensureServiceEndpointIsMutable(); serviceEndpoint_.add(value); } /** *
   **
   * # A node's service IP addresses and ports
   * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ private void addServiceEndpoint( int index, com.hedera.hashgraph.sdk.proto.ServiceEndpoint value) { value.getClass(); ensureServiceEndpointIsMutable(); serviceEndpoint_.add(index, value); } /** *
   **
   * # A node's service IP addresses and ports
   * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ private void addAllServiceEndpoint( java.lang.Iterable values) { ensureServiceEndpointIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, serviceEndpoint_); } /** *
   **
   * # A node's service IP addresses and ports
   * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ private void clearServiceEndpoint() { serviceEndpoint_ = emptyProtobufList(); } /** *
   **
   * # A node's service IP addresses and ports
   * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ private void removeServiceEndpoint(int index) { ensureServiceEndpointIsMutable(); serviceEndpoint_.remove(index); } public static final int DESCRIPTION_FIELD_NUMBER = 9; private java.lang.String description_; /** *
   **
   * A description of the node, with UTF-8 encoding up to 100 bytes
   * 
* * string description = 9; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { return description_; } /** *
   **
   * A description of the node, with UTF-8 encoding up to 100 bytes
   * 
* * string description = 9; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { return com.google.protobuf.ByteString.copyFromUtf8(description_); } /** *
   **
   * A description of the node, with UTF-8 encoding up to 100 bytes
   * 
* * string description = 9; * @param value The description to set. */ private void setDescription( java.lang.String value) { java.lang.Class valueClass = value.getClass(); description_ = value; } /** *
   **
   * A description of the node, with UTF-8 encoding up to 100 bytes
   * 
* * string description = 9; */ private void clearDescription() { description_ = getDefaultInstance().getDescription(); } /** *
   **
   * A description of the node, with UTF-8 encoding up to 100 bytes
   * 
* * string description = 9; * @param value The bytes for description to set. */ private void setDescriptionBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); description_ = value.toStringUtf8(); } public static final int STAKE_FIELD_NUMBER = 10; private long stake_; /** *
   **
   * [Deprecated] The amount of tinybars staked to the node
   * 
* * int64 stake = 10 [deprecated = true]; * @deprecated proto.NodeAddress.stake is deprecated. * See basic_types.proto;l=1497 * @return The stake. */ @java.lang.Override @java.lang.Deprecated public long getStake() { return stake_; } /** *
   **
   * [Deprecated] The amount of tinybars staked to the node
   * 
* * int64 stake = 10 [deprecated = true]; * @deprecated proto.NodeAddress.stake is deprecated. * See basic_types.proto;l=1497 * @param value The stake to set. */ private void setStake(long value) { stake_ = value; } /** *
   **
   * [Deprecated] The amount of tinybars staked to the node
   * 
* * int64 stake = 10 [deprecated = true]; * @deprecated proto.NodeAddress.stake is deprecated. * See basic_types.proto;l=1497 */ private void clearStake() { stake_ = 0L; } public static com.hedera.hashgraph.sdk.proto.NodeAddress parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.NodeAddress parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.NodeAddress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.NodeAddress parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.NodeAddress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.NodeAddress parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.NodeAddress parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.NodeAddress parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.NodeAddress parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.NodeAddress parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.NodeAddress parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.NodeAddress parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.NodeAddress prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   **
   * The data about a node, including its service endpoints and the Hedera account to be paid for
   * services provided by the node (that is, queries answered and transactions submitted.)
   *
   * If the `serviceEndpoint` list is not set, or empty, then the endpoint given by the
   * (deprecated) `ipAddress` and `portno` fields should be used.
   *
   * All fields are populated in the 0.0.102 address book file while only fields that start with # are
   * populated in the 0.0.101 address book file.
   * 
* * Protobuf type {@code proto.NodeAddress} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.hedera.hashgraph.sdk.proto.NodeAddress, Builder> implements // @@protoc_insertion_point(builder_implements:proto.NodeAddress) com.hedera.hashgraph.sdk.proto.NodeAddressOrBuilder { // Construct using com.hedera.hashgraph.sdk.proto.NodeAddress.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     **
     * The IP address of the Node with separator & octets encoded in UTF-8.  Usage is deprecated,
     * ServiceEndpoint is preferred to retrieve a node's list of IP addresses and ports
     * 
* * bytes ipAddress = 1 [deprecated = true]; * @deprecated proto.NodeAddress.ipAddress is deprecated. * See basic_types.proto;l=1446 * @return The ipAddress. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getIpAddress() { return instance.getIpAddress(); } /** *
     **
     * The IP address of the Node with separator & octets encoded in UTF-8.  Usage is deprecated,
     * ServiceEndpoint is preferred to retrieve a node's list of IP addresses and ports
     * 
* * bytes ipAddress = 1 [deprecated = true]; * @deprecated proto.NodeAddress.ipAddress is deprecated. * See basic_types.proto;l=1446 * @param value The ipAddress to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setIpAddress(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setIpAddress(value); return this; } /** *
     **
     * The IP address of the Node with separator & octets encoded in UTF-8.  Usage is deprecated,
     * ServiceEndpoint is preferred to retrieve a node's list of IP addresses and ports
     * 
* * bytes ipAddress = 1 [deprecated = true]; * @deprecated proto.NodeAddress.ipAddress is deprecated. * See basic_types.proto;l=1446 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearIpAddress() { copyOnWrite(); instance.clearIpAddress(); return this; } /** *
     **
     * The port number of the grpc server for the node.  Usage is deprecated, ServiceEndpoint is
     * preferred to retrieve a node's list of IP addresses and ports
     * 
* * int32 portno = 2 [deprecated = true]; * @deprecated proto.NodeAddress.portno is deprecated. * See basic_types.proto;l=1452 * @return The portno. */ @java.lang.Override @java.lang.Deprecated public int getPortno() { return instance.getPortno(); } /** *
     **
     * The port number of the grpc server for the node.  Usage is deprecated, ServiceEndpoint is
     * preferred to retrieve a node's list of IP addresses and ports
     * 
* * int32 portno = 2 [deprecated = true]; * @deprecated proto.NodeAddress.portno is deprecated. * See basic_types.proto;l=1452 * @param value The portno to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setPortno(int value) { copyOnWrite(); instance.setPortno(value); return this; } /** *
     **
     * The port number of the grpc server for the node.  Usage is deprecated, ServiceEndpoint is
     * preferred to retrieve a node's list of IP addresses and ports
     * 
* * int32 portno = 2 [deprecated = true]; * @deprecated proto.NodeAddress.portno is deprecated. * See basic_types.proto;l=1452 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearPortno() { copyOnWrite(); instance.clearPortno(); return this; } /** *
     **
     * Usage is deprecated, nodeAccountId is preferred to retrieve a node's account ID
     * 
* * bytes memo = 3 [deprecated = true]; * @deprecated proto.NodeAddress.memo is deprecated. * See basic_types.proto;l=1457 * @return The memo. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getMemo() { return instance.getMemo(); } /** *
     **
     * Usage is deprecated, nodeAccountId is preferred to retrieve a node's account ID
     * 
* * bytes memo = 3 [deprecated = true]; * @deprecated proto.NodeAddress.memo is deprecated. * See basic_types.proto;l=1457 * @param value The memo to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setMemo(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setMemo(value); return this; } /** *
     **
     * Usage is deprecated, nodeAccountId is preferred to retrieve a node's account ID
     * 
* * bytes memo = 3 [deprecated = true]; * @deprecated proto.NodeAddress.memo is deprecated. * See basic_types.proto;l=1457 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearMemo() { copyOnWrite(); instance.clearMemo(); return this; } /** *
     **
     * The node's X509 RSA public key used to sign stream files (e.g., record stream
     * files). Precisely, this field is a string of hexadecimal characters which,
     * translated to binary, are the public key's DER encoding.
     * 
* * string RSA_PubKey = 4; * @return The rSAPubKey. */ @java.lang.Override public java.lang.String getRSAPubKey() { return instance.getRSAPubKey(); } /** *
     **
     * The node's X509 RSA public key used to sign stream files (e.g., record stream
     * files). Precisely, this field is a string of hexadecimal characters which,
     * translated to binary, are the public key's DER encoding.
     * 
* * string RSA_PubKey = 4; * @return The bytes for rSAPubKey. */ @java.lang.Override public com.google.protobuf.ByteString getRSAPubKeyBytes() { return instance.getRSAPubKeyBytes(); } /** *
     **
     * The node's X509 RSA public key used to sign stream files (e.g., record stream
     * files). Precisely, this field is a string of hexadecimal characters which,
     * translated to binary, are the public key's DER encoding.
     * 
* * string RSA_PubKey = 4; * @param value The rSAPubKey to set. * @return This builder for chaining. */ public Builder setRSAPubKey( java.lang.String value) { copyOnWrite(); instance.setRSAPubKey(value); return this; } /** *
     **
     * The node's X509 RSA public key used to sign stream files (e.g., record stream
     * files). Precisely, this field is a string of hexadecimal characters which,
     * translated to binary, are the public key's DER encoding.
     * 
* * string RSA_PubKey = 4; * @return This builder for chaining. */ public Builder clearRSAPubKey() { copyOnWrite(); instance.clearRSAPubKey(); return this; } /** *
     **
     * The node's X509 RSA public key used to sign stream files (e.g., record stream
     * files). Precisely, this field is a string of hexadecimal characters which,
     * translated to binary, are the public key's DER encoding.
     * 
* * string RSA_PubKey = 4; * @param value The bytes for rSAPubKey to set. * @return This builder for chaining. */ public Builder setRSAPubKeyBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setRSAPubKeyBytes(value); return this; } /** *
     **
     * # A non-sequential identifier for the node
     * 
* * int64 nodeId = 5; * @return The nodeId. */ @java.lang.Override public long getNodeId() { return instance.getNodeId(); } /** *
     **
     * # A non-sequential identifier for the node
     * 
* * int64 nodeId = 5; * @param value The nodeId to set. * @return This builder for chaining. */ public Builder setNodeId(long value) { copyOnWrite(); instance.setNodeId(value); return this; } /** *
     **
     * # A non-sequential identifier for the node
     * 
* * int64 nodeId = 5; * @return This builder for chaining. */ public Builder clearNodeId() { copyOnWrite(); instance.clearNodeId(); return this; } /** *
     **
     * # The account to be paid for queries and transactions sent to this node
     * 
* * .proto.AccountID nodeAccountId = 6; */ @java.lang.Override public boolean hasNodeAccountId() { return instance.hasNodeAccountId(); } /** *
     **
     * # The account to be paid for queries and transactions sent to this node
     * 
* * .proto.AccountID nodeAccountId = 6; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getNodeAccountId() { return instance.getNodeAccountId(); } /** *
     **
     * # The account to be paid for queries and transactions sent to this node
     * 
* * .proto.AccountID nodeAccountId = 6; */ public Builder setNodeAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { copyOnWrite(); instance.setNodeAccountId(value); return this; } /** *
     **
     * # The account to be paid for queries and transactions sent to this node
     * 
* * .proto.AccountID nodeAccountId = 6; */ public Builder setNodeAccountId( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { copyOnWrite(); instance.setNodeAccountId(builderForValue.build()); return this; } /** *
     **
     * # The account to be paid for queries and transactions sent to this node
     * 
* * .proto.AccountID nodeAccountId = 6; */ public Builder mergeNodeAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { copyOnWrite(); instance.mergeNodeAccountId(value); return this; } /** *
     **
     * # The account to be paid for queries and transactions sent to this node
     * 
* * .proto.AccountID nodeAccountId = 6; */ public Builder clearNodeAccountId() { copyOnWrite(); instance.clearNodeAccountId(); return this; } /** *
     **
     * # Hash of the node's TLS certificate. Precisely, this field is a string of
     * hexadecimal characters which, translated to binary, are the SHA-384 hash of
     * the UTF-8 NFKD encoding of the node's TLS cert in PEM format. Its value can be
     * used to verify the node's certificate it presents during TLS negotiations.
     * 
* * bytes nodeCertHash = 7; * @return The nodeCertHash. */ @java.lang.Override public com.google.protobuf.ByteString getNodeCertHash() { return instance.getNodeCertHash(); } /** *
     **
     * # Hash of the node's TLS certificate. Precisely, this field is a string of
     * hexadecimal characters which, translated to binary, are the SHA-384 hash of
     * the UTF-8 NFKD encoding of the node's TLS cert in PEM format. Its value can be
     * used to verify the node's certificate it presents during TLS negotiations.
     * 
* * bytes nodeCertHash = 7; * @param value The nodeCertHash to set. * @return This builder for chaining. */ public Builder setNodeCertHash(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setNodeCertHash(value); return this; } /** *
     **
     * # Hash of the node's TLS certificate. Precisely, this field is a string of
     * hexadecimal characters which, translated to binary, are the SHA-384 hash of
     * the UTF-8 NFKD encoding of the node's TLS cert in PEM format. Its value can be
     * used to verify the node's certificate it presents during TLS negotiations.
     * 
* * bytes nodeCertHash = 7; * @return This builder for chaining. */ public Builder clearNodeCertHash() { copyOnWrite(); instance.clearNodeCertHash(); return this; } /** *
     **
     * # A node's service IP addresses and ports
     * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ @java.lang.Override public java.util.List getServiceEndpointList() { return java.util.Collections.unmodifiableList( instance.getServiceEndpointList()); } /** *
     **
     * # A node's service IP addresses and ports
     * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ @java.lang.Override public int getServiceEndpointCount() { return instance.getServiceEndpointCount(); }/** *
     **
     * # A node's service IP addresses and ports
     * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ServiceEndpoint getServiceEndpoint(int index) { return instance.getServiceEndpoint(index); } /** *
     **
     * # A node's service IP addresses and ports
     * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ public Builder setServiceEndpoint( int index, com.hedera.hashgraph.sdk.proto.ServiceEndpoint value) { copyOnWrite(); instance.setServiceEndpoint(index, value); return this; } /** *
     **
     * # A node's service IP addresses and ports
     * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ public Builder setServiceEndpoint( int index, com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder builderForValue) { copyOnWrite(); instance.setServiceEndpoint(index, builderForValue.build()); return this; } /** *
     **
     * # A node's service IP addresses and ports
     * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ public Builder addServiceEndpoint(com.hedera.hashgraph.sdk.proto.ServiceEndpoint value) { copyOnWrite(); instance.addServiceEndpoint(value); return this; } /** *
     **
     * # A node's service IP addresses and ports
     * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ public Builder addServiceEndpoint( int index, com.hedera.hashgraph.sdk.proto.ServiceEndpoint value) { copyOnWrite(); instance.addServiceEndpoint(index, value); return this; } /** *
     **
     * # A node's service IP addresses and ports
     * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ public Builder addServiceEndpoint( com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder builderForValue) { copyOnWrite(); instance.addServiceEndpoint(builderForValue.build()); return this; } /** *
     **
     * # A node's service IP addresses and ports
     * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ public Builder addServiceEndpoint( int index, com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder builderForValue) { copyOnWrite(); instance.addServiceEndpoint(index, builderForValue.build()); return this; } /** *
     **
     * # A node's service IP addresses and ports
     * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ public Builder addAllServiceEndpoint( java.lang.Iterable values) { copyOnWrite(); instance.addAllServiceEndpoint(values); return this; } /** *
     **
     * # A node's service IP addresses and ports
     * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ public Builder clearServiceEndpoint() { copyOnWrite(); instance.clearServiceEndpoint(); return this; } /** *
     **
     * # A node's service IP addresses and ports
     * 
* * repeated .proto.ServiceEndpoint serviceEndpoint = 8; */ public Builder removeServiceEndpoint(int index) { copyOnWrite(); instance.removeServiceEndpoint(index); return this; } /** *
     **
     * A description of the node, with UTF-8 encoding up to 100 bytes
     * 
* * string description = 9; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { return instance.getDescription(); } /** *
     **
     * A description of the node, with UTF-8 encoding up to 100 bytes
     * 
* * string description = 9; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { return instance.getDescriptionBytes(); } /** *
     **
     * A description of the node, with UTF-8 encoding up to 100 bytes
     * 
* * string description = 9; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { copyOnWrite(); instance.setDescription(value); return this; } /** *
     **
     * A description of the node, with UTF-8 encoding up to 100 bytes
     * 
* * string description = 9; * @return This builder for chaining. */ public Builder clearDescription() { copyOnWrite(); instance.clearDescription(); return this; } /** *
     **
     * A description of the node, with UTF-8 encoding up to 100 bytes
     * 
* * string description = 9; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setDescriptionBytes(value); return this; } /** *
     **
     * [Deprecated] The amount of tinybars staked to the node
     * 
* * int64 stake = 10 [deprecated = true]; * @deprecated proto.NodeAddress.stake is deprecated. * See basic_types.proto;l=1497 * @return The stake. */ @java.lang.Override @java.lang.Deprecated public long getStake() { return instance.getStake(); } /** *
     **
     * [Deprecated] The amount of tinybars staked to the node
     * 
* * int64 stake = 10 [deprecated = true]; * @deprecated proto.NodeAddress.stake is deprecated. * See basic_types.proto;l=1497 * @param value The stake to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setStake(long value) { copyOnWrite(); instance.setStake(value); return this; } /** *
     **
     * [Deprecated] The amount of tinybars staked to the node
     * 
* * int64 stake = 10 [deprecated = true]; * @deprecated proto.NodeAddress.stake is deprecated. * See basic_types.proto;l=1497 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearStake() { copyOnWrite(); instance.clearStake(); return this; } // @@protoc_insertion_point(builder_scope:proto.NodeAddress) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.hedera.hashgraph.sdk.proto.NodeAddress(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "ipAddress_", "portno_", "memo_", "rSAPubKey_", "nodeId_", "nodeAccountId_", "nodeCertHash_", "serviceEndpoint_", com.hedera.hashgraph.sdk.proto.ServiceEndpoint.class, "description_", "stake_", }; java.lang.String info = "\u0000\n\u0000\u0001\u0001\n\n\u0000\u0001\u0000\u0001\n\u0002\u0004\u0003\n\u0004" + "\u0208\u0005\u0002\u0006\u1009\u0000\u0007\n\b\u001b\t\u0208\n\u0002"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (com.hedera.hashgraph.sdk.proto.NodeAddress.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser( DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:proto.NodeAddress) private static final com.hedera.hashgraph.sdk.proto.NodeAddress DEFAULT_INSTANCE; static { NodeAddress defaultInstance = new NodeAddress(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( NodeAddress.class, defaultInstance); } public static com.hedera.hashgraph.sdk.proto.NodeAddress getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy