com.hedera.hapi.platform.state.legacy.Address Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: state/platform_state.proto
package com.hedera.hapi.platform.state.legacy;
/**
*
**
* A single network address.
* This is one address in the network address book, including all required
* information to include that consensus node in the consensus gossip.
*
*
* Protobuf type {@code com.hedera.hapi.platform.state.Address}
*/
public final class Address extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.hedera.hapi.platform.state.Address)
AddressOrBuilder {
private static final long serialVersionUID = 0L;
// Use Address.newBuilder() to construct.
private Address(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Address() {
nickname_ = "";
selfName_ = "";
hostnameInternal_ = "";
hostnameExternal_ = "";
signingCertificate_ = com.google.protobuf.ByteString.EMPTY;
agreementCertificate_ = com.google.protobuf.ByteString.EMPTY;
memo_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Address();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Address(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.hedera.hapi.platform.state.legacy.NodeId.Builder subBuilder = null;
if (id_ != null) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(com.hedera.hapi.platform.state.legacy.NodeId.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nickname_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
selfName_ = s;
break;
}
case 32: {
weight_ = input.readUInt64();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
hostnameInternal_ = s;
break;
}
case 48: {
portInternal_ = input.readUInt32();
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
hostnameExternal_ = s;
break;
}
case 64: {
portExternal_ = input.readUInt32();
break;
}
case 74: {
signingCertificate_ = input.readBytes();
break;
}
case 82: {
agreementCertificate_ = input.readBytes();
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
memo_ = s;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hapi.platform.state.legacy.PlatformStateOuterClass.internal_static_com_hedera_hapi_platform_state_Address_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hapi.platform.state.legacy.PlatformStateOuterClass.internal_static_com_hedera_hapi_platform_state_Address_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hapi.platform.state.legacy.Address.class, com.hedera.hapi.platform.state.legacy.Address.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private com.hedera.hapi.platform.state.legacy.NodeId id_;
/**
*
**
* The ID of this member.
* <p>
* This identifier SHALL be agreed upon by all consensus nodes.
*
*
* .com.hedera.hapi.platform.state.NodeId id = 1;
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return id_ != null;
}
/**
*
**
* The ID of this member.
* <p>
* This identifier SHALL be agreed upon by all consensus nodes.
*
*
* .com.hedera.hapi.platform.state.NodeId id = 1;
* @return The id.
*/
@java.lang.Override
public com.hedera.hapi.platform.state.legacy.NodeId getId() {
return id_ == null ? com.hedera.hapi.platform.state.legacy.NodeId.getDefaultInstance() : id_;
}
/**
*
**
* The ID of this member.
* <p>
* This identifier SHALL be agreed upon by all consensus nodes.
*
*
* .com.hedera.hapi.platform.state.NodeId id = 1;
*/
@java.lang.Override
public com.hedera.hapi.platform.state.legacy.NodeIdOrBuilder getIdOrBuilder() {
return getId();
}
public static final int NICKNAME_FIELD_NUMBER = 2;
private volatile java.lang.Object nickname_;
/**
*
**
* The nickname other consensus nodes will use to refer to this consensus node.
*
*
* string nickname = 2;
* @return The nickname.
*/
@java.lang.Override
public java.lang.String getNickname() {
java.lang.Object ref = nickname_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nickname_ = s;
return s;
}
}
/**
*
**
* The nickname other consensus nodes will use to refer to this consensus node.
*
*
* string nickname = 2;
* @return The bytes for nickname.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNicknameBytes() {
java.lang.Object ref = nickname_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nickname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SELF_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object selfName_;
/**
*
**
* The name that a consensus node uses to refer to themselves.
*
*
* string self_name = 3;
* @return The selfName.
*/
@java.lang.Override
public java.lang.String getSelfName() {
java.lang.Object ref = selfName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
selfName_ = s;
return s;
}
}
/**
*
**
* The name that a consensus node uses to refer to themselves.
*
*
* string self_name = 3;
* @return The bytes for selfName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSelfNameBytes() {
java.lang.Object ref = selfName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
selfName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WEIGHT_FIELD_NUMBER = 4;
private long weight_;
/**
*
**
* A consensus weight.<br/>
* This value is the relative weight for this consensus node in the
* consensus voting algorithm.
*
*
* uint64 weight = 4;
* @return The weight.
*/
@java.lang.Override
public long getWeight() {
return weight_;
}
public static final int HOSTNAME_INTERNAL_FIELD_NUMBER = 5;
private volatile java.lang.Object hostnameInternal_;
/**
*
**
* A string network address.<br/>
* This value is the hostname assigned on the "internal" network
* interface behind any network firewalls, protocol gateways, or
* DNS translations.
* <p>
* This value SHALL be either a FQDN host name or an IPv4 address.
*
*
* string hostname_internal = 5;
* @return The hostnameInternal.
*/
@java.lang.Override
public java.lang.String getHostnameInternal() {
java.lang.Object ref = hostnameInternal_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostnameInternal_ = s;
return s;
}
}
/**
*
**
* A string network address.<br/>
* This value is the hostname assigned on the "internal" network
* interface behind any network firewalls, protocol gateways, or
* DNS translations.
* <p>
* This value SHALL be either a FQDN host name or an IPv4 address.
*
*
* string hostname_internal = 5;
* @return The bytes for hostnameInternal.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostnameInternalBytes() {
java.lang.Object ref = hostnameInternal_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostnameInternal_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PORT_INTERNAL_FIELD_NUMBER = 6;
private int portInternal_;
/**
*
**
* Network port number.<br/>
* This value is the "translated" port number assigned on the "internal"
* network behind any network firewalls or other address translations.
* <p>
* This value SHALL be between 1 and 65535.
*
*
* uint32 port_internal = 6;
* @return The portInternal.
*/
@java.lang.Override
public int getPortInternal() {
return portInternal_;
}
public static final int HOSTNAME_EXTERNAL_FIELD_NUMBER = 7;
private volatile java.lang.Object hostnameExternal_;
/**
*
**
* A string network address.<br/>
* This value is the hostname assigned on the "public" network
* interface visible to the general internet.
* <p>
* This value SHALL be either a FQDN host name or an IPv4 address.
*
*
* string hostname_external = 7;
* @return The hostnameExternal.
*/
@java.lang.Override
public java.lang.String getHostnameExternal() {
java.lang.Object ref = hostnameExternal_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostnameExternal_ = s;
return s;
}
}
/**
*
**
* A string network address.<br/>
* This value is the hostname assigned on the "public" network
* interface visible to the general internet.
* <p>
* This value SHALL be either a FQDN host name or an IPv4 address.
*
*
* string hostname_external = 7;
* @return The bytes for hostnameExternal.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostnameExternalBytes() {
java.lang.Object ref = hostnameExternal_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostnameExternal_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PORT_EXTERNAL_FIELD_NUMBER = 8;
private int portExternal_;
/**
*
**
* Network port number.<br/>
* This value is the port number visible to the general internet.
* <p>
* This value SHALL be between 1 and 65535.
*
*
* uint32 port_external = 8;
* @return The portExternal.
*/
@java.lang.Override
public int getPortExternal() {
return portExternal_;
}
public static final int SIGNING_CERTIFICATE_FIELD_NUMBER = 9;
private com.google.protobuf.ByteString signingCertificate_;
/**
*
**
* The signing x509 certificate of the consensus node.
* <p>
* This SHALL provide the public key used for signing.
*
*
* bytes signing_certificate = 9;
* @return The signingCertificate.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSigningCertificate() {
return signingCertificate_;
}
public static final int AGREEMENT_CERTIFICATE_FIELD_NUMBER = 10;
private com.google.protobuf.ByteString agreementCertificate_;
/**
*
**
* The agreement x509 certificate of the consensus node.
* <p>
* This SHALL be used for establishing TLS connections.
*
*
* bytes agreement_certificate = 10;
* @return The agreementCertificate.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAgreementCertificate() {
return agreementCertificate_;
}
public static final int MEMO_FIELD_NUMBER = 11;
private volatile java.lang.Object memo_;
/**
*
**
* A string that provides additional information about this consensus node.
*
*
* string memo = 11;
* @return The memo.
*/
@java.lang.Override
public java.lang.String getMemo() {
java.lang.Object ref = memo_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
memo_ = s;
return s;
}
}
/**
*
**
* A string that provides additional information about this consensus node.
*
*
* string memo = 11;
* @return The bytes for memo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMemoBytes() {
java.lang.Object ref = memo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (id_ != null) {
output.writeMessage(1, getId());
}
if (!getNicknameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nickname_);
}
if (!getSelfNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, selfName_);
}
if (weight_ != 0L) {
output.writeUInt64(4, weight_);
}
if (!getHostnameInternalBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, hostnameInternal_);
}
if (portInternal_ != 0) {
output.writeUInt32(6, portInternal_);
}
if (!getHostnameExternalBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, hostnameExternal_);
}
if (portExternal_ != 0) {
output.writeUInt32(8, portExternal_);
}
if (!signingCertificate_.isEmpty()) {
output.writeBytes(9, signingCertificate_);
}
if (!agreementCertificate_.isEmpty()) {
output.writeBytes(10, agreementCertificate_);
}
if (!getMemoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, memo_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getId());
}
if (!getNicknameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nickname_);
}
if (!getSelfNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, selfName_);
}
if (weight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, weight_);
}
if (!getHostnameInternalBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, hostnameInternal_);
}
if (portInternal_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, portInternal_);
}
if (!getHostnameExternalBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, hostnameExternal_);
}
if (portExternal_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, portExternal_);
}
if (!signingCertificate_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, signingCertificate_);
}
if (!agreementCertificate_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(10, agreementCertificate_);
}
if (!getMemoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, memo_);
}
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.hedera.hapi.platform.state.legacy.Address)) {
return super.equals(obj);
}
com.hedera.hapi.platform.state.legacy.Address other = (com.hedera.hapi.platform.state.legacy.Address) obj;
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (!getId()
.equals(other.getId())) return false;
}
if (!getNickname()
.equals(other.getNickname())) return false;
if (!getSelfName()
.equals(other.getSelfName())) return false;
if (getWeight()
!= other.getWeight()) return false;
if (!getHostnameInternal()
.equals(other.getHostnameInternal())) return false;
if (getPortInternal()
!= other.getPortInternal()) return false;
if (!getHostnameExternal()
.equals(other.getHostnameExternal())) return false;
if (getPortExternal()
!= other.getPortExternal()) return false;
if (!getSigningCertificate()
.equals(other.getSigningCertificate())) return false;
if (!getAgreementCertificate()
.equals(other.getAgreementCertificate())) return false;
if (!getMemo()
.equals(other.getMemo())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
hash = (37 * hash) + NICKNAME_FIELD_NUMBER;
hash = (53 * hash) + getNickname().hashCode();
hash = (37 * hash) + SELF_NAME_FIELD_NUMBER;
hash = (53 * hash) + getSelfName().hashCode();
hash = (37 * hash) + WEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getWeight());
hash = (37 * hash) + HOSTNAME_INTERNAL_FIELD_NUMBER;
hash = (53 * hash) + getHostnameInternal().hashCode();
hash = (37 * hash) + PORT_INTERNAL_FIELD_NUMBER;
hash = (53 * hash) + getPortInternal();
hash = (37 * hash) + HOSTNAME_EXTERNAL_FIELD_NUMBER;
hash = (53 * hash) + getHostnameExternal().hashCode();
hash = (37 * hash) + PORT_EXTERNAL_FIELD_NUMBER;
hash = (53 * hash) + getPortExternal();
hash = (37 * hash) + SIGNING_CERTIFICATE_FIELD_NUMBER;
hash = (53 * hash) + getSigningCertificate().hashCode();
hash = (37 * hash) + AGREEMENT_CERTIFICATE_FIELD_NUMBER;
hash = (53 * hash) + getAgreementCertificate().hashCode();
hash = (37 * hash) + MEMO_FIELD_NUMBER;
hash = (53 * hash) + getMemo().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hapi.platform.state.legacy.Address parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.platform.state.legacy.Address parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hapi.platform.state.legacy.Address parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.platform.state.legacy.Address parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hapi.platform.state.legacy.Address parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.platform.state.legacy.Address parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hapi.platform.state.legacy.Address parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hapi.platform.state.legacy.Address parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.hedera.hapi.platform.state.legacy.Address parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hapi.platform.state.legacy.Address parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.hedera.hapi.platform.state.legacy.Address parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hapi.platform.state.legacy.Address parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.hedera.hapi.platform.state.legacy.Address prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
* A single network address.
* This is one address in the network address book, including all required
* information to include that consensus node in the consensus gossip.
*
*
* Protobuf type {@code com.hedera.hapi.platform.state.Address}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.hedera.hapi.platform.state.Address)
com.hedera.hapi.platform.state.legacy.AddressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hapi.platform.state.legacy.PlatformStateOuterClass.internal_static_com_hedera_hapi_platform_state_Address_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hapi.platform.state.legacy.PlatformStateOuterClass.internal_static_com_hedera_hapi_platform_state_Address_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hapi.platform.state.legacy.Address.class, com.hedera.hapi.platform.state.legacy.Address.Builder.class);
}
// Construct using com.hedera.hapi.platform.state.legacy.Address.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
id_ = null;
} else {
id_ = null;
idBuilder_ = null;
}
nickname_ = "";
selfName_ = "";
weight_ = 0L;
hostnameInternal_ = "";
portInternal_ = 0;
hostnameExternal_ = "";
portExternal_ = 0;
signingCertificate_ = com.google.protobuf.ByteString.EMPTY;
agreementCertificate_ = com.google.protobuf.ByteString.EMPTY;
memo_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hapi.platform.state.legacy.PlatformStateOuterClass.internal_static_com_hedera_hapi_platform_state_Address_descriptor;
}
@java.lang.Override
public com.hedera.hapi.platform.state.legacy.Address getDefaultInstanceForType() {
return com.hedera.hapi.platform.state.legacy.Address.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hapi.platform.state.legacy.Address build() {
com.hedera.hapi.platform.state.legacy.Address result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hapi.platform.state.legacy.Address buildPartial() {
com.hedera.hapi.platform.state.legacy.Address result = new com.hedera.hapi.platform.state.legacy.Address(this);
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
result.nickname_ = nickname_;
result.selfName_ = selfName_;
result.weight_ = weight_;
result.hostnameInternal_ = hostnameInternal_;
result.portInternal_ = portInternal_;
result.hostnameExternal_ = hostnameExternal_;
result.portExternal_ = portExternal_;
result.signingCertificate_ = signingCertificate_;
result.agreementCertificate_ = agreementCertificate_;
result.memo_ = memo_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hedera.hapi.platform.state.legacy.Address) {
return mergeFrom((com.hedera.hapi.platform.state.legacy.Address)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hapi.platform.state.legacy.Address other) {
if (other == com.hedera.hapi.platform.state.legacy.Address.getDefaultInstance()) return this;
if (other.hasId()) {
mergeId(other.getId());
}
if (!other.getNickname().isEmpty()) {
nickname_ = other.nickname_;
onChanged();
}
if (!other.getSelfName().isEmpty()) {
selfName_ = other.selfName_;
onChanged();
}
if (other.getWeight() != 0L) {
setWeight(other.getWeight());
}
if (!other.getHostnameInternal().isEmpty()) {
hostnameInternal_ = other.hostnameInternal_;
onChanged();
}
if (other.getPortInternal() != 0) {
setPortInternal(other.getPortInternal());
}
if (!other.getHostnameExternal().isEmpty()) {
hostnameExternal_ = other.hostnameExternal_;
onChanged();
}
if (other.getPortExternal() != 0) {
setPortExternal(other.getPortExternal());
}
if (other.getSigningCertificate() != com.google.protobuf.ByteString.EMPTY) {
setSigningCertificate(other.getSigningCertificate());
}
if (other.getAgreementCertificate() != com.google.protobuf.ByteString.EMPTY) {
setAgreementCertificate(other.getAgreementCertificate());
}
if (!other.getMemo().isEmpty()) {
memo_ = other.memo_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.hedera.hapi.platform.state.legacy.Address parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hedera.hapi.platform.state.legacy.Address) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.hedera.hapi.platform.state.legacy.NodeId id_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hapi.platform.state.legacy.NodeId, com.hedera.hapi.platform.state.legacy.NodeId.Builder, com.hedera.hapi.platform.state.legacy.NodeIdOrBuilder> idBuilder_;
/**
*
**
* The ID of this member.
* <p>
* This identifier SHALL be agreed upon by all consensus nodes.
*
*
* .com.hedera.hapi.platform.state.NodeId id = 1;
* @return Whether the id field is set.
*/
public boolean hasId() {
return idBuilder_ != null || id_ != null;
}
/**
*
**
* The ID of this member.
* <p>
* This identifier SHALL be agreed upon by all consensus nodes.
*
*
* .com.hedera.hapi.platform.state.NodeId id = 1;
* @return The id.
*/
public com.hedera.hapi.platform.state.legacy.NodeId getId() {
if (idBuilder_ == null) {
return id_ == null ? com.hedera.hapi.platform.state.legacy.NodeId.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
*
**
* The ID of this member.
* <p>
* This identifier SHALL be agreed upon by all consensus nodes.
*
*
* .com.hedera.hapi.platform.state.NodeId id = 1;
*/
public Builder setId(com.hedera.hapi.platform.state.legacy.NodeId value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The ID of this member.
* <p>
* This identifier SHALL be agreed upon by all consensus nodes.
*
*
* .com.hedera.hapi.platform.state.NodeId id = 1;
*/
public Builder setId(
com.hedera.hapi.platform.state.legacy.NodeId.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The ID of this member.
* <p>
* This identifier SHALL be agreed upon by all consensus nodes.
*
*
* .com.hedera.hapi.platform.state.NodeId id = 1;
*/
public Builder mergeId(com.hedera.hapi.platform.state.legacy.NodeId value) {
if (idBuilder_ == null) {
if (id_ != null) {
id_ =
com.hedera.hapi.platform.state.legacy.NodeId.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The ID of this member.
* <p>
* This identifier SHALL be agreed upon by all consensus nodes.
*
*
* .com.hedera.hapi.platform.state.NodeId id = 1;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = null;
onChanged();
} else {
id_ = null;
idBuilder_ = null;
}
return this;
}
/**
*
**
* The ID of this member.
* <p>
* This identifier SHALL be agreed upon by all consensus nodes.
*
*
* .com.hedera.hapi.platform.state.NodeId id = 1;
*/
public com.hedera.hapi.platform.state.legacy.NodeId.Builder getIdBuilder() {
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
*
**
* The ID of this member.
* <p>
* This identifier SHALL be agreed upon by all consensus nodes.
*
*
* .com.hedera.hapi.platform.state.NodeId id = 1;
*/
public com.hedera.hapi.platform.state.legacy.NodeIdOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_ == null ?
com.hedera.hapi.platform.state.legacy.NodeId.getDefaultInstance() : id_;
}
}
/**
*
**
* The ID of this member.
* <p>
* This identifier SHALL be agreed upon by all consensus nodes.
*
*
* .com.hedera.hapi.platform.state.NodeId id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hapi.platform.state.legacy.NodeId, com.hedera.hapi.platform.state.legacy.NodeId.Builder, com.hedera.hapi.platform.state.legacy.NodeIdOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hapi.platform.state.legacy.NodeId, com.hedera.hapi.platform.state.legacy.NodeId.Builder, com.hedera.hapi.platform.state.legacy.NodeIdOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private java.lang.Object nickname_ = "";
/**
*
**
* The nickname other consensus nodes will use to refer to this consensus node.
*
*
* string nickname = 2;
* @return The nickname.
*/
public java.lang.String getNickname() {
java.lang.Object ref = nickname_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nickname_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The nickname other consensus nodes will use to refer to this consensus node.
*
*
* string nickname = 2;
* @return The bytes for nickname.
*/
public com.google.protobuf.ByteString
getNicknameBytes() {
java.lang.Object ref = nickname_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nickname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The nickname other consensus nodes will use to refer to this consensus node.
*
*
* string nickname = 2;
* @param value The nickname to set.
* @return This builder for chaining.
*/
public Builder setNickname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nickname_ = value;
onChanged();
return this;
}
/**
*
**
* The nickname other consensus nodes will use to refer to this consensus node.
*
*
* string nickname = 2;
* @return This builder for chaining.
*/
public Builder clearNickname() {
nickname_ = getDefaultInstance().getNickname();
onChanged();
return this;
}
/**
*
**
* The nickname other consensus nodes will use to refer to this consensus node.
*
*
* string nickname = 2;
* @param value The bytes for nickname to set.
* @return This builder for chaining.
*/
public Builder setNicknameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nickname_ = value;
onChanged();
return this;
}
private java.lang.Object selfName_ = "";
/**
*
**
* The name that a consensus node uses to refer to themselves.
*
*
* string self_name = 3;
* @return The selfName.
*/
public java.lang.String getSelfName() {
java.lang.Object ref = selfName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
selfName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The name that a consensus node uses to refer to themselves.
*
*
* string self_name = 3;
* @return The bytes for selfName.
*/
public com.google.protobuf.ByteString
getSelfNameBytes() {
java.lang.Object ref = selfName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
selfName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The name that a consensus node uses to refer to themselves.
*
*
* string self_name = 3;
* @param value The selfName to set.
* @return This builder for chaining.
*/
public Builder setSelfName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
selfName_ = value;
onChanged();
return this;
}
/**
*
**
* The name that a consensus node uses to refer to themselves.
*
*
* string self_name = 3;
* @return This builder for chaining.
*/
public Builder clearSelfName() {
selfName_ = getDefaultInstance().getSelfName();
onChanged();
return this;
}
/**
*
**
* The name that a consensus node uses to refer to themselves.
*
*
* string self_name = 3;
* @param value The bytes for selfName to set.
* @return This builder for chaining.
*/
public Builder setSelfNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
selfName_ = value;
onChanged();
return this;
}
private long weight_ ;
/**
*
**
* A consensus weight.<br/>
* This value is the relative weight for this consensus node in the
* consensus voting algorithm.
*
*
* uint64 weight = 4;
* @return The weight.
*/
@java.lang.Override
public long getWeight() {
return weight_;
}
/**
*
**
* A consensus weight.<br/>
* This value is the relative weight for this consensus node in the
* consensus voting algorithm.
*
*
* uint64 weight = 4;
* @param value The weight to set.
* @return This builder for chaining.
*/
public Builder setWeight(long value) {
weight_ = value;
onChanged();
return this;
}
/**
*
**
* A consensus weight.<br/>
* This value is the relative weight for this consensus node in the
* consensus voting algorithm.
*
*
* uint64 weight = 4;
* @return This builder for chaining.
*/
public Builder clearWeight() {
weight_ = 0L;
onChanged();
return this;
}
private java.lang.Object hostnameInternal_ = "";
/**
*
**
* A string network address.<br/>
* This value is the hostname assigned on the "internal" network
* interface behind any network firewalls, protocol gateways, or
* DNS translations.
* <p>
* This value SHALL be either a FQDN host name or an IPv4 address.
*
*
* string hostname_internal = 5;
* @return The hostnameInternal.
*/
public java.lang.String getHostnameInternal() {
java.lang.Object ref = hostnameInternal_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostnameInternal_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* A string network address.<br/>
* This value is the hostname assigned on the "internal" network
* interface behind any network firewalls, protocol gateways, or
* DNS translations.
* <p>
* This value SHALL be either a FQDN host name or an IPv4 address.
*
*
* string hostname_internal = 5;
* @return The bytes for hostnameInternal.
*/
public com.google.protobuf.ByteString
getHostnameInternalBytes() {
java.lang.Object ref = hostnameInternal_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostnameInternal_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* A string network address.<br/>
* This value is the hostname assigned on the "internal" network
* interface behind any network firewalls, protocol gateways, or
* DNS translations.
* <p>
* This value SHALL be either a FQDN host name or an IPv4 address.
*
*
* string hostname_internal = 5;
* @param value The hostnameInternal to set.
* @return This builder for chaining.
*/
public Builder setHostnameInternal(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hostnameInternal_ = value;
onChanged();
return this;
}
/**
*
**
* A string network address.<br/>
* This value is the hostname assigned on the "internal" network
* interface behind any network firewalls, protocol gateways, or
* DNS translations.
* <p>
* This value SHALL be either a FQDN host name or an IPv4 address.
*
*
* string hostname_internal = 5;
* @return This builder for chaining.
*/
public Builder clearHostnameInternal() {
hostnameInternal_ = getDefaultInstance().getHostnameInternal();
onChanged();
return this;
}
/**
*
**
* A string network address.<br/>
* This value is the hostname assigned on the "internal" network
* interface behind any network firewalls, protocol gateways, or
* DNS translations.
* <p>
* This value SHALL be either a FQDN host name or an IPv4 address.
*
*
* string hostname_internal = 5;
* @param value The bytes for hostnameInternal to set.
* @return This builder for chaining.
*/
public Builder setHostnameInternalBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hostnameInternal_ = value;
onChanged();
return this;
}
private int portInternal_ ;
/**
*
**
* Network port number.<br/>
* This value is the "translated" port number assigned on the "internal"
* network behind any network firewalls or other address translations.
* <p>
* This value SHALL be between 1 and 65535.
*
*
* uint32 port_internal = 6;
* @return The portInternal.
*/
@java.lang.Override
public int getPortInternal() {
return portInternal_;
}
/**
*
**
* Network port number.<br/>
* This value is the "translated" port number assigned on the "internal"
* network behind any network firewalls or other address translations.
* <p>
* This value SHALL be between 1 and 65535.
*
*
* uint32 port_internal = 6;
* @param value The portInternal to set.
* @return This builder for chaining.
*/
public Builder setPortInternal(int value) {
portInternal_ = value;
onChanged();
return this;
}
/**
*
**
* Network port number.<br/>
* This value is the "translated" port number assigned on the "internal"
* network behind any network firewalls or other address translations.
* <p>
* This value SHALL be between 1 and 65535.
*
*
* uint32 port_internal = 6;
* @return This builder for chaining.
*/
public Builder clearPortInternal() {
portInternal_ = 0;
onChanged();
return this;
}
private java.lang.Object hostnameExternal_ = "";
/**
*
**
* A string network address.<br/>
* This value is the hostname assigned on the "public" network
* interface visible to the general internet.
* <p>
* This value SHALL be either a FQDN host name or an IPv4 address.
*
*
* string hostname_external = 7;
* @return The hostnameExternal.
*/
public java.lang.String getHostnameExternal() {
java.lang.Object ref = hostnameExternal_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostnameExternal_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* A string network address.<br/>
* This value is the hostname assigned on the "public" network
* interface visible to the general internet.
* <p>
* This value SHALL be either a FQDN host name or an IPv4 address.
*
*
* string hostname_external = 7;
* @return The bytes for hostnameExternal.
*/
public com.google.protobuf.ByteString
getHostnameExternalBytes() {
java.lang.Object ref = hostnameExternal_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostnameExternal_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* A string network address.<br/>
* This value is the hostname assigned on the "public" network
* interface visible to the general internet.
* <p>
* This value SHALL be either a FQDN host name or an IPv4 address.
*
*
* string hostname_external = 7;
* @param value The hostnameExternal to set.
* @return This builder for chaining.
*/
public Builder setHostnameExternal(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hostnameExternal_ = value;
onChanged();
return this;
}
/**
*
**
* A string network address.<br/>
* This value is the hostname assigned on the "public" network
* interface visible to the general internet.
* <p>
* This value SHALL be either a FQDN host name or an IPv4 address.
*
*
* string hostname_external = 7;
* @return This builder for chaining.
*/
public Builder clearHostnameExternal() {
hostnameExternal_ = getDefaultInstance().getHostnameExternal();
onChanged();
return this;
}
/**
*
**
* A string network address.<br/>
* This value is the hostname assigned on the "public" network
* interface visible to the general internet.
* <p>
* This value SHALL be either a FQDN host name or an IPv4 address.
*
*
* string hostname_external = 7;
* @param value The bytes for hostnameExternal to set.
* @return This builder for chaining.
*/
public Builder setHostnameExternalBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hostnameExternal_ = value;
onChanged();
return this;
}
private int portExternal_ ;
/**
*
**
* Network port number.<br/>
* This value is the port number visible to the general internet.
* <p>
* This value SHALL be between 1 and 65535.
*
*
* uint32 port_external = 8;
* @return The portExternal.
*/
@java.lang.Override
public int getPortExternal() {
return portExternal_;
}
/**
*
**
* Network port number.<br/>
* This value is the port number visible to the general internet.
* <p>
* This value SHALL be between 1 and 65535.
*
*
* uint32 port_external = 8;
* @param value The portExternal to set.
* @return This builder for chaining.
*/
public Builder setPortExternal(int value) {
portExternal_ = value;
onChanged();
return this;
}
/**
*
**
* Network port number.<br/>
* This value is the port number visible to the general internet.
* <p>
* This value SHALL be between 1 and 65535.
*
*
* uint32 port_external = 8;
* @return This builder for chaining.
*/
public Builder clearPortExternal() {
portExternal_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString signingCertificate_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The signing x509 certificate of the consensus node.
* <p>
* This SHALL provide the public key used for signing.
*
*
* bytes signing_certificate = 9;
* @return The signingCertificate.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSigningCertificate() {
return signingCertificate_;
}
/**
*
**
* The signing x509 certificate of the consensus node.
* <p>
* This SHALL provide the public key used for signing.
*
*
* bytes signing_certificate = 9;
* @param value The signingCertificate to set.
* @return This builder for chaining.
*/
public Builder setSigningCertificate(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
signingCertificate_ = value;
onChanged();
return this;
}
/**
*
**
* The signing x509 certificate of the consensus node.
* <p>
* This SHALL provide the public key used for signing.
*
*
* bytes signing_certificate = 9;
* @return This builder for chaining.
*/
public Builder clearSigningCertificate() {
signingCertificate_ = getDefaultInstance().getSigningCertificate();
onChanged();
return this;
}
private com.google.protobuf.ByteString agreementCertificate_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The agreement x509 certificate of the consensus node.
* <p>
* This SHALL be used for establishing TLS connections.
*
*
* bytes agreement_certificate = 10;
* @return The agreementCertificate.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAgreementCertificate() {
return agreementCertificate_;
}
/**
*
**
* The agreement x509 certificate of the consensus node.
* <p>
* This SHALL be used for establishing TLS connections.
*
*
* bytes agreement_certificate = 10;
* @param value The agreementCertificate to set.
* @return This builder for chaining.
*/
public Builder setAgreementCertificate(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
agreementCertificate_ = value;
onChanged();
return this;
}
/**
*
**
* The agreement x509 certificate of the consensus node.
* <p>
* This SHALL be used for establishing TLS connections.
*
*
* bytes agreement_certificate = 10;
* @return This builder for chaining.
*/
public Builder clearAgreementCertificate() {
agreementCertificate_ = getDefaultInstance().getAgreementCertificate();
onChanged();
return this;
}
private java.lang.Object memo_ = "";
/**
*
**
* A string that provides additional information about this consensus node.
*
*
* string memo = 11;
* @return The memo.
*/
public java.lang.String getMemo() {
java.lang.Object ref = memo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
memo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* A string that provides additional information about this consensus node.
*
*
* string memo = 11;
* @return The bytes for memo.
*/
public com.google.protobuf.ByteString
getMemoBytes() {
java.lang.Object ref = memo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* A string that provides additional information about this consensus node.
*
*
* string memo = 11;
* @param value The memo to set.
* @return This builder for chaining.
*/
public Builder setMemo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
memo_ = value;
onChanged();
return this;
}
/**
*
**
* A string that provides additional information about this consensus node.
*
*
* string memo = 11;
* @return This builder for chaining.
*/
public Builder clearMemo() {
memo_ = getDefaultInstance().getMemo();
onChanged();
return this;
}
/**
*
**
* A string that provides additional information about this consensus node.
*
*
* string memo = 11;
* @param value The bytes for memo to set.
* @return This builder for chaining.
*/
public Builder setMemoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
memo_ = value;
onChanged();
return this;
}
@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.platform.state.Address)
}
// @@protoc_insertion_point(class_scope:com.hedera.hapi.platform.state.Address)
private static final com.hedera.hapi.platform.state.legacy.Address DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hapi.platform.state.legacy.Address();
}
public static com.hedera.hapi.platform.state.legacy.Address getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Address parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Address(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.hedera.hapi.platform.state.legacy.Address getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy