Package com.iotics.api
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 chunkProtobuf type
iotics.api.SparqlQueryResponse.Payload-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Content type of the result.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Result host identifier.Indicates whether this is the last chunk from a given host, for a specific request.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Query result chunk, encoded according to actualType.Position of a chunk in result from a given host (and request).Result error status (only applicable to local results).clone()Content type of the result.intContent type of the result.static final com.google.protobuf.Descriptors.Descriptorcom.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.ByteStringQuery result chunk, encoded according to actualType.longPosition of a chunk in result from a given host (and request).Result error status (only applicable to local results).Result error status (only applicable to local results).Result error status (only applicable to local results).booleanResult error status (only applicable to local results).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStatus(Status value) Result error status (only applicable to local results).mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setContentType(SparqlResultType value) Content type of the result.setContentTypeValue(int value) Content type of the result.Result host identifier.setHostIdBytes(com.google.protobuf.ByteString value) Result host identifier.setLast(boolean value) Indicates whether this is the last chunk from a given host, for a specific request.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResultChunk(com.google.protobuf.ByteString value) Query result chunk, encoded according to actualType.setSeqNum(long value) Position of a chunk in result from a given host (and request).Result error status (only applicable to local results).setStatus(Status.Builder builderForValue) Result error status (only applicable to local results).setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<SparqlQueryResponse.Payload.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>
-
setField
public SparqlQueryResponse.Payload.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>
-
clearField
public SparqlQueryResponse.Payload.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>
-
clearOneof
public SparqlQueryResponse.Payload.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>
-
addRepeatedField
public SparqlQueryResponse.Payload.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SparqlQueryResponse.Payload.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SparqlQueryResponse.Payload.Builder>- Throws:
IOException
-
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.
-
setHostId
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
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:
getSeqNumin interfaceSparqlQueryResponse.PayloadOrBuilder- Returns:
- The seqNum.
-
setSeqNum
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:
getLastin interfaceSparqlQueryResponse.PayloadOrBuilder- Returns:
- The last.
-
setLast
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:
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.
-
setStatus
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
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
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
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
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.
-
setContentTypeValue
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
Content type of the result.
.iotics.api.SparqlResultType contentType = 5;- Specified by:
getContentTypein interfaceSparqlQueryResponse.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
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:
getResultChunkin interfaceSparqlQueryResponse.PayloadOrBuilder- Returns:
- The resultChunk.
-
setResultChunk
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>
-
mergeUnknownFields
public final SparqlQueryResponse.Payload.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SparqlQueryResponse.Payload.Builder>
-