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: basic_types.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* 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.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.NodeAddress)
NodeAddressOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeAddress.newBuilder() to construct.
private NodeAddress(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeAddress() {
ipAddress_ = com.google.protobuf.ByteString.EMPTY;
memo_ = com.google.protobuf.ByteString.EMPTY;
rSAPubKey_ = "";
nodeCertHash_ = com.google.protobuf.ByteString.EMPTY;
serviceEndpoint_ = java.util.Collections.emptyList();
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeAddress();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeAddress(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
ipAddress_ = input.readBytes();
break;
}
case 16: {
portno_ = input.readInt32();
break;
}
case 26: {
memo_ = input.readBytes();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
rSAPubKey_ = s;
break;
}
case 40: {
nodeId_ = input.readInt64();
break;
}
case 50: {
com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null;
if (nodeAccountId_ != null) {
subBuilder = nodeAccountId_.toBuilder();
}
nodeAccountId_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nodeAccountId_);
nodeAccountId_ = subBuilder.buildPartial();
}
break;
}
case 58: {
nodeCertHash_ = input.readBytes();
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
serviceEndpoint_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
serviceEndpoint_.add(
input.readMessage(com.hederahashgraph.api.proto.java.ServiceEndpoint.parser(), extensionRegistry));
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 80: {
stake_ = input.readInt64();
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)) {
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.BasicTypes.internal_static_proto_NodeAddress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_NodeAddress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.NodeAddress.class, com.hederahashgraph.api.proto.java.NodeAddress.Builder.class);
}
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];
* @return The ipAddress.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.ByteString getIpAddress() {
return ipAddress_;
}
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];
* @return The portno.
*/
@java.lang.Override
@java.lang.Deprecated public int getPortno() {
return portno_;
}
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];
* @return The memo.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.ByteString getMemo() {
return memo_;
}
public static final int RSA_PUBKEY_FIELD_NUMBER = 4;
private volatile java.lang.Object 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.
*
**
* 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() {
java.lang.Object ref = rSAPubKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rSAPubKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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_;
}
public static final int NODEACCOUNTID_FIELD_NUMBER = 6;
private com.hederahashgraph.api.proto.java.AccountID nodeAccountId_;
/**
*
**
* # The account to be paid for queries and transactions sent to this node
*
*
* .proto.AccountID nodeAccountId = 6;
* @return Whether the nodeAccountId field is set.
*/
@java.lang.Override
public boolean hasNodeAccountId() {
return nodeAccountId_ != null;
}
/**
*
**
* # The account to be paid for queries and transactions sent to this node
*
**
* # The account to be paid for queries and transactions sent to this node
*
*
* .proto.AccountID nodeAccountId = 6;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getNodeAccountIdOrBuilder() {
return getNodeAccountId();
}
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_;
}
public static final int SERVICEENDPOINT_FIELD_NUMBER = 8;
private java.util.List serviceEndpoint_;
/**
*
**
* 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() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STAKE_FIELD_NUMBER = 10;
private long stake_;
/**
*
**
* [Deprecated] The amount of tinybars staked to the node
*
*
* int64 stake = 10 [deprecated = true];
* @return The stake.
*/
@java.lang.Override
@java.lang.Deprecated public long getStake() {
return stake_;
}
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 (!ipAddress_.isEmpty()) {
output.writeBytes(1, ipAddress_);
}
if (portno_ != 0) {
output.writeInt32(2, portno_);
}
if (!memo_.isEmpty()) {
output.writeBytes(3, memo_);
}
if (!getRSAPubKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, rSAPubKey_);
}
if (nodeId_ != 0L) {
output.writeInt64(5, nodeId_);
}
if (nodeAccountId_ != null) {
output.writeMessage(6, getNodeAccountId());
}
if (!nodeCertHash_.isEmpty()) {
output.writeBytes(7, nodeCertHash_);
}
for (int i = 0; i < serviceEndpoint_.size(); i++) {
output.writeMessage(8, serviceEndpoint_.get(i));
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, description_);
}
if (stake_ != 0L) {
output.writeInt64(10, stake_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!ipAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, ipAddress_);
}
if (portno_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, portno_);
}
if (!memo_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, memo_);
}
if (!getRSAPubKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, rSAPubKey_);
}
if (nodeId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, nodeId_);
}
if (nodeAccountId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getNodeAccountId());
}
if (!nodeCertHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, nodeCertHash_);
}
for (int i = 0; i < serviceEndpoint_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, serviceEndpoint_.get(i));
}
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, description_);
}
if (stake_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(10, stake_);
}
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.NodeAddress)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.NodeAddress other = (com.hederahashgraph.api.proto.java.NodeAddress) obj;
if (!getIpAddress()
.equals(other.getIpAddress())) return false;
if (getPortno()
!= other.getPortno()) return false;
if (!getMemo()
.equals(other.getMemo())) return false;
if (!getRSAPubKey()
.equals(other.getRSAPubKey())) return false;
if (getNodeId()
!= other.getNodeId()) return false;
if (hasNodeAccountId() != other.hasNodeAccountId()) return false;
if (hasNodeAccountId()) {
if (!getNodeAccountId()
.equals(other.getNodeAccountId())) return false;
}
if (!getNodeCertHash()
.equals(other.getNodeCertHash())) return false;
if (!getServiceEndpointList()
.equals(other.getServiceEndpointList())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (getStake()
!= other.getStake()) 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) + IPADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getIpAddress().hashCode();
hash = (37 * hash) + PORTNO_FIELD_NUMBER;
hash = (53 * hash) + getPortno();
hash = (37 * hash) + MEMO_FIELD_NUMBER;
hash = (53 * hash) + getMemo().hashCode();
hash = (37 * hash) + RSA_PUBKEY_FIELD_NUMBER;
hash = (53 * hash) + getRSAPubKey().hashCode();
hash = (37 * hash) + NODEID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNodeId());
if (hasNodeAccountId()) {
hash = (37 * hash) + NODEACCOUNTID_FIELD_NUMBER;
hash = (53 * hash) + getNodeAccountId().hashCode();
}
hash = (37 * hash) + NODECERTHASH_FIELD_NUMBER;
hash = (53 * hash) + getNodeCertHash().hashCode();
if (getServiceEndpointCount() > 0) {
hash = (37 * hash) + SERVICEENDPOINT_FIELD_NUMBER;
hash = (53 * hash) + getServiceEndpointList().hashCode();
}
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + STAKE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStake());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.NodeAddress parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.NodeAddress 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.NodeAddress parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.NodeAddress 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.NodeAddress parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.NodeAddress 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.NodeAddress parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.NodeAddress 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.NodeAddress parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.NodeAddress 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.NodeAddress 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.NodeAddress 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.NodeAddress 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;
}
/**
*
**
* 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.
*
**
* 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
*
**
* 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];
* @param value The ipAddress to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setIpAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ipAddress_ = value;
onChanged();
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];
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearIpAddress() {
ipAddress_ = getDefaultInstance().getIpAddress();
onChanged();
return this;
}
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];
* @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];
* @param value The portno to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setPortno(int value) {
portno_ = value;
onChanged();
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
*
**
* 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.
*
**
* 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.
*/
public com.google.protobuf.ByteString
getRSAPubKeyBytes() {
java.lang.Object ref = rSAPubKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rSAPubKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* 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) {
if (value == null) {
throw new NullPointerException();
}
rSAPubKey_ = value;
onChanged();
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() {
rSAPubKey_ = getDefaultInstance().getRSAPubKey();
onChanged();
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) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
rSAPubKey_ = value;
onChanged();
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setNodeId(long value) {
nodeId_ = value;
onChanged();
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.
*
**
* # 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) {
if (value == null) {
throw new NullPointerException();
}
nodeCertHash_ = value;
onChanged();
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.
*