public final class ProposalResponse extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
---|---|
static class |
ProposalResponse.Builder
A ProposalResponse is returned from an endorser to the proposal submitter.
|
com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
ENDORSEMENT_FIELD_NUMBER |
static int |
INTEREST_FIELD_NUMBER |
static int |
PAYLOAD_FIELD_NUMBER |
static int |
RESPONSE_FIELD_NUMBER |
static int |
TIMESTAMP_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static ProposalResponse |
getDefaultInstance() |
ProposalResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Endorsement |
getEndorsement()
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.
|
ChaincodeInterestOrBuilder |
getInterestOrBuilder()
The chaincode interest derived from simulating the proposal.
|
com.google.protobuf.Parser<ProposalResponse> |
getParserForType() |
com.google.protobuf.ByteString |
getPayload()
The payload of response.
|
Response |
getResponse()
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
|
int |
getSerializedSize() |
com.google.protobuf.Timestamp |
getTimestamp()
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
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
getVersion()
Version indicates message protocol version
|
boolean |
hasEndorsement()
The endorsement of the proposal, basically
the endorser's signature over the payload
|
int |
hashCode() |
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() |
static ProposalResponse.Builder |
newBuilder() |
static ProposalResponse.Builder |
newBuilder(ProposalResponse prototype) |
ProposalResponse.Builder |
newBuilderForType() |
static ProposalResponse |
parseDelimitedFrom(InputStream input) |
static ProposalResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProposalResponse |
parseFrom(byte[] data) |
static ProposalResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProposalResponse |
parseFrom(ByteBuffer data) |
static ProposalResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProposalResponse |
parseFrom(com.google.protobuf.ByteString data) |
static ProposalResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProposalResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ProposalResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProposalResponse |
parseFrom(InputStream input) |
static ProposalResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ProposalResponse> |
parser() |
ProposalResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
findInitializationErrors, getInitializationErrorString, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int VERSION_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
public static final int RESPONSE_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
public static final int ENDORSEMENT_FIELD_NUMBER
public static final int INTEREST_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public int getVersion()
Version indicates message protocol version
int32 version = 1 [json_name = "version"];
getVersion
in interface ProposalResponseOrBuilder
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 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 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 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 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 ChaincodeInterestOrBuilder getInterestOrBuilder()
The chaincode interest derived from simulating the proposal.
.protos.ChaincodeInterest interest = 7 [json_name = "interest"];
getInterestOrBuilder
in interface ProposalResponseOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static ProposalResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ProposalResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ProposalResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ProposalResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ProposalResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ProposalResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ProposalResponse parseFrom(InputStream input) throws IOException
IOException
public static ProposalResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ProposalResponse parseDelimitedFrom(InputStream input) throws IOException
IOException
public static ProposalResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ProposalResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static ProposalResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public ProposalResponse.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static ProposalResponse.Builder newBuilder()
public static ProposalResponse.Builder newBuilder(ProposalResponse prototype)
public ProposalResponse.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
public static ProposalResponse getDefaultInstance()
public static com.google.protobuf.Parser<ProposalResponse> parser()
public com.google.protobuf.Parser<ProposalResponse> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public ProposalResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2022. All rights reserved.