public final class QueryResult extends com.google.protobuf.GeneratedMessageV3 implements QueryResultOrBuilder
QueryResult contains a result for a given Query. The corresponding Query can be inferred by the index of the QueryResult from its enclosing Response message. QueryResults are ordered in the same order as the Queries are ordered in their enclosing Request.Protobuf type
discovery.QueryResult
Modifier and Type | Class and Description |
---|---|
static class |
QueryResult.Builder
QueryResult contains a result for a given Query.
|
static class |
QueryResult.ResultCase |
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 |
CC_QUERY_RES_FIELD_NUMBER |
static int |
CONFIG_RESULT_FIELD_NUMBER |
static int |
ERROR_FIELD_NUMBER |
static int |
MEMBERS_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
ChaincodeQueryResult |
getCcQueryRes()
ChaincodeQueryResult contains information about chaincodes,
and their corresponding endorsers
|
ChaincodeQueryResultOrBuilder |
getCcQueryResOrBuilder()
ChaincodeQueryResult contains information about chaincodes,
and their corresponding endorsers
|
ConfigResult |
getConfigResult()
ConfigResult contains the configuration of the channel,
such as FabricMSPConfig and orderer endpoints
|
ConfigResultOrBuilder |
getConfigResultOrBuilder()
ConfigResult contains the configuration of the channel,
such as FabricMSPConfig and orderer endpoints
|
static QueryResult |
getDefaultInstance() |
QueryResult |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Error |
getError()
Error indicates failure or refusal to process the query
|
ErrorOrBuilder |
getErrorOrBuilder()
Error indicates failure or refusal to process the query
|
PeerMembershipResult |
getMembers()
PeerMembershipResult contains information about peers,
such as their identity, endpoints, and channel related state.
|
PeerMembershipResultOrBuilder |
getMembersOrBuilder()
PeerMembershipResult contains information about peers,
such as their identity, endpoints, and channel related state.
|
com.google.protobuf.Parser<QueryResult> |
getParserForType() |
QueryResult.ResultCase |
getResultCase() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCcQueryRes()
ChaincodeQueryResult contains information about chaincodes,
and their corresponding endorsers
|
boolean |
hasConfigResult()
ConfigResult contains the configuration of the channel,
such as FabricMSPConfig and orderer endpoints
|
boolean |
hasError()
Error indicates failure or refusal to process the query
|
int |
hashCode() |
boolean |
hasMembers()
PeerMembershipResult contains information about peers,
such as their identity, endpoints, and channel related state.
|
boolean |
isInitialized() |
static QueryResult.Builder |
newBuilder() |
static QueryResult.Builder |
newBuilder(QueryResult prototype) |
QueryResult.Builder |
newBuilderForType() |
static QueryResult |
parseDelimitedFrom(InputStream input) |
static QueryResult |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryResult |
parseFrom(byte[] data) |
static QueryResult |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryResult |
parseFrom(ByteBuffer data) |
static QueryResult |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryResult |
parseFrom(com.google.protobuf.ByteString data) |
static QueryResult |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryResult |
parseFrom(com.google.protobuf.CodedInputStream input) |
static QueryResult |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryResult |
parseFrom(InputStream input) |
static QueryResult |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<QueryResult> |
parser() |
QueryResult.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 ERROR_FIELD_NUMBER
public static final int CONFIG_RESULT_FIELD_NUMBER
public static final int CC_QUERY_RES_FIELD_NUMBER
public static final int MEMBERS_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 QueryResult.ResultCase getResultCase()
getResultCase
in interface QueryResultOrBuilder
public boolean hasError()
Error indicates failure or refusal to process the query
.discovery.Error error = 1 [json_name = "error"];
hasError
in interface QueryResultOrBuilder
public Error getError()
Error indicates failure or refusal to process the query
.discovery.Error error = 1 [json_name = "error"];
getError
in interface QueryResultOrBuilder
public ErrorOrBuilder getErrorOrBuilder()
Error indicates failure or refusal to process the query
.discovery.Error error = 1 [json_name = "error"];
getErrorOrBuilder
in interface QueryResultOrBuilder
public boolean hasConfigResult()
ConfigResult contains the configuration of the channel, such as FabricMSPConfig and orderer endpoints
.discovery.ConfigResult config_result = 2 [json_name = "configResult"];
hasConfigResult
in interface QueryResultOrBuilder
public ConfigResult getConfigResult()
ConfigResult contains the configuration of the channel, such as FabricMSPConfig and orderer endpoints
.discovery.ConfigResult config_result = 2 [json_name = "configResult"];
getConfigResult
in interface QueryResultOrBuilder
public ConfigResultOrBuilder getConfigResultOrBuilder()
ConfigResult contains the configuration of the channel, such as FabricMSPConfig and orderer endpoints
.discovery.ConfigResult config_result = 2 [json_name = "configResult"];
getConfigResultOrBuilder
in interface QueryResultOrBuilder
public boolean hasCcQueryRes()
ChaincodeQueryResult contains information about chaincodes, and their corresponding endorsers
.discovery.ChaincodeQueryResult cc_query_res = 3 [json_name = "ccQueryRes"];
hasCcQueryRes
in interface QueryResultOrBuilder
public ChaincodeQueryResult getCcQueryRes()
ChaincodeQueryResult contains information about chaincodes, and their corresponding endorsers
.discovery.ChaincodeQueryResult cc_query_res = 3 [json_name = "ccQueryRes"];
getCcQueryRes
in interface QueryResultOrBuilder
public ChaincodeQueryResultOrBuilder getCcQueryResOrBuilder()
ChaincodeQueryResult contains information about chaincodes, and their corresponding endorsers
.discovery.ChaincodeQueryResult cc_query_res = 3 [json_name = "ccQueryRes"];
getCcQueryResOrBuilder
in interface QueryResultOrBuilder
public boolean hasMembers()
PeerMembershipResult contains information about peers, such as their identity, endpoints, and channel related state.
.discovery.PeerMembershipResult members = 4 [json_name = "members"];
hasMembers
in interface QueryResultOrBuilder
public PeerMembershipResult getMembers()
PeerMembershipResult contains information about peers, such as their identity, endpoints, and channel related state.
.discovery.PeerMembershipResult members = 4 [json_name = "members"];
getMembers
in interface QueryResultOrBuilder
public PeerMembershipResultOrBuilder getMembersOrBuilder()
PeerMembershipResult contains information about peers, such as their identity, endpoints, and channel related state.
.discovery.PeerMembershipResult members = 4 [json_name = "members"];
getMembersOrBuilder
in interface QueryResultOrBuilder
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 QueryResult parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static QueryResult parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static QueryResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static QueryResult parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static QueryResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static QueryResult parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static QueryResult parseFrom(InputStream input) throws IOException
IOException
public static QueryResult parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static QueryResult parseDelimitedFrom(InputStream input) throws IOException
IOException
public static QueryResult parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static QueryResult parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static QueryResult parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public QueryResult.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static QueryResult.Builder newBuilder()
public static QueryResult.Builder newBuilder(QueryResult prototype)
public QueryResult.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
public static QueryResult getDefaultInstance()
public static com.google.protobuf.Parser<QueryResult> parser()
public com.google.protobuf.Parser<QueryResult> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public QueryResult getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2022. All rights reserved.