public static final class ChaincodeActionPayload.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeActionPayload.Builder> implements ChaincodeActionPayloadOrBuilder
ChaincodeActionPayload is the message to be used for the TransactionAction's payload when the Header's type is set to CHAINCODE. It carries the chaincodeProposalPayload and an endorsed action to apply to the ledger.Protobuf type
protos.ChaincodeActionPayload
Modifier and Type | Method and Description |
---|---|
ChaincodeActionPayload.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ChaincodeActionPayload |
build() |
ChaincodeActionPayload |
buildPartial() |
ChaincodeActionPayload.Builder |
clear() |
ChaincodeActionPayload.Builder |
clearAction()
The list of actions to apply to the ledger
|
ChaincodeActionPayload.Builder |
clearChaincodeProposalPayload()
This field contains the bytes of the ChaincodeProposalPayload message from
the original invocation (essentially the arguments) after the application
of the visibility function.
|
ChaincodeActionPayload.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ChaincodeActionPayload.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ChaincodeActionPayload.Builder |
clone() |
ChaincodeEndorsedAction |
getAction()
The list of actions to apply to the ledger
|
ChaincodeEndorsedAction.Builder |
getActionBuilder()
The list of actions to apply to the ledger
|
ChaincodeEndorsedActionOrBuilder |
getActionOrBuilder()
The list of actions to apply to the ledger
|
com.google.protobuf.ByteString |
getChaincodeProposalPayload()
This field contains the bytes of the ChaincodeProposalPayload message from
the original invocation (essentially the arguments) after the application
of the visibility function.
|
ChaincodeActionPayload |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
hasAction()
The list of actions to apply to the ledger
|
boolean |
isInitialized() |
ChaincodeActionPayload.Builder |
mergeAction(ChaincodeEndorsedAction value)
The list of actions to apply to the ledger
|
ChaincodeActionPayload.Builder |
mergeFrom(ChaincodeActionPayload other) |
ChaincodeActionPayload.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ChaincodeActionPayload.Builder |
mergeFrom(com.google.protobuf.Message other) |
ChaincodeActionPayload.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ChaincodeActionPayload.Builder |
setAction(ChaincodeEndorsedAction.Builder builderForValue)
The list of actions to apply to the ledger
|
ChaincodeActionPayload.Builder |
setAction(ChaincodeEndorsedAction value)
The list of actions to apply to the ledger
|
ChaincodeActionPayload.Builder |
setChaincodeProposalPayload(com.google.protobuf.ByteString value)
This field contains the bytes of the ChaincodeProposalPayload message from
the original invocation (essentially the arguments) after the application
of the visibility function.
|
ChaincodeActionPayload.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ChaincodeActionPayload.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ChaincodeActionPayload.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 ChaincodeActionPayload.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<ChaincodeActionPayload.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<ChaincodeActionPayload.Builder>
public ChaincodeActionPayload getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ChaincodeActionPayload build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ChaincodeActionPayload buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ChaincodeActionPayload.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<ChaincodeActionPayload.Builder>
public ChaincodeActionPayload.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<ChaincodeActionPayload.Builder>
public ChaincodeActionPayload.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeActionPayload.Builder>
public ChaincodeActionPayload.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeActionPayload.Builder>
public ChaincodeActionPayload.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<ChaincodeActionPayload.Builder>
public ChaincodeActionPayload.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<ChaincodeActionPayload.Builder>
public ChaincodeActionPayload.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ChaincodeActionPayload.Builder>
public ChaincodeActionPayload.Builder mergeFrom(ChaincodeActionPayload other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeActionPayload.Builder>
public ChaincodeActionPayload.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<ChaincodeActionPayload.Builder>
IOException
public com.google.protobuf.ByteString getChaincodeProposalPayload()
This field contains the bytes of the ChaincodeProposalPayload message from the original invocation (essentially the arguments) after the application of the visibility function. The main visibility modes are "full" (the entire ChaincodeProposalPayload message is included here), "hash" (only the hash of the ChaincodeProposalPayload message is included) or "nothing". This field will be used to check the consistency of ProposalResponsePayload.proposalHash. For the CHAINCODE type, ProposalResponsePayload.proposalHash is supposed to be H(ProposalHeader || f(ChaincodeProposalPayload)) where f is the visibility function.
bytes chaincode_proposal_payload = 1 [json_name = "chaincodeProposalPayload"];
getChaincodeProposalPayload
in interface ChaincodeActionPayloadOrBuilder
public ChaincodeActionPayload.Builder setChaincodeProposalPayload(com.google.protobuf.ByteString value)
This field contains the bytes of the ChaincodeProposalPayload message from the original invocation (essentially the arguments) after the application of the visibility function. The main visibility modes are "full" (the entire ChaincodeProposalPayload message is included here), "hash" (only the hash of the ChaincodeProposalPayload message is included) or "nothing". This field will be used to check the consistency of ProposalResponsePayload.proposalHash. For the CHAINCODE type, ProposalResponsePayload.proposalHash is supposed to be H(ProposalHeader || f(ChaincodeProposalPayload)) where f is the visibility function.
bytes chaincode_proposal_payload = 1 [json_name = "chaincodeProposalPayload"];
value
- The chaincodeProposalPayload to set.public ChaincodeActionPayload.Builder clearChaincodeProposalPayload()
This field contains the bytes of the ChaincodeProposalPayload message from the original invocation (essentially the arguments) after the application of the visibility function. The main visibility modes are "full" (the entire ChaincodeProposalPayload message is included here), "hash" (only the hash of the ChaincodeProposalPayload message is included) or "nothing". This field will be used to check the consistency of ProposalResponsePayload.proposalHash. For the CHAINCODE type, ProposalResponsePayload.proposalHash is supposed to be H(ProposalHeader || f(ChaincodeProposalPayload)) where f is the visibility function.
bytes chaincode_proposal_payload = 1 [json_name = "chaincodeProposalPayload"];
public boolean hasAction()
The list of actions to apply to the ledger
.protos.ChaincodeEndorsedAction action = 2 [json_name = "action"];
hasAction
in interface ChaincodeActionPayloadOrBuilder
public ChaincodeEndorsedAction getAction()
The list of actions to apply to the ledger
.protos.ChaincodeEndorsedAction action = 2 [json_name = "action"];
getAction
in interface ChaincodeActionPayloadOrBuilder
public ChaincodeActionPayload.Builder setAction(ChaincodeEndorsedAction value)
The list of actions to apply to the ledger
.protos.ChaincodeEndorsedAction action = 2 [json_name = "action"];
public ChaincodeActionPayload.Builder setAction(ChaincodeEndorsedAction.Builder builderForValue)
The list of actions to apply to the ledger
.protos.ChaincodeEndorsedAction action = 2 [json_name = "action"];
public ChaincodeActionPayload.Builder mergeAction(ChaincodeEndorsedAction value)
The list of actions to apply to the ledger
.protos.ChaincodeEndorsedAction action = 2 [json_name = "action"];
public ChaincodeActionPayload.Builder clearAction()
The list of actions to apply to the ledger
.protos.ChaincodeEndorsedAction action = 2 [json_name = "action"];
public ChaincodeEndorsedAction.Builder getActionBuilder()
The list of actions to apply to the ledger
.protos.ChaincodeEndorsedAction action = 2 [json_name = "action"];
public ChaincodeEndorsedActionOrBuilder getActionOrBuilder()
The list of actions to apply to the ledger
.protos.ChaincodeEndorsedAction action = 2 [json_name = "action"];
getActionOrBuilder
in interface ChaincodeActionPayloadOrBuilder
public final ChaincodeActionPayload.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeActionPayload.Builder>
public final ChaincodeActionPayload.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeActionPayload.Builder>
Copyright © 2022. All rights reserved.