public static final class ChaincodeCall.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeCall.Builder> implements ChaincodeCallOrBuilder
ChaincodeCall defines a call to a chaincode. It may have collections that are related to the chaincodeProtobuf type
protos.ChaincodeCall
Modifier and Type | Method and Description |
---|---|
ChaincodeCall.Builder |
addAllCollectionNames(Iterable<String> values)
repeated string collection_names = 2 [json_name = "collectionNames"]; |
ChaincodeCall.Builder |
addAllKeyPolicies(Iterable<? extends SignaturePolicyEnvelope> values)
The set of signature policies associated with states in the write-set
that have state-based endorsement policies.
|
ChaincodeCall.Builder |
addCollectionNames(String value)
repeated string collection_names = 2 [json_name = "collectionNames"]; |
ChaincodeCall.Builder |
addCollectionNamesBytes(com.google.protobuf.ByteString value)
repeated string collection_names = 2 [json_name = "collectionNames"]; |
ChaincodeCall.Builder |
addKeyPolicies(int index,
SignaturePolicyEnvelope.Builder builderForValue)
The set of signature policies associated with states in the write-set
that have state-based endorsement policies.
|
ChaincodeCall.Builder |
addKeyPolicies(int index,
SignaturePolicyEnvelope value)
The set of signature policies associated with states in the write-set
that have state-based endorsement policies.
|
ChaincodeCall.Builder |
addKeyPolicies(SignaturePolicyEnvelope.Builder builderForValue)
The set of signature policies associated with states in the write-set
that have state-based endorsement policies.
|
ChaincodeCall.Builder |
addKeyPolicies(SignaturePolicyEnvelope value)
The set of signature policies associated with states in the write-set
that have state-based endorsement policies.
|
SignaturePolicyEnvelope.Builder |
addKeyPoliciesBuilder()
The set of signature policies associated with states in the write-set
that have state-based endorsement policies.
|
SignaturePolicyEnvelope.Builder |
addKeyPoliciesBuilder(int index)
The set of signature policies associated with states in the write-set
that have state-based endorsement policies.
|
ChaincodeCall.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ChaincodeCall |
build() |
ChaincodeCall |
buildPartial() |
ChaincodeCall.Builder |
clear() |
ChaincodeCall.Builder |
clearCollectionNames()
repeated string collection_names = 2 [json_name = "collectionNames"]; |
ChaincodeCall.Builder |
clearDisregardNamespacePolicy()
Indicates we wish to ignore the namespace endorsement policy
|
ChaincodeCall.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ChaincodeCall.Builder |
clearKeyPolicies()
The set of signature policies associated with states in the write-set
that have state-based endorsement policies.
|
ChaincodeCall.Builder |
clearName()
string name = 1 [json_name = "name"]; |
ChaincodeCall.Builder |
clearNoPrivateReads()
Indicates we do not need to read from private data
|
ChaincodeCall.Builder |
clearNoPublicWrites()
Indicates we do not need to write to the chaincode namespace
|
ChaincodeCall.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ChaincodeCall.Builder |
clone() |
String |
getCollectionNames(int index)
repeated string collection_names = 2 [json_name = "collectionNames"]; |
com.google.protobuf.ByteString |
getCollectionNamesBytes(int index)
repeated string collection_names = 2 [json_name = "collectionNames"]; |
int |
getCollectionNamesCount()
repeated string collection_names = 2 [json_name = "collectionNames"]; |
com.google.protobuf.ProtocolStringList |
getCollectionNamesList()
repeated string collection_names = 2 [json_name = "collectionNames"]; |
ChaincodeCall |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getDisregardNamespacePolicy()
Indicates we wish to ignore the namespace endorsement policy
|
SignaturePolicyEnvelope |
getKeyPolicies(int index)
The set of signature policies associated with states in the write-set
that have state-based endorsement policies.
|
SignaturePolicyEnvelope.Builder |
getKeyPoliciesBuilder(int index)
The set of signature policies associated with states in the write-set
that have state-based endorsement policies.
|
List<SignaturePolicyEnvelope.Builder> |
getKeyPoliciesBuilderList()
The set of signature policies associated with states in the write-set
that have state-based endorsement policies.
|
int |
getKeyPoliciesCount()
The set of signature policies associated with states in the write-set
that have state-based endorsement policies.
|
List<SignaturePolicyEnvelope> |
getKeyPoliciesList()
The set of signature policies associated with states in the write-set
that have state-based endorsement policies.
|
SignaturePolicyEnvelopeOrBuilder |
getKeyPoliciesOrBuilder(int index)
The set of signature policies associated with states in the write-set
that have state-based endorsement policies.
|
List<? extends SignaturePolicyEnvelopeOrBuilder> |
getKeyPoliciesOrBuilderList()
The set of signature policies associated with states in the write-set
that have state-based endorsement policies.
|
String |
getName()
string name = 1 [json_name = "name"]; |
com.google.protobuf.ByteString |
getNameBytes()
string name = 1 [json_name = "name"]; |
boolean |
getNoPrivateReads()
Indicates we do not need to read from private data
|
boolean |
getNoPublicWrites()
Indicates we do not need to write to the chaincode namespace
|
boolean |
isInitialized() |
ChaincodeCall.Builder |
mergeFrom(ChaincodeCall other) |
ChaincodeCall.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ChaincodeCall.Builder |
mergeFrom(com.google.protobuf.Message other) |
ChaincodeCall.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ChaincodeCall.Builder |
removeKeyPolicies(int index)
The set of signature policies associated with states in the write-set
that have state-based endorsement policies.
|
ChaincodeCall.Builder |
setCollectionNames(int index,
String value)
repeated string collection_names = 2 [json_name = "collectionNames"]; |
ChaincodeCall.Builder |
setDisregardNamespacePolicy(boolean value)
Indicates we wish to ignore the namespace endorsement policy
|
ChaincodeCall.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ChaincodeCall.Builder |
setKeyPolicies(int index,
SignaturePolicyEnvelope.Builder builderForValue)
The set of signature policies associated with states in the write-set
that have state-based endorsement policies.
|
ChaincodeCall.Builder |
setKeyPolicies(int index,
SignaturePolicyEnvelope value)
The set of signature policies associated with states in the write-set
that have state-based endorsement policies.
|
ChaincodeCall.Builder |
setName(String value)
string name = 1 [json_name = "name"]; |
ChaincodeCall.Builder |
setNameBytes(com.google.protobuf.ByteString value)
string name = 1 [json_name = "name"]; |
ChaincodeCall.Builder |
setNoPrivateReads(boolean value)
Indicates we do not need to read from private data
|
ChaincodeCall.Builder |
setNoPublicWrites(boolean value)
Indicates we do not need to write to the chaincode namespace
|
ChaincodeCall.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ChaincodeCall.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 ChaincodeCall.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<ChaincodeCall.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<ChaincodeCall.Builder>
public ChaincodeCall getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ChaincodeCall build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ChaincodeCall buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ChaincodeCall.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<ChaincodeCall.Builder>
public ChaincodeCall.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<ChaincodeCall.Builder>
public ChaincodeCall.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeCall.Builder>
public ChaincodeCall.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeCall.Builder>
public ChaincodeCall.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<ChaincodeCall.Builder>
public ChaincodeCall.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<ChaincodeCall.Builder>
public ChaincodeCall.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ChaincodeCall.Builder>
public ChaincodeCall.Builder mergeFrom(ChaincodeCall other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeCall.Builder>
public ChaincodeCall.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<ChaincodeCall.Builder>
IOException
public String getName()
string name = 1 [json_name = "name"];
getName
in interface ChaincodeCallOrBuilder
public com.google.protobuf.ByteString getNameBytes()
string name = 1 [json_name = "name"];
getNameBytes
in interface ChaincodeCallOrBuilder
public ChaincodeCall.Builder setName(String value)
string name = 1 [json_name = "name"];
value
- The name to set.public ChaincodeCall.Builder clearName()
string name = 1 [json_name = "name"];
public ChaincodeCall.Builder setNameBytes(com.google.protobuf.ByteString value)
string name = 1 [json_name = "name"];
value
- The bytes for name to set.public com.google.protobuf.ProtocolStringList getCollectionNamesList()
repeated string collection_names = 2 [json_name = "collectionNames"];
getCollectionNamesList
in interface ChaincodeCallOrBuilder
public int getCollectionNamesCount()
repeated string collection_names = 2 [json_name = "collectionNames"];
getCollectionNamesCount
in interface ChaincodeCallOrBuilder
public String getCollectionNames(int index)
repeated string collection_names = 2 [json_name = "collectionNames"];
getCollectionNames
in interface ChaincodeCallOrBuilder
index
- The index of the element to return.public com.google.protobuf.ByteString getCollectionNamesBytes(int index)
repeated string collection_names = 2 [json_name = "collectionNames"];
getCollectionNamesBytes
in interface ChaincodeCallOrBuilder
index
- The index of the value to return.public ChaincodeCall.Builder setCollectionNames(int index, String value)
repeated string collection_names = 2 [json_name = "collectionNames"];
index
- The index to set the value at.value
- The collectionNames to set.public ChaincodeCall.Builder addCollectionNames(String value)
repeated string collection_names = 2 [json_name = "collectionNames"];
value
- The collectionNames to add.public ChaincodeCall.Builder addAllCollectionNames(Iterable<String> values)
repeated string collection_names = 2 [json_name = "collectionNames"];
values
- The collectionNames to add.public ChaincodeCall.Builder clearCollectionNames()
repeated string collection_names = 2 [json_name = "collectionNames"];
public ChaincodeCall.Builder addCollectionNamesBytes(com.google.protobuf.ByteString value)
repeated string collection_names = 2 [json_name = "collectionNames"];
value
- The bytes of the collectionNames to add.public boolean getNoPrivateReads()
Indicates we do not need to read from private data
bool no_private_reads = 3 [json_name = "noPrivateReads"];
getNoPrivateReads
in interface ChaincodeCallOrBuilder
public ChaincodeCall.Builder setNoPrivateReads(boolean value)
Indicates we do not need to read from private data
bool no_private_reads = 3 [json_name = "noPrivateReads"];
value
- The noPrivateReads to set.public ChaincodeCall.Builder clearNoPrivateReads()
Indicates we do not need to read from private data
bool no_private_reads = 3 [json_name = "noPrivateReads"];
public boolean getNoPublicWrites()
Indicates we do not need to write to the chaincode namespace
bool no_public_writes = 4 [json_name = "noPublicWrites"];
getNoPublicWrites
in interface ChaincodeCallOrBuilder
public ChaincodeCall.Builder setNoPublicWrites(boolean value)
Indicates we do not need to write to the chaincode namespace
bool no_public_writes = 4 [json_name = "noPublicWrites"];
value
- The noPublicWrites to set.public ChaincodeCall.Builder clearNoPublicWrites()
Indicates we do not need to write to the chaincode namespace
bool no_public_writes = 4 [json_name = "noPublicWrites"];
public List<SignaturePolicyEnvelope> getKeyPoliciesList()
The set of signature policies associated with states in the write-set that have state-based endorsement policies.
repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"];
getKeyPoliciesList
in interface ChaincodeCallOrBuilder
public int getKeyPoliciesCount()
The set of signature policies associated with states in the write-set that have state-based endorsement policies.
repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"];
getKeyPoliciesCount
in interface ChaincodeCallOrBuilder
public SignaturePolicyEnvelope getKeyPolicies(int index)
The set of signature policies associated with states in the write-set that have state-based endorsement policies.
repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"];
getKeyPolicies
in interface ChaincodeCallOrBuilder
public ChaincodeCall.Builder setKeyPolicies(int index, SignaturePolicyEnvelope value)
The set of signature policies associated with states in the write-set that have state-based endorsement policies.
repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"];
public ChaincodeCall.Builder setKeyPolicies(int index, SignaturePolicyEnvelope.Builder builderForValue)
The set of signature policies associated with states in the write-set that have state-based endorsement policies.
repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"];
public ChaincodeCall.Builder addKeyPolicies(SignaturePolicyEnvelope value)
The set of signature policies associated with states in the write-set that have state-based endorsement policies.
repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"];
public ChaincodeCall.Builder addKeyPolicies(int index, SignaturePolicyEnvelope value)
The set of signature policies associated with states in the write-set that have state-based endorsement policies.
repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"];
public ChaincodeCall.Builder addKeyPolicies(SignaturePolicyEnvelope.Builder builderForValue)
The set of signature policies associated with states in the write-set that have state-based endorsement policies.
repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"];
public ChaincodeCall.Builder addKeyPolicies(int index, SignaturePolicyEnvelope.Builder builderForValue)
The set of signature policies associated with states in the write-set that have state-based endorsement policies.
repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"];
public ChaincodeCall.Builder addAllKeyPolicies(Iterable<? extends SignaturePolicyEnvelope> values)
The set of signature policies associated with states in the write-set that have state-based endorsement policies.
repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"];
public ChaincodeCall.Builder clearKeyPolicies()
The set of signature policies associated with states in the write-set that have state-based endorsement policies.
repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"];
public ChaincodeCall.Builder removeKeyPolicies(int index)
The set of signature policies associated with states in the write-set that have state-based endorsement policies.
repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"];
public SignaturePolicyEnvelope.Builder getKeyPoliciesBuilder(int index)
The set of signature policies associated with states in the write-set that have state-based endorsement policies.
repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"];
public SignaturePolicyEnvelopeOrBuilder getKeyPoliciesOrBuilder(int index)
The set of signature policies associated with states in the write-set that have state-based endorsement policies.
repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"];
getKeyPoliciesOrBuilder
in interface ChaincodeCallOrBuilder
public List<? extends SignaturePolicyEnvelopeOrBuilder> getKeyPoliciesOrBuilderList()
The set of signature policies associated with states in the write-set that have state-based endorsement policies.
repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"];
getKeyPoliciesOrBuilderList
in interface ChaincodeCallOrBuilder
public SignaturePolicyEnvelope.Builder addKeyPoliciesBuilder()
The set of signature policies associated with states in the write-set that have state-based endorsement policies.
repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"];
public SignaturePolicyEnvelope.Builder addKeyPoliciesBuilder(int index)
The set of signature policies associated with states in the write-set that have state-based endorsement policies.
repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"];
public List<SignaturePolicyEnvelope.Builder> getKeyPoliciesBuilderList()
The set of signature policies associated with states in the write-set that have state-based endorsement policies.
repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"];
public boolean getDisregardNamespacePolicy()
Indicates we wish to ignore the namespace endorsement policy
bool disregard_namespace_policy = 6 [json_name = "disregardNamespacePolicy"];
getDisregardNamespacePolicy
in interface ChaincodeCallOrBuilder
public ChaincodeCall.Builder setDisregardNamespacePolicy(boolean value)
Indicates we wish to ignore the namespace endorsement policy
bool disregard_namespace_policy = 6 [json_name = "disregardNamespacePolicy"];
value
- The disregardNamespacePolicy to set.public ChaincodeCall.Builder clearDisregardNamespacePolicy()
Indicates we wish to ignore the namespace endorsement policy
bool disregard_namespace_policy = 6 [json_name = "disregardNamespacePolicy"];
public final ChaincodeCall.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeCall.Builder>
public final ChaincodeCall.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeCall.Builder>
Copyright © 2022. All rights reserved.