org.hyperledger.fabric.protos.peer.AnchorPeers Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: peer/configuration.proto
// Protobuf Java Version: 4.28.2
package org.hyperledger.fabric.protos.peer;
/**
*
* AnchorPeers simply represents list of anchor peers which is used in ConfigurationItem
*
*
* Protobuf type {@code protos.AnchorPeers}
*/
public final class AnchorPeers extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:protos.AnchorPeers)
AnchorPeersOrBuilder {
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= */ "",
AnchorPeers.class.getName());
}
// Use AnchorPeers.newBuilder() to construct.
private AnchorPeers(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private AnchorPeers() {
anchorPeers_ = java.util.Collections.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.peer.ConfigurationProto.internal_static_protos_AnchorPeers_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.peer.ConfigurationProto.internal_static_protos_AnchorPeers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.peer.AnchorPeers.class, org.hyperledger.fabric.protos.peer.AnchorPeers.Builder.class);
}
public static final int ANCHOR_PEERS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List anchorPeers_;
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
@java.lang.Override
public java.util.List getAnchorPeersList() {
return anchorPeers_;
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
@java.lang.Override
public java.util.List extends org.hyperledger.fabric.protos.peer.AnchorPeerOrBuilder>
getAnchorPeersOrBuilderList() {
return anchorPeers_;
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
@java.lang.Override
public int getAnchorPeersCount() {
return anchorPeers_.size();
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.AnchorPeer getAnchorPeers(int index) {
return anchorPeers_.get(index);
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.AnchorPeerOrBuilder getAnchorPeersOrBuilder(
int index) {
return anchorPeers_.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 < anchorPeers_.size(); i++) {
output.writeMessage(1, anchorPeers_.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 < anchorPeers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, anchorPeers_.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.peer.AnchorPeers)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.peer.AnchorPeers other = (org.hyperledger.fabric.protos.peer.AnchorPeers) obj;
if (!getAnchorPeersList()
.equals(other.getAnchorPeersList())) 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 (getAnchorPeersCount() > 0) {
hash = (37 * hash) + ANCHOR_PEERS_FIELD_NUMBER;
hash = (53 * hash) + getAnchorPeersList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.peer.AnchorPeers parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.AnchorPeers 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.peer.AnchorPeers parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.AnchorPeers 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.peer.AnchorPeers parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.AnchorPeers parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.peer.AnchorPeers parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.AnchorPeers 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.peer.AnchorPeers parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.AnchorPeers 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.peer.AnchorPeers parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.AnchorPeers 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.peer.AnchorPeers 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;
}
/**
*
* AnchorPeers simply represents list of anchor peers which is used in ConfigurationItem
*
*
* Protobuf type {@code protos.AnchorPeers}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:protos.AnchorPeers)
org.hyperledger.fabric.protos.peer.AnchorPeersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.peer.ConfigurationProto.internal_static_protos_AnchorPeers_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.peer.ConfigurationProto.internal_static_protos_AnchorPeers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.peer.AnchorPeers.class, org.hyperledger.fabric.protos.peer.AnchorPeers.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.peer.AnchorPeers.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (anchorPeersBuilder_ == null) {
anchorPeers_ = java.util.Collections.emptyList();
} else {
anchorPeers_ = null;
anchorPeersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.peer.ConfigurationProto.internal_static_protos_AnchorPeers_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.AnchorPeers getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.peer.AnchorPeers.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.AnchorPeers build() {
org.hyperledger.fabric.protos.peer.AnchorPeers result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.AnchorPeers buildPartial() {
org.hyperledger.fabric.protos.peer.AnchorPeers result = new org.hyperledger.fabric.protos.peer.AnchorPeers(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.hyperledger.fabric.protos.peer.AnchorPeers result) {
if (anchorPeersBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
anchorPeers_ = java.util.Collections.unmodifiableList(anchorPeers_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.anchorPeers_ = anchorPeers_;
} else {
result.anchorPeers_ = anchorPeersBuilder_.build();
}
}
private void buildPartial0(org.hyperledger.fabric.protos.peer.AnchorPeers result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.peer.AnchorPeers) {
return mergeFrom((org.hyperledger.fabric.protos.peer.AnchorPeers)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.AnchorPeers other) {
if (other == org.hyperledger.fabric.protos.peer.AnchorPeers.getDefaultInstance()) return this;
if (anchorPeersBuilder_ == null) {
if (!other.anchorPeers_.isEmpty()) {
if (anchorPeers_.isEmpty()) {
anchorPeers_ = other.anchorPeers_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAnchorPeersIsMutable();
anchorPeers_.addAll(other.anchorPeers_);
}
onChanged();
}
} else {
if (!other.anchorPeers_.isEmpty()) {
if (anchorPeersBuilder_.isEmpty()) {
anchorPeersBuilder_.dispose();
anchorPeersBuilder_ = null;
anchorPeers_ = other.anchorPeers_;
bitField0_ = (bitField0_ & ~0x00000001);
anchorPeersBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getAnchorPeersFieldBuilder() : null;
} else {
anchorPeersBuilder_.addAllMessages(other.anchorPeers_);
}
}
}
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.peer.AnchorPeer m =
input.readMessage(
org.hyperledger.fabric.protos.peer.AnchorPeer.parser(),
extensionRegistry);
if (anchorPeersBuilder_ == null) {
ensureAnchorPeersIsMutable();
anchorPeers_.add(m);
} else {
anchorPeersBuilder_.addMessage(m);
}
break;
} // case 10
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 anchorPeers_ =
java.util.Collections.emptyList();
private void ensureAnchorPeersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
anchorPeers_ = new java.util.ArrayList(anchorPeers_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.hyperledger.fabric.protos.peer.AnchorPeer, org.hyperledger.fabric.protos.peer.AnchorPeer.Builder, org.hyperledger.fabric.protos.peer.AnchorPeerOrBuilder> anchorPeersBuilder_;
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
public java.util.List getAnchorPeersList() {
if (anchorPeersBuilder_ == null) {
return java.util.Collections.unmodifiableList(anchorPeers_);
} else {
return anchorPeersBuilder_.getMessageList();
}
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
public int getAnchorPeersCount() {
if (anchorPeersBuilder_ == null) {
return anchorPeers_.size();
} else {
return anchorPeersBuilder_.getCount();
}
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
public org.hyperledger.fabric.protos.peer.AnchorPeer getAnchorPeers(int index) {
if (anchorPeersBuilder_ == null) {
return anchorPeers_.get(index);
} else {
return anchorPeersBuilder_.getMessage(index);
}
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
public Builder setAnchorPeers(
int index, org.hyperledger.fabric.protos.peer.AnchorPeer value) {
if (anchorPeersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAnchorPeersIsMutable();
anchorPeers_.set(index, value);
onChanged();
} else {
anchorPeersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
public Builder setAnchorPeers(
int index, org.hyperledger.fabric.protos.peer.AnchorPeer.Builder builderForValue) {
if (anchorPeersBuilder_ == null) {
ensureAnchorPeersIsMutable();
anchorPeers_.set(index, builderForValue.build());
onChanged();
} else {
anchorPeersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
public Builder addAnchorPeers(org.hyperledger.fabric.protos.peer.AnchorPeer value) {
if (anchorPeersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAnchorPeersIsMutable();
anchorPeers_.add(value);
onChanged();
} else {
anchorPeersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
public Builder addAnchorPeers(
int index, org.hyperledger.fabric.protos.peer.AnchorPeer value) {
if (anchorPeersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAnchorPeersIsMutable();
anchorPeers_.add(index, value);
onChanged();
} else {
anchorPeersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
public Builder addAnchorPeers(
org.hyperledger.fabric.protos.peer.AnchorPeer.Builder builderForValue) {
if (anchorPeersBuilder_ == null) {
ensureAnchorPeersIsMutable();
anchorPeers_.add(builderForValue.build());
onChanged();
} else {
anchorPeersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
public Builder addAnchorPeers(
int index, org.hyperledger.fabric.protos.peer.AnchorPeer.Builder builderForValue) {
if (anchorPeersBuilder_ == null) {
ensureAnchorPeersIsMutable();
anchorPeers_.add(index, builderForValue.build());
onChanged();
} else {
anchorPeersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
public Builder addAllAnchorPeers(
java.lang.Iterable extends org.hyperledger.fabric.protos.peer.AnchorPeer> values) {
if (anchorPeersBuilder_ == null) {
ensureAnchorPeersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, anchorPeers_);
onChanged();
} else {
anchorPeersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
public Builder clearAnchorPeers() {
if (anchorPeersBuilder_ == null) {
anchorPeers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
anchorPeersBuilder_.clear();
}
return this;
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
public Builder removeAnchorPeers(int index) {
if (anchorPeersBuilder_ == null) {
ensureAnchorPeersIsMutable();
anchorPeers_.remove(index);
onChanged();
} else {
anchorPeersBuilder_.remove(index);
}
return this;
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
public org.hyperledger.fabric.protos.peer.AnchorPeer.Builder getAnchorPeersBuilder(
int index) {
return getAnchorPeersFieldBuilder().getBuilder(index);
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
public org.hyperledger.fabric.protos.peer.AnchorPeerOrBuilder getAnchorPeersOrBuilder(
int index) {
if (anchorPeersBuilder_ == null) {
return anchorPeers_.get(index); } else {
return anchorPeersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
public java.util.List extends org.hyperledger.fabric.protos.peer.AnchorPeerOrBuilder>
getAnchorPeersOrBuilderList() {
if (anchorPeersBuilder_ != null) {
return anchorPeersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(anchorPeers_);
}
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
public org.hyperledger.fabric.protos.peer.AnchorPeer.Builder addAnchorPeersBuilder() {
return getAnchorPeersFieldBuilder().addBuilder(
org.hyperledger.fabric.protos.peer.AnchorPeer.getDefaultInstance());
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
public org.hyperledger.fabric.protos.peer.AnchorPeer.Builder addAnchorPeersBuilder(
int index) {
return getAnchorPeersFieldBuilder().addBuilder(
index, org.hyperledger.fabric.protos.peer.AnchorPeer.getDefaultInstance());
}
/**
* repeated .protos.AnchorPeer anchor_peers = 1 [json_name = "anchorPeers"];
*/
public java.util.List
getAnchorPeersBuilderList() {
return getAnchorPeersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.hyperledger.fabric.protos.peer.AnchorPeer, org.hyperledger.fabric.protos.peer.AnchorPeer.Builder, org.hyperledger.fabric.protos.peer.AnchorPeerOrBuilder>
getAnchorPeersFieldBuilder() {
if (anchorPeersBuilder_ == null) {
anchorPeersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.hyperledger.fabric.protos.peer.AnchorPeer, org.hyperledger.fabric.protos.peer.AnchorPeer.Builder, org.hyperledger.fabric.protos.peer.AnchorPeerOrBuilder>(
anchorPeers_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
anchorPeers_ = null;
}
return anchorPeersBuilder_;
}
// @@protoc_insertion_point(builder_scope:protos.AnchorPeers)
}
// @@protoc_insertion_point(class_scope:protos.AnchorPeers)
private static final org.hyperledger.fabric.protos.peer.AnchorPeers DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.AnchorPeers();
}
public static org.hyperledger.fabric.protos.peer.AnchorPeers getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AnchorPeers 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.peer.AnchorPeers getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy