# HG changeset patch
# User Sebastien Jodogne <s.jodogne@gmail.com>
# Date 1680023684 -7200
# Node ID d79e58c37705018a2881a72219c41e24391fdae6
# Parent  d8469ad83f394fab7ec81683ef05583f711ec634
fix

diff -r d8469ad83f39 -r d79e58c37705 OrthancServer/Plugins/Include/orthanc/OrthancDatabasePlugin.proto
--- a/OrthancServer/Plugins/Include/orthanc/OrthancDatabasePlugin.proto	Tue Mar 28 18:10:29 2023 +0200
+++ b/OrthancServer/Plugins/Include/orthanc/OrthancDatabasePlugin.proto	Tue Mar 28 19:14:44 2023 +0200
@@ -200,7 +200,7 @@
   OPERATION_DELETE_RESOURCE = 7;
   OPERATION_GET_ALL_METADATA = 8;
   OPERATION_GET_ALL_PUBLIC_IDS = 9;
-  OPERATION_GET_ALL_PUBLIC_IDS_LIMITS = 10;
+  OPERATION_GET_ALL_PUBLIC_IDS_WITH_LIMITS = 10;
   OPERATION_GET_CHANGES = 11;
   OPERATION_GET_CHILDREN_INTERNAL_ID = 12;
   OPERATION_GET_CHILDREN_PUBLIC_ID = 13;
@@ -326,7 +326,7 @@
 
 message GetAllPublicIds {
   message Request {
-    int32 resource_type = 1;
+    ResourceType resource_type = 1;
   }
   message Response {
     repeated string ids = 1;
@@ -335,7 +335,7 @@
 
 message GetAllPublicIdsWithLimits {
   message Request {
-    int32  resource_type = 1;
+    ResourceType resource_type = 1;
     uint64 since = 2;
     uint32 limit = 3;
   }
@@ -346,7 +346,7 @@
 
 message GetChanges {
   message Request {
-    uint64 since = 1;
+    int64 since = 1;
     uint32 limit = 2;
   }
   message Response {
@@ -388,7 +388,7 @@
   message Request {
   }
   message Response {
-    bool is_empty = 1;
+    bool exists = 1;
     ServerIndexChange change = 2;
   }
 }
@@ -397,7 +397,7 @@
   message Request {
   }
   message Response {
-    bool is_empty = 1;
+    bool exists = 1;
     ExportedResource resource = 2;
   }
 }