Package viam.app.data.v1
Class Data.DataRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<Data.DataRequest,Data.DataRequest.Builder>
viam.app.data.v1.Data.DataRequest
- All Implemented Interfaces:
com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,Data.DataRequestOrBuilder
- Enclosing class:
- Data
public static final class Data.DataRequest
extends com.google.protobuf.GeneratedMessageLite<Data.DataRequest,Data.DataRequest.Builder>
implements Data.DataRequestOrBuilder
DataRequest encapsulates the filter for the data, a limit on the maximum results returned, a last string associated with the last returned document, and the sorting order by time. last is returned in the responses TabularDataByFilterResponse and BinaryDataByFilterResponse from the API calls TabularDataByFilter and BinaryDataByFilter, respectively. We can then use the last string from the previous API calls in the subsequent request to get the next set of ordered documents.Protobuf type
viam.app.data.v1.DataRequest
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
DataRequest encapsulates the filter for the data, a limit on the maximum results returned, a last string associated with the last returned document, and the sorting order by time.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,
?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFields
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionprotected final Object
dynamicMethod
(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static Data.DataRequest
.viam.app.data.v1.Filter filter = 1 [json_name = "filter"];
getLast()
string last = 3 [json_name = "last"];
com.google.protobuf.ByteString
string last = 3 [json_name = "last"];
long
getLimit()
uint64 limit = 2 [json_name = "limit"];
.viam.app.data.v1.Order sort_order = 4 [json_name = "sortOrder"];
int
.viam.app.data.v1.Order sort_order = 4 [json_name = "sortOrder"];
boolean
.viam.app.data.v1.Filter filter = 1 [json_name = "filter"];
static Data.DataRequest.Builder
static Data.DataRequest.Builder
newBuilder
(Data.DataRequest prototype) static Data.DataRequest
parseDelimitedFrom
(InputStream input) static Data.DataRequest
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Data.DataRequest
parseFrom
(byte[] data) static Data.DataRequest
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Data.DataRequest
parseFrom
(com.google.protobuf.ByteString data) static Data.DataRequest
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Data.DataRequest
parseFrom
(com.google.protobuf.CodedInputStream input) static Data.DataRequest
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Data.DataRequest
parseFrom
(InputStream input) static Data.DataRequest
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Data.DataRequest
parseFrom
(ByteBuffer data) static Data.DataRequest
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Data.DataRequest>
parser()
Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
FILTER_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER- See Also:
-
LIMIT_FIELD_NUMBER
public static final int LIMIT_FIELD_NUMBER- See Also:
-
LAST_FIELD_NUMBER
public static final int LAST_FIELD_NUMBER- See Also:
-
SORT_ORDER_FIELD_NUMBER
public static final int SORT_ORDER_FIELD_NUMBER- See Also:
-
-
Method Details
-
hasFilter
public boolean hasFilter().viam.app.data.v1.Filter filter = 1 [json_name = "filter"];
- Specified by:
hasFilter
in interfaceData.DataRequestOrBuilder
- Returns:
- Whether the filter field is set.
-
getFilter
.viam.app.data.v1.Filter filter = 1 [json_name = "filter"];
- Specified by:
getFilter
in interfaceData.DataRequestOrBuilder
- Returns:
- The filter.
-
getLimit
public long getLimit()uint64 limit = 2 [json_name = "limit"];
- Specified by:
getLimit
in interfaceData.DataRequestOrBuilder
- Returns:
- The limit.
-
getLast
string last = 3 [json_name = "last"];
- Specified by:
getLast
in interfaceData.DataRequestOrBuilder
- Returns:
- The last.
-
getLastBytes
public com.google.protobuf.ByteString getLastBytes()string last = 3 [json_name = "last"];
- Specified by:
getLastBytes
in interfaceData.DataRequestOrBuilder
- Returns:
- The bytes for last.
-
getSortOrderValue
public int getSortOrderValue().viam.app.data.v1.Order sort_order = 4 [json_name = "sortOrder"];
- Specified by:
getSortOrderValue
in interfaceData.DataRequestOrBuilder
- Returns:
- The enum numeric value on the wire for sortOrder.
-
getSortOrder
.viam.app.data.v1.Order sort_order = 4 [json_name = "sortOrder"];
- Specified by:
getSortOrder
in interfaceData.DataRequestOrBuilder
- Returns:
- The sortOrder.
-
parseFrom
public static Data.DataRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Data.DataRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Data.DataRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Data.DataRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Data.DataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Data.DataRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Data.DataRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Data.DataRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Data.DataRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Data.DataRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethod
in classcom.google.protobuf.GeneratedMessageLite<Data.DataRequest,
Data.DataRequest.Builder>
-
getDefaultInstance
-
parser
-