public final class StaticCollectionConfig extends com.google.protobuf.GeneratedMessageV3 implements StaticCollectionConfigOrBuilder
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
protos.StaticCollectionConfig
Modifier and Type | Class and Description |
---|---|
static class |
StaticCollectionConfig.Builder
StaticCollectionConfig constitutes the configuration parameters of a
static collection object.
|
com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
BLOCK_TO_LIVE_FIELD_NUMBER |
static int |
ENDORSEMENT_POLICY_FIELD_NUMBER |
static int |
MAXIMUM_PEER_COUNT_FIELD_NUMBER |
static int |
MEMBER_ONLY_READ_FIELD_NUMBER |
static int |
MEMBER_ONLY_WRITE_FIELD_NUMBER |
static int |
MEMBER_ORGS_POLICY_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
REQUIRED_PEER_COUNT_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getBlockToLive()
The number of blocks after which the collection data expires.
|
static StaticCollectionConfig |
getDefaultInstance() |
StaticCollectionConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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
|
com.google.protobuf.Parser<StaticCollectionConfig> |
getParserForType() |
int |
getRequiredPeerCount()
The minimum number of peers private data will be sent to upon
endorsement.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasEndorsementPolicy()
a reference to a policy residing / managed in the config block
to define the endorsement policy for this collection
|
int |
hashCode() |
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
|
boolean |
isInitialized() |
static StaticCollectionConfig.Builder |
newBuilder() |
static StaticCollectionConfig.Builder |
newBuilder(StaticCollectionConfig prototype) |
StaticCollectionConfig.Builder |
newBuilderForType() |
static StaticCollectionConfig |
parseDelimitedFrom(InputStream input) |
static StaticCollectionConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StaticCollectionConfig |
parseFrom(byte[] data) |
static StaticCollectionConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StaticCollectionConfig |
parseFrom(ByteBuffer data) |
static StaticCollectionConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StaticCollectionConfig |
parseFrom(com.google.protobuf.ByteString data) |
static StaticCollectionConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StaticCollectionConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static StaticCollectionConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StaticCollectionConfig |
parseFrom(InputStream input) |
static StaticCollectionConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<StaticCollectionConfig> |
parser() |
StaticCollectionConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
findInitializationErrors, getInitializationErrorString, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NAME_FIELD_NUMBER
public static final int MEMBER_ORGS_POLICY_FIELD_NUMBER
public static final int REQUIRED_PEER_COUNT_FIELD_NUMBER
public static final int MAXIMUM_PEER_COUNT_FIELD_NUMBER
public static final int BLOCK_TO_LIVE_FIELD_NUMBER
public static final int MEMBER_ONLY_READ_FIELD_NUMBER
public static final int MEMBER_ONLY_WRITE_FIELD_NUMBER
public static final int ENDORSEMENT_POLICY_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public String getName()
the name of the collection inside the denoted chaincode
string name = 1 [json_name = "name"];
getName
in interface StaticCollectionConfigOrBuilder
public com.google.protobuf.ByteString getNameBytes()
the name of the collection inside the denoted chaincode
string name = 1 [json_name = "name"];
getNameBytes
in interface StaticCollectionConfigOrBuilder
public 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"];
hasMemberOrgsPolicy
in interface StaticCollectionConfigOrBuilder
public 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"];
getMemberOrgsPolicy
in interface StaticCollectionConfigOrBuilder
public 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"];
getMemberOrgsPolicyOrBuilder
in interface StaticCollectionConfigOrBuilder
public 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"];
getRequiredPeerCount
in interface StaticCollectionConfigOrBuilder
public 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"];
getMaximumPeerCount
in interface StaticCollectionConfigOrBuilder
public 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"];
getBlockToLive
in interface StaticCollectionConfigOrBuilder
public 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"];
getMemberOnlyRead
in interface StaticCollectionConfigOrBuilder
public 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"];
getMemberOnlyWrite
in interface StaticCollectionConfigOrBuilder
public 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"];
hasEndorsementPolicy
in interface StaticCollectionConfigOrBuilder
public 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"];
getEndorsementPolicy
in interface StaticCollectionConfigOrBuilder
public 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"];
getEndorsementPolicyOrBuilder
in interface StaticCollectionConfigOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static StaticCollectionConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static StaticCollectionConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static StaticCollectionConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static StaticCollectionConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static StaticCollectionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static StaticCollectionConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static StaticCollectionConfig parseFrom(InputStream input) throws IOException
IOException
public static StaticCollectionConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static StaticCollectionConfig parseDelimitedFrom(InputStream input) throws IOException
IOException
public static StaticCollectionConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static StaticCollectionConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static StaticCollectionConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public StaticCollectionConfig.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static StaticCollectionConfig.Builder newBuilder()
public static StaticCollectionConfig.Builder newBuilder(StaticCollectionConfig prototype)
public StaticCollectionConfig.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
public static StaticCollectionConfig getDefaultInstance()
public static com.google.protobuf.Parser<StaticCollectionConfig> parser()
public com.google.protobuf.Parser<StaticCollectionConfig> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public StaticCollectionConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2022. All rights reserved.