public static final class ChaincodeAction.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeAction.Builder> implements ChaincodeActionOrBuilder
ChaincodeAction contains the executed chaincode results, response, and event.Protobuf type
protos.ChaincodeAction
Modifier and Type | Method and Description |
---|---|
ChaincodeAction.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ChaincodeAction |
build() |
ChaincodeAction |
buildPartial() |
ChaincodeAction.Builder |
clear() |
ChaincodeAction.Builder |
clearChaincodeId()
This field contains the ChaincodeID of executing this invocation.
|
ChaincodeAction.Builder |
clearEvents()
This field contains the event generated by the chaincode.
|
ChaincodeAction.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ChaincodeAction.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ChaincodeAction.Builder |
clearResponse()
This field contains the result of executing this invocation.
|
ChaincodeAction.Builder |
clearResults()
This field contains the read set and the write set produced by the
chaincode executing this invocation.
|
ChaincodeAction.Builder |
clone() |
ChaincodeID |
getChaincodeId()
This field contains the ChaincodeID of executing this invocation.
|
ChaincodeID.Builder |
getChaincodeIdBuilder()
This field contains the ChaincodeID of executing this invocation.
|
ChaincodeIDOrBuilder |
getChaincodeIdOrBuilder()
This field contains the ChaincodeID of executing this invocation.
|
ChaincodeAction |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getEvents()
This field contains the event generated by the chaincode.
|
Response |
getResponse()
This field contains the result of executing this invocation.
|
Response.Builder |
getResponseBuilder()
This field contains the result of executing this invocation.
|
ResponseOrBuilder |
getResponseOrBuilder()
This field contains the result of executing this invocation.
|
com.google.protobuf.ByteString |
getResults()
This field contains the read set and the write set produced by the
chaincode executing this invocation.
|
boolean |
hasChaincodeId()
This field contains the ChaincodeID of executing this invocation.
|
boolean |
hasResponse()
This field contains the result of executing this invocation.
|
boolean |
isInitialized() |
ChaincodeAction.Builder |
mergeChaincodeId(ChaincodeID value)
This field contains the ChaincodeID of executing this invocation.
|
ChaincodeAction.Builder |
mergeFrom(ChaincodeAction other) |
ChaincodeAction.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ChaincodeAction.Builder |
mergeFrom(com.google.protobuf.Message other) |
ChaincodeAction.Builder |
mergeResponse(Response value)
This field contains the result of executing this invocation.
|
ChaincodeAction.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ChaincodeAction.Builder |
setChaincodeId(ChaincodeID.Builder builderForValue)
This field contains the ChaincodeID of executing this invocation.
|
ChaincodeAction.Builder |
setChaincodeId(ChaincodeID value)
This field contains the ChaincodeID of executing this invocation.
|
ChaincodeAction.Builder |
setEvents(com.google.protobuf.ByteString value)
This field contains the event generated by the chaincode.
|
ChaincodeAction.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ChaincodeAction.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ChaincodeAction.Builder |
setResponse(Response.Builder builderForValue)
This field contains the result of executing this invocation.
|
ChaincodeAction.Builder |
setResponse(Response value)
This field contains the result of executing this invocation.
|
ChaincodeAction.Builder |
setResults(com.google.protobuf.ByteString value)
This field contains the read set and the write set produced by the
chaincode executing this invocation.
|
ChaincodeAction.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 ChaincodeAction.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<ChaincodeAction.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<ChaincodeAction.Builder>
public ChaincodeAction getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ChaincodeAction build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ChaincodeAction buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ChaincodeAction.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<ChaincodeAction.Builder>
public ChaincodeAction.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<ChaincodeAction.Builder>
public ChaincodeAction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeAction.Builder>
public ChaincodeAction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeAction.Builder>
public ChaincodeAction.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<ChaincodeAction.Builder>
public ChaincodeAction.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<ChaincodeAction.Builder>
public ChaincodeAction.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ChaincodeAction.Builder>
public ChaincodeAction.Builder mergeFrom(ChaincodeAction other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeAction.Builder>
public ChaincodeAction.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<ChaincodeAction.Builder>
IOException
public com.google.protobuf.ByteString getResults()
This field contains the read set and the write set produced by the chaincode executing this invocation.
bytes results = 1 [json_name = "results"];
getResults
in interface ChaincodeActionOrBuilder
public ChaincodeAction.Builder setResults(com.google.protobuf.ByteString value)
This field contains the read set and the write set produced by the chaincode executing this invocation.
bytes results = 1 [json_name = "results"];
value
- The results to set.public ChaincodeAction.Builder clearResults()
This field contains the read set and the write set produced by the chaincode executing this invocation.
bytes results = 1 [json_name = "results"];
public com.google.protobuf.ByteString getEvents()
This field contains the event generated by the chaincode. Only a single marshaled ChaincodeEvent is included.
bytes events = 2 [json_name = "events"];
getEvents
in interface ChaincodeActionOrBuilder
public ChaincodeAction.Builder setEvents(com.google.protobuf.ByteString value)
This field contains the event generated by the chaincode. Only a single marshaled ChaincodeEvent is included.
bytes events = 2 [json_name = "events"];
value
- The events to set.public ChaincodeAction.Builder clearEvents()
This field contains the event generated by the chaincode. Only a single marshaled ChaincodeEvent is included.
bytes events = 2 [json_name = "events"];
public boolean hasResponse()
This field contains the result of executing this invocation.
.protos.Response response = 3 [json_name = "response"];
hasResponse
in interface ChaincodeActionOrBuilder
public Response getResponse()
This field contains the result of executing this invocation.
.protos.Response response = 3 [json_name = "response"];
getResponse
in interface ChaincodeActionOrBuilder
public ChaincodeAction.Builder setResponse(Response value)
This field contains the result of executing this invocation.
.protos.Response response = 3 [json_name = "response"];
public ChaincodeAction.Builder setResponse(Response.Builder builderForValue)
This field contains the result of executing this invocation.
.protos.Response response = 3 [json_name = "response"];
public ChaincodeAction.Builder mergeResponse(Response value)
This field contains the result of executing this invocation.
.protos.Response response = 3 [json_name = "response"];
public ChaincodeAction.Builder clearResponse()
This field contains the result of executing this invocation.
.protos.Response response = 3 [json_name = "response"];
public Response.Builder getResponseBuilder()
This field contains the result of executing this invocation.
.protos.Response response = 3 [json_name = "response"];
public ResponseOrBuilder getResponseOrBuilder()
This field contains the result of executing this invocation.
.protos.Response response = 3 [json_name = "response"];
getResponseOrBuilder
in interface ChaincodeActionOrBuilder
public boolean hasChaincodeId()
This field contains the ChaincodeID of executing this invocation. Endorser will set it with the ChaincodeID called by endorser while simulating proposal. Committer will validate the version matching with latest chaincode version. Adding ChaincodeID to keep version opens up the possibility of multiple ChaincodeAction per transaction.
.protos.ChaincodeID chaincode_id = 4 [json_name = "chaincodeId"];
hasChaincodeId
in interface ChaincodeActionOrBuilder
public ChaincodeID getChaincodeId()
This field contains the ChaincodeID of executing this invocation. Endorser will set it with the ChaincodeID called by endorser while simulating proposal. Committer will validate the version matching with latest chaincode version. Adding ChaincodeID to keep version opens up the possibility of multiple ChaincodeAction per transaction.
.protos.ChaincodeID chaincode_id = 4 [json_name = "chaincodeId"];
getChaincodeId
in interface ChaincodeActionOrBuilder
public ChaincodeAction.Builder setChaincodeId(ChaincodeID value)
This field contains the ChaincodeID of executing this invocation. Endorser will set it with the ChaincodeID called by endorser while simulating proposal. Committer will validate the version matching with latest chaincode version. Adding ChaincodeID to keep version opens up the possibility of multiple ChaincodeAction per transaction.
.protos.ChaincodeID chaincode_id = 4 [json_name = "chaincodeId"];
public ChaincodeAction.Builder setChaincodeId(ChaincodeID.Builder builderForValue)
This field contains the ChaincodeID of executing this invocation. Endorser will set it with the ChaincodeID called by endorser while simulating proposal. Committer will validate the version matching with latest chaincode version. Adding ChaincodeID to keep version opens up the possibility of multiple ChaincodeAction per transaction.
.protos.ChaincodeID chaincode_id = 4 [json_name = "chaincodeId"];
public ChaincodeAction.Builder mergeChaincodeId(ChaincodeID value)
This field contains the ChaincodeID of executing this invocation. Endorser will set it with the ChaincodeID called by endorser while simulating proposal. Committer will validate the version matching with latest chaincode version. Adding ChaincodeID to keep version opens up the possibility of multiple ChaincodeAction per transaction.
.protos.ChaincodeID chaincode_id = 4 [json_name = "chaincodeId"];
public ChaincodeAction.Builder clearChaincodeId()
This field contains the ChaincodeID of executing this invocation. Endorser will set it with the ChaincodeID called by endorser while simulating proposal. Committer will validate the version matching with latest chaincode version. Adding ChaincodeID to keep version opens up the possibility of multiple ChaincodeAction per transaction.
.protos.ChaincodeID chaincode_id = 4 [json_name = "chaincodeId"];
public ChaincodeID.Builder getChaincodeIdBuilder()
This field contains the ChaincodeID of executing this invocation. Endorser will set it with the ChaincodeID called by endorser while simulating proposal. Committer will validate the version matching with latest chaincode version. Adding ChaincodeID to keep version opens up the possibility of multiple ChaincodeAction per transaction.
.protos.ChaincodeID chaincode_id = 4 [json_name = "chaincodeId"];
public ChaincodeIDOrBuilder getChaincodeIdOrBuilder()
This field contains the ChaincodeID of executing this invocation. Endorser will set it with the ChaincodeID called by endorser while simulating proposal. Committer will validate the version matching with latest chaincode version. Adding ChaincodeID to keep version opens up the possibility of multiple ChaincodeAction per transaction.
.protos.ChaincodeID chaincode_id = 4 [json_name = "chaincodeId"];
getChaincodeIdOrBuilder
in interface ChaincodeActionOrBuilder
public final ChaincodeAction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeAction.Builder>
public final ChaincodeAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ChaincodeAction.Builder>
Copyright © 2022. All rights reserved.