public static final class ChaincodeValidation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeValidation.Builder> implements ChaincodeValidationOrBuilder
ChaincodeValidation instructs the peer how transactions for this chaincode should be validated. The only validation mechanism which ships with fabric today is the standard 'vscc' validation mechanism. This built in validation method utilizes an endorsement policy which checks that a sufficient number of signatures have been included. The 'arguement' field encodes any parameters required by the validation implementation.Protobuf type
protos.ChaincodeValidation
Modifier and Type | Method and Description |
---|---|
ChaincodeValidation.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ChaincodeValidation |
build() |
ChaincodeValidation |
buildPartial() |
ChaincodeValidation.Builder |
clear() |
ChaincodeValidation.Builder |
clearArgument()
When 'vscc' a marshaled VSCCArgs
|
ChaincodeValidation.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ChaincodeValidation.Builder |
clearName()
Specifies which code to run to validate transactions, defaults to 'vscc'
|
ChaincodeValidation.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ChaincodeValidation.Builder |
clone() |
com.google.protobuf.ByteString |
getArgument()
When 'vscc' a marshaled VSCCArgs
|
ChaincodeValidation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
Specifies which code to run to validate transactions, defaults to 'vscc'
|
com.google.protobuf.ByteString |
getNameBytes()
Specifies which code to run to validate transactions, defaults to 'vscc'
|
boolean |
isInitialized() |
ChaincodeValidation.Builder |
mergeFrom(ChaincodeValidation other) |
ChaincodeValidation.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ChaincodeValidation.Builder |
mergeFrom(com.google.protobuf.Message other) |
ChaincodeValidation.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ChaincodeValidation.Builder |
setArgument(com.google.protobuf.ByteString value)
When 'vscc' a marshaled VSCCArgs
|
ChaincodeValidation.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ChaincodeValidation.Builder |
setName(String value)
Specifies which code to run to validate transactions, defaults to 'vscc'
|
ChaincodeValidation.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Specifies which code to run to validate transactions, defaults to 'vscc'
|
ChaincodeValidation.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ChaincodeValidation.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 ChaincodeValidation.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<ChaincodeValidation.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<ChaincodeValidation.Builder>
public ChaincodeValidation getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ChaincodeValidation build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ChaincodeValidation buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ChaincodeValidation.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<ChaincodeValidation.Builder>
public ChaincodeValidation.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<ChaincodeValidation.Builder>
public ChaincodeValidation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeValidation.Builder>
public ChaincodeValidation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeValidation.Builder>
public ChaincodeValidation.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<ChaincodeValidation.Builder>
public ChaincodeValidation.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<ChaincodeValidation.Builder>
public ChaincodeValidation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ChaincodeValidation.Builder>
public ChaincodeValidation.Builder mergeFrom(ChaincodeValidation other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeValidation.Builder>
public ChaincodeValidation.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<ChaincodeValidation.Builder>
IOException
public String getName()
Specifies which code to run to validate transactions, defaults to 'vscc'
string name = 1 [json_name = "name"];
getName
in interface ChaincodeValidationOrBuilder
public com.google.protobuf.ByteString getNameBytes()
Specifies which code to run to validate transactions, defaults to 'vscc'
string name = 1 [json_name = "name"];
getNameBytes
in interface ChaincodeValidationOrBuilder
public ChaincodeValidation.Builder setName(String value)
Specifies which code to run to validate transactions, defaults to 'vscc'
string name = 1 [json_name = "name"];
value
- The name to set.public ChaincodeValidation.Builder clearName()
Specifies which code to run to validate transactions, defaults to 'vscc'
string name = 1 [json_name = "name"];
public ChaincodeValidation.Builder setNameBytes(com.google.protobuf.ByteString value)
Specifies which code to run to validate transactions, defaults to 'vscc'
string name = 1 [json_name = "name"];
value
- The bytes for name to set.public com.google.protobuf.ByteString getArgument()
When 'vscc' a marshaled VSCCArgs
bytes argument = 2 [json_name = "argument"];
getArgument
in interface ChaincodeValidationOrBuilder
public ChaincodeValidation.Builder setArgument(com.google.protobuf.ByteString value)
When 'vscc' a marshaled VSCCArgs
bytes argument = 2 [json_name = "argument"];
value
- The argument to set.public ChaincodeValidation.Builder clearArgument()
When 'vscc' a marshaled VSCCArgs
bytes argument = 2 [json_name = "argument"];
public final ChaincodeValidation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeValidation.Builder>
public final ChaincodeValidation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeValidation.Builder>
Copyright © 2022. All rights reserved.