Class SparqlQueryResponse.Payload.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>
com.iotics.api.SparqlQueryResponse.Payload.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SparqlQueryResponse.PayloadOrBuilder, Cloneable
Enclosing class:
SparqlQueryResponse.Payload

public static final class SparqlQueryResponse.Payload.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder> implements SparqlQueryResponse.PayloadOrBuilder
 Payload of the query result chunk
 
Protobuf type iotics.api.SparqlQueryResponse.Payload
  • Method Details

    • 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.Builder<SparqlQueryResponse.Payload.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>
    • setField

      public SparqlQueryResponse.Payload.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>
    • clearField

      public SparqlQueryResponse.Payload.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>
    • clearOneof

      public SparqlQueryResponse.Payload.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>
    • setRepeatedField

      public SparqlQueryResponse.Payload.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>
    • addRepeatedField

      public SparqlQueryResponse.Payload.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>
    • mergeFrom

      public SparqlQueryResponse.Payload.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SparqlQueryResponse.Payload.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>
    • mergeFrom

      public SparqlQueryResponse.Payload.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SparqlQueryResponse.Payload.Builder>
      Throws:
      IOException
    • 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.
    • setHostId

      public SparqlQueryResponse.Payload.Builder setHostId(String value)
       Result host identifier. Indicates from which host this result chunk came from. For a local result, this field
       will be unset.
       
      string hostId = 1;
      Parameters:
      value - The hostId to set.
      Returns:
      This builder for chaining.
    • clearHostId

       Result host identifier. Indicates from which host this result chunk came from. For a local result, this field
       will be unset.
       
      string hostId = 1;
      Returns:
      This builder for chaining.
    • setHostIdBytes

      public SparqlQueryResponse.Payload.Builder setHostIdBytes(com.google.protobuf.ByteString value)
       Result host identifier. Indicates from which host this result chunk came from. For a local result, this field
       will be unset.
       
      string hostId = 1;
      Parameters:
      value - The bytes for hostId to set.
      Returns:
      This builder for chaining.
    • 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.
    • setSeqNum

      public SparqlQueryResponse.Payload.Builder setSeqNum(long value)
       Position of a chunk in result from a given host (and request). The first chunk has a sequence number of 0.
       
      uint64 seqNum = 2;
      Parameters:
      value - The seqNum to set.
      Returns:
      This builder for chaining.
    • clearSeqNum

       Position of a chunk in result from a given host (and request). The first chunk has a sequence number of 0.
       
      uint64 seqNum = 2;
      Returns:
      This builder for chaining.
    • 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.
    • setLast

      public SparqlQueryResponse.Payload.Builder setLast(boolean value)
       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;
      Parameters:
      value - The last to set.
      Returns:
      This builder for chaining.
    • clearLast

       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;
      Returns:
      This builder for chaining.
    • 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.
    • setStatus

      public SparqlQueryResponse.Payload.Builder setStatus(Status value)
       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;
    • setStatus

      public SparqlQueryResponse.Payload.Builder setStatus(Status.Builder builderForValue)
       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;
    • mergeStatus

      public SparqlQueryResponse.Payload.Builder mergeStatus(Status value)
       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;
    • clearStatus

       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;
    • getStatusBuilder

      public Status.Builder getStatusBuilder()
       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;
    • 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.
    • setContentTypeValue

      public SparqlQueryResponse.Payload.Builder setContentTypeValue(int value)
       Content type of the result.
       
      .iotics.api.SparqlResultType contentType = 5;
      Parameters:
      value - The enum numeric value on the wire for contentType to set.
      Returns:
      This builder for chaining.
    • getContentType

      public SparqlResultType getContentType()
       Content type of the result.
       
      .iotics.api.SparqlResultType contentType = 5;
      Specified by:
      getContentType in interface SparqlQueryResponse.PayloadOrBuilder
      Returns:
      The contentType.
    • setContentType

       Content type of the result.
       
      .iotics.api.SparqlResultType contentType = 5;
      Parameters:
      value - The contentType to set.
      Returns:
      This builder for chaining.
    • clearContentType

      public SparqlQueryResponse.Payload.Builder clearContentType()
       Content type of the result.
       
      .iotics.api.SparqlResultType contentType = 5;
      Returns:
      This builder for chaining.
    • 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.
    • setResultChunk

      public SparqlQueryResponse.Payload.Builder setResultChunk(com.google.protobuf.ByteString value)
       Query result chunk, encoded according to actualType.
       Note that:
       - The maximum size of each chunk is host-specific.
       
      bytes resultChunk = 6;
      Parameters:
      value - The resultChunk to set.
      Returns:
      This builder for chaining.
    • clearResultChunk

      public SparqlQueryResponse.Payload.Builder clearResultChunk()
       Query result chunk, encoded according to actualType.
       Note that:
       - The maximum size of each chunk is host-specific.
       
      bytes resultChunk = 6;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final SparqlQueryResponse.Payload.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>
    • mergeUnknownFields

      public final SparqlQueryResponse.Payload.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>