public interface StaticCollectionConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
long |
getBlockToLive()
The number of blocks after which the collection data expires.
|
ApplicationPolicy |
getEndorsementPolicy()
a reference to a policy residing / managed in the config block
to define the endorsement policy for this collection
|
ApplicationPolicyOrBuilder |
getEndorsementPolicyOrBuilder()
a reference to a policy residing / managed in the config block
to define the endorsement policy for this collection
|
int |
getMaximumPeerCount()
The maximum number of peers that private data will be sent to
upon endorsement.
|
boolean |
getMemberOnlyRead()
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)
|
boolean |
getMemberOnlyWrite()
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)
|
CollectionPolicyConfig |
getMemberOrgsPolicy()
a reference to a policy residing / managed in the config block
to define which orgs have access to this collection’s private data
|
CollectionPolicyConfigOrBuilder |
getMemberOrgsPolicyOrBuilder()
a reference to a policy residing / managed in the config block
to define which orgs have access to this collection’s private data
|
String |
getName()
the name of the collection inside the denoted chaincode
|
com.google.protobuf.ByteString |
getNameBytes()
the name of the collection inside the denoted chaincode
|
int |
getRequiredPeerCount()
The minimum number of peers private data will be sent to upon
endorsement.
|
boolean |
hasEndorsementPolicy()
a reference to a policy residing / managed in the config block
to define the endorsement policy for this collection
|
boolean |
hasMemberOrgsPolicy()
a reference to a policy residing / managed in the config block
to define which orgs have access to this collection’s private data
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
String getName()
the name of the collection inside the denoted chaincode
string name = 1 [json_name = "name"];
com.google.protobuf.ByteString getNameBytes()
the name of the collection inside the denoted chaincode
string name = 1 [json_name = "name"];
boolean hasMemberOrgsPolicy()
a reference to a policy residing / managed in the config block to define which orgs have access to this collection’s private data
.protos.CollectionPolicyConfig member_orgs_policy = 2 [json_name = "memberOrgsPolicy"];
CollectionPolicyConfig getMemberOrgsPolicy()
a reference to a policy residing / managed in the config block to define which orgs have access to this collection’s private data
.protos.CollectionPolicyConfig member_orgs_policy = 2 [json_name = "memberOrgsPolicy"];
CollectionPolicyConfigOrBuilder getMemberOrgsPolicyOrBuilder()
a reference to a policy residing / managed in the config block to define which orgs have access to this collection’s private data
.protos.CollectionPolicyConfig member_orgs_policy = 2 [json_name = "memberOrgsPolicy"];
int getRequiredPeerCount()
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"];
int getMaximumPeerCount()
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"];
long getBlockToLive()
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"];
boolean getMemberOnlyRead()
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"];
boolean getMemberOnlyWrite()
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"];
boolean hasEndorsementPolicy()
a reference to a policy residing / managed in the config block to define the endorsement policy for this collection
.protos.ApplicationPolicy endorsement_policy = 8 [json_name = "endorsementPolicy"];
ApplicationPolicy getEndorsementPolicy()
a reference to a policy residing / managed in the config block to define the endorsement policy for this collection
.protos.ApplicationPolicy endorsement_policy = 8 [json_name = "endorsementPolicy"];
ApplicationPolicyOrBuilder getEndorsementPolicyOrBuilder()
a reference to a policy residing / managed in the config block to define the endorsement policy for this collection
.protos.ApplicationPolicy endorsement_policy = 8 [json_name = "endorsementPolicy"];
Copyright © 2022. All rights reserved.