public static final class StaticCollectionConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StaticCollectionConfig.Builder> 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
common.StaticCollectionConfig
Modifier and Type | Method and Description |
---|---|
StaticCollectionConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StaticCollectionConfig |
build() |
StaticCollectionConfig |
buildPartial() |
StaticCollectionConfig.Builder |
clear() |
StaticCollectionConfig.Builder |
clearBlockToLive()
The number of blocks after which the collection data expires.
|
StaticCollectionConfig.Builder |
clearEndorsementPolicy()
a reference to a policy residing / managed in the config block
to define the endorsement policy for this collection
|
StaticCollectionConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
StaticCollectionConfig.Builder |
clearMaximumPeerCount()
The maximum number of peers that private data will be sent to
upon endorsement.
|
StaticCollectionConfig.Builder |
clearMemberOnlyRead()
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)
|
StaticCollectionConfig.Builder |
clearMemberOnlyWrite()
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)
|
StaticCollectionConfig.Builder |
clearMemberOrgsPolicy()
a reference to a policy residing / managed in the config block
to define which orgs have access to this collection’s private data
|
StaticCollectionConfig.Builder |
clearName()
the name of the collection inside the denoted chaincode
|
StaticCollectionConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
StaticCollectionConfig.Builder |
clearRequiredPeerCount()
The minimum number of peers private data will be sent to upon
endorsement.
|
StaticCollectionConfig.Builder |
clone() |
long |
getBlockToLive()
The number of blocks after which the collection data expires.
|
StaticCollectionConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
ApplicationPolicy |
getEndorsementPolicy()
a reference to a policy residing / managed in the config block
to define the endorsement policy for this collection
|
ApplicationPolicy.Builder |
getEndorsementPolicyBuilder()
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
|
CollectionPolicyConfig.Builder |
getMemberOrgsPolicyBuilder()
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
|
boolean |
isInitialized() |
StaticCollectionConfig.Builder |
mergeEndorsementPolicy(ApplicationPolicy value)
a reference to a policy residing / managed in the config block
to define the endorsement policy for this collection
|
StaticCollectionConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
StaticCollectionConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
StaticCollectionConfig.Builder |
mergeFrom(StaticCollectionConfig other) |
StaticCollectionConfig.Builder |
mergeMemberOrgsPolicy(CollectionPolicyConfig value)
a reference to a policy residing / managed in the config block
to define which orgs have access to this collection’s private data
|
StaticCollectionConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
StaticCollectionConfig.Builder |
setBlockToLive(long value)
The number of blocks after which the collection data expires.
|
StaticCollectionConfig.Builder |
setEndorsementPolicy(ApplicationPolicy.Builder builderForValue)
a reference to a policy residing / managed in the config block
to define the endorsement policy for this collection
|
StaticCollectionConfig.Builder |
setEndorsementPolicy(ApplicationPolicy value)
a reference to a policy residing / managed in the config block
to define the endorsement policy for this collection
|
StaticCollectionConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StaticCollectionConfig.Builder |
setMaximumPeerCount(int value)
The maximum number of peers that private data will be sent to
upon endorsement.
|
StaticCollectionConfig.Builder |
setMemberOnlyRead(boolean value)
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)
|
StaticCollectionConfig.Builder |
setMemberOnlyWrite(boolean value)
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)
|
StaticCollectionConfig.Builder |
setMemberOrgsPolicy(CollectionPolicyConfig.Builder builderForValue)
a reference to a policy residing / managed in the config block
to define which orgs have access to this collection’s private data
|
StaticCollectionConfig.Builder |
setMemberOrgsPolicy(CollectionPolicyConfig value)
a reference to a policy residing / managed in the config block
to define which orgs have access to this collection’s private data
|
StaticCollectionConfig.Builder |
setName(String value)
the name of the collection inside the denoted chaincode
|
StaticCollectionConfig.Builder |
setNameBytes(com.google.protobuf.ByteString value)
the name of the collection inside the denoted chaincode
|
StaticCollectionConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
StaticCollectionConfig.Builder |
setRequiredPeerCount(int value)
The minimum number of peers private data will be sent to upon
endorsement.
|
StaticCollectionConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, newBuilderForField
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public StaticCollectionConfig.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<StaticCollectionConfig.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<StaticCollectionConfig.Builder>
public StaticCollectionConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public StaticCollectionConfig build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public StaticCollectionConfig buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public StaticCollectionConfig.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<StaticCollectionConfig.Builder>
public StaticCollectionConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<StaticCollectionConfig.Builder>
public StaticCollectionConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<StaticCollectionConfig.Builder>
public StaticCollectionConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<StaticCollectionConfig.Builder>
public StaticCollectionConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<StaticCollectionConfig.Builder>
public StaticCollectionConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<StaticCollectionConfig.Builder>
public StaticCollectionConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<StaticCollectionConfig.Builder>
public StaticCollectionConfig.Builder mergeFrom(StaticCollectionConfig other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<StaticCollectionConfig.Builder>
public StaticCollectionConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<StaticCollectionConfig.Builder>
IOException
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 StaticCollectionConfig.Builder setName(String value)
the name of the collection inside the denoted chaincode
string name = 1 [json_name = "name"];
value
- The name to set.public StaticCollectionConfig.Builder clearName()
the name of the collection inside the denoted chaincode
string name = 1 [json_name = "name"];
public StaticCollectionConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
the name of the collection inside the denoted chaincode
string name = 1 [json_name = "name"];
value
- The bytes for name to set.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
.common.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
.common.CollectionPolicyConfig member_orgs_policy = 2 [json_name = "memberOrgsPolicy"];
getMemberOrgsPolicy
in interface StaticCollectionConfigOrBuilder
public StaticCollectionConfig.Builder setMemberOrgsPolicy(CollectionPolicyConfig value)
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 StaticCollectionConfig.Builder setMemberOrgsPolicy(CollectionPolicyConfig.Builder builderForValue)
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 StaticCollectionConfig.Builder mergeMemberOrgsPolicy(CollectionPolicyConfig value)
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 StaticCollectionConfig.Builder clearMemberOrgsPolicy()
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 CollectionPolicyConfig.Builder getMemberOrgsPolicyBuilder()
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 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
.common.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 StaticCollectionConfig.Builder setRequiredPeerCount(int value)
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"];
value
- The requiredPeerCount to set.public StaticCollectionConfig.Builder clearRequiredPeerCount()
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"];
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 StaticCollectionConfig.Builder setMaximumPeerCount(int value)
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"];
value
- The maximumPeerCount to set.public StaticCollectionConfig.Builder clearMaximumPeerCount()
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"];
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 StaticCollectionConfig.Builder setBlockToLive(long value)
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"];
value
- The blockToLive to set.public StaticCollectionConfig.Builder clearBlockToLive()
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"];
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 StaticCollectionConfig.Builder setMemberOnlyRead(boolean value)
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"];
value
- The memberOnlyRead to set.public StaticCollectionConfig.Builder clearMemberOnlyRead()
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"];
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 StaticCollectionConfig.Builder setMemberOnlyWrite(boolean value)
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"];
value
- The memberOnlyWrite to set.public StaticCollectionConfig.Builder clearMemberOnlyWrite()
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"];
public boolean hasEndorsementPolicy()
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"];
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
.common.ApplicationPolicy endorsement_policy = 8 [json_name = "endorsementPolicy"];
getEndorsementPolicy
in interface StaticCollectionConfigOrBuilder
public StaticCollectionConfig.Builder setEndorsementPolicy(ApplicationPolicy value)
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 StaticCollectionConfig.Builder setEndorsementPolicy(ApplicationPolicy.Builder builderForValue)
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 StaticCollectionConfig.Builder mergeEndorsementPolicy(ApplicationPolicy value)
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 StaticCollectionConfig.Builder clearEndorsementPolicy()
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 ApplicationPolicy.Builder getEndorsementPolicyBuilder()
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 ApplicationPolicyOrBuilder getEndorsementPolicyOrBuilder()
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"];
getEndorsementPolicyOrBuilder
in interface StaticCollectionConfigOrBuilder
public final StaticCollectionConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<StaticCollectionConfig.Builder>
public final StaticCollectionConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<StaticCollectionConfig.Builder>
Copyright © 2022. All rights reserved.