public static final class ProposalResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ProposalResponse.Builder> implements ProposalResponseOrBuilder
A ProposalResponse is returned from an endorser to the proposal submitter. The idea is that this message contains the endorser's response to the request of a client to perform an action over a chaincode (or more generically on the ledger); the response might be success/error (conveyed in the Response field) together with a description of the action and a signature over it by that endorser. If a sufficient number of distinct endorsers agree on the same action and produce signature to that effect, a transaction can be generated and sent for ordering.Protobuf type
protos.ProposalResponse
Modifier and Type | Method and Description |
---|---|
ProposalResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ProposalResponse |
build() |
ProposalResponse |
buildPartial() |
ProposalResponse.Builder |
clear() |
ProposalResponse.Builder |
clearEndorsement()
The endorsement of the proposal, basically
the endorser's signature over the payload
|
ProposalResponse.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ProposalResponse.Builder |
clearInterest()
The chaincode interest derived from simulating the proposal.
|
ProposalResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ProposalResponse.Builder |
clearPayload()
The payload of response.
|
ProposalResponse.Builder |
clearResponse()
A response message indicating whether the
endorsement of the action was successful
|
ProposalResponse.Builder |
clearTimestamp()
Timestamp is the time that the message
was created as defined by the sender
|
ProposalResponse.Builder |
clearVersion()
Version indicates message protocol version
|
ProposalResponse.Builder |
clone() |
ProposalResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Endorsement |
getEndorsement()
The endorsement of the proposal, basically
the endorser's signature over the payload
|
Endorsement.Builder |
getEndorsementBuilder()
The endorsement of the proposal, basically
the endorser's signature over the payload
|
EndorsementOrBuilder |
getEndorsementOrBuilder()
The endorsement of the proposal, basically
the endorser's signature over the payload
|
ChaincodeInterest |
getInterest()
The chaincode interest derived from simulating the proposal.
|
ChaincodeInterest.Builder |
getInterestBuilder()
The chaincode interest derived from simulating the proposal.
|
ChaincodeInterestOrBuilder |
getInterestOrBuilder()
The chaincode interest derived from simulating the proposal.
|
com.google.protobuf.ByteString |
getPayload()
The payload of response.
|
Response |
getResponse()
A response message indicating whether the
endorsement of the action was successful
|
Response.Builder |
getResponseBuilder()
A response message indicating whether the
endorsement of the action was successful
|
ResponseOrBuilder |
getResponseOrBuilder()
A response message indicating whether the
endorsement of the action was successful
|
com.google.protobuf.Timestamp |
getTimestamp()
Timestamp is the time that the message
was created as defined by the sender
|
com.google.protobuf.Timestamp.Builder |
getTimestampBuilder()
Timestamp is the time that the message
was created as defined by the sender
|
com.google.protobuf.TimestampOrBuilder |
getTimestampOrBuilder()
Timestamp is the time that the message
was created as defined by the sender
|
int |
getVersion()
Version indicates message protocol version
|
boolean |
hasEndorsement()
The endorsement of the proposal, basically
the endorser's signature over the payload
|
boolean |
hasInterest()
The chaincode interest derived from simulating the proposal.
|
boolean |
hasResponse()
A response message indicating whether the
endorsement of the action was successful
|
boolean |
hasTimestamp()
Timestamp is the time that the message
was created as defined by the sender
|
boolean |
isInitialized() |
ProposalResponse.Builder |
mergeEndorsement(Endorsement value)
The endorsement of the proposal, basically
the endorser's signature over the payload
|
ProposalResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ProposalResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
ProposalResponse.Builder |
mergeFrom(ProposalResponse other) |
ProposalResponse.Builder |
mergeInterest(ChaincodeInterest value)
The chaincode interest derived from simulating the proposal.
|
ProposalResponse.Builder |
mergeResponse(Response value)
A response message indicating whether the
endorsement of the action was successful
|
ProposalResponse.Builder |
mergeTimestamp(com.google.protobuf.Timestamp value)
Timestamp is the time that the message
was created as defined by the sender
|
ProposalResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ProposalResponse.Builder |
setEndorsement(Endorsement.Builder builderForValue)
The endorsement of the proposal, basically
the endorser's signature over the payload
|
ProposalResponse.Builder |
setEndorsement(Endorsement value)
The endorsement of the proposal, basically
the endorser's signature over the payload
|
ProposalResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ProposalResponse.Builder |
setInterest(ChaincodeInterest.Builder builderForValue)
The chaincode interest derived from simulating the proposal.
|
ProposalResponse.Builder |
setInterest(ChaincodeInterest value)
The chaincode interest derived from simulating the proposal.
|
ProposalResponse.Builder |
setPayload(com.google.protobuf.ByteString value)
The payload of response.
|
ProposalResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ProposalResponse.Builder |
setResponse(Response.Builder builderForValue)
A response message indicating whether the
endorsement of the action was successful
|
ProposalResponse.Builder |
setResponse(Response value)
A response message indicating whether the
endorsement of the action was successful
|
ProposalResponse.Builder |
setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
Timestamp is the time that the message
was created as defined by the sender
|
ProposalResponse.Builder |
setTimestamp(com.google.protobuf.Timestamp value)
Timestamp is the time that the message
was created as defined by the sender
|
ProposalResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ProposalResponse.Builder |
setVersion(int value)
Version indicates message protocol version
|
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 ProposalResponse.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<ProposalResponse.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<ProposalResponse.Builder>
public ProposalResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ProposalResponse build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ProposalResponse buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ProposalResponse.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<ProposalResponse.Builder>
public ProposalResponse.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<ProposalResponse.Builder>
public ProposalResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<ProposalResponse.Builder>
public ProposalResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<ProposalResponse.Builder>
public ProposalResponse.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<ProposalResponse.Builder>
public ProposalResponse.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<ProposalResponse.Builder>
public ProposalResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ProposalResponse.Builder>
public ProposalResponse.Builder mergeFrom(ProposalResponse other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<ProposalResponse.Builder>
public ProposalResponse.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<ProposalResponse.Builder>
IOException
public int getVersion()
Version indicates message protocol version
int32 version = 1 [json_name = "version"];
getVersion
in interface ProposalResponseOrBuilder
public ProposalResponse.Builder setVersion(int value)
Version indicates message protocol version
int32 version = 1 [json_name = "version"];
value
- The version to set.public ProposalResponse.Builder clearVersion()
Version indicates message protocol version
int32 version = 1 [json_name = "version"];
public boolean hasTimestamp()
Timestamp is the time that the message was created as defined by the sender
.google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"];
hasTimestamp
in interface ProposalResponseOrBuilder
public com.google.protobuf.Timestamp getTimestamp()
Timestamp is the time that the message was created as defined by the sender
.google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"];
getTimestamp
in interface ProposalResponseOrBuilder
public ProposalResponse.Builder setTimestamp(com.google.protobuf.Timestamp value)
Timestamp is the time that the message was created as defined by the sender
.google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"];
public ProposalResponse.Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
Timestamp is the time that the message was created as defined by the sender
.google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"];
public ProposalResponse.Builder mergeTimestamp(com.google.protobuf.Timestamp value)
Timestamp is the time that the message was created as defined by the sender
.google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"];
public ProposalResponse.Builder clearTimestamp()
Timestamp is the time that the message was created as defined by the sender
.google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"];
public com.google.protobuf.Timestamp.Builder getTimestampBuilder()
Timestamp is the time that the message was created as defined by the sender
.google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"];
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
Timestamp is the time that the message was created as defined by the sender
.google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"];
getTimestampOrBuilder
in interface ProposalResponseOrBuilder
public boolean hasResponse()
A response message indicating whether the endorsement of the action was successful
.protos.Response response = 4 [json_name = "response"];
hasResponse
in interface ProposalResponseOrBuilder
public Response getResponse()
A response message indicating whether the endorsement of the action was successful
.protos.Response response = 4 [json_name = "response"];
getResponse
in interface ProposalResponseOrBuilder
public ProposalResponse.Builder setResponse(Response value)
A response message indicating whether the endorsement of the action was successful
.protos.Response response = 4 [json_name = "response"];
public ProposalResponse.Builder setResponse(Response.Builder builderForValue)
A response message indicating whether the endorsement of the action was successful
.protos.Response response = 4 [json_name = "response"];
public ProposalResponse.Builder mergeResponse(Response value)
A response message indicating whether the endorsement of the action was successful
.protos.Response response = 4 [json_name = "response"];
public ProposalResponse.Builder clearResponse()
A response message indicating whether the endorsement of the action was successful
.protos.Response response = 4 [json_name = "response"];
public Response.Builder getResponseBuilder()
A response message indicating whether the endorsement of the action was successful
.protos.Response response = 4 [json_name = "response"];
public ResponseOrBuilder getResponseOrBuilder()
A response message indicating whether the endorsement of the action was successful
.protos.Response response = 4 [json_name = "response"];
getResponseOrBuilder
in interface ProposalResponseOrBuilder
public com.google.protobuf.ByteString getPayload()
The payload of response. It is the bytes of ProposalResponsePayload
bytes payload = 5 [json_name = "payload"];
getPayload
in interface ProposalResponseOrBuilder
public ProposalResponse.Builder setPayload(com.google.protobuf.ByteString value)
The payload of response. It is the bytes of ProposalResponsePayload
bytes payload = 5 [json_name = "payload"];
value
- The payload to set.public ProposalResponse.Builder clearPayload()
The payload of response. It is the bytes of ProposalResponsePayload
bytes payload = 5 [json_name = "payload"];
public boolean hasEndorsement()
The endorsement of the proposal, basically the endorser's signature over the payload
.protos.Endorsement endorsement = 6 [json_name = "endorsement"];
hasEndorsement
in interface ProposalResponseOrBuilder
public Endorsement getEndorsement()
The endorsement of the proposal, basically the endorser's signature over the payload
.protos.Endorsement endorsement = 6 [json_name = "endorsement"];
getEndorsement
in interface ProposalResponseOrBuilder
public ProposalResponse.Builder setEndorsement(Endorsement value)
The endorsement of the proposal, basically the endorser's signature over the payload
.protos.Endorsement endorsement = 6 [json_name = "endorsement"];
public ProposalResponse.Builder setEndorsement(Endorsement.Builder builderForValue)
The endorsement of the proposal, basically the endorser's signature over the payload
.protos.Endorsement endorsement = 6 [json_name = "endorsement"];
public ProposalResponse.Builder mergeEndorsement(Endorsement value)
The endorsement of the proposal, basically the endorser's signature over the payload
.protos.Endorsement endorsement = 6 [json_name = "endorsement"];
public ProposalResponse.Builder clearEndorsement()
The endorsement of the proposal, basically the endorser's signature over the payload
.protos.Endorsement endorsement = 6 [json_name = "endorsement"];
public Endorsement.Builder getEndorsementBuilder()
The endorsement of the proposal, basically the endorser's signature over the payload
.protos.Endorsement endorsement = 6 [json_name = "endorsement"];
public EndorsementOrBuilder getEndorsementOrBuilder()
The endorsement of the proposal, basically the endorser's signature over the payload
.protos.Endorsement endorsement = 6 [json_name = "endorsement"];
getEndorsementOrBuilder
in interface ProposalResponseOrBuilder
public boolean hasInterest()
The chaincode interest derived from simulating the proposal.
.protos.ChaincodeInterest interest = 7 [json_name = "interest"];
hasInterest
in interface ProposalResponseOrBuilder
public ChaincodeInterest getInterest()
The chaincode interest derived from simulating the proposal.
.protos.ChaincodeInterest interest = 7 [json_name = "interest"];
getInterest
in interface ProposalResponseOrBuilder
public ProposalResponse.Builder setInterest(ChaincodeInterest value)
The chaincode interest derived from simulating the proposal.
.protos.ChaincodeInterest interest = 7 [json_name = "interest"];
public ProposalResponse.Builder setInterest(ChaincodeInterest.Builder builderForValue)
The chaincode interest derived from simulating the proposal.
.protos.ChaincodeInterest interest = 7 [json_name = "interest"];
public ProposalResponse.Builder mergeInterest(ChaincodeInterest value)
The chaincode interest derived from simulating the proposal.
.protos.ChaincodeInterest interest = 7 [json_name = "interest"];
public ProposalResponse.Builder clearInterest()
The chaincode interest derived from simulating the proposal.
.protos.ChaincodeInterest interest = 7 [json_name = "interest"];
public ChaincodeInterest.Builder getInterestBuilder()
The chaincode interest derived from simulating the proposal.
.protos.ChaincodeInterest interest = 7 [json_name = "interest"];
public ChaincodeInterestOrBuilder getInterestOrBuilder()
The chaincode interest derived from simulating the proposal.
.protos.ChaincodeInterest interest = 7 [json_name = "interest"];
getInterestOrBuilder
in interface ProposalResponseOrBuilder
public final ProposalResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ProposalResponse.Builder>
public final ProposalResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ProposalResponse.Builder>
Copyright © 2022. All rights reserved.