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 chunk
 
Protobuf type iotics.api.SparqlQueryResponse.Payload
See Also:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getHostId

      public String 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:
      getHostId in interface SparqlQueryResponse.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:
      getHostIdBytes in interface SparqlQueryResponse.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:
      getSeqNum in interface SparqlQueryResponse.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:
      getLast in interface SparqlQueryResponse.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:
      hasStatus in interface SparqlQueryResponse.PayloadOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public Status 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:
      getStatus in interface SparqlQueryResponse.PayloadOrBuilder
      Returns:
      The status.
    • getStatusOrBuilder

      public StatusOrBuilder 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:
      getStatusOrBuilder in interface SparqlQueryResponse.PayloadOrBuilder
    • getContentTypeValue

      public int getContentTypeValue()
       Content type of the result.
       
      .iotics.api.SparqlResultType contentType = 5;
      Specified by:
      getContentTypeValue in interface SparqlQueryResponse.PayloadOrBuilder
      Returns:
      The enum numeric value on the wire for contentType.
    • getContentType

      public SparqlResultType getContentType()
       Content type of the result.
       
      .iotics.api.SparqlResultType contentType = 5;
      Specified by:
      getContentType in interface SparqlQueryResponse.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:
      getResultChunk in interface SparqlQueryResponse.PayloadOrBuilder
      Returns:
      The resultChunk.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static SparqlQueryResponse.Payload parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SparqlQueryResponse.Payload parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SparqlQueryResponse.Payload parseDelimitedFrom(InputStream input) throws IOException
      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

      public SparqlQueryResponse.Payload.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static SparqlQueryResponse.Payload.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected SparqlQueryResponse.Payload.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static SparqlQueryResponse.Payload getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SparqlQueryResponse.Payload> parser()
    • getParserForType

      public com.google.protobuf.Parser<SparqlQueryResponse.Payload> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public SparqlQueryResponse.Payload getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder