annotate Resources/Orthanc/Sdk-1.12.4/orthanc/OrthancDatabasePlugin.proto @ 565:373cf7d747cc find-refactoring

fix build against orthanc mainline
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 22 Sep 2024 10:03:36 +0200
parents e3102bad13a4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
518
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
1 /**
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
2 * Orthanc - A Lightweight, RESTful DICOM Store
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
4 * Department, University Hospital of Liege, Belgium
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
5 * Copyright (C) 2017-2023 Osimis S.A., Belgium
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
6 * Copyright (C) 2024-2024 Orthanc Team SRL, Belgium
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
7 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
8 *
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
9 * This program is free software: you can redistribute it and/or
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
10 * modify it under the terms of the GNU General Public License as
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
11 * published by the Free Software Foundation, either version 3 of the
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
12 * License, or (at your option) any later version.
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
13 *
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful, but
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
17 * General Public License for more details.
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
18 *
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
20 * along with this program. If not, see <http://www.gnu.org/licenses/>.
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
21 **/
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
22
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
23
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
24 /**
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
25 * This Protocol Buffers prototype describes the exchanges between the
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
26 * Orthanc core and its database plugins. The various calls correspond
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
27 * to the "IDatabaseWrapper" interface in the source code of Orthanc.
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
28 *
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
29 * WARNING: *NEVER* modify or remove existing entries. It is only
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
30 * allowed to *add* new stuff.
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
31 **/
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
32
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
33 syntax = "proto3";
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
34
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
35 /**
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
36 * Turn off protobuf reflection to avoid clashes between the Orthanc
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
37 * core and the database plugin, otherwise both will try to register
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
38 * the same messages in the process-wide descriptor pool, which would
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
39 * result in protobuf error "File already exists in database".
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
40 **/
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
41 option optimize_for = LITE_RUNTIME;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
42
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
43 package Orthanc.DatabasePluginMessages;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
44
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
45
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
46 /**
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
47 * Data structures that are common with the Orthanc core.
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
48 **/
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
49
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
50 message FileInfo {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
51 string uuid = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
52 int32 content_type = 2; // opaque "FileContentType" in Orthanc
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
53 uint64 uncompressed_size = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
54 string uncompressed_hash = 4;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
55 int32 compression_type = 5; // opaque "CompressionType" in Orthanc
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
56 uint64 compressed_size = 6;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
57 string compressed_hash = 7;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
58 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
59
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
60 enum ResourceType {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
61 RESOURCE_PATIENT = 0;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
62 RESOURCE_STUDY = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
63 RESOURCE_SERIES = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
64 RESOURCE_INSTANCE = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
65 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
66
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
67 enum ConstraintType {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
68 CONSTRAINT_EQUAL = 0;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
69 CONSTRAINT_SMALLER_OR_EQUAL = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
70 CONSTRAINT_GREATER_OR_EQUAL = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
71 CONSTRAINT_WILDCARD = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
72 CONSTRAINT_LIST = 4;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
73 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
74
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
75 enum LabelsConstraintType {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
76 LABELS_CONSTRAINT_ALL = 0;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
77 LABELS_CONSTRAINT_ANY = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
78 LABELS_CONSTRAINT_NONE = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
79 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
80
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
81 message ServerIndexChange {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
82 int64 seq = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
83 int32 change_type = 2; // opaque "ChangeType" in Orthanc
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
84 ResourceType resource_type = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
85 string public_id = 4;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
86 string date = 5;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
87 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
88
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
89 message ExportedResource {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
90 int64 seq = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
91 ResourceType resource_type = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
92 string public_id = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
93 string modality = 4;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
94 string date = 5;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
95 string patient_id = 6;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
96 string study_instance_uid = 7;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
97 string series_instance_uid = 8;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
98 string sop_instance_uid = 9;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
99 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
100
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
101 message DatabaseConstraint {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
102 ResourceType level = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
103 uint32 tag_group = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
104 uint32 tag_element = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
105 bool is_identifier_tag = 4;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
106 bool is_case_sensitive = 5;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
107 bool is_mandatory = 6;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
108 ConstraintType type = 7;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
109 repeated string values = 8;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
110 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
111
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
112
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
113 /**
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
114 * Database-level operations.
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
115 **/
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
116
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
117 enum DatabaseOperation {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
118 OPERATION_GET_SYSTEM_INFORMATION = 0;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
119 OPERATION_OPEN = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
120 OPERATION_CLOSE = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
121 OPERATION_FLUSH_TO_DISK = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
122 OPERATION_START_TRANSACTION = 4;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
123 OPERATION_UPGRADE = 5;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
124 OPERATION_FINALIZE_TRANSACTION = 6;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
125 OPERATION_MEASURE_LATENCY = 7; // New in Orthanc 1.12.3
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
126 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
127
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
128 enum TransactionType {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
129 TRANSACTION_READ_ONLY = 0;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
130 TRANSACTION_READ_WRITE = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
131 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
132
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
133 message GetSystemInformation {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
134 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
135 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
136 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
137 uint32 database_version = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
138 bool supports_flush_to_disk = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
139 bool supports_revisions = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
140 bool supports_labels = 4;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
141 bool supports_increment_global_property = 5;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
142 bool has_update_and_get_statistics = 6;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
143 bool has_measure_latency = 7;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
144 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
145 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
146
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
147 message Open {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
148 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
149 message IdentifierTag {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
150 ResourceType level = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
151 uint32 group = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
152 uint32 element = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
153 string name = 4;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
154 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
155 repeated IdentifierTag identifier_tags = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
156 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
157 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
158 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
159 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
160
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
161 message Close {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
162 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
163 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
164 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
165 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
166 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
167
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
168 message FlushToDisk {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
169 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
170 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
171 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
172 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
173 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
174
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
175 message StartTransaction {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
176 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
177 TransactionType type = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
178 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
179 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
180 sfixed64 transaction = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
181 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
182 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
183
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
184 message Upgrade {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
185 /**
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
186 * It is guaranteed that a read-write transaction is created by the
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
187 * Orthanc core before executing this operation.
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
188 **/
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
189 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
190 uint32 target_version = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
191 sfixed64 storage_area = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
192 sfixed64 transaction = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
193 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
194 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
195 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
196 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
197
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
198 message FinalizeTransaction {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
199 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
200 sfixed64 transaction = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
201 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
202 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
203 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
204 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
205
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
206 message MeasureLatency {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
207 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
208 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
209 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
210 int64 latency_us = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
211 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
212 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
213
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
214
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
215 message DatabaseRequest {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
216 sfixed64 database = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
217 DatabaseOperation operation = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
218
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
219 GetSystemInformation.Request get_system_information = 100;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
220 Open.Request open = 101;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
221 Close.Request close = 102;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
222 FlushToDisk.Request flush_to_disk = 103;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
223 StartTransaction.Request start_transaction = 104;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
224 Upgrade.Request upgrade = 105;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
225 FinalizeTransaction.Request finalize_transaction = 106;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
226 MeasureLatency.Request measure_latency = 107;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
227 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
228
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
229 message DatabaseResponse {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
230 GetSystemInformation.Response get_system_information = 100;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
231 Open.Response open = 101;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
232 Close.Response close = 102;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
233 FlushToDisk.Response flush_to_disk = 103;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
234 StartTransaction.Response start_transaction = 104;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
235 Upgrade.Response upgrade = 105;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
236 FinalizeTransaction.Response finalize_transaction = 106;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
237 MeasureLatency.Response measure_latency = 107;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
238 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
239
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
240
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
241 /**
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
242 * Transaction-level operations.
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
243 **/
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
244
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
245 enum TransactionOperation {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
246 OPERATION_ROLLBACK = 0;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
247 OPERATION_COMMIT = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
248 OPERATION_ADD_ATTACHMENT = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
249 OPERATION_CLEAR_CHANGES = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
250 OPERATION_CLEAR_EXPORTED_RESOURCES = 4;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
251 OPERATION_DELETE_ATTACHMENT = 5;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
252 OPERATION_DELETE_METADATA = 6;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
253 OPERATION_DELETE_RESOURCE = 7;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
254 OPERATION_GET_ALL_METADATA = 8;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
255 OPERATION_GET_ALL_PUBLIC_IDS = 9;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
256 OPERATION_GET_ALL_PUBLIC_IDS_WITH_LIMITS = 10;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
257 OPERATION_GET_CHANGES = 11;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
258 OPERATION_GET_CHILDREN_INTERNAL_ID = 12;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
259 OPERATION_GET_CHILDREN_PUBLIC_ID = 13;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
260 OPERATION_GET_EXPORTED_RESOURCES = 14;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
261 OPERATION_GET_LAST_CHANGE = 15;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
262 OPERATION_GET_LAST_EXPORTED_RESOURCE = 16;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
263 OPERATION_GET_MAIN_DICOM_TAGS = 17;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
264 OPERATION_GET_PUBLIC_ID = 18;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
265 OPERATION_GET_RESOURCES_COUNT = 19;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
266 OPERATION_GET_RESOURCE_TYPE = 20;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
267 OPERATION_GET_TOTAL_COMPRESSED_SIZE = 21;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
268 OPERATION_GET_TOTAL_UNCOMPRESSED_SIZE = 22;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
269 OPERATION_IS_PROTECTED_PATIENT = 23;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
270 OPERATION_LIST_AVAILABLE_ATTACHMENTS = 24;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
271 OPERATION_LOG_CHANGE = 25;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
272 OPERATION_LOG_EXPORTED_RESOURCE = 26;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
273 OPERATION_LOOKUP_ATTACHMENT = 27;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
274 OPERATION_LOOKUP_GLOBAL_PROPERTY = 28;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
275 OPERATION_LOOKUP_METADATA = 29;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
276 OPERATION_LOOKUP_PARENT = 30;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
277 OPERATION_LOOKUP_RESOURCE = 31;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
278 OPERATION_SELECT_PATIENT_TO_RECYCLE = 32;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
279 OPERATION_SELECT_PATIENT_TO_RECYCLE_WITH_AVOID = 33;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
280 OPERATION_SET_GLOBAL_PROPERTY = 34;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
281 OPERATION_CLEAR_MAIN_DICOM_TAGS = 35;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
282 OPERATION_SET_METADATA = 36;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
283 OPERATION_SET_PROTECTED_PATIENT = 37;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
284 OPERATION_IS_DISK_SIZE_ABOVE = 38;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
285 OPERATION_LOOKUP_RESOURCES = 39;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
286 OPERATION_CREATE_INSTANCE = 40;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
287 OPERATION_SET_RESOURCES_CONTENT = 41;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
288 OPERATION_GET_CHILDREN_METADATA = 42;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
289 OPERATION_GET_LAST_CHANGE_INDEX = 43;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
290 OPERATION_LOOKUP_RESOURCE_AND_PARENT = 44;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
291 OPERATION_ADD_LABEL = 45; // New in Orthanc 1.12.0
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
292 OPERATION_REMOVE_LABEL = 46; // New in Orthanc 1.12.0
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
293 OPERATION_LIST_LABELS = 47; // New in Orthanc 1.12.0
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
294 OPERATION_INCREMENT_GLOBAL_PROPERTY = 48; // New in Orthanc 1.12.3
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
295 OPERATION_UPDATE_AND_GET_STATISTICS = 49; // New in Orthanc 1.12.3
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
296 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
297
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
298 message Rollback {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
299 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
300 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
301 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
302 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
303 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
304
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
305 message Commit {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
306 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
307 int64 file_size_delta = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
308 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
309 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
310 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
311 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
312
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
313 message AddAttachment {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
314 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
315 int64 id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
316 FileInfo attachment = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
317 int64 revision = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
318 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
319 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
320 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
321 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
322
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
323 message ClearChanges {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
324 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
325 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
326 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
327 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
328 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
329
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
330 message ClearExportedResources {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
331 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
332 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
333 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
334 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
335 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
336
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
337 message DeleteAttachment {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
338 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
339 int64 id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
340 int32 type = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
341 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
342 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
343 FileInfo deleted_attachment = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
344 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
345 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
346
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
347 message DeleteMetadata {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
348 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
349 int64 id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
350 int32 type = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
351 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
352 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
353 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
354 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
355
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
356 message DeleteResource {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
357 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
358 int64 id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
359 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
360 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
361 message Resource {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
362 ResourceType level = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
363 string public_id = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
364 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
365 repeated FileInfo deleted_attachments = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
366 repeated Resource deleted_resources = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
367 bool is_remaining_ancestor = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
368 Resource remaining_ancestor = 4;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
369 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
370 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
371
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
372 message GetAllMetadata {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
373 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
374 int64 id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
375 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
376 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
377 message Metadata {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
378 int32 type = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
379 string value = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
380 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
381 repeated Metadata metadata = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
382 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
383 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
384
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
385 message GetAllPublicIds {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
386 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
387 ResourceType resource_type = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
388 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
389 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
390 repeated string ids = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
391 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
392 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
393
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
394 message GetAllPublicIdsWithLimits {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
395 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
396 ResourceType resource_type = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
397 int64 since = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
398 uint32 limit = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
399 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
400 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
401 repeated string ids = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
402 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
403 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
404
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
405 message GetChanges {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
406 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
407 int64 since = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
408 uint32 limit = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
409 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
410 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
411 repeated ServerIndexChange changes = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
412 bool done = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
413 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
414 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
415
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
416 message GetChildrenInternalId {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
417 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
418 int64 id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
419 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
420 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
421 repeated int64 ids = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
422 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
423 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
424
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
425 message GetChildrenPublicId {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
426 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
427 int64 id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
428 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
429 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
430 repeated string ids = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
431 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
432 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
433
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
434 message GetExportedResources {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
435 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
436 int64 since = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
437 uint32 limit = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
438 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
439 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
440 repeated ExportedResource resources = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
441 bool done = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
442 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
443 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
444
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
445 message GetLastChange {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
446 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
447 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
448 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
449 bool found = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
450 ServerIndexChange change = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
451 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
452 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
453
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
454 message GetLastExportedResource {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
455 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
456 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
457 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
458 bool found = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
459 ExportedResource resource = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
460 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
461 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
462
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
463 message GetMainDicomTags {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
464 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
465 int64 id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
466 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
467 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
468 message Tag {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
469 uint32 group = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
470 uint32 element = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
471 string value = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
472 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
473 repeated Tag tags = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
474 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
475 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
476
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
477 message GetPublicId {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
478 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
479 int64 id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
480 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
481 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
482 string id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
483 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
484 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
485
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
486 message GetResourcesCount {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
487 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
488 ResourceType type = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
489 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
490 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
491 uint64 count = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
492 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
493 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
494
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
495 message GetResourceType {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
496 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
497 int64 id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
498 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
499 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
500 ResourceType type = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
501 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
502 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
503
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
504 message GetTotalCompressedSize {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
505 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
506 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
507 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
508 uint64 size = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
509 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
510 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
511
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
512 message GetTotalUncompressedSize {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
513 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
514 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
515 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
516 uint64 size = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
517 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
518 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
519
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
520 message IsProtectedPatient {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
521 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
522 int64 patient_id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
523 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
524 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
525 bool protected_patient = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
526 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
527 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
528
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
529 message ListAvailableAttachments {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
530 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
531 int64 id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
532 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
533 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
534 repeated int32 attachments = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
535 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
536 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
537
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
538 message LogChange {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
539 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
540 int32 change_type = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
541 ResourceType resource_type = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
542 int64 resource_id = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
543 string date = 4;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
544 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
545 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
546 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
547 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
548
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
549 message LogExportedResource {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
550 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
551 ResourceType resource_type = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
552 string public_id = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
553 string modality = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
554 string date = 4;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
555 string patient_id = 5;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
556 string study_instance_uid = 6;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
557 string series_instance_uid = 7;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
558 string sop_instance_uid = 8;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
559 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
560 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
561 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
562 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
563
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
564 message LookupAttachment {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
565 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
566 int64 id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
567 int32 content_type = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
568 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
569 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
570 bool found = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
571 FileInfo attachment = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
572 int64 revision = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
573 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
574 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
575
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
576 message LookupGlobalProperty {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
577 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
578 string server_id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
579 int32 property = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
580 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
581 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
582 bool found = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
583 string value = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
584 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
585 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
586
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
587 message LookupMetadata {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
588 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
589 int64 id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
590 int32 metadata_type = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
591 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
592 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
593 bool found = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
594 string value = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
595 int64 revision = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
596 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
597 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
598
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
599 message LookupParent {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
600 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
601 int64 id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
602 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
603 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
604 bool found = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
605 int64 parent = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
606 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
607 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
608
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
609 message LookupResource {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
610 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
611 string public_id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
612 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
613 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
614 bool found = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
615 int64 internal_id = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
616 ResourceType type = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
617 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
618 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
619
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
620 message SelectPatientToRecycle {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
621 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
622 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
623 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
624 bool found = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
625 int64 patient_id = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
626 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
627 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
628
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
629 message SelectPatientToRecycleWithAvoid {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
630 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
631 int64 patient_id_to_avoid = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
632 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
633 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
634 bool found = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
635 int64 patient_id = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
636 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
637 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
638
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
639 message SetGlobalProperty {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
640 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
641 string server_id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
642 int32 property = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
643 string value = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
644 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
645 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
646 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
647 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
648
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
649 message IncrementGlobalProperty {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
650 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
651 string server_id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
652 int32 property = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
653 int64 increment = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
654 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
655 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
656 int64 new_value = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
657 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
658 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
659
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
660 message UpdateAndGetStatistics {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
661 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
662 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
663 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
664 int64 patients_count = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
665 int64 studies_count = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
666 int64 series_count = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
667 int64 instances_count = 4;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
668 int64 total_compressed_size = 5;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
669 int64 total_uncompressed_size = 6;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
670 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
671 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
672
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
673 message ClearMainDicomTags {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
674 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
675 int64 id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
676 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
677 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
678 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
679 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
680
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
681 message SetMetadata {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
682 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
683 int64 id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
684 int32 metadata_type = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
685 string value = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
686 int64 revision = 4;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
687 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
688 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
689 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
690 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
691
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
692 message SetProtectedPatient {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
693 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
694 int64 patient_id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
695 bool protected_patient = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
696 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
697 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
698 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
699 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
700
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
701 message IsDiskSizeAbove {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
702 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
703 uint64 threshold = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
704 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
705 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
706 bool result = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
707 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
708 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
709
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
710 message LookupResources {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
711 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
712 repeated DatabaseConstraint lookup = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
713 ResourceType query_level = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
714 uint32 limit = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
715 bool retrieve_instances_ids = 4;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
716 repeated string labels = 5; // New in Orthanc 1.12.0
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
717 LabelsConstraintType labels_constraint = 6; // New in Orthanc 1.12.0
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
718 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
719 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
720 repeated string resources_ids = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
721 repeated string instances_ids = 2; // Only filled if "retrieve_instances" is true
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
722 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
723 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
724
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
725 message CreateInstance {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
726 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
727 string patient = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
728 string study = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
729 string series = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
730 string instance = 4;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
731 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
732 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
733 bool is_new_instance = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
734 int64 instance_id = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
735
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
736 // The fields below are only set if "is_new_instance" is true
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
737 bool is_new_patient = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
738 bool is_new_study = 4;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
739 bool is_new_series = 5;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
740 int64 patient_id = 6;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
741 int64 study_id = 7;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
742 int64 series_id = 8;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
743 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
744 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
745
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
746 message SetResourcesContent {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
747 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
748 message Tag {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
749 int64 resource_id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
750 bool is_identifier = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
751 uint32 group = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
752 uint32 element = 4;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
753 string value = 5;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
754 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
755
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
756 message Metadata {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
757 int64 resource_id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
758 int32 metadata = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
759 string value = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
760 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
761
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
762 repeated Tag tags = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
763 repeated Metadata metadata = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
764 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
765 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
766 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
767 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
768
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
769 message GetChildrenMetadata {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
770 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
771 int64 id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
772 int32 metadata = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
773 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
774 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
775 repeated string values = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
776 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
777 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
778
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
779 message GetLastChangeIndex {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
780 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
781 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
782 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
783 int64 result = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
784 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
785 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
786
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
787 message LookupResourceAndParent {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
788 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
789 string public_id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
790 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
791 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
792 bool found = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
793 int64 id = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
794 ResourceType type = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
795 string parent_public_id = 4; // Only for study, series, or instance
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
796 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
797 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
798
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
799 message AddLabel {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
800 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
801 int64 id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
802 string label = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
803 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
804 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
805 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
806 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
807
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
808 message RemoveLabel {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
809 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
810 int64 id = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
811 string label = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
812 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
813 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
814 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
815 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
816
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
817 message ListLabels {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
818 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
819 bool single_resource = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
820 int64 id = 2; // Only if "single_resource" is "true"
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
821 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
822 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
823 repeated string labels = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
824 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
825 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
826
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
827 message TransactionRequest {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
828 sfixed64 transaction = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
829 TransactionOperation operation = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
830
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
831 Rollback.Request rollback = 100;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
832 Commit.Request commit = 101;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
833 AddAttachment.Request add_attachment = 102;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
834 ClearChanges.Request clear_changes = 103;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
835 ClearExportedResources.Request clear_exported_resources = 104;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
836 DeleteAttachment.Request delete_attachment = 105;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
837 DeleteMetadata.Request delete_metadata = 106;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
838 DeleteResource.Request delete_resource = 107;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
839 GetAllMetadata.Request get_all_metadata = 108;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
840 GetAllPublicIds.Request get_all_public_ids = 109;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
841 GetAllPublicIdsWithLimits.Request get_all_public_ids_with_limits = 110;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
842 GetChanges.Request get_changes = 111;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
843 GetChildrenInternalId.Request get_children_internal_id = 112;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
844 GetChildrenPublicId.Request get_children_public_id = 113;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
845 GetExportedResources.Request get_exported_resources = 114;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
846 GetLastChange.Request get_last_change = 115;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
847 GetLastExportedResource.Request get_last_exported_resource = 116;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
848 GetMainDicomTags.Request get_main_dicom_tags = 117;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
849 GetPublicId.Request get_public_id = 118;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
850 GetResourcesCount.Request get_resources_count = 119;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
851 GetResourceType.Request get_resource_type = 120;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
852 GetTotalCompressedSize.Request get_total_compressed_size = 121;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
853 GetTotalUncompressedSize.Request get_total_uncompressed_size = 122;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
854 IsProtectedPatient.Request is_protected_patient = 123;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
855 ListAvailableAttachments.Request list_available_attachments = 124;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
856 LogChange.Request log_change = 125;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
857 LogExportedResource.Request log_exported_resource = 126;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
858 LookupAttachment.Request lookup_attachment = 127;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
859 LookupGlobalProperty.Request lookup_global_property = 128;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
860 LookupMetadata.Request lookup_metadata = 129;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
861 LookupParent.Request lookup_parent = 130;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
862 LookupResource.Request lookup_resource = 131;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
863 SelectPatientToRecycle.Request select_patient_to_recycle = 132;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
864 SelectPatientToRecycleWithAvoid.Request select_patient_to_recycle_with_avoid = 133;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
865 SetGlobalProperty.Request set_global_property = 134;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
866 ClearMainDicomTags.Request clear_main_dicom_tags = 135;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
867 SetMetadata.Request set_metadata = 136;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
868 SetProtectedPatient.Request set_protected_patient = 137;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
869 IsDiskSizeAbove.Request is_disk_size_above = 138;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
870 LookupResources.Request lookup_resources = 139;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
871 CreateInstance.Request create_instance = 140;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
872 SetResourcesContent.Request set_resources_content = 141;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
873 GetChildrenMetadata.Request get_children_metadata = 142;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
874 GetLastChangeIndex.Request get_last_change_index = 143;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
875 LookupResourceAndParent.Request lookup_resource_and_parent = 144;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
876 AddLabel.Request add_label = 145;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
877 RemoveLabel.Request remove_label = 146;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
878 ListLabels.Request list_labels = 147;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
879 IncrementGlobalProperty.Request increment_global_property = 148;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
880 UpdateAndGetStatistics.Request update_and_get_statistics = 149;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
881 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
882
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
883 message TransactionResponse {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
884 Rollback.Response rollback = 100;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
885 Commit.Response commit = 101;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
886 AddAttachment.Response add_attachment = 102;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
887 ClearChanges.Response clear_changes = 103;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
888 ClearExportedResources.Response clear_exported_resources = 104;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
889 DeleteAttachment.Response delete_attachment = 105;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
890 DeleteMetadata.Response delete_metadata = 106;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
891 DeleteResource.Response delete_resource = 107;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
892 GetAllMetadata.Response get_all_metadata = 108;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
893 GetAllPublicIds.Response get_all_public_ids = 109;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
894 GetAllPublicIdsWithLimits.Response get_all_public_ids_with_limits = 110;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
895 GetChanges.Response get_changes = 111;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
896 GetChildrenInternalId.Response get_children_internal_id = 112;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
897 GetChildrenPublicId.Response get_children_public_id = 113;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
898 GetExportedResources.Response get_exported_resources = 114;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
899 GetLastChange.Response get_last_change = 115;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
900 GetLastExportedResource.Response get_last_exported_resource = 116;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
901 GetMainDicomTags.Response get_main_dicom_tags = 117;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
902 GetPublicId.Response get_public_id = 118;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
903 GetResourcesCount.Response get_resources_count = 119;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
904 GetResourceType.Response get_resource_type = 120;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
905 GetTotalCompressedSize.Response get_total_compressed_size = 121;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
906 GetTotalUncompressedSize.Response get_total_uncompressed_size = 122;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
907 IsProtectedPatient.Response is_protected_patient = 123;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
908 ListAvailableAttachments.Response list_available_attachments = 124;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
909 LogChange.Response log_change = 125;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
910 LogExportedResource.Response log_exported_resource = 126;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
911 LookupAttachment.Response lookup_attachment = 127;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
912 LookupGlobalProperty.Response lookup_global_property = 128;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
913 LookupMetadata.Response lookup_metadata = 129;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
914 LookupParent.Response lookup_parent = 130;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
915 LookupResource.Response lookup_resource = 131;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
916 SelectPatientToRecycle.Response select_patient_to_recycle = 132;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
917 SelectPatientToRecycleWithAvoid.Response select_patient_to_recycle_with_avoid = 133;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
918 SetGlobalProperty.Response set_global_property = 134;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
919 ClearMainDicomTags.Response clear_main_dicom_tags = 135;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
920 SetMetadata.Response set_metadata = 136;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
921 SetProtectedPatient.Response set_protected_patient = 137;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
922 IsDiskSizeAbove.Response is_disk_size_above = 138;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
923 LookupResources.Response lookup_resources = 139;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
924 CreateInstance.Response create_instance = 140;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
925 SetResourcesContent.Response set_resources_content = 141;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
926 GetChildrenMetadata.Response get_children_metadata = 142;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
927 GetLastChangeIndex.Response get_last_change_index = 143;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
928 LookupResourceAndParent.Response lookup_resource_and_parent = 144;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
929 AddLabel.Response add_label = 145;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
930 RemoveLabel.Response remove_label = 146;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
931 ListLabels.Response list_labels = 147;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
932 IncrementGlobalProperty.Response increment_global_property = 148;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
933 UpdateAndGetStatistics.Response update_and_get_statistics = 149;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
934 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
935
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
936 enum RequestType {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
937 REQUEST_DATABASE = 0;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
938 REQUEST_TRANSACTION = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
939 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
940
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
941 message Request {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
942 RequestType type = 1;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
943 DatabaseRequest database_request = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
944 TransactionRequest transaction_request = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
945 }
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
946
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
947 message Response {
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
948 DatabaseResponse database_response = 2;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
949 TransactionResponse transaction_response = 3;
e3102bad13a4 fix SDK 1.12.4 protobuf
Alain Mazy <am@orthanc.team>
parents:
diff changeset
950 }