com.hederahashgraph.api.proto.java.RosterEntry Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: state/roster/roster.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* A single roster entry in the network state.
* Each roster entry SHALL encapsulate the elements required
* to manage node participation in the Threshold Signature Scheme (TSS).<br/>
* All fields except tss_encryption_key are REQUIRED.
*
*
* Protobuf type {@code com.hedera.hapi.node.state.roster.RosterEntry}
*/
public final class RosterEntry extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.hedera.hapi.node.state.roster.RosterEntry)
RosterEntryOrBuilder {
private static final long serialVersionUID = 0L;
// Use RosterEntry.newBuilder() to construct.
private RosterEntry(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RosterEntry() {
gossipCaCertificate_ = com.google.protobuf.ByteString.EMPTY;
tssEncryptionKey_ = com.google.protobuf.ByteString.EMPTY;
gossipEndpoint_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RosterEntry();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RosterEntry(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
nodeId_ = input.readUInt64();
break;
}
case 16: {
weight_ = input.readUInt64();
break;
}
case 26: {
gossipCaCertificate_ = input.readBytes();
break;
}
case 34: {
tssEncryptionKey_ = input.readBytes();
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
gossipEndpoint_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
gossipEndpoint_.add(
input.readMessage(com.hederahashgraph.api.proto.java.ServiceEndpoint.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
gossipEndpoint_ = java.util.Collections.unmodifiableList(gossipEndpoint_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.RosterOuterClass.internal_static_com_hedera_hapi_node_state_roster_RosterEntry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.RosterOuterClass.internal_static_com_hedera_hapi_node_state_roster_RosterEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.RosterEntry.class, com.hederahashgraph.api.proto.java.RosterEntry.Builder.class);
}
public static final int NODE_ID_FIELD_NUMBER = 1;
private long nodeId_;
/**
*
**
* A consensus node identifier.
* <p>
* Node identifiers SHALL be unique _within_ a ledger,
* and MUST NOT be repeated _between_ shards and realms.
*
*
* uint64 node_id = 1;
* @return The nodeId.
*/
@java.lang.Override
public long getNodeId() {
return nodeId_;
}
public static final int WEIGHT_FIELD_NUMBER = 2;
private long weight_;
/**
*
**
* A consensus weight.
* <p>
* Each node SHALL have a weight of zero or more in consensus calculations.<br/>
* The sum of the weights of all nodes in the roster SHALL form the total weight of the system,
* and each node's individual weight SHALL be proportional to that sum.<br/>
*
*
* uint64 weight = 2;
* @return The weight.
*/
@java.lang.Override
public long getWeight() {
return weight_;
}
public static final int GOSSIP_CA_CERTIFICATE_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString gossipCaCertificate_;
/**
*
**
* An RSA public certificate used for signing gossip events.
* <p>
* This value SHALL be a certificate of a type permitted for gossip
* signatures.<br/>
* This value SHALL be the DER encoding of the certificate presented.<br/>
* This field is REQUIRED and MUST NOT be empty.
*
*
* bytes gossip_ca_certificate = 3;
* @return The gossipCaCertificate.
*/
@java.lang.Override
public com.google.protobuf.ByteString getGossipCaCertificate() {
return gossipCaCertificate_;
}
public static final int TSS_ENCRYPTION_KEY_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString tssEncryptionKey_;
/**
*
**
* An elliptic curve public encryption key.<br/>
* This is currently an ALT_BN128 curve, but the elliptic curve
* type may change in the future. For example,
* if the Ethereum ecosystem creates precompiles for BLS12_381,
* we may switch to that curve.
* <p>
* This value SHALL be specified according to EIP-196 and EIP-197 standards,
* See <a href='https://eips.ethereum.org/EIPS/eip-196#encoding'>EIP-196</a> and
* <a href='https://eips.ethereum.org/EIPS/eip-197#encoding'>EIP-197</a><br/>
* This field is _initially_ OPTIONAL (i.e. it can be unset _when created_)
* but once set, it is REQUIRED thereafter.
*
*
* bytes tss_encryption_key = 4;
* @return The tssEncryptionKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTssEncryptionKey() {
return tssEncryptionKey_;
}
public static final int GOSSIP_ENDPOINT_FIELD_NUMBER = 5;
private java.util.List gossipEndpoint_;
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
@java.lang.Override
public java.util.List getGossipEndpointList() {
return gossipEndpoint_;
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
@java.lang.Override
public java.util.List extends com.hederahashgraph.api.proto.java.ServiceEndpointOrBuilder>
getGossipEndpointOrBuilderList() {
return gossipEndpoint_;
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
@java.lang.Override
public int getGossipEndpointCount() {
return gossipEndpoint_.size();
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ServiceEndpoint getGossipEndpoint(int index) {
return gossipEndpoint_.get(index);
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ServiceEndpointOrBuilder getGossipEndpointOrBuilder(
int index) {
return gossipEndpoint_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (nodeId_ != 0L) {
output.writeUInt64(1, nodeId_);
}
if (weight_ != 0L) {
output.writeUInt64(2, weight_);
}
if (!gossipCaCertificate_.isEmpty()) {
output.writeBytes(3, gossipCaCertificate_);
}
if (!tssEncryptionKey_.isEmpty()) {
output.writeBytes(4, tssEncryptionKey_);
}
for (int i = 0; i < gossipEndpoint_.size(); i++) {
output.writeMessage(5, gossipEndpoint_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (nodeId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, nodeId_);
}
if (weight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, weight_);
}
if (!gossipCaCertificate_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, gossipCaCertificate_);
}
if (!tssEncryptionKey_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, tssEncryptionKey_);
}
for (int i = 0; i < gossipEndpoint_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, gossipEndpoint_.get(i));
}
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.RosterEntry)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.RosterEntry other = (com.hederahashgraph.api.proto.java.RosterEntry) obj;
if (getNodeId()
!= other.getNodeId()) return false;
if (getWeight()
!= other.getWeight()) return false;
if (!getGossipCaCertificate()
.equals(other.getGossipCaCertificate())) return false;
if (!getTssEncryptionKey()
.equals(other.getTssEncryptionKey())) return false;
if (!getGossipEndpointList()
.equals(other.getGossipEndpointList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNodeId());
hash = (37 * hash) + WEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getWeight());
hash = (37 * hash) + GOSSIP_CA_CERTIFICATE_FIELD_NUMBER;
hash = (53 * hash) + getGossipCaCertificate().hashCode();
hash = (37 * hash) + TSS_ENCRYPTION_KEY_FIELD_NUMBER;
hash = (53 * hash) + getTssEncryptionKey().hashCode();
if (getGossipEndpointCount() > 0) {
hash = (37 * hash) + GOSSIP_ENDPOINT_FIELD_NUMBER;
hash = (53 * hash) + getGossipEndpointList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.RosterEntry parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.RosterEntry 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.RosterEntry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.RosterEntry 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.RosterEntry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.RosterEntry 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.RosterEntry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.RosterEntry 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.RosterEntry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.RosterEntry 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.RosterEntry 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.RosterEntry 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.RosterEntry 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 roster entry in the network state.
* Each roster entry SHALL encapsulate the elements required
* to manage node participation in the Threshold Signature Scheme (TSS).<br/>
* All fields except tss_encryption_key are REQUIRED.
*
*
* Protobuf type {@code com.hedera.hapi.node.state.roster.RosterEntry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.hedera.hapi.node.state.roster.RosterEntry)
com.hederahashgraph.api.proto.java.RosterEntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.RosterOuterClass.internal_static_com_hedera_hapi_node_state_roster_RosterEntry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.RosterOuterClass.internal_static_com_hedera_hapi_node_state_roster_RosterEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.RosterEntry.class, com.hederahashgraph.api.proto.java.RosterEntry.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.RosterEntry.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getGossipEndpointFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
nodeId_ = 0L;
weight_ = 0L;
gossipCaCertificate_ = com.google.protobuf.ByteString.EMPTY;
tssEncryptionKey_ = com.google.protobuf.ByteString.EMPTY;
if (gossipEndpointBuilder_ == null) {
gossipEndpoint_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
gossipEndpointBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.RosterOuterClass.internal_static_com_hedera_hapi_node_state_roster_RosterEntry_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.RosterEntry getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.RosterEntry.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.RosterEntry build() {
com.hederahashgraph.api.proto.java.RosterEntry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.RosterEntry buildPartial() {
com.hederahashgraph.api.proto.java.RosterEntry result = new com.hederahashgraph.api.proto.java.RosterEntry(this);
int from_bitField0_ = bitField0_;
result.nodeId_ = nodeId_;
result.weight_ = weight_;
result.gossipCaCertificate_ = gossipCaCertificate_;
result.tssEncryptionKey_ = tssEncryptionKey_;
if (gossipEndpointBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
gossipEndpoint_ = java.util.Collections.unmodifiableList(gossipEndpoint_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.gossipEndpoint_ = gossipEndpoint_;
} else {
result.gossipEndpoint_ = gossipEndpointBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hederahashgraph.api.proto.java.RosterEntry) {
return mergeFrom((com.hederahashgraph.api.proto.java.RosterEntry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.RosterEntry other) {
if (other == com.hederahashgraph.api.proto.java.RosterEntry.getDefaultInstance()) return this;
if (other.getNodeId() != 0L) {
setNodeId(other.getNodeId());
}
if (other.getWeight() != 0L) {
setWeight(other.getWeight());
}
if (other.getGossipCaCertificate() != com.google.protobuf.ByteString.EMPTY) {
setGossipCaCertificate(other.getGossipCaCertificate());
}
if (other.getTssEncryptionKey() != com.google.protobuf.ByteString.EMPTY) {
setTssEncryptionKey(other.getTssEncryptionKey());
}
if (gossipEndpointBuilder_ == null) {
if (!other.gossipEndpoint_.isEmpty()) {
if (gossipEndpoint_.isEmpty()) {
gossipEndpoint_ = other.gossipEndpoint_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureGossipEndpointIsMutable();
gossipEndpoint_.addAll(other.gossipEndpoint_);
}
onChanged();
}
} else {
if (!other.gossipEndpoint_.isEmpty()) {
if (gossipEndpointBuilder_.isEmpty()) {
gossipEndpointBuilder_.dispose();
gossipEndpointBuilder_ = null;
gossipEndpoint_ = other.gossipEndpoint_;
bitField0_ = (bitField0_ & ~0x00000001);
gossipEndpointBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGossipEndpointFieldBuilder() : null;
} else {
gossipEndpointBuilder_.addAllMessages(other.gossipEndpoint_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.hederahashgraph.api.proto.java.RosterEntry parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.RosterEntry) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long nodeId_ ;
/**
*
**
* A consensus node identifier.
* <p>
* Node identifiers SHALL be unique _within_ a ledger,
* and MUST NOT be repeated _between_ shards and realms.
*
*
* uint64 node_id = 1;
* @return The nodeId.
*/
@java.lang.Override
public long getNodeId() {
return nodeId_;
}
/**
*
**
* A consensus node identifier.
* <p>
* Node identifiers SHALL be unique _within_ a ledger,
* and MUST NOT be repeated _between_ shards and realms.
*
*
* uint64 node_id = 1;
* @param value The nodeId to set.
* @return This builder for chaining.
*/
public Builder setNodeId(long value) {
nodeId_ = value;
onChanged();
return this;
}
/**
*
**
* A consensus node identifier.
* <p>
* Node identifiers SHALL be unique _within_ a ledger,
* and MUST NOT be repeated _between_ shards and realms.
*
*
* uint64 node_id = 1;
* @return This builder for chaining.
*/
public Builder clearNodeId() {
nodeId_ = 0L;
onChanged();
return this;
}
private long weight_ ;
/**
*
**
* A consensus weight.
* <p>
* Each node SHALL have a weight of zero or more in consensus calculations.<br/>
* The sum of the weights of all nodes in the roster SHALL form the total weight of the system,
* and each node's individual weight SHALL be proportional to that sum.<br/>
*
*
* uint64 weight = 2;
* @return The weight.
*/
@java.lang.Override
public long getWeight() {
return weight_;
}
/**
*
**
* A consensus weight.
* <p>
* Each node SHALL have a weight of zero or more in consensus calculations.<br/>
* The sum of the weights of all nodes in the roster SHALL form the total weight of the system,
* and each node's individual weight SHALL be proportional to that sum.<br/>
*
*
* uint64 weight = 2;
* @param value The weight to set.
* @return This builder for chaining.
*/
public Builder setWeight(long value) {
weight_ = value;
onChanged();
return this;
}
/**
*
**
* A consensus weight.
* <p>
* Each node SHALL have a weight of zero or more in consensus calculations.<br/>
* The sum of the weights of all nodes in the roster SHALL form the total weight of the system,
* and each node's individual weight SHALL be proportional to that sum.<br/>
*
*
* uint64 weight = 2;
* @return This builder for chaining.
*/
public Builder clearWeight() {
weight_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString gossipCaCertificate_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* An RSA public certificate used for signing gossip events.
* <p>
* This value SHALL be a certificate of a type permitted for gossip
* signatures.<br/>
* This value SHALL be the DER encoding of the certificate presented.<br/>
* This field is REQUIRED and MUST NOT be empty.
*
*
* bytes gossip_ca_certificate = 3;
* @return The gossipCaCertificate.
*/
@java.lang.Override
public com.google.protobuf.ByteString getGossipCaCertificate() {
return gossipCaCertificate_;
}
/**
*
**
* An RSA public certificate used for signing gossip events.
* <p>
* This value SHALL be a certificate of a type permitted for gossip
* signatures.<br/>
* This value SHALL be the DER encoding of the certificate presented.<br/>
* This field is REQUIRED and MUST NOT be empty.
*
*
* bytes gossip_ca_certificate = 3;
* @param value The gossipCaCertificate to set.
* @return This builder for chaining.
*/
public Builder setGossipCaCertificate(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
gossipCaCertificate_ = value;
onChanged();
return this;
}
/**
*
**
* An RSA public certificate used for signing gossip events.
* <p>
* This value SHALL be a certificate of a type permitted for gossip
* signatures.<br/>
* This value SHALL be the DER encoding of the certificate presented.<br/>
* This field is REQUIRED and MUST NOT be empty.
*
*
* bytes gossip_ca_certificate = 3;
* @return This builder for chaining.
*/
public Builder clearGossipCaCertificate() {
gossipCaCertificate_ = getDefaultInstance().getGossipCaCertificate();
onChanged();
return this;
}
private com.google.protobuf.ByteString tssEncryptionKey_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* An elliptic curve public encryption key.<br/>
* This is currently an ALT_BN128 curve, but the elliptic curve
* type may change in the future. For example,
* if the Ethereum ecosystem creates precompiles for BLS12_381,
* we may switch to that curve.
* <p>
* This value SHALL be specified according to EIP-196 and EIP-197 standards,
* See <a href='https://eips.ethereum.org/EIPS/eip-196#encoding'>EIP-196</a> and
* <a href='https://eips.ethereum.org/EIPS/eip-197#encoding'>EIP-197</a><br/>
* This field is _initially_ OPTIONAL (i.e. it can be unset _when created_)
* but once set, it is REQUIRED thereafter.
*
*
* bytes tss_encryption_key = 4;
* @return The tssEncryptionKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTssEncryptionKey() {
return tssEncryptionKey_;
}
/**
*
**
* An elliptic curve public encryption key.<br/>
* This is currently an ALT_BN128 curve, but the elliptic curve
* type may change in the future. For example,
* if the Ethereum ecosystem creates precompiles for BLS12_381,
* we may switch to that curve.
* <p>
* This value SHALL be specified according to EIP-196 and EIP-197 standards,
* See <a href='https://eips.ethereum.org/EIPS/eip-196#encoding'>EIP-196</a> and
* <a href='https://eips.ethereum.org/EIPS/eip-197#encoding'>EIP-197</a><br/>
* This field is _initially_ OPTIONAL (i.e. it can be unset _when created_)
* but once set, it is REQUIRED thereafter.
*
*
* bytes tss_encryption_key = 4;
* @param value The tssEncryptionKey to set.
* @return This builder for chaining.
*/
public Builder setTssEncryptionKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
tssEncryptionKey_ = value;
onChanged();
return this;
}
/**
*
**
* An elliptic curve public encryption key.<br/>
* This is currently an ALT_BN128 curve, but the elliptic curve
* type may change in the future. For example,
* if the Ethereum ecosystem creates precompiles for BLS12_381,
* we may switch to that curve.
* <p>
* This value SHALL be specified according to EIP-196 and EIP-197 standards,
* See <a href='https://eips.ethereum.org/EIPS/eip-196#encoding'>EIP-196</a> and
* <a href='https://eips.ethereum.org/EIPS/eip-197#encoding'>EIP-197</a><br/>
* This field is _initially_ OPTIONAL (i.e. it can be unset _when created_)
* but once set, it is REQUIRED thereafter.
*
*
* bytes tss_encryption_key = 4;
* @return This builder for chaining.
*/
public Builder clearTssEncryptionKey() {
tssEncryptionKey_ = getDefaultInstance().getTssEncryptionKey();
onChanged();
return this;
}
private java.util.List gossipEndpoint_ =
java.util.Collections.emptyList();
private void ensureGossipEndpointIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
gossipEndpoint_ = new java.util.ArrayList(gossipEndpoint_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.ServiceEndpoint, com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder, com.hederahashgraph.api.proto.java.ServiceEndpointOrBuilder> gossipEndpointBuilder_;
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
public java.util.List getGossipEndpointList() {
if (gossipEndpointBuilder_ == null) {
return java.util.Collections.unmodifiableList(gossipEndpoint_);
} else {
return gossipEndpointBuilder_.getMessageList();
}
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
public int getGossipEndpointCount() {
if (gossipEndpointBuilder_ == null) {
return gossipEndpoint_.size();
} else {
return gossipEndpointBuilder_.getCount();
}
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
public com.hederahashgraph.api.proto.java.ServiceEndpoint getGossipEndpoint(int index) {
if (gossipEndpointBuilder_ == null) {
return gossipEndpoint_.get(index);
} else {
return gossipEndpointBuilder_.getMessage(index);
}
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
public Builder setGossipEndpoint(
int index, com.hederahashgraph.api.proto.java.ServiceEndpoint value) {
if (gossipEndpointBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGossipEndpointIsMutable();
gossipEndpoint_.set(index, value);
onChanged();
} else {
gossipEndpointBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
public Builder setGossipEndpoint(
int index, com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder builderForValue) {
if (gossipEndpointBuilder_ == null) {
ensureGossipEndpointIsMutable();
gossipEndpoint_.set(index, builderForValue.build());
onChanged();
} else {
gossipEndpointBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
public Builder addGossipEndpoint(com.hederahashgraph.api.proto.java.ServiceEndpoint value) {
if (gossipEndpointBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGossipEndpointIsMutable();
gossipEndpoint_.add(value);
onChanged();
} else {
gossipEndpointBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
public Builder addGossipEndpoint(
int index, com.hederahashgraph.api.proto.java.ServiceEndpoint value) {
if (gossipEndpointBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGossipEndpointIsMutable();
gossipEndpoint_.add(index, value);
onChanged();
} else {
gossipEndpointBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
public Builder addGossipEndpoint(
com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder builderForValue) {
if (gossipEndpointBuilder_ == null) {
ensureGossipEndpointIsMutable();
gossipEndpoint_.add(builderForValue.build());
onChanged();
} else {
gossipEndpointBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
public Builder addGossipEndpoint(
int index, com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder builderForValue) {
if (gossipEndpointBuilder_ == null) {
ensureGossipEndpointIsMutable();
gossipEndpoint_.add(index, builderForValue.build());
onChanged();
} else {
gossipEndpointBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
public Builder addAllGossipEndpoint(
java.lang.Iterable extends com.hederahashgraph.api.proto.java.ServiceEndpoint> values) {
if (gossipEndpointBuilder_ == null) {
ensureGossipEndpointIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, gossipEndpoint_);
onChanged();
} else {
gossipEndpointBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
public Builder clearGossipEndpoint() {
if (gossipEndpointBuilder_ == null) {
gossipEndpoint_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
gossipEndpointBuilder_.clear();
}
return this;
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
public Builder removeGossipEndpoint(int index) {
if (gossipEndpointBuilder_ == null) {
ensureGossipEndpointIsMutable();
gossipEndpoint_.remove(index);
onChanged();
} else {
gossipEndpointBuilder_.remove(index);
}
return this;
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
public com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder getGossipEndpointBuilder(
int index) {
return getGossipEndpointFieldBuilder().getBuilder(index);
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
public com.hederahashgraph.api.proto.java.ServiceEndpointOrBuilder getGossipEndpointOrBuilder(
int index) {
if (gossipEndpointBuilder_ == null) {
return gossipEndpoint_.get(index); } else {
return gossipEndpointBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
public java.util.List extends com.hederahashgraph.api.proto.java.ServiceEndpointOrBuilder>
getGossipEndpointOrBuilderList() {
if (gossipEndpointBuilder_ != null) {
return gossipEndpointBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(gossipEndpoint_);
}
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
public com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder addGossipEndpointBuilder() {
return getGossipEndpointFieldBuilder().addBuilder(
com.hederahashgraph.api.proto.java.ServiceEndpoint.getDefaultInstance());
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
public com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder addGossipEndpointBuilder(
int index) {
return getGossipEndpointFieldBuilder().addBuilder(
index, com.hederahashgraph.api.proto.java.ServiceEndpoint.getDefaultInstance());
}
/**
*
**
* A list of service endpoints for gossip.
* <p>
* These endpoints SHALL represent the published endpoints to which other
* consensus nodes may _gossip_ transactions.<br/>
* If the network configuration value `gossipFqdnRestricted` is set, then
* all endpoints in this list SHALL supply only IP address.<br/>
* If the network configuration value `gossipFqdnRestricted` is _not_ set,
* then endpoints in this list MAY supply either IP address or FQDN, but
* SHALL NOT supply both values for the same endpoint.<br/>
* This list SHALL NOT be empty.<br/>
*
*
* repeated .proto.ServiceEndpoint gossip_endpoint = 5;
*/
public java.util.List
getGossipEndpointBuilderList() {
return getGossipEndpointFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.ServiceEndpoint, com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder, com.hederahashgraph.api.proto.java.ServiceEndpointOrBuilder>
getGossipEndpointFieldBuilder() {
if (gossipEndpointBuilder_ == null) {
gossipEndpointBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.ServiceEndpoint, com.hederahashgraph.api.proto.java.ServiceEndpoint.Builder, com.hederahashgraph.api.proto.java.ServiceEndpointOrBuilder>(
gossipEndpoint_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
gossipEndpoint_ = null;
}
return gossipEndpointBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.hedera.hapi.node.state.roster.RosterEntry)
}
// @@protoc_insertion_point(class_scope:com.hedera.hapi.node.state.roster.RosterEntry)
private static final com.hederahashgraph.api.proto.java.RosterEntry DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.RosterEntry();
}
public static com.hederahashgraph.api.proto.java.RosterEntry getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RosterEntry parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RosterEntry(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.RosterEntry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}