24 #define CONFIG_FIELD_BYTE_BUFFER(_name, _proto_name, _field, _entry) { \
25 if ((_entry)->_name.array.data != NULL \
26 && (_entry)->_name.array.len > 0 \
27 && (_entry)->_name.bytesUsed > 0 \
28 && (_entry)->_name.bytesUsed <= (_entry)->_name.array.len) \
30 (_field)._proto_name.data = (_entry)->_name.array.data; \
31 (_field)._proto_name.len = (_entry)->_name.bytesUsed; \
32 (_field).has_ ## _proto_name = true; \
35 (_field).has_ ## _proto_name = false; \
62 if (message->
keyValue.has_algorithm) {
67 if (message->
keyValue.has_metadataonly) {
72 if (message->
keyValue.has_synchronization) {
97 message->
command.body->range->has_startkey =
99 if (message->
command.body->range->has_startkey) {
100 message->
command.body->range->startkey = (ProtobufCBinaryData) {
107 message->
command.body->range->has_endkey =
109 if (message->
command.body->range->has_endkey) {
110 message->
command.body->range->endkey = (ProtobufCBinaryData) {
128 message->
command.body->range->has_maxreturned =
true;
void KineticMessage_ConfigureKeyRange(KineticMessage *const message, const KineticKeyRange *range)
bool reverse
Optional bool, defaults to false If true, the key range will be returned in reverse order...
bool endKeyInclusive
Optional bool, defaults to false If set, indicates that the end key should be included in the returne...
Com__Seagate__Kinetic__Proto__Command__Range keyRange
bool force
If set for a GET/DELETE request, will override version checking.
bool metadataOnly
If set for a GET request, will return only the metadata for the specified object (value will not be r...
KineticAlgorithm algorithm
Algorithm used to generate the specified tag
ByteArray array
ByteArray holding allocated array w/length = allocated size.
void KineticMessage_ConfigureKeyValue(KineticMessage *const message, const KineticEntry *entry)
int32_t maxReturned
Required int32, must be greater than 0 The maximum number of keys returned, in sorted order...
#define CONFIG_FIELD_BYTE_BUFFER(_name, _proto_name, _field, _entry)
Kinetic Key Range request structure.
#define KINETIC_ASSERT(cond)
Com__Seagate__Kinetic__Proto__Command__Algorithm Com__Seagate__Kinetic__Proto__Command__Algorithm_from_KineticAlgorithm(KineticAlgorithm kinteicAlgorithm)
ByteBuffer startKey
Required bytes, the beginning of the requested range.
Com__Seagate__Kinetic__Proto__Command__Body body
size_t len
Number of bytes in the data field.
Com__Seagate__Kinetic__Proto__Command__Synchronization Com__Seagate__Kinetic__Proto__Command__Synchronization_from_KineticSynchronization(KineticSynchronization sync_mode)
Com__Seagate__Kinetic__Proto__Command__KeyValue keyValue
bool startKeyInclusive
Optional bool, defaults to false If set, indicates that the start key should be included in the retur...
uint8_t * data
Pointer to an allocated array of data bytes.
Com__Seagate__Kinetic__Proto__Command command
size_t bytesUsed
Reflects the number of bytes used from the array
ByteBuffer endKey
Required bytes, the end of the requested range.
KineticSynchronization synchronization
Synchronization method to use for PUT/DELETE requests.