org.hyperledger.fabric.protos.common.StaticCollectionConfig Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: common/collection.proto
// Protobuf Java Version: 4.28.2
package org.hyperledger.fabric.protos.common;
/**
*
* StaticCollectionConfig constitutes the configuration parameters of a
* static collection object. Static collections are collections that are
* known at chaincode instantiation time, and that cannot be changed.
* Dynamic collections are deferred.
*
*
* Protobuf type {@code common.StaticCollectionConfig}
*/
@java.lang.Deprecated public final class StaticCollectionConfig extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:common.StaticCollectionConfig)
StaticCollectionConfigOrBuilder {
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= */ "",
StaticCollectionConfig.class.getName());
}
// Use StaticCollectionConfig.newBuilder() to construct.
private StaticCollectionConfig(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private StaticCollectionConfig() {
name_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.CollectionProto.internal_static_common_StaticCollectionConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.CollectionProto.internal_static_common_StaticCollectionConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.StaticCollectionConfig.class, org.hyperledger.fabric.protos.common.StaticCollectionConfig.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* the name of the collection inside the denoted chaincode
*
*
* string name = 1 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* the name of the collection inside the denoted chaincode
*
*
* string name = 1 [json_name = "name"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MEMBER_ORGS_POLICY_FIELD_NUMBER = 2;
private org.hyperledger.fabric.protos.common.CollectionPolicyConfig memberOrgsPolicy_;
/**
*
* a reference to a policy residing / managed in the config block
* to define which orgs have access to this collection’s private data
*
*
* .common.CollectionPolicyConfig member_orgs_policy = 2 [json_name = "memberOrgsPolicy"];
* @return Whether the memberOrgsPolicy field is set.
*/
@java.lang.Override
public boolean hasMemberOrgsPolicy() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* a reference to a policy residing / managed in the config block
* to define which orgs have access to this collection’s private data
*
*
* .common.CollectionPolicyConfig member_orgs_policy = 2 [json_name = "memberOrgsPolicy"];
* @return The memberOrgsPolicy.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.common.CollectionPolicyConfig getMemberOrgsPolicy() {
return memberOrgsPolicy_ == null ? org.hyperledger.fabric.protos.common.CollectionPolicyConfig.getDefaultInstance() : memberOrgsPolicy_;
}
/**
*
* a reference to a policy residing / managed in the config block
* to define which orgs have access to this collection’s private data
*
*
* .common.CollectionPolicyConfig member_orgs_policy = 2 [json_name = "memberOrgsPolicy"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.common.CollectionPolicyConfigOrBuilder getMemberOrgsPolicyOrBuilder() {
return memberOrgsPolicy_ == null ? org.hyperledger.fabric.protos.common.CollectionPolicyConfig.getDefaultInstance() : memberOrgsPolicy_;
}
public static final int REQUIRED_PEER_COUNT_FIELD_NUMBER = 3;
private int requiredPeerCount_ = 0;
/**
*
* The minimum number of peers private data will be sent to upon
* endorsement. The endorsement would fail if dissemination to at least
* this number of peers is not achieved.
*
*
* int32 required_peer_count = 3 [json_name = "requiredPeerCount"];
* @return The requiredPeerCount.
*/
@java.lang.Override
public int getRequiredPeerCount() {
return requiredPeerCount_;
}
public static final int MAXIMUM_PEER_COUNT_FIELD_NUMBER = 4;
private int maximumPeerCount_ = 0;
/**
*
* The maximum number of peers that private data will be sent to
* upon endorsement. This number has to be bigger than required_peer_count.
*
*
* int32 maximum_peer_count = 4 [json_name = "maximumPeerCount"];
* @return The maximumPeerCount.
*/
@java.lang.Override
public int getMaximumPeerCount() {
return maximumPeerCount_;
}
public static final int BLOCK_TO_LIVE_FIELD_NUMBER = 5;
private long blockToLive_ = 0L;
/**
*
* The number of blocks after which the collection data expires.
* For instance if the value is set to 10, a key last modified by block number 100
* will be purged at block number 111. A zero value is treated same as MaxUint64
*
*
* uint64 block_to_live = 5 [json_name = "blockToLive"];
* @return The blockToLive.
*/
@java.lang.Override
public long getBlockToLive() {
return blockToLive_;
}
public static final int MEMBER_ONLY_READ_FIELD_NUMBER = 6;
private boolean memberOnlyRead_ = false;
/**
*
* The member only read access denotes whether only collection member clients
* can read the private data (if set to true), or even non members can
* read the data (if set to false, for example if you want to implement more granular
* access logic in the chaincode)
*
*
* bool member_only_read = 6 [json_name = "memberOnlyRead"];
* @return The memberOnlyRead.
*/
@java.lang.Override
public boolean getMemberOnlyRead() {
return memberOnlyRead_;
}
public static final int MEMBER_ONLY_WRITE_FIELD_NUMBER = 7;
private boolean memberOnlyWrite_ = false;
/**
*
* The member only write access denotes whether only collection member clients
* can write the private data (if set to true), or even non members can
* write the data (if set to false, for example if you want to implement more granular
* access logic in the chaincode)
*
*
* bool member_only_write = 7 [json_name = "memberOnlyWrite"];
* @return The memberOnlyWrite.
*/
@java.lang.Override
public boolean getMemberOnlyWrite() {
return memberOnlyWrite_;
}
public static final int ENDORSEMENT_POLICY_FIELD_NUMBER = 8;
private org.hyperledger.fabric.protos.common.ApplicationPolicy endorsementPolicy_;
/**
*
* a reference to a policy residing / managed in the config block
* to define the endorsement policy for this collection
*
*
* .common.ApplicationPolicy endorsement_policy = 8 [json_name = "endorsementPolicy"];
* @return Whether the endorsementPolicy field is set.
*/
@java.lang.Override
public boolean hasEndorsementPolicy() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* a reference to a policy residing / managed in the config block
* to define the endorsement policy for this collection
*
*
* .common.ApplicationPolicy endorsement_policy = 8 [json_name = "endorsementPolicy"];
* @return The endorsementPolicy.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.common.ApplicationPolicy getEndorsementPolicy() {
return endorsementPolicy_ == null ? org.hyperledger.fabric.protos.common.ApplicationPolicy.getDefaultInstance() : endorsementPolicy_;
}
/**
*
* a reference to a policy residing / managed in the config block
* to define the endorsement policy for this collection
*
*
* .common.ApplicationPolicy endorsement_policy = 8 [json_name = "endorsementPolicy"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.common.ApplicationPolicyOrBuilder getEndorsementPolicyOrBuilder() {
return endorsementPolicy_ == null ? org.hyperledger.fabric.protos.common.ApplicationPolicy.getDefaultInstance() : endorsementPolicy_;
}
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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getMemberOrgsPolicy());
}
if (requiredPeerCount_ != 0) {
output.writeInt32(3, requiredPeerCount_);
}
if (maximumPeerCount_ != 0) {
output.writeInt32(4, maximumPeerCount_);
}
if (blockToLive_ != 0L) {
output.writeUInt64(5, blockToLive_);
}
if (memberOnlyRead_ != false) {
output.writeBool(6, memberOnlyRead_);
}
if (memberOnlyWrite_ != false) {
output.writeBool(7, memberOnlyWrite_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(8, getEndorsementPolicy());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMemberOrgsPolicy());
}
if (requiredPeerCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, requiredPeerCount_);
}
if (maximumPeerCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, maximumPeerCount_);
}
if (blockToLive_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, blockToLive_);
}
if (memberOnlyRead_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, memberOnlyRead_);
}
if (memberOnlyWrite_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, memberOnlyWrite_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getEndorsementPolicy());
}
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.common.StaticCollectionConfig)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.common.StaticCollectionConfig other = (org.hyperledger.fabric.protos.common.StaticCollectionConfig) obj;
if (!getName()
.equals(other.getName())) return false;
if (hasMemberOrgsPolicy() != other.hasMemberOrgsPolicy()) return false;
if (hasMemberOrgsPolicy()) {
if (!getMemberOrgsPolicy()
.equals(other.getMemberOrgsPolicy())) return false;
}
if (getRequiredPeerCount()
!= other.getRequiredPeerCount()) return false;
if (getMaximumPeerCount()
!= other.getMaximumPeerCount()) return false;
if (getBlockToLive()
!= other.getBlockToLive()) return false;
if (getMemberOnlyRead()
!= other.getMemberOnlyRead()) return false;
if (getMemberOnlyWrite()
!= other.getMemberOnlyWrite()) return false;
if (hasEndorsementPolicy() != other.hasEndorsementPolicy()) return false;
if (hasEndorsementPolicy()) {
if (!getEndorsementPolicy()
.equals(other.getEndorsementPolicy())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasMemberOrgsPolicy()) {
hash = (37 * hash) + MEMBER_ORGS_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getMemberOrgsPolicy().hashCode();
}
hash = (37 * hash) + REQUIRED_PEER_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getRequiredPeerCount();
hash = (37 * hash) + MAXIMUM_PEER_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getMaximumPeerCount();
hash = (37 * hash) + BLOCK_TO_LIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBlockToLive());
hash = (37 * hash) + MEMBER_ONLY_READ_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getMemberOnlyRead());
hash = (37 * hash) + MEMBER_ONLY_WRITE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getMemberOnlyWrite());
if (hasEndorsementPolicy()) {
hash = (37 * hash) + ENDORSEMENT_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getEndorsementPolicy().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.common.StaticCollectionConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.StaticCollectionConfig 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.common.StaticCollectionConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.StaticCollectionConfig 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.common.StaticCollectionConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.StaticCollectionConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.StaticCollectionConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.StaticCollectionConfig 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.common.StaticCollectionConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.StaticCollectionConfig 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.common.StaticCollectionConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.StaticCollectionConfig 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.common.StaticCollectionConfig 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;
}
/**
*
* StaticCollectionConfig constitutes the configuration parameters of a
* static collection object. Static collections are collections that are
* known at chaincode instantiation time, and that cannot be changed.
* Dynamic collections are deferred.
*
*
* Protobuf type {@code common.StaticCollectionConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:common.StaticCollectionConfig)
org.hyperledger.fabric.protos.common.StaticCollectionConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.CollectionProto.internal_static_common_StaticCollectionConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.CollectionProto.internal_static_common_StaticCollectionConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.StaticCollectionConfig.class, org.hyperledger.fabric.protos.common.StaticCollectionConfig.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.common.StaticCollectionConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getMemberOrgsPolicyFieldBuilder();
getEndorsementPolicyFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
memberOrgsPolicy_ = null;
if (memberOrgsPolicyBuilder_ != null) {
memberOrgsPolicyBuilder_.dispose();
memberOrgsPolicyBuilder_ = null;
}
requiredPeerCount_ = 0;
maximumPeerCount_ = 0;
blockToLive_ = 0L;
memberOnlyRead_ = false;
memberOnlyWrite_ = false;
endorsementPolicy_ = null;
if (endorsementPolicyBuilder_ != null) {
endorsementPolicyBuilder_.dispose();
endorsementPolicyBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.common.CollectionProto.internal_static_common_StaticCollectionConfig_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.StaticCollectionConfig getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.common.StaticCollectionConfig.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.StaticCollectionConfig build() {
org.hyperledger.fabric.protos.common.StaticCollectionConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.StaticCollectionConfig buildPartial() {
org.hyperledger.fabric.protos.common.StaticCollectionConfig result = new org.hyperledger.fabric.protos.common.StaticCollectionConfig(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.hyperledger.fabric.protos.common.StaticCollectionConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.memberOrgsPolicy_ = memberOrgsPolicyBuilder_ == null
? memberOrgsPolicy_
: memberOrgsPolicyBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.requiredPeerCount_ = requiredPeerCount_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.maximumPeerCount_ = maximumPeerCount_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.blockToLive_ = blockToLive_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.memberOnlyRead_ = memberOnlyRead_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.memberOnlyWrite_ = memberOnlyWrite_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.endorsementPolicy_ = endorsementPolicyBuilder_ == null
? endorsementPolicy_
: endorsementPolicyBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.common.StaticCollectionConfig) {
return mergeFrom((org.hyperledger.fabric.protos.common.StaticCollectionConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.common.StaticCollectionConfig other) {
if (other == org.hyperledger.fabric.protos.common.StaticCollectionConfig.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasMemberOrgsPolicy()) {
mergeMemberOrgsPolicy(other.getMemberOrgsPolicy());
}
if (other.getRequiredPeerCount() != 0) {
setRequiredPeerCount(other.getRequiredPeerCount());
}
if (other.getMaximumPeerCount() != 0) {
setMaximumPeerCount(other.getMaximumPeerCount());
}
if (other.getBlockToLive() != 0L) {
setBlockToLive(other.getBlockToLive());
}
if (other.getMemberOnlyRead() != false) {
setMemberOnlyRead(other.getMemberOnlyRead());
}
if (other.getMemberOnlyWrite() != false) {
setMemberOnlyWrite(other.getMemberOnlyWrite());
}
if (other.hasEndorsementPolicy()) {
mergeEndorsementPolicy(other.getEndorsementPolicy());
}
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: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getMemberOrgsPolicyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
requiredPeerCount_ = input.readInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
maximumPeerCount_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
blockToLive_ = input.readUInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
memberOnlyRead_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 48
case 56: {
memberOnlyWrite_ = input.readBool();
bitField0_ |= 0x00000040;
break;
} // case 56
case 66: {
input.readMessage(
getEndorsementPolicyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
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.lang.Object name_ = "";
/**
*
* the name of the collection inside the denoted chaincode
*
*
* string name = 1 [json_name = "name"];
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* the name of the collection inside the denoted chaincode
*
*
* string name = 1 [json_name = "name"];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* the name of the collection inside the denoted chaincode
*
*
* string name = 1 [json_name = "name"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* the name of the collection inside the denoted chaincode
*
*
* string name = 1 [json_name = "name"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* the name of the collection inside the denoted chaincode
*
*
* string name = 1 [json_name = "name"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private org.hyperledger.fabric.protos.common.CollectionPolicyConfig memberOrgsPolicy_;
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.common.CollectionPolicyConfig, org.hyperledger.fabric.protos.common.CollectionPolicyConfig.Builder, org.hyperledger.fabric.protos.common.CollectionPolicyConfigOrBuilder> memberOrgsPolicyBuilder_;
/**
*
* a reference to a policy residing / managed in the config block
* to define which orgs have access to this collection’s private data
*
*
* .common.CollectionPolicyConfig member_orgs_policy = 2 [json_name = "memberOrgsPolicy"];
* @return Whether the memberOrgsPolicy field is set.
*/
public boolean hasMemberOrgsPolicy() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* a reference to a policy residing / managed in the config block
* to define which orgs have access to this collection’s private data
*
*
* .common.CollectionPolicyConfig member_orgs_policy = 2 [json_name = "memberOrgsPolicy"];
* @return The memberOrgsPolicy.
*/
public org.hyperledger.fabric.protos.common.CollectionPolicyConfig getMemberOrgsPolicy() {
if (memberOrgsPolicyBuilder_ == null) {
return memberOrgsPolicy_ == null ? org.hyperledger.fabric.protos.common.CollectionPolicyConfig.getDefaultInstance() : memberOrgsPolicy_;
} else {
return memberOrgsPolicyBuilder_.getMessage();
}
}
/**
*
* a reference to a policy residing / managed in the config block
* to define which orgs have access to this collection’s private data
*
*
* .common.CollectionPolicyConfig member_orgs_policy = 2 [json_name = "memberOrgsPolicy"];
*/
public Builder setMemberOrgsPolicy(org.hyperledger.fabric.protos.common.CollectionPolicyConfig value) {
if (memberOrgsPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
memberOrgsPolicy_ = value;
} else {
memberOrgsPolicyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* a reference to a policy residing / managed in the config block
* to define which orgs have access to this collection’s private data
*
*
* .common.CollectionPolicyConfig member_orgs_policy = 2 [json_name = "memberOrgsPolicy"];
*/
public Builder setMemberOrgsPolicy(
org.hyperledger.fabric.protos.common.CollectionPolicyConfig.Builder builderForValue) {
if (memberOrgsPolicyBuilder_ == null) {
memberOrgsPolicy_ = builderForValue.build();
} else {
memberOrgsPolicyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* a reference to a policy residing / managed in the config block
* to define which orgs have access to this collection’s private data
*
*
* .common.CollectionPolicyConfig member_orgs_policy = 2 [json_name = "memberOrgsPolicy"];
*/
public Builder mergeMemberOrgsPolicy(org.hyperledger.fabric.protos.common.CollectionPolicyConfig value) {
if (memberOrgsPolicyBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
memberOrgsPolicy_ != null &&
memberOrgsPolicy_ != org.hyperledger.fabric.protos.common.CollectionPolicyConfig.getDefaultInstance()) {
getMemberOrgsPolicyBuilder().mergeFrom(value);
} else {
memberOrgsPolicy_ = value;
}
} else {
memberOrgsPolicyBuilder_.mergeFrom(value);
}
if (memberOrgsPolicy_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* a reference to a policy residing / managed in the config block
* to define which orgs have access to this collection’s private data
*
*
* .common.CollectionPolicyConfig member_orgs_policy = 2 [json_name = "memberOrgsPolicy"];
*/
public Builder clearMemberOrgsPolicy() {
bitField0_ = (bitField0_ & ~0x00000002);
memberOrgsPolicy_ = null;
if (memberOrgsPolicyBuilder_ != null) {
memberOrgsPolicyBuilder_.dispose();
memberOrgsPolicyBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* a reference to a policy residing / managed in the config block
* to define which orgs have access to this collection’s private data
*
*
* .common.CollectionPolicyConfig member_orgs_policy = 2 [json_name = "memberOrgsPolicy"];
*/
public org.hyperledger.fabric.protos.common.CollectionPolicyConfig.Builder getMemberOrgsPolicyBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getMemberOrgsPolicyFieldBuilder().getBuilder();
}
/**
*
* a reference to a policy residing / managed in the config block
* to define which orgs have access to this collection’s private data
*
*
* .common.CollectionPolicyConfig member_orgs_policy = 2 [json_name = "memberOrgsPolicy"];
*/
public org.hyperledger.fabric.protos.common.CollectionPolicyConfigOrBuilder getMemberOrgsPolicyOrBuilder() {
if (memberOrgsPolicyBuilder_ != null) {
return memberOrgsPolicyBuilder_.getMessageOrBuilder();
} else {
return memberOrgsPolicy_ == null ?
org.hyperledger.fabric.protos.common.CollectionPolicyConfig.getDefaultInstance() : memberOrgsPolicy_;
}
}
/**
*
* a reference to a policy residing / managed in the config block
* to define which orgs have access to this collection’s private data
*
*
* .common.CollectionPolicyConfig member_orgs_policy = 2 [json_name = "memberOrgsPolicy"];
*/
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.common.CollectionPolicyConfig, org.hyperledger.fabric.protos.common.CollectionPolicyConfig.Builder, org.hyperledger.fabric.protos.common.CollectionPolicyConfigOrBuilder>
getMemberOrgsPolicyFieldBuilder() {
if (memberOrgsPolicyBuilder_ == null) {
memberOrgsPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.common.CollectionPolicyConfig, org.hyperledger.fabric.protos.common.CollectionPolicyConfig.Builder, org.hyperledger.fabric.protos.common.CollectionPolicyConfigOrBuilder>(
getMemberOrgsPolicy(),
getParentForChildren(),
isClean());
memberOrgsPolicy_ = null;
}
return memberOrgsPolicyBuilder_;
}
private int requiredPeerCount_ ;
/**
*
* The minimum number of peers private data will be sent to upon
* endorsement. The endorsement would fail if dissemination to at least
* this number of peers is not achieved.
*
*
* int32 required_peer_count = 3 [json_name = "requiredPeerCount"];
* @return The requiredPeerCount.
*/
@java.lang.Override
public int getRequiredPeerCount() {
return requiredPeerCount_;
}
/**
*
* The minimum number of peers private data will be sent to upon
* endorsement. The endorsement would fail if dissemination to at least
* this number of peers is not achieved.
*
*
* int32 required_peer_count = 3 [json_name = "requiredPeerCount"];
* @param value The requiredPeerCount to set.
* @return This builder for chaining.
*/
public Builder setRequiredPeerCount(int value) {
requiredPeerCount_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The minimum number of peers private data will be sent to upon
* endorsement. The endorsement would fail if dissemination to at least
* this number of peers is not achieved.
*
*
* int32 required_peer_count = 3 [json_name = "requiredPeerCount"];
* @return This builder for chaining.
*/
public Builder clearRequiredPeerCount() {
bitField0_ = (bitField0_ & ~0x00000004);
requiredPeerCount_ = 0;
onChanged();
return this;
}
private int maximumPeerCount_ ;
/**
*
* The maximum number of peers that private data will be sent to
* upon endorsement. This number has to be bigger than required_peer_count.
*
*
* int32 maximum_peer_count = 4 [json_name = "maximumPeerCount"];
* @return The maximumPeerCount.
*/
@java.lang.Override
public int getMaximumPeerCount() {
return maximumPeerCount_;
}
/**
*
* The maximum number of peers that private data will be sent to
* upon endorsement. This number has to be bigger than required_peer_count.
*
*
* int32 maximum_peer_count = 4 [json_name = "maximumPeerCount"];
* @param value The maximumPeerCount to set.
* @return This builder for chaining.
*/
public Builder setMaximumPeerCount(int value) {
maximumPeerCount_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The maximum number of peers that private data will be sent to
* upon endorsement. This number has to be bigger than required_peer_count.
*
*
* int32 maximum_peer_count = 4 [json_name = "maximumPeerCount"];
* @return This builder for chaining.
*/
public Builder clearMaximumPeerCount() {
bitField0_ = (bitField0_ & ~0x00000008);
maximumPeerCount_ = 0;
onChanged();
return this;
}
private long blockToLive_ ;
/**
*
* The number of blocks after which the collection data expires.
* For instance if the value is set to 10, a key last modified by block number 100
* will be purged at block number 111. A zero value is treated same as MaxUint64
*
*
* uint64 block_to_live = 5 [json_name = "blockToLive"];
* @return The blockToLive.
*/
@java.lang.Override
public long getBlockToLive() {
return blockToLive_;
}
/**
*
* The number of blocks after which the collection data expires.
* For instance if the value is set to 10, a key last modified by block number 100
* will be purged at block number 111. A zero value is treated same as MaxUint64
*
*
* uint64 block_to_live = 5 [json_name = "blockToLive"];
* @param value The blockToLive to set.
* @return This builder for chaining.
*/
public Builder setBlockToLive(long value) {
blockToLive_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* The number of blocks after which the collection data expires.
* For instance if the value is set to 10, a key last modified by block number 100
* will be purged at block number 111. A zero value is treated same as MaxUint64
*
*
* uint64 block_to_live = 5 [json_name = "blockToLive"];
* @return This builder for chaining.
*/
public Builder clearBlockToLive() {
bitField0_ = (bitField0_ & ~0x00000010);
blockToLive_ = 0L;
onChanged();
return this;
}
private boolean memberOnlyRead_ ;
/**
*
* The member only read access denotes whether only collection member clients
* can read the private data (if set to true), or even non members can
* read the data (if set to false, for example if you want to implement more granular
* access logic in the chaincode)
*
*
* bool member_only_read = 6 [json_name = "memberOnlyRead"];
* @return The memberOnlyRead.
*/
@java.lang.Override
public boolean getMemberOnlyRead() {
return memberOnlyRead_;
}
/**
*
* The member only read access denotes whether only collection member clients
* can read the private data (if set to true), or even non members can
* read the data (if set to false, for example if you want to implement more granular
* access logic in the chaincode)
*
*
* bool member_only_read = 6 [json_name = "memberOnlyRead"];
* @param value The memberOnlyRead to set.
* @return This builder for chaining.
*/
public Builder setMemberOnlyRead(boolean value) {
memberOnlyRead_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* The member only read access denotes whether only collection member clients
* can read the private data (if set to true), or even non members can
* read the data (if set to false, for example if you want to implement more granular
* access logic in the chaincode)
*
*
* bool member_only_read = 6 [json_name = "memberOnlyRead"];
* @return This builder for chaining.
*/
public Builder clearMemberOnlyRead() {
bitField0_ = (bitField0_ & ~0x00000020);
memberOnlyRead_ = false;
onChanged();
return this;
}
private boolean memberOnlyWrite_ ;
/**
*
* The member only write access denotes whether only collection member clients
* can write the private data (if set to true), or even non members can
* write the data (if set to false, for example if you want to implement more granular
* access logic in the chaincode)
*
*
* bool member_only_write = 7 [json_name = "memberOnlyWrite"];
* @return The memberOnlyWrite.
*/
@java.lang.Override
public boolean getMemberOnlyWrite() {
return memberOnlyWrite_;
}
/**
*
* The member only write access denotes whether only collection member clients
* can write the private data (if set to true), or even non members can
* write the data (if set to false, for example if you want to implement more granular
* access logic in the chaincode)
*
*
* bool member_only_write = 7 [json_name = "memberOnlyWrite"];
* @param value The memberOnlyWrite to set.
* @return This builder for chaining.
*/
public Builder setMemberOnlyWrite(boolean value) {
memberOnlyWrite_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* The member only write access denotes whether only collection member clients
* can write the private data (if set to true), or even non members can
* write the data (if set to false, for example if you want to implement more granular
* access logic in the chaincode)
*
*
* bool member_only_write = 7 [json_name = "memberOnlyWrite"];
* @return This builder for chaining.
*/
public Builder clearMemberOnlyWrite() {
bitField0_ = (bitField0_ & ~0x00000040);
memberOnlyWrite_ = false;
onChanged();
return this;
}
private org.hyperledger.fabric.protos.common.ApplicationPolicy endorsementPolicy_;
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.common.ApplicationPolicy, org.hyperledger.fabric.protos.common.ApplicationPolicy.Builder, org.hyperledger.fabric.protos.common.ApplicationPolicyOrBuilder> endorsementPolicyBuilder_;
/**
*
* a reference to a policy residing / managed in the config block
* to define the endorsement policy for this collection
*
*
* .common.ApplicationPolicy endorsement_policy = 8 [json_name = "endorsementPolicy"];
* @return Whether the endorsementPolicy field is set.
*/
public boolean hasEndorsementPolicy() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* a reference to a policy residing / managed in the config block
* to define the endorsement policy for this collection
*
*
* .common.ApplicationPolicy endorsement_policy = 8 [json_name = "endorsementPolicy"];
* @return The endorsementPolicy.
*/
public org.hyperledger.fabric.protos.common.ApplicationPolicy getEndorsementPolicy() {
if (endorsementPolicyBuilder_ == null) {
return endorsementPolicy_ == null ? org.hyperledger.fabric.protos.common.ApplicationPolicy.getDefaultInstance() : endorsementPolicy_;
} else {
return endorsementPolicyBuilder_.getMessage();
}
}
/**
*
* a reference to a policy residing / managed in the config block
* to define the endorsement policy for this collection
*
*
* .common.ApplicationPolicy endorsement_policy = 8 [json_name = "endorsementPolicy"];
*/
public Builder setEndorsementPolicy(org.hyperledger.fabric.protos.common.ApplicationPolicy value) {
if (endorsementPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
endorsementPolicy_ = value;
} else {
endorsementPolicyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* a reference to a policy residing / managed in the config block
* to define the endorsement policy for this collection
*
*
* .common.ApplicationPolicy endorsement_policy = 8 [json_name = "endorsementPolicy"];
*/
public Builder setEndorsementPolicy(
org.hyperledger.fabric.protos.common.ApplicationPolicy.Builder builderForValue) {
if (endorsementPolicyBuilder_ == null) {
endorsementPolicy_ = builderForValue.build();
} else {
endorsementPolicyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* a reference to a policy residing / managed in the config block
* to define the endorsement policy for this collection
*
*
* .common.ApplicationPolicy endorsement_policy = 8 [json_name = "endorsementPolicy"];
*/
public Builder mergeEndorsementPolicy(org.hyperledger.fabric.protos.common.ApplicationPolicy value) {
if (endorsementPolicyBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
endorsementPolicy_ != null &&
endorsementPolicy_ != org.hyperledger.fabric.protos.common.ApplicationPolicy.getDefaultInstance()) {
getEndorsementPolicyBuilder().mergeFrom(value);
} else {
endorsementPolicy_ = value;
}
} else {
endorsementPolicyBuilder_.mergeFrom(value);
}
if (endorsementPolicy_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
* a reference to a policy residing / managed in the config block
* to define the endorsement policy for this collection
*
*
* .common.ApplicationPolicy endorsement_policy = 8 [json_name = "endorsementPolicy"];
*/
public Builder clearEndorsementPolicy() {
bitField0_ = (bitField0_ & ~0x00000080);
endorsementPolicy_ = null;
if (endorsementPolicyBuilder_ != null) {
endorsementPolicyBuilder_.dispose();
endorsementPolicyBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* a reference to a policy residing / managed in the config block
* to define the endorsement policy for this collection
*
*
* .common.ApplicationPolicy endorsement_policy = 8 [json_name = "endorsementPolicy"];
*/
public org.hyperledger.fabric.protos.common.ApplicationPolicy.Builder getEndorsementPolicyBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getEndorsementPolicyFieldBuilder().getBuilder();
}
/**
*
* a reference to a policy residing / managed in the config block
* to define the endorsement policy for this collection
*
*
* .common.ApplicationPolicy endorsement_policy = 8 [json_name = "endorsementPolicy"];
*/
public org.hyperledger.fabric.protos.common.ApplicationPolicyOrBuilder getEndorsementPolicyOrBuilder() {
if (endorsementPolicyBuilder_ != null) {
return endorsementPolicyBuilder_.getMessageOrBuilder();
} else {
return endorsementPolicy_ == null ?
org.hyperledger.fabric.protos.common.ApplicationPolicy.getDefaultInstance() : endorsementPolicy_;
}
}
/**
*
* a reference to a policy residing / managed in the config block
* to define the endorsement policy for this collection
*
*
* .common.ApplicationPolicy endorsement_policy = 8 [json_name = "endorsementPolicy"];
*/
private com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.common.ApplicationPolicy, org.hyperledger.fabric.protos.common.ApplicationPolicy.Builder, org.hyperledger.fabric.protos.common.ApplicationPolicyOrBuilder>
getEndorsementPolicyFieldBuilder() {
if (endorsementPolicyBuilder_ == null) {
endorsementPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.hyperledger.fabric.protos.common.ApplicationPolicy, org.hyperledger.fabric.protos.common.ApplicationPolicy.Builder, org.hyperledger.fabric.protos.common.ApplicationPolicyOrBuilder>(
getEndorsementPolicy(),
getParentForChildren(),
isClean());
endorsementPolicy_ = null;
}
return endorsementPolicyBuilder_;
}
// @@protoc_insertion_point(builder_scope:common.StaticCollectionConfig)
}
// @@protoc_insertion_point(class_scope:common.StaticCollectionConfig)
private static final org.hyperledger.fabric.protos.common.StaticCollectionConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.StaticCollectionConfig();
}
public static org.hyperledger.fabric.protos.common.StaticCollectionConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StaticCollectionConfig 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.common.StaticCollectionConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy