com.hedera.node.internal.network.legacy.Network Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: network.proto
// Protobuf Java Version: 3.25.4
package com.hedera.node.internal.network.legacy;
/**
*
**
* A description of the Network of Consensus Nodes.<br/>
* This records the full information needed to bootstrap a network from Genesis
* or Network Transplant with TSS enabled and where the legacy address book is
* completely replaced by Rosters.
*
* The Network message SHOULD Encapsulate all the information needed for a
* specific node, repeated for all the nodes in the network.
*
* SHALL eliminate the requirement for separate overrides or genesis
* configurations, providing a standardized format for storing necessary
* metadata about all nodes in a network that are required for bootstrapping
* including TssEncryptionKeys, Roster entries, and ledgerIds.
*
* ### Block Stream Effects
* None. This is a format for data that exists on disk, not in state or block
* streams, but can be regenerated during state freeze operations for network
* resets.
*
*
* Protobuf type {@code com.hedera.node.internal.network.Network}
*/
public final class Network extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.hedera.node.internal.network.Network)
NetworkOrBuilder {
private static final long serialVersionUID = 0L;
// Use Network.newBuilder() to construct.
private Network(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Network() {
nodeMetadata_ = java.util.Collections.emptyList();
tssMessages_ = java.util.Collections.emptyList();
ledgerId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Network();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.node.internal.network.legacy.NetworkOuterClass.internal_static_com_hedera_node_internal_network_Network_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.node.internal.network.legacy.NetworkOuterClass.internal_static_com_hedera_node_internal_network_Network_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.node.internal.network.legacy.Network.class, com.hedera.node.internal.network.legacy.Network.Builder.class);
}
public static final int NODE_METADATA_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List nodeMetadata_;
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
@java.lang.Override
public java.util.List getNodeMetadataList() {
return nodeMetadata_;
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
@java.lang.Override
public java.util.List extends com.hedera.node.internal.network.legacy.NodeMetadataOrBuilder>
getNodeMetadataOrBuilderList() {
return nodeMetadata_;
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
@java.lang.Override
public int getNodeMetadataCount() {
return nodeMetadata_.size();
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
@java.lang.Override
public com.hedera.node.internal.network.legacy.NodeMetadata getNodeMetadata(int index) {
return nodeMetadata_.get(index);
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
@java.lang.Override
public com.hedera.node.internal.network.legacy.NodeMetadataOrBuilder getNodeMetadataOrBuilder(
int index) {
return nodeMetadata_.get(index);
}
public static final int TSS_MESSAGES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List tssMessages_;
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
@java.lang.Override
public java.util.List getTssMessagesList() {
return tssMessages_;
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
@java.lang.Override
public java.util.List extends com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBodyOrBuilder>
getTssMessagesOrBuilderList() {
return tssMessages_;
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
@java.lang.Override
public int getTssMessagesCount() {
return tssMessages_.size();
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
@java.lang.Override
public com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody getTssMessages(int index) {
return tssMessages_.get(index);
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
@java.lang.Override
public com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBodyOrBuilder getTssMessagesOrBuilder(
int index) {
return tssMessages_.get(index);
}
public static final int LEDGER_ID_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString ledgerId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* A public key.<br/>
* This key both identifies the ledger and can be used to verify ledger
* signatures on a block root hash.
* <p>
* This value MUST be set.<br/>
* This value MUST NOT be empty.<br/>
* This value MUST contain a valid public key.
*
*
* bytes ledger_id = 3;
* @return The ledgerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLedgerId() {
return ledgerId_;
}
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 {
for (int i = 0; i < nodeMetadata_.size(); i++) {
output.writeMessage(1, nodeMetadata_.get(i));
}
for (int i = 0; i < tssMessages_.size(); i++) {
output.writeMessage(2, tssMessages_.get(i));
}
if (!ledgerId_.isEmpty()) {
output.writeBytes(3, ledgerId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < nodeMetadata_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, nodeMetadata_.get(i));
}
for (int i = 0; i < tssMessages_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, tssMessages_.get(i));
}
if (!ledgerId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, ledgerId_);
}
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.node.internal.network.legacy.Network)) {
return super.equals(obj);
}
com.hedera.node.internal.network.legacy.Network other = (com.hedera.node.internal.network.legacy.Network) obj;
if (!getNodeMetadataList()
.equals(other.getNodeMetadataList())) return false;
if (!getTssMessagesList()
.equals(other.getTssMessagesList())) return false;
if (!getLedgerId()
.equals(other.getLedgerId())) 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();
if (getNodeMetadataCount() > 0) {
hash = (37 * hash) + NODE_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getNodeMetadataList().hashCode();
}
if (getTssMessagesCount() > 0) {
hash = (37 * hash) + TSS_MESSAGES_FIELD_NUMBER;
hash = (53 * hash) + getTssMessagesList().hashCode();
}
hash = (37 * hash) + LEDGER_ID_FIELD_NUMBER;
hash = (53 * hash) + getLedgerId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.node.internal.network.legacy.Network parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.node.internal.network.legacy.Network parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.node.internal.network.legacy.Network parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.node.internal.network.legacy.Network 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.node.internal.network.legacy.Network parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.node.internal.network.legacy.Network parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.node.internal.network.legacy.Network parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.node.internal.network.legacy.Network 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.node.internal.network.legacy.Network parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.node.internal.network.legacy.Network 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.node.internal.network.legacy.Network parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.node.internal.network.legacy.Network 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.node.internal.network.legacy.Network 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 description of the Network of Consensus Nodes.<br/>
* This records the full information needed to bootstrap a network from Genesis
* or Network Transplant with TSS enabled and where the legacy address book is
* completely replaced by Rosters.
*
* The Network message SHOULD Encapsulate all the information needed for a
* specific node, repeated for all the nodes in the network.
*
* SHALL eliminate the requirement for separate overrides or genesis
* configurations, providing a standardized format for storing necessary
* metadata about all nodes in a network that are required for bootstrapping
* including TssEncryptionKeys, Roster entries, and ledgerIds.
*
* ### Block Stream Effects
* None. This is a format for data that exists on disk, not in state or block
* streams, but can be regenerated during state freeze operations for network
* resets.
*
*
* Protobuf type {@code com.hedera.node.internal.network.Network}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.hedera.node.internal.network.Network)
com.hedera.node.internal.network.legacy.NetworkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.node.internal.network.legacy.NetworkOuterClass.internal_static_com_hedera_node_internal_network_Network_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.node.internal.network.legacy.NetworkOuterClass.internal_static_com_hedera_node_internal_network_Network_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.node.internal.network.legacy.Network.class, com.hedera.node.internal.network.legacy.Network.Builder.class);
}
// Construct using com.hedera.node.internal.network.legacy.Network.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (nodeMetadataBuilder_ == null) {
nodeMetadata_ = java.util.Collections.emptyList();
} else {
nodeMetadata_ = null;
nodeMetadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (tssMessagesBuilder_ == null) {
tssMessages_ = java.util.Collections.emptyList();
} else {
tssMessages_ = null;
tssMessagesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
ledgerId_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.node.internal.network.legacy.NetworkOuterClass.internal_static_com_hedera_node_internal_network_Network_descriptor;
}
@java.lang.Override
public com.hedera.node.internal.network.legacy.Network getDefaultInstanceForType() {
return com.hedera.node.internal.network.legacy.Network.getDefaultInstance();
}
@java.lang.Override
public com.hedera.node.internal.network.legacy.Network build() {
com.hedera.node.internal.network.legacy.Network result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.node.internal.network.legacy.Network buildPartial() {
com.hedera.node.internal.network.legacy.Network result = new com.hedera.node.internal.network.legacy.Network(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.hedera.node.internal.network.legacy.Network result) {
if (nodeMetadataBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
nodeMetadata_ = java.util.Collections.unmodifiableList(nodeMetadata_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.nodeMetadata_ = nodeMetadata_;
} else {
result.nodeMetadata_ = nodeMetadataBuilder_.build();
}
if (tssMessagesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
tssMessages_ = java.util.Collections.unmodifiableList(tssMessages_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.tssMessages_ = tssMessages_;
} else {
result.tssMessages_ = tssMessagesBuilder_.build();
}
}
private void buildPartial0(com.hedera.node.internal.network.legacy.Network result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.ledgerId_ = ledgerId_;
}
}
@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.node.internal.network.legacy.Network) {
return mergeFrom((com.hedera.node.internal.network.legacy.Network)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.node.internal.network.legacy.Network other) {
if (other == com.hedera.node.internal.network.legacy.Network.getDefaultInstance()) return this;
if (nodeMetadataBuilder_ == null) {
if (!other.nodeMetadata_.isEmpty()) {
if (nodeMetadata_.isEmpty()) {
nodeMetadata_ = other.nodeMetadata_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNodeMetadataIsMutable();
nodeMetadata_.addAll(other.nodeMetadata_);
}
onChanged();
}
} else {
if (!other.nodeMetadata_.isEmpty()) {
if (nodeMetadataBuilder_.isEmpty()) {
nodeMetadataBuilder_.dispose();
nodeMetadataBuilder_ = null;
nodeMetadata_ = other.nodeMetadata_;
bitField0_ = (bitField0_ & ~0x00000001);
nodeMetadataBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNodeMetadataFieldBuilder() : null;
} else {
nodeMetadataBuilder_.addAllMessages(other.nodeMetadata_);
}
}
}
if (tssMessagesBuilder_ == null) {
if (!other.tssMessages_.isEmpty()) {
if (tssMessages_.isEmpty()) {
tssMessages_ = other.tssMessages_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureTssMessagesIsMutable();
tssMessages_.addAll(other.tssMessages_);
}
onChanged();
}
} else {
if (!other.tssMessages_.isEmpty()) {
if (tssMessagesBuilder_.isEmpty()) {
tssMessagesBuilder_.dispose();
tssMessagesBuilder_ = null;
tssMessages_ = other.tssMessages_;
bitField0_ = (bitField0_ & ~0x00000002);
tssMessagesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTssMessagesFieldBuilder() : null;
} else {
tssMessagesBuilder_.addAllMessages(other.tssMessages_);
}
}
}
if (other.getLedgerId() != com.google.protobuf.ByteString.EMPTY) {
setLedgerId(other.getLedgerId());
}
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 10: {
com.hedera.node.internal.network.legacy.NodeMetadata m =
input.readMessage(
com.hedera.node.internal.network.legacy.NodeMetadata.parser(),
extensionRegistry);
if (nodeMetadataBuilder_ == null) {
ensureNodeMetadataIsMutable();
nodeMetadata_.add(m);
} else {
nodeMetadataBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody m =
input.readMessage(
com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody.parser(),
extensionRegistry);
if (tssMessagesBuilder_ == null) {
ensureTssMessagesIsMutable();
tssMessages_.add(m);
} else {
tssMessagesBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
ledgerId_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
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 java.util.List nodeMetadata_ =
java.util.Collections.emptyList();
private void ensureNodeMetadataIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
nodeMetadata_ = new java.util.ArrayList(nodeMetadata_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.node.internal.network.legacy.NodeMetadata, com.hedera.node.internal.network.legacy.NodeMetadata.Builder, com.hedera.node.internal.network.legacy.NodeMetadataOrBuilder> nodeMetadataBuilder_;
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
public java.util.List getNodeMetadataList() {
if (nodeMetadataBuilder_ == null) {
return java.util.Collections.unmodifiableList(nodeMetadata_);
} else {
return nodeMetadataBuilder_.getMessageList();
}
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
public int getNodeMetadataCount() {
if (nodeMetadataBuilder_ == null) {
return nodeMetadata_.size();
} else {
return nodeMetadataBuilder_.getCount();
}
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
public com.hedera.node.internal.network.legacy.NodeMetadata getNodeMetadata(int index) {
if (nodeMetadataBuilder_ == null) {
return nodeMetadata_.get(index);
} else {
return nodeMetadataBuilder_.getMessage(index);
}
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
public Builder setNodeMetadata(
int index, com.hedera.node.internal.network.legacy.NodeMetadata value) {
if (nodeMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeMetadataIsMutable();
nodeMetadata_.set(index, value);
onChanged();
} else {
nodeMetadataBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
public Builder setNodeMetadata(
int index, com.hedera.node.internal.network.legacy.NodeMetadata.Builder builderForValue) {
if (nodeMetadataBuilder_ == null) {
ensureNodeMetadataIsMutable();
nodeMetadata_.set(index, builderForValue.build());
onChanged();
} else {
nodeMetadataBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
public Builder addNodeMetadata(com.hedera.node.internal.network.legacy.NodeMetadata value) {
if (nodeMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeMetadataIsMutable();
nodeMetadata_.add(value);
onChanged();
} else {
nodeMetadataBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
public Builder addNodeMetadata(
int index, com.hedera.node.internal.network.legacy.NodeMetadata value) {
if (nodeMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeMetadataIsMutable();
nodeMetadata_.add(index, value);
onChanged();
} else {
nodeMetadataBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
public Builder addNodeMetadata(
com.hedera.node.internal.network.legacy.NodeMetadata.Builder builderForValue) {
if (nodeMetadataBuilder_ == null) {
ensureNodeMetadataIsMutable();
nodeMetadata_.add(builderForValue.build());
onChanged();
} else {
nodeMetadataBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
public Builder addNodeMetadata(
int index, com.hedera.node.internal.network.legacy.NodeMetadata.Builder builderForValue) {
if (nodeMetadataBuilder_ == null) {
ensureNodeMetadataIsMutable();
nodeMetadata_.add(index, builderForValue.build());
onChanged();
} else {
nodeMetadataBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
public Builder addAllNodeMetadata(
java.lang.Iterable extends com.hedera.node.internal.network.legacy.NodeMetadata> values) {
if (nodeMetadataBuilder_ == null) {
ensureNodeMetadataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, nodeMetadata_);
onChanged();
} else {
nodeMetadataBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
public Builder clearNodeMetadata() {
if (nodeMetadataBuilder_ == null) {
nodeMetadata_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
nodeMetadataBuilder_.clear();
}
return this;
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
public Builder removeNodeMetadata(int index) {
if (nodeMetadataBuilder_ == null) {
ensureNodeMetadataIsMutable();
nodeMetadata_.remove(index);
onChanged();
} else {
nodeMetadataBuilder_.remove(index);
}
return this;
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
public com.hedera.node.internal.network.legacy.NodeMetadata.Builder getNodeMetadataBuilder(
int index) {
return getNodeMetadataFieldBuilder().getBuilder(index);
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
public com.hedera.node.internal.network.legacy.NodeMetadataOrBuilder getNodeMetadataOrBuilder(
int index) {
if (nodeMetadataBuilder_ == null) {
return nodeMetadata_.get(index); } else {
return nodeMetadataBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
public java.util.List extends com.hedera.node.internal.network.legacy.NodeMetadataOrBuilder>
getNodeMetadataOrBuilderList() {
if (nodeMetadataBuilder_ != null) {
return nodeMetadataBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(nodeMetadata_);
}
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
public com.hedera.node.internal.network.legacy.NodeMetadata.Builder addNodeMetadataBuilder() {
return getNodeMetadataFieldBuilder().addBuilder(
com.hedera.node.internal.network.legacy.NodeMetadata.getDefaultInstance());
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
public com.hedera.node.internal.network.legacy.NodeMetadata.Builder addNodeMetadataBuilder(
int index) {
return getNodeMetadataFieldBuilder().addBuilder(
index, com.hedera.node.internal.network.legacy.NodeMetadata.getDefaultInstance());
}
/**
*
**
* The metadata of the nodes in the network.
*
*
* repeated .com.hedera.node.internal.network.NodeMetadata node_metadata = 1;
*/
public java.util.List
getNodeMetadataBuilderList() {
return getNodeMetadataFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.node.internal.network.legacy.NodeMetadata, com.hedera.node.internal.network.legacy.NodeMetadata.Builder, com.hedera.node.internal.network.legacy.NodeMetadataOrBuilder>
getNodeMetadataFieldBuilder() {
if (nodeMetadataBuilder_ == null) {
nodeMetadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.node.internal.network.legacy.NodeMetadata, com.hedera.node.internal.network.legacy.NodeMetadata.Builder, com.hedera.node.internal.network.legacy.NodeMetadataOrBuilder>(
nodeMetadata_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
nodeMetadata_ = null;
}
return nodeMetadataBuilder_;
}
private java.util.List tssMessages_ =
java.util.Collections.emptyList();
private void ensureTssMessagesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
tssMessages_ = new java.util.ArrayList(tssMessages_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody, com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody.Builder, com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBodyOrBuilder> tssMessagesBuilder_;
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
public java.util.List getTssMessagesList() {
if (tssMessagesBuilder_ == null) {
return java.util.Collections.unmodifiableList(tssMessages_);
} else {
return tssMessagesBuilder_.getMessageList();
}
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
public int getTssMessagesCount() {
if (tssMessagesBuilder_ == null) {
return tssMessages_.size();
} else {
return tssMessagesBuilder_.getCount();
}
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
public com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody getTssMessages(int index) {
if (tssMessagesBuilder_ == null) {
return tssMessages_.get(index);
} else {
return tssMessagesBuilder_.getMessage(index);
}
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
public Builder setTssMessages(
int index, com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody value) {
if (tssMessagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTssMessagesIsMutable();
tssMessages_.set(index, value);
onChanged();
} else {
tssMessagesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
public Builder setTssMessages(
int index, com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody.Builder builderForValue) {
if (tssMessagesBuilder_ == null) {
ensureTssMessagesIsMutable();
tssMessages_.set(index, builderForValue.build());
onChanged();
} else {
tssMessagesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
public Builder addTssMessages(com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody value) {
if (tssMessagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTssMessagesIsMutable();
tssMessages_.add(value);
onChanged();
} else {
tssMessagesBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
public Builder addTssMessages(
int index, com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody value) {
if (tssMessagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTssMessagesIsMutable();
tssMessages_.add(index, value);
onChanged();
} else {
tssMessagesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
public Builder addTssMessages(
com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody.Builder builderForValue) {
if (tssMessagesBuilder_ == null) {
ensureTssMessagesIsMutable();
tssMessages_.add(builderForValue.build());
onChanged();
} else {
tssMessagesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
public Builder addTssMessages(
int index, com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody.Builder builderForValue) {
if (tssMessagesBuilder_ == null) {
ensureTssMessagesIsMutable();
tssMessages_.add(index, builderForValue.build());
onChanged();
} else {
tssMessagesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
public Builder addAllTssMessages(
java.lang.Iterable extends com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody> values) {
if (tssMessagesBuilder_ == null) {
ensureTssMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tssMessages_);
onChanged();
} else {
tssMessagesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
public Builder clearTssMessages() {
if (tssMessagesBuilder_ == null) {
tssMessages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
tssMessagesBuilder_.clear();
}
return this;
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
public Builder removeTssMessages(int index) {
if (tssMessagesBuilder_ == null) {
ensureTssMessagesIsMutable();
tssMessages_.remove(index);
onChanged();
} else {
tssMessagesBuilder_.remove(index);
}
return this;
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
public com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody.Builder getTssMessagesBuilder(
int index) {
return getTssMessagesFieldBuilder().getBuilder(index);
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
public com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBodyOrBuilder getTssMessagesOrBuilder(
int index) {
if (tssMessagesBuilder_ == null) {
return tssMessages_.get(index); } else {
return tssMessagesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
public java.util.List extends com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBodyOrBuilder>
getTssMessagesOrBuilderList() {
if (tssMessagesBuilder_ != null) {
return tssMessagesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tssMessages_);
}
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
public com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody.Builder addTssMessagesBuilder() {
return getTssMessagesFieldBuilder().addBuilder(
com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody.getDefaultInstance());
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
public com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody.Builder addTssMessagesBuilder(
int index) {
return getTssMessagesFieldBuilder().addBuilder(
index, com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody.getDefaultInstance());
}
/**
*
**
* A list of TSS messages that have been generated by the nodes in
* a target network that is receiving a "transplant state". <br/>
* This gives the capability to preserve the ledger id of the target network
* even if the transplant state has no keys or roster entries in common with
* the target.
* <p>
* This MUST be exactly the ordered list of TSS messages used to generate
* the target network's ledger id; and must generate the same ledger id
* given below.
*
*
* repeated .com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody tss_messages = 2;
*/
public java.util.List
getTssMessagesBuilderList() {
return getTssMessagesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody, com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody.Builder, com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBodyOrBuilder>
getTssMessagesFieldBuilder() {
if (tssMessagesBuilder_ == null) {
tssMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody, com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody.Builder, com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBodyOrBuilder>(
tssMessages_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
tssMessages_ = null;
}
return tssMessagesBuilder_;
}
private com.google.protobuf.ByteString ledgerId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* A public key.<br/>
* This key both identifies the ledger and can be used to verify ledger
* signatures on a block root hash.
* <p>
* This value MUST be set.<br/>
* This value MUST NOT be empty.<br/>
* This value MUST contain a valid public key.
*
*
* bytes ledger_id = 3;
* @return The ledgerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLedgerId() {
return ledgerId_;
}
/**
*
**
* A public key.<br/>
* This key both identifies the ledger and can be used to verify ledger
* signatures on a block root hash.
* <p>
* This value MUST be set.<br/>
* This value MUST NOT be empty.<br/>
* This value MUST contain a valid public key.
*
*
* bytes ledger_id = 3;
* @param value The ledgerId to set.
* @return This builder for chaining.
*/
public Builder setLedgerId(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ledgerId_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* A public key.<br/>
* This key both identifies the ledger and can be used to verify ledger
* signatures on a block root hash.
* <p>
* This value MUST be set.<br/>
* This value MUST NOT be empty.<br/>
* This value MUST contain a valid public key.
*
*
* bytes ledger_id = 3;
* @return This builder for chaining.
*/
public Builder clearLedgerId() {
bitField0_ = (bitField0_ & ~0x00000004);
ledgerId_ = getDefaultInstance().getLedgerId();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.hedera.node.internal.network.Network)
}
// @@protoc_insertion_point(class_scope:com.hedera.node.internal.network.Network)
private static final com.hedera.node.internal.network.legacy.Network DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.node.internal.network.legacy.Network();
}
public static com.hedera.node.internal.network.legacy.Network getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Network 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.node.internal.network.legacy.Network getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy