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

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

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

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

/**
 * 
 **
 * 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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.RosterOuterClass.internal_static_com_hedera_hapi_node_state_roster_RosterEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.RosterOuterClass.internal_static_com_hedera_hapi_node_state_roster_RosterEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.RosterEntry.class, com.hedera.hashgraph.sdk.proto.RosterEntry.Builder.class); } public static final int NODE_ID_FIELD_NUMBER = 1; private long nodeId_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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_ = 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_; } public static final int TSS_ENCRYPTION_KEY_FIELD_NUMBER = 4; 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_; } public static final int GOSSIP_ENDPOINT_FIELD_NUMBER = 5; @SuppressWarnings("serial") 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 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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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)); } getUnknownFields().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 += getUnknownFields().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.hashgraph.sdk.proto.RosterEntry)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.RosterEntry other = (com.hedera.hashgraph.sdk.proto.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.RosterEntry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.RosterEntry parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.RosterEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.RosterEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.RosterEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.RosterEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.RosterEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.RosterEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.RosterEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.RosterOuterClass.internal_static_com_hedera_hapi_node_state_roster_RosterEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.RosterOuterClass.internal_static_com_hedera_hapi_node_state_roster_RosterEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.RosterEntry.class, com.hedera.hashgraph.sdk.proto.RosterEntry.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.RosterEntry.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; nodeId_ = 0L; weight_ = 0L; gossipCaCertificate_ = com.google.protobuf.ByteString.EMPTY; tssEncryptionKey_ = com.google.protobuf.ByteString.EMPTY; if (gossipEndpointBuilder_ == null) { gossipEndpoint_ = java.util.Collections.emptyList(); } else { gossipEndpoint_ = null; gossipEndpointBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.RosterOuterClass.internal_static_com_hedera_hapi_node_state_roster_RosterEntry_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.RosterEntry getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.RosterEntry.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.RosterEntry build() { com.hedera.hashgraph.sdk.proto.RosterEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.RosterEntry buildPartial() { com.hedera.hashgraph.sdk.proto.RosterEntry result = new com.hedera.hashgraph.sdk.proto.RosterEntry(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.RosterEntry result) { if (gossipEndpointBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { gossipEndpoint_ = java.util.Collections.unmodifiableList(gossipEndpoint_); bitField0_ = (bitField0_ & ~0x00000010); } result.gossipEndpoint_ = gossipEndpoint_; } else { result.gossipEndpoint_ = gossipEndpointBuilder_.build(); } } private void buildPartial0(com.hedera.hashgraph.sdk.proto.RosterEntry result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.nodeId_ = nodeId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.weight_ = weight_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.gossipCaCertificate_ = gossipCaCertificate_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.tssEncryptionKey_ = tssEncryptionKey_; } } @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.hashgraph.sdk.proto.RosterEntry) { return mergeFrom((com.hedera.hashgraph.sdk.proto.RosterEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.RosterEntry other) { if (other == com.hedera.hashgraph.sdk.proto.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_ & ~0x00000010); } else { ensureGossipEndpointIsMutable(); gossipEndpoint_.addAll(other.gossipEndpoint_); } onChanged(); } } else { if (!other.gossipEndpoint_.isEmpty()) { if (gossipEndpointBuilder_.isEmpty()) { gossipEndpointBuilder_.dispose(); gossipEndpointBuilder_ = null; gossipEndpoint_ = other.gossipEndpoint_; bitField0_ = (bitField0_ & ~0x00000010); gossipEndpointBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGossipEndpointFieldBuilder() : null; } else { gossipEndpointBuilder_.addAllMessages(other.gossipEndpoint_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { nodeId_ = input.readUInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { weight_ = input.readUInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { gossipCaCertificate_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { tssEncryptionKey_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { com.hedera.hashgraph.sdk.proto.ServiceEndpoint m = input.readMessage( com.hedera.hashgraph.sdk.proto.ServiceEndpoint.parser(), extensionRegistry); if (gossipEndpointBuilder_ == null) { ensureGossipEndpointIsMutable(); gossipEndpoint_.add(m); } else { gossipEndpointBuilder_.addMessage(m); } break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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; bitField0_ |= 0x00000001; 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() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; 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() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; 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() { bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000008; 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() { bitField0_ = (bitField0_ & ~0x00000008); tssEncryptionKey_ = getDefaultInstance().getTssEncryptionKey(); onChanged(); return this; } private java.util.List gossipEndpoint_ = java.util.Collections.emptyList(); private void ensureGossipEndpointIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { gossipEndpoint_ = new java.util.ArrayList(gossipEndpoint_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ServiceEndpoint, com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder, com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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 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_ & ~0x00000010); 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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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 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.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder addGossipEndpointBuilder() { return getGossipEndpointFieldBuilder().addBuilder( com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder addGossipEndpointBuilder( int index) { return getGossipEndpointFieldBuilder().addBuilder( index, com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.ServiceEndpoint, com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder, com.hedera.hashgraph.sdk.proto.ServiceEndpointOrBuilder> getGossipEndpointFieldBuilder() { if (gossipEndpointBuilder_ == null) { gossipEndpointBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ServiceEndpoint, com.hedera.hashgraph.sdk.proto.ServiceEndpoint.Builder, com.hedera.hashgraph.sdk.proto.ServiceEndpointOrBuilder>( gossipEndpoint_, ((bitField0_ & 0x00000010) != 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.hedera.hashgraph.sdk.proto.RosterEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.RosterEntry(); } public static com.hedera.hashgraph.sdk.proto.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.hashgraph.sdk.proto.RosterEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy