Package com.iotics.api
Class SparqlQueryResponse.Payload
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.iotics.api.SparqlQueryResponse.Payload
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SparqlQueryResponse.PayloadOrBuilder,Serializable
- Enclosing class:
- SparqlQueryResponse
public static final class SparqlQueryResponse.Payload
extends com.google.protobuf.GeneratedMessageV3
implements SparqlQueryResponse.PayloadOrBuilder
Payload of the query result chunkProtobuf type
iotics.api.SparqlQueryResponse.Payload- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classPayload of the query result chunkNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, 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, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanContent type of the result.intContent type of the result.static SparqlQueryResponse.Payloadstatic final com.google.protobuf.Descriptors.DescriptorResult host identifier.com.google.protobuf.ByteStringResult host identifier.booleangetLast()Indicates whether this is the last chunk from a given host, for a specific request.com.google.protobuf.Parser<SparqlQueryResponse.Payload>com.google.protobuf.ByteStringQuery result chunk, encoded according to actualType.longPosition of a chunk in result from a given host (and request).intResult error status (only applicable to local results).Result error status (only applicable to local results).final com.google.protobuf.UnknownFieldSetinthashCode()booleanResult error status (only applicable to local results).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(SparqlQueryResponse.Payload prototype) protected SparqlQueryResponse.Payload.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static SparqlQueryResponse.PayloadparseDelimitedFrom(InputStream input) static SparqlQueryResponse.PayloadparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SparqlQueryResponse.PayloadparseFrom(byte[] data) static SparqlQueryResponse.PayloadparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SparqlQueryResponse.PayloadparseFrom(com.google.protobuf.ByteString data) static SparqlQueryResponse.PayloadparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SparqlQueryResponse.PayloadparseFrom(com.google.protobuf.CodedInputStream input) static SparqlQueryResponse.PayloadparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SparqlQueryResponse.PayloadparseFrom(InputStream input) static SparqlQueryResponse.PayloadparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SparqlQueryResponse.PayloadparseFrom(ByteBuffer data) static SparqlQueryResponse.PayloadparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SparqlQueryResponse.Payload>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
HOSTID_FIELD_NUMBER
public static final int HOSTID_FIELD_NUMBER- See Also:
-
SEQNUM_FIELD_NUMBER
public static final int SEQNUM_FIELD_NUMBER- See Also:
-
LAST_FIELD_NUMBER
public static final int LAST_FIELD_NUMBER- See Also:
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER- See Also:
-
CONTENTTYPE_FIELD_NUMBER
public static final int CONTENTTYPE_FIELD_NUMBER- See Also:
-
RESULTCHUNK_FIELD_NUMBER
public static final int RESULTCHUNK_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getHostId
Result host identifier. Indicates from which host this result chunk came from. For a local result, this field will be unset.
string hostId = 1;- Specified by:
getHostIdin interfaceSparqlQueryResponse.PayloadOrBuilder- Returns:
- The hostId.
-
getHostIdBytes
public com.google.protobuf.ByteString getHostIdBytes()Result host identifier. Indicates from which host this result chunk came from. For a local result, this field will be unset.
string hostId = 1;- Specified by:
getHostIdBytesin interfaceSparqlQueryResponse.PayloadOrBuilder- Returns:
- The bytes for hostId.
-
getSeqNum
public long getSeqNum()Position of a chunk in result from a given host (and request). The first chunk has a sequence number of 0.
uint64 seqNum = 2;- Specified by:
getSeqNumin interfaceSparqlQueryResponse.PayloadOrBuilder- Returns:
- The seqNum.
-
getLast
public boolean getLast()Indicates whether this is the last chunk from a given host, for a specific request. Results for different requests can be identified by setting a unique clientRef in the request headers.
bool last = 3;- Specified by:
getLastin interfaceSparqlQueryResponse.PayloadOrBuilder- Returns:
- The last.
-
hasStatus
public boolean hasStatus()Result error status (only applicable to local results). If set, this will indicate a problem with running the query (e.g. invalid syntax or content type) as opposed to a more general issue (in which case the standard gRPC error mechanism will be used and the stream terminated).
.google.rpc.Status status = 4;- Specified by:
hasStatusin interfaceSparqlQueryResponse.PayloadOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
Result error status (only applicable to local results). If set, this will indicate a problem with running the query (e.g. invalid syntax or content type) as opposed to a more general issue (in which case the standard gRPC error mechanism will be used and the stream terminated).
.google.rpc.Status status = 4;- Specified by:
getStatusin interfaceSparqlQueryResponse.PayloadOrBuilder- Returns:
- The status.
-
getStatusOrBuilder
Result error status (only applicable to local results). If set, this will indicate a problem with running the query (e.g. invalid syntax or content type) as opposed to a more general issue (in which case the standard gRPC error mechanism will be used and the stream terminated).
.google.rpc.Status status = 4;- Specified by:
getStatusOrBuilderin interfaceSparqlQueryResponse.PayloadOrBuilder
-
getContentTypeValue
public int getContentTypeValue()Content type of the result.
.iotics.api.SparqlResultType contentType = 5;- Specified by:
getContentTypeValuein interfaceSparqlQueryResponse.PayloadOrBuilder- Returns:
- The enum numeric value on the wire for contentType.
-
getContentType
Content type of the result.
.iotics.api.SparqlResultType contentType = 5;- Specified by:
getContentTypein interfaceSparqlQueryResponse.PayloadOrBuilder- Returns:
- The contentType.
-
getResultChunk
public com.google.protobuf.ByteString getResultChunk()Query result chunk, encoded according to actualType. Note that: - The maximum size of each chunk is host-specific.
bytes resultChunk = 6;- Specified by:
getResultChunkin interfaceSparqlQueryResponse.PayloadOrBuilder- Returns:
- The resultChunk.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SparqlQueryResponse.Payload parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SparqlQueryResponse.Payload parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SparqlQueryResponse.Payload parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SparqlQueryResponse.Payload parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SparqlQueryResponse.Payload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SparqlQueryResponse.Payload parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SparqlQueryResponse.Payload parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SparqlQueryResponse.Payload parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SparqlQueryResponse.Payload parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SparqlQueryResponse.Payload parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SparqlQueryResponse.Payload.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-