public static final class ChaincodeData.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeData.Builder> implements ChaincodeDataOrBuilder
ChaincodeData defines the datastructure for chaincodes to be serialized by proto Type provides an additional check by directing to use a specific package after instantiation Data is Type specific (see CDSPackage and SignedCDSPackage)Protobuf type
protos.ChaincodeData
Modifier and Type | Method and Description |
---|---|
ChaincodeData.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ChaincodeData |
build() |
ChaincodeData |
buildPartial() |
ChaincodeData.Builder |
clear() |
ChaincodeData.Builder |
clearData()
Data data specific to the package
|
ChaincodeData.Builder |
clearEscc()
Escc for the chaincode instance
|
ChaincodeData.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ChaincodeData.Builder |
clearId()
Id of the chaincode that's the unique fingerprint for the CC This is not
currently used anywhere but serves as a good eyecatcher
|
ChaincodeData.Builder |
clearInstantiationPolicy()
InstantiationPolicy for the chaincode
|
ChaincodeData.Builder |
clearName()
Name of the chaincode
|
ChaincodeData.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ChaincodeData.Builder |
clearPolicy()
Policy endorsement policy for the chaincode instance
|
ChaincodeData.Builder |
clearVersion()
Version of the chaincode
|
ChaincodeData.Builder |
clearVscc()
Vscc for the chaincode instance
|
ChaincodeData.Builder |
clone() |
com.google.protobuf.ByteString |
getData()
Data data specific to the package
|
ChaincodeData |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getEscc()
Escc for the chaincode instance
|
com.google.protobuf.ByteString |
getEsccBytes()
Escc for the chaincode instance
|
com.google.protobuf.ByteString |
getId()
Id of the chaincode that's the unique fingerprint for the CC This is not
currently used anywhere but serves as a good eyecatcher
|
SignaturePolicyEnvelope |
getInstantiationPolicy()
InstantiationPolicy for the chaincode
|
SignaturePolicyEnvelope.Builder |
getInstantiationPolicyBuilder()
InstantiationPolicy for the chaincode
|
SignaturePolicyEnvelopeOrBuilder |
getInstantiationPolicyOrBuilder()
InstantiationPolicy for the chaincode
|
String |
getName()
Name of the chaincode
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the chaincode
|
SignaturePolicyEnvelope |
getPolicy()
Policy endorsement policy for the chaincode instance
|
SignaturePolicyEnvelope.Builder |
getPolicyBuilder()
Policy endorsement policy for the chaincode instance
|
SignaturePolicyEnvelopeOrBuilder |
getPolicyOrBuilder()
Policy endorsement policy for the chaincode instance
|
String |
getVersion()
Version of the chaincode
|
com.google.protobuf.ByteString |
getVersionBytes()
Version of the chaincode
|
String |
getVscc()
Vscc for the chaincode instance
|
com.google.protobuf.ByteString |
getVsccBytes()
Vscc for the chaincode instance
|
boolean |
hasInstantiationPolicy()
InstantiationPolicy for the chaincode
|
boolean |
hasPolicy()
Policy endorsement policy for the chaincode instance
|
boolean |
isInitialized() |
ChaincodeData.Builder |
mergeFrom(ChaincodeData other) |
ChaincodeData.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ChaincodeData.Builder |
mergeFrom(com.google.protobuf.Message other) |
ChaincodeData.Builder |
mergeInstantiationPolicy(SignaturePolicyEnvelope value)
InstantiationPolicy for the chaincode
|
ChaincodeData.Builder |
mergePolicy(SignaturePolicyEnvelope value)
Policy endorsement policy for the chaincode instance
|
ChaincodeData.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ChaincodeData.Builder |
setData(com.google.protobuf.ByteString value)
Data data specific to the package
|
ChaincodeData.Builder |
setEscc(String value)
Escc for the chaincode instance
|
ChaincodeData.Builder |
setEsccBytes(com.google.protobuf.ByteString value)
Escc for the chaincode instance
|
ChaincodeData.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ChaincodeData.Builder |
setId(com.google.protobuf.ByteString value)
Id of the chaincode that's the unique fingerprint for the CC This is not
currently used anywhere but serves as a good eyecatcher
|
ChaincodeData.Builder |
setInstantiationPolicy(SignaturePolicyEnvelope.Builder builderForValue)
InstantiationPolicy for the chaincode
|
ChaincodeData.Builder |
setInstantiationPolicy(SignaturePolicyEnvelope value)
InstantiationPolicy for the chaincode
|
ChaincodeData.Builder |
setName(String value)
Name of the chaincode
|
ChaincodeData.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Name of the chaincode
|
ChaincodeData.Builder |
setPolicy(SignaturePolicyEnvelope.Builder builderForValue)
Policy endorsement policy for the chaincode instance
|
ChaincodeData.Builder |
setPolicy(SignaturePolicyEnvelope value)
Policy endorsement policy for the chaincode instance
|
ChaincodeData.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ChaincodeData.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ChaincodeData.Builder |
setVersion(String value)
Version of the chaincode
|
ChaincodeData.Builder |
setVersionBytes(com.google.protobuf.ByteString value)
Version of the chaincode
|
ChaincodeData.Builder |
setVscc(String value)
Vscc for the chaincode instance
|
ChaincodeData.Builder |
setVsccBytes(com.google.protobuf.ByteString value)
Vscc for the chaincode instance
|
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 ChaincodeData.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<ChaincodeData.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<ChaincodeData.Builder>
public ChaincodeData getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ChaincodeData build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ChaincodeData buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ChaincodeData.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<ChaincodeData.Builder>
public ChaincodeData.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<ChaincodeData.Builder>
public ChaincodeData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeData.Builder>
public ChaincodeData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeData.Builder>
public ChaincodeData.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<ChaincodeData.Builder>
public ChaincodeData.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<ChaincodeData.Builder>
public ChaincodeData.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ChaincodeData.Builder>
public ChaincodeData.Builder mergeFrom(ChaincodeData other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeData.Builder>
public ChaincodeData.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<ChaincodeData.Builder>
IOException
public String getName()
Name of the chaincode
string name = 1 [json_name = "name"];
getName
in interface ChaincodeDataOrBuilder
public com.google.protobuf.ByteString getNameBytes()
Name of the chaincode
string name = 1 [json_name = "name"];
getNameBytes
in interface ChaincodeDataOrBuilder
public ChaincodeData.Builder setName(String value)
Name of the chaincode
string name = 1 [json_name = "name"];
value
- The name to set.public ChaincodeData.Builder clearName()
Name of the chaincode
string name = 1 [json_name = "name"];
public ChaincodeData.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the chaincode
string name = 1 [json_name = "name"];
value
- The bytes for name to set.public String getVersion()
Version of the chaincode
string version = 2 [json_name = "version"];
getVersion
in interface ChaincodeDataOrBuilder
public com.google.protobuf.ByteString getVersionBytes()
Version of the chaincode
string version = 2 [json_name = "version"];
getVersionBytes
in interface ChaincodeDataOrBuilder
public ChaincodeData.Builder setVersion(String value)
Version of the chaincode
string version = 2 [json_name = "version"];
value
- The version to set.public ChaincodeData.Builder clearVersion()
Version of the chaincode
string version = 2 [json_name = "version"];
public ChaincodeData.Builder setVersionBytes(com.google.protobuf.ByteString value)
Version of the chaincode
string version = 2 [json_name = "version"];
value
- The bytes for version to set.public String getEscc()
Escc for the chaincode instance
string escc = 3 [json_name = "escc"];
getEscc
in interface ChaincodeDataOrBuilder
public com.google.protobuf.ByteString getEsccBytes()
Escc for the chaincode instance
string escc = 3 [json_name = "escc"];
getEsccBytes
in interface ChaincodeDataOrBuilder
public ChaincodeData.Builder setEscc(String value)
Escc for the chaincode instance
string escc = 3 [json_name = "escc"];
value
- The escc to set.public ChaincodeData.Builder clearEscc()
Escc for the chaincode instance
string escc = 3 [json_name = "escc"];
public ChaincodeData.Builder setEsccBytes(com.google.protobuf.ByteString value)
Escc for the chaincode instance
string escc = 3 [json_name = "escc"];
value
- The bytes for escc to set.public String getVscc()
Vscc for the chaincode instance
string vscc = 4 [json_name = "vscc"];
getVscc
in interface ChaincodeDataOrBuilder
public com.google.protobuf.ByteString getVsccBytes()
Vscc for the chaincode instance
string vscc = 4 [json_name = "vscc"];
getVsccBytes
in interface ChaincodeDataOrBuilder
public ChaincodeData.Builder setVscc(String value)
Vscc for the chaincode instance
string vscc = 4 [json_name = "vscc"];
value
- The vscc to set.public ChaincodeData.Builder clearVscc()
Vscc for the chaincode instance
string vscc = 4 [json_name = "vscc"];
public ChaincodeData.Builder setVsccBytes(com.google.protobuf.ByteString value)
Vscc for the chaincode instance
string vscc = 4 [json_name = "vscc"];
value
- The bytes for vscc to set.public boolean hasPolicy()
Policy endorsement policy for the chaincode instance
.common.SignaturePolicyEnvelope policy = 5 [json_name = "policy"];
hasPolicy
in interface ChaincodeDataOrBuilder
public SignaturePolicyEnvelope getPolicy()
Policy endorsement policy for the chaincode instance
.common.SignaturePolicyEnvelope policy = 5 [json_name = "policy"];
getPolicy
in interface ChaincodeDataOrBuilder
public ChaincodeData.Builder setPolicy(SignaturePolicyEnvelope value)
Policy endorsement policy for the chaincode instance
.common.SignaturePolicyEnvelope policy = 5 [json_name = "policy"];
public ChaincodeData.Builder setPolicy(SignaturePolicyEnvelope.Builder builderForValue)
Policy endorsement policy for the chaincode instance
.common.SignaturePolicyEnvelope policy = 5 [json_name = "policy"];
public ChaincodeData.Builder mergePolicy(SignaturePolicyEnvelope value)
Policy endorsement policy for the chaincode instance
.common.SignaturePolicyEnvelope policy = 5 [json_name = "policy"];
public ChaincodeData.Builder clearPolicy()
Policy endorsement policy for the chaincode instance
.common.SignaturePolicyEnvelope policy = 5 [json_name = "policy"];
public SignaturePolicyEnvelope.Builder getPolicyBuilder()
Policy endorsement policy for the chaincode instance
.common.SignaturePolicyEnvelope policy = 5 [json_name = "policy"];
public SignaturePolicyEnvelopeOrBuilder getPolicyOrBuilder()
Policy endorsement policy for the chaincode instance
.common.SignaturePolicyEnvelope policy = 5 [json_name = "policy"];
getPolicyOrBuilder
in interface ChaincodeDataOrBuilder
public com.google.protobuf.ByteString getData()
Data data specific to the package
bytes data = 6 [json_name = "data"];
getData
in interface ChaincodeDataOrBuilder
public ChaincodeData.Builder setData(com.google.protobuf.ByteString value)
Data data specific to the package
bytes data = 6 [json_name = "data"];
value
- The data to set.public ChaincodeData.Builder clearData()
Data data specific to the package
bytes data = 6 [json_name = "data"];
public com.google.protobuf.ByteString getId()
Id of the chaincode that's the unique fingerprint for the CC This is not currently used anywhere but serves as a good eyecatcher
bytes id = 7 [json_name = "id"];
getId
in interface ChaincodeDataOrBuilder
public ChaincodeData.Builder setId(com.google.protobuf.ByteString value)
Id of the chaincode that's the unique fingerprint for the CC This is not currently used anywhere but serves as a good eyecatcher
bytes id = 7 [json_name = "id"];
value
- The id to set.public ChaincodeData.Builder clearId()
Id of the chaincode that's the unique fingerprint for the CC This is not currently used anywhere but serves as a good eyecatcher
bytes id = 7 [json_name = "id"];
public boolean hasInstantiationPolicy()
InstantiationPolicy for the chaincode
.common.SignaturePolicyEnvelope instantiation_policy = 8 [json_name = "instantiationPolicy"];
hasInstantiationPolicy
in interface ChaincodeDataOrBuilder
public SignaturePolicyEnvelope getInstantiationPolicy()
InstantiationPolicy for the chaincode
.common.SignaturePolicyEnvelope instantiation_policy = 8 [json_name = "instantiationPolicy"];
getInstantiationPolicy
in interface ChaincodeDataOrBuilder
public ChaincodeData.Builder setInstantiationPolicy(SignaturePolicyEnvelope value)
InstantiationPolicy for the chaincode
.common.SignaturePolicyEnvelope instantiation_policy = 8 [json_name = "instantiationPolicy"];
public ChaincodeData.Builder setInstantiationPolicy(SignaturePolicyEnvelope.Builder builderForValue)
InstantiationPolicy for the chaincode
.common.SignaturePolicyEnvelope instantiation_policy = 8 [json_name = "instantiationPolicy"];
public ChaincodeData.Builder mergeInstantiationPolicy(SignaturePolicyEnvelope value)
InstantiationPolicy for the chaincode
.common.SignaturePolicyEnvelope instantiation_policy = 8 [json_name = "instantiationPolicy"];
public ChaincodeData.Builder clearInstantiationPolicy()
InstantiationPolicy for the chaincode
.common.SignaturePolicyEnvelope instantiation_policy = 8 [json_name = "instantiationPolicy"];
public SignaturePolicyEnvelope.Builder getInstantiationPolicyBuilder()
InstantiationPolicy for the chaincode
.common.SignaturePolicyEnvelope instantiation_policy = 8 [json_name = "instantiationPolicy"];
public SignaturePolicyEnvelopeOrBuilder getInstantiationPolicyOrBuilder()
InstantiationPolicy for the chaincode
.common.SignaturePolicyEnvelope instantiation_policy = 8 [json_name = "instantiationPolicy"];
getInstantiationPolicyOrBuilder
in interface ChaincodeDataOrBuilder
public final ChaincodeData.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeData.Builder>
public final ChaincodeData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeData.Builder>
Copyright © 2022. All rights reserved.