Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: state/platform_state.proto
package com.hedera.hapi.platform.state.legacy;
/**
*
**
* A network address book.<br/>
* The address book records the address of every known consensus node that
* participates in the network, including `0 weight` nodes.<br/>
*
*
* Protobuf type {@code com.hedera.hapi.platform.state.AddressBook}
*/
public final class AddressBook extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.hedera.hapi.platform.state.AddressBook)
AddressBookOrBuilder {
private static final long serialVersionUID = 0L;
// Use AddressBook.newBuilder() to construct.
private AddressBook(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AddressBook() {
addresses_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AddressBook();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AddressBook(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
round_ = input.readInt64();
break;
}
case 18: {
com.hedera.hapi.platform.state.legacy.NodeId.Builder subBuilder = null;
if (nextNodeId_ != null) {
subBuilder = nextNodeId_.toBuilder();
}
nextNodeId_ = input.readMessage(com.hedera.hapi.platform.state.legacy.NodeId.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nextNodeId_);
nextNodeId_ = subBuilder.buildPartial();
}
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
addresses_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
addresses_.add(
input.readMessage(com.hedera.hapi.platform.state.legacy.Address.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
addresses_ = java.util.Collections.unmodifiableList(addresses_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hapi.platform.state.legacy.PlatformStateOuterClass.internal_static_com_hedera_hapi_platform_state_AddressBook_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hapi.platform.state.legacy.PlatformStateOuterClass.internal_static_com_hedera_hapi_platform_state_AddressBook_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hapi.platform.state.legacy.AddressBook.class, com.hedera.hapi.platform.state.legacy.AddressBook.Builder.class);
}
public static final int ROUND_FIELD_NUMBER = 1;
private long round_;
/**
*
**
* A consensus round.<br/>
* The round when this address book was created.
*
*
* int64 round = 1;
* @return The round.
*/
@java.lang.Override
public long getRound() {
return round_;
}
public static final int NEXT_NODE_ID_FIELD_NUMBER = 2;
private com.hedera.hapi.platform.state.legacy.NodeId nextNodeId_;
/**
*
**
* The node ID of the next address that can be added.
* <p>
* The next node identifier assigned SHALL be equal to this value.<br/>
* All existing node identifiers SHALL be strictly less than this value.<br/>
*
*
* .com.hedera.hapi.platform.state.NodeId next_node_id = 2;
* @return Whether the nextNodeId field is set.
*/
@java.lang.Override
public boolean hasNextNodeId() {
return nextNodeId_ != null;
}
/**
*
**
* The node ID of the next address that can be added.
* <p>
* The next node identifier assigned SHALL be equal to this value.<br/>
* All existing node identifiers SHALL be strictly less than this value.<br/>
*
**
* The node ID of the next address that can be added.
* <p>
* The next node identifier assigned SHALL be equal to this value.<br/>
* All existing node identifiers SHALL be strictly less than this value.<br/>
*
*
* .com.hedera.hapi.platform.state.NodeId next_node_id = 2;
*/
@java.lang.Override
public com.hedera.hapi.platform.state.legacy.NodeIdOrBuilder getNextNodeIdOrBuilder() {
return getNextNodeId();
}
public static final int ADDRESSES_FIELD_NUMBER = 3;
private java.util.List addresses_;
/**
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
*
* repeated .com.hedera.hapi.platform.state.Address addresses = 3;
*/
@java.lang.Override
public int getAddressesCount() {
return addresses_.size();
}
/**
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
*
* repeated .com.hedera.hapi.platform.state.Address addresses = 3;
*/
@java.lang.Override
public com.hedera.hapi.platform.state.legacy.AddressOrBuilder getAddressesOrBuilder(
int index) {
return addresses_.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 (round_ != 0L) {
output.writeInt64(1, round_);
}
if (nextNodeId_ != null) {
output.writeMessage(2, getNextNodeId());
}
for (int i = 0; i < addresses_.size(); i++) {
output.writeMessage(3, addresses_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (round_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, round_);
}
if (nextNodeId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getNextNodeId());
}
for (int i = 0; i < addresses_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, addresses_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.hedera.hapi.platform.state.legacy.AddressBook)) {
return super.equals(obj);
}
com.hedera.hapi.platform.state.legacy.AddressBook other = (com.hedera.hapi.platform.state.legacy.AddressBook) obj;
if (getRound()
!= other.getRound()) return false;
if (hasNextNodeId() != other.hasNextNodeId()) return false;
if (hasNextNodeId()) {
if (!getNextNodeId()
.equals(other.getNextNodeId())) return false;
}
if (!getAddressesList()
.equals(other.getAddressesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ROUND_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRound());
if (hasNextNodeId()) {
hash = (37 * hash) + NEXT_NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + getNextNodeId().hashCode();
}
if (getAddressesCount() > 0) {
hash = (37 * hash) + ADDRESSES_FIELD_NUMBER;
hash = (53 * hash) + getAddressesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hapi.platform.state.legacy.AddressBook parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.platform.state.legacy.AddressBook parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hapi.platform.state.legacy.AddressBook parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.platform.state.legacy.AddressBook parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hapi.platform.state.legacy.AddressBook parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.platform.state.legacy.AddressBook parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hapi.platform.state.legacy.AddressBook parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hapi.platform.state.legacy.AddressBook parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.hedera.hapi.platform.state.legacy.AddressBook parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hapi.platform.state.legacy.AddressBook parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.hedera.hapi.platform.state.legacy.AddressBook parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hapi.platform.state.legacy.AddressBook parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.hedera.hapi.platform.state.legacy.AddressBook 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 network address book.<br/>
* The address book records the address of every known consensus node that
* participates in the network, including `0 weight` nodes.<br/>
*
*
* Protobuf type {@code com.hedera.hapi.platform.state.AddressBook}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.hedera.hapi.platform.state.AddressBook)
com.hedera.hapi.platform.state.legacy.AddressBookOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hapi.platform.state.legacy.PlatformStateOuterClass.internal_static_com_hedera_hapi_platform_state_AddressBook_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hapi.platform.state.legacy.PlatformStateOuterClass.internal_static_com_hedera_hapi_platform_state_AddressBook_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hapi.platform.state.legacy.AddressBook.class, com.hedera.hapi.platform.state.legacy.AddressBook.Builder.class);
}
// Construct using com.hedera.hapi.platform.state.legacy.AddressBook.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAddressesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
round_ = 0L;
if (nextNodeIdBuilder_ == null) {
nextNodeId_ = null;
} else {
nextNodeId_ = null;
nextNodeIdBuilder_ = null;
}
if (addressesBuilder_ == null) {
addresses_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
addressesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hapi.platform.state.legacy.PlatformStateOuterClass.internal_static_com_hedera_hapi_platform_state_AddressBook_descriptor;
}
@java.lang.Override
public com.hedera.hapi.platform.state.legacy.AddressBook getDefaultInstanceForType() {
return com.hedera.hapi.platform.state.legacy.AddressBook.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hapi.platform.state.legacy.AddressBook build() {
com.hedera.hapi.platform.state.legacy.AddressBook result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hapi.platform.state.legacy.AddressBook buildPartial() {
com.hedera.hapi.platform.state.legacy.AddressBook result = new com.hedera.hapi.platform.state.legacy.AddressBook(this);
int from_bitField0_ = bitField0_;
result.round_ = round_;
if (nextNodeIdBuilder_ == null) {
result.nextNodeId_ = nextNodeId_;
} else {
result.nextNodeId_ = nextNodeIdBuilder_.build();
}
if (addressesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
addresses_ = java.util.Collections.unmodifiableList(addresses_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.addresses_ = addresses_;
} else {
result.addresses_ = addressesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hedera.hapi.platform.state.legacy.AddressBook) {
return mergeFrom((com.hedera.hapi.platform.state.legacy.AddressBook)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hapi.platform.state.legacy.AddressBook other) {
if (other == com.hedera.hapi.platform.state.legacy.AddressBook.getDefaultInstance()) return this;
if (other.getRound() != 0L) {
setRound(other.getRound());
}
if (other.hasNextNodeId()) {
mergeNextNodeId(other.getNextNodeId());
}
if (addressesBuilder_ == null) {
if (!other.addresses_.isEmpty()) {
if (addresses_.isEmpty()) {
addresses_ = other.addresses_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAddressesIsMutable();
addresses_.addAll(other.addresses_);
}
onChanged();
}
} else {
if (!other.addresses_.isEmpty()) {
if (addressesBuilder_.isEmpty()) {
addressesBuilder_.dispose();
addressesBuilder_ = null;
addresses_ = other.addresses_;
bitField0_ = (bitField0_ & ~0x00000001);
addressesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAddressesFieldBuilder() : null;
} else {
addressesBuilder_.addAllMessages(other.addresses_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.hedera.hapi.platform.state.legacy.AddressBook parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hedera.hapi.platform.state.legacy.AddressBook) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long round_ ;
/**
*
**
* A consensus round.<br/>
* The round when this address book was created.
*
*
* int64 round = 1;
* @return The round.
*/
@java.lang.Override
public long getRound() {
return round_;
}
/**
*
**
* A consensus round.<br/>
* The round when this address book was created.
*
*
* int64 round = 1;
* @param value The round to set.
* @return This builder for chaining.
*/
public Builder setRound(long value) {
round_ = value;
onChanged();
return this;
}
/**
*
**
* A consensus round.<br/>
* The round when this address book was created.
*
**
* The node ID of the next address that can be added.
* <p>
* The next node identifier assigned SHALL be equal to this value.<br/>
* All existing node identifiers SHALL be strictly less than this value.<br/>
*
*
* .com.hedera.hapi.platform.state.NodeId next_node_id = 2;
* @return Whether the nextNodeId field is set.
*/
public boolean hasNextNodeId() {
return nextNodeIdBuilder_ != null || nextNodeId_ != null;
}
/**
*
**
* The node ID of the next address that can be added.
* <p>
* The next node identifier assigned SHALL be equal to this value.<br/>
* All existing node identifiers SHALL be strictly less than this value.<br/>
*
**
* The node ID of the next address that can be added.
* <p>
* The next node identifier assigned SHALL be equal to this value.<br/>
* All existing node identifiers SHALL be strictly less than this value.<br/>
*
*
* .com.hedera.hapi.platform.state.NodeId next_node_id = 2;
*/
public Builder setNextNodeId(com.hedera.hapi.platform.state.legacy.NodeId value) {
if (nextNodeIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nextNodeId_ = value;
onChanged();
} else {
nextNodeIdBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The node ID of the next address that can be added.
* <p>
* The next node identifier assigned SHALL be equal to this value.<br/>
* All existing node identifiers SHALL be strictly less than this value.<br/>
*
**
* The node ID of the next address that can be added.
* <p>
* The next node identifier assigned SHALL be equal to this value.<br/>
* All existing node identifiers SHALL be strictly less than this value.<br/>
*
**
* The node ID of the next address that can be added.
* <p>
* The next node identifier assigned SHALL be equal to this value.<br/>
* All existing node identifiers SHALL be strictly less than this value.<br/>
*
**
* The node ID of the next address that can be added.
* <p>
* The next node identifier assigned SHALL be equal to this value.<br/>
* All existing node identifiers SHALL be strictly less than this value.<br/>
*
**
* The node ID of the next address that can be added.
* <p>
* The next node identifier assigned SHALL be equal to this value.<br/>
* All existing node identifiers SHALL be strictly less than this value.<br/>
*
**
* The node ID of the next address that can be added.
* <p>
* The next node identifier assigned SHALL be equal to this value.<br/>
* All existing node identifiers SHALL be strictly less than this value.<br/>
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
*
* repeated .com.hedera.hapi.platform.state.Address addresses = 3;
*/
public int getAddressesCount() {
if (addressesBuilder_ == null) {
return addresses_.size();
} else {
return addressesBuilder_.getCount();
}
}
/**
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
*
* repeated .com.hedera.hapi.platform.state.Address addresses = 3;
*/
public Builder setAddresses(
int index, com.hedera.hapi.platform.state.legacy.Address value) {
if (addressesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddressesIsMutable();
addresses_.set(index, value);
onChanged();
} else {
addressesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
*
* repeated .com.hedera.hapi.platform.state.Address addresses = 3;
*/
public Builder addAddresses(com.hedera.hapi.platform.state.legacy.Address value) {
if (addressesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddressesIsMutable();
addresses_.add(value);
onChanged();
} else {
addressesBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
*
* repeated .com.hedera.hapi.platform.state.Address addresses = 3;
*/
public Builder addAddresses(
int index, com.hedera.hapi.platform.state.legacy.Address value) {
if (addressesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddressesIsMutable();
addresses_.add(index, value);
onChanged();
} else {
addressesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
*
* repeated .com.hedera.hapi.platform.state.Address addresses = 3;
*/
public com.hedera.hapi.platform.state.legacy.Address.Builder getAddressesBuilder(
int index) {
return getAddressesFieldBuilder().getBuilder(index);
}
/**
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
*
* repeated .com.hedera.hapi.platform.state.Address addresses = 3;
*/
public com.hedera.hapi.platform.state.legacy.AddressOrBuilder getAddressesOrBuilder(
int index) {
if (addressesBuilder_ == null) {
return addresses_.get(index); } else {
return addressesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
**
* A list of all consensus node addresses.
* <p>
* This list SHALL NOT be empty.
* If a consensus node is not in this list it SHALL NOT participate in the
* network.
*
*
* repeated .com.hedera.hapi.platform.state.Address addresses = 3;
*/
public java.util.List
getAddressesBuilderList() {
return getAddressesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hapi.platform.state.legacy.Address, com.hedera.hapi.platform.state.legacy.Address.Builder, com.hedera.hapi.platform.state.legacy.AddressOrBuilder>
getAddressesFieldBuilder() {
if (addressesBuilder_ == null) {
addressesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hapi.platform.state.legacy.Address, com.hedera.hapi.platform.state.legacy.Address.Builder, com.hedera.hapi.platform.state.legacy.AddressOrBuilder>(
addresses_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
addresses_ = null;
}
return addressesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.hedera.hapi.platform.state.AddressBook)
}
// @@protoc_insertion_point(class_scope:com.hedera.hapi.platform.state.AddressBook)
private static final com.hedera.hapi.platform.state.legacy.AddressBook DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hapi.platform.state.legacy.AddressBook();
}
public static com.hedera.hapi.platform.state.legacy.AddressBook getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AddressBook parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AddressBook(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hedera.hapi.platform.state.legacy.AddressBook getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}