org.hyperledger.fabric.protos.gossip.MembershipResponse Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: gossip/message.proto
// Protobuf Java Version: 4.28.2
package org.hyperledger.fabric.protos.gossip;
/**
*
* MembershipResponse is used for replying to MembershipRequests
*
*
* Protobuf type {@code gossip.MembershipResponse}
*/
public final class MembershipResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:gossip.MembershipResponse)
MembershipResponseOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
MembershipResponse.class.getName());
}
// Use MembershipResponse.newBuilder() to construct.
private MembershipResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private MembershipResponse() {
alive_ = java.util.Collections.emptyList();
dead_ = java.util.Collections.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.gossip.MessageProto.internal_static_gossip_MembershipResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.gossip.MessageProto.internal_static_gossip_MembershipResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.gossip.MembershipResponse.class, org.hyperledger.fabric.protos.gossip.MembershipResponse.Builder.class);
}
public static final int ALIVE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List alive_;
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
@java.lang.Override
public java.util.List getAliveList() {
return alive_;
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
@java.lang.Override
public java.util.List extends org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder>
getAliveOrBuilderList() {
return alive_;
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
@java.lang.Override
public int getAliveCount() {
return alive_.size();
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.gossip.Envelope getAlive(int index) {
return alive_.get(index);
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder getAliveOrBuilder(
int index) {
return alive_.get(index);
}
public static final int DEAD_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List dead_;
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
@java.lang.Override
public java.util.List getDeadList() {
return dead_;
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
@java.lang.Override
public java.util.List extends org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder>
getDeadOrBuilderList() {
return dead_;
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
@java.lang.Override
public int getDeadCount() {
return dead_.size();
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.gossip.Envelope getDead(int index) {
return dead_.get(index);
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder getDeadOrBuilder(
int index) {
return dead_.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 {
for (int i = 0; i < alive_.size(); i++) {
output.writeMessage(1, alive_.get(i));
}
for (int i = 0; i < dead_.size(); i++) {
output.writeMessage(2, dead_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < alive_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, alive_.get(i));
}
for (int i = 0; i < dead_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, dead_.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 org.hyperledger.fabric.protos.gossip.MembershipResponse)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.gossip.MembershipResponse other = (org.hyperledger.fabric.protos.gossip.MembershipResponse) obj;
if (!getAliveList()
.equals(other.getAliveList())) return false;
if (!getDeadList()
.equals(other.getDeadList())) 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 (getAliveCount() > 0) {
hash = (37 * hash) + ALIVE_FIELD_NUMBER;
hash = (53 * hash) + getAliveList().hashCode();
}
if (getDeadCount() > 0) {
hash = (37 * hash) + DEAD_FIELD_NUMBER;
hash = (53 * hash) + getDeadList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.gossip.MembershipResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.gossip.MembershipResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.gossip.MembershipResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.gossip.MembershipResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.gossip.MembershipResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.gossip.MembershipResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.gossip.MembershipResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.gossip.MembershipResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.gossip.MembershipResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.gossip.MembershipResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.gossip.MembershipResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.gossip.MembershipResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.MembershipResponse 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* MembershipResponse is used for replying to MembershipRequests
*
*
* Protobuf type {@code gossip.MembershipResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:gossip.MembershipResponse)
org.hyperledger.fabric.protos.gossip.MembershipResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.gossip.MessageProto.internal_static_gossip_MembershipResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.gossip.MessageProto.internal_static_gossip_MembershipResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.gossip.MembershipResponse.class, org.hyperledger.fabric.protos.gossip.MembershipResponse.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.gossip.MembershipResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (aliveBuilder_ == null) {
alive_ = java.util.Collections.emptyList();
} else {
alive_ = null;
aliveBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (deadBuilder_ == null) {
dead_ = java.util.Collections.emptyList();
} else {
dead_ = null;
deadBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.gossip.MessageProto.internal_static_gossip_MembershipResponse_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.gossip.MembershipResponse getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.gossip.MembershipResponse.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.gossip.MembershipResponse build() {
org.hyperledger.fabric.protos.gossip.MembershipResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.gossip.MembershipResponse buildPartial() {
org.hyperledger.fabric.protos.gossip.MembershipResponse result = new org.hyperledger.fabric.protos.gossip.MembershipResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.hyperledger.fabric.protos.gossip.MembershipResponse result) {
if (aliveBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
alive_ = java.util.Collections.unmodifiableList(alive_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.alive_ = alive_;
} else {
result.alive_ = aliveBuilder_.build();
}
if (deadBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
dead_ = java.util.Collections.unmodifiableList(dead_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.dead_ = dead_;
} else {
result.dead_ = deadBuilder_.build();
}
}
private void buildPartial0(org.hyperledger.fabric.protos.gossip.MembershipResponse result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.gossip.MembershipResponse) {
return mergeFrom((org.hyperledger.fabric.protos.gossip.MembershipResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.MembershipResponse other) {
if (other == org.hyperledger.fabric.protos.gossip.MembershipResponse.getDefaultInstance()) return this;
if (aliveBuilder_ == null) {
if (!other.alive_.isEmpty()) {
if (alive_.isEmpty()) {
alive_ = other.alive_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAliveIsMutable();
alive_.addAll(other.alive_);
}
onChanged();
}
} else {
if (!other.alive_.isEmpty()) {
if (aliveBuilder_.isEmpty()) {
aliveBuilder_.dispose();
aliveBuilder_ = null;
alive_ = other.alive_;
bitField0_ = (bitField0_ & ~0x00000001);
aliveBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getAliveFieldBuilder() : null;
} else {
aliveBuilder_.addAllMessages(other.alive_);
}
}
}
if (deadBuilder_ == null) {
if (!other.dead_.isEmpty()) {
if (dead_.isEmpty()) {
dead_ = other.dead_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDeadIsMutable();
dead_.addAll(other.dead_);
}
onChanged();
}
} else {
if (!other.dead_.isEmpty()) {
if (deadBuilder_.isEmpty()) {
deadBuilder_.dispose();
deadBuilder_ = null;
dead_ = other.dead_;
bitField0_ = (bitField0_ & ~0x00000002);
deadBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getDeadFieldBuilder() : null;
} else {
deadBuilder_.addAllMessages(other.dead_);
}
}
}
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: {
org.hyperledger.fabric.protos.gossip.Envelope m =
input.readMessage(
org.hyperledger.fabric.protos.gossip.Envelope.parser(),
extensionRegistry);
if (aliveBuilder_ == null) {
ensureAliveIsMutable();
alive_.add(m);
} else {
aliveBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
org.hyperledger.fabric.protos.gossip.Envelope m =
input.readMessage(
org.hyperledger.fabric.protos.gossip.Envelope.parser(),
extensionRegistry);
if (deadBuilder_ == null) {
ensureDeadIsMutable();
dead_.add(m);
} else {
deadBuilder_.addMessage(m);
}
break;
} // case 18
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 alive_ =
java.util.Collections.emptyList();
private void ensureAliveIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
alive_ = new java.util.ArrayList(alive_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.hyperledger.fabric.protos.gossip.Envelope, org.hyperledger.fabric.protos.gossip.Envelope.Builder, org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder> aliveBuilder_;
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
public java.util.List getAliveList() {
if (aliveBuilder_ == null) {
return java.util.Collections.unmodifiableList(alive_);
} else {
return aliveBuilder_.getMessageList();
}
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
public int getAliveCount() {
if (aliveBuilder_ == null) {
return alive_.size();
} else {
return aliveBuilder_.getCount();
}
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
public org.hyperledger.fabric.protos.gossip.Envelope getAlive(int index) {
if (aliveBuilder_ == null) {
return alive_.get(index);
} else {
return aliveBuilder_.getMessage(index);
}
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
public Builder setAlive(
int index, org.hyperledger.fabric.protos.gossip.Envelope value) {
if (aliveBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAliveIsMutable();
alive_.set(index, value);
onChanged();
} else {
aliveBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
public Builder setAlive(
int index, org.hyperledger.fabric.protos.gossip.Envelope.Builder builderForValue) {
if (aliveBuilder_ == null) {
ensureAliveIsMutable();
alive_.set(index, builderForValue.build());
onChanged();
} else {
aliveBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
public Builder addAlive(org.hyperledger.fabric.protos.gossip.Envelope value) {
if (aliveBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAliveIsMutable();
alive_.add(value);
onChanged();
} else {
aliveBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
public Builder addAlive(
int index, org.hyperledger.fabric.protos.gossip.Envelope value) {
if (aliveBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAliveIsMutable();
alive_.add(index, value);
onChanged();
} else {
aliveBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
public Builder addAlive(
org.hyperledger.fabric.protos.gossip.Envelope.Builder builderForValue) {
if (aliveBuilder_ == null) {
ensureAliveIsMutable();
alive_.add(builderForValue.build());
onChanged();
} else {
aliveBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
public Builder addAlive(
int index, org.hyperledger.fabric.protos.gossip.Envelope.Builder builderForValue) {
if (aliveBuilder_ == null) {
ensureAliveIsMutable();
alive_.add(index, builderForValue.build());
onChanged();
} else {
aliveBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
public Builder addAllAlive(
java.lang.Iterable extends org.hyperledger.fabric.protos.gossip.Envelope> values) {
if (aliveBuilder_ == null) {
ensureAliveIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, alive_);
onChanged();
} else {
aliveBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
public Builder clearAlive() {
if (aliveBuilder_ == null) {
alive_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
aliveBuilder_.clear();
}
return this;
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
public Builder removeAlive(int index) {
if (aliveBuilder_ == null) {
ensureAliveIsMutable();
alive_.remove(index);
onChanged();
} else {
aliveBuilder_.remove(index);
}
return this;
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
public org.hyperledger.fabric.protos.gossip.Envelope.Builder getAliveBuilder(
int index) {
return getAliveFieldBuilder().getBuilder(index);
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
public org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder getAliveOrBuilder(
int index) {
if (aliveBuilder_ == null) {
return alive_.get(index); } else {
return aliveBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
public java.util.List extends org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder>
getAliveOrBuilderList() {
if (aliveBuilder_ != null) {
return aliveBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(alive_);
}
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
public org.hyperledger.fabric.protos.gossip.Envelope.Builder addAliveBuilder() {
return getAliveFieldBuilder().addBuilder(
org.hyperledger.fabric.protos.gossip.Envelope.getDefaultInstance());
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
public org.hyperledger.fabric.protos.gossip.Envelope.Builder addAliveBuilder(
int index) {
return getAliveFieldBuilder().addBuilder(
index, org.hyperledger.fabric.protos.gossip.Envelope.getDefaultInstance());
}
/**
* repeated .gossip.Envelope alive = 1 [json_name = "alive"];
*/
public java.util.List
getAliveBuilderList() {
return getAliveFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.hyperledger.fabric.protos.gossip.Envelope, org.hyperledger.fabric.protos.gossip.Envelope.Builder, org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder>
getAliveFieldBuilder() {
if (aliveBuilder_ == null) {
aliveBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.hyperledger.fabric.protos.gossip.Envelope, org.hyperledger.fabric.protos.gossip.Envelope.Builder, org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder>(
alive_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
alive_ = null;
}
return aliveBuilder_;
}
private java.util.List dead_ =
java.util.Collections.emptyList();
private void ensureDeadIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
dead_ = new java.util.ArrayList(dead_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.hyperledger.fabric.protos.gossip.Envelope, org.hyperledger.fabric.protos.gossip.Envelope.Builder, org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder> deadBuilder_;
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
public java.util.List getDeadList() {
if (deadBuilder_ == null) {
return java.util.Collections.unmodifiableList(dead_);
} else {
return deadBuilder_.getMessageList();
}
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
public int getDeadCount() {
if (deadBuilder_ == null) {
return dead_.size();
} else {
return deadBuilder_.getCount();
}
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
public org.hyperledger.fabric.protos.gossip.Envelope getDead(int index) {
if (deadBuilder_ == null) {
return dead_.get(index);
} else {
return deadBuilder_.getMessage(index);
}
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
public Builder setDead(
int index, org.hyperledger.fabric.protos.gossip.Envelope value) {
if (deadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeadIsMutable();
dead_.set(index, value);
onChanged();
} else {
deadBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
public Builder setDead(
int index, org.hyperledger.fabric.protos.gossip.Envelope.Builder builderForValue) {
if (deadBuilder_ == null) {
ensureDeadIsMutable();
dead_.set(index, builderForValue.build());
onChanged();
} else {
deadBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
public Builder addDead(org.hyperledger.fabric.protos.gossip.Envelope value) {
if (deadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeadIsMutable();
dead_.add(value);
onChanged();
} else {
deadBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
public Builder addDead(
int index, org.hyperledger.fabric.protos.gossip.Envelope value) {
if (deadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeadIsMutable();
dead_.add(index, value);
onChanged();
} else {
deadBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
public Builder addDead(
org.hyperledger.fabric.protos.gossip.Envelope.Builder builderForValue) {
if (deadBuilder_ == null) {
ensureDeadIsMutable();
dead_.add(builderForValue.build());
onChanged();
} else {
deadBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
public Builder addDead(
int index, org.hyperledger.fabric.protos.gossip.Envelope.Builder builderForValue) {
if (deadBuilder_ == null) {
ensureDeadIsMutable();
dead_.add(index, builderForValue.build());
onChanged();
} else {
deadBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
public Builder addAllDead(
java.lang.Iterable extends org.hyperledger.fabric.protos.gossip.Envelope> values) {
if (deadBuilder_ == null) {
ensureDeadIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, dead_);
onChanged();
} else {
deadBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
public Builder clearDead() {
if (deadBuilder_ == null) {
dead_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
deadBuilder_.clear();
}
return this;
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
public Builder removeDead(int index) {
if (deadBuilder_ == null) {
ensureDeadIsMutable();
dead_.remove(index);
onChanged();
} else {
deadBuilder_.remove(index);
}
return this;
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
public org.hyperledger.fabric.protos.gossip.Envelope.Builder getDeadBuilder(
int index) {
return getDeadFieldBuilder().getBuilder(index);
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
public org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder getDeadOrBuilder(
int index) {
if (deadBuilder_ == null) {
return dead_.get(index); } else {
return deadBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
public java.util.List extends org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder>
getDeadOrBuilderList() {
if (deadBuilder_ != null) {
return deadBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(dead_);
}
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
public org.hyperledger.fabric.protos.gossip.Envelope.Builder addDeadBuilder() {
return getDeadFieldBuilder().addBuilder(
org.hyperledger.fabric.protos.gossip.Envelope.getDefaultInstance());
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
public org.hyperledger.fabric.protos.gossip.Envelope.Builder addDeadBuilder(
int index) {
return getDeadFieldBuilder().addBuilder(
index, org.hyperledger.fabric.protos.gossip.Envelope.getDefaultInstance());
}
/**
* repeated .gossip.Envelope dead = 2 [json_name = "dead"];
*/
public java.util.List
getDeadBuilderList() {
return getDeadFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.hyperledger.fabric.protos.gossip.Envelope, org.hyperledger.fabric.protos.gossip.Envelope.Builder, org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder>
getDeadFieldBuilder() {
if (deadBuilder_ == null) {
deadBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.hyperledger.fabric.protos.gossip.Envelope, org.hyperledger.fabric.protos.gossip.Envelope.Builder, org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder>(
dead_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
dead_ = null;
}
return deadBuilder_;
}
// @@protoc_insertion_point(builder_scope:gossip.MembershipResponse)
}
// @@protoc_insertion_point(class_scope:gossip.MembershipResponse)
private static final org.hyperledger.fabric.protos.gossip.MembershipResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.MembershipResponse();
}
public static org.hyperledger.fabric.protos.gossip.MembershipResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MembershipResponse 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 org.hyperledger.fabric.protos.gossip.MembershipResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy