1#ifdef __GNUC__
2#pragma GCC diagnostic push
3#pragma GCC diagnostic ignored "-Wshadow"
4#pragma GCC diagnostic ignored "-Wunused-parameter"
5#endif
6
7// Generated by the protocol buffer compiler. DO NOT EDIT!
8// source: proto/proxima_be.proto
9
10#include "proto/proxima_be.pb.h"
11
12#include <algorithm>
13
14#include <google/protobuf/io/coded_stream.h>
15#include <google/protobuf/extension_set.h>
16#include <google/protobuf/wire_format_lite.h>
17#include <google/protobuf/descriptor.h>
18#include <google/protobuf/generated_message_reflection.h>
19#include <google/protobuf/reflection_ops.h>
20#include <google/protobuf/wire_format.h>
21// @@protoc_insertion_point(includes)
22#include <google/protobuf/port_def.inc>
23extern PROTOBUF_INTERNAL_EXPORT_proto_2fproxima_5fbe_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_CollectionConfig_proto_2fproxima_5fbe_2eproto;
24extern PROTOBUF_INTERNAL_EXPORT_proto_2fproxima_5fbe_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionConfig_IndexColumnParam_proto_2fproxima_5fbe_2eproto;
25extern PROTOBUF_INTERNAL_EXPORT_proto_2fproxima_5fbe_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionConfig_RepositoryConfig_proto_2fproxima_5fbe_2eproto;
26extern PROTOBUF_INTERNAL_EXPORT_proto_2fproxima_5fbe_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CollectionConfig_RepositoryConfig_Database_proto_2fproxima_5fbe_2eproto;
27extern PROTOBUF_INTERNAL_EXPORT_proto_2fproxima_5fbe_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_CollectionInfo_proto_2fproxima_5fbe_2eproto;
28extern PROTOBUF_INTERNAL_EXPORT_proto_2fproxima_5fbe_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionStats_proto_2fproxima_5fbe_2eproto;
29extern PROTOBUF_INTERNAL_EXPORT_proto_2fproxima_5fbe_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CollectionStats_SegmentStats_proto_2fproxima_5fbe_2eproto;
30extern PROTOBUF_INTERNAL_EXPORT_proto_2fproxima_5fbe_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Document_proto_2fproxima_5fbe_2eproto;
31extern PROTOBUF_INTERNAL_EXPORT_proto_2fcommon_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GenericKeyValue_proto_2fcommon_2eproto;
32extern PROTOBUF_INTERNAL_EXPORT_proto_2fcommon_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GenericValueList_proto_2fcommon_2eproto;
33extern PROTOBUF_INTERNAL_EXPORT_proto_2fcommon_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeyValuePair_proto_2fcommon_2eproto;
34extern PROTOBUF_INTERNAL_EXPORT_proto_2fproxima_5fbe_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LsnContext_proto_2fproxima_5fbe_2eproto;
35extern PROTOBUF_INTERNAL_EXPORT_proto_2fproxima_5fbe_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_QueryRequest_KnnQueryParam_proto_2fproxima_5fbe_2eproto;
36extern PROTOBUF_INTERNAL_EXPORT_proto_2fproxima_5fbe_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_QueryResponse_Result_proto_2fproxima_5fbe_2eproto;
37extern PROTOBUF_INTERNAL_EXPORT_proto_2fcommon_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Status_proto_2fcommon_2eproto;
38extern PROTOBUF_INTERNAL_EXPORT_proto_2fproxima_5fbe_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_WriteRequest_IndexColumnMeta_proto_2fproxima_5fbe_2eproto;
39extern PROTOBUF_INTERNAL_EXPORT_proto_2fproxima_5fbe_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_WriteRequest_Row_proto_2fproxima_5fbe_2eproto;
40extern PROTOBUF_INTERNAL_EXPORT_proto_2fproxima_5fbe_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_WriteRequest_RowMeta_proto_2fproxima_5fbe_2eproto;
41namespace proxima {
42namespace be {
43namespace proto {
44class CollectionConfig_IndexColumnParamDefaultTypeInternal {
45 public:
46 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CollectionConfig_IndexColumnParam> _instance;
47} _CollectionConfig_IndexColumnParam_default_instance_;
48class CollectionConfig_RepositoryConfig_DatabaseDefaultTypeInternal {
49 public:
50 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CollectionConfig_RepositoryConfig_Database> _instance;
51} _CollectionConfig_RepositoryConfig_Database_default_instance_;
52class CollectionConfig_RepositoryConfigDefaultTypeInternal {
53 public:
54 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CollectionConfig_RepositoryConfig> _instance;
55 const ::proxima::be::proto::CollectionConfig_RepositoryConfig_Database* database_;
56} _CollectionConfig_RepositoryConfig_default_instance_;
57class CollectionConfigDefaultTypeInternal {
58 public:
59 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CollectionConfig> _instance;
60} _CollectionConfig_default_instance_;
61class CollectionNameDefaultTypeInternal {
62 public:
63 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CollectionName> _instance;
64} _CollectionName_default_instance_;
65class LsnContextDefaultTypeInternal {
66 public:
67 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LsnContext> _instance;
68} _LsnContext_default_instance_;
69class CollectionInfoDefaultTypeInternal {
70 public:
71 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CollectionInfo> _instance;
72} _CollectionInfo_default_instance_;
73class DescribeCollectionResponseDefaultTypeInternal {
74 public:
75 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DescribeCollectionResponse> _instance;
76} _DescribeCollectionResponse_default_instance_;
77class ListConditionDefaultTypeInternal {
78 public:
79 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ListCondition> _instance;
80} _ListCondition_default_instance_;
81class ListCollectionsResponseDefaultTypeInternal {
82 public:
83 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ListCollectionsResponse> _instance;
84} _ListCollectionsResponse_default_instance_;
85class CollectionStats_SegmentStatsDefaultTypeInternal {
86 public:
87 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CollectionStats_SegmentStats> _instance;
88} _CollectionStats_SegmentStats_default_instance_;
89class CollectionStatsDefaultTypeInternal {
90 public:
91 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CollectionStats> _instance;
92} _CollectionStats_default_instance_;
93class StatsCollectionResponseDefaultTypeInternal {
94 public:
95 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<StatsCollectionResponse> _instance;
96} _StatsCollectionResponse_default_instance_;
97class WriteRequest_RowDefaultTypeInternal {
98 public:
99 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<WriteRequest_Row> _instance;
100} _WriteRequest_Row_default_instance_;
101class WriteRequest_IndexColumnMetaDefaultTypeInternal {
102 public:
103 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<WriteRequest_IndexColumnMeta> _instance;
104} _WriteRequest_IndexColumnMeta_default_instance_;
105class WriteRequest_RowMetaDefaultTypeInternal {
106 public:
107 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<WriteRequest_RowMeta> _instance;
108} _WriteRequest_RowMeta_default_instance_;
109class WriteRequestDefaultTypeInternal {
110 public:
111 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<WriteRequest> _instance;
112} _WriteRequest_default_instance_;
113class DocumentDefaultTypeInternal {
114 public:
115 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Document> _instance;
116} _Document_default_instance_;
117class QueryRequest_KnnQueryParamDefaultTypeInternal {
118 public:
119 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<QueryRequest_KnnQueryParam> _instance;
120 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr features_;
121 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr matrix_;
122} _QueryRequest_KnnQueryParam_default_instance_;
123class QueryRequestDefaultTypeInternal {
124 public:
125 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<QueryRequest> _instance;
126 const ::proxima::be::proto::QueryRequest_KnnQueryParam* knn_param_;
127} _QueryRequest_default_instance_;
128class QueryResponse_ResultDefaultTypeInternal {
129 public:
130 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<QueryResponse_Result> _instance;
131} _QueryResponse_Result_default_instance_;
132class QueryResponseDefaultTypeInternal {
133 public:
134 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<QueryResponse> _instance;
135} _QueryResponse_default_instance_;
136class GetDocumentRequestDefaultTypeInternal {
137 public:
138 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GetDocumentRequest> _instance;
139} _GetDocumentRequest_default_instance_;
140class GetDocumentResponseDefaultTypeInternal {
141 public:
142 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GetDocumentResponse> _instance;
143} _GetDocumentResponse_default_instance_;
144class GetVersionRequestDefaultTypeInternal {
145 public:
146 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GetVersionRequest> _instance;
147} _GetVersionRequest_default_instance_;
148class GetVersionResponseDefaultTypeInternal {
149 public:
150 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GetVersionResponse> _instance;
151} _GetVersionResponse_default_instance_;
152} // namespace proto
153} // namespace be
154} // namespace proxima
155static void InitDefaultsscc_info_CollectionConfig_proto_2fproxima_5fbe_2eproto() {
156 GOOGLE_PROTOBUF_VERIFY_VERSION;
157
158 {
159 void* ptr = &::proxima::be::proto::_CollectionConfig_default_instance_;
160 new (ptr) ::proxima::be::proto::CollectionConfig();
161 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
162 }
163 ::proxima::be::proto::CollectionConfig::InitAsDefaultInstance();
164}
165
166::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_CollectionConfig_proto_2fproxima_5fbe_2eproto =
167 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_CollectionConfig_proto_2fproxima_5fbe_2eproto}, {
168 &scc_info_CollectionConfig_IndexColumnParam_proto_2fproxima_5fbe_2eproto.base,
169 &scc_info_CollectionConfig_RepositoryConfig_proto_2fproxima_5fbe_2eproto.base,}};
170
171static void InitDefaultsscc_info_CollectionConfig_IndexColumnParam_proto_2fproxima_5fbe_2eproto() {
172 GOOGLE_PROTOBUF_VERIFY_VERSION;
173
174 {
175 void* ptr = &::proxima::be::proto::_CollectionConfig_IndexColumnParam_default_instance_;
176 new (ptr) ::proxima::be::proto::CollectionConfig_IndexColumnParam();
177 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
178 }
179 ::proxima::be::proto::CollectionConfig_IndexColumnParam::InitAsDefaultInstance();
180}
181
182::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionConfig_IndexColumnParam_proto_2fproxima_5fbe_2eproto =
183 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_CollectionConfig_IndexColumnParam_proto_2fproxima_5fbe_2eproto}, {
184 &scc_info_KeyValuePair_proto_2fcommon_2eproto.base,}};
185
186static void InitDefaultsscc_info_CollectionConfig_RepositoryConfig_proto_2fproxima_5fbe_2eproto() {
187 GOOGLE_PROTOBUF_VERIFY_VERSION;
188
189 {
190 void* ptr = &::proxima::be::proto::_CollectionConfig_RepositoryConfig_default_instance_;
191 new (ptr) ::proxima::be::proto::CollectionConfig_RepositoryConfig();
192 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
193 }
194 ::proxima::be::proto::CollectionConfig_RepositoryConfig::InitAsDefaultInstance();
195}
196
197::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionConfig_RepositoryConfig_proto_2fproxima_5fbe_2eproto =
198 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_CollectionConfig_RepositoryConfig_proto_2fproxima_5fbe_2eproto}, {
199 &scc_info_CollectionConfig_RepositoryConfig_Database_proto_2fproxima_5fbe_2eproto.base,}};
200
201static void InitDefaultsscc_info_CollectionConfig_RepositoryConfig_Database_proto_2fproxima_5fbe_2eproto() {
202 GOOGLE_PROTOBUF_VERIFY_VERSION;
203
204 {
205 void* ptr = &::proxima::be::proto::_CollectionConfig_RepositoryConfig_Database_default_instance_;
206 new (ptr) ::proxima::be::proto::CollectionConfig_RepositoryConfig_Database();
207 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
208 }
209 ::proxima::be::proto::CollectionConfig_RepositoryConfig_Database::InitAsDefaultInstance();
210}
211
212::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CollectionConfig_RepositoryConfig_Database_proto_2fproxima_5fbe_2eproto =
213 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CollectionConfig_RepositoryConfig_Database_proto_2fproxima_5fbe_2eproto}, {}};
214
215static void InitDefaultsscc_info_CollectionInfo_proto_2fproxima_5fbe_2eproto() {
216 GOOGLE_PROTOBUF_VERIFY_VERSION;
217
218 {
219 void* ptr = &::proxima::be::proto::_CollectionInfo_default_instance_;
220 new (ptr) ::proxima::be::proto::CollectionInfo();
221 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
222 }
223 ::proxima::be::proto::CollectionInfo::InitAsDefaultInstance();
224}
225
226::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_CollectionInfo_proto_2fproxima_5fbe_2eproto =
227 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_CollectionInfo_proto_2fproxima_5fbe_2eproto}, {
228 &scc_info_CollectionConfig_proto_2fproxima_5fbe_2eproto.base,
229 &scc_info_LsnContext_proto_2fproxima_5fbe_2eproto.base,}};
230
231static void InitDefaultsscc_info_CollectionName_proto_2fproxima_5fbe_2eproto() {
232 GOOGLE_PROTOBUF_VERIFY_VERSION;
233
234 {
235 void* ptr = &::proxima::be::proto::_CollectionName_default_instance_;
236 new (ptr) ::proxima::be::proto::CollectionName();
237 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
238 }
239 ::proxima::be::proto::CollectionName::InitAsDefaultInstance();
240}
241
242::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CollectionName_proto_2fproxima_5fbe_2eproto =
243 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CollectionName_proto_2fproxima_5fbe_2eproto}, {}};
244
245static void InitDefaultsscc_info_CollectionStats_proto_2fproxima_5fbe_2eproto() {
246 GOOGLE_PROTOBUF_VERIFY_VERSION;
247
248 {
249 void* ptr = &::proxima::be::proto::_CollectionStats_default_instance_;
250 new (ptr) ::proxima::be::proto::CollectionStats();
251 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
252 }
253 ::proxima::be::proto::CollectionStats::InitAsDefaultInstance();
254}
255
256::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionStats_proto_2fproxima_5fbe_2eproto =
257 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_CollectionStats_proto_2fproxima_5fbe_2eproto}, {
258 &scc_info_CollectionStats_SegmentStats_proto_2fproxima_5fbe_2eproto.base,}};
259
260static void InitDefaultsscc_info_CollectionStats_SegmentStats_proto_2fproxima_5fbe_2eproto() {
261 GOOGLE_PROTOBUF_VERIFY_VERSION;
262
263 {
264 void* ptr = &::proxima::be::proto::_CollectionStats_SegmentStats_default_instance_;
265 new (ptr) ::proxima::be::proto::CollectionStats_SegmentStats();
266 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
267 }
268 ::proxima::be::proto::CollectionStats_SegmentStats::InitAsDefaultInstance();
269}
270
271::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CollectionStats_SegmentStats_proto_2fproxima_5fbe_2eproto =
272 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CollectionStats_SegmentStats_proto_2fproxima_5fbe_2eproto}, {}};
273
274static void InitDefaultsscc_info_DescribeCollectionResponse_proto_2fproxima_5fbe_2eproto() {
275 GOOGLE_PROTOBUF_VERIFY_VERSION;
276
277 {
278 void* ptr = &::proxima::be::proto::_DescribeCollectionResponse_default_instance_;
279 new (ptr) ::proxima::be::proto::DescribeCollectionResponse();
280 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
281 }
282 ::proxima::be::proto::DescribeCollectionResponse::InitAsDefaultInstance();
283}
284
285::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_DescribeCollectionResponse_proto_2fproxima_5fbe_2eproto =
286 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_DescribeCollectionResponse_proto_2fproxima_5fbe_2eproto}, {
287 &scc_info_Status_proto_2fcommon_2eproto.base,
288 &scc_info_CollectionInfo_proto_2fproxima_5fbe_2eproto.base,}};
289
290static void InitDefaultsscc_info_Document_proto_2fproxima_5fbe_2eproto() {
291 GOOGLE_PROTOBUF_VERIFY_VERSION;
292
293 {
294 void* ptr = &::proxima::be::proto::_Document_default_instance_;
295 new (ptr) ::proxima::be::proto::Document();
296 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
297 }
298 ::proxima::be::proto::Document::InitAsDefaultInstance();
299}
300
301::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Document_proto_2fproxima_5fbe_2eproto =
302 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Document_proto_2fproxima_5fbe_2eproto}, {
303 &scc_info_GenericKeyValue_proto_2fcommon_2eproto.base,}};
304
305static void InitDefaultsscc_info_GetDocumentRequest_proto_2fproxima_5fbe_2eproto() {
306 GOOGLE_PROTOBUF_VERIFY_VERSION;
307
308 {
309 void* ptr = &::proxima::be::proto::_GetDocumentRequest_default_instance_;
310 new (ptr) ::proxima::be::proto::GetDocumentRequest();
311 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
312 }
313 ::proxima::be::proto::GetDocumentRequest::InitAsDefaultInstance();
314}
315
316::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetDocumentRequest_proto_2fproxima_5fbe_2eproto =
317 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetDocumentRequest_proto_2fproxima_5fbe_2eproto}, {}};
318
319static void InitDefaultsscc_info_GetDocumentResponse_proto_2fproxima_5fbe_2eproto() {
320 GOOGLE_PROTOBUF_VERIFY_VERSION;
321
322 {
323 void* ptr = &::proxima::be::proto::_GetDocumentResponse_default_instance_;
324 new (ptr) ::proxima::be::proto::GetDocumentResponse();
325 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
326 }
327 ::proxima::be::proto::GetDocumentResponse::InitAsDefaultInstance();
328}
329
330::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_GetDocumentResponse_proto_2fproxima_5fbe_2eproto =
331 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_GetDocumentResponse_proto_2fproxima_5fbe_2eproto}, {
332 &scc_info_Status_proto_2fcommon_2eproto.base,
333 &scc_info_Document_proto_2fproxima_5fbe_2eproto.base,}};
334
335static void InitDefaultsscc_info_GetVersionRequest_proto_2fproxima_5fbe_2eproto() {
336 GOOGLE_PROTOBUF_VERIFY_VERSION;
337
338 {
339 void* ptr = &::proxima::be::proto::_GetVersionRequest_default_instance_;
340 new (ptr) ::proxima::be::proto::GetVersionRequest();
341 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
342 }
343 ::proxima::be::proto::GetVersionRequest::InitAsDefaultInstance();
344}
345
346::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetVersionRequest_proto_2fproxima_5fbe_2eproto =
347 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetVersionRequest_proto_2fproxima_5fbe_2eproto}, {}};
348
349static void InitDefaultsscc_info_GetVersionResponse_proto_2fproxima_5fbe_2eproto() {
350 GOOGLE_PROTOBUF_VERIFY_VERSION;
351
352 {
353 void* ptr = &::proxima::be::proto::_GetVersionResponse_default_instance_;
354 new (ptr) ::proxima::be::proto::GetVersionResponse();
355 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
356 }
357 ::proxima::be::proto::GetVersionResponse::InitAsDefaultInstance();
358}
359
360::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetVersionResponse_proto_2fproxima_5fbe_2eproto =
361 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetVersionResponse_proto_2fproxima_5fbe_2eproto}, {
362 &scc_info_Status_proto_2fcommon_2eproto.base,}};
363
364static void InitDefaultsscc_info_ListCollectionsResponse_proto_2fproxima_5fbe_2eproto() {
365 GOOGLE_PROTOBUF_VERIFY_VERSION;
366
367 {
368 void* ptr = &::proxima::be::proto::_ListCollectionsResponse_default_instance_;
369 new (ptr) ::proxima::be::proto::ListCollectionsResponse();
370 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
371 }
372 ::proxima::be::proto::ListCollectionsResponse::InitAsDefaultInstance();
373}
374
375::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ListCollectionsResponse_proto_2fproxima_5fbe_2eproto =
376 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_ListCollectionsResponse_proto_2fproxima_5fbe_2eproto}, {
377 &scc_info_Status_proto_2fcommon_2eproto.base,
378 &scc_info_CollectionInfo_proto_2fproxima_5fbe_2eproto.base,}};
379
380static void InitDefaultsscc_info_ListCondition_proto_2fproxima_5fbe_2eproto() {
381 GOOGLE_PROTOBUF_VERIFY_VERSION;
382
383 {
384 void* ptr = &::proxima::be::proto::_ListCondition_default_instance_;
385 new (ptr) ::proxima::be::proto::ListCondition();
386 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
387 }
388 ::proxima::be::proto::ListCondition::InitAsDefaultInstance();
389}
390
391::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListCondition_proto_2fproxima_5fbe_2eproto =
392 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ListCondition_proto_2fproxima_5fbe_2eproto}, {}};
393
394static void InitDefaultsscc_info_LsnContext_proto_2fproxima_5fbe_2eproto() {
395 GOOGLE_PROTOBUF_VERIFY_VERSION;
396
397 {
398 void* ptr = &::proxima::be::proto::_LsnContext_default_instance_;
399 new (ptr) ::proxima::be::proto::LsnContext();
400 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
401 }
402 ::proxima::be::proto::LsnContext::InitAsDefaultInstance();
403}
404
405::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LsnContext_proto_2fproxima_5fbe_2eproto =
406 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_LsnContext_proto_2fproxima_5fbe_2eproto}, {}};
407
408static void InitDefaultsscc_info_QueryRequest_proto_2fproxima_5fbe_2eproto() {
409 GOOGLE_PROTOBUF_VERIFY_VERSION;
410
411 {
412 void* ptr = &::proxima::be::proto::_QueryRequest_default_instance_;
413 new (ptr) ::proxima::be::proto::QueryRequest();
414 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
415 }
416 ::proxima::be::proto::QueryRequest::InitAsDefaultInstance();
417}
418
419::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_QueryRequest_proto_2fproxima_5fbe_2eproto =
420 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_QueryRequest_proto_2fproxima_5fbe_2eproto}, {
421 &scc_info_QueryRequest_KnnQueryParam_proto_2fproxima_5fbe_2eproto.base,}};
422
423static void InitDefaultsscc_info_QueryRequest_KnnQueryParam_proto_2fproxima_5fbe_2eproto() {
424 GOOGLE_PROTOBUF_VERIFY_VERSION;
425
426 {
427 void* ptr = &::proxima::be::proto::_QueryRequest_KnnQueryParam_default_instance_;
428 new (ptr) ::proxima::be::proto::QueryRequest_KnnQueryParam();
429 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
430 }
431 ::proxima::be::proto::QueryRequest_KnnQueryParam::InitAsDefaultInstance();
432}
433
434::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_QueryRequest_KnnQueryParam_proto_2fproxima_5fbe_2eproto =
435 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_QueryRequest_KnnQueryParam_proto_2fproxima_5fbe_2eproto}, {
436 &scc_info_KeyValuePair_proto_2fcommon_2eproto.base,}};
437
438static void InitDefaultsscc_info_QueryResponse_proto_2fproxima_5fbe_2eproto() {
439 GOOGLE_PROTOBUF_VERIFY_VERSION;
440
441 {
442 void* ptr = &::proxima::be::proto::_QueryResponse_default_instance_;
443 new (ptr) ::proxima::be::proto::QueryResponse();
444 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
445 }
446 ::proxima::be::proto::QueryResponse::InitAsDefaultInstance();
447}
448
449::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_QueryResponse_proto_2fproxima_5fbe_2eproto =
450 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_QueryResponse_proto_2fproxima_5fbe_2eproto}, {
451 &scc_info_Status_proto_2fcommon_2eproto.base,
452 &scc_info_QueryResponse_Result_proto_2fproxima_5fbe_2eproto.base,}};
453
454static void InitDefaultsscc_info_QueryResponse_Result_proto_2fproxima_5fbe_2eproto() {
455 GOOGLE_PROTOBUF_VERIFY_VERSION;
456
457 {
458 void* ptr = &::proxima::be::proto::_QueryResponse_Result_default_instance_;
459 new (ptr) ::proxima::be::proto::QueryResponse_Result();
460 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
461 }
462 ::proxima::be::proto::QueryResponse_Result::InitAsDefaultInstance();
463}
464
465::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_QueryResponse_Result_proto_2fproxima_5fbe_2eproto =
466 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_QueryResponse_Result_proto_2fproxima_5fbe_2eproto}, {
467 &scc_info_Document_proto_2fproxima_5fbe_2eproto.base,}};
468
469static void InitDefaultsscc_info_StatsCollectionResponse_proto_2fproxima_5fbe_2eproto() {
470 GOOGLE_PROTOBUF_VERIFY_VERSION;
471
472 {
473 void* ptr = &::proxima::be::proto::_StatsCollectionResponse_default_instance_;
474 new (ptr) ::proxima::be::proto::StatsCollectionResponse();
475 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
476 }
477 ::proxima::be::proto::StatsCollectionResponse::InitAsDefaultInstance();
478}
479
480::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_StatsCollectionResponse_proto_2fproxima_5fbe_2eproto =
481 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_StatsCollectionResponse_proto_2fproxima_5fbe_2eproto}, {
482 &scc_info_Status_proto_2fcommon_2eproto.base,
483 &scc_info_CollectionStats_proto_2fproxima_5fbe_2eproto.base,}};
484
485static void InitDefaultsscc_info_WriteRequest_proto_2fproxima_5fbe_2eproto() {
486 GOOGLE_PROTOBUF_VERIFY_VERSION;
487
488 {
489 void* ptr = &::proxima::be::proto::_WriteRequest_default_instance_;
490 new (ptr) ::proxima::be::proto::WriteRequest();
491 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
492 }
493 ::proxima::be::proto::WriteRequest::InitAsDefaultInstance();
494}
495
496::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_WriteRequest_proto_2fproxima_5fbe_2eproto =
497 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_WriteRequest_proto_2fproxima_5fbe_2eproto}, {
498 &scc_info_WriteRequest_RowMeta_proto_2fproxima_5fbe_2eproto.base,
499 &scc_info_WriteRequest_Row_proto_2fproxima_5fbe_2eproto.base,}};
500
501static void InitDefaultsscc_info_WriteRequest_IndexColumnMeta_proto_2fproxima_5fbe_2eproto() {
502 GOOGLE_PROTOBUF_VERIFY_VERSION;
503
504 {
505 void* ptr = &::proxima::be::proto::_WriteRequest_IndexColumnMeta_default_instance_;
506 new (ptr) ::proxima::be::proto::WriteRequest_IndexColumnMeta();
507 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
508 }
509 ::proxima::be::proto::WriteRequest_IndexColumnMeta::InitAsDefaultInstance();
510}
511
512::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_WriteRequest_IndexColumnMeta_proto_2fproxima_5fbe_2eproto =
513 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_WriteRequest_IndexColumnMeta_proto_2fproxima_5fbe_2eproto}, {}};
514
515static void InitDefaultsscc_info_WriteRequest_Row_proto_2fproxima_5fbe_2eproto() {
516 GOOGLE_PROTOBUF_VERIFY_VERSION;
517
518 {
519 void* ptr = &::proxima::be::proto::_WriteRequest_Row_default_instance_;
520 new (ptr) ::proxima::be::proto::WriteRequest_Row();
521 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
522 }
523 ::proxima::be::proto::WriteRequest_Row::InitAsDefaultInstance();
524}
525
526::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_WriteRequest_Row_proto_2fproxima_5fbe_2eproto =
527 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_WriteRequest_Row_proto_2fproxima_5fbe_2eproto}, {
528 &scc_info_GenericValueList_proto_2fcommon_2eproto.base,
529 &scc_info_LsnContext_proto_2fproxima_5fbe_2eproto.base,}};
530
531static void InitDefaultsscc_info_WriteRequest_RowMeta_proto_2fproxima_5fbe_2eproto() {
532 GOOGLE_PROTOBUF_VERIFY_VERSION;
533
534 {
535 void* ptr = &::proxima::be::proto::_WriteRequest_RowMeta_default_instance_;
536 new (ptr) ::proxima::be::proto::WriteRequest_RowMeta();
537 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
538 }
539 ::proxima::be::proto::WriteRequest_RowMeta::InitAsDefaultInstance();
540}
541
542::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_WriteRequest_RowMeta_proto_2fproxima_5fbe_2eproto =
543 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_WriteRequest_RowMeta_proto_2fproxima_5fbe_2eproto}, {
544 &scc_info_WriteRequest_IndexColumnMeta_proto_2fproxima_5fbe_2eproto.base,}};
545
546static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_proto_2fproxima_5fbe_2eproto[26];
547static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_proto_2fproxima_5fbe_2eproto[4];
548static const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* file_level_service_descriptors_proto_2fproxima_5fbe_2eproto[2];
549
550const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_proto_2fproxima_5fbe_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
551 ~0u, // no _has_bits_
552 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig_IndexColumnParam, _internal_metadata_),
553 ~0u, // no _extensions_
554 ~0u, // no _oneof_case_
555 ~0u, // no _weak_field_map_
556 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig_IndexColumnParam, column_name_),
557 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig_IndexColumnParam, index_type_),
558 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig_IndexColumnParam, data_type_),
559 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig_IndexColumnParam, dimension_),
560 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig_IndexColumnParam, extra_params_),
561 ~0u, // no _has_bits_
562 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig_RepositoryConfig_Database, _internal_metadata_),
563 ~0u, // no _extensions_
564 ~0u, // no _oneof_case_
565 ~0u, // no _weak_field_map_
566 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig_RepositoryConfig_Database, connection_uri_),
567 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig_RepositoryConfig_Database, table_name_),
568 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig_RepositoryConfig_Database, user_),
569 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig_RepositoryConfig_Database, password_),
570 ~0u, // no _has_bits_
571 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig_RepositoryConfig, _internal_metadata_),
572 ~0u, // no _extensions_
573 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig_RepositoryConfig, _oneof_case_[0]),
574 ~0u, // no _weak_field_map_
575 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig_RepositoryConfig, repository_type_),
576 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig_RepositoryConfig, repository_name_),
577 offsetof(::proxima::be::proto::CollectionConfig_RepositoryConfigDefaultTypeInternal, database_),
578 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig_RepositoryConfig, entity_),
579 ~0u, // no _has_bits_
580 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig, _internal_metadata_),
581 ~0u, // no _extensions_
582 ~0u, // no _oneof_case_
583 ~0u, // no _weak_field_map_
584 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig, collection_name_),
585 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig, max_docs_per_segment_),
586 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig, forward_column_names_),
587 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig, index_column_params_),
588 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionConfig, repository_config_),
589 ~0u, // no _has_bits_
590 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionName, _internal_metadata_),
591 ~0u, // no _extensions_
592 ~0u, // no _oneof_case_
593 ~0u, // no _weak_field_map_
594 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionName, collection_name_),
595 ~0u, // no _has_bits_
596 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::LsnContext, _internal_metadata_),
597 ~0u, // no _extensions_
598 ~0u, // no _oneof_case_
599 ~0u, // no _weak_field_map_
600 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::LsnContext, lsn_),
601 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::LsnContext, context_),
602 ~0u, // no _has_bits_
603 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionInfo, _internal_metadata_),
604 ~0u, // no _extensions_
605 ~0u, // no _oneof_case_
606 ~0u, // no _weak_field_map_
607 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionInfo, config_),
608 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionInfo, status_),
609 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionInfo, uuid_),
610 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionInfo, latest_lsn_context_),
611 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionInfo, magic_number_),
612 ~0u, // no _has_bits_
613 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::DescribeCollectionResponse, _internal_metadata_),
614 ~0u, // no _extensions_
615 ~0u, // no _oneof_case_
616 ~0u, // no _weak_field_map_
617 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::DescribeCollectionResponse, status_),
618 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::DescribeCollectionResponse, collection_),
619 ~0u, // no _has_bits_
620 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::ListCondition, _internal_metadata_),
621 ~0u, // no _extensions_
622 ~0u, // no _oneof_case_
623 ~0u, // no _weak_field_map_
624 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::ListCondition, repository_name_),
625 ~0u, // no _has_bits_
626 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::ListCollectionsResponse, _internal_metadata_),
627 ~0u, // no _extensions_
628 ~0u, // no _oneof_case_
629 ~0u, // no _weak_field_map_
630 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::ListCollectionsResponse, status_),
631 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::ListCollectionsResponse, collections_),
632 ~0u, // no _has_bits_
633 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats_SegmentStats, _internal_metadata_),
634 ~0u, // no _extensions_
635 ~0u, // no _oneof_case_
636 ~0u, // no _weak_field_map_
637 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats_SegmentStats, segment_id_),
638 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats_SegmentStats, state_),
639 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats_SegmentStats, doc_count_),
640 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats_SegmentStats, index_file_count_),
641 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats_SegmentStats, index_file_size_),
642 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats_SegmentStats, min_doc_id_),
643 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats_SegmentStats, max_doc_id_),
644 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats_SegmentStats, min_primary_key_),
645 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats_SegmentStats, max_primary_key_),
646 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats_SegmentStats, min_timestamp_),
647 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats_SegmentStats, max_timestamp_),
648 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats_SegmentStats, min_lsn_),
649 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats_SegmentStats, max_lsn_),
650 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats_SegmentStats, segment_path_),
651 ~0u, // no _has_bits_
652 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats, _internal_metadata_),
653 ~0u, // no _extensions_
654 ~0u, // no _oneof_case_
655 ~0u, // no _weak_field_map_
656 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats, collection_name_),
657 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats, collection_path_),
658 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats, total_doc_count_),
659 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats, total_segment_count_),
660 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats, total_index_file_count_),
661 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats, total_index_file_size_),
662 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::CollectionStats, segment_stats_),
663 ~0u, // no _has_bits_
664 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::StatsCollectionResponse, _internal_metadata_),
665 ~0u, // no _extensions_
666 ~0u, // no _oneof_case_
667 ~0u, // no _weak_field_map_
668 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::StatsCollectionResponse, status_),
669 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::StatsCollectionResponse, collection_stats_),
670 ~0u, // no _has_bits_
671 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::WriteRequest_Row, _internal_metadata_),
672 ~0u, // no _extensions_
673 ~0u, // no _oneof_case_
674 ~0u, // no _weak_field_map_
675 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::WriteRequest_Row, primary_key_),
676 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::WriteRequest_Row, operation_type_),
677 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::WriteRequest_Row, forward_column_values_),
678 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::WriteRequest_Row, index_column_values_),
679 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::WriteRequest_Row, lsn_context_),
680 ~0u, // no _has_bits_
681 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::WriteRequest_IndexColumnMeta, _internal_metadata_),
682 ~0u, // no _extensions_
683 ~0u, // no _oneof_case_
684 ~0u, // no _weak_field_map_
685 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::WriteRequest_IndexColumnMeta, column_name_),
686 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::WriteRequest_IndexColumnMeta, data_type_),
687 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::WriteRequest_IndexColumnMeta, dimension_),
688 ~0u, // no _has_bits_
689 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::WriteRequest_RowMeta, _internal_metadata_),
690 ~0u, // no _extensions_
691 ~0u, // no _oneof_case_
692 ~0u, // no _weak_field_map_
693 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::WriteRequest_RowMeta, forward_column_names_),
694 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::WriteRequest_RowMeta, index_column_metas_),
695 ~0u, // no _has_bits_
696 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::WriteRequest, _internal_metadata_),
697 ~0u, // no _extensions_
698 ~0u, // no _oneof_case_
699 ~0u, // no _weak_field_map_
700 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::WriteRequest, collection_name_),
701 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::WriteRequest, row_meta_),
702 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::WriteRequest, rows_),
703 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::WriteRequest, request_id_),
704 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::WriteRequest, magic_number_),
705 ~0u, // no _has_bits_
706 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::Document, _internal_metadata_),
707 ~0u, // no _extensions_
708 ~0u, // no _oneof_case_
709 ~0u, // no _weak_field_map_
710 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::Document, primary_key_),
711 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::Document, score_),
712 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::Document, forward_column_values_),
713 ~0u, // no _has_bits_
714 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryRequest_KnnQueryParam, _internal_metadata_),
715 ~0u, // no _extensions_
716 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryRequest_KnnQueryParam, _oneof_case_[0]),
717 ~0u, // no _weak_field_map_
718 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryRequest_KnnQueryParam, column_name_),
719 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryRequest_KnnQueryParam, topk_),
720 offsetof(::proxima::be::proto::QueryRequest_KnnQueryParamDefaultTypeInternal, features_),
721 offsetof(::proxima::be::proto::QueryRequest_KnnQueryParamDefaultTypeInternal, matrix_),
722 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryRequest_KnnQueryParam, batch_count_),
723 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryRequest_KnnQueryParam, dimension_),
724 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryRequest_KnnQueryParam, data_type_),
725 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryRequest_KnnQueryParam, radius_),
726 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryRequest_KnnQueryParam, is_linear_),
727 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryRequest_KnnQueryParam, extra_params_),
728 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryRequest_KnnQueryParam, features_value_),
729 ~0u, // no _has_bits_
730 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryRequest, _internal_metadata_),
731 ~0u, // no _extensions_
732 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryRequest, _oneof_case_[0]),
733 ~0u, // no _weak_field_map_
734 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryRequest, collection_name_),
735 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryRequest, query_type_),
736 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryRequest, debug_mode_),
737 offsetof(::proxima::be::proto::QueryRequestDefaultTypeInternal, knn_param_),
738 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryRequest, query_param_),
739 ~0u, // no _has_bits_
740 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryResponse_Result, _internal_metadata_),
741 ~0u, // no _extensions_
742 ~0u, // no _oneof_case_
743 ~0u, // no _weak_field_map_
744 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryResponse_Result, documents_),
745 ~0u, // no _has_bits_
746 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryResponse, _internal_metadata_),
747 ~0u, // no _extensions_
748 ~0u, // no _oneof_case_
749 ~0u, // no _weak_field_map_
750 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryResponse, status_),
751 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryResponse, debug_info_),
752 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryResponse, latency_us_),
753 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::QueryResponse, results_),
754 ~0u, // no _has_bits_
755 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::GetDocumentRequest, _internal_metadata_),
756 ~0u, // no _extensions_
757 ~0u, // no _oneof_case_
758 ~0u, // no _weak_field_map_
759 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::GetDocumentRequest, collection_name_),
760 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::GetDocumentRequest, primary_key_),
761 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::GetDocumentRequest, debug_mode_),
762 ~0u, // no _has_bits_
763 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::GetDocumentResponse, _internal_metadata_),
764 ~0u, // no _extensions_
765 ~0u, // no _oneof_case_
766 ~0u, // no _weak_field_map_
767 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::GetDocumentResponse, status_),
768 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::GetDocumentResponse, debug_info_),
769 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::GetDocumentResponse, document_),
770 ~0u, // no _has_bits_
771 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::GetVersionRequest, _internal_metadata_),
772 ~0u, // no _extensions_
773 ~0u, // no _oneof_case_
774 ~0u, // no _weak_field_map_
775 ~0u, // no _has_bits_
776 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::GetVersionResponse, _internal_metadata_),
777 ~0u, // no _extensions_
778 ~0u, // no _oneof_case_
779 ~0u, // no _weak_field_map_
780 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::GetVersionResponse, status_),
781 PROTOBUF_FIELD_OFFSET(::proxima::be::proto::GetVersionResponse, version_),
782};
783static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
784 { 0, -1, sizeof(::proxima::be::proto::CollectionConfig_IndexColumnParam)},
785 { 10, -1, sizeof(::proxima::be::proto::CollectionConfig_RepositoryConfig_Database)},
786 { 19, -1, sizeof(::proxima::be::proto::CollectionConfig_RepositoryConfig)},
787 { 28, -1, sizeof(::proxima::be::proto::CollectionConfig)},
788 { 38, -1, sizeof(::proxima::be::proto::CollectionName)},
789 { 44, -1, sizeof(::proxima::be::proto::LsnContext)},
790 { 51, -1, sizeof(::proxima::be::proto::CollectionInfo)},
791 { 61, -1, sizeof(::proxima::be::proto::DescribeCollectionResponse)},
792 { 68, -1, sizeof(::proxima::be::proto::ListCondition)},
793 { 74, -1, sizeof(::proxima::be::proto::ListCollectionsResponse)},
794 { 81, -1, sizeof(::proxima::be::proto::CollectionStats_SegmentStats)},
795 { 100, -1, sizeof(::proxima::be::proto::CollectionStats)},
796 { 112, -1, sizeof(::proxima::be::proto::StatsCollectionResponse)},
797 { 119, -1, sizeof(::proxima::be::proto::WriteRequest_Row)},
798 { 129, -1, sizeof(::proxima::be::proto::WriteRequest_IndexColumnMeta)},
799 { 137, -1, sizeof(::proxima::be::proto::WriteRequest_RowMeta)},
800 { 144, -1, sizeof(::proxima::be::proto::WriteRequest)},
801 { 154, -1, sizeof(::proxima::be::proto::Document)},
802 { 162, -1, sizeof(::proxima::be::proto::QueryRequest_KnnQueryParam)},
803 { 178, -1, sizeof(::proxima::be::proto::QueryRequest)},
804 { 188, -1, sizeof(::proxima::be::proto::QueryResponse_Result)},
805 { 194, -1, sizeof(::proxima::be::proto::QueryResponse)},
806 { 203, -1, sizeof(::proxima::be::proto::GetDocumentRequest)},
807 { 211, -1, sizeof(::proxima::be::proto::GetDocumentResponse)},
808 { 219, -1, sizeof(::proxima::be::proto::GetVersionRequest)},
809 { 224, -1, sizeof(::proxima::be::proto::GetVersionResponse)},
810};
811
812static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
813 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_CollectionConfig_IndexColumnParam_default_instance_),
814 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_CollectionConfig_RepositoryConfig_Database_default_instance_),
815 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_CollectionConfig_RepositoryConfig_default_instance_),
816 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_CollectionConfig_default_instance_),
817 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_CollectionName_default_instance_),
818 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_LsnContext_default_instance_),
819 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_CollectionInfo_default_instance_),
820 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_DescribeCollectionResponse_default_instance_),
821 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_ListCondition_default_instance_),
822 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_ListCollectionsResponse_default_instance_),
823 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_CollectionStats_SegmentStats_default_instance_),
824 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_CollectionStats_default_instance_),
825 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_StatsCollectionResponse_default_instance_),
826 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_WriteRequest_Row_default_instance_),
827 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_WriteRequest_IndexColumnMeta_default_instance_),
828 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_WriteRequest_RowMeta_default_instance_),
829 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_WriteRequest_default_instance_),
830 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_Document_default_instance_),
831 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_QueryRequest_KnnQueryParam_default_instance_),
832 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_QueryRequest_default_instance_),
833 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_QueryResponse_Result_default_instance_),
834 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_QueryResponse_default_instance_),
835 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_GetDocumentRequest_default_instance_),
836 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_GetDocumentResponse_default_instance_),
837 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_GetVersionRequest_default_instance_),
838 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proxima::be::proto::_GetVersionResponse_default_instance_),
839};
840
841const char descriptor_table_protodef_proto_2fproxima_5fbe_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
842 "\n\026proto/proxima_be.proto\022\020proxima.be.pro"
843 "to\032\022proto/common.proto\"\276\006\n\020CollectionCon"
844 "fig\022\027\n\017collection_name\030\001 \001(\t\022\034\n\024max_docs"
845 "_per_segment\030\002 \001(\004\022\034\n\024forward_column_nam"
846 "es\030\003 \003(\t\022P\n\023index_column_params\030\004 \003(\01323."
847 "proxima.be.proto.CollectionConfig.IndexC"
848 "olumnParam\022N\n\021repository_config\030\005 \001(\01323."
849 "proxima.be.proto.CollectionConfig.Reposi"
850 "toryConfig\032\320\001\n\020IndexColumnParam\022\023\n\013colum"
851 "n_name\030\001 \001(\t\022/\n\nindex_type\030\002 \001(\0162\033.proxi"
852 "ma.be.proto.IndexType\022-\n\tdata_type\030\003 \001(\016"
853 "2\032.proxima.be.proto.DataType\022\021\n\tdimensio"
854 "n\030\004 \001(\r\0224\n\014extra_params\030\005 \003(\0132\036.proxima."
855 "be.proto.KeyValuePair\032\337\002\n\020RepositoryConf"
856 "ig\022[\n\017repository_type\030\001 \001(\0162B.proxima.be"
857 ".proto.CollectionConfig.RepositoryConfig"
858 ".RepositoryType\022\027\n\017repository_name\030\002 \001(\t"
859 "\022P\n\010database\030\003 \001(\0132<.proxima.be.proto.Co"
860 "llectionConfig.RepositoryConfig.Database"
861 "H\000\032V\n\010Database\022\026\n\016connection_uri\030\001 \001(\t\022\022"
862 "\n\ntable_name\030\002 \001(\t\022\014\n\004user\030\003 \001(\t\022\020\n\010pass"
863 "word\030\004 \001(\t\"!\n\016RepositoryType\022\017\n\013RT_DATAB"
864 "ASE\020\000B\010\n\006entity\")\n\016CollectionName\022\027\n\017col"
865 "lection_name\030\001 \001(\t\"*\n\nLsnContext\022\013\n\003lsn\030"
866 "\001 \001(\004\022\017\n\007context\030\002 \001(\t\"\255\002\n\016CollectionInf"
867 "o\0222\n\006config\030\001 \001(\0132\".proxima.be.proto.Col"
868 "lectionConfig\022A\n\006status\030\002 \001(\01621.proxima."
869 "be.proto.CollectionInfo.CollectionStatus"
870 "\022\014\n\004uuid\030\003 \001(\t\0228\n\022latest_lsn_context\030\004 \001"
871 "(\0132\034.proxima.be.proto.LsnContext\022\024\n\014magi"
872 "c_number\030\005 \001(\004\"F\n\020CollectionStatus\022\022\n\016CS"
873 "_INITIALIZED\020\000\022\016\n\nCS_SERVING\020\001\022\016\n\nCS_DRO"
874 "PPED\020\002\"|\n\032DescribeCollectionResponse\022(\n\006"
875 "status\030\001 \001(\0132\030.proxima.be.proto.Status\0224"
876 "\n\ncollection\030\002 \001(\0132 .proxima.be.proto.Co"
877 "llectionInfo\"(\n\rListCondition\022\027\n\017reposit"
878 "ory_name\030\001 \001(\t\"z\n\027ListCollectionsRespons"
879 "e\022(\n\006status\030\001 \001(\0132\030.proxima.be.proto.Sta"
880 "tus\0225\n\013collections\030\002 \003(\0132 .proxima.be.pr"
881 "oto.CollectionInfo\"\331\005\n\017CollectionStats\022\027"
882 "\n\017collection_name\030\001 \001(\t\022\027\n\017collection_pa"
883 "th\030\002 \001(\t\022\027\n\017total_doc_count\030\003 \001(\004\022\033\n\023tot"
884 "al_segment_count\030\004 \001(\004\022\036\n\026total_index_fi"
885 "le_count\030\005 \001(\004\022\035\n\025total_index_file_size\030"
886 "\006 \001(\004\022E\n\rsegment_stats\030\007 \003(\0132..proxima.b"
887 "e.proto.CollectionStats.SegmentStats\032\327\003\n"
888 "\014SegmentStats\022\022\n\nsegment_id\030\001 \001(\r\022J\n\005sta"
889 "te\030\002 \001(\0162;.proxima.be.proto.CollectionSt"
890 "ats.SegmentStats.SegmentState\022\021\n\tdoc_cou"
891 "nt\030\003 \001(\004\022\030\n\020index_file_count\030\004 \001(\004\022\027\n\017in"
892 "dex_file_size\030\005 \001(\004\022\022\n\nmin_doc_id\030\006 \001(\004\022"
893 "\022\n\nmax_doc_id\030\007 \001(\004\022\027\n\017min_primary_key\030\010"
894 " \001(\004\022\027\n\017max_primary_key\030\t \001(\004\022\025\n\rmin_tim"
895 "estamp\030\n \001(\004\022\025\n\rmax_timestamp\030\013 \001(\004\022\017\n\007m"
896 "in_lsn\030\014 \001(\004\022\017\n\007max_lsn\030\r \001(\004\022\024\n\014segment"
897 "_path\030\016 \001(\t\"a\n\014SegmentState\022\016\n\nSS_CREATE"
898 "D\020\000\022\016\n\nSS_WRITING\020\001\022\016\n\nSS_DUMPING\020\002\022\021\n\rS"
899 "S_COMPACTING\020\003\022\016\n\nSS_PERSIST\020\004\"\200\001\n\027Stats"
900 "CollectionResponse\022(\n\006status\030\001 \001(\0132\030.pro"
901 "xima.be.proto.Status\022;\n\020collection_stats"
902 "\030\002 \001(\0132!.proxima.be.proto.CollectionStat"
903 "s\"\251\005\n\014WriteRequest\022\027\n\017collection_name\030\001 "
904 "\001(\t\0228\n\010row_meta\030\002 \001(\0132&.proxima.be.proto"
905 ".WriteRequest.RowMeta\0220\n\004rows\030\003 \003(\0132\".pr"
906 "oxima.be.proto.WriteRequest.Row\022\022\n\nreque"
907 "st_id\030\004 \001(\t\022\024\n\014magic_number\030\005 \001(\004\032\212\002\n\003Ro"
908 "w\022\023\n\013primary_key\030\001 \001(\004\0227\n\016operation_type"
909 "\030\002 \001(\0162\037.proxima.be.proto.OperationType\022"
910 "A\n\025forward_column_values\030\003 \001(\0132\".proxima"
911 ".be.proto.GenericValueList\022\?\n\023index_colu"
912 "mn_values\030\004 \001(\0132\".proxima.be.proto.Gener"
913 "icValueList\0221\n\013lsn_context\030\005 \001(\0132\034.proxi"
914 "ma.be.proto.LsnContext\032h\n\017IndexColumnMet"
915 "a\022\023\n\013column_name\030\001 \001(\t\022-\n\tdata_type\030\002 \001("
916 "\0162\032.proxima.be.proto.DataType\022\021\n\tdimensi"
917 "on\030\003 \001(\r\032s\n\007RowMeta\022\034\n\024forward_column_na"
918 "mes\030\001 \003(\t\022J\n\022index_column_metas\030\002 \003(\0132.."
919 "proxima.be.proto.WriteRequest.IndexColum"
920 "nMeta\"p\n\010Document\022\023\n\013primary_key\030\001 \001(\004\022\r"
921 "\n\005score\030\002 \001(\002\022@\n\025forward_column_values\030\003"
922 " \003(\0132!.proxima.be.proto.GenericKeyValue\""
923 "\201\004\n\014QueryRequest\022\027\n\017collection_name\030\001 \001("
924 "\t\022<\n\nquery_type\030\002 \001(\0162(.proxima.be.proto"
925 ".QueryRequest.QueryType\022\022\n\ndebug_mode\030\003 "
926 "\001(\010\022A\n\tknn_param\030\004 \001(\0132,.proxima.be.prot"
927 "o.QueryRequest.KnnQueryParamH\000\032\232\002\n\rKnnQu"
928 "eryParam\022\023\n\013column_name\030\001 \001(\t\022\014\n\004topk\030\002 "
929 "\001(\r\022\022\n\010features\030\003 \001(\014H\000\022\020\n\006matrix\030\004 \001(\tH"
930 "\000\022\023\n\013batch_count\030\005 \001(\r\022\021\n\tdimension\030\006 \001("
931 "\r\022-\n\tdata_type\030\007 \001(\0162\032.proxima.be.proto."
932 "DataType\022\016\n\006radius\030\010 \001(\002\022\021\n\tis_linear\030\t "
933 "\001(\010\0224\n\014extra_params\030\n \003(\0132\036.proxima.be.p"
934 "roto.KeyValuePairB\020\n\016features_value\"\027\n\tQ"
935 "ueryType\022\n\n\006QT_KNN\020\000B\r\n\013query_param\"\323\001\n\r"
936 "QueryResponse\022(\n\006status\030\001 \001(\0132\030.proxima."
937 "be.proto.Status\022\022\n\ndebug_info\030\002 \001(\t\022\022\n\nl"
938 "atency_us\030\003 \001(\004\0227\n\007results\030\004 \003(\0132&.proxi"
939 "ma.be.proto.QueryResponse.Result\0327\n\006Resu"
940 "lt\022-\n\tdocuments\030\001 \003(\0132\032.proxima.be.proto"
941 ".Document\"V\n\022GetDocumentRequest\022\027\n\017colle"
942 "ction_name\030\001 \001(\t\022\023\n\013primary_key\030\002 \001(\004\022\022\n"
943 "\ndebug_mode\030\003 \001(\010\"\201\001\n\023GetDocumentRespons"
944 "e\022(\n\006status\030\001 \001(\0132\030.proxima.be.proto.Sta"
945 "tus\022\022\n\ndebug_info\030\002 \001(\t\022,\n\010document\030\003 \001("
946 "\0132\032.proxima.be.proto.Document\"\023\n\021GetVers"
947 "ionRequest\"O\n\022GetVersionResponse\022(\n\006stat"
948 "us\030\001 \001(\0132\030.proxima.be.proto.Status\022\017\n\007ve"
949 "rsion\030\002 \001(\t2\245\006\n\016ProximaService\022Q\n\021create"
950 "_collection\022\".proxima.be.proto.Collectio"
951 "nConfig\032\030.proxima.be.proto.Status\022M\n\017dro"
952 "p_collection\022 .proxima.be.proto.Collecti"
953 "onName\032\030.proxima.be.proto.Status\022e\n\023desc"
954 "ribe_collection\022 .proxima.be.proto.Colle"
955 "ctionName\032,.proxima.be.proto.DescribeCol"
956 "lectionResponse\022^\n\020list_collections\022\037.pr"
957 "oxima.be.proto.ListCondition\032).proxima.b"
958 "e.proto.ListCollectionsResponse\022_\n\020stats"
959 "_collection\022 .proxima.be.proto.Collectio"
960 "nName\032).proxima.be.proto.StatsCollection"
961 "Response\022A\n\005write\022\036.proxima.be.proto.Wri"
962 "teRequest\032\030.proxima.be.proto.Status\022H\n\005q"
963 "uery\022\036.proxima.be.proto.QueryRequest\032\037.p"
964 "roxima.be.proto.QueryResponse\022b\n\023get_doc"
965 "ument_by_key\022$.proxima.be.proto.GetDocum"
966 "entRequest\032%.proxima.be.proto.GetDocumen"
967 "tResponse\022X\n\013get_version\022#.proxima.be.pr"
968 "oto.GetVersionRequest\032$.proxima.be.proto"
969 ".GetVersionResponse2\273\004\n\022HttpProximaServi"
970 "ce\022K\n\ncollection\022\035.proxima.be.proto.Http"
971 "Request\032\036.proxima.be.proto.HttpResponse\022"
972 "Q\n\020stats_collection\022\035.proxima.be.proto.H"
973 "ttpRequest\032\036.proxima.be.proto.HttpRespon"
974 "se\022F\n\005write\022\035.proxima.be.proto.HttpReque"
975 "st\032\036.proxima.be.proto.HttpResponse\022F\n\005qu"
976 "ery\022\035.proxima.be.proto.HttpRequest\032\036.pro"
977 "xima.be.proto.HttpResponse\022T\n\023get_docume"
978 "nt_by_key\022\035.proxima.be.proto.HttpRequest"
979 "\032\036.proxima.be.proto.HttpResponse\022Q\n\020list"
980 "_collections\022\035.proxima.be.proto.HttpRequ"
981 "est\032\036.proxima.be.proto.HttpResponse\022L\n\013g"
982 "et_version\022\035.proxima.be.proto.HttpReques"
983 "t\032\036.proxima.be.proto.HttpResponseB\025Z\020pro"
984 "xima/be/proto\200\001\001b\006proto3"
985 ;
986static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_proto_2fproxima_5fbe_2eproto_deps[1] = {
987 &::descriptor_table_proto_2fcommon_2eproto,
988};
989static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_proto_2fproxima_5fbe_2eproto_sccs[26] = {
990 &scc_info_CollectionConfig_proto_2fproxima_5fbe_2eproto.base,
991 &scc_info_CollectionConfig_IndexColumnParam_proto_2fproxima_5fbe_2eproto.base,
992 &scc_info_CollectionConfig_RepositoryConfig_proto_2fproxima_5fbe_2eproto.base,
993 &scc_info_CollectionConfig_RepositoryConfig_Database_proto_2fproxima_5fbe_2eproto.base,
994 &scc_info_CollectionInfo_proto_2fproxima_5fbe_2eproto.base,
995 &scc_info_CollectionName_proto_2fproxima_5fbe_2eproto.base,
996 &scc_info_CollectionStats_proto_2fproxima_5fbe_2eproto.base,
997 &scc_info_CollectionStats_SegmentStats_proto_2fproxima_5fbe_2eproto.base,
998 &scc_info_DescribeCollectionResponse_proto_2fproxima_5fbe_2eproto.base,
999 &scc_info_Document_proto_2fproxima_5fbe_2eproto.base,
1000 &scc_info_GetDocumentRequest_proto_2fproxima_5fbe_2eproto.base,
1001 &scc_info_GetDocumentResponse_proto_2fproxima_5fbe_2eproto.base,
1002 &scc_info_GetVersionRequest_proto_2fproxima_5fbe_2eproto.base,
1003 &scc_info_GetVersionResponse_proto_2fproxima_5fbe_2eproto.base,
1004 &scc_info_ListCollectionsResponse_proto_2fproxima_5fbe_2eproto.base,
1005 &scc_info_ListCondition_proto_2fproxima_5fbe_2eproto.base,
1006 &scc_info_LsnContext_proto_2fproxima_5fbe_2eproto.base,
1007 &scc_info_QueryRequest_proto_2fproxima_5fbe_2eproto.base,
1008 &scc_info_QueryRequest_KnnQueryParam_proto_2fproxima_5fbe_2eproto.base,
1009 &scc_info_QueryResponse_proto_2fproxima_5fbe_2eproto.base,
1010 &scc_info_QueryResponse_Result_proto_2fproxima_5fbe_2eproto.base,
1011 &scc_info_StatsCollectionResponse_proto_2fproxima_5fbe_2eproto.base,
1012 &scc_info_WriteRequest_proto_2fproxima_5fbe_2eproto.base,
1013 &scc_info_WriteRequest_IndexColumnMeta_proto_2fproxima_5fbe_2eproto.base,
1014 &scc_info_WriteRequest_Row_proto_2fproxima_5fbe_2eproto.base,
1015 &scc_info_WriteRequest_RowMeta_proto_2fproxima_5fbe_2eproto.base,
1016};
1017static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_proto_2fproxima_5fbe_2eproto_once;
1018static bool descriptor_table_proto_2fproxima_5fbe_2eproto_initialized = false;
1019const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_proto_2fproxima_5fbe_2eproto = {
1020 &descriptor_table_proto_2fproxima_5fbe_2eproto_initialized, descriptor_table_protodef_proto_2fproxima_5fbe_2eproto, "proto/proxima_be.proto", 5704,
1021 &descriptor_table_proto_2fproxima_5fbe_2eproto_once, descriptor_table_proto_2fproxima_5fbe_2eproto_sccs, descriptor_table_proto_2fproxima_5fbe_2eproto_deps, 26, 1,
1022 schemas, file_default_instances, TableStruct_proto_2fproxima_5fbe_2eproto::offsets,
1023 file_level_metadata_proto_2fproxima_5fbe_2eproto, 26, file_level_enum_descriptors_proto_2fproxima_5fbe_2eproto, file_level_service_descriptors_proto_2fproxima_5fbe_2eproto,
1024};
1025
1026// Force running AddDescriptors() at dynamic initialization time.
1027static bool dynamic_init_dummy_proto_2fproxima_5fbe_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_proto_2fproxima_5fbe_2eproto), true);
1028namespace proxima {
1029namespace be {
1030namespace proto {
1031const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CollectionConfig_RepositoryConfig_RepositoryType_descriptor() {
1032 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_proto_2fproxima_5fbe_2eproto);
1033 return file_level_enum_descriptors_proto_2fproxima_5fbe_2eproto[0];
1034}
1035bool CollectionConfig_RepositoryConfig_RepositoryType_IsValid(int value) {
1036 switch (value) {
1037 case 0:
1038 return true;
1039 default:
1040 return false;
1041 }
1042}
1043
1044#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
1045constexpr CollectionConfig_RepositoryConfig_RepositoryType CollectionConfig_RepositoryConfig::RT_DATABASE;
1046constexpr CollectionConfig_RepositoryConfig_RepositoryType CollectionConfig_RepositoryConfig::RepositoryType_MIN;
1047constexpr CollectionConfig_RepositoryConfig_RepositoryType CollectionConfig_RepositoryConfig::RepositoryType_MAX;
1048constexpr int CollectionConfig_RepositoryConfig::RepositoryType_ARRAYSIZE;
1049#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
1050const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CollectionInfo_CollectionStatus_descriptor() {
1051 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_proto_2fproxima_5fbe_2eproto);
1052 return file_level_enum_descriptors_proto_2fproxima_5fbe_2eproto[1];
1053}
1054bool CollectionInfo_CollectionStatus_IsValid(int value) {
1055 switch (value) {
1056 case 0:
1057 case 1:
1058 case 2:
1059 return true;
1060 default:
1061 return false;
1062 }
1063}
1064
1065#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
1066constexpr CollectionInfo_CollectionStatus CollectionInfo::CS_INITIALIZED;
1067constexpr CollectionInfo_CollectionStatus CollectionInfo::CS_SERVING;
1068constexpr CollectionInfo_CollectionStatus CollectionInfo::CS_DROPPED;
1069constexpr CollectionInfo_CollectionStatus CollectionInfo::CollectionStatus_MIN;
1070constexpr CollectionInfo_CollectionStatus CollectionInfo::CollectionStatus_MAX;
1071constexpr int CollectionInfo::CollectionStatus_ARRAYSIZE;
1072#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
1073const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CollectionStats_SegmentStats_SegmentState_descriptor() {
1074 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_proto_2fproxima_5fbe_2eproto);
1075 return file_level_enum_descriptors_proto_2fproxima_5fbe_2eproto[2];
1076}
1077bool CollectionStats_SegmentStats_SegmentState_IsValid(int value) {
1078 switch (value) {
1079 case 0:
1080 case 1:
1081 case 2:
1082 case 3:
1083 case 4:
1084 return true;
1085 default:
1086 return false;
1087 }
1088}
1089
1090#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
1091constexpr CollectionStats_SegmentStats_SegmentState CollectionStats_SegmentStats::SS_CREATED;
1092constexpr CollectionStats_SegmentStats_SegmentState CollectionStats_SegmentStats::SS_WRITING;
1093constexpr CollectionStats_SegmentStats_SegmentState CollectionStats_SegmentStats::SS_DUMPING;
1094constexpr CollectionStats_SegmentStats_SegmentState CollectionStats_SegmentStats::SS_COMPACTING;
1095constexpr CollectionStats_SegmentStats_SegmentState CollectionStats_SegmentStats::SS_PERSIST;
1096constexpr CollectionStats_SegmentStats_SegmentState CollectionStats_SegmentStats::SegmentState_MIN;
1097constexpr CollectionStats_SegmentStats_SegmentState CollectionStats_SegmentStats::SegmentState_MAX;
1098constexpr int CollectionStats_SegmentStats::SegmentState_ARRAYSIZE;
1099#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
1100const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* QueryRequest_QueryType_descriptor() {
1101 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_proto_2fproxima_5fbe_2eproto);
1102 return file_level_enum_descriptors_proto_2fproxima_5fbe_2eproto[3];
1103}
1104bool QueryRequest_QueryType_IsValid(int value) {
1105 switch (value) {
1106 case 0:
1107 return true;
1108 default:
1109 return false;
1110 }
1111}
1112
1113#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
1114constexpr QueryRequest_QueryType QueryRequest::QT_KNN;
1115constexpr QueryRequest_QueryType QueryRequest::QueryType_MIN;
1116constexpr QueryRequest_QueryType QueryRequest::QueryType_MAX;
1117constexpr int QueryRequest::QueryType_ARRAYSIZE;
1118#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
1119
1120// ===================================================================
1121
1122void CollectionConfig_IndexColumnParam::InitAsDefaultInstance() {
1123}
1124class CollectionConfig_IndexColumnParam::_Internal {
1125 public:
1126};
1127
1128void CollectionConfig_IndexColumnParam::clear_extra_params() {
1129 extra_params_.Clear();
1130}
1131CollectionConfig_IndexColumnParam::CollectionConfig_IndexColumnParam()
1132 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1133 SharedCtor();
1134 // @@protoc_insertion_point(constructor:proxima.be.proto.CollectionConfig.IndexColumnParam)
1135}
1136CollectionConfig_IndexColumnParam::CollectionConfig_IndexColumnParam(const CollectionConfig_IndexColumnParam& from)
1137 : ::PROTOBUF_NAMESPACE_ID::Message(),
1138 _internal_metadata_(nullptr),
1139 extra_params_(from.extra_params_) {
1140 _internal_metadata_.MergeFrom(from._internal_metadata_);
1141 column_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1142 if (!from._internal_column_name().empty()) {
1143 column_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.column_name_);
1144 }
1145 ::memcpy(&index_type_, &from.index_type_,
1146 static_cast<size_t>(reinterpret_cast<char*>(&dimension_) -
1147 reinterpret_cast<char*>(&index_type_)) + sizeof(dimension_));
1148 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.CollectionConfig.IndexColumnParam)
1149}
1150
1151void CollectionConfig_IndexColumnParam::SharedCtor() {
1152 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionConfig_IndexColumnParam_proto_2fproxima_5fbe_2eproto.base);
1153 column_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1154 ::memset(&index_type_, 0, static_cast<size_t>(
1155 reinterpret_cast<char*>(&dimension_) -
1156 reinterpret_cast<char*>(&index_type_)) + sizeof(dimension_));
1157}
1158
1159CollectionConfig_IndexColumnParam::~CollectionConfig_IndexColumnParam() {
1160 // @@protoc_insertion_point(destructor:proxima.be.proto.CollectionConfig.IndexColumnParam)
1161 SharedDtor();
1162}
1163
1164void CollectionConfig_IndexColumnParam::SharedDtor() {
1165 column_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1166}
1167
1168void CollectionConfig_IndexColumnParam::SetCachedSize(int size) const {
1169 _cached_size_.Set(size);
1170}
1171const CollectionConfig_IndexColumnParam& CollectionConfig_IndexColumnParam::default_instance() {
1172 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionConfig_IndexColumnParam_proto_2fproxima_5fbe_2eproto.base);
1173 return *internal_default_instance();
1174}
1175
1176
1177void CollectionConfig_IndexColumnParam::Clear() {
1178// @@protoc_insertion_point(message_clear_start:proxima.be.proto.CollectionConfig.IndexColumnParam)
1179 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1180 // Prevent compiler warnings about cached_has_bits being unused
1181 (void) cached_has_bits;
1182
1183 extra_params_.Clear();
1184 column_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1185 ::memset(&index_type_, 0, static_cast<size_t>(
1186 reinterpret_cast<char*>(&dimension_) -
1187 reinterpret_cast<char*>(&index_type_)) + sizeof(dimension_));
1188 _internal_metadata_.Clear();
1189}
1190
1191const char* CollectionConfig_IndexColumnParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1192#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1193 while (!ctx->Done(&ptr)) {
1194 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1195 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1196 CHK_(ptr);
1197 switch (tag >> 3) {
1198 // string column_name = 1;
1199 case 1:
1200 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1201 auto str = _internal_mutable_column_name();
1202 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1203 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.CollectionConfig.IndexColumnParam.column_name"));
1204 CHK_(ptr);
1205 } else goto handle_unusual;
1206 continue;
1207 // .proxima.be.proto.IndexType index_type = 2;
1208 case 2:
1209 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
1210 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1211 CHK_(ptr);
1212 _internal_set_index_type(static_cast<::proxima::be::proto::IndexType>(val));
1213 } else goto handle_unusual;
1214 continue;
1215 // .proxima.be.proto.DataType data_type = 3;
1216 case 3:
1217 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
1218 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1219 CHK_(ptr);
1220 _internal_set_data_type(static_cast<::proxima::be::proto::DataType>(val));
1221 } else goto handle_unusual;
1222 continue;
1223 // uint32 dimension = 4;
1224 case 4:
1225 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
1226 dimension_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1227 CHK_(ptr);
1228 } else goto handle_unusual;
1229 continue;
1230 // repeated .proxima.be.proto.KeyValuePair extra_params = 5;
1231 case 5:
1232 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
1233 ptr -= 1;
1234 do {
1235 ptr += 1;
1236 ptr = ctx->ParseMessage(_internal_add_extra_params(), ptr);
1237 CHK_(ptr);
1238 if (!ctx->DataAvailable(ptr)) break;
1239 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
1240 } else goto handle_unusual;
1241 continue;
1242 default: {
1243 handle_unusual:
1244 if ((tag & 7) == 4 || tag == 0) {
1245 ctx->SetLastTag(tag);
1246 goto success;
1247 }
1248 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1249 CHK_(ptr != nullptr);
1250 continue;
1251 }
1252 } // switch
1253 } // while
1254success:
1255 return ptr;
1256failure:
1257 ptr = nullptr;
1258 goto success;
1259#undef CHK_
1260}
1261
1262::PROTOBUF_NAMESPACE_ID::uint8* CollectionConfig_IndexColumnParam::_InternalSerialize(
1263 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1264 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.CollectionConfig.IndexColumnParam)
1265 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1266 (void) cached_has_bits;
1267
1268 // string column_name = 1;
1269 if (this->column_name().size() > 0) {
1270 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1271 this->_internal_column_name().data(), static_cast<int>(this->_internal_column_name().length()),
1272 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1273 "proxima.be.proto.CollectionConfig.IndexColumnParam.column_name");
1274 target = stream->WriteStringMaybeAliased(
1275 1, this->_internal_column_name(), target);
1276 }
1277
1278 // .proxima.be.proto.IndexType index_type = 2;
1279 if (this->index_type() != 0) {
1280 target = stream->EnsureSpace(target);
1281 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
1282 2, this->_internal_index_type(), target);
1283 }
1284
1285 // .proxima.be.proto.DataType data_type = 3;
1286 if (this->data_type() != 0) {
1287 target = stream->EnsureSpace(target);
1288 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
1289 3, this->_internal_data_type(), target);
1290 }
1291
1292 // uint32 dimension = 4;
1293 if (this->dimension() != 0) {
1294 target = stream->EnsureSpace(target);
1295 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_dimension(), target);
1296 }
1297
1298 // repeated .proxima.be.proto.KeyValuePair extra_params = 5;
1299 for (unsigned int i = 0,
1300 n = static_cast<unsigned int>(this->_internal_extra_params_size()); i < n; i++) {
1301 target = stream->EnsureSpace(target);
1302 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1303 InternalWriteMessage(5, this->_internal_extra_params(i), target, stream);
1304 }
1305
1306 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1307 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
1308 _internal_metadata_.unknown_fields(), target, stream);
1309 }
1310 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.CollectionConfig.IndexColumnParam)
1311 return target;
1312}
1313
1314size_t CollectionConfig_IndexColumnParam::ByteSizeLong() const {
1315// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.CollectionConfig.IndexColumnParam)
1316 size_t total_size = 0;
1317
1318 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1319 // Prevent compiler warnings about cached_has_bits being unused
1320 (void) cached_has_bits;
1321
1322 // repeated .proxima.be.proto.KeyValuePair extra_params = 5;
1323 total_size += 1UL * this->_internal_extra_params_size();
1324 for (const auto& msg : this->extra_params_) {
1325 total_size +=
1326 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1327 }
1328
1329 // string column_name = 1;
1330 if (this->column_name().size() > 0) {
1331 total_size += 1 +
1332 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1333 this->_internal_column_name());
1334 }
1335
1336 // .proxima.be.proto.IndexType index_type = 2;
1337 if (this->index_type() != 0) {
1338 total_size += 1 +
1339 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_index_type());
1340 }
1341
1342 // .proxima.be.proto.DataType data_type = 3;
1343 if (this->data_type() != 0) {
1344 total_size += 1 +
1345 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_data_type());
1346 }
1347
1348 // uint32 dimension = 4;
1349 if (this->dimension() != 0) {
1350 total_size += 1 +
1351 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
1352 this->_internal_dimension());
1353 }
1354
1355 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1356 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
1357 _internal_metadata_, total_size, &_cached_size_);
1358 }
1359 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1360 SetCachedSize(cached_size);
1361 return total_size;
1362}
1363
1364void CollectionConfig_IndexColumnParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1365// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.CollectionConfig.IndexColumnParam)
1366 GOOGLE_DCHECK_NE(&from, this);
1367 const CollectionConfig_IndexColumnParam* source =
1368 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CollectionConfig_IndexColumnParam>(
1369 &from);
1370 if (source == nullptr) {
1371 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.CollectionConfig.IndexColumnParam)
1372 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1373 } else {
1374 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.CollectionConfig.IndexColumnParam)
1375 MergeFrom(*source);
1376 }
1377}
1378
1379void CollectionConfig_IndexColumnParam::MergeFrom(const CollectionConfig_IndexColumnParam& from) {
1380// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.CollectionConfig.IndexColumnParam)
1381 GOOGLE_DCHECK_NE(&from, this);
1382 _internal_metadata_.MergeFrom(from._internal_metadata_);
1383 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1384 (void) cached_has_bits;
1385
1386 extra_params_.MergeFrom(from.extra_params_);
1387 if (from.column_name().size() > 0) {
1388
1389 column_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.column_name_);
1390 }
1391 if (from.index_type() != 0) {
1392 _internal_set_index_type(from._internal_index_type());
1393 }
1394 if (from.data_type() != 0) {
1395 _internal_set_data_type(from._internal_data_type());
1396 }
1397 if (from.dimension() != 0) {
1398 _internal_set_dimension(from._internal_dimension());
1399 }
1400}
1401
1402void CollectionConfig_IndexColumnParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1403// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.CollectionConfig.IndexColumnParam)
1404 if (&from == this) return;
1405 Clear();
1406 MergeFrom(from);
1407}
1408
1409void CollectionConfig_IndexColumnParam::CopyFrom(const CollectionConfig_IndexColumnParam& from) {
1410// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.CollectionConfig.IndexColumnParam)
1411 if (&from == this) return;
1412 Clear();
1413 MergeFrom(from);
1414}
1415
1416bool CollectionConfig_IndexColumnParam::IsInitialized() const {
1417 return true;
1418}
1419
1420void CollectionConfig_IndexColumnParam::InternalSwap(CollectionConfig_IndexColumnParam* other) {
1421 using std::swap;
1422 _internal_metadata_.Swap(&other->_internal_metadata_);
1423 extra_params_.InternalSwap(&other->extra_params_);
1424 column_name_.Swap(&other->column_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1425 GetArenaNoVirtual());
1426 swap(index_type_, other->index_type_);
1427 swap(data_type_, other->data_type_);
1428 swap(dimension_, other->dimension_);
1429}
1430
1431::PROTOBUF_NAMESPACE_ID::Metadata CollectionConfig_IndexColumnParam::GetMetadata() const {
1432 return GetMetadataStatic();
1433}
1434
1435
1436// ===================================================================
1437
1438void CollectionConfig_RepositoryConfig_Database::InitAsDefaultInstance() {
1439}
1440class CollectionConfig_RepositoryConfig_Database::_Internal {
1441 public:
1442};
1443
1444CollectionConfig_RepositoryConfig_Database::CollectionConfig_RepositoryConfig_Database()
1445 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1446 SharedCtor();
1447 // @@protoc_insertion_point(constructor:proxima.be.proto.CollectionConfig.RepositoryConfig.Database)
1448}
1449CollectionConfig_RepositoryConfig_Database::CollectionConfig_RepositoryConfig_Database(const CollectionConfig_RepositoryConfig_Database& from)
1450 : ::PROTOBUF_NAMESPACE_ID::Message(),
1451 _internal_metadata_(nullptr) {
1452 _internal_metadata_.MergeFrom(from._internal_metadata_);
1453 connection_uri_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1454 if (!from._internal_connection_uri().empty()) {
1455 connection_uri_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.connection_uri_);
1456 }
1457 table_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1458 if (!from._internal_table_name().empty()) {
1459 table_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.table_name_);
1460 }
1461 user_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1462 if (!from._internal_user().empty()) {
1463 user_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.user_);
1464 }
1465 password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1466 if (!from._internal_password().empty()) {
1467 password_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.password_);
1468 }
1469 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.CollectionConfig.RepositoryConfig.Database)
1470}
1471
1472void CollectionConfig_RepositoryConfig_Database::SharedCtor() {
1473 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionConfig_RepositoryConfig_Database_proto_2fproxima_5fbe_2eproto.base);
1474 connection_uri_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1475 table_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1476 user_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1477 password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1478}
1479
1480CollectionConfig_RepositoryConfig_Database::~CollectionConfig_RepositoryConfig_Database() {
1481 // @@protoc_insertion_point(destructor:proxima.be.proto.CollectionConfig.RepositoryConfig.Database)
1482 SharedDtor();
1483}
1484
1485void CollectionConfig_RepositoryConfig_Database::SharedDtor() {
1486 connection_uri_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1487 table_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1488 user_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1489 password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1490}
1491
1492void CollectionConfig_RepositoryConfig_Database::SetCachedSize(int size) const {
1493 _cached_size_.Set(size);
1494}
1495const CollectionConfig_RepositoryConfig_Database& CollectionConfig_RepositoryConfig_Database::default_instance() {
1496 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionConfig_RepositoryConfig_Database_proto_2fproxima_5fbe_2eproto.base);
1497 return *internal_default_instance();
1498}
1499
1500
1501void CollectionConfig_RepositoryConfig_Database::Clear() {
1502// @@protoc_insertion_point(message_clear_start:proxima.be.proto.CollectionConfig.RepositoryConfig.Database)
1503 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1504 // Prevent compiler warnings about cached_has_bits being unused
1505 (void) cached_has_bits;
1506
1507 connection_uri_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1508 table_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1509 user_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1510 password_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1511 _internal_metadata_.Clear();
1512}
1513
1514const char* CollectionConfig_RepositoryConfig_Database::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1515#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1516 while (!ctx->Done(&ptr)) {
1517 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1518 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1519 CHK_(ptr);
1520 switch (tag >> 3) {
1521 // string connection_uri = 1;
1522 case 1:
1523 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1524 auto str = _internal_mutable_connection_uri();
1525 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1526 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.CollectionConfig.RepositoryConfig.Database.connection_uri"));
1527 CHK_(ptr);
1528 } else goto handle_unusual;
1529 continue;
1530 // string table_name = 2;
1531 case 2:
1532 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1533 auto str = _internal_mutable_table_name();
1534 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1535 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.CollectionConfig.RepositoryConfig.Database.table_name"));
1536 CHK_(ptr);
1537 } else goto handle_unusual;
1538 continue;
1539 // string user = 3;
1540 case 3:
1541 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
1542 auto str = _internal_mutable_user();
1543 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1544 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.CollectionConfig.RepositoryConfig.Database.user"));
1545 CHK_(ptr);
1546 } else goto handle_unusual;
1547 continue;
1548 // string password = 4;
1549 case 4:
1550 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
1551 auto str = _internal_mutable_password();
1552 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1553 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.CollectionConfig.RepositoryConfig.Database.password"));
1554 CHK_(ptr);
1555 } else goto handle_unusual;
1556 continue;
1557 default: {
1558 handle_unusual:
1559 if ((tag & 7) == 4 || tag == 0) {
1560 ctx->SetLastTag(tag);
1561 goto success;
1562 }
1563 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1564 CHK_(ptr != nullptr);
1565 continue;
1566 }
1567 } // switch
1568 } // while
1569success:
1570 return ptr;
1571failure:
1572 ptr = nullptr;
1573 goto success;
1574#undef CHK_
1575}
1576
1577::PROTOBUF_NAMESPACE_ID::uint8* CollectionConfig_RepositoryConfig_Database::_InternalSerialize(
1578 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1579 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.CollectionConfig.RepositoryConfig.Database)
1580 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1581 (void) cached_has_bits;
1582
1583 // string connection_uri = 1;
1584 if (this->connection_uri().size() > 0) {
1585 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1586 this->_internal_connection_uri().data(), static_cast<int>(this->_internal_connection_uri().length()),
1587 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1588 "proxima.be.proto.CollectionConfig.RepositoryConfig.Database.connection_uri");
1589 target = stream->WriteStringMaybeAliased(
1590 1, this->_internal_connection_uri(), target);
1591 }
1592
1593 // string table_name = 2;
1594 if (this->table_name().size() > 0) {
1595 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1596 this->_internal_table_name().data(), static_cast<int>(this->_internal_table_name().length()),
1597 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1598 "proxima.be.proto.CollectionConfig.RepositoryConfig.Database.table_name");
1599 target = stream->WriteStringMaybeAliased(
1600 2, this->_internal_table_name(), target);
1601 }
1602
1603 // string user = 3;
1604 if (this->user().size() > 0) {
1605 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1606 this->_internal_user().data(), static_cast<int>(this->_internal_user().length()),
1607 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1608 "proxima.be.proto.CollectionConfig.RepositoryConfig.Database.user");
1609 target = stream->WriteStringMaybeAliased(
1610 3, this->_internal_user(), target);
1611 }
1612
1613 // string password = 4;
1614 if (this->password().size() > 0) {
1615 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1616 this->_internal_password().data(), static_cast<int>(this->_internal_password().length()),
1617 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1618 "proxima.be.proto.CollectionConfig.RepositoryConfig.Database.password");
1619 target = stream->WriteStringMaybeAliased(
1620 4, this->_internal_password(), target);
1621 }
1622
1623 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1624 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
1625 _internal_metadata_.unknown_fields(), target, stream);
1626 }
1627 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.CollectionConfig.RepositoryConfig.Database)
1628 return target;
1629}
1630
1631size_t CollectionConfig_RepositoryConfig_Database::ByteSizeLong() const {
1632// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.CollectionConfig.RepositoryConfig.Database)
1633 size_t total_size = 0;
1634
1635 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1636 // Prevent compiler warnings about cached_has_bits being unused
1637 (void) cached_has_bits;
1638
1639 // string connection_uri = 1;
1640 if (this->connection_uri().size() > 0) {
1641 total_size += 1 +
1642 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1643 this->_internal_connection_uri());
1644 }
1645
1646 // string table_name = 2;
1647 if (this->table_name().size() > 0) {
1648 total_size += 1 +
1649 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1650 this->_internal_table_name());
1651 }
1652
1653 // string user = 3;
1654 if (this->user().size() > 0) {
1655 total_size += 1 +
1656 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1657 this->_internal_user());
1658 }
1659
1660 // string password = 4;
1661 if (this->password().size() > 0) {
1662 total_size += 1 +
1663 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1664 this->_internal_password());
1665 }
1666
1667 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1668 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
1669 _internal_metadata_, total_size, &_cached_size_);
1670 }
1671 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1672 SetCachedSize(cached_size);
1673 return total_size;
1674}
1675
1676void CollectionConfig_RepositoryConfig_Database::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1677// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.CollectionConfig.RepositoryConfig.Database)
1678 GOOGLE_DCHECK_NE(&from, this);
1679 const CollectionConfig_RepositoryConfig_Database* source =
1680 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CollectionConfig_RepositoryConfig_Database>(
1681 &from);
1682 if (source == nullptr) {
1683 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.CollectionConfig.RepositoryConfig.Database)
1684 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1685 } else {
1686 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.CollectionConfig.RepositoryConfig.Database)
1687 MergeFrom(*source);
1688 }
1689}
1690
1691void CollectionConfig_RepositoryConfig_Database::MergeFrom(const CollectionConfig_RepositoryConfig_Database& from) {
1692// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.CollectionConfig.RepositoryConfig.Database)
1693 GOOGLE_DCHECK_NE(&from, this);
1694 _internal_metadata_.MergeFrom(from._internal_metadata_);
1695 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1696 (void) cached_has_bits;
1697
1698 if (from.connection_uri().size() > 0) {
1699
1700 connection_uri_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.connection_uri_);
1701 }
1702 if (from.table_name().size() > 0) {
1703
1704 table_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.table_name_);
1705 }
1706 if (from.user().size() > 0) {
1707
1708 user_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.user_);
1709 }
1710 if (from.password().size() > 0) {
1711
1712 password_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.password_);
1713 }
1714}
1715
1716void CollectionConfig_RepositoryConfig_Database::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1717// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.CollectionConfig.RepositoryConfig.Database)
1718 if (&from == this) return;
1719 Clear();
1720 MergeFrom(from);
1721}
1722
1723void CollectionConfig_RepositoryConfig_Database::CopyFrom(const CollectionConfig_RepositoryConfig_Database& from) {
1724// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.CollectionConfig.RepositoryConfig.Database)
1725 if (&from == this) return;
1726 Clear();
1727 MergeFrom(from);
1728}
1729
1730bool CollectionConfig_RepositoryConfig_Database::IsInitialized() const {
1731 return true;
1732}
1733
1734void CollectionConfig_RepositoryConfig_Database::InternalSwap(CollectionConfig_RepositoryConfig_Database* other) {
1735 using std::swap;
1736 _internal_metadata_.Swap(&other->_internal_metadata_);
1737 connection_uri_.Swap(&other->connection_uri_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1738 GetArenaNoVirtual());
1739 table_name_.Swap(&other->table_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1740 GetArenaNoVirtual());
1741 user_.Swap(&other->user_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1742 GetArenaNoVirtual());
1743 password_.Swap(&other->password_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1744 GetArenaNoVirtual());
1745}
1746
1747::PROTOBUF_NAMESPACE_ID::Metadata CollectionConfig_RepositoryConfig_Database::GetMetadata() const {
1748 return GetMetadataStatic();
1749}
1750
1751
1752// ===================================================================
1753
1754void CollectionConfig_RepositoryConfig::InitAsDefaultInstance() {
1755 ::proxima::be::proto::_CollectionConfig_RepositoryConfig_default_instance_.database_ = const_cast< ::proxima::be::proto::CollectionConfig_RepositoryConfig_Database*>(
1756 ::proxima::be::proto::CollectionConfig_RepositoryConfig_Database::internal_default_instance());
1757}
1758class CollectionConfig_RepositoryConfig::_Internal {
1759 public:
1760 static const ::proxima::be::proto::CollectionConfig_RepositoryConfig_Database& database(const CollectionConfig_RepositoryConfig* msg);
1761};
1762
1763const ::proxima::be::proto::CollectionConfig_RepositoryConfig_Database&
1764CollectionConfig_RepositoryConfig::_Internal::database(const CollectionConfig_RepositoryConfig* msg) {
1765 return *msg->entity_.database_;
1766}
1767void CollectionConfig_RepositoryConfig::set_allocated_database(::proxima::be::proto::CollectionConfig_RepositoryConfig_Database* database) {
1768 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
1769 clear_entity();
1770 if (database) {
1771 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
1772 if (message_arena != submessage_arena) {
1773 database = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1774 message_arena, database, submessage_arena);
1775 }
1776 set_has_database();
1777 entity_.database_ = database;
1778 }
1779 // @@protoc_insertion_point(field_set_allocated:proxima.be.proto.CollectionConfig.RepositoryConfig.database)
1780}
1781CollectionConfig_RepositoryConfig::CollectionConfig_RepositoryConfig()
1782 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1783 SharedCtor();
1784 // @@protoc_insertion_point(constructor:proxima.be.proto.CollectionConfig.RepositoryConfig)
1785}
1786CollectionConfig_RepositoryConfig::CollectionConfig_RepositoryConfig(const CollectionConfig_RepositoryConfig& from)
1787 : ::PROTOBUF_NAMESPACE_ID::Message(),
1788 _internal_metadata_(nullptr) {
1789 _internal_metadata_.MergeFrom(from._internal_metadata_);
1790 repository_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1791 if (!from._internal_repository_name().empty()) {
1792 repository_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.repository_name_);
1793 }
1794 repository_type_ = from.repository_type_;
1795 clear_has_entity();
1796 switch (from.entity_case()) {
1797 case kDatabase: {
1798 _internal_mutable_database()->::proxima::be::proto::CollectionConfig_RepositoryConfig_Database::MergeFrom(from._internal_database());
1799 break;
1800 }
1801 case ENTITY_NOT_SET: {
1802 break;
1803 }
1804 }
1805 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.CollectionConfig.RepositoryConfig)
1806}
1807
1808void CollectionConfig_RepositoryConfig::SharedCtor() {
1809 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionConfig_RepositoryConfig_proto_2fproxima_5fbe_2eproto.base);
1810 repository_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1811 repository_type_ = 0;
1812 clear_has_entity();
1813}
1814
1815CollectionConfig_RepositoryConfig::~CollectionConfig_RepositoryConfig() {
1816 // @@protoc_insertion_point(destructor:proxima.be.proto.CollectionConfig.RepositoryConfig)
1817 SharedDtor();
1818}
1819
1820void CollectionConfig_RepositoryConfig::SharedDtor() {
1821 repository_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1822 if (has_entity()) {
1823 clear_entity();
1824 }
1825}
1826
1827void CollectionConfig_RepositoryConfig::SetCachedSize(int size) const {
1828 _cached_size_.Set(size);
1829}
1830const CollectionConfig_RepositoryConfig& CollectionConfig_RepositoryConfig::default_instance() {
1831 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionConfig_RepositoryConfig_proto_2fproxima_5fbe_2eproto.base);
1832 return *internal_default_instance();
1833}
1834
1835
1836void CollectionConfig_RepositoryConfig::clear_entity() {
1837// @@protoc_insertion_point(one_of_clear_start:proxima.be.proto.CollectionConfig.RepositoryConfig)
1838 switch (entity_case()) {
1839 case kDatabase: {
1840 delete entity_.database_;
1841 break;
1842 }
1843 case ENTITY_NOT_SET: {
1844 break;
1845 }
1846 }
1847 _oneof_case_[0] = ENTITY_NOT_SET;
1848}
1849
1850
1851void CollectionConfig_RepositoryConfig::Clear() {
1852// @@protoc_insertion_point(message_clear_start:proxima.be.proto.CollectionConfig.RepositoryConfig)
1853 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1854 // Prevent compiler warnings about cached_has_bits being unused
1855 (void) cached_has_bits;
1856
1857 repository_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1858 repository_type_ = 0;
1859 clear_entity();
1860 _internal_metadata_.Clear();
1861}
1862
1863const char* CollectionConfig_RepositoryConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1864#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1865 while (!ctx->Done(&ptr)) {
1866 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1867 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1868 CHK_(ptr);
1869 switch (tag >> 3) {
1870 // .proxima.be.proto.CollectionConfig.RepositoryConfig.RepositoryType repository_type = 1;
1871 case 1:
1872 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
1873 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1874 CHK_(ptr);
1875 _internal_set_repository_type(static_cast<::proxima::be::proto::CollectionConfig_RepositoryConfig_RepositoryType>(val));
1876 } else goto handle_unusual;
1877 continue;
1878 // string repository_name = 2;
1879 case 2:
1880 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1881 auto str = _internal_mutable_repository_name();
1882 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1883 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.CollectionConfig.RepositoryConfig.repository_name"));
1884 CHK_(ptr);
1885 } else goto handle_unusual;
1886 continue;
1887 // .proxima.be.proto.CollectionConfig.RepositoryConfig.Database database = 3;
1888 case 3:
1889 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
1890 ptr = ctx->ParseMessage(_internal_mutable_database(), ptr);
1891 CHK_(ptr);
1892 } else goto handle_unusual;
1893 continue;
1894 default: {
1895 handle_unusual:
1896 if ((tag & 7) == 4 || tag == 0) {
1897 ctx->SetLastTag(tag);
1898 goto success;
1899 }
1900 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1901 CHK_(ptr != nullptr);
1902 continue;
1903 }
1904 } // switch
1905 } // while
1906success:
1907 return ptr;
1908failure:
1909 ptr = nullptr;
1910 goto success;
1911#undef CHK_
1912}
1913
1914::PROTOBUF_NAMESPACE_ID::uint8* CollectionConfig_RepositoryConfig::_InternalSerialize(
1915 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1916 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.CollectionConfig.RepositoryConfig)
1917 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1918 (void) cached_has_bits;
1919
1920 // .proxima.be.proto.CollectionConfig.RepositoryConfig.RepositoryType repository_type = 1;
1921 if (this->repository_type() != 0) {
1922 target = stream->EnsureSpace(target);
1923 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
1924 1, this->_internal_repository_type(), target);
1925 }
1926
1927 // string repository_name = 2;
1928 if (this->repository_name().size() > 0) {
1929 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1930 this->_internal_repository_name().data(), static_cast<int>(this->_internal_repository_name().length()),
1931 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1932 "proxima.be.proto.CollectionConfig.RepositoryConfig.repository_name");
1933 target = stream->WriteStringMaybeAliased(
1934 2, this->_internal_repository_name(), target);
1935 }
1936
1937 // .proxima.be.proto.CollectionConfig.RepositoryConfig.Database database = 3;
1938 if (_internal_has_database()) {
1939 target = stream->EnsureSpace(target);
1940 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1941 InternalWriteMessage(
1942 3, _Internal::database(this), target, stream);
1943 }
1944
1945 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1946 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
1947 _internal_metadata_.unknown_fields(), target, stream);
1948 }
1949 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.CollectionConfig.RepositoryConfig)
1950 return target;
1951}
1952
1953size_t CollectionConfig_RepositoryConfig::ByteSizeLong() const {
1954// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.CollectionConfig.RepositoryConfig)
1955 size_t total_size = 0;
1956
1957 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1958 // Prevent compiler warnings about cached_has_bits being unused
1959 (void) cached_has_bits;
1960
1961 // string repository_name = 2;
1962 if (this->repository_name().size() > 0) {
1963 total_size += 1 +
1964 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1965 this->_internal_repository_name());
1966 }
1967
1968 // .proxima.be.proto.CollectionConfig.RepositoryConfig.RepositoryType repository_type = 1;
1969 if (this->repository_type() != 0) {
1970 total_size += 1 +
1971 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_repository_type());
1972 }
1973
1974 switch (entity_case()) {
1975 // .proxima.be.proto.CollectionConfig.RepositoryConfig.Database database = 3;
1976 case kDatabase: {
1977 total_size += 1 +
1978 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1979 *entity_.database_);
1980 break;
1981 }
1982 case ENTITY_NOT_SET: {
1983 break;
1984 }
1985 }
1986 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1987 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
1988 _internal_metadata_, total_size, &_cached_size_);
1989 }
1990 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1991 SetCachedSize(cached_size);
1992 return total_size;
1993}
1994
1995void CollectionConfig_RepositoryConfig::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1996// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.CollectionConfig.RepositoryConfig)
1997 GOOGLE_DCHECK_NE(&from, this);
1998 const CollectionConfig_RepositoryConfig* source =
1999 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CollectionConfig_RepositoryConfig>(
2000 &from);
2001 if (source == nullptr) {
2002 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.CollectionConfig.RepositoryConfig)
2003 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2004 } else {
2005 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.CollectionConfig.RepositoryConfig)
2006 MergeFrom(*source);
2007 }
2008}
2009
2010void CollectionConfig_RepositoryConfig::MergeFrom(const CollectionConfig_RepositoryConfig& from) {
2011// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.CollectionConfig.RepositoryConfig)
2012 GOOGLE_DCHECK_NE(&from, this);
2013 _internal_metadata_.MergeFrom(from._internal_metadata_);
2014 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2015 (void) cached_has_bits;
2016
2017 if (from.repository_name().size() > 0) {
2018
2019 repository_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.repository_name_);
2020 }
2021 if (from.repository_type() != 0) {
2022 _internal_set_repository_type(from._internal_repository_type());
2023 }
2024 switch (from.entity_case()) {
2025 case kDatabase: {
2026 _internal_mutable_database()->::proxima::be::proto::CollectionConfig_RepositoryConfig_Database::MergeFrom(from._internal_database());
2027 break;
2028 }
2029 case ENTITY_NOT_SET: {
2030 break;
2031 }
2032 }
2033}
2034
2035void CollectionConfig_RepositoryConfig::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2036// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.CollectionConfig.RepositoryConfig)
2037 if (&from == this) return;
2038 Clear();
2039 MergeFrom(from);
2040}
2041
2042void CollectionConfig_RepositoryConfig::CopyFrom(const CollectionConfig_RepositoryConfig& from) {
2043// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.CollectionConfig.RepositoryConfig)
2044 if (&from == this) return;
2045 Clear();
2046 MergeFrom(from);
2047}
2048
2049bool CollectionConfig_RepositoryConfig::IsInitialized() const {
2050 return true;
2051}
2052
2053void CollectionConfig_RepositoryConfig::InternalSwap(CollectionConfig_RepositoryConfig* other) {
2054 using std::swap;
2055 _internal_metadata_.Swap(&other->_internal_metadata_);
2056 repository_name_.Swap(&other->repository_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2057 GetArenaNoVirtual());
2058 swap(repository_type_, other->repository_type_);
2059 swap(entity_, other->entity_);
2060 swap(_oneof_case_[0], other->_oneof_case_[0]);
2061}
2062
2063::PROTOBUF_NAMESPACE_ID::Metadata CollectionConfig_RepositoryConfig::GetMetadata() const {
2064 return GetMetadataStatic();
2065}
2066
2067
2068// ===================================================================
2069
2070void CollectionConfig::InitAsDefaultInstance() {
2071 ::proxima::be::proto::_CollectionConfig_default_instance_._instance.get_mutable()->repository_config_ = const_cast< ::proxima::be::proto::CollectionConfig_RepositoryConfig*>(
2072 ::proxima::be::proto::CollectionConfig_RepositoryConfig::internal_default_instance());
2073}
2074class CollectionConfig::_Internal {
2075 public:
2076 static const ::proxima::be::proto::CollectionConfig_RepositoryConfig& repository_config(const CollectionConfig* msg);
2077};
2078
2079const ::proxima::be::proto::CollectionConfig_RepositoryConfig&
2080CollectionConfig::_Internal::repository_config(const CollectionConfig* msg) {
2081 return *msg->repository_config_;
2082}
2083CollectionConfig::CollectionConfig()
2084 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
2085 SharedCtor();
2086 // @@protoc_insertion_point(constructor:proxima.be.proto.CollectionConfig)
2087}
2088CollectionConfig::CollectionConfig(const CollectionConfig& from)
2089 : ::PROTOBUF_NAMESPACE_ID::Message(),
2090 _internal_metadata_(nullptr),
2091 forward_column_names_(from.forward_column_names_),
2092 index_column_params_(from.index_column_params_) {
2093 _internal_metadata_.MergeFrom(from._internal_metadata_);
2094 collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2095 if (!from._internal_collection_name().empty()) {
2096 collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_);
2097 }
2098 if (from._internal_has_repository_config()) {
2099 repository_config_ = new ::proxima::be::proto::CollectionConfig_RepositoryConfig(*from.repository_config_);
2100 } else {
2101 repository_config_ = nullptr;
2102 }
2103 max_docs_per_segment_ = from.max_docs_per_segment_;
2104 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.CollectionConfig)
2105}
2106
2107void CollectionConfig::SharedCtor() {
2108 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionConfig_proto_2fproxima_5fbe_2eproto.base);
2109 collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2110 ::memset(&repository_config_, 0, static_cast<size_t>(
2111 reinterpret_cast<char*>(&max_docs_per_segment_) -
2112 reinterpret_cast<char*>(&repository_config_)) + sizeof(max_docs_per_segment_));
2113}
2114
2115CollectionConfig::~CollectionConfig() {
2116 // @@protoc_insertion_point(destructor:proxima.be.proto.CollectionConfig)
2117 SharedDtor();
2118}
2119
2120void CollectionConfig::SharedDtor() {
2121 collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2122 if (this != internal_default_instance()) delete repository_config_;
2123}
2124
2125void CollectionConfig::SetCachedSize(int size) const {
2126 _cached_size_.Set(size);
2127}
2128const CollectionConfig& CollectionConfig::default_instance() {
2129 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionConfig_proto_2fproxima_5fbe_2eproto.base);
2130 return *internal_default_instance();
2131}
2132
2133
2134void CollectionConfig::Clear() {
2135// @@protoc_insertion_point(message_clear_start:proxima.be.proto.CollectionConfig)
2136 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2137 // Prevent compiler warnings about cached_has_bits being unused
2138 (void) cached_has_bits;
2139
2140 forward_column_names_.Clear();
2141 index_column_params_.Clear();
2142 collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2143 if (GetArenaNoVirtual() == nullptr && repository_config_ != nullptr) {
2144 delete repository_config_;
2145 }
2146 repository_config_ = nullptr;
2147 max_docs_per_segment_ = PROTOBUF_ULONGLONG(0);
2148 _internal_metadata_.Clear();
2149}
2150
2151const char* CollectionConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
2152#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2153 while (!ctx->Done(&ptr)) {
2154 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2155 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
2156 CHK_(ptr);
2157 switch (tag >> 3) {
2158 // string collection_name = 1;
2159 case 1:
2160 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
2161 auto str = _internal_mutable_collection_name();
2162 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
2163 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.CollectionConfig.collection_name"));
2164 CHK_(ptr);
2165 } else goto handle_unusual;
2166 continue;
2167 // uint64 max_docs_per_segment = 2;
2168 case 2:
2169 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
2170 max_docs_per_segment_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
2171 CHK_(ptr);
2172 } else goto handle_unusual;
2173 continue;
2174 // repeated string forward_column_names = 3;
2175 case 3:
2176 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
2177 ptr -= 1;
2178 do {
2179 ptr += 1;
2180 auto str = _internal_add_forward_column_names();
2181 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
2182 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.CollectionConfig.forward_column_names"));
2183 CHK_(ptr);
2184 if (!ctx->DataAvailable(ptr)) break;
2185 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
2186 } else goto handle_unusual;
2187 continue;
2188 // repeated .proxima.be.proto.CollectionConfig.IndexColumnParam index_column_params = 4;
2189 case 4:
2190 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
2191 ptr -= 1;
2192 do {
2193 ptr += 1;
2194 ptr = ctx->ParseMessage(_internal_add_index_column_params(), ptr);
2195 CHK_(ptr);
2196 if (!ctx->DataAvailable(ptr)) break;
2197 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
2198 } else goto handle_unusual;
2199 continue;
2200 // .proxima.be.proto.CollectionConfig.RepositoryConfig repository_config = 5;
2201 case 5:
2202 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
2203 ptr = ctx->ParseMessage(_internal_mutable_repository_config(), ptr);
2204 CHK_(ptr);
2205 } else goto handle_unusual;
2206 continue;
2207 default: {
2208 handle_unusual:
2209 if ((tag & 7) == 4 || tag == 0) {
2210 ctx->SetLastTag(tag);
2211 goto success;
2212 }
2213 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
2214 CHK_(ptr != nullptr);
2215 continue;
2216 }
2217 } // switch
2218 } // while
2219success:
2220 return ptr;
2221failure:
2222 ptr = nullptr;
2223 goto success;
2224#undef CHK_
2225}
2226
2227::PROTOBUF_NAMESPACE_ID::uint8* CollectionConfig::_InternalSerialize(
2228 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2229 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.CollectionConfig)
2230 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2231 (void) cached_has_bits;
2232
2233 // string collection_name = 1;
2234 if (this->collection_name().size() > 0) {
2235 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2236 this->_internal_collection_name().data(), static_cast<int>(this->_internal_collection_name().length()),
2237 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2238 "proxima.be.proto.CollectionConfig.collection_name");
2239 target = stream->WriteStringMaybeAliased(
2240 1, this->_internal_collection_name(), target);
2241 }
2242
2243 // uint64 max_docs_per_segment = 2;
2244 if (this->max_docs_per_segment() != 0) {
2245 target = stream->EnsureSpace(target);
2246 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_max_docs_per_segment(), target);
2247 }
2248
2249 // repeated string forward_column_names = 3;
2250 for (int i = 0, n = this->_internal_forward_column_names_size(); i < n; i++) {
2251 const auto& s = this->_internal_forward_column_names(i);
2252 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2253 s.data(), static_cast<int>(s.length()),
2254 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2255 "proxima.be.proto.CollectionConfig.forward_column_names");
2256 target = stream->WriteString(3, s, target);
2257 }
2258
2259 // repeated .proxima.be.proto.CollectionConfig.IndexColumnParam index_column_params = 4;
2260 for (unsigned int i = 0,
2261 n = static_cast<unsigned int>(this->_internal_index_column_params_size()); i < n; i++) {
2262 target = stream->EnsureSpace(target);
2263 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2264 InternalWriteMessage(4, this->_internal_index_column_params(i), target, stream);
2265 }
2266
2267 // .proxima.be.proto.CollectionConfig.RepositoryConfig repository_config = 5;
2268 if (this->has_repository_config()) {
2269 target = stream->EnsureSpace(target);
2270 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2271 InternalWriteMessage(
2272 5, _Internal::repository_config(this), target, stream);
2273 }
2274
2275 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2276 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
2277 _internal_metadata_.unknown_fields(), target, stream);
2278 }
2279 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.CollectionConfig)
2280 return target;
2281}
2282
2283size_t CollectionConfig::ByteSizeLong() const {
2284// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.CollectionConfig)
2285 size_t total_size = 0;
2286
2287 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2288 // Prevent compiler warnings about cached_has_bits being unused
2289 (void) cached_has_bits;
2290
2291 // repeated string forward_column_names = 3;
2292 total_size += 1 *
2293 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(forward_column_names_.size());
2294 for (int i = 0, n = forward_column_names_.size(); i < n; i++) {
2295 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2296 forward_column_names_.Get(i));
2297 }
2298
2299 // repeated .proxima.be.proto.CollectionConfig.IndexColumnParam index_column_params = 4;
2300 total_size += 1UL * this->_internal_index_column_params_size();
2301 for (const auto& msg : this->index_column_params_) {
2302 total_size +=
2303 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
2304 }
2305
2306 // string collection_name = 1;
2307 if (this->collection_name().size() > 0) {
2308 total_size += 1 +
2309 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2310 this->_internal_collection_name());
2311 }
2312
2313 // .proxima.be.proto.CollectionConfig.RepositoryConfig repository_config = 5;
2314 if (this->has_repository_config()) {
2315 total_size += 1 +
2316 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2317 *repository_config_);
2318 }
2319
2320 // uint64 max_docs_per_segment = 2;
2321 if (this->max_docs_per_segment() != 0) {
2322 total_size += 1 +
2323 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
2324 this->_internal_max_docs_per_segment());
2325 }
2326
2327 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2328 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
2329 _internal_metadata_, total_size, &_cached_size_);
2330 }
2331 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2332 SetCachedSize(cached_size);
2333 return total_size;
2334}
2335
2336void CollectionConfig::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2337// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.CollectionConfig)
2338 GOOGLE_DCHECK_NE(&from, this);
2339 const CollectionConfig* source =
2340 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CollectionConfig>(
2341 &from);
2342 if (source == nullptr) {
2343 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.CollectionConfig)
2344 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2345 } else {
2346 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.CollectionConfig)
2347 MergeFrom(*source);
2348 }
2349}
2350
2351void CollectionConfig::MergeFrom(const CollectionConfig& from) {
2352// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.CollectionConfig)
2353 GOOGLE_DCHECK_NE(&from, this);
2354 _internal_metadata_.MergeFrom(from._internal_metadata_);
2355 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2356 (void) cached_has_bits;
2357
2358 forward_column_names_.MergeFrom(from.forward_column_names_);
2359 index_column_params_.MergeFrom(from.index_column_params_);
2360 if (from.collection_name().size() > 0) {
2361
2362 collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_);
2363 }
2364 if (from.has_repository_config()) {
2365 _internal_mutable_repository_config()->::proxima::be::proto::CollectionConfig_RepositoryConfig::MergeFrom(from._internal_repository_config());
2366 }
2367 if (from.max_docs_per_segment() != 0) {
2368 _internal_set_max_docs_per_segment(from._internal_max_docs_per_segment());
2369 }
2370}
2371
2372void CollectionConfig::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2373// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.CollectionConfig)
2374 if (&from == this) return;
2375 Clear();
2376 MergeFrom(from);
2377}
2378
2379void CollectionConfig::CopyFrom(const CollectionConfig& from) {
2380// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.CollectionConfig)
2381 if (&from == this) return;
2382 Clear();
2383 MergeFrom(from);
2384}
2385
2386bool CollectionConfig::IsInitialized() const {
2387 return true;
2388}
2389
2390void CollectionConfig::InternalSwap(CollectionConfig* other) {
2391 using std::swap;
2392 _internal_metadata_.Swap(&other->_internal_metadata_);
2393 forward_column_names_.InternalSwap(&other->forward_column_names_);
2394 index_column_params_.InternalSwap(&other->index_column_params_);
2395 collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2396 GetArenaNoVirtual());
2397 swap(repository_config_, other->repository_config_);
2398 swap(max_docs_per_segment_, other->max_docs_per_segment_);
2399}
2400
2401::PROTOBUF_NAMESPACE_ID::Metadata CollectionConfig::GetMetadata() const {
2402 return GetMetadataStatic();
2403}
2404
2405
2406// ===================================================================
2407
2408void CollectionName::InitAsDefaultInstance() {
2409}
2410class CollectionName::_Internal {
2411 public:
2412};
2413
2414CollectionName::CollectionName()
2415 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
2416 SharedCtor();
2417 // @@protoc_insertion_point(constructor:proxima.be.proto.CollectionName)
2418}
2419CollectionName::CollectionName(const CollectionName& from)
2420 : ::PROTOBUF_NAMESPACE_ID::Message(),
2421 _internal_metadata_(nullptr) {
2422 _internal_metadata_.MergeFrom(from._internal_metadata_);
2423 collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2424 if (!from._internal_collection_name().empty()) {
2425 collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_);
2426 }
2427 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.CollectionName)
2428}
2429
2430void CollectionName::SharedCtor() {
2431 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionName_proto_2fproxima_5fbe_2eproto.base);
2432 collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2433}
2434
2435CollectionName::~CollectionName() {
2436 // @@protoc_insertion_point(destructor:proxima.be.proto.CollectionName)
2437 SharedDtor();
2438}
2439
2440void CollectionName::SharedDtor() {
2441 collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2442}
2443
2444void CollectionName::SetCachedSize(int size) const {
2445 _cached_size_.Set(size);
2446}
2447const CollectionName& CollectionName::default_instance() {
2448 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionName_proto_2fproxima_5fbe_2eproto.base);
2449 return *internal_default_instance();
2450}
2451
2452
2453void CollectionName::Clear() {
2454// @@protoc_insertion_point(message_clear_start:proxima.be.proto.CollectionName)
2455 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2456 // Prevent compiler warnings about cached_has_bits being unused
2457 (void) cached_has_bits;
2458
2459 collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2460 _internal_metadata_.Clear();
2461}
2462
2463const char* CollectionName::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
2464#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2465 while (!ctx->Done(&ptr)) {
2466 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2467 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
2468 CHK_(ptr);
2469 switch (tag >> 3) {
2470 // string collection_name = 1;
2471 case 1:
2472 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
2473 auto str = _internal_mutable_collection_name();
2474 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
2475 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.CollectionName.collection_name"));
2476 CHK_(ptr);
2477 } else goto handle_unusual;
2478 continue;
2479 default: {
2480 handle_unusual:
2481 if ((tag & 7) == 4 || tag == 0) {
2482 ctx->SetLastTag(tag);
2483 goto success;
2484 }
2485 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
2486 CHK_(ptr != nullptr);
2487 continue;
2488 }
2489 } // switch
2490 } // while
2491success:
2492 return ptr;
2493failure:
2494 ptr = nullptr;
2495 goto success;
2496#undef CHK_
2497}
2498
2499::PROTOBUF_NAMESPACE_ID::uint8* CollectionName::_InternalSerialize(
2500 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2501 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.CollectionName)
2502 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2503 (void) cached_has_bits;
2504
2505 // string collection_name = 1;
2506 if (this->collection_name().size() > 0) {
2507 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2508 this->_internal_collection_name().data(), static_cast<int>(this->_internal_collection_name().length()),
2509 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2510 "proxima.be.proto.CollectionName.collection_name");
2511 target = stream->WriteStringMaybeAliased(
2512 1, this->_internal_collection_name(), target);
2513 }
2514
2515 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2516 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
2517 _internal_metadata_.unknown_fields(), target, stream);
2518 }
2519 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.CollectionName)
2520 return target;
2521}
2522
2523size_t CollectionName::ByteSizeLong() const {
2524// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.CollectionName)
2525 size_t total_size = 0;
2526
2527 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2528 // Prevent compiler warnings about cached_has_bits being unused
2529 (void) cached_has_bits;
2530
2531 // string collection_name = 1;
2532 if (this->collection_name().size() > 0) {
2533 total_size += 1 +
2534 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2535 this->_internal_collection_name());
2536 }
2537
2538 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2539 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
2540 _internal_metadata_, total_size, &_cached_size_);
2541 }
2542 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2543 SetCachedSize(cached_size);
2544 return total_size;
2545}
2546
2547void CollectionName::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2548// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.CollectionName)
2549 GOOGLE_DCHECK_NE(&from, this);
2550 const CollectionName* source =
2551 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CollectionName>(
2552 &from);
2553 if (source == nullptr) {
2554 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.CollectionName)
2555 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2556 } else {
2557 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.CollectionName)
2558 MergeFrom(*source);
2559 }
2560}
2561
2562void CollectionName::MergeFrom(const CollectionName& from) {
2563// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.CollectionName)
2564 GOOGLE_DCHECK_NE(&from, this);
2565 _internal_metadata_.MergeFrom(from._internal_metadata_);
2566 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2567 (void) cached_has_bits;
2568
2569 if (from.collection_name().size() > 0) {
2570
2571 collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_);
2572 }
2573}
2574
2575void CollectionName::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2576// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.CollectionName)
2577 if (&from == this) return;
2578 Clear();
2579 MergeFrom(from);
2580}
2581
2582void CollectionName::CopyFrom(const CollectionName& from) {
2583// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.CollectionName)
2584 if (&from == this) return;
2585 Clear();
2586 MergeFrom(from);
2587}
2588
2589bool CollectionName::IsInitialized() const {
2590 return true;
2591}
2592
2593void CollectionName::InternalSwap(CollectionName* other) {
2594 using std::swap;
2595 _internal_metadata_.Swap(&other->_internal_metadata_);
2596 collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2597 GetArenaNoVirtual());
2598}
2599
2600::PROTOBUF_NAMESPACE_ID::Metadata CollectionName::GetMetadata() const {
2601 return GetMetadataStatic();
2602}
2603
2604
2605// ===================================================================
2606
2607void LsnContext::InitAsDefaultInstance() {
2608}
2609class LsnContext::_Internal {
2610 public:
2611};
2612
2613LsnContext::LsnContext()
2614 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
2615 SharedCtor();
2616 // @@protoc_insertion_point(constructor:proxima.be.proto.LsnContext)
2617}
2618LsnContext::LsnContext(const LsnContext& from)
2619 : ::PROTOBUF_NAMESPACE_ID::Message(),
2620 _internal_metadata_(nullptr) {
2621 _internal_metadata_.MergeFrom(from._internal_metadata_);
2622 context_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2623 if (!from._internal_context().empty()) {
2624 context_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.context_);
2625 }
2626 lsn_ = from.lsn_;
2627 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.LsnContext)
2628}
2629
2630void LsnContext::SharedCtor() {
2631 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LsnContext_proto_2fproxima_5fbe_2eproto.base);
2632 context_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2633 lsn_ = PROTOBUF_ULONGLONG(0);
2634}
2635
2636LsnContext::~LsnContext() {
2637 // @@protoc_insertion_point(destructor:proxima.be.proto.LsnContext)
2638 SharedDtor();
2639}
2640
2641void LsnContext::SharedDtor() {
2642 context_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2643}
2644
2645void LsnContext::SetCachedSize(int size) const {
2646 _cached_size_.Set(size);
2647}
2648const LsnContext& LsnContext::default_instance() {
2649 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LsnContext_proto_2fproxima_5fbe_2eproto.base);
2650 return *internal_default_instance();
2651}
2652
2653
2654void LsnContext::Clear() {
2655// @@protoc_insertion_point(message_clear_start:proxima.be.proto.LsnContext)
2656 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2657 // Prevent compiler warnings about cached_has_bits being unused
2658 (void) cached_has_bits;
2659
2660 context_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2661 lsn_ = PROTOBUF_ULONGLONG(0);
2662 _internal_metadata_.Clear();
2663}
2664
2665const char* LsnContext::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
2666#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2667 while (!ctx->Done(&ptr)) {
2668 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2669 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
2670 CHK_(ptr);
2671 switch (tag >> 3) {
2672 // uint64 lsn = 1;
2673 case 1:
2674 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
2675 lsn_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
2676 CHK_(ptr);
2677 } else goto handle_unusual;
2678 continue;
2679 // string context = 2;
2680 case 2:
2681 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
2682 auto str = _internal_mutable_context();
2683 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
2684 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.LsnContext.context"));
2685 CHK_(ptr);
2686 } else goto handle_unusual;
2687 continue;
2688 default: {
2689 handle_unusual:
2690 if ((tag & 7) == 4 || tag == 0) {
2691 ctx->SetLastTag(tag);
2692 goto success;
2693 }
2694 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
2695 CHK_(ptr != nullptr);
2696 continue;
2697 }
2698 } // switch
2699 } // while
2700success:
2701 return ptr;
2702failure:
2703 ptr = nullptr;
2704 goto success;
2705#undef CHK_
2706}
2707
2708::PROTOBUF_NAMESPACE_ID::uint8* LsnContext::_InternalSerialize(
2709 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2710 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.LsnContext)
2711 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2712 (void) cached_has_bits;
2713
2714 // uint64 lsn = 1;
2715 if (this->lsn() != 0) {
2716 target = stream->EnsureSpace(target);
2717 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_lsn(), target);
2718 }
2719
2720 // string context = 2;
2721 if (this->context().size() > 0) {
2722 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2723 this->_internal_context().data(), static_cast<int>(this->_internal_context().length()),
2724 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2725 "proxima.be.proto.LsnContext.context");
2726 target = stream->WriteStringMaybeAliased(
2727 2, this->_internal_context(), target);
2728 }
2729
2730 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2731 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
2732 _internal_metadata_.unknown_fields(), target, stream);
2733 }
2734 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.LsnContext)
2735 return target;
2736}
2737
2738size_t LsnContext::ByteSizeLong() const {
2739// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.LsnContext)
2740 size_t total_size = 0;
2741
2742 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2743 // Prevent compiler warnings about cached_has_bits being unused
2744 (void) cached_has_bits;
2745
2746 // string context = 2;
2747 if (this->context().size() > 0) {
2748 total_size += 1 +
2749 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2750 this->_internal_context());
2751 }
2752
2753 // uint64 lsn = 1;
2754 if (this->lsn() != 0) {
2755 total_size += 1 +
2756 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
2757 this->_internal_lsn());
2758 }
2759
2760 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2761 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
2762 _internal_metadata_, total_size, &_cached_size_);
2763 }
2764 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2765 SetCachedSize(cached_size);
2766 return total_size;
2767}
2768
2769void LsnContext::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2770// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.LsnContext)
2771 GOOGLE_DCHECK_NE(&from, this);
2772 const LsnContext* source =
2773 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LsnContext>(
2774 &from);
2775 if (source == nullptr) {
2776 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.LsnContext)
2777 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2778 } else {
2779 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.LsnContext)
2780 MergeFrom(*source);
2781 }
2782}
2783
2784void LsnContext::MergeFrom(const LsnContext& from) {
2785// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.LsnContext)
2786 GOOGLE_DCHECK_NE(&from, this);
2787 _internal_metadata_.MergeFrom(from._internal_metadata_);
2788 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2789 (void) cached_has_bits;
2790
2791 if (from.context().size() > 0) {
2792
2793 context_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.context_);
2794 }
2795 if (from.lsn() != 0) {
2796 _internal_set_lsn(from._internal_lsn());
2797 }
2798}
2799
2800void LsnContext::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2801// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.LsnContext)
2802 if (&from == this) return;
2803 Clear();
2804 MergeFrom(from);
2805}
2806
2807void LsnContext::CopyFrom(const LsnContext& from) {
2808// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.LsnContext)
2809 if (&from == this) return;
2810 Clear();
2811 MergeFrom(from);
2812}
2813
2814bool LsnContext::IsInitialized() const {
2815 return true;
2816}
2817
2818void LsnContext::InternalSwap(LsnContext* other) {
2819 using std::swap;
2820 _internal_metadata_.Swap(&other->_internal_metadata_);
2821 context_.Swap(&other->context_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2822 GetArenaNoVirtual());
2823 swap(lsn_, other->lsn_);
2824}
2825
2826::PROTOBUF_NAMESPACE_ID::Metadata LsnContext::GetMetadata() const {
2827 return GetMetadataStatic();
2828}
2829
2830
2831// ===================================================================
2832
2833void CollectionInfo::InitAsDefaultInstance() {
2834 ::proxima::be::proto::_CollectionInfo_default_instance_._instance.get_mutable()->config_ = const_cast< ::proxima::be::proto::CollectionConfig*>(
2835 ::proxima::be::proto::CollectionConfig::internal_default_instance());
2836 ::proxima::be::proto::_CollectionInfo_default_instance_._instance.get_mutable()->latest_lsn_context_ = const_cast< ::proxima::be::proto::LsnContext*>(
2837 ::proxima::be::proto::LsnContext::internal_default_instance());
2838}
2839class CollectionInfo::_Internal {
2840 public:
2841 static const ::proxima::be::proto::CollectionConfig& config(const CollectionInfo* msg);
2842 static const ::proxima::be::proto::LsnContext& latest_lsn_context(const CollectionInfo* msg);
2843};
2844
2845const ::proxima::be::proto::CollectionConfig&
2846CollectionInfo::_Internal::config(const CollectionInfo* msg) {
2847 return *msg->config_;
2848}
2849const ::proxima::be::proto::LsnContext&
2850CollectionInfo::_Internal::latest_lsn_context(const CollectionInfo* msg) {
2851 return *msg->latest_lsn_context_;
2852}
2853CollectionInfo::CollectionInfo()
2854 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
2855 SharedCtor();
2856 // @@protoc_insertion_point(constructor:proxima.be.proto.CollectionInfo)
2857}
2858CollectionInfo::CollectionInfo(const CollectionInfo& from)
2859 : ::PROTOBUF_NAMESPACE_ID::Message(),
2860 _internal_metadata_(nullptr) {
2861 _internal_metadata_.MergeFrom(from._internal_metadata_);
2862 uuid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2863 if (!from._internal_uuid().empty()) {
2864 uuid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.uuid_);
2865 }
2866 if (from._internal_has_config()) {
2867 config_ = new ::proxima::be::proto::CollectionConfig(*from.config_);
2868 } else {
2869 config_ = nullptr;
2870 }
2871 if (from._internal_has_latest_lsn_context()) {
2872 latest_lsn_context_ = new ::proxima::be::proto::LsnContext(*from.latest_lsn_context_);
2873 } else {
2874 latest_lsn_context_ = nullptr;
2875 }
2876 ::memcpy(&magic_number_, &from.magic_number_,
2877 static_cast<size_t>(reinterpret_cast<char*>(&status_) -
2878 reinterpret_cast<char*>(&magic_number_)) + sizeof(status_));
2879 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.CollectionInfo)
2880}
2881
2882void CollectionInfo::SharedCtor() {
2883 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionInfo_proto_2fproxima_5fbe_2eproto.base);
2884 uuid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2885 ::memset(&config_, 0, static_cast<size_t>(
2886 reinterpret_cast<char*>(&status_) -
2887 reinterpret_cast<char*>(&config_)) + sizeof(status_));
2888}
2889
2890CollectionInfo::~CollectionInfo() {
2891 // @@protoc_insertion_point(destructor:proxima.be.proto.CollectionInfo)
2892 SharedDtor();
2893}
2894
2895void CollectionInfo::SharedDtor() {
2896 uuid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2897 if (this != internal_default_instance()) delete config_;
2898 if (this != internal_default_instance()) delete latest_lsn_context_;
2899}
2900
2901void CollectionInfo::SetCachedSize(int size) const {
2902 _cached_size_.Set(size);
2903}
2904const CollectionInfo& CollectionInfo::default_instance() {
2905 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionInfo_proto_2fproxima_5fbe_2eproto.base);
2906 return *internal_default_instance();
2907}
2908
2909
2910void CollectionInfo::Clear() {
2911// @@protoc_insertion_point(message_clear_start:proxima.be.proto.CollectionInfo)
2912 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2913 // Prevent compiler warnings about cached_has_bits being unused
2914 (void) cached_has_bits;
2915
2916 uuid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2917 if (GetArenaNoVirtual() == nullptr && config_ != nullptr) {
2918 delete config_;
2919 }
2920 config_ = nullptr;
2921 if (GetArenaNoVirtual() == nullptr && latest_lsn_context_ != nullptr) {
2922 delete latest_lsn_context_;
2923 }
2924 latest_lsn_context_ = nullptr;
2925 ::memset(&magic_number_, 0, static_cast<size_t>(
2926 reinterpret_cast<char*>(&status_) -
2927 reinterpret_cast<char*>(&magic_number_)) + sizeof(status_));
2928 _internal_metadata_.Clear();
2929}
2930
2931const char* CollectionInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
2932#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2933 while (!ctx->Done(&ptr)) {
2934 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2935 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
2936 CHK_(ptr);
2937 switch (tag >> 3) {
2938 // .proxima.be.proto.CollectionConfig config = 1;
2939 case 1:
2940 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
2941 ptr = ctx->ParseMessage(_internal_mutable_config(), ptr);
2942 CHK_(ptr);
2943 } else goto handle_unusual;
2944 continue;
2945 // .proxima.be.proto.CollectionInfo.CollectionStatus status = 2;
2946 case 2:
2947 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
2948 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
2949 CHK_(ptr);
2950 _internal_set_status(static_cast<::proxima::be::proto::CollectionInfo_CollectionStatus>(val));
2951 } else goto handle_unusual;
2952 continue;
2953 // string uuid = 3;
2954 case 3:
2955 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
2956 auto str = _internal_mutable_uuid();
2957 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
2958 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.CollectionInfo.uuid"));
2959 CHK_(ptr);
2960 } else goto handle_unusual;
2961 continue;
2962 // .proxima.be.proto.LsnContext latest_lsn_context = 4;
2963 case 4:
2964 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
2965 ptr = ctx->ParseMessage(_internal_mutable_latest_lsn_context(), ptr);
2966 CHK_(ptr);
2967 } else goto handle_unusual;
2968 continue;
2969 // uint64 magic_number = 5;
2970 case 5:
2971 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
2972 magic_number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
2973 CHK_(ptr);
2974 } else goto handle_unusual;
2975 continue;
2976 default: {
2977 handle_unusual:
2978 if ((tag & 7) == 4 || tag == 0) {
2979 ctx->SetLastTag(tag);
2980 goto success;
2981 }
2982 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
2983 CHK_(ptr != nullptr);
2984 continue;
2985 }
2986 } // switch
2987 } // while
2988success:
2989 return ptr;
2990failure:
2991 ptr = nullptr;
2992 goto success;
2993#undef CHK_
2994}
2995
2996::PROTOBUF_NAMESPACE_ID::uint8* CollectionInfo::_InternalSerialize(
2997 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2998 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.CollectionInfo)
2999 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3000 (void) cached_has_bits;
3001
3002 // .proxima.be.proto.CollectionConfig config = 1;
3003 if (this->has_config()) {
3004 target = stream->EnsureSpace(target);
3005 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3006 InternalWriteMessage(
3007 1, _Internal::config(this), target, stream);
3008 }
3009
3010 // .proxima.be.proto.CollectionInfo.CollectionStatus status = 2;
3011 if (this->status() != 0) {
3012 target = stream->EnsureSpace(target);
3013 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
3014 2, this->_internal_status(), target);
3015 }
3016
3017 // string uuid = 3;
3018 if (this->uuid().size() > 0) {
3019 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3020 this->_internal_uuid().data(), static_cast<int>(this->_internal_uuid().length()),
3021 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3022 "proxima.be.proto.CollectionInfo.uuid");
3023 target = stream->WriteStringMaybeAliased(
3024 3, this->_internal_uuid(), target);
3025 }
3026
3027 // .proxima.be.proto.LsnContext latest_lsn_context = 4;
3028 if (this->has_latest_lsn_context()) {
3029 target = stream->EnsureSpace(target);
3030 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3031 InternalWriteMessage(
3032 4, _Internal::latest_lsn_context(this), target, stream);
3033 }
3034
3035 // uint64 magic_number = 5;
3036 if (this->magic_number() != 0) {
3037 target = stream->EnsureSpace(target);
3038 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(5, this->_internal_magic_number(), target);
3039 }
3040
3041 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3042 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
3043 _internal_metadata_.unknown_fields(), target, stream);
3044 }
3045 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.CollectionInfo)
3046 return target;
3047}
3048
3049size_t CollectionInfo::ByteSizeLong() const {
3050// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.CollectionInfo)
3051 size_t total_size = 0;
3052
3053 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3054 // Prevent compiler warnings about cached_has_bits being unused
3055 (void) cached_has_bits;
3056
3057 // string uuid = 3;
3058 if (this->uuid().size() > 0) {
3059 total_size += 1 +
3060 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3061 this->_internal_uuid());
3062 }
3063
3064 // .proxima.be.proto.CollectionConfig config = 1;
3065 if (this->has_config()) {
3066 total_size += 1 +
3067 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3068 *config_);
3069 }
3070
3071 // .proxima.be.proto.LsnContext latest_lsn_context = 4;
3072 if (this->has_latest_lsn_context()) {
3073 total_size += 1 +
3074 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3075 *latest_lsn_context_);
3076 }
3077
3078 // uint64 magic_number = 5;
3079 if (this->magic_number() != 0) {
3080 total_size += 1 +
3081 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
3082 this->_internal_magic_number());
3083 }
3084
3085 // .proxima.be.proto.CollectionInfo.CollectionStatus status = 2;
3086 if (this->status() != 0) {
3087 total_size += 1 +
3088 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status());
3089 }
3090
3091 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3092 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
3093 _internal_metadata_, total_size, &_cached_size_);
3094 }
3095 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
3096 SetCachedSize(cached_size);
3097 return total_size;
3098}
3099
3100void CollectionInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3101// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.CollectionInfo)
3102 GOOGLE_DCHECK_NE(&from, this);
3103 const CollectionInfo* source =
3104 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CollectionInfo>(
3105 &from);
3106 if (source == nullptr) {
3107 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.CollectionInfo)
3108 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
3109 } else {
3110 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.CollectionInfo)
3111 MergeFrom(*source);
3112 }
3113}
3114
3115void CollectionInfo::MergeFrom(const CollectionInfo& from) {
3116// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.CollectionInfo)
3117 GOOGLE_DCHECK_NE(&from, this);
3118 _internal_metadata_.MergeFrom(from._internal_metadata_);
3119 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3120 (void) cached_has_bits;
3121
3122 if (from.uuid().size() > 0) {
3123
3124 uuid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.uuid_);
3125 }
3126 if (from.has_config()) {
3127 _internal_mutable_config()->::proxima::be::proto::CollectionConfig::MergeFrom(from._internal_config());
3128 }
3129 if (from.has_latest_lsn_context()) {
3130 _internal_mutable_latest_lsn_context()->::proxima::be::proto::LsnContext::MergeFrom(from._internal_latest_lsn_context());
3131 }
3132 if (from.magic_number() != 0) {
3133 _internal_set_magic_number(from._internal_magic_number());
3134 }
3135 if (from.status() != 0) {
3136 _internal_set_status(from._internal_status());
3137 }
3138}
3139
3140void CollectionInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3141// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.CollectionInfo)
3142 if (&from == this) return;
3143 Clear();
3144 MergeFrom(from);
3145}
3146
3147void CollectionInfo::CopyFrom(const CollectionInfo& from) {
3148// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.CollectionInfo)
3149 if (&from == this) return;
3150 Clear();
3151 MergeFrom(from);
3152}
3153
3154bool CollectionInfo::IsInitialized() const {
3155 return true;
3156}
3157
3158void CollectionInfo::InternalSwap(CollectionInfo* other) {
3159 using std::swap;
3160 _internal_metadata_.Swap(&other->_internal_metadata_);
3161 uuid_.Swap(&other->uuid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
3162 GetArenaNoVirtual());
3163 swap(config_, other->config_);
3164 swap(latest_lsn_context_, other->latest_lsn_context_);
3165 swap(magic_number_, other->magic_number_);
3166 swap(status_, other->status_);
3167}
3168
3169::PROTOBUF_NAMESPACE_ID::Metadata CollectionInfo::GetMetadata() const {
3170 return GetMetadataStatic();
3171}
3172
3173
3174// ===================================================================
3175
3176void DescribeCollectionResponse::InitAsDefaultInstance() {
3177 ::proxima::be::proto::_DescribeCollectionResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::proxima::be::proto::Status*>(
3178 ::proxima::be::proto::Status::internal_default_instance());
3179 ::proxima::be::proto::_DescribeCollectionResponse_default_instance_._instance.get_mutable()->collection_ = const_cast< ::proxima::be::proto::CollectionInfo*>(
3180 ::proxima::be::proto::CollectionInfo::internal_default_instance());
3181}
3182class DescribeCollectionResponse::_Internal {
3183 public:
3184 static const ::proxima::be::proto::Status& status(const DescribeCollectionResponse* msg);
3185 static const ::proxima::be::proto::CollectionInfo& collection(const DescribeCollectionResponse* msg);
3186};
3187
3188const ::proxima::be::proto::Status&
3189DescribeCollectionResponse::_Internal::status(const DescribeCollectionResponse* msg) {
3190 return *msg->status_;
3191}
3192const ::proxima::be::proto::CollectionInfo&
3193DescribeCollectionResponse::_Internal::collection(const DescribeCollectionResponse* msg) {
3194 return *msg->collection_;
3195}
3196void DescribeCollectionResponse::clear_status() {
3197 if (GetArenaNoVirtual() == nullptr && status_ != nullptr) {
3198 delete status_;
3199 }
3200 status_ = nullptr;
3201}
3202DescribeCollectionResponse::DescribeCollectionResponse()
3203 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
3204 SharedCtor();
3205 // @@protoc_insertion_point(constructor:proxima.be.proto.DescribeCollectionResponse)
3206}
3207DescribeCollectionResponse::DescribeCollectionResponse(const DescribeCollectionResponse& from)
3208 : ::PROTOBUF_NAMESPACE_ID::Message(),
3209 _internal_metadata_(nullptr) {
3210 _internal_metadata_.MergeFrom(from._internal_metadata_);
3211 if (from._internal_has_status()) {
3212 status_ = new ::proxima::be::proto::Status(*from.status_);
3213 } else {
3214 status_ = nullptr;
3215 }
3216 if (from._internal_has_collection()) {
3217 collection_ = new ::proxima::be::proto::CollectionInfo(*from.collection_);
3218 } else {
3219 collection_ = nullptr;
3220 }
3221 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.DescribeCollectionResponse)
3222}
3223
3224void DescribeCollectionResponse::SharedCtor() {
3225 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DescribeCollectionResponse_proto_2fproxima_5fbe_2eproto.base);
3226 ::memset(&status_, 0, static_cast<size_t>(
3227 reinterpret_cast<char*>(&collection_) -
3228 reinterpret_cast<char*>(&status_)) + sizeof(collection_));
3229}
3230
3231DescribeCollectionResponse::~DescribeCollectionResponse() {
3232 // @@protoc_insertion_point(destructor:proxima.be.proto.DescribeCollectionResponse)
3233 SharedDtor();
3234}
3235
3236void DescribeCollectionResponse::SharedDtor() {
3237 if (this != internal_default_instance()) delete status_;
3238 if (this != internal_default_instance()) delete collection_;
3239}
3240
3241void DescribeCollectionResponse::SetCachedSize(int size) const {
3242 _cached_size_.Set(size);
3243}
3244const DescribeCollectionResponse& DescribeCollectionResponse::default_instance() {
3245 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DescribeCollectionResponse_proto_2fproxima_5fbe_2eproto.base);
3246 return *internal_default_instance();
3247}
3248
3249
3250void DescribeCollectionResponse::Clear() {
3251// @@protoc_insertion_point(message_clear_start:proxima.be.proto.DescribeCollectionResponse)
3252 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3253 // Prevent compiler warnings about cached_has_bits being unused
3254 (void) cached_has_bits;
3255
3256 if (GetArenaNoVirtual() == nullptr && status_ != nullptr) {
3257 delete status_;
3258 }
3259 status_ = nullptr;
3260 if (GetArenaNoVirtual() == nullptr && collection_ != nullptr) {
3261 delete collection_;
3262 }
3263 collection_ = nullptr;
3264 _internal_metadata_.Clear();
3265}
3266
3267const char* DescribeCollectionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
3268#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3269 while (!ctx->Done(&ptr)) {
3270 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3271 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
3272 CHK_(ptr);
3273 switch (tag >> 3) {
3274 // .proxima.be.proto.Status status = 1;
3275 case 1:
3276 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
3277 ptr = ctx->ParseMessage(_internal_mutable_status(), ptr);
3278 CHK_(ptr);
3279 } else goto handle_unusual;
3280 continue;
3281 // .proxima.be.proto.CollectionInfo collection = 2;
3282 case 2:
3283 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
3284 ptr = ctx->ParseMessage(_internal_mutable_collection(), ptr);
3285 CHK_(ptr);
3286 } else goto handle_unusual;
3287 continue;
3288 default: {
3289 handle_unusual:
3290 if ((tag & 7) == 4 || tag == 0) {
3291 ctx->SetLastTag(tag);
3292 goto success;
3293 }
3294 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
3295 CHK_(ptr != nullptr);
3296 continue;
3297 }
3298 } // switch
3299 } // while
3300success:
3301 return ptr;
3302failure:
3303 ptr = nullptr;
3304 goto success;
3305#undef CHK_
3306}
3307
3308::PROTOBUF_NAMESPACE_ID::uint8* DescribeCollectionResponse::_InternalSerialize(
3309 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3310 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.DescribeCollectionResponse)
3311 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3312 (void) cached_has_bits;
3313
3314 // .proxima.be.proto.Status status = 1;
3315 if (this->has_status()) {
3316 target = stream->EnsureSpace(target);
3317 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3318 InternalWriteMessage(
3319 1, _Internal::status(this), target, stream);
3320 }
3321
3322 // .proxima.be.proto.CollectionInfo collection = 2;
3323 if (this->has_collection()) {
3324 target = stream->EnsureSpace(target);
3325 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3326 InternalWriteMessage(
3327 2, _Internal::collection(this), target, stream);
3328 }
3329
3330 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3331 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
3332 _internal_metadata_.unknown_fields(), target, stream);
3333 }
3334 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.DescribeCollectionResponse)
3335 return target;
3336}
3337
3338size_t DescribeCollectionResponse::ByteSizeLong() const {
3339// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.DescribeCollectionResponse)
3340 size_t total_size = 0;
3341
3342 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3343 // Prevent compiler warnings about cached_has_bits being unused
3344 (void) cached_has_bits;
3345
3346 // .proxima.be.proto.Status status = 1;
3347 if (this->has_status()) {
3348 total_size += 1 +
3349 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3350 *status_);
3351 }
3352
3353 // .proxima.be.proto.CollectionInfo collection = 2;
3354 if (this->has_collection()) {
3355 total_size += 1 +
3356 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3357 *collection_);
3358 }
3359
3360 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3361 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
3362 _internal_metadata_, total_size, &_cached_size_);
3363 }
3364 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
3365 SetCachedSize(cached_size);
3366 return total_size;
3367}
3368
3369void DescribeCollectionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3370// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.DescribeCollectionResponse)
3371 GOOGLE_DCHECK_NE(&from, this);
3372 const DescribeCollectionResponse* source =
3373 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DescribeCollectionResponse>(
3374 &from);
3375 if (source == nullptr) {
3376 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.DescribeCollectionResponse)
3377 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
3378 } else {
3379 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.DescribeCollectionResponse)
3380 MergeFrom(*source);
3381 }
3382}
3383
3384void DescribeCollectionResponse::MergeFrom(const DescribeCollectionResponse& from) {
3385// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.DescribeCollectionResponse)
3386 GOOGLE_DCHECK_NE(&from, this);
3387 _internal_metadata_.MergeFrom(from._internal_metadata_);
3388 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3389 (void) cached_has_bits;
3390
3391 if (from.has_status()) {
3392 _internal_mutable_status()->::proxima::be::proto::Status::MergeFrom(from._internal_status());
3393 }
3394 if (from.has_collection()) {
3395 _internal_mutable_collection()->::proxima::be::proto::CollectionInfo::MergeFrom(from._internal_collection());
3396 }
3397}
3398
3399void DescribeCollectionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3400// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.DescribeCollectionResponse)
3401 if (&from == this) return;
3402 Clear();
3403 MergeFrom(from);
3404}
3405
3406void DescribeCollectionResponse::CopyFrom(const DescribeCollectionResponse& from) {
3407// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.DescribeCollectionResponse)
3408 if (&from == this) return;
3409 Clear();
3410 MergeFrom(from);
3411}
3412
3413bool DescribeCollectionResponse::IsInitialized() const {
3414 return true;
3415}
3416
3417void DescribeCollectionResponse::InternalSwap(DescribeCollectionResponse* other) {
3418 using std::swap;
3419 _internal_metadata_.Swap(&other->_internal_metadata_);
3420 swap(status_, other->status_);
3421 swap(collection_, other->collection_);
3422}
3423
3424::PROTOBUF_NAMESPACE_ID::Metadata DescribeCollectionResponse::GetMetadata() const {
3425 return GetMetadataStatic();
3426}
3427
3428
3429// ===================================================================
3430
3431void ListCondition::InitAsDefaultInstance() {
3432}
3433class ListCondition::_Internal {
3434 public:
3435};
3436
3437ListCondition::ListCondition()
3438 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
3439 SharedCtor();
3440 // @@protoc_insertion_point(constructor:proxima.be.proto.ListCondition)
3441}
3442ListCondition::ListCondition(const ListCondition& from)
3443 : ::PROTOBUF_NAMESPACE_ID::Message(),
3444 _internal_metadata_(nullptr) {
3445 _internal_metadata_.MergeFrom(from._internal_metadata_);
3446 repository_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3447 if (!from._internal_repository_name().empty()) {
3448 repository_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.repository_name_);
3449 }
3450 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.ListCondition)
3451}
3452
3453void ListCondition::SharedCtor() {
3454 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListCondition_proto_2fproxima_5fbe_2eproto.base);
3455 repository_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3456}
3457
3458ListCondition::~ListCondition() {
3459 // @@protoc_insertion_point(destructor:proxima.be.proto.ListCondition)
3460 SharedDtor();
3461}
3462
3463void ListCondition::SharedDtor() {
3464 repository_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3465}
3466
3467void ListCondition::SetCachedSize(int size) const {
3468 _cached_size_.Set(size);
3469}
3470const ListCondition& ListCondition::default_instance() {
3471 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListCondition_proto_2fproxima_5fbe_2eproto.base);
3472 return *internal_default_instance();
3473}
3474
3475
3476void ListCondition::Clear() {
3477// @@protoc_insertion_point(message_clear_start:proxima.be.proto.ListCondition)
3478 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3479 // Prevent compiler warnings about cached_has_bits being unused
3480 (void) cached_has_bits;
3481
3482 repository_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3483 _internal_metadata_.Clear();
3484}
3485
3486const char* ListCondition::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
3487#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3488 while (!ctx->Done(&ptr)) {
3489 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3490 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
3491 CHK_(ptr);
3492 switch (tag >> 3) {
3493 // string repository_name = 1;
3494 case 1:
3495 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
3496 auto str = _internal_mutable_repository_name();
3497 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
3498 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.ListCondition.repository_name"));
3499 CHK_(ptr);
3500 } else goto handle_unusual;
3501 continue;
3502 default: {
3503 handle_unusual:
3504 if ((tag & 7) == 4 || tag == 0) {
3505 ctx->SetLastTag(tag);
3506 goto success;
3507 }
3508 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
3509 CHK_(ptr != nullptr);
3510 continue;
3511 }
3512 } // switch
3513 } // while
3514success:
3515 return ptr;
3516failure:
3517 ptr = nullptr;
3518 goto success;
3519#undef CHK_
3520}
3521
3522::PROTOBUF_NAMESPACE_ID::uint8* ListCondition::_InternalSerialize(
3523 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3524 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.ListCondition)
3525 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3526 (void) cached_has_bits;
3527
3528 // string repository_name = 1;
3529 if (this->repository_name().size() > 0) {
3530 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3531 this->_internal_repository_name().data(), static_cast<int>(this->_internal_repository_name().length()),
3532 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3533 "proxima.be.proto.ListCondition.repository_name");
3534 target = stream->WriteStringMaybeAliased(
3535 1, this->_internal_repository_name(), target);
3536 }
3537
3538 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3539 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
3540 _internal_metadata_.unknown_fields(), target, stream);
3541 }
3542 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.ListCondition)
3543 return target;
3544}
3545
3546size_t ListCondition::ByteSizeLong() const {
3547// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.ListCondition)
3548 size_t total_size = 0;
3549
3550 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3551 // Prevent compiler warnings about cached_has_bits being unused
3552 (void) cached_has_bits;
3553
3554 // string repository_name = 1;
3555 if (this->repository_name().size() > 0) {
3556 total_size += 1 +
3557 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3558 this->_internal_repository_name());
3559 }
3560
3561 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3562 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
3563 _internal_metadata_, total_size, &_cached_size_);
3564 }
3565 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
3566 SetCachedSize(cached_size);
3567 return total_size;
3568}
3569
3570void ListCondition::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3571// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.ListCondition)
3572 GOOGLE_DCHECK_NE(&from, this);
3573 const ListCondition* source =
3574 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ListCondition>(
3575 &from);
3576 if (source == nullptr) {
3577 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.ListCondition)
3578 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
3579 } else {
3580 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.ListCondition)
3581 MergeFrom(*source);
3582 }
3583}
3584
3585void ListCondition::MergeFrom(const ListCondition& from) {
3586// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.ListCondition)
3587 GOOGLE_DCHECK_NE(&from, this);
3588 _internal_metadata_.MergeFrom(from._internal_metadata_);
3589 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3590 (void) cached_has_bits;
3591
3592 if (from.repository_name().size() > 0) {
3593
3594 repository_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.repository_name_);
3595 }
3596}
3597
3598void ListCondition::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3599// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.ListCondition)
3600 if (&from == this) return;
3601 Clear();
3602 MergeFrom(from);
3603}
3604
3605void ListCondition::CopyFrom(const ListCondition& from) {
3606// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.ListCondition)
3607 if (&from == this) return;
3608 Clear();
3609 MergeFrom(from);
3610}
3611
3612bool ListCondition::IsInitialized() const {
3613 return true;
3614}
3615
3616void ListCondition::InternalSwap(ListCondition* other) {
3617 using std::swap;
3618 _internal_metadata_.Swap(&other->_internal_metadata_);
3619 repository_name_.Swap(&other->repository_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
3620 GetArenaNoVirtual());
3621}
3622
3623::PROTOBUF_NAMESPACE_ID::Metadata ListCondition::GetMetadata() const {
3624 return GetMetadataStatic();
3625}
3626
3627
3628// ===================================================================
3629
3630void ListCollectionsResponse::InitAsDefaultInstance() {
3631 ::proxima::be::proto::_ListCollectionsResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::proxima::be::proto::Status*>(
3632 ::proxima::be::proto::Status::internal_default_instance());
3633}
3634class ListCollectionsResponse::_Internal {
3635 public:
3636 static const ::proxima::be::proto::Status& status(const ListCollectionsResponse* msg);
3637};
3638
3639const ::proxima::be::proto::Status&
3640ListCollectionsResponse::_Internal::status(const ListCollectionsResponse* msg) {
3641 return *msg->status_;
3642}
3643void ListCollectionsResponse::clear_status() {
3644 if (GetArenaNoVirtual() == nullptr && status_ != nullptr) {
3645 delete status_;
3646 }
3647 status_ = nullptr;
3648}
3649ListCollectionsResponse::ListCollectionsResponse()
3650 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
3651 SharedCtor();
3652 // @@protoc_insertion_point(constructor:proxima.be.proto.ListCollectionsResponse)
3653}
3654ListCollectionsResponse::ListCollectionsResponse(const ListCollectionsResponse& from)
3655 : ::PROTOBUF_NAMESPACE_ID::Message(),
3656 _internal_metadata_(nullptr),
3657 collections_(from.collections_) {
3658 _internal_metadata_.MergeFrom(from._internal_metadata_);
3659 if (from._internal_has_status()) {
3660 status_ = new ::proxima::be::proto::Status(*from.status_);
3661 } else {
3662 status_ = nullptr;
3663 }
3664 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.ListCollectionsResponse)
3665}
3666
3667void ListCollectionsResponse::SharedCtor() {
3668 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListCollectionsResponse_proto_2fproxima_5fbe_2eproto.base);
3669 status_ = nullptr;
3670}
3671
3672ListCollectionsResponse::~ListCollectionsResponse() {
3673 // @@protoc_insertion_point(destructor:proxima.be.proto.ListCollectionsResponse)
3674 SharedDtor();
3675}
3676
3677void ListCollectionsResponse::SharedDtor() {
3678 if (this != internal_default_instance()) delete status_;
3679}
3680
3681void ListCollectionsResponse::SetCachedSize(int size) const {
3682 _cached_size_.Set(size);
3683}
3684const ListCollectionsResponse& ListCollectionsResponse::default_instance() {
3685 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListCollectionsResponse_proto_2fproxima_5fbe_2eproto.base);
3686 return *internal_default_instance();
3687}
3688
3689
3690void ListCollectionsResponse::Clear() {
3691// @@protoc_insertion_point(message_clear_start:proxima.be.proto.ListCollectionsResponse)
3692 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3693 // Prevent compiler warnings about cached_has_bits being unused
3694 (void) cached_has_bits;
3695
3696 collections_.Clear();
3697 if (GetArenaNoVirtual() == nullptr && status_ != nullptr) {
3698 delete status_;
3699 }
3700 status_ = nullptr;
3701 _internal_metadata_.Clear();
3702}
3703
3704const char* ListCollectionsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
3705#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3706 while (!ctx->Done(&ptr)) {
3707 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3708 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
3709 CHK_(ptr);
3710 switch (tag >> 3) {
3711 // .proxima.be.proto.Status status = 1;
3712 case 1:
3713 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
3714 ptr = ctx->ParseMessage(_internal_mutable_status(), ptr);
3715 CHK_(ptr);
3716 } else goto handle_unusual;
3717 continue;
3718 // repeated .proxima.be.proto.CollectionInfo collections = 2;
3719 case 2:
3720 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
3721 ptr -= 1;
3722 do {
3723 ptr += 1;
3724 ptr = ctx->ParseMessage(_internal_add_collections(), ptr);
3725 CHK_(ptr);
3726 if (!ctx->DataAvailable(ptr)) break;
3727 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
3728 } else goto handle_unusual;
3729 continue;
3730 default: {
3731 handle_unusual:
3732 if ((tag & 7) == 4 || tag == 0) {
3733 ctx->SetLastTag(tag);
3734 goto success;
3735 }
3736 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
3737 CHK_(ptr != nullptr);
3738 continue;
3739 }
3740 } // switch
3741 } // while
3742success:
3743 return ptr;
3744failure:
3745 ptr = nullptr;
3746 goto success;
3747#undef CHK_
3748}
3749
3750::PROTOBUF_NAMESPACE_ID::uint8* ListCollectionsResponse::_InternalSerialize(
3751 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3752 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.ListCollectionsResponse)
3753 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3754 (void) cached_has_bits;
3755
3756 // .proxima.be.proto.Status status = 1;
3757 if (this->has_status()) {
3758 target = stream->EnsureSpace(target);
3759 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3760 InternalWriteMessage(
3761 1, _Internal::status(this), target, stream);
3762 }
3763
3764 // repeated .proxima.be.proto.CollectionInfo collections = 2;
3765 for (unsigned int i = 0,
3766 n = static_cast<unsigned int>(this->_internal_collections_size()); i < n; i++) {
3767 target = stream->EnsureSpace(target);
3768 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3769 InternalWriteMessage(2, this->_internal_collections(i), target, stream);
3770 }
3771
3772 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3773 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
3774 _internal_metadata_.unknown_fields(), target, stream);
3775 }
3776 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.ListCollectionsResponse)
3777 return target;
3778}
3779
3780size_t ListCollectionsResponse::ByteSizeLong() const {
3781// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.ListCollectionsResponse)
3782 size_t total_size = 0;
3783
3784 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3785 // Prevent compiler warnings about cached_has_bits being unused
3786 (void) cached_has_bits;
3787
3788 // repeated .proxima.be.proto.CollectionInfo collections = 2;
3789 total_size += 1UL * this->_internal_collections_size();
3790 for (const auto& msg : this->collections_) {
3791 total_size +=
3792 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
3793 }
3794
3795 // .proxima.be.proto.Status status = 1;
3796 if (this->has_status()) {
3797 total_size += 1 +
3798 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3799 *status_);
3800 }
3801
3802 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3803 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
3804 _internal_metadata_, total_size, &_cached_size_);
3805 }
3806 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
3807 SetCachedSize(cached_size);
3808 return total_size;
3809}
3810
3811void ListCollectionsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3812// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.ListCollectionsResponse)
3813 GOOGLE_DCHECK_NE(&from, this);
3814 const ListCollectionsResponse* source =
3815 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ListCollectionsResponse>(
3816 &from);
3817 if (source == nullptr) {
3818 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.ListCollectionsResponse)
3819 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
3820 } else {
3821 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.ListCollectionsResponse)
3822 MergeFrom(*source);
3823 }
3824}
3825
3826void ListCollectionsResponse::MergeFrom(const ListCollectionsResponse& from) {
3827// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.ListCollectionsResponse)
3828 GOOGLE_DCHECK_NE(&from, this);
3829 _internal_metadata_.MergeFrom(from._internal_metadata_);
3830 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3831 (void) cached_has_bits;
3832
3833 collections_.MergeFrom(from.collections_);
3834 if (from.has_status()) {
3835 _internal_mutable_status()->::proxima::be::proto::Status::MergeFrom(from._internal_status());
3836 }
3837}
3838
3839void ListCollectionsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
3840// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.ListCollectionsResponse)
3841 if (&from == this) return;
3842 Clear();
3843 MergeFrom(from);
3844}
3845
3846void ListCollectionsResponse::CopyFrom(const ListCollectionsResponse& from) {
3847// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.ListCollectionsResponse)
3848 if (&from == this) return;
3849 Clear();
3850 MergeFrom(from);
3851}
3852
3853bool ListCollectionsResponse::IsInitialized() const {
3854 return true;
3855}
3856
3857void ListCollectionsResponse::InternalSwap(ListCollectionsResponse* other) {
3858 using std::swap;
3859 _internal_metadata_.Swap(&other->_internal_metadata_);
3860 collections_.InternalSwap(&other->collections_);
3861 swap(status_, other->status_);
3862}
3863
3864::PROTOBUF_NAMESPACE_ID::Metadata ListCollectionsResponse::GetMetadata() const {
3865 return GetMetadataStatic();
3866}
3867
3868
3869// ===================================================================
3870
3871void CollectionStats_SegmentStats::InitAsDefaultInstance() {
3872}
3873class CollectionStats_SegmentStats::_Internal {
3874 public:
3875};
3876
3877CollectionStats_SegmentStats::CollectionStats_SegmentStats()
3878 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
3879 SharedCtor();
3880 // @@protoc_insertion_point(constructor:proxima.be.proto.CollectionStats.SegmentStats)
3881}
3882CollectionStats_SegmentStats::CollectionStats_SegmentStats(const CollectionStats_SegmentStats& from)
3883 : ::PROTOBUF_NAMESPACE_ID::Message(),
3884 _internal_metadata_(nullptr) {
3885 _internal_metadata_.MergeFrom(from._internal_metadata_);
3886 segment_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3887 if (!from._internal_segment_path().empty()) {
3888 segment_path_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.segment_path_);
3889 }
3890 ::memcpy(&segment_id_, &from.segment_id_,
3891 static_cast<size_t>(reinterpret_cast<char*>(&max_lsn_) -
3892 reinterpret_cast<char*>(&segment_id_)) + sizeof(max_lsn_));
3893 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.CollectionStats.SegmentStats)
3894}
3895
3896void CollectionStats_SegmentStats::SharedCtor() {
3897 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionStats_SegmentStats_proto_2fproxima_5fbe_2eproto.base);
3898 segment_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3899 ::memset(&segment_id_, 0, static_cast<size_t>(
3900 reinterpret_cast<char*>(&max_lsn_) -
3901 reinterpret_cast<char*>(&segment_id_)) + sizeof(max_lsn_));
3902}
3903
3904CollectionStats_SegmentStats::~CollectionStats_SegmentStats() {
3905 // @@protoc_insertion_point(destructor:proxima.be.proto.CollectionStats.SegmentStats)
3906 SharedDtor();
3907}
3908
3909void CollectionStats_SegmentStats::SharedDtor() {
3910 segment_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3911}
3912
3913void CollectionStats_SegmentStats::SetCachedSize(int size) const {
3914 _cached_size_.Set(size);
3915}
3916const CollectionStats_SegmentStats& CollectionStats_SegmentStats::default_instance() {
3917 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionStats_SegmentStats_proto_2fproxima_5fbe_2eproto.base);
3918 return *internal_default_instance();
3919}
3920
3921
3922void CollectionStats_SegmentStats::Clear() {
3923// @@protoc_insertion_point(message_clear_start:proxima.be.proto.CollectionStats.SegmentStats)
3924 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
3925 // Prevent compiler warnings about cached_has_bits being unused
3926 (void) cached_has_bits;
3927
3928 segment_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
3929 ::memset(&segment_id_, 0, static_cast<size_t>(
3930 reinterpret_cast<char*>(&max_lsn_) -
3931 reinterpret_cast<char*>(&segment_id_)) + sizeof(max_lsn_));
3932 _internal_metadata_.Clear();
3933}
3934
3935const char* CollectionStats_SegmentStats::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
3936#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3937 while (!ctx->Done(&ptr)) {
3938 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
3939 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
3940 CHK_(ptr);
3941 switch (tag >> 3) {
3942 // uint32 segment_id = 1;
3943 case 1:
3944 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
3945 segment_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
3946 CHK_(ptr);
3947 } else goto handle_unusual;
3948 continue;
3949 // .proxima.be.proto.CollectionStats.SegmentStats.SegmentState state = 2;
3950 case 2:
3951 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
3952 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
3953 CHK_(ptr);
3954 _internal_set_state(static_cast<::proxima::be::proto::CollectionStats_SegmentStats_SegmentState>(val));
3955 } else goto handle_unusual;
3956 continue;
3957 // uint64 doc_count = 3;
3958 case 3:
3959 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
3960 doc_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
3961 CHK_(ptr);
3962 } else goto handle_unusual;
3963 continue;
3964 // uint64 index_file_count = 4;
3965 case 4:
3966 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
3967 index_file_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
3968 CHK_(ptr);
3969 } else goto handle_unusual;
3970 continue;
3971 // uint64 index_file_size = 5;
3972 case 5:
3973 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
3974 index_file_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
3975 CHK_(ptr);
3976 } else goto handle_unusual;
3977 continue;
3978 // uint64 min_doc_id = 6;
3979 case 6:
3980 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
3981 min_doc_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
3982 CHK_(ptr);
3983 } else goto handle_unusual;
3984 continue;
3985 // uint64 max_doc_id = 7;
3986 case 7:
3987 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
3988 max_doc_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
3989 CHK_(ptr);
3990 } else goto handle_unusual;
3991 continue;
3992 // uint64 min_primary_key = 8;
3993 case 8:
3994 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
3995 min_primary_key_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
3996 CHK_(ptr);
3997 } else goto handle_unusual;
3998 continue;
3999 // uint64 max_primary_key = 9;
4000 case 9:
4001 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
4002 max_primary_key_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
4003 CHK_(ptr);
4004 } else goto handle_unusual;
4005 continue;
4006 // uint64 min_timestamp = 10;
4007 case 10:
4008 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
4009 min_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
4010 CHK_(ptr);
4011 } else goto handle_unusual;
4012 continue;
4013 // uint64 max_timestamp = 11;
4014 case 11:
4015 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
4016 max_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
4017 CHK_(ptr);
4018 } else goto handle_unusual;
4019 continue;
4020 // uint64 min_lsn = 12;
4021 case 12:
4022 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) {
4023 min_lsn_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
4024 CHK_(ptr);
4025 } else goto handle_unusual;
4026 continue;
4027 // uint64 max_lsn = 13;
4028 case 13:
4029 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) {
4030 max_lsn_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
4031 CHK_(ptr);
4032 } else goto handle_unusual;
4033 continue;
4034 // string segment_path = 14;
4035 case 14:
4036 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 114)) {
4037 auto str = _internal_mutable_segment_path();
4038 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
4039 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.CollectionStats.SegmentStats.segment_path"));
4040 CHK_(ptr);
4041 } else goto handle_unusual;
4042 continue;
4043 default: {
4044 handle_unusual:
4045 if ((tag & 7) == 4 || tag == 0) {
4046 ctx->SetLastTag(tag);
4047 goto success;
4048 }
4049 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
4050 CHK_(ptr != nullptr);
4051 continue;
4052 }
4053 } // switch
4054 } // while
4055success:
4056 return ptr;
4057failure:
4058 ptr = nullptr;
4059 goto success;
4060#undef CHK_
4061}
4062
4063::PROTOBUF_NAMESPACE_ID::uint8* CollectionStats_SegmentStats::_InternalSerialize(
4064 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4065 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.CollectionStats.SegmentStats)
4066 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4067 (void) cached_has_bits;
4068
4069 // uint32 segment_id = 1;
4070 if (this->segment_id() != 0) {
4071 target = stream->EnsureSpace(target);
4072 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_segment_id(), target);
4073 }
4074
4075 // .proxima.be.proto.CollectionStats.SegmentStats.SegmentState state = 2;
4076 if (this->state() != 0) {
4077 target = stream->EnsureSpace(target);
4078 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
4079 2, this->_internal_state(), target);
4080 }
4081
4082 // uint64 doc_count = 3;
4083 if (this->doc_count() != 0) {
4084 target = stream->EnsureSpace(target);
4085 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_doc_count(), target);
4086 }
4087
4088 // uint64 index_file_count = 4;
4089 if (this->index_file_count() != 0) {
4090 target = stream->EnsureSpace(target);
4091 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->_internal_index_file_count(), target);
4092 }
4093
4094 // uint64 index_file_size = 5;
4095 if (this->index_file_size() != 0) {
4096 target = stream->EnsureSpace(target);
4097 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(5, this->_internal_index_file_size(), target);
4098 }
4099
4100 // uint64 min_doc_id = 6;
4101 if (this->min_doc_id() != 0) {
4102 target = stream->EnsureSpace(target);
4103 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(6, this->_internal_min_doc_id(), target);
4104 }
4105
4106 // uint64 max_doc_id = 7;
4107 if (this->max_doc_id() != 0) {
4108 target = stream->EnsureSpace(target);
4109 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(7, this->_internal_max_doc_id(), target);
4110 }
4111
4112 // uint64 min_primary_key = 8;
4113 if (this->min_primary_key() != 0) {
4114 target = stream->EnsureSpace(target);
4115 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(8, this->_internal_min_primary_key(), target);
4116 }
4117
4118 // uint64 max_primary_key = 9;
4119 if (this->max_primary_key() != 0) {
4120 target = stream->EnsureSpace(target);
4121 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(9, this->_internal_max_primary_key(), target);
4122 }
4123
4124 // uint64 min_timestamp = 10;
4125 if (this->min_timestamp() != 0) {
4126 target = stream->EnsureSpace(target);
4127 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(10, this->_internal_min_timestamp(), target);
4128 }
4129
4130 // uint64 max_timestamp = 11;
4131 if (this->max_timestamp() != 0) {
4132 target = stream->EnsureSpace(target);
4133 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(11, this->_internal_max_timestamp(), target);
4134 }
4135
4136 // uint64 min_lsn = 12;
4137 if (this->min_lsn() != 0) {
4138 target = stream->EnsureSpace(target);
4139 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(12, this->_internal_min_lsn(), target);
4140 }
4141
4142 // uint64 max_lsn = 13;
4143 if (this->max_lsn() != 0) {
4144 target = stream->EnsureSpace(target);
4145 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(13, this->_internal_max_lsn(), target);
4146 }
4147
4148 // string segment_path = 14;
4149 if (this->segment_path().size() > 0) {
4150 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4151 this->_internal_segment_path().data(), static_cast<int>(this->_internal_segment_path().length()),
4152 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4153 "proxima.be.proto.CollectionStats.SegmentStats.segment_path");
4154 target = stream->WriteStringMaybeAliased(
4155 14, this->_internal_segment_path(), target);
4156 }
4157
4158 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4159 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
4160 _internal_metadata_.unknown_fields(), target, stream);
4161 }
4162 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.CollectionStats.SegmentStats)
4163 return target;
4164}
4165
4166size_t CollectionStats_SegmentStats::ByteSizeLong() const {
4167// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.CollectionStats.SegmentStats)
4168 size_t total_size = 0;
4169
4170 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4171 // Prevent compiler warnings about cached_has_bits being unused
4172 (void) cached_has_bits;
4173
4174 // string segment_path = 14;
4175 if (this->segment_path().size() > 0) {
4176 total_size += 1 +
4177 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4178 this->_internal_segment_path());
4179 }
4180
4181 // uint32 segment_id = 1;
4182 if (this->segment_id() != 0) {
4183 total_size += 1 +
4184 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
4185 this->_internal_segment_id());
4186 }
4187
4188 // .proxima.be.proto.CollectionStats.SegmentStats.SegmentState state = 2;
4189 if (this->state() != 0) {
4190 total_size += 1 +
4191 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state());
4192 }
4193
4194 // uint64 doc_count = 3;
4195 if (this->doc_count() != 0) {
4196 total_size += 1 +
4197 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
4198 this->_internal_doc_count());
4199 }
4200
4201 // uint64 index_file_count = 4;
4202 if (this->index_file_count() != 0) {
4203 total_size += 1 +
4204 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
4205 this->_internal_index_file_count());
4206 }
4207
4208 // uint64 index_file_size = 5;
4209 if (this->index_file_size() != 0) {
4210 total_size += 1 +
4211 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
4212 this->_internal_index_file_size());
4213 }
4214
4215 // uint64 min_doc_id = 6;
4216 if (this->min_doc_id() != 0) {
4217 total_size += 1 +
4218 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
4219 this->_internal_min_doc_id());
4220 }
4221
4222 // uint64 max_doc_id = 7;
4223 if (this->max_doc_id() != 0) {
4224 total_size += 1 +
4225 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
4226 this->_internal_max_doc_id());
4227 }
4228
4229 // uint64 min_primary_key = 8;
4230 if (this->min_primary_key() != 0) {
4231 total_size += 1 +
4232 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
4233 this->_internal_min_primary_key());
4234 }
4235
4236 // uint64 max_primary_key = 9;
4237 if (this->max_primary_key() != 0) {
4238 total_size += 1 +
4239 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
4240 this->_internal_max_primary_key());
4241 }
4242
4243 // uint64 min_timestamp = 10;
4244 if (this->min_timestamp() != 0) {
4245 total_size += 1 +
4246 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
4247 this->_internal_min_timestamp());
4248 }
4249
4250 // uint64 max_timestamp = 11;
4251 if (this->max_timestamp() != 0) {
4252 total_size += 1 +
4253 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
4254 this->_internal_max_timestamp());
4255 }
4256
4257 // uint64 min_lsn = 12;
4258 if (this->min_lsn() != 0) {
4259 total_size += 1 +
4260 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
4261 this->_internal_min_lsn());
4262 }
4263
4264 // uint64 max_lsn = 13;
4265 if (this->max_lsn() != 0) {
4266 total_size += 1 +
4267 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
4268 this->_internal_max_lsn());
4269 }
4270
4271 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4272 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
4273 _internal_metadata_, total_size, &_cached_size_);
4274 }
4275 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
4276 SetCachedSize(cached_size);
4277 return total_size;
4278}
4279
4280void CollectionStats_SegmentStats::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4281// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.CollectionStats.SegmentStats)
4282 GOOGLE_DCHECK_NE(&from, this);
4283 const CollectionStats_SegmentStats* source =
4284 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CollectionStats_SegmentStats>(
4285 &from);
4286 if (source == nullptr) {
4287 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.CollectionStats.SegmentStats)
4288 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
4289 } else {
4290 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.CollectionStats.SegmentStats)
4291 MergeFrom(*source);
4292 }
4293}
4294
4295void CollectionStats_SegmentStats::MergeFrom(const CollectionStats_SegmentStats& from) {
4296// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.CollectionStats.SegmentStats)
4297 GOOGLE_DCHECK_NE(&from, this);
4298 _internal_metadata_.MergeFrom(from._internal_metadata_);
4299 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4300 (void) cached_has_bits;
4301
4302 if (from.segment_path().size() > 0) {
4303
4304 segment_path_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.segment_path_);
4305 }
4306 if (from.segment_id() != 0) {
4307 _internal_set_segment_id(from._internal_segment_id());
4308 }
4309 if (from.state() != 0) {
4310 _internal_set_state(from._internal_state());
4311 }
4312 if (from.doc_count() != 0) {
4313 _internal_set_doc_count(from._internal_doc_count());
4314 }
4315 if (from.index_file_count() != 0) {
4316 _internal_set_index_file_count(from._internal_index_file_count());
4317 }
4318 if (from.index_file_size() != 0) {
4319 _internal_set_index_file_size(from._internal_index_file_size());
4320 }
4321 if (from.min_doc_id() != 0) {
4322 _internal_set_min_doc_id(from._internal_min_doc_id());
4323 }
4324 if (from.max_doc_id() != 0) {
4325 _internal_set_max_doc_id(from._internal_max_doc_id());
4326 }
4327 if (from.min_primary_key() != 0) {
4328 _internal_set_min_primary_key(from._internal_min_primary_key());
4329 }
4330 if (from.max_primary_key() != 0) {
4331 _internal_set_max_primary_key(from._internal_max_primary_key());
4332 }
4333 if (from.min_timestamp() != 0) {
4334 _internal_set_min_timestamp(from._internal_min_timestamp());
4335 }
4336 if (from.max_timestamp() != 0) {
4337 _internal_set_max_timestamp(from._internal_max_timestamp());
4338 }
4339 if (from.min_lsn() != 0) {
4340 _internal_set_min_lsn(from._internal_min_lsn());
4341 }
4342 if (from.max_lsn() != 0) {
4343 _internal_set_max_lsn(from._internal_max_lsn());
4344 }
4345}
4346
4347void CollectionStats_SegmentStats::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4348// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.CollectionStats.SegmentStats)
4349 if (&from == this) return;
4350 Clear();
4351 MergeFrom(from);
4352}
4353
4354void CollectionStats_SegmentStats::CopyFrom(const CollectionStats_SegmentStats& from) {
4355// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.CollectionStats.SegmentStats)
4356 if (&from == this) return;
4357 Clear();
4358 MergeFrom(from);
4359}
4360
4361bool CollectionStats_SegmentStats::IsInitialized() const {
4362 return true;
4363}
4364
4365void CollectionStats_SegmentStats::InternalSwap(CollectionStats_SegmentStats* other) {
4366 using std::swap;
4367 _internal_metadata_.Swap(&other->_internal_metadata_);
4368 segment_path_.Swap(&other->segment_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
4369 GetArenaNoVirtual());
4370 swap(segment_id_, other->segment_id_);
4371 swap(state_, other->state_);
4372 swap(doc_count_, other->doc_count_);
4373 swap(index_file_count_, other->index_file_count_);
4374 swap(index_file_size_, other->index_file_size_);
4375 swap(min_doc_id_, other->min_doc_id_);
4376 swap(max_doc_id_, other->max_doc_id_);
4377 swap(min_primary_key_, other->min_primary_key_);
4378 swap(max_primary_key_, other->max_primary_key_);
4379 swap(min_timestamp_, other->min_timestamp_);
4380 swap(max_timestamp_, other->max_timestamp_);
4381 swap(min_lsn_, other->min_lsn_);
4382 swap(max_lsn_, other->max_lsn_);
4383}
4384
4385::PROTOBUF_NAMESPACE_ID::Metadata CollectionStats_SegmentStats::GetMetadata() const {
4386 return GetMetadataStatic();
4387}
4388
4389
4390// ===================================================================
4391
4392void CollectionStats::InitAsDefaultInstance() {
4393}
4394class CollectionStats::_Internal {
4395 public:
4396};
4397
4398CollectionStats::CollectionStats()
4399 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
4400 SharedCtor();
4401 // @@protoc_insertion_point(constructor:proxima.be.proto.CollectionStats)
4402}
4403CollectionStats::CollectionStats(const CollectionStats& from)
4404 : ::PROTOBUF_NAMESPACE_ID::Message(),
4405 _internal_metadata_(nullptr),
4406 segment_stats_(from.segment_stats_) {
4407 _internal_metadata_.MergeFrom(from._internal_metadata_);
4408 collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4409 if (!from._internal_collection_name().empty()) {
4410 collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_);
4411 }
4412 collection_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4413 if (!from._internal_collection_path().empty()) {
4414 collection_path_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_path_);
4415 }
4416 ::memcpy(&total_doc_count_, &from.total_doc_count_,
4417 static_cast<size_t>(reinterpret_cast<char*>(&total_index_file_size_) -
4418 reinterpret_cast<char*>(&total_doc_count_)) + sizeof(total_index_file_size_));
4419 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.CollectionStats)
4420}
4421
4422void CollectionStats::SharedCtor() {
4423 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionStats_proto_2fproxima_5fbe_2eproto.base);
4424 collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4425 collection_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4426 ::memset(&total_doc_count_, 0, static_cast<size_t>(
4427 reinterpret_cast<char*>(&total_index_file_size_) -
4428 reinterpret_cast<char*>(&total_doc_count_)) + sizeof(total_index_file_size_));
4429}
4430
4431CollectionStats::~CollectionStats() {
4432 // @@protoc_insertion_point(destructor:proxima.be.proto.CollectionStats)
4433 SharedDtor();
4434}
4435
4436void CollectionStats::SharedDtor() {
4437 collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4438 collection_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4439}
4440
4441void CollectionStats::SetCachedSize(int size) const {
4442 _cached_size_.Set(size);
4443}
4444const CollectionStats& CollectionStats::default_instance() {
4445 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionStats_proto_2fproxima_5fbe_2eproto.base);
4446 return *internal_default_instance();
4447}
4448
4449
4450void CollectionStats::Clear() {
4451// @@protoc_insertion_point(message_clear_start:proxima.be.proto.CollectionStats)
4452 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4453 // Prevent compiler warnings about cached_has_bits being unused
4454 (void) cached_has_bits;
4455
4456 segment_stats_.Clear();
4457 collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4458 collection_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
4459 ::memset(&total_doc_count_, 0, static_cast<size_t>(
4460 reinterpret_cast<char*>(&total_index_file_size_) -
4461 reinterpret_cast<char*>(&total_doc_count_)) + sizeof(total_index_file_size_));
4462 _internal_metadata_.Clear();
4463}
4464
4465const char* CollectionStats::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
4466#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4467 while (!ctx->Done(&ptr)) {
4468 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4469 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
4470 CHK_(ptr);
4471 switch (tag >> 3) {
4472 // string collection_name = 1;
4473 case 1:
4474 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
4475 auto str = _internal_mutable_collection_name();
4476 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
4477 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.CollectionStats.collection_name"));
4478 CHK_(ptr);
4479 } else goto handle_unusual;
4480 continue;
4481 // string collection_path = 2;
4482 case 2:
4483 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
4484 auto str = _internal_mutable_collection_path();
4485 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
4486 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.CollectionStats.collection_path"));
4487 CHK_(ptr);
4488 } else goto handle_unusual;
4489 continue;
4490 // uint64 total_doc_count = 3;
4491 case 3:
4492 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
4493 total_doc_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
4494 CHK_(ptr);
4495 } else goto handle_unusual;
4496 continue;
4497 // uint64 total_segment_count = 4;
4498 case 4:
4499 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
4500 total_segment_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
4501 CHK_(ptr);
4502 } else goto handle_unusual;
4503 continue;
4504 // uint64 total_index_file_count = 5;
4505 case 5:
4506 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
4507 total_index_file_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
4508 CHK_(ptr);
4509 } else goto handle_unusual;
4510 continue;
4511 // uint64 total_index_file_size = 6;
4512 case 6:
4513 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
4514 total_index_file_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
4515 CHK_(ptr);
4516 } else goto handle_unusual;
4517 continue;
4518 // repeated .proxima.be.proto.CollectionStats.SegmentStats segment_stats = 7;
4519 case 7:
4520 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
4521 ptr -= 1;
4522 do {
4523 ptr += 1;
4524 ptr = ctx->ParseMessage(_internal_add_segment_stats(), ptr);
4525 CHK_(ptr);
4526 if (!ctx->DataAvailable(ptr)) break;
4527 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr));
4528 } else goto handle_unusual;
4529 continue;
4530 default: {
4531 handle_unusual:
4532 if ((tag & 7) == 4 || tag == 0) {
4533 ctx->SetLastTag(tag);
4534 goto success;
4535 }
4536 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
4537 CHK_(ptr != nullptr);
4538 continue;
4539 }
4540 } // switch
4541 } // while
4542success:
4543 return ptr;
4544failure:
4545 ptr = nullptr;
4546 goto success;
4547#undef CHK_
4548}
4549
4550::PROTOBUF_NAMESPACE_ID::uint8* CollectionStats::_InternalSerialize(
4551 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4552 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.CollectionStats)
4553 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4554 (void) cached_has_bits;
4555
4556 // string collection_name = 1;
4557 if (this->collection_name().size() > 0) {
4558 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4559 this->_internal_collection_name().data(), static_cast<int>(this->_internal_collection_name().length()),
4560 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4561 "proxima.be.proto.CollectionStats.collection_name");
4562 target = stream->WriteStringMaybeAliased(
4563 1, this->_internal_collection_name(), target);
4564 }
4565
4566 // string collection_path = 2;
4567 if (this->collection_path().size() > 0) {
4568 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4569 this->_internal_collection_path().data(), static_cast<int>(this->_internal_collection_path().length()),
4570 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4571 "proxima.be.proto.CollectionStats.collection_path");
4572 target = stream->WriteStringMaybeAliased(
4573 2, this->_internal_collection_path(), target);
4574 }
4575
4576 // uint64 total_doc_count = 3;
4577 if (this->total_doc_count() != 0) {
4578 target = stream->EnsureSpace(target);
4579 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_total_doc_count(), target);
4580 }
4581
4582 // uint64 total_segment_count = 4;
4583 if (this->total_segment_count() != 0) {
4584 target = stream->EnsureSpace(target);
4585 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->_internal_total_segment_count(), target);
4586 }
4587
4588 // uint64 total_index_file_count = 5;
4589 if (this->total_index_file_count() != 0) {
4590 target = stream->EnsureSpace(target);
4591 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(5, this->_internal_total_index_file_count(), target);
4592 }
4593
4594 // uint64 total_index_file_size = 6;
4595 if (this->total_index_file_size() != 0) {
4596 target = stream->EnsureSpace(target);
4597 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(6, this->_internal_total_index_file_size(), target);
4598 }
4599
4600 // repeated .proxima.be.proto.CollectionStats.SegmentStats segment_stats = 7;
4601 for (unsigned int i = 0,
4602 n = static_cast<unsigned int>(this->_internal_segment_stats_size()); i < n; i++) {
4603 target = stream->EnsureSpace(target);
4604 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4605 InternalWriteMessage(7, this->_internal_segment_stats(i), target, stream);
4606 }
4607
4608 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4609 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
4610 _internal_metadata_.unknown_fields(), target, stream);
4611 }
4612 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.CollectionStats)
4613 return target;
4614}
4615
4616size_t CollectionStats::ByteSizeLong() const {
4617// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.CollectionStats)
4618 size_t total_size = 0;
4619
4620 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4621 // Prevent compiler warnings about cached_has_bits being unused
4622 (void) cached_has_bits;
4623
4624 // repeated .proxima.be.proto.CollectionStats.SegmentStats segment_stats = 7;
4625 total_size += 1UL * this->_internal_segment_stats_size();
4626 for (const auto& msg : this->segment_stats_) {
4627 total_size +=
4628 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
4629 }
4630
4631 // string collection_name = 1;
4632 if (this->collection_name().size() > 0) {
4633 total_size += 1 +
4634 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4635 this->_internal_collection_name());
4636 }
4637
4638 // string collection_path = 2;
4639 if (this->collection_path().size() > 0) {
4640 total_size += 1 +
4641 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4642 this->_internal_collection_path());
4643 }
4644
4645 // uint64 total_doc_count = 3;
4646 if (this->total_doc_count() != 0) {
4647 total_size += 1 +
4648 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
4649 this->_internal_total_doc_count());
4650 }
4651
4652 // uint64 total_segment_count = 4;
4653 if (this->total_segment_count() != 0) {
4654 total_size += 1 +
4655 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
4656 this->_internal_total_segment_count());
4657 }
4658
4659 // uint64 total_index_file_count = 5;
4660 if (this->total_index_file_count() != 0) {
4661 total_size += 1 +
4662 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
4663 this->_internal_total_index_file_count());
4664 }
4665
4666 // uint64 total_index_file_size = 6;
4667 if (this->total_index_file_size() != 0) {
4668 total_size += 1 +
4669 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
4670 this->_internal_total_index_file_size());
4671 }
4672
4673 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4674 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
4675 _internal_metadata_, total_size, &_cached_size_);
4676 }
4677 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
4678 SetCachedSize(cached_size);
4679 return total_size;
4680}
4681
4682void CollectionStats::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4683// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.CollectionStats)
4684 GOOGLE_DCHECK_NE(&from, this);
4685 const CollectionStats* source =
4686 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CollectionStats>(
4687 &from);
4688 if (source == nullptr) {
4689 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.CollectionStats)
4690 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
4691 } else {
4692 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.CollectionStats)
4693 MergeFrom(*source);
4694 }
4695}
4696
4697void CollectionStats::MergeFrom(const CollectionStats& from) {
4698// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.CollectionStats)
4699 GOOGLE_DCHECK_NE(&from, this);
4700 _internal_metadata_.MergeFrom(from._internal_metadata_);
4701 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4702 (void) cached_has_bits;
4703
4704 segment_stats_.MergeFrom(from.segment_stats_);
4705 if (from.collection_name().size() > 0) {
4706
4707 collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_);
4708 }
4709 if (from.collection_path().size() > 0) {
4710
4711 collection_path_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_path_);
4712 }
4713 if (from.total_doc_count() != 0) {
4714 _internal_set_total_doc_count(from._internal_total_doc_count());
4715 }
4716 if (from.total_segment_count() != 0) {
4717 _internal_set_total_segment_count(from._internal_total_segment_count());
4718 }
4719 if (from.total_index_file_count() != 0) {
4720 _internal_set_total_index_file_count(from._internal_total_index_file_count());
4721 }
4722 if (from.total_index_file_size() != 0) {
4723 _internal_set_total_index_file_size(from._internal_total_index_file_size());
4724 }
4725}
4726
4727void CollectionStats::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4728// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.CollectionStats)
4729 if (&from == this) return;
4730 Clear();
4731 MergeFrom(from);
4732}
4733
4734void CollectionStats::CopyFrom(const CollectionStats& from) {
4735// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.CollectionStats)
4736 if (&from == this) return;
4737 Clear();
4738 MergeFrom(from);
4739}
4740
4741bool CollectionStats::IsInitialized() const {
4742 return true;
4743}
4744
4745void CollectionStats::InternalSwap(CollectionStats* other) {
4746 using std::swap;
4747 _internal_metadata_.Swap(&other->_internal_metadata_);
4748 segment_stats_.InternalSwap(&other->segment_stats_);
4749 collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
4750 GetArenaNoVirtual());
4751 collection_path_.Swap(&other->collection_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
4752 GetArenaNoVirtual());
4753 swap(total_doc_count_, other->total_doc_count_);
4754 swap(total_segment_count_, other->total_segment_count_);
4755 swap(total_index_file_count_, other->total_index_file_count_);
4756 swap(total_index_file_size_, other->total_index_file_size_);
4757}
4758
4759::PROTOBUF_NAMESPACE_ID::Metadata CollectionStats::GetMetadata() const {
4760 return GetMetadataStatic();
4761}
4762
4763
4764// ===================================================================
4765
4766void StatsCollectionResponse::InitAsDefaultInstance() {
4767 ::proxima::be::proto::_StatsCollectionResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::proxima::be::proto::Status*>(
4768 ::proxima::be::proto::Status::internal_default_instance());
4769 ::proxima::be::proto::_StatsCollectionResponse_default_instance_._instance.get_mutable()->collection_stats_ = const_cast< ::proxima::be::proto::CollectionStats*>(
4770 ::proxima::be::proto::CollectionStats::internal_default_instance());
4771}
4772class StatsCollectionResponse::_Internal {
4773 public:
4774 static const ::proxima::be::proto::Status& status(const StatsCollectionResponse* msg);
4775 static const ::proxima::be::proto::CollectionStats& collection_stats(const StatsCollectionResponse* msg);
4776};
4777
4778const ::proxima::be::proto::Status&
4779StatsCollectionResponse::_Internal::status(const StatsCollectionResponse* msg) {
4780 return *msg->status_;
4781}
4782const ::proxima::be::proto::CollectionStats&
4783StatsCollectionResponse::_Internal::collection_stats(const StatsCollectionResponse* msg) {
4784 return *msg->collection_stats_;
4785}
4786void StatsCollectionResponse::clear_status() {
4787 if (GetArenaNoVirtual() == nullptr && status_ != nullptr) {
4788 delete status_;
4789 }
4790 status_ = nullptr;
4791}
4792StatsCollectionResponse::StatsCollectionResponse()
4793 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
4794 SharedCtor();
4795 // @@protoc_insertion_point(constructor:proxima.be.proto.StatsCollectionResponse)
4796}
4797StatsCollectionResponse::StatsCollectionResponse(const StatsCollectionResponse& from)
4798 : ::PROTOBUF_NAMESPACE_ID::Message(),
4799 _internal_metadata_(nullptr) {
4800 _internal_metadata_.MergeFrom(from._internal_metadata_);
4801 if (from._internal_has_status()) {
4802 status_ = new ::proxima::be::proto::Status(*from.status_);
4803 } else {
4804 status_ = nullptr;
4805 }
4806 if (from._internal_has_collection_stats()) {
4807 collection_stats_ = new ::proxima::be::proto::CollectionStats(*from.collection_stats_);
4808 } else {
4809 collection_stats_ = nullptr;
4810 }
4811 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.StatsCollectionResponse)
4812}
4813
4814void StatsCollectionResponse::SharedCtor() {
4815 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StatsCollectionResponse_proto_2fproxima_5fbe_2eproto.base);
4816 ::memset(&status_, 0, static_cast<size_t>(
4817 reinterpret_cast<char*>(&collection_stats_) -
4818 reinterpret_cast<char*>(&status_)) + sizeof(collection_stats_));
4819}
4820
4821StatsCollectionResponse::~StatsCollectionResponse() {
4822 // @@protoc_insertion_point(destructor:proxima.be.proto.StatsCollectionResponse)
4823 SharedDtor();
4824}
4825
4826void StatsCollectionResponse::SharedDtor() {
4827 if (this != internal_default_instance()) delete status_;
4828 if (this != internal_default_instance()) delete collection_stats_;
4829}
4830
4831void StatsCollectionResponse::SetCachedSize(int size) const {
4832 _cached_size_.Set(size);
4833}
4834const StatsCollectionResponse& StatsCollectionResponse::default_instance() {
4835 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StatsCollectionResponse_proto_2fproxima_5fbe_2eproto.base);
4836 return *internal_default_instance();
4837}
4838
4839
4840void StatsCollectionResponse::Clear() {
4841// @@protoc_insertion_point(message_clear_start:proxima.be.proto.StatsCollectionResponse)
4842 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4843 // Prevent compiler warnings about cached_has_bits being unused
4844 (void) cached_has_bits;
4845
4846 if (GetArenaNoVirtual() == nullptr && status_ != nullptr) {
4847 delete status_;
4848 }
4849 status_ = nullptr;
4850 if (GetArenaNoVirtual() == nullptr && collection_stats_ != nullptr) {
4851 delete collection_stats_;
4852 }
4853 collection_stats_ = nullptr;
4854 _internal_metadata_.Clear();
4855}
4856
4857const char* StatsCollectionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
4858#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4859 while (!ctx->Done(&ptr)) {
4860 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
4861 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
4862 CHK_(ptr);
4863 switch (tag >> 3) {
4864 // .proxima.be.proto.Status status = 1;
4865 case 1:
4866 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
4867 ptr = ctx->ParseMessage(_internal_mutable_status(), ptr);
4868 CHK_(ptr);
4869 } else goto handle_unusual;
4870 continue;
4871 // .proxima.be.proto.CollectionStats collection_stats = 2;
4872 case 2:
4873 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
4874 ptr = ctx->ParseMessage(_internal_mutable_collection_stats(), ptr);
4875 CHK_(ptr);
4876 } else goto handle_unusual;
4877 continue;
4878 default: {
4879 handle_unusual:
4880 if ((tag & 7) == 4 || tag == 0) {
4881 ctx->SetLastTag(tag);
4882 goto success;
4883 }
4884 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
4885 CHK_(ptr != nullptr);
4886 continue;
4887 }
4888 } // switch
4889 } // while
4890success:
4891 return ptr;
4892failure:
4893 ptr = nullptr;
4894 goto success;
4895#undef CHK_
4896}
4897
4898::PROTOBUF_NAMESPACE_ID::uint8* StatsCollectionResponse::_InternalSerialize(
4899 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4900 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.StatsCollectionResponse)
4901 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4902 (void) cached_has_bits;
4903
4904 // .proxima.be.proto.Status status = 1;
4905 if (this->has_status()) {
4906 target = stream->EnsureSpace(target);
4907 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4908 InternalWriteMessage(
4909 1, _Internal::status(this), target, stream);
4910 }
4911
4912 // .proxima.be.proto.CollectionStats collection_stats = 2;
4913 if (this->has_collection_stats()) {
4914 target = stream->EnsureSpace(target);
4915 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4916 InternalWriteMessage(
4917 2, _Internal::collection_stats(this), target, stream);
4918 }
4919
4920 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4921 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
4922 _internal_metadata_.unknown_fields(), target, stream);
4923 }
4924 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.StatsCollectionResponse)
4925 return target;
4926}
4927
4928size_t StatsCollectionResponse::ByteSizeLong() const {
4929// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.StatsCollectionResponse)
4930 size_t total_size = 0;
4931
4932 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4933 // Prevent compiler warnings about cached_has_bits being unused
4934 (void) cached_has_bits;
4935
4936 // .proxima.be.proto.Status status = 1;
4937 if (this->has_status()) {
4938 total_size += 1 +
4939 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4940 *status_);
4941 }
4942
4943 // .proxima.be.proto.CollectionStats collection_stats = 2;
4944 if (this->has_collection_stats()) {
4945 total_size += 1 +
4946 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4947 *collection_stats_);
4948 }
4949
4950 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4951 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
4952 _internal_metadata_, total_size, &_cached_size_);
4953 }
4954 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
4955 SetCachedSize(cached_size);
4956 return total_size;
4957}
4958
4959void StatsCollectionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4960// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.StatsCollectionResponse)
4961 GOOGLE_DCHECK_NE(&from, this);
4962 const StatsCollectionResponse* source =
4963 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<StatsCollectionResponse>(
4964 &from);
4965 if (source == nullptr) {
4966 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.StatsCollectionResponse)
4967 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
4968 } else {
4969 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.StatsCollectionResponse)
4970 MergeFrom(*source);
4971 }
4972}
4973
4974void StatsCollectionResponse::MergeFrom(const StatsCollectionResponse& from) {
4975// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.StatsCollectionResponse)
4976 GOOGLE_DCHECK_NE(&from, this);
4977 _internal_metadata_.MergeFrom(from._internal_metadata_);
4978 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
4979 (void) cached_has_bits;
4980
4981 if (from.has_status()) {
4982 _internal_mutable_status()->::proxima::be::proto::Status::MergeFrom(from._internal_status());
4983 }
4984 if (from.has_collection_stats()) {
4985 _internal_mutable_collection_stats()->::proxima::be::proto::CollectionStats::MergeFrom(from._internal_collection_stats());
4986 }
4987}
4988
4989void StatsCollectionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
4990// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.StatsCollectionResponse)
4991 if (&from == this) return;
4992 Clear();
4993 MergeFrom(from);
4994}
4995
4996void StatsCollectionResponse::CopyFrom(const StatsCollectionResponse& from) {
4997// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.StatsCollectionResponse)
4998 if (&from == this) return;
4999 Clear();
5000 MergeFrom(from);
5001}
5002
5003bool StatsCollectionResponse::IsInitialized() const {
5004 return true;
5005}
5006
5007void StatsCollectionResponse::InternalSwap(StatsCollectionResponse* other) {
5008 using std::swap;
5009 _internal_metadata_.Swap(&other->_internal_metadata_);
5010 swap(status_, other->status_);
5011 swap(collection_stats_, other->collection_stats_);
5012}
5013
5014::PROTOBUF_NAMESPACE_ID::Metadata StatsCollectionResponse::GetMetadata() const {
5015 return GetMetadataStatic();
5016}
5017
5018
5019// ===================================================================
5020
5021void WriteRequest_Row::InitAsDefaultInstance() {
5022 ::proxima::be::proto::_WriteRequest_Row_default_instance_._instance.get_mutable()->forward_column_values_ = const_cast< ::proxima::be::proto::GenericValueList*>(
5023 ::proxima::be::proto::GenericValueList::internal_default_instance());
5024 ::proxima::be::proto::_WriteRequest_Row_default_instance_._instance.get_mutable()->index_column_values_ = const_cast< ::proxima::be::proto::GenericValueList*>(
5025 ::proxima::be::proto::GenericValueList::internal_default_instance());
5026 ::proxima::be::proto::_WriteRequest_Row_default_instance_._instance.get_mutable()->lsn_context_ = const_cast< ::proxima::be::proto::LsnContext*>(
5027 ::proxima::be::proto::LsnContext::internal_default_instance());
5028}
5029class WriteRequest_Row::_Internal {
5030 public:
5031 static const ::proxima::be::proto::GenericValueList& forward_column_values(const WriteRequest_Row* msg);
5032 static const ::proxima::be::proto::GenericValueList& index_column_values(const WriteRequest_Row* msg);
5033 static const ::proxima::be::proto::LsnContext& lsn_context(const WriteRequest_Row* msg);
5034};
5035
5036const ::proxima::be::proto::GenericValueList&
5037WriteRequest_Row::_Internal::forward_column_values(const WriteRequest_Row* msg) {
5038 return *msg->forward_column_values_;
5039}
5040const ::proxima::be::proto::GenericValueList&
5041WriteRequest_Row::_Internal::index_column_values(const WriteRequest_Row* msg) {
5042 return *msg->index_column_values_;
5043}
5044const ::proxima::be::proto::LsnContext&
5045WriteRequest_Row::_Internal::lsn_context(const WriteRequest_Row* msg) {
5046 return *msg->lsn_context_;
5047}
5048void WriteRequest_Row::clear_forward_column_values() {
5049 if (GetArenaNoVirtual() == nullptr && forward_column_values_ != nullptr) {
5050 delete forward_column_values_;
5051 }
5052 forward_column_values_ = nullptr;
5053}
5054void WriteRequest_Row::clear_index_column_values() {
5055 if (GetArenaNoVirtual() == nullptr && index_column_values_ != nullptr) {
5056 delete index_column_values_;
5057 }
5058 index_column_values_ = nullptr;
5059}
5060WriteRequest_Row::WriteRequest_Row()
5061 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
5062 SharedCtor();
5063 // @@protoc_insertion_point(constructor:proxima.be.proto.WriteRequest.Row)
5064}
5065WriteRequest_Row::WriteRequest_Row(const WriteRequest_Row& from)
5066 : ::PROTOBUF_NAMESPACE_ID::Message(),
5067 _internal_metadata_(nullptr) {
5068 _internal_metadata_.MergeFrom(from._internal_metadata_);
5069 if (from._internal_has_forward_column_values()) {
5070 forward_column_values_ = new ::proxima::be::proto::GenericValueList(*from.forward_column_values_);
5071 } else {
5072 forward_column_values_ = nullptr;
5073 }
5074 if (from._internal_has_index_column_values()) {
5075 index_column_values_ = new ::proxima::be::proto::GenericValueList(*from.index_column_values_);
5076 } else {
5077 index_column_values_ = nullptr;
5078 }
5079 if (from._internal_has_lsn_context()) {
5080 lsn_context_ = new ::proxima::be::proto::LsnContext(*from.lsn_context_);
5081 } else {
5082 lsn_context_ = nullptr;
5083 }
5084 ::memcpy(&primary_key_, &from.primary_key_,
5085 static_cast<size_t>(reinterpret_cast<char*>(&operation_type_) -
5086 reinterpret_cast<char*>(&primary_key_)) + sizeof(operation_type_));
5087 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.WriteRequest.Row)
5088}
5089
5090void WriteRequest_Row::SharedCtor() {
5091 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_WriteRequest_Row_proto_2fproxima_5fbe_2eproto.base);
5092 ::memset(&forward_column_values_, 0, static_cast<size_t>(
5093 reinterpret_cast<char*>(&operation_type_) -
5094 reinterpret_cast<char*>(&forward_column_values_)) + sizeof(operation_type_));
5095}
5096
5097WriteRequest_Row::~WriteRequest_Row() {
5098 // @@protoc_insertion_point(destructor:proxima.be.proto.WriteRequest.Row)
5099 SharedDtor();
5100}
5101
5102void WriteRequest_Row::SharedDtor() {
5103 if (this != internal_default_instance()) delete forward_column_values_;
5104 if (this != internal_default_instance()) delete index_column_values_;
5105 if (this != internal_default_instance()) delete lsn_context_;
5106}
5107
5108void WriteRequest_Row::SetCachedSize(int size) const {
5109 _cached_size_.Set(size);
5110}
5111const WriteRequest_Row& WriteRequest_Row::default_instance() {
5112 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_WriteRequest_Row_proto_2fproxima_5fbe_2eproto.base);
5113 return *internal_default_instance();
5114}
5115
5116
5117void WriteRequest_Row::Clear() {
5118// @@protoc_insertion_point(message_clear_start:proxima.be.proto.WriteRequest.Row)
5119 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5120 // Prevent compiler warnings about cached_has_bits being unused
5121 (void) cached_has_bits;
5122
5123 if (GetArenaNoVirtual() == nullptr && forward_column_values_ != nullptr) {
5124 delete forward_column_values_;
5125 }
5126 forward_column_values_ = nullptr;
5127 if (GetArenaNoVirtual() == nullptr && index_column_values_ != nullptr) {
5128 delete index_column_values_;
5129 }
5130 index_column_values_ = nullptr;
5131 if (GetArenaNoVirtual() == nullptr && lsn_context_ != nullptr) {
5132 delete lsn_context_;
5133 }
5134 lsn_context_ = nullptr;
5135 ::memset(&primary_key_, 0, static_cast<size_t>(
5136 reinterpret_cast<char*>(&operation_type_) -
5137 reinterpret_cast<char*>(&primary_key_)) + sizeof(operation_type_));
5138 _internal_metadata_.Clear();
5139}
5140
5141const char* WriteRequest_Row::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
5142#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5143 while (!ctx->Done(&ptr)) {
5144 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5145 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
5146 CHK_(ptr);
5147 switch (tag >> 3) {
5148 // uint64 primary_key = 1;
5149 case 1:
5150 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
5151 primary_key_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
5152 CHK_(ptr);
5153 } else goto handle_unusual;
5154 continue;
5155 // .proxima.be.proto.OperationType operation_type = 2;
5156 case 2:
5157 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
5158 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
5159 CHK_(ptr);
5160 _internal_set_operation_type(static_cast<::proxima::be::proto::OperationType>(val));
5161 } else goto handle_unusual;
5162 continue;
5163 // .proxima.be.proto.GenericValueList forward_column_values = 3;
5164 case 3:
5165 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
5166 ptr = ctx->ParseMessage(_internal_mutable_forward_column_values(), ptr);
5167 CHK_(ptr);
5168 } else goto handle_unusual;
5169 continue;
5170 // .proxima.be.proto.GenericValueList index_column_values = 4;
5171 case 4:
5172 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
5173 ptr = ctx->ParseMessage(_internal_mutable_index_column_values(), ptr);
5174 CHK_(ptr);
5175 } else goto handle_unusual;
5176 continue;
5177 // .proxima.be.proto.LsnContext lsn_context = 5;
5178 case 5:
5179 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
5180 ptr = ctx->ParseMessage(_internal_mutable_lsn_context(), ptr);
5181 CHK_(ptr);
5182 } else goto handle_unusual;
5183 continue;
5184 default: {
5185 handle_unusual:
5186 if ((tag & 7) == 4 || tag == 0) {
5187 ctx->SetLastTag(tag);
5188 goto success;
5189 }
5190 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
5191 CHK_(ptr != nullptr);
5192 continue;
5193 }
5194 } // switch
5195 } // while
5196success:
5197 return ptr;
5198failure:
5199 ptr = nullptr;
5200 goto success;
5201#undef CHK_
5202}
5203
5204::PROTOBUF_NAMESPACE_ID::uint8* WriteRequest_Row::_InternalSerialize(
5205 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5206 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.WriteRequest.Row)
5207 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5208 (void) cached_has_bits;
5209
5210 // uint64 primary_key = 1;
5211 if (this->primary_key() != 0) {
5212 target = stream->EnsureSpace(target);
5213 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_primary_key(), target);
5214 }
5215
5216 // .proxima.be.proto.OperationType operation_type = 2;
5217 if (this->operation_type() != 0) {
5218 target = stream->EnsureSpace(target);
5219 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
5220 2, this->_internal_operation_type(), target);
5221 }
5222
5223 // .proxima.be.proto.GenericValueList forward_column_values = 3;
5224 if (this->has_forward_column_values()) {
5225 target = stream->EnsureSpace(target);
5226 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5227 InternalWriteMessage(
5228 3, _Internal::forward_column_values(this), target, stream);
5229 }
5230
5231 // .proxima.be.proto.GenericValueList index_column_values = 4;
5232 if (this->has_index_column_values()) {
5233 target = stream->EnsureSpace(target);
5234 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5235 InternalWriteMessage(
5236 4, _Internal::index_column_values(this), target, stream);
5237 }
5238
5239 // .proxima.be.proto.LsnContext lsn_context = 5;
5240 if (this->has_lsn_context()) {
5241 target = stream->EnsureSpace(target);
5242 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5243 InternalWriteMessage(
5244 5, _Internal::lsn_context(this), target, stream);
5245 }
5246
5247 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5248 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
5249 _internal_metadata_.unknown_fields(), target, stream);
5250 }
5251 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.WriteRequest.Row)
5252 return target;
5253}
5254
5255size_t WriteRequest_Row::ByteSizeLong() const {
5256// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.WriteRequest.Row)
5257 size_t total_size = 0;
5258
5259 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5260 // Prevent compiler warnings about cached_has_bits being unused
5261 (void) cached_has_bits;
5262
5263 // .proxima.be.proto.GenericValueList forward_column_values = 3;
5264 if (this->has_forward_column_values()) {
5265 total_size += 1 +
5266 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5267 *forward_column_values_);
5268 }
5269
5270 // .proxima.be.proto.GenericValueList index_column_values = 4;
5271 if (this->has_index_column_values()) {
5272 total_size += 1 +
5273 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5274 *index_column_values_);
5275 }
5276
5277 // .proxima.be.proto.LsnContext lsn_context = 5;
5278 if (this->has_lsn_context()) {
5279 total_size += 1 +
5280 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5281 *lsn_context_);
5282 }
5283
5284 // uint64 primary_key = 1;
5285 if (this->primary_key() != 0) {
5286 total_size += 1 +
5287 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
5288 this->_internal_primary_key());
5289 }
5290
5291 // .proxima.be.proto.OperationType operation_type = 2;
5292 if (this->operation_type() != 0) {
5293 total_size += 1 +
5294 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_operation_type());
5295 }
5296
5297 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5298 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
5299 _internal_metadata_, total_size, &_cached_size_);
5300 }
5301 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
5302 SetCachedSize(cached_size);
5303 return total_size;
5304}
5305
5306void WriteRequest_Row::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5307// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.WriteRequest.Row)
5308 GOOGLE_DCHECK_NE(&from, this);
5309 const WriteRequest_Row* source =
5310 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<WriteRequest_Row>(
5311 &from);
5312 if (source == nullptr) {
5313 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.WriteRequest.Row)
5314 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
5315 } else {
5316 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.WriteRequest.Row)
5317 MergeFrom(*source);
5318 }
5319}
5320
5321void WriteRequest_Row::MergeFrom(const WriteRequest_Row& from) {
5322// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.WriteRequest.Row)
5323 GOOGLE_DCHECK_NE(&from, this);
5324 _internal_metadata_.MergeFrom(from._internal_metadata_);
5325 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5326 (void) cached_has_bits;
5327
5328 if (from.has_forward_column_values()) {
5329 _internal_mutable_forward_column_values()->::proxima::be::proto::GenericValueList::MergeFrom(from._internal_forward_column_values());
5330 }
5331 if (from.has_index_column_values()) {
5332 _internal_mutable_index_column_values()->::proxima::be::proto::GenericValueList::MergeFrom(from._internal_index_column_values());
5333 }
5334 if (from.has_lsn_context()) {
5335 _internal_mutable_lsn_context()->::proxima::be::proto::LsnContext::MergeFrom(from._internal_lsn_context());
5336 }
5337 if (from.primary_key() != 0) {
5338 _internal_set_primary_key(from._internal_primary_key());
5339 }
5340 if (from.operation_type() != 0) {
5341 _internal_set_operation_type(from._internal_operation_type());
5342 }
5343}
5344
5345void WriteRequest_Row::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5346// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.WriteRequest.Row)
5347 if (&from == this) return;
5348 Clear();
5349 MergeFrom(from);
5350}
5351
5352void WriteRequest_Row::CopyFrom(const WriteRequest_Row& from) {
5353// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.WriteRequest.Row)
5354 if (&from == this) return;
5355 Clear();
5356 MergeFrom(from);
5357}
5358
5359bool WriteRequest_Row::IsInitialized() const {
5360 return true;
5361}
5362
5363void WriteRequest_Row::InternalSwap(WriteRequest_Row* other) {
5364 using std::swap;
5365 _internal_metadata_.Swap(&other->_internal_metadata_);
5366 swap(forward_column_values_, other->forward_column_values_);
5367 swap(index_column_values_, other->index_column_values_);
5368 swap(lsn_context_, other->lsn_context_);
5369 swap(primary_key_, other->primary_key_);
5370 swap(operation_type_, other->operation_type_);
5371}
5372
5373::PROTOBUF_NAMESPACE_ID::Metadata WriteRequest_Row::GetMetadata() const {
5374 return GetMetadataStatic();
5375}
5376
5377
5378// ===================================================================
5379
5380void WriteRequest_IndexColumnMeta::InitAsDefaultInstance() {
5381}
5382class WriteRequest_IndexColumnMeta::_Internal {
5383 public:
5384};
5385
5386WriteRequest_IndexColumnMeta::WriteRequest_IndexColumnMeta()
5387 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
5388 SharedCtor();
5389 // @@protoc_insertion_point(constructor:proxima.be.proto.WriteRequest.IndexColumnMeta)
5390}
5391WriteRequest_IndexColumnMeta::WriteRequest_IndexColumnMeta(const WriteRequest_IndexColumnMeta& from)
5392 : ::PROTOBUF_NAMESPACE_ID::Message(),
5393 _internal_metadata_(nullptr) {
5394 _internal_metadata_.MergeFrom(from._internal_metadata_);
5395 column_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5396 if (!from._internal_column_name().empty()) {
5397 column_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.column_name_);
5398 }
5399 ::memcpy(&data_type_, &from.data_type_,
5400 static_cast<size_t>(reinterpret_cast<char*>(&dimension_) -
5401 reinterpret_cast<char*>(&data_type_)) + sizeof(dimension_));
5402 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.WriteRequest.IndexColumnMeta)
5403}
5404
5405void WriteRequest_IndexColumnMeta::SharedCtor() {
5406 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_WriteRequest_IndexColumnMeta_proto_2fproxima_5fbe_2eproto.base);
5407 column_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5408 ::memset(&data_type_, 0, static_cast<size_t>(
5409 reinterpret_cast<char*>(&dimension_) -
5410 reinterpret_cast<char*>(&data_type_)) + sizeof(dimension_));
5411}
5412
5413WriteRequest_IndexColumnMeta::~WriteRequest_IndexColumnMeta() {
5414 // @@protoc_insertion_point(destructor:proxima.be.proto.WriteRequest.IndexColumnMeta)
5415 SharedDtor();
5416}
5417
5418void WriteRequest_IndexColumnMeta::SharedDtor() {
5419 column_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5420}
5421
5422void WriteRequest_IndexColumnMeta::SetCachedSize(int size) const {
5423 _cached_size_.Set(size);
5424}
5425const WriteRequest_IndexColumnMeta& WriteRequest_IndexColumnMeta::default_instance() {
5426 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_WriteRequest_IndexColumnMeta_proto_2fproxima_5fbe_2eproto.base);
5427 return *internal_default_instance();
5428}
5429
5430
5431void WriteRequest_IndexColumnMeta::Clear() {
5432// @@protoc_insertion_point(message_clear_start:proxima.be.proto.WriteRequest.IndexColumnMeta)
5433 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5434 // Prevent compiler warnings about cached_has_bits being unused
5435 (void) cached_has_bits;
5436
5437 column_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5438 ::memset(&data_type_, 0, static_cast<size_t>(
5439 reinterpret_cast<char*>(&dimension_) -
5440 reinterpret_cast<char*>(&data_type_)) + sizeof(dimension_));
5441 _internal_metadata_.Clear();
5442}
5443
5444const char* WriteRequest_IndexColumnMeta::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
5445#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5446 while (!ctx->Done(&ptr)) {
5447 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5448 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
5449 CHK_(ptr);
5450 switch (tag >> 3) {
5451 // string column_name = 1;
5452 case 1:
5453 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
5454 auto str = _internal_mutable_column_name();
5455 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
5456 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.WriteRequest.IndexColumnMeta.column_name"));
5457 CHK_(ptr);
5458 } else goto handle_unusual;
5459 continue;
5460 // .proxima.be.proto.DataType data_type = 2;
5461 case 2:
5462 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
5463 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
5464 CHK_(ptr);
5465 _internal_set_data_type(static_cast<::proxima::be::proto::DataType>(val));
5466 } else goto handle_unusual;
5467 continue;
5468 // uint32 dimension = 3;
5469 case 3:
5470 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
5471 dimension_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
5472 CHK_(ptr);
5473 } else goto handle_unusual;
5474 continue;
5475 default: {
5476 handle_unusual:
5477 if ((tag & 7) == 4 || tag == 0) {
5478 ctx->SetLastTag(tag);
5479 goto success;
5480 }
5481 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
5482 CHK_(ptr != nullptr);
5483 continue;
5484 }
5485 } // switch
5486 } // while
5487success:
5488 return ptr;
5489failure:
5490 ptr = nullptr;
5491 goto success;
5492#undef CHK_
5493}
5494
5495::PROTOBUF_NAMESPACE_ID::uint8* WriteRequest_IndexColumnMeta::_InternalSerialize(
5496 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5497 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.WriteRequest.IndexColumnMeta)
5498 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5499 (void) cached_has_bits;
5500
5501 // string column_name = 1;
5502 if (this->column_name().size() > 0) {
5503 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5504 this->_internal_column_name().data(), static_cast<int>(this->_internal_column_name().length()),
5505 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
5506 "proxima.be.proto.WriteRequest.IndexColumnMeta.column_name");
5507 target = stream->WriteStringMaybeAliased(
5508 1, this->_internal_column_name(), target);
5509 }
5510
5511 // .proxima.be.proto.DataType data_type = 2;
5512 if (this->data_type() != 0) {
5513 target = stream->EnsureSpace(target);
5514 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
5515 2, this->_internal_data_type(), target);
5516 }
5517
5518 // uint32 dimension = 3;
5519 if (this->dimension() != 0) {
5520 target = stream->EnsureSpace(target);
5521 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_dimension(), target);
5522 }
5523
5524 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5525 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
5526 _internal_metadata_.unknown_fields(), target, stream);
5527 }
5528 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.WriteRequest.IndexColumnMeta)
5529 return target;
5530}
5531
5532size_t WriteRequest_IndexColumnMeta::ByteSizeLong() const {
5533// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.WriteRequest.IndexColumnMeta)
5534 size_t total_size = 0;
5535
5536 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5537 // Prevent compiler warnings about cached_has_bits being unused
5538 (void) cached_has_bits;
5539
5540 // string column_name = 1;
5541 if (this->column_name().size() > 0) {
5542 total_size += 1 +
5543 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5544 this->_internal_column_name());
5545 }
5546
5547 // .proxima.be.proto.DataType data_type = 2;
5548 if (this->data_type() != 0) {
5549 total_size += 1 +
5550 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_data_type());
5551 }
5552
5553 // uint32 dimension = 3;
5554 if (this->dimension() != 0) {
5555 total_size += 1 +
5556 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
5557 this->_internal_dimension());
5558 }
5559
5560 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5561 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
5562 _internal_metadata_, total_size, &_cached_size_);
5563 }
5564 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
5565 SetCachedSize(cached_size);
5566 return total_size;
5567}
5568
5569void WriteRequest_IndexColumnMeta::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5570// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.WriteRequest.IndexColumnMeta)
5571 GOOGLE_DCHECK_NE(&from, this);
5572 const WriteRequest_IndexColumnMeta* source =
5573 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<WriteRequest_IndexColumnMeta>(
5574 &from);
5575 if (source == nullptr) {
5576 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.WriteRequest.IndexColumnMeta)
5577 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
5578 } else {
5579 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.WriteRequest.IndexColumnMeta)
5580 MergeFrom(*source);
5581 }
5582}
5583
5584void WriteRequest_IndexColumnMeta::MergeFrom(const WriteRequest_IndexColumnMeta& from) {
5585// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.WriteRequest.IndexColumnMeta)
5586 GOOGLE_DCHECK_NE(&from, this);
5587 _internal_metadata_.MergeFrom(from._internal_metadata_);
5588 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5589 (void) cached_has_bits;
5590
5591 if (from.column_name().size() > 0) {
5592
5593 column_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.column_name_);
5594 }
5595 if (from.data_type() != 0) {
5596 _internal_set_data_type(from._internal_data_type());
5597 }
5598 if (from.dimension() != 0) {
5599 _internal_set_dimension(from._internal_dimension());
5600 }
5601}
5602
5603void WriteRequest_IndexColumnMeta::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5604// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.WriteRequest.IndexColumnMeta)
5605 if (&from == this) return;
5606 Clear();
5607 MergeFrom(from);
5608}
5609
5610void WriteRequest_IndexColumnMeta::CopyFrom(const WriteRequest_IndexColumnMeta& from) {
5611// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.WriteRequest.IndexColumnMeta)
5612 if (&from == this) return;
5613 Clear();
5614 MergeFrom(from);
5615}
5616
5617bool WriteRequest_IndexColumnMeta::IsInitialized() const {
5618 return true;
5619}
5620
5621void WriteRequest_IndexColumnMeta::InternalSwap(WriteRequest_IndexColumnMeta* other) {
5622 using std::swap;
5623 _internal_metadata_.Swap(&other->_internal_metadata_);
5624 column_name_.Swap(&other->column_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
5625 GetArenaNoVirtual());
5626 swap(data_type_, other->data_type_);
5627 swap(dimension_, other->dimension_);
5628}
5629
5630::PROTOBUF_NAMESPACE_ID::Metadata WriteRequest_IndexColumnMeta::GetMetadata() const {
5631 return GetMetadataStatic();
5632}
5633
5634
5635// ===================================================================
5636
5637void WriteRequest_RowMeta::InitAsDefaultInstance() {
5638}
5639class WriteRequest_RowMeta::_Internal {
5640 public:
5641};
5642
5643WriteRequest_RowMeta::WriteRequest_RowMeta()
5644 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
5645 SharedCtor();
5646 // @@protoc_insertion_point(constructor:proxima.be.proto.WriteRequest.RowMeta)
5647}
5648WriteRequest_RowMeta::WriteRequest_RowMeta(const WriteRequest_RowMeta& from)
5649 : ::PROTOBUF_NAMESPACE_ID::Message(),
5650 _internal_metadata_(nullptr),
5651 forward_column_names_(from.forward_column_names_),
5652 index_column_metas_(from.index_column_metas_) {
5653 _internal_metadata_.MergeFrom(from._internal_metadata_);
5654 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.WriteRequest.RowMeta)
5655}
5656
5657void WriteRequest_RowMeta::SharedCtor() {
5658 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_WriteRequest_RowMeta_proto_2fproxima_5fbe_2eproto.base);
5659}
5660
5661WriteRequest_RowMeta::~WriteRequest_RowMeta() {
5662 // @@protoc_insertion_point(destructor:proxima.be.proto.WriteRequest.RowMeta)
5663 SharedDtor();
5664}
5665
5666void WriteRequest_RowMeta::SharedDtor() {
5667}
5668
5669void WriteRequest_RowMeta::SetCachedSize(int size) const {
5670 _cached_size_.Set(size);
5671}
5672const WriteRequest_RowMeta& WriteRequest_RowMeta::default_instance() {
5673 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_WriteRequest_RowMeta_proto_2fproxima_5fbe_2eproto.base);
5674 return *internal_default_instance();
5675}
5676
5677
5678void WriteRequest_RowMeta::Clear() {
5679// @@protoc_insertion_point(message_clear_start:proxima.be.proto.WriteRequest.RowMeta)
5680 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5681 // Prevent compiler warnings about cached_has_bits being unused
5682 (void) cached_has_bits;
5683
5684 forward_column_names_.Clear();
5685 index_column_metas_.Clear();
5686 _internal_metadata_.Clear();
5687}
5688
5689const char* WriteRequest_RowMeta::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
5690#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5691 while (!ctx->Done(&ptr)) {
5692 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5693 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
5694 CHK_(ptr);
5695 switch (tag >> 3) {
5696 // repeated string forward_column_names = 1;
5697 case 1:
5698 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
5699 ptr -= 1;
5700 do {
5701 ptr += 1;
5702 auto str = _internal_add_forward_column_names();
5703 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
5704 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.WriteRequest.RowMeta.forward_column_names"));
5705 CHK_(ptr);
5706 if (!ctx->DataAvailable(ptr)) break;
5707 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
5708 } else goto handle_unusual;
5709 continue;
5710 // repeated .proxima.be.proto.WriteRequest.IndexColumnMeta index_column_metas = 2;
5711 case 2:
5712 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
5713 ptr -= 1;
5714 do {
5715 ptr += 1;
5716 ptr = ctx->ParseMessage(_internal_add_index_column_metas(), ptr);
5717 CHK_(ptr);
5718 if (!ctx->DataAvailable(ptr)) break;
5719 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
5720 } else goto handle_unusual;
5721 continue;
5722 default: {
5723 handle_unusual:
5724 if ((tag & 7) == 4 || tag == 0) {
5725 ctx->SetLastTag(tag);
5726 goto success;
5727 }
5728 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
5729 CHK_(ptr != nullptr);
5730 continue;
5731 }
5732 } // switch
5733 } // while
5734success:
5735 return ptr;
5736failure:
5737 ptr = nullptr;
5738 goto success;
5739#undef CHK_
5740}
5741
5742::PROTOBUF_NAMESPACE_ID::uint8* WriteRequest_RowMeta::_InternalSerialize(
5743 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5744 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.WriteRequest.RowMeta)
5745 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5746 (void) cached_has_bits;
5747
5748 // repeated string forward_column_names = 1;
5749 for (int i = 0, n = this->_internal_forward_column_names_size(); i < n; i++) {
5750 const auto& s = this->_internal_forward_column_names(i);
5751 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5752 s.data(), static_cast<int>(s.length()),
5753 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
5754 "proxima.be.proto.WriteRequest.RowMeta.forward_column_names");
5755 target = stream->WriteString(1, s, target);
5756 }
5757
5758 // repeated .proxima.be.proto.WriteRequest.IndexColumnMeta index_column_metas = 2;
5759 for (unsigned int i = 0,
5760 n = static_cast<unsigned int>(this->_internal_index_column_metas_size()); i < n; i++) {
5761 target = stream->EnsureSpace(target);
5762 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5763 InternalWriteMessage(2, this->_internal_index_column_metas(i), target, stream);
5764 }
5765
5766 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5767 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
5768 _internal_metadata_.unknown_fields(), target, stream);
5769 }
5770 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.WriteRequest.RowMeta)
5771 return target;
5772}
5773
5774size_t WriteRequest_RowMeta::ByteSizeLong() const {
5775// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.WriteRequest.RowMeta)
5776 size_t total_size = 0;
5777
5778 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5779 // Prevent compiler warnings about cached_has_bits being unused
5780 (void) cached_has_bits;
5781
5782 // repeated string forward_column_names = 1;
5783 total_size += 1 *
5784 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(forward_column_names_.size());
5785 for (int i = 0, n = forward_column_names_.size(); i < n; i++) {
5786 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5787 forward_column_names_.Get(i));
5788 }
5789
5790 // repeated .proxima.be.proto.WriteRequest.IndexColumnMeta index_column_metas = 2;
5791 total_size += 1UL * this->_internal_index_column_metas_size();
5792 for (const auto& msg : this->index_column_metas_) {
5793 total_size +=
5794 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
5795 }
5796
5797 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5798 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
5799 _internal_metadata_, total_size, &_cached_size_);
5800 }
5801 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
5802 SetCachedSize(cached_size);
5803 return total_size;
5804}
5805
5806void WriteRequest_RowMeta::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5807// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.WriteRequest.RowMeta)
5808 GOOGLE_DCHECK_NE(&from, this);
5809 const WriteRequest_RowMeta* source =
5810 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<WriteRequest_RowMeta>(
5811 &from);
5812 if (source == nullptr) {
5813 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.WriteRequest.RowMeta)
5814 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
5815 } else {
5816 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.WriteRequest.RowMeta)
5817 MergeFrom(*source);
5818 }
5819}
5820
5821void WriteRequest_RowMeta::MergeFrom(const WriteRequest_RowMeta& from) {
5822// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.WriteRequest.RowMeta)
5823 GOOGLE_DCHECK_NE(&from, this);
5824 _internal_metadata_.MergeFrom(from._internal_metadata_);
5825 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5826 (void) cached_has_bits;
5827
5828 forward_column_names_.MergeFrom(from.forward_column_names_);
5829 index_column_metas_.MergeFrom(from.index_column_metas_);
5830}
5831
5832void WriteRequest_RowMeta::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
5833// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.WriteRequest.RowMeta)
5834 if (&from == this) return;
5835 Clear();
5836 MergeFrom(from);
5837}
5838
5839void WriteRequest_RowMeta::CopyFrom(const WriteRequest_RowMeta& from) {
5840// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.WriteRequest.RowMeta)
5841 if (&from == this) return;
5842 Clear();
5843 MergeFrom(from);
5844}
5845
5846bool WriteRequest_RowMeta::IsInitialized() const {
5847 return true;
5848}
5849
5850void WriteRequest_RowMeta::InternalSwap(WriteRequest_RowMeta* other) {
5851 using std::swap;
5852 _internal_metadata_.Swap(&other->_internal_metadata_);
5853 forward_column_names_.InternalSwap(&other->forward_column_names_);
5854 index_column_metas_.InternalSwap(&other->index_column_metas_);
5855}
5856
5857::PROTOBUF_NAMESPACE_ID::Metadata WriteRequest_RowMeta::GetMetadata() const {
5858 return GetMetadataStatic();
5859}
5860
5861
5862// ===================================================================
5863
5864void WriteRequest::InitAsDefaultInstance() {
5865 ::proxima::be::proto::_WriteRequest_default_instance_._instance.get_mutable()->row_meta_ = const_cast< ::proxima::be::proto::WriteRequest_RowMeta*>(
5866 ::proxima::be::proto::WriteRequest_RowMeta::internal_default_instance());
5867}
5868class WriteRequest::_Internal {
5869 public:
5870 static const ::proxima::be::proto::WriteRequest_RowMeta& row_meta(const WriteRequest* msg);
5871};
5872
5873const ::proxima::be::proto::WriteRequest_RowMeta&
5874WriteRequest::_Internal::row_meta(const WriteRequest* msg) {
5875 return *msg->row_meta_;
5876}
5877WriteRequest::WriteRequest()
5878 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
5879 SharedCtor();
5880 // @@protoc_insertion_point(constructor:proxima.be.proto.WriteRequest)
5881}
5882WriteRequest::WriteRequest(const WriteRequest& from)
5883 : ::PROTOBUF_NAMESPACE_ID::Message(),
5884 _internal_metadata_(nullptr),
5885 rows_(from.rows_) {
5886 _internal_metadata_.MergeFrom(from._internal_metadata_);
5887 collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5888 if (!from._internal_collection_name().empty()) {
5889 collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_);
5890 }
5891 request_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5892 if (!from._internal_request_id().empty()) {
5893 request_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.request_id_);
5894 }
5895 if (from._internal_has_row_meta()) {
5896 row_meta_ = new ::proxima::be::proto::WriteRequest_RowMeta(*from.row_meta_);
5897 } else {
5898 row_meta_ = nullptr;
5899 }
5900 magic_number_ = from.magic_number_;
5901 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.WriteRequest)
5902}
5903
5904void WriteRequest::SharedCtor() {
5905 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_WriteRequest_proto_2fproxima_5fbe_2eproto.base);
5906 collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5907 request_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5908 ::memset(&row_meta_, 0, static_cast<size_t>(
5909 reinterpret_cast<char*>(&magic_number_) -
5910 reinterpret_cast<char*>(&row_meta_)) + sizeof(magic_number_));
5911}
5912
5913WriteRequest::~WriteRequest() {
5914 // @@protoc_insertion_point(destructor:proxima.be.proto.WriteRequest)
5915 SharedDtor();
5916}
5917
5918void WriteRequest::SharedDtor() {
5919 collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5920 request_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5921 if (this != internal_default_instance()) delete row_meta_;
5922}
5923
5924void WriteRequest::SetCachedSize(int size) const {
5925 _cached_size_.Set(size);
5926}
5927const WriteRequest& WriteRequest::default_instance() {
5928 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_WriteRequest_proto_2fproxima_5fbe_2eproto.base);
5929 return *internal_default_instance();
5930}
5931
5932
5933void WriteRequest::Clear() {
5934// @@protoc_insertion_point(message_clear_start:proxima.be.proto.WriteRequest)
5935 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
5936 // Prevent compiler warnings about cached_has_bits being unused
5937 (void) cached_has_bits;
5938
5939 rows_.Clear();
5940 collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5941 request_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
5942 if (GetArenaNoVirtual() == nullptr && row_meta_ != nullptr) {
5943 delete row_meta_;
5944 }
5945 row_meta_ = nullptr;
5946 magic_number_ = PROTOBUF_ULONGLONG(0);
5947 _internal_metadata_.Clear();
5948}
5949
5950const char* WriteRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
5951#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5952 while (!ctx->Done(&ptr)) {
5953 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
5954 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
5955 CHK_(ptr);
5956 switch (tag >> 3) {
5957 // string collection_name = 1;
5958 case 1:
5959 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
5960 auto str = _internal_mutable_collection_name();
5961 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
5962 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.WriteRequest.collection_name"));
5963 CHK_(ptr);
5964 } else goto handle_unusual;
5965 continue;
5966 // .proxima.be.proto.WriteRequest.RowMeta row_meta = 2;
5967 case 2:
5968 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
5969 ptr = ctx->ParseMessage(_internal_mutable_row_meta(), ptr);
5970 CHK_(ptr);
5971 } else goto handle_unusual;
5972 continue;
5973 // repeated .proxima.be.proto.WriteRequest.Row rows = 3;
5974 case 3:
5975 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
5976 ptr -= 1;
5977 do {
5978 ptr += 1;
5979 ptr = ctx->ParseMessage(_internal_add_rows(), ptr);
5980 CHK_(ptr);
5981 if (!ctx->DataAvailable(ptr)) break;
5982 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
5983 } else goto handle_unusual;
5984 continue;
5985 // string request_id = 4;
5986 case 4:
5987 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
5988 auto str = _internal_mutable_request_id();
5989 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
5990 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.WriteRequest.request_id"));
5991 CHK_(ptr);
5992 } else goto handle_unusual;
5993 continue;
5994 // uint64 magic_number = 5;
5995 case 5:
5996 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
5997 magic_number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
5998 CHK_(ptr);
5999 } else goto handle_unusual;
6000 continue;
6001 default: {
6002 handle_unusual:
6003 if ((tag & 7) == 4 || tag == 0) {
6004 ctx->SetLastTag(tag);
6005 goto success;
6006 }
6007 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
6008 CHK_(ptr != nullptr);
6009 continue;
6010 }
6011 } // switch
6012 } // while
6013success:
6014 return ptr;
6015failure:
6016 ptr = nullptr;
6017 goto success;
6018#undef CHK_
6019}
6020
6021::PROTOBUF_NAMESPACE_ID::uint8* WriteRequest::_InternalSerialize(
6022 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6023 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.WriteRequest)
6024 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6025 (void) cached_has_bits;
6026
6027 // string collection_name = 1;
6028 if (this->collection_name().size() > 0) {
6029 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
6030 this->_internal_collection_name().data(), static_cast<int>(this->_internal_collection_name().length()),
6031 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
6032 "proxima.be.proto.WriteRequest.collection_name");
6033 target = stream->WriteStringMaybeAliased(
6034 1, this->_internal_collection_name(), target);
6035 }
6036
6037 // .proxima.be.proto.WriteRequest.RowMeta row_meta = 2;
6038 if (this->has_row_meta()) {
6039 target = stream->EnsureSpace(target);
6040 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6041 InternalWriteMessage(
6042 2, _Internal::row_meta(this), target, stream);
6043 }
6044
6045 // repeated .proxima.be.proto.WriteRequest.Row rows = 3;
6046 for (unsigned int i = 0,
6047 n = static_cast<unsigned int>(this->_internal_rows_size()); i < n; i++) {
6048 target = stream->EnsureSpace(target);
6049 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6050 InternalWriteMessage(3, this->_internal_rows(i), target, stream);
6051 }
6052
6053 // string request_id = 4;
6054 if (this->request_id().size() > 0) {
6055 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
6056 this->_internal_request_id().data(), static_cast<int>(this->_internal_request_id().length()),
6057 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
6058 "proxima.be.proto.WriteRequest.request_id");
6059 target = stream->WriteStringMaybeAliased(
6060 4, this->_internal_request_id(), target);
6061 }
6062
6063 // uint64 magic_number = 5;
6064 if (this->magic_number() != 0) {
6065 target = stream->EnsureSpace(target);
6066 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(5, this->_internal_magic_number(), target);
6067 }
6068
6069 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6070 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
6071 _internal_metadata_.unknown_fields(), target, stream);
6072 }
6073 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.WriteRequest)
6074 return target;
6075}
6076
6077size_t WriteRequest::ByteSizeLong() const {
6078// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.WriteRequest)
6079 size_t total_size = 0;
6080
6081 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6082 // Prevent compiler warnings about cached_has_bits being unused
6083 (void) cached_has_bits;
6084
6085 // repeated .proxima.be.proto.WriteRequest.Row rows = 3;
6086 total_size += 1UL * this->_internal_rows_size();
6087 for (const auto& msg : this->rows_) {
6088 total_size +=
6089 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
6090 }
6091
6092 // string collection_name = 1;
6093 if (this->collection_name().size() > 0) {
6094 total_size += 1 +
6095 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6096 this->_internal_collection_name());
6097 }
6098
6099 // string request_id = 4;
6100 if (this->request_id().size() > 0) {
6101 total_size += 1 +
6102 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6103 this->_internal_request_id());
6104 }
6105
6106 // .proxima.be.proto.WriteRequest.RowMeta row_meta = 2;
6107 if (this->has_row_meta()) {
6108 total_size += 1 +
6109 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6110 *row_meta_);
6111 }
6112
6113 // uint64 magic_number = 5;
6114 if (this->magic_number() != 0) {
6115 total_size += 1 +
6116 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
6117 this->_internal_magic_number());
6118 }
6119
6120 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6121 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
6122 _internal_metadata_, total_size, &_cached_size_);
6123 }
6124 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
6125 SetCachedSize(cached_size);
6126 return total_size;
6127}
6128
6129void WriteRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6130// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.WriteRequest)
6131 GOOGLE_DCHECK_NE(&from, this);
6132 const WriteRequest* source =
6133 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<WriteRequest>(
6134 &from);
6135 if (source == nullptr) {
6136 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.WriteRequest)
6137 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
6138 } else {
6139 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.WriteRequest)
6140 MergeFrom(*source);
6141 }
6142}
6143
6144void WriteRequest::MergeFrom(const WriteRequest& from) {
6145// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.WriteRequest)
6146 GOOGLE_DCHECK_NE(&from, this);
6147 _internal_metadata_.MergeFrom(from._internal_metadata_);
6148 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6149 (void) cached_has_bits;
6150
6151 rows_.MergeFrom(from.rows_);
6152 if (from.collection_name().size() > 0) {
6153
6154 collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_);
6155 }
6156 if (from.request_id().size() > 0) {
6157
6158 request_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.request_id_);
6159 }
6160 if (from.has_row_meta()) {
6161 _internal_mutable_row_meta()->::proxima::be::proto::WriteRequest_RowMeta::MergeFrom(from._internal_row_meta());
6162 }
6163 if (from.magic_number() != 0) {
6164 _internal_set_magic_number(from._internal_magic_number());
6165 }
6166}
6167
6168void WriteRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6169// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.WriteRequest)
6170 if (&from == this) return;
6171 Clear();
6172 MergeFrom(from);
6173}
6174
6175void WriteRequest::CopyFrom(const WriteRequest& from) {
6176// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.WriteRequest)
6177 if (&from == this) return;
6178 Clear();
6179 MergeFrom(from);
6180}
6181
6182bool WriteRequest::IsInitialized() const {
6183 return true;
6184}
6185
6186void WriteRequest::InternalSwap(WriteRequest* other) {
6187 using std::swap;
6188 _internal_metadata_.Swap(&other->_internal_metadata_);
6189 rows_.InternalSwap(&other->rows_);
6190 collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
6191 GetArenaNoVirtual());
6192 request_id_.Swap(&other->request_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
6193 GetArenaNoVirtual());
6194 swap(row_meta_, other->row_meta_);
6195 swap(magic_number_, other->magic_number_);
6196}
6197
6198::PROTOBUF_NAMESPACE_ID::Metadata WriteRequest::GetMetadata() const {
6199 return GetMetadataStatic();
6200}
6201
6202
6203// ===================================================================
6204
6205void Document::InitAsDefaultInstance() {
6206}
6207class Document::_Internal {
6208 public:
6209};
6210
6211void Document::clear_forward_column_values() {
6212 forward_column_values_.Clear();
6213}
6214Document::Document()
6215 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
6216 SharedCtor();
6217 // @@protoc_insertion_point(constructor:proxima.be.proto.Document)
6218}
6219Document::Document(const Document& from)
6220 : ::PROTOBUF_NAMESPACE_ID::Message(),
6221 _internal_metadata_(nullptr),
6222 forward_column_values_(from.forward_column_values_) {
6223 _internal_metadata_.MergeFrom(from._internal_metadata_);
6224 ::memcpy(&primary_key_, &from.primary_key_,
6225 static_cast<size_t>(reinterpret_cast<char*>(&score_) -
6226 reinterpret_cast<char*>(&primary_key_)) + sizeof(score_));
6227 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.Document)
6228}
6229
6230void Document::SharedCtor() {
6231 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Document_proto_2fproxima_5fbe_2eproto.base);
6232 ::memset(&primary_key_, 0, static_cast<size_t>(
6233 reinterpret_cast<char*>(&score_) -
6234 reinterpret_cast<char*>(&primary_key_)) + sizeof(score_));
6235}
6236
6237Document::~Document() {
6238 // @@protoc_insertion_point(destructor:proxima.be.proto.Document)
6239 SharedDtor();
6240}
6241
6242void Document::SharedDtor() {
6243}
6244
6245void Document::SetCachedSize(int size) const {
6246 _cached_size_.Set(size);
6247}
6248const Document& Document::default_instance() {
6249 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Document_proto_2fproxima_5fbe_2eproto.base);
6250 return *internal_default_instance();
6251}
6252
6253
6254void Document::Clear() {
6255// @@protoc_insertion_point(message_clear_start:proxima.be.proto.Document)
6256 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6257 // Prevent compiler warnings about cached_has_bits being unused
6258 (void) cached_has_bits;
6259
6260 forward_column_values_.Clear();
6261 ::memset(&primary_key_, 0, static_cast<size_t>(
6262 reinterpret_cast<char*>(&score_) -
6263 reinterpret_cast<char*>(&primary_key_)) + sizeof(score_));
6264 _internal_metadata_.Clear();
6265}
6266
6267const char* Document::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
6268#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6269 while (!ctx->Done(&ptr)) {
6270 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
6271 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
6272 CHK_(ptr);
6273 switch (tag >> 3) {
6274 // uint64 primary_key = 1;
6275 case 1:
6276 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
6277 primary_key_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
6278 CHK_(ptr);
6279 } else goto handle_unusual;
6280 continue;
6281 // float score = 2;
6282 case 2:
6283 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
6284 score_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
6285 ptr += sizeof(float);
6286 } else goto handle_unusual;
6287 continue;
6288 // repeated .proxima.be.proto.GenericKeyValue forward_column_values = 3;
6289 case 3:
6290 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
6291 ptr -= 1;
6292 do {
6293 ptr += 1;
6294 ptr = ctx->ParseMessage(_internal_add_forward_column_values(), ptr);
6295 CHK_(ptr);
6296 if (!ctx->DataAvailable(ptr)) break;
6297 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
6298 } else goto handle_unusual;
6299 continue;
6300 default: {
6301 handle_unusual:
6302 if ((tag & 7) == 4 || tag == 0) {
6303 ctx->SetLastTag(tag);
6304 goto success;
6305 }
6306 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
6307 CHK_(ptr != nullptr);
6308 continue;
6309 }
6310 } // switch
6311 } // while
6312success:
6313 return ptr;
6314failure:
6315 ptr = nullptr;
6316 goto success;
6317#undef CHK_
6318}
6319
6320::PROTOBUF_NAMESPACE_ID::uint8* Document::_InternalSerialize(
6321 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6322 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.Document)
6323 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6324 (void) cached_has_bits;
6325
6326 // uint64 primary_key = 1;
6327 if (this->primary_key() != 0) {
6328 target = stream->EnsureSpace(target);
6329 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_primary_key(), target);
6330 }
6331
6332 // float score = 2;
6333 if (!(this->score() <= 0 && this->score() >= 0)) {
6334 target = stream->EnsureSpace(target);
6335 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_score(), target);
6336 }
6337
6338 // repeated .proxima.be.proto.GenericKeyValue forward_column_values = 3;
6339 for (unsigned int i = 0,
6340 n = static_cast<unsigned int>(this->_internal_forward_column_values_size()); i < n; i++) {
6341 target = stream->EnsureSpace(target);
6342 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6343 InternalWriteMessage(3, this->_internal_forward_column_values(i), target, stream);
6344 }
6345
6346 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6347 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
6348 _internal_metadata_.unknown_fields(), target, stream);
6349 }
6350 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.Document)
6351 return target;
6352}
6353
6354size_t Document::ByteSizeLong() const {
6355// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.Document)
6356 size_t total_size = 0;
6357
6358 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6359 // Prevent compiler warnings about cached_has_bits being unused
6360 (void) cached_has_bits;
6361
6362 // repeated .proxima.be.proto.GenericKeyValue forward_column_values = 3;
6363 total_size += 1UL * this->_internal_forward_column_values_size();
6364 for (const auto& msg : this->forward_column_values_) {
6365 total_size +=
6366 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
6367 }
6368
6369 // uint64 primary_key = 1;
6370 if (this->primary_key() != 0) {
6371 total_size += 1 +
6372 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
6373 this->_internal_primary_key());
6374 }
6375
6376 // float score = 2;
6377 if (!(this->score() <= 0 && this->score() >= 0)) {
6378 total_size += 1 + 4;
6379 }
6380
6381 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6382 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
6383 _internal_metadata_, total_size, &_cached_size_);
6384 }
6385 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
6386 SetCachedSize(cached_size);
6387 return total_size;
6388}
6389
6390void Document::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6391// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.Document)
6392 GOOGLE_DCHECK_NE(&from, this);
6393 const Document* source =
6394 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Document>(
6395 &from);
6396 if (source == nullptr) {
6397 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.Document)
6398 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
6399 } else {
6400 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.Document)
6401 MergeFrom(*source);
6402 }
6403}
6404
6405void Document::MergeFrom(const Document& from) {
6406// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.Document)
6407 GOOGLE_DCHECK_NE(&from, this);
6408 _internal_metadata_.MergeFrom(from._internal_metadata_);
6409 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6410 (void) cached_has_bits;
6411
6412 forward_column_values_.MergeFrom(from.forward_column_values_);
6413 if (from.primary_key() != 0) {
6414 _internal_set_primary_key(from._internal_primary_key());
6415 }
6416 if (!(from.score() <= 0 && from.score() >= 0)) {
6417 _internal_set_score(from._internal_score());
6418 }
6419}
6420
6421void Document::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6422// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.Document)
6423 if (&from == this) return;
6424 Clear();
6425 MergeFrom(from);
6426}
6427
6428void Document::CopyFrom(const Document& from) {
6429// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.Document)
6430 if (&from == this) return;
6431 Clear();
6432 MergeFrom(from);
6433}
6434
6435bool Document::IsInitialized() const {
6436 return true;
6437}
6438
6439void Document::InternalSwap(Document* other) {
6440 using std::swap;
6441 _internal_metadata_.Swap(&other->_internal_metadata_);
6442 forward_column_values_.InternalSwap(&other->forward_column_values_);
6443 swap(primary_key_, other->primary_key_);
6444 swap(score_, other->score_);
6445}
6446
6447::PROTOBUF_NAMESPACE_ID::Metadata Document::GetMetadata() const {
6448 return GetMetadataStatic();
6449}
6450
6451
6452// ===================================================================
6453
6454void QueryRequest_KnnQueryParam::InitAsDefaultInstance() {
6455 ::proxima::be::proto::_QueryRequest_KnnQueryParam_default_instance_.features_.UnsafeSetDefault(
6456 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6457 ::proxima::be::proto::_QueryRequest_KnnQueryParam_default_instance_.matrix_.UnsafeSetDefault(
6458 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6459}
6460class QueryRequest_KnnQueryParam::_Internal {
6461 public:
6462};
6463
6464void QueryRequest_KnnQueryParam::clear_extra_params() {
6465 extra_params_.Clear();
6466}
6467QueryRequest_KnnQueryParam::QueryRequest_KnnQueryParam()
6468 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
6469 SharedCtor();
6470 // @@protoc_insertion_point(constructor:proxima.be.proto.QueryRequest.KnnQueryParam)
6471}
6472QueryRequest_KnnQueryParam::QueryRequest_KnnQueryParam(const QueryRequest_KnnQueryParam& from)
6473 : ::PROTOBUF_NAMESPACE_ID::Message(),
6474 _internal_metadata_(nullptr),
6475 extra_params_(from.extra_params_) {
6476 _internal_metadata_.MergeFrom(from._internal_metadata_);
6477 column_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6478 if (!from._internal_column_name().empty()) {
6479 column_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.column_name_);
6480 }
6481 ::memcpy(&topk_, &from.topk_,
6482 static_cast<size_t>(reinterpret_cast<char*>(&is_linear_) -
6483 reinterpret_cast<char*>(&topk_)) + sizeof(is_linear_));
6484 clear_has_features_value();
6485 switch (from.features_value_case()) {
6486 case kFeatures: {
6487 _internal_set_features(from._internal_features());
6488 break;
6489 }
6490 case kMatrix: {
6491 _internal_set_matrix(from._internal_matrix());
6492 break;
6493 }
6494 case FEATURES_VALUE_NOT_SET: {
6495 break;
6496 }
6497 }
6498 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.QueryRequest.KnnQueryParam)
6499}
6500
6501void QueryRequest_KnnQueryParam::SharedCtor() {
6502 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_QueryRequest_KnnQueryParam_proto_2fproxima_5fbe_2eproto.base);
6503 column_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6504 ::memset(&topk_, 0, static_cast<size_t>(
6505 reinterpret_cast<char*>(&is_linear_) -
6506 reinterpret_cast<char*>(&topk_)) + sizeof(is_linear_));
6507 clear_has_features_value();
6508}
6509
6510QueryRequest_KnnQueryParam::~QueryRequest_KnnQueryParam() {
6511 // @@protoc_insertion_point(destructor:proxima.be.proto.QueryRequest.KnnQueryParam)
6512 SharedDtor();
6513}
6514
6515void QueryRequest_KnnQueryParam::SharedDtor() {
6516 column_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6517 if (has_features_value()) {
6518 clear_features_value();
6519 }
6520}
6521
6522void QueryRequest_KnnQueryParam::SetCachedSize(int size) const {
6523 _cached_size_.Set(size);
6524}
6525const QueryRequest_KnnQueryParam& QueryRequest_KnnQueryParam::default_instance() {
6526 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_QueryRequest_KnnQueryParam_proto_2fproxima_5fbe_2eproto.base);
6527 return *internal_default_instance();
6528}
6529
6530
6531void QueryRequest_KnnQueryParam::clear_features_value() {
6532// @@protoc_insertion_point(one_of_clear_start:proxima.be.proto.QueryRequest.KnnQueryParam)
6533 switch (features_value_case()) {
6534 case kFeatures: {
6535 features_value_.features_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6536 break;
6537 }
6538 case kMatrix: {
6539 features_value_.matrix_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6540 break;
6541 }
6542 case FEATURES_VALUE_NOT_SET: {
6543 break;
6544 }
6545 }
6546 _oneof_case_[0] = FEATURES_VALUE_NOT_SET;
6547}
6548
6549
6550void QueryRequest_KnnQueryParam::Clear() {
6551// @@protoc_insertion_point(message_clear_start:proxima.be.proto.QueryRequest.KnnQueryParam)
6552 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6553 // Prevent compiler warnings about cached_has_bits being unused
6554 (void) cached_has_bits;
6555
6556 extra_params_.Clear();
6557 column_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6558 ::memset(&topk_, 0, static_cast<size_t>(
6559 reinterpret_cast<char*>(&is_linear_) -
6560 reinterpret_cast<char*>(&topk_)) + sizeof(is_linear_));
6561 clear_features_value();
6562 _internal_metadata_.Clear();
6563}
6564
6565const char* QueryRequest_KnnQueryParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
6566#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6567 while (!ctx->Done(&ptr)) {
6568 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
6569 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
6570 CHK_(ptr);
6571 switch (tag >> 3) {
6572 // string column_name = 1;
6573 case 1:
6574 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
6575 auto str = _internal_mutable_column_name();
6576 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
6577 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.QueryRequest.KnnQueryParam.column_name"));
6578 CHK_(ptr);
6579 } else goto handle_unusual;
6580 continue;
6581 // uint32 topk = 2;
6582 case 2:
6583 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
6584 topk_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
6585 CHK_(ptr);
6586 } else goto handle_unusual;
6587 continue;
6588 // bytes features = 3;
6589 case 3:
6590 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
6591 auto str = _internal_mutable_features();
6592 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
6593 CHK_(ptr);
6594 } else goto handle_unusual;
6595 continue;
6596 // string matrix = 4;
6597 case 4:
6598 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
6599 auto str = _internal_mutable_matrix();
6600 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
6601 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.QueryRequest.KnnQueryParam.matrix"));
6602 CHK_(ptr);
6603 } else goto handle_unusual;
6604 continue;
6605 // uint32 batch_count = 5;
6606 case 5:
6607 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
6608 batch_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
6609 CHK_(ptr);
6610 } else goto handle_unusual;
6611 continue;
6612 // uint32 dimension = 6;
6613 case 6:
6614 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
6615 dimension_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
6616 CHK_(ptr);
6617 } else goto handle_unusual;
6618 continue;
6619 // .proxima.be.proto.DataType data_type = 7;
6620 case 7:
6621 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
6622 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
6623 CHK_(ptr);
6624 _internal_set_data_type(static_cast<::proxima::be::proto::DataType>(val));
6625 } else goto handle_unusual;
6626 continue;
6627 // float radius = 8;
6628 case 8:
6629 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 69)) {
6630 radius_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
6631 ptr += sizeof(float);
6632 } else goto handle_unusual;
6633 continue;
6634 // bool is_linear = 9;
6635 case 9:
6636 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
6637 is_linear_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
6638 CHK_(ptr);
6639 } else goto handle_unusual;
6640 continue;
6641 // repeated .proxima.be.proto.KeyValuePair extra_params = 10;
6642 case 10:
6643 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
6644 ptr -= 1;
6645 do {
6646 ptr += 1;
6647 ptr = ctx->ParseMessage(_internal_add_extra_params(), ptr);
6648 CHK_(ptr);
6649 if (!ctx->DataAvailable(ptr)) break;
6650 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<82>(ptr));
6651 } else goto handle_unusual;
6652 continue;
6653 default: {
6654 handle_unusual:
6655 if ((tag & 7) == 4 || tag == 0) {
6656 ctx->SetLastTag(tag);
6657 goto success;
6658 }
6659 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
6660 CHK_(ptr != nullptr);
6661 continue;
6662 }
6663 } // switch
6664 } // while
6665success:
6666 return ptr;
6667failure:
6668 ptr = nullptr;
6669 goto success;
6670#undef CHK_
6671}
6672
6673::PROTOBUF_NAMESPACE_ID::uint8* QueryRequest_KnnQueryParam::_InternalSerialize(
6674 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6675 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.QueryRequest.KnnQueryParam)
6676 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6677 (void) cached_has_bits;
6678
6679 // string column_name = 1;
6680 if (this->column_name().size() > 0) {
6681 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
6682 this->_internal_column_name().data(), static_cast<int>(this->_internal_column_name().length()),
6683 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
6684 "proxima.be.proto.QueryRequest.KnnQueryParam.column_name");
6685 target = stream->WriteStringMaybeAliased(
6686 1, this->_internal_column_name(), target);
6687 }
6688
6689 // uint32 topk = 2;
6690 if (this->topk() != 0) {
6691 target = stream->EnsureSpace(target);
6692 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_topk(), target);
6693 }
6694
6695 // bytes features = 3;
6696 if (_internal_has_features()) {
6697 target = stream->WriteBytesMaybeAliased(
6698 3, this->_internal_features(), target);
6699 }
6700
6701 // string matrix = 4;
6702 if (_internal_has_matrix()) {
6703 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
6704 this->_internal_matrix().data(), static_cast<int>(this->_internal_matrix().length()),
6705 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
6706 "proxima.be.proto.QueryRequest.KnnQueryParam.matrix");
6707 target = stream->WriteStringMaybeAliased(
6708 4, this->_internal_matrix(), target);
6709 }
6710
6711 // uint32 batch_count = 5;
6712 if (this->batch_count() != 0) {
6713 target = stream->EnsureSpace(target);
6714 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_batch_count(), target);
6715 }
6716
6717 // uint32 dimension = 6;
6718 if (this->dimension() != 0) {
6719 target = stream->EnsureSpace(target);
6720 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_dimension(), target);
6721 }
6722
6723 // .proxima.be.proto.DataType data_type = 7;
6724 if (this->data_type() != 0) {
6725 target = stream->EnsureSpace(target);
6726 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
6727 7, this->_internal_data_type(), target);
6728 }
6729
6730 // float radius = 8;
6731 if (!(this->radius() <= 0 && this->radius() >= 0)) {
6732 target = stream->EnsureSpace(target);
6733 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(8, this->_internal_radius(), target);
6734 }
6735
6736 // bool is_linear = 9;
6737 if (this->is_linear() != 0) {
6738 target = stream->EnsureSpace(target);
6739 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->_internal_is_linear(), target);
6740 }
6741
6742 // repeated .proxima.be.proto.KeyValuePair extra_params = 10;
6743 for (unsigned int i = 0,
6744 n = static_cast<unsigned int>(this->_internal_extra_params_size()); i < n; i++) {
6745 target = stream->EnsureSpace(target);
6746 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6747 InternalWriteMessage(10, this->_internal_extra_params(i), target, stream);
6748 }
6749
6750 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6751 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
6752 _internal_metadata_.unknown_fields(), target, stream);
6753 }
6754 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.QueryRequest.KnnQueryParam)
6755 return target;
6756}
6757
6758size_t QueryRequest_KnnQueryParam::ByteSizeLong() const {
6759// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.QueryRequest.KnnQueryParam)
6760 size_t total_size = 0;
6761
6762 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6763 // Prevent compiler warnings about cached_has_bits being unused
6764 (void) cached_has_bits;
6765
6766 // repeated .proxima.be.proto.KeyValuePair extra_params = 10;
6767 total_size += 1UL * this->_internal_extra_params_size();
6768 for (const auto& msg : this->extra_params_) {
6769 total_size +=
6770 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
6771 }
6772
6773 // string column_name = 1;
6774 if (this->column_name().size() > 0) {
6775 total_size += 1 +
6776 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6777 this->_internal_column_name());
6778 }
6779
6780 // uint32 topk = 2;
6781 if (this->topk() != 0) {
6782 total_size += 1 +
6783 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
6784 this->_internal_topk());
6785 }
6786
6787 // uint32 batch_count = 5;
6788 if (this->batch_count() != 0) {
6789 total_size += 1 +
6790 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
6791 this->_internal_batch_count());
6792 }
6793
6794 // uint32 dimension = 6;
6795 if (this->dimension() != 0) {
6796 total_size += 1 +
6797 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
6798 this->_internal_dimension());
6799 }
6800
6801 // .proxima.be.proto.DataType data_type = 7;
6802 if (this->data_type() != 0) {
6803 total_size += 1 +
6804 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_data_type());
6805 }
6806
6807 // float radius = 8;
6808 if (!(this->radius() <= 0 && this->radius() >= 0)) {
6809 total_size += 1 + 4;
6810 }
6811
6812 // bool is_linear = 9;
6813 if (this->is_linear() != 0) {
6814 total_size += 1 + 1;
6815 }
6816
6817 switch (features_value_case()) {
6818 // bytes features = 3;
6819 case kFeatures: {
6820 total_size += 1 +
6821 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
6822 this->_internal_features());
6823 break;
6824 }
6825 // string matrix = 4;
6826 case kMatrix: {
6827 total_size += 1 +
6828 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6829 this->_internal_matrix());
6830 break;
6831 }
6832 case FEATURES_VALUE_NOT_SET: {
6833 break;
6834 }
6835 }
6836 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6837 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
6838 _internal_metadata_, total_size, &_cached_size_);
6839 }
6840 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
6841 SetCachedSize(cached_size);
6842 return total_size;
6843}
6844
6845void QueryRequest_KnnQueryParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6846// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.QueryRequest.KnnQueryParam)
6847 GOOGLE_DCHECK_NE(&from, this);
6848 const QueryRequest_KnnQueryParam* source =
6849 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<QueryRequest_KnnQueryParam>(
6850 &from);
6851 if (source == nullptr) {
6852 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.QueryRequest.KnnQueryParam)
6853 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
6854 } else {
6855 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.QueryRequest.KnnQueryParam)
6856 MergeFrom(*source);
6857 }
6858}
6859
6860void QueryRequest_KnnQueryParam::MergeFrom(const QueryRequest_KnnQueryParam& from) {
6861// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.QueryRequest.KnnQueryParam)
6862 GOOGLE_DCHECK_NE(&from, this);
6863 _internal_metadata_.MergeFrom(from._internal_metadata_);
6864 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
6865 (void) cached_has_bits;
6866
6867 extra_params_.MergeFrom(from.extra_params_);
6868 if (from.column_name().size() > 0) {
6869
6870 column_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.column_name_);
6871 }
6872 if (from.topk() != 0) {
6873 _internal_set_topk(from._internal_topk());
6874 }
6875 if (from.batch_count() != 0) {
6876 _internal_set_batch_count(from._internal_batch_count());
6877 }
6878 if (from.dimension() != 0) {
6879 _internal_set_dimension(from._internal_dimension());
6880 }
6881 if (from.data_type() != 0) {
6882 _internal_set_data_type(from._internal_data_type());
6883 }
6884 if (!(from.radius() <= 0 && from.radius() >= 0)) {
6885 _internal_set_radius(from._internal_radius());
6886 }
6887 if (from.is_linear() != 0) {
6888 _internal_set_is_linear(from._internal_is_linear());
6889 }
6890 switch (from.features_value_case()) {
6891 case kFeatures: {
6892 _internal_set_features(from._internal_features());
6893 break;
6894 }
6895 case kMatrix: {
6896 _internal_set_matrix(from._internal_matrix());
6897 break;
6898 }
6899 case FEATURES_VALUE_NOT_SET: {
6900 break;
6901 }
6902 }
6903}
6904
6905void QueryRequest_KnnQueryParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
6906// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.QueryRequest.KnnQueryParam)
6907 if (&from == this) return;
6908 Clear();
6909 MergeFrom(from);
6910}
6911
6912void QueryRequest_KnnQueryParam::CopyFrom(const QueryRequest_KnnQueryParam& from) {
6913// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.QueryRequest.KnnQueryParam)
6914 if (&from == this) return;
6915 Clear();
6916 MergeFrom(from);
6917}
6918
6919bool QueryRequest_KnnQueryParam::IsInitialized() const {
6920 return true;
6921}
6922
6923void QueryRequest_KnnQueryParam::InternalSwap(QueryRequest_KnnQueryParam* other) {
6924 using std::swap;
6925 _internal_metadata_.Swap(&other->_internal_metadata_);
6926 extra_params_.InternalSwap(&other->extra_params_);
6927 column_name_.Swap(&other->column_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
6928 GetArenaNoVirtual());
6929 swap(topk_, other->topk_);
6930 swap(batch_count_, other->batch_count_);
6931 swap(dimension_, other->dimension_);
6932 swap(data_type_, other->data_type_);
6933 swap(radius_, other->radius_);
6934 swap(is_linear_, other->is_linear_);
6935 swap(features_value_, other->features_value_);
6936 swap(_oneof_case_[0], other->_oneof_case_[0]);
6937}
6938
6939::PROTOBUF_NAMESPACE_ID::Metadata QueryRequest_KnnQueryParam::GetMetadata() const {
6940 return GetMetadataStatic();
6941}
6942
6943
6944// ===================================================================
6945
6946void QueryRequest::InitAsDefaultInstance() {
6947 ::proxima::be::proto::_QueryRequest_default_instance_.knn_param_ = const_cast< ::proxima::be::proto::QueryRequest_KnnQueryParam*>(
6948 ::proxima::be::proto::QueryRequest_KnnQueryParam::internal_default_instance());
6949}
6950class QueryRequest::_Internal {
6951 public:
6952 static const ::proxima::be::proto::QueryRequest_KnnQueryParam& knn_param(const QueryRequest* msg);
6953};
6954
6955const ::proxima::be::proto::QueryRequest_KnnQueryParam&
6956QueryRequest::_Internal::knn_param(const QueryRequest* msg) {
6957 return *msg->query_param_.knn_param_;
6958}
6959void QueryRequest::set_allocated_knn_param(::proxima::be::proto::QueryRequest_KnnQueryParam* knn_param) {
6960 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
6961 clear_query_param();
6962 if (knn_param) {
6963 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
6964 if (message_arena != submessage_arena) {
6965 knn_param = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
6966 message_arena, knn_param, submessage_arena);
6967 }
6968 set_has_knn_param();
6969 query_param_.knn_param_ = knn_param;
6970 }
6971 // @@protoc_insertion_point(field_set_allocated:proxima.be.proto.QueryRequest.knn_param)
6972}
6973QueryRequest::QueryRequest()
6974 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
6975 SharedCtor();
6976 // @@protoc_insertion_point(constructor:proxima.be.proto.QueryRequest)
6977}
6978QueryRequest::QueryRequest(const QueryRequest& from)
6979 : ::PROTOBUF_NAMESPACE_ID::Message(),
6980 _internal_metadata_(nullptr) {
6981 _internal_metadata_.MergeFrom(from._internal_metadata_);
6982 collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
6983 if (!from._internal_collection_name().empty()) {
6984 collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_);
6985 }
6986 ::memcpy(&query_type_, &from.query_type_,
6987 static_cast<size_t>(reinterpret_cast<char*>(&debug_mode_) -
6988 reinterpret_cast<char*>(&query_type_)) + sizeof(debug_mode_));
6989 clear_has_query_param();
6990 switch (from.query_param_case()) {
6991 case kKnnParam: {
6992 _internal_mutable_knn_param()->::proxima::be::proto::QueryRequest_KnnQueryParam::MergeFrom(from._internal_knn_param());
6993 break;
6994 }
6995 case QUERY_PARAM_NOT_SET: {
6996 break;
6997 }
6998 }
6999 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.QueryRequest)
7000}
7001
7002void QueryRequest::SharedCtor() {
7003 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_QueryRequest_proto_2fproxima_5fbe_2eproto.base);
7004 collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7005 ::memset(&query_type_, 0, static_cast<size_t>(
7006 reinterpret_cast<char*>(&debug_mode_) -
7007 reinterpret_cast<char*>(&query_type_)) + sizeof(debug_mode_));
7008 clear_has_query_param();
7009}
7010
7011QueryRequest::~QueryRequest() {
7012 // @@protoc_insertion_point(destructor:proxima.be.proto.QueryRequest)
7013 SharedDtor();
7014}
7015
7016void QueryRequest::SharedDtor() {
7017 collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7018 if (has_query_param()) {
7019 clear_query_param();
7020 }
7021}
7022
7023void QueryRequest::SetCachedSize(int size) const {
7024 _cached_size_.Set(size);
7025}
7026const QueryRequest& QueryRequest::default_instance() {
7027 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_QueryRequest_proto_2fproxima_5fbe_2eproto.base);
7028 return *internal_default_instance();
7029}
7030
7031
7032void QueryRequest::clear_query_param() {
7033// @@protoc_insertion_point(one_of_clear_start:proxima.be.proto.QueryRequest)
7034 switch (query_param_case()) {
7035 case kKnnParam: {
7036 delete query_param_.knn_param_;
7037 break;
7038 }
7039 case QUERY_PARAM_NOT_SET: {
7040 break;
7041 }
7042 }
7043 _oneof_case_[0] = QUERY_PARAM_NOT_SET;
7044}
7045
7046
7047void QueryRequest::Clear() {
7048// @@protoc_insertion_point(message_clear_start:proxima.be.proto.QueryRequest)
7049 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7050 // Prevent compiler warnings about cached_has_bits being unused
7051 (void) cached_has_bits;
7052
7053 collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7054 ::memset(&query_type_, 0, static_cast<size_t>(
7055 reinterpret_cast<char*>(&debug_mode_) -
7056 reinterpret_cast<char*>(&query_type_)) + sizeof(debug_mode_));
7057 clear_query_param();
7058 _internal_metadata_.Clear();
7059}
7060
7061const char* QueryRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
7062#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7063 while (!ctx->Done(&ptr)) {
7064 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7065 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
7066 CHK_(ptr);
7067 switch (tag >> 3) {
7068 // string collection_name = 1;
7069 case 1:
7070 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
7071 auto str = _internal_mutable_collection_name();
7072 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
7073 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.QueryRequest.collection_name"));
7074 CHK_(ptr);
7075 } else goto handle_unusual;
7076 continue;
7077 // .proxima.be.proto.QueryRequest.QueryType query_type = 2;
7078 case 2:
7079 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
7080 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
7081 CHK_(ptr);
7082 _internal_set_query_type(static_cast<::proxima::be::proto::QueryRequest_QueryType>(val));
7083 } else goto handle_unusual;
7084 continue;
7085 // bool debug_mode = 3;
7086 case 3:
7087 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
7088 debug_mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
7089 CHK_(ptr);
7090 } else goto handle_unusual;
7091 continue;
7092 // .proxima.be.proto.QueryRequest.KnnQueryParam knn_param = 4;
7093 case 4:
7094 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
7095 ptr = ctx->ParseMessage(_internal_mutable_knn_param(), ptr);
7096 CHK_(ptr);
7097 } else goto handle_unusual;
7098 continue;
7099 default: {
7100 handle_unusual:
7101 if ((tag & 7) == 4 || tag == 0) {
7102 ctx->SetLastTag(tag);
7103 goto success;
7104 }
7105 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
7106 CHK_(ptr != nullptr);
7107 continue;
7108 }
7109 } // switch
7110 } // while
7111success:
7112 return ptr;
7113failure:
7114 ptr = nullptr;
7115 goto success;
7116#undef CHK_
7117}
7118
7119::PROTOBUF_NAMESPACE_ID::uint8* QueryRequest::_InternalSerialize(
7120 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7121 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.QueryRequest)
7122 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7123 (void) cached_has_bits;
7124
7125 // string collection_name = 1;
7126 if (this->collection_name().size() > 0) {
7127 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
7128 this->_internal_collection_name().data(), static_cast<int>(this->_internal_collection_name().length()),
7129 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
7130 "proxima.be.proto.QueryRequest.collection_name");
7131 target = stream->WriteStringMaybeAliased(
7132 1, this->_internal_collection_name(), target);
7133 }
7134
7135 // .proxima.be.proto.QueryRequest.QueryType query_type = 2;
7136 if (this->query_type() != 0) {
7137 target = stream->EnsureSpace(target);
7138 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
7139 2, this->_internal_query_type(), target);
7140 }
7141
7142 // bool debug_mode = 3;
7143 if (this->debug_mode() != 0) {
7144 target = stream->EnsureSpace(target);
7145 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_debug_mode(), target);
7146 }
7147
7148 // .proxima.be.proto.QueryRequest.KnnQueryParam knn_param = 4;
7149 if (_internal_has_knn_param()) {
7150 target = stream->EnsureSpace(target);
7151 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7152 InternalWriteMessage(
7153 4, _Internal::knn_param(this), target, stream);
7154 }
7155
7156 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7157 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
7158 _internal_metadata_.unknown_fields(), target, stream);
7159 }
7160 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.QueryRequest)
7161 return target;
7162}
7163
7164size_t QueryRequest::ByteSizeLong() const {
7165// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.QueryRequest)
7166 size_t total_size = 0;
7167
7168 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7169 // Prevent compiler warnings about cached_has_bits being unused
7170 (void) cached_has_bits;
7171
7172 // string collection_name = 1;
7173 if (this->collection_name().size() > 0) {
7174 total_size += 1 +
7175 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
7176 this->_internal_collection_name());
7177 }
7178
7179 // .proxima.be.proto.QueryRequest.QueryType query_type = 2;
7180 if (this->query_type() != 0) {
7181 total_size += 1 +
7182 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_query_type());
7183 }
7184
7185 // bool debug_mode = 3;
7186 if (this->debug_mode() != 0) {
7187 total_size += 1 + 1;
7188 }
7189
7190 switch (query_param_case()) {
7191 // .proxima.be.proto.QueryRequest.KnnQueryParam knn_param = 4;
7192 case kKnnParam: {
7193 total_size += 1 +
7194 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7195 *query_param_.knn_param_);
7196 break;
7197 }
7198 case QUERY_PARAM_NOT_SET: {
7199 break;
7200 }
7201 }
7202 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7203 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
7204 _internal_metadata_, total_size, &_cached_size_);
7205 }
7206 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
7207 SetCachedSize(cached_size);
7208 return total_size;
7209}
7210
7211void QueryRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7212// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.QueryRequest)
7213 GOOGLE_DCHECK_NE(&from, this);
7214 const QueryRequest* source =
7215 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<QueryRequest>(
7216 &from);
7217 if (source == nullptr) {
7218 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.QueryRequest)
7219 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
7220 } else {
7221 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.QueryRequest)
7222 MergeFrom(*source);
7223 }
7224}
7225
7226void QueryRequest::MergeFrom(const QueryRequest& from) {
7227// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.QueryRequest)
7228 GOOGLE_DCHECK_NE(&from, this);
7229 _internal_metadata_.MergeFrom(from._internal_metadata_);
7230 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7231 (void) cached_has_bits;
7232
7233 if (from.collection_name().size() > 0) {
7234
7235 collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_);
7236 }
7237 if (from.query_type() != 0) {
7238 _internal_set_query_type(from._internal_query_type());
7239 }
7240 if (from.debug_mode() != 0) {
7241 _internal_set_debug_mode(from._internal_debug_mode());
7242 }
7243 switch (from.query_param_case()) {
7244 case kKnnParam: {
7245 _internal_mutable_knn_param()->::proxima::be::proto::QueryRequest_KnnQueryParam::MergeFrom(from._internal_knn_param());
7246 break;
7247 }
7248 case QUERY_PARAM_NOT_SET: {
7249 break;
7250 }
7251 }
7252}
7253
7254void QueryRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7255// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.QueryRequest)
7256 if (&from == this) return;
7257 Clear();
7258 MergeFrom(from);
7259}
7260
7261void QueryRequest::CopyFrom(const QueryRequest& from) {
7262// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.QueryRequest)
7263 if (&from == this) return;
7264 Clear();
7265 MergeFrom(from);
7266}
7267
7268bool QueryRequest::IsInitialized() const {
7269 return true;
7270}
7271
7272void QueryRequest::InternalSwap(QueryRequest* other) {
7273 using std::swap;
7274 _internal_metadata_.Swap(&other->_internal_metadata_);
7275 collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
7276 GetArenaNoVirtual());
7277 swap(query_type_, other->query_type_);
7278 swap(debug_mode_, other->debug_mode_);
7279 swap(query_param_, other->query_param_);
7280 swap(_oneof_case_[0], other->_oneof_case_[0]);
7281}
7282
7283::PROTOBUF_NAMESPACE_ID::Metadata QueryRequest::GetMetadata() const {
7284 return GetMetadataStatic();
7285}
7286
7287
7288// ===================================================================
7289
7290void QueryResponse_Result::InitAsDefaultInstance() {
7291}
7292class QueryResponse_Result::_Internal {
7293 public:
7294};
7295
7296QueryResponse_Result::QueryResponse_Result()
7297 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
7298 SharedCtor();
7299 // @@protoc_insertion_point(constructor:proxima.be.proto.QueryResponse.Result)
7300}
7301QueryResponse_Result::QueryResponse_Result(const QueryResponse_Result& from)
7302 : ::PROTOBUF_NAMESPACE_ID::Message(),
7303 _internal_metadata_(nullptr),
7304 documents_(from.documents_) {
7305 _internal_metadata_.MergeFrom(from._internal_metadata_);
7306 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.QueryResponse.Result)
7307}
7308
7309void QueryResponse_Result::SharedCtor() {
7310 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_QueryResponse_Result_proto_2fproxima_5fbe_2eproto.base);
7311}
7312
7313QueryResponse_Result::~QueryResponse_Result() {
7314 // @@protoc_insertion_point(destructor:proxima.be.proto.QueryResponse.Result)
7315 SharedDtor();
7316}
7317
7318void QueryResponse_Result::SharedDtor() {
7319}
7320
7321void QueryResponse_Result::SetCachedSize(int size) const {
7322 _cached_size_.Set(size);
7323}
7324const QueryResponse_Result& QueryResponse_Result::default_instance() {
7325 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_QueryResponse_Result_proto_2fproxima_5fbe_2eproto.base);
7326 return *internal_default_instance();
7327}
7328
7329
7330void QueryResponse_Result::Clear() {
7331// @@protoc_insertion_point(message_clear_start:proxima.be.proto.QueryResponse.Result)
7332 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7333 // Prevent compiler warnings about cached_has_bits being unused
7334 (void) cached_has_bits;
7335
7336 documents_.Clear();
7337 _internal_metadata_.Clear();
7338}
7339
7340const char* QueryResponse_Result::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
7341#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7342 while (!ctx->Done(&ptr)) {
7343 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7344 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
7345 CHK_(ptr);
7346 switch (tag >> 3) {
7347 // repeated .proxima.be.proto.Document documents = 1;
7348 case 1:
7349 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
7350 ptr -= 1;
7351 do {
7352 ptr += 1;
7353 ptr = ctx->ParseMessage(_internal_add_documents(), ptr);
7354 CHK_(ptr);
7355 if (!ctx->DataAvailable(ptr)) break;
7356 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
7357 } else goto handle_unusual;
7358 continue;
7359 default: {
7360 handle_unusual:
7361 if ((tag & 7) == 4 || tag == 0) {
7362 ctx->SetLastTag(tag);
7363 goto success;
7364 }
7365 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
7366 CHK_(ptr != nullptr);
7367 continue;
7368 }
7369 } // switch
7370 } // while
7371success:
7372 return ptr;
7373failure:
7374 ptr = nullptr;
7375 goto success;
7376#undef CHK_
7377}
7378
7379::PROTOBUF_NAMESPACE_ID::uint8* QueryResponse_Result::_InternalSerialize(
7380 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7381 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.QueryResponse.Result)
7382 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7383 (void) cached_has_bits;
7384
7385 // repeated .proxima.be.proto.Document documents = 1;
7386 for (unsigned int i = 0,
7387 n = static_cast<unsigned int>(this->_internal_documents_size()); i < n; i++) {
7388 target = stream->EnsureSpace(target);
7389 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7390 InternalWriteMessage(1, this->_internal_documents(i), target, stream);
7391 }
7392
7393 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7394 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
7395 _internal_metadata_.unknown_fields(), target, stream);
7396 }
7397 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.QueryResponse.Result)
7398 return target;
7399}
7400
7401size_t QueryResponse_Result::ByteSizeLong() const {
7402// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.QueryResponse.Result)
7403 size_t total_size = 0;
7404
7405 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7406 // Prevent compiler warnings about cached_has_bits being unused
7407 (void) cached_has_bits;
7408
7409 // repeated .proxima.be.proto.Document documents = 1;
7410 total_size += 1UL * this->_internal_documents_size();
7411 for (const auto& msg : this->documents_) {
7412 total_size +=
7413 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
7414 }
7415
7416 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7417 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
7418 _internal_metadata_, total_size, &_cached_size_);
7419 }
7420 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
7421 SetCachedSize(cached_size);
7422 return total_size;
7423}
7424
7425void QueryResponse_Result::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7426// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.QueryResponse.Result)
7427 GOOGLE_DCHECK_NE(&from, this);
7428 const QueryResponse_Result* source =
7429 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<QueryResponse_Result>(
7430 &from);
7431 if (source == nullptr) {
7432 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.QueryResponse.Result)
7433 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
7434 } else {
7435 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.QueryResponse.Result)
7436 MergeFrom(*source);
7437 }
7438}
7439
7440void QueryResponse_Result::MergeFrom(const QueryResponse_Result& from) {
7441// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.QueryResponse.Result)
7442 GOOGLE_DCHECK_NE(&from, this);
7443 _internal_metadata_.MergeFrom(from._internal_metadata_);
7444 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7445 (void) cached_has_bits;
7446
7447 documents_.MergeFrom(from.documents_);
7448}
7449
7450void QueryResponse_Result::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7451// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.QueryResponse.Result)
7452 if (&from == this) return;
7453 Clear();
7454 MergeFrom(from);
7455}
7456
7457void QueryResponse_Result::CopyFrom(const QueryResponse_Result& from) {
7458// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.QueryResponse.Result)
7459 if (&from == this) return;
7460 Clear();
7461 MergeFrom(from);
7462}
7463
7464bool QueryResponse_Result::IsInitialized() const {
7465 return true;
7466}
7467
7468void QueryResponse_Result::InternalSwap(QueryResponse_Result* other) {
7469 using std::swap;
7470 _internal_metadata_.Swap(&other->_internal_metadata_);
7471 documents_.InternalSwap(&other->documents_);
7472}
7473
7474::PROTOBUF_NAMESPACE_ID::Metadata QueryResponse_Result::GetMetadata() const {
7475 return GetMetadataStatic();
7476}
7477
7478
7479// ===================================================================
7480
7481void QueryResponse::InitAsDefaultInstance() {
7482 ::proxima::be::proto::_QueryResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::proxima::be::proto::Status*>(
7483 ::proxima::be::proto::Status::internal_default_instance());
7484}
7485class QueryResponse::_Internal {
7486 public:
7487 static const ::proxima::be::proto::Status& status(const QueryResponse* msg);
7488};
7489
7490const ::proxima::be::proto::Status&
7491QueryResponse::_Internal::status(const QueryResponse* msg) {
7492 return *msg->status_;
7493}
7494void QueryResponse::clear_status() {
7495 if (GetArenaNoVirtual() == nullptr && status_ != nullptr) {
7496 delete status_;
7497 }
7498 status_ = nullptr;
7499}
7500QueryResponse::QueryResponse()
7501 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
7502 SharedCtor();
7503 // @@protoc_insertion_point(constructor:proxima.be.proto.QueryResponse)
7504}
7505QueryResponse::QueryResponse(const QueryResponse& from)
7506 : ::PROTOBUF_NAMESPACE_ID::Message(),
7507 _internal_metadata_(nullptr),
7508 results_(from.results_) {
7509 _internal_metadata_.MergeFrom(from._internal_metadata_);
7510 debug_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7511 if (!from._internal_debug_info().empty()) {
7512 debug_info_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.debug_info_);
7513 }
7514 if (from._internal_has_status()) {
7515 status_ = new ::proxima::be::proto::Status(*from.status_);
7516 } else {
7517 status_ = nullptr;
7518 }
7519 latency_us_ = from.latency_us_;
7520 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.QueryResponse)
7521}
7522
7523void QueryResponse::SharedCtor() {
7524 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_QueryResponse_proto_2fproxima_5fbe_2eproto.base);
7525 debug_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7526 ::memset(&status_, 0, static_cast<size_t>(
7527 reinterpret_cast<char*>(&latency_us_) -
7528 reinterpret_cast<char*>(&status_)) + sizeof(latency_us_));
7529}
7530
7531QueryResponse::~QueryResponse() {
7532 // @@protoc_insertion_point(destructor:proxima.be.proto.QueryResponse)
7533 SharedDtor();
7534}
7535
7536void QueryResponse::SharedDtor() {
7537 debug_info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7538 if (this != internal_default_instance()) delete status_;
7539}
7540
7541void QueryResponse::SetCachedSize(int size) const {
7542 _cached_size_.Set(size);
7543}
7544const QueryResponse& QueryResponse::default_instance() {
7545 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_QueryResponse_proto_2fproxima_5fbe_2eproto.base);
7546 return *internal_default_instance();
7547}
7548
7549
7550void QueryResponse::Clear() {
7551// @@protoc_insertion_point(message_clear_start:proxima.be.proto.QueryResponse)
7552 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7553 // Prevent compiler warnings about cached_has_bits being unused
7554 (void) cached_has_bits;
7555
7556 results_.Clear();
7557 debug_info_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7558 if (GetArenaNoVirtual() == nullptr && status_ != nullptr) {
7559 delete status_;
7560 }
7561 status_ = nullptr;
7562 latency_us_ = PROTOBUF_ULONGLONG(0);
7563 _internal_metadata_.Clear();
7564}
7565
7566const char* QueryResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
7567#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7568 while (!ctx->Done(&ptr)) {
7569 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7570 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
7571 CHK_(ptr);
7572 switch (tag >> 3) {
7573 // .proxima.be.proto.Status status = 1;
7574 case 1:
7575 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
7576 ptr = ctx->ParseMessage(_internal_mutable_status(), ptr);
7577 CHK_(ptr);
7578 } else goto handle_unusual;
7579 continue;
7580 // string debug_info = 2;
7581 case 2:
7582 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
7583 auto str = _internal_mutable_debug_info();
7584 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
7585 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.QueryResponse.debug_info"));
7586 CHK_(ptr);
7587 } else goto handle_unusual;
7588 continue;
7589 // uint64 latency_us = 3;
7590 case 3:
7591 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
7592 latency_us_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
7593 CHK_(ptr);
7594 } else goto handle_unusual;
7595 continue;
7596 // repeated .proxima.be.proto.QueryResponse.Result results = 4;
7597 case 4:
7598 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
7599 ptr -= 1;
7600 do {
7601 ptr += 1;
7602 ptr = ctx->ParseMessage(_internal_add_results(), ptr);
7603 CHK_(ptr);
7604 if (!ctx->DataAvailable(ptr)) break;
7605 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
7606 } else goto handle_unusual;
7607 continue;
7608 default: {
7609 handle_unusual:
7610 if ((tag & 7) == 4 || tag == 0) {
7611 ctx->SetLastTag(tag);
7612 goto success;
7613 }
7614 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
7615 CHK_(ptr != nullptr);
7616 continue;
7617 }
7618 } // switch
7619 } // while
7620success:
7621 return ptr;
7622failure:
7623 ptr = nullptr;
7624 goto success;
7625#undef CHK_
7626}
7627
7628::PROTOBUF_NAMESPACE_ID::uint8* QueryResponse::_InternalSerialize(
7629 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7630 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.QueryResponse)
7631 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7632 (void) cached_has_bits;
7633
7634 // .proxima.be.proto.Status status = 1;
7635 if (this->has_status()) {
7636 target = stream->EnsureSpace(target);
7637 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7638 InternalWriteMessage(
7639 1, _Internal::status(this), target, stream);
7640 }
7641
7642 // string debug_info = 2;
7643 if (this->debug_info().size() > 0) {
7644 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
7645 this->_internal_debug_info().data(), static_cast<int>(this->_internal_debug_info().length()),
7646 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
7647 "proxima.be.proto.QueryResponse.debug_info");
7648 target = stream->WriteStringMaybeAliased(
7649 2, this->_internal_debug_info(), target);
7650 }
7651
7652 // uint64 latency_us = 3;
7653 if (this->latency_us() != 0) {
7654 target = stream->EnsureSpace(target);
7655 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_latency_us(), target);
7656 }
7657
7658 // repeated .proxima.be.proto.QueryResponse.Result results = 4;
7659 for (unsigned int i = 0,
7660 n = static_cast<unsigned int>(this->_internal_results_size()); i < n; i++) {
7661 target = stream->EnsureSpace(target);
7662 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7663 InternalWriteMessage(4, this->_internal_results(i), target, stream);
7664 }
7665
7666 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7667 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
7668 _internal_metadata_.unknown_fields(), target, stream);
7669 }
7670 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.QueryResponse)
7671 return target;
7672}
7673
7674size_t QueryResponse::ByteSizeLong() const {
7675// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.QueryResponse)
7676 size_t total_size = 0;
7677
7678 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7679 // Prevent compiler warnings about cached_has_bits being unused
7680 (void) cached_has_bits;
7681
7682 // repeated .proxima.be.proto.QueryResponse.Result results = 4;
7683 total_size += 1UL * this->_internal_results_size();
7684 for (const auto& msg : this->results_) {
7685 total_size +=
7686 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
7687 }
7688
7689 // string debug_info = 2;
7690 if (this->debug_info().size() > 0) {
7691 total_size += 1 +
7692 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
7693 this->_internal_debug_info());
7694 }
7695
7696 // .proxima.be.proto.Status status = 1;
7697 if (this->has_status()) {
7698 total_size += 1 +
7699 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7700 *status_);
7701 }
7702
7703 // uint64 latency_us = 3;
7704 if (this->latency_us() != 0) {
7705 total_size += 1 +
7706 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
7707 this->_internal_latency_us());
7708 }
7709
7710 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7711 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
7712 _internal_metadata_, total_size, &_cached_size_);
7713 }
7714 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
7715 SetCachedSize(cached_size);
7716 return total_size;
7717}
7718
7719void QueryResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7720// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.QueryResponse)
7721 GOOGLE_DCHECK_NE(&from, this);
7722 const QueryResponse* source =
7723 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<QueryResponse>(
7724 &from);
7725 if (source == nullptr) {
7726 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.QueryResponse)
7727 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
7728 } else {
7729 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.QueryResponse)
7730 MergeFrom(*source);
7731 }
7732}
7733
7734void QueryResponse::MergeFrom(const QueryResponse& from) {
7735// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.QueryResponse)
7736 GOOGLE_DCHECK_NE(&from, this);
7737 _internal_metadata_.MergeFrom(from._internal_metadata_);
7738 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7739 (void) cached_has_bits;
7740
7741 results_.MergeFrom(from.results_);
7742 if (from.debug_info().size() > 0) {
7743
7744 debug_info_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.debug_info_);
7745 }
7746 if (from.has_status()) {
7747 _internal_mutable_status()->::proxima::be::proto::Status::MergeFrom(from._internal_status());
7748 }
7749 if (from.latency_us() != 0) {
7750 _internal_set_latency_us(from._internal_latency_us());
7751 }
7752}
7753
7754void QueryResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7755// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.QueryResponse)
7756 if (&from == this) return;
7757 Clear();
7758 MergeFrom(from);
7759}
7760
7761void QueryResponse::CopyFrom(const QueryResponse& from) {
7762// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.QueryResponse)
7763 if (&from == this) return;
7764 Clear();
7765 MergeFrom(from);
7766}
7767
7768bool QueryResponse::IsInitialized() const {
7769 return true;
7770}
7771
7772void QueryResponse::InternalSwap(QueryResponse* other) {
7773 using std::swap;
7774 _internal_metadata_.Swap(&other->_internal_metadata_);
7775 results_.InternalSwap(&other->results_);
7776 debug_info_.Swap(&other->debug_info_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
7777 GetArenaNoVirtual());
7778 swap(status_, other->status_);
7779 swap(latency_us_, other->latency_us_);
7780}
7781
7782::PROTOBUF_NAMESPACE_ID::Metadata QueryResponse::GetMetadata() const {
7783 return GetMetadataStatic();
7784}
7785
7786
7787// ===================================================================
7788
7789void GetDocumentRequest::InitAsDefaultInstance() {
7790}
7791class GetDocumentRequest::_Internal {
7792 public:
7793};
7794
7795GetDocumentRequest::GetDocumentRequest()
7796 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
7797 SharedCtor();
7798 // @@protoc_insertion_point(constructor:proxima.be.proto.GetDocumentRequest)
7799}
7800GetDocumentRequest::GetDocumentRequest(const GetDocumentRequest& from)
7801 : ::PROTOBUF_NAMESPACE_ID::Message(),
7802 _internal_metadata_(nullptr) {
7803 _internal_metadata_.MergeFrom(from._internal_metadata_);
7804 collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7805 if (!from._internal_collection_name().empty()) {
7806 collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_);
7807 }
7808 ::memcpy(&primary_key_, &from.primary_key_,
7809 static_cast<size_t>(reinterpret_cast<char*>(&debug_mode_) -
7810 reinterpret_cast<char*>(&primary_key_)) + sizeof(debug_mode_));
7811 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.GetDocumentRequest)
7812}
7813
7814void GetDocumentRequest::SharedCtor() {
7815 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetDocumentRequest_proto_2fproxima_5fbe_2eproto.base);
7816 collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7817 ::memset(&primary_key_, 0, static_cast<size_t>(
7818 reinterpret_cast<char*>(&debug_mode_) -
7819 reinterpret_cast<char*>(&primary_key_)) + sizeof(debug_mode_));
7820}
7821
7822GetDocumentRequest::~GetDocumentRequest() {
7823 // @@protoc_insertion_point(destructor:proxima.be.proto.GetDocumentRequest)
7824 SharedDtor();
7825}
7826
7827void GetDocumentRequest::SharedDtor() {
7828 collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7829}
7830
7831void GetDocumentRequest::SetCachedSize(int size) const {
7832 _cached_size_.Set(size);
7833}
7834const GetDocumentRequest& GetDocumentRequest::default_instance() {
7835 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetDocumentRequest_proto_2fproxima_5fbe_2eproto.base);
7836 return *internal_default_instance();
7837}
7838
7839
7840void GetDocumentRequest::Clear() {
7841// @@protoc_insertion_point(message_clear_start:proxima.be.proto.GetDocumentRequest)
7842 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7843 // Prevent compiler warnings about cached_has_bits being unused
7844 (void) cached_has_bits;
7845
7846 collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
7847 ::memset(&primary_key_, 0, static_cast<size_t>(
7848 reinterpret_cast<char*>(&debug_mode_) -
7849 reinterpret_cast<char*>(&primary_key_)) + sizeof(debug_mode_));
7850 _internal_metadata_.Clear();
7851}
7852
7853const char* GetDocumentRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
7854#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7855 while (!ctx->Done(&ptr)) {
7856 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
7857 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
7858 CHK_(ptr);
7859 switch (tag >> 3) {
7860 // string collection_name = 1;
7861 case 1:
7862 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
7863 auto str = _internal_mutable_collection_name();
7864 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
7865 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.GetDocumentRequest.collection_name"));
7866 CHK_(ptr);
7867 } else goto handle_unusual;
7868 continue;
7869 // uint64 primary_key = 2;
7870 case 2:
7871 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
7872 primary_key_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
7873 CHK_(ptr);
7874 } else goto handle_unusual;
7875 continue;
7876 // bool debug_mode = 3;
7877 case 3:
7878 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
7879 debug_mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
7880 CHK_(ptr);
7881 } else goto handle_unusual;
7882 continue;
7883 default: {
7884 handle_unusual:
7885 if ((tag & 7) == 4 || tag == 0) {
7886 ctx->SetLastTag(tag);
7887 goto success;
7888 }
7889 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
7890 CHK_(ptr != nullptr);
7891 continue;
7892 }
7893 } // switch
7894 } // while
7895success:
7896 return ptr;
7897failure:
7898 ptr = nullptr;
7899 goto success;
7900#undef CHK_
7901}
7902
7903::PROTOBUF_NAMESPACE_ID::uint8* GetDocumentRequest::_InternalSerialize(
7904 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7905 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.GetDocumentRequest)
7906 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7907 (void) cached_has_bits;
7908
7909 // string collection_name = 1;
7910 if (this->collection_name().size() > 0) {
7911 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
7912 this->_internal_collection_name().data(), static_cast<int>(this->_internal_collection_name().length()),
7913 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
7914 "proxima.be.proto.GetDocumentRequest.collection_name");
7915 target = stream->WriteStringMaybeAliased(
7916 1, this->_internal_collection_name(), target);
7917 }
7918
7919 // uint64 primary_key = 2;
7920 if (this->primary_key() != 0) {
7921 target = stream->EnsureSpace(target);
7922 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_primary_key(), target);
7923 }
7924
7925 // bool debug_mode = 3;
7926 if (this->debug_mode() != 0) {
7927 target = stream->EnsureSpace(target);
7928 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_debug_mode(), target);
7929 }
7930
7931 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7932 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
7933 _internal_metadata_.unknown_fields(), target, stream);
7934 }
7935 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.GetDocumentRequest)
7936 return target;
7937}
7938
7939size_t GetDocumentRequest::ByteSizeLong() const {
7940// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.GetDocumentRequest)
7941 size_t total_size = 0;
7942
7943 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7944 // Prevent compiler warnings about cached_has_bits being unused
7945 (void) cached_has_bits;
7946
7947 // string collection_name = 1;
7948 if (this->collection_name().size() > 0) {
7949 total_size += 1 +
7950 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
7951 this->_internal_collection_name());
7952 }
7953
7954 // uint64 primary_key = 2;
7955 if (this->primary_key() != 0) {
7956 total_size += 1 +
7957 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
7958 this->_internal_primary_key());
7959 }
7960
7961 // bool debug_mode = 3;
7962 if (this->debug_mode() != 0) {
7963 total_size += 1 + 1;
7964 }
7965
7966 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7967 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
7968 _internal_metadata_, total_size, &_cached_size_);
7969 }
7970 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
7971 SetCachedSize(cached_size);
7972 return total_size;
7973}
7974
7975void GetDocumentRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
7976// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.GetDocumentRequest)
7977 GOOGLE_DCHECK_NE(&from, this);
7978 const GetDocumentRequest* source =
7979 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GetDocumentRequest>(
7980 &from);
7981 if (source == nullptr) {
7982 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.GetDocumentRequest)
7983 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
7984 } else {
7985 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.GetDocumentRequest)
7986 MergeFrom(*source);
7987 }
7988}
7989
7990void GetDocumentRequest::MergeFrom(const GetDocumentRequest& from) {
7991// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.GetDocumentRequest)
7992 GOOGLE_DCHECK_NE(&from, this);
7993 _internal_metadata_.MergeFrom(from._internal_metadata_);
7994 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
7995 (void) cached_has_bits;
7996
7997 if (from.collection_name().size() > 0) {
7998
7999 collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_);
8000 }
8001 if (from.primary_key() != 0) {
8002 _internal_set_primary_key(from._internal_primary_key());
8003 }
8004 if (from.debug_mode() != 0) {
8005 _internal_set_debug_mode(from._internal_debug_mode());
8006 }
8007}
8008
8009void GetDocumentRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8010// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.GetDocumentRequest)
8011 if (&from == this) return;
8012 Clear();
8013 MergeFrom(from);
8014}
8015
8016void GetDocumentRequest::CopyFrom(const GetDocumentRequest& from) {
8017// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.GetDocumentRequest)
8018 if (&from == this) return;
8019 Clear();
8020 MergeFrom(from);
8021}
8022
8023bool GetDocumentRequest::IsInitialized() const {
8024 return true;
8025}
8026
8027void GetDocumentRequest::InternalSwap(GetDocumentRequest* other) {
8028 using std::swap;
8029 _internal_metadata_.Swap(&other->_internal_metadata_);
8030 collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
8031 GetArenaNoVirtual());
8032 swap(primary_key_, other->primary_key_);
8033 swap(debug_mode_, other->debug_mode_);
8034}
8035
8036::PROTOBUF_NAMESPACE_ID::Metadata GetDocumentRequest::GetMetadata() const {
8037 return GetMetadataStatic();
8038}
8039
8040
8041// ===================================================================
8042
8043void GetDocumentResponse::InitAsDefaultInstance() {
8044 ::proxima::be::proto::_GetDocumentResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::proxima::be::proto::Status*>(
8045 ::proxima::be::proto::Status::internal_default_instance());
8046 ::proxima::be::proto::_GetDocumentResponse_default_instance_._instance.get_mutable()->document_ = const_cast< ::proxima::be::proto::Document*>(
8047 ::proxima::be::proto::Document::internal_default_instance());
8048}
8049class GetDocumentResponse::_Internal {
8050 public:
8051 static const ::proxima::be::proto::Status& status(const GetDocumentResponse* msg);
8052 static const ::proxima::be::proto::Document& document(const GetDocumentResponse* msg);
8053};
8054
8055const ::proxima::be::proto::Status&
8056GetDocumentResponse::_Internal::status(const GetDocumentResponse* msg) {
8057 return *msg->status_;
8058}
8059const ::proxima::be::proto::Document&
8060GetDocumentResponse::_Internal::document(const GetDocumentResponse* msg) {
8061 return *msg->document_;
8062}
8063void GetDocumentResponse::clear_status() {
8064 if (GetArenaNoVirtual() == nullptr && status_ != nullptr) {
8065 delete status_;
8066 }
8067 status_ = nullptr;
8068}
8069GetDocumentResponse::GetDocumentResponse()
8070 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
8071 SharedCtor();
8072 // @@protoc_insertion_point(constructor:proxima.be.proto.GetDocumentResponse)
8073}
8074GetDocumentResponse::GetDocumentResponse(const GetDocumentResponse& from)
8075 : ::PROTOBUF_NAMESPACE_ID::Message(),
8076 _internal_metadata_(nullptr) {
8077 _internal_metadata_.MergeFrom(from._internal_metadata_);
8078 debug_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8079 if (!from._internal_debug_info().empty()) {
8080 debug_info_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.debug_info_);
8081 }
8082 if (from._internal_has_status()) {
8083 status_ = new ::proxima::be::proto::Status(*from.status_);
8084 } else {
8085 status_ = nullptr;
8086 }
8087 if (from._internal_has_document()) {
8088 document_ = new ::proxima::be::proto::Document(*from.document_);
8089 } else {
8090 document_ = nullptr;
8091 }
8092 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.GetDocumentResponse)
8093}
8094
8095void GetDocumentResponse::SharedCtor() {
8096 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetDocumentResponse_proto_2fproxima_5fbe_2eproto.base);
8097 debug_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8098 ::memset(&status_, 0, static_cast<size_t>(
8099 reinterpret_cast<char*>(&document_) -
8100 reinterpret_cast<char*>(&status_)) + sizeof(document_));
8101}
8102
8103GetDocumentResponse::~GetDocumentResponse() {
8104 // @@protoc_insertion_point(destructor:proxima.be.proto.GetDocumentResponse)
8105 SharedDtor();
8106}
8107
8108void GetDocumentResponse::SharedDtor() {
8109 debug_info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8110 if (this != internal_default_instance()) delete status_;
8111 if (this != internal_default_instance()) delete document_;
8112}
8113
8114void GetDocumentResponse::SetCachedSize(int size) const {
8115 _cached_size_.Set(size);
8116}
8117const GetDocumentResponse& GetDocumentResponse::default_instance() {
8118 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetDocumentResponse_proto_2fproxima_5fbe_2eproto.base);
8119 return *internal_default_instance();
8120}
8121
8122
8123void GetDocumentResponse::Clear() {
8124// @@protoc_insertion_point(message_clear_start:proxima.be.proto.GetDocumentResponse)
8125 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8126 // Prevent compiler warnings about cached_has_bits being unused
8127 (void) cached_has_bits;
8128
8129 debug_info_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8130 if (GetArenaNoVirtual() == nullptr && status_ != nullptr) {
8131 delete status_;
8132 }
8133 status_ = nullptr;
8134 if (GetArenaNoVirtual() == nullptr && document_ != nullptr) {
8135 delete document_;
8136 }
8137 document_ = nullptr;
8138 _internal_metadata_.Clear();
8139}
8140
8141const char* GetDocumentResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
8142#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8143 while (!ctx->Done(&ptr)) {
8144 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
8145 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
8146 CHK_(ptr);
8147 switch (tag >> 3) {
8148 // .proxima.be.proto.Status status = 1;
8149 case 1:
8150 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
8151 ptr = ctx->ParseMessage(_internal_mutable_status(), ptr);
8152 CHK_(ptr);
8153 } else goto handle_unusual;
8154 continue;
8155 // string debug_info = 2;
8156 case 2:
8157 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
8158 auto str = _internal_mutable_debug_info();
8159 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
8160 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.GetDocumentResponse.debug_info"));
8161 CHK_(ptr);
8162 } else goto handle_unusual;
8163 continue;
8164 // .proxima.be.proto.Document document = 3;
8165 case 3:
8166 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
8167 ptr = ctx->ParseMessage(_internal_mutable_document(), ptr);
8168 CHK_(ptr);
8169 } else goto handle_unusual;
8170 continue;
8171 default: {
8172 handle_unusual:
8173 if ((tag & 7) == 4 || tag == 0) {
8174 ctx->SetLastTag(tag);
8175 goto success;
8176 }
8177 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
8178 CHK_(ptr != nullptr);
8179 continue;
8180 }
8181 } // switch
8182 } // while
8183success:
8184 return ptr;
8185failure:
8186 ptr = nullptr;
8187 goto success;
8188#undef CHK_
8189}
8190
8191::PROTOBUF_NAMESPACE_ID::uint8* GetDocumentResponse::_InternalSerialize(
8192 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8193 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.GetDocumentResponse)
8194 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8195 (void) cached_has_bits;
8196
8197 // .proxima.be.proto.Status status = 1;
8198 if (this->has_status()) {
8199 target = stream->EnsureSpace(target);
8200 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8201 InternalWriteMessage(
8202 1, _Internal::status(this), target, stream);
8203 }
8204
8205 // string debug_info = 2;
8206 if (this->debug_info().size() > 0) {
8207 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
8208 this->_internal_debug_info().data(), static_cast<int>(this->_internal_debug_info().length()),
8209 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
8210 "proxima.be.proto.GetDocumentResponse.debug_info");
8211 target = stream->WriteStringMaybeAliased(
8212 2, this->_internal_debug_info(), target);
8213 }
8214
8215 // .proxima.be.proto.Document document = 3;
8216 if (this->has_document()) {
8217 target = stream->EnsureSpace(target);
8218 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8219 InternalWriteMessage(
8220 3, _Internal::document(this), target, stream);
8221 }
8222
8223 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8224 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
8225 _internal_metadata_.unknown_fields(), target, stream);
8226 }
8227 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.GetDocumentResponse)
8228 return target;
8229}
8230
8231size_t GetDocumentResponse::ByteSizeLong() const {
8232// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.GetDocumentResponse)
8233 size_t total_size = 0;
8234
8235 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8236 // Prevent compiler warnings about cached_has_bits being unused
8237 (void) cached_has_bits;
8238
8239 // string debug_info = 2;
8240 if (this->debug_info().size() > 0) {
8241 total_size += 1 +
8242 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
8243 this->_internal_debug_info());
8244 }
8245
8246 // .proxima.be.proto.Status status = 1;
8247 if (this->has_status()) {
8248 total_size += 1 +
8249 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
8250 *status_);
8251 }
8252
8253 // .proxima.be.proto.Document document = 3;
8254 if (this->has_document()) {
8255 total_size += 1 +
8256 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
8257 *document_);
8258 }
8259
8260 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8261 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
8262 _internal_metadata_, total_size, &_cached_size_);
8263 }
8264 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
8265 SetCachedSize(cached_size);
8266 return total_size;
8267}
8268
8269void GetDocumentResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8270// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.GetDocumentResponse)
8271 GOOGLE_DCHECK_NE(&from, this);
8272 const GetDocumentResponse* source =
8273 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GetDocumentResponse>(
8274 &from);
8275 if (source == nullptr) {
8276 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.GetDocumentResponse)
8277 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
8278 } else {
8279 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.GetDocumentResponse)
8280 MergeFrom(*source);
8281 }
8282}
8283
8284void GetDocumentResponse::MergeFrom(const GetDocumentResponse& from) {
8285// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.GetDocumentResponse)
8286 GOOGLE_DCHECK_NE(&from, this);
8287 _internal_metadata_.MergeFrom(from._internal_metadata_);
8288 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8289 (void) cached_has_bits;
8290
8291 if (from.debug_info().size() > 0) {
8292
8293 debug_info_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.debug_info_);
8294 }
8295 if (from.has_status()) {
8296 _internal_mutable_status()->::proxima::be::proto::Status::MergeFrom(from._internal_status());
8297 }
8298 if (from.has_document()) {
8299 _internal_mutable_document()->::proxima::be::proto::Document::MergeFrom(from._internal_document());
8300 }
8301}
8302
8303void GetDocumentResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8304// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.GetDocumentResponse)
8305 if (&from == this) return;
8306 Clear();
8307 MergeFrom(from);
8308}
8309
8310void GetDocumentResponse::CopyFrom(const GetDocumentResponse& from) {
8311// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.GetDocumentResponse)
8312 if (&from == this) return;
8313 Clear();
8314 MergeFrom(from);
8315}
8316
8317bool GetDocumentResponse::IsInitialized() const {
8318 return true;
8319}
8320
8321void GetDocumentResponse::InternalSwap(GetDocumentResponse* other) {
8322 using std::swap;
8323 _internal_metadata_.Swap(&other->_internal_metadata_);
8324 debug_info_.Swap(&other->debug_info_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
8325 GetArenaNoVirtual());
8326 swap(status_, other->status_);
8327 swap(document_, other->document_);
8328}
8329
8330::PROTOBUF_NAMESPACE_ID::Metadata GetDocumentResponse::GetMetadata() const {
8331 return GetMetadataStatic();
8332}
8333
8334
8335// ===================================================================
8336
8337void GetVersionRequest::InitAsDefaultInstance() {
8338}
8339class GetVersionRequest::_Internal {
8340 public:
8341};
8342
8343GetVersionRequest::GetVersionRequest()
8344 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
8345 SharedCtor();
8346 // @@protoc_insertion_point(constructor:proxima.be.proto.GetVersionRequest)
8347}
8348GetVersionRequest::GetVersionRequest(const GetVersionRequest& from)
8349 : ::PROTOBUF_NAMESPACE_ID::Message(),
8350 _internal_metadata_(nullptr) {
8351 _internal_metadata_.MergeFrom(from._internal_metadata_);
8352 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.GetVersionRequest)
8353}
8354
8355void GetVersionRequest::SharedCtor() {
8356}
8357
8358GetVersionRequest::~GetVersionRequest() {
8359 // @@protoc_insertion_point(destructor:proxima.be.proto.GetVersionRequest)
8360 SharedDtor();
8361}
8362
8363void GetVersionRequest::SharedDtor() {
8364}
8365
8366void GetVersionRequest::SetCachedSize(int size) const {
8367 _cached_size_.Set(size);
8368}
8369const GetVersionRequest& GetVersionRequest::default_instance() {
8370 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetVersionRequest_proto_2fproxima_5fbe_2eproto.base);
8371 return *internal_default_instance();
8372}
8373
8374
8375void GetVersionRequest::Clear() {
8376// @@protoc_insertion_point(message_clear_start:proxima.be.proto.GetVersionRequest)
8377 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8378 // Prevent compiler warnings about cached_has_bits being unused
8379 (void) cached_has_bits;
8380
8381 _internal_metadata_.Clear();
8382}
8383
8384const char* GetVersionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
8385#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8386 while (!ctx->Done(&ptr)) {
8387 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
8388 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
8389 CHK_(ptr);
8390 if ((tag & 7) == 4 || tag == 0) {
8391 ctx->SetLastTag(tag);
8392 goto success;
8393 }
8394 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
8395 CHK_(ptr != nullptr);
8396 continue;
8397 } // while
8398success:
8399 return ptr;
8400failure:
8401 ptr = nullptr;
8402 goto success;
8403#undef CHK_
8404}
8405
8406::PROTOBUF_NAMESPACE_ID::uint8* GetVersionRequest::_InternalSerialize(
8407 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8408 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.GetVersionRequest)
8409 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8410 (void) cached_has_bits;
8411
8412 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8413 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
8414 _internal_metadata_.unknown_fields(), target, stream);
8415 }
8416 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.GetVersionRequest)
8417 return target;
8418}
8419
8420size_t GetVersionRequest::ByteSizeLong() const {
8421// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.GetVersionRequest)
8422 size_t total_size = 0;
8423
8424 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8425 // Prevent compiler warnings about cached_has_bits being unused
8426 (void) cached_has_bits;
8427
8428 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8429 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
8430 _internal_metadata_, total_size, &_cached_size_);
8431 }
8432 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
8433 SetCachedSize(cached_size);
8434 return total_size;
8435}
8436
8437void GetVersionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8438// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.GetVersionRequest)
8439 GOOGLE_DCHECK_NE(&from, this);
8440 const GetVersionRequest* source =
8441 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GetVersionRequest>(
8442 &from);
8443 if (source == nullptr) {
8444 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.GetVersionRequest)
8445 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
8446 } else {
8447 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.GetVersionRequest)
8448 MergeFrom(*source);
8449 }
8450}
8451
8452void GetVersionRequest::MergeFrom(const GetVersionRequest& from) {
8453// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.GetVersionRequest)
8454 GOOGLE_DCHECK_NE(&from, this);
8455 _internal_metadata_.MergeFrom(from._internal_metadata_);
8456 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8457 (void) cached_has_bits;
8458
8459}
8460
8461void GetVersionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8462// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.GetVersionRequest)
8463 if (&from == this) return;
8464 Clear();
8465 MergeFrom(from);
8466}
8467
8468void GetVersionRequest::CopyFrom(const GetVersionRequest& from) {
8469// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.GetVersionRequest)
8470 if (&from == this) return;
8471 Clear();
8472 MergeFrom(from);
8473}
8474
8475bool GetVersionRequest::IsInitialized() const {
8476 return true;
8477}
8478
8479void GetVersionRequest::InternalSwap(GetVersionRequest* other) {
8480 using std::swap;
8481 _internal_metadata_.Swap(&other->_internal_metadata_);
8482}
8483
8484::PROTOBUF_NAMESPACE_ID::Metadata GetVersionRequest::GetMetadata() const {
8485 return GetMetadataStatic();
8486}
8487
8488
8489// ===================================================================
8490
8491void GetVersionResponse::InitAsDefaultInstance() {
8492 ::proxima::be::proto::_GetVersionResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::proxima::be::proto::Status*>(
8493 ::proxima::be::proto::Status::internal_default_instance());
8494}
8495class GetVersionResponse::_Internal {
8496 public:
8497 static const ::proxima::be::proto::Status& status(const GetVersionResponse* msg);
8498};
8499
8500const ::proxima::be::proto::Status&
8501GetVersionResponse::_Internal::status(const GetVersionResponse* msg) {
8502 return *msg->status_;
8503}
8504void GetVersionResponse::clear_status() {
8505 if (GetArenaNoVirtual() == nullptr && status_ != nullptr) {
8506 delete status_;
8507 }
8508 status_ = nullptr;
8509}
8510GetVersionResponse::GetVersionResponse()
8511 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
8512 SharedCtor();
8513 // @@protoc_insertion_point(constructor:proxima.be.proto.GetVersionResponse)
8514}
8515GetVersionResponse::GetVersionResponse(const GetVersionResponse& from)
8516 : ::PROTOBUF_NAMESPACE_ID::Message(),
8517 _internal_metadata_(nullptr) {
8518 _internal_metadata_.MergeFrom(from._internal_metadata_);
8519 version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8520 if (!from._internal_version().empty()) {
8521 version_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.version_);
8522 }
8523 if (from._internal_has_status()) {
8524 status_ = new ::proxima::be::proto::Status(*from.status_);
8525 } else {
8526 status_ = nullptr;
8527 }
8528 // @@protoc_insertion_point(copy_constructor:proxima.be.proto.GetVersionResponse)
8529}
8530
8531void GetVersionResponse::SharedCtor() {
8532 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetVersionResponse_proto_2fproxima_5fbe_2eproto.base);
8533 version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8534 status_ = nullptr;
8535}
8536
8537GetVersionResponse::~GetVersionResponse() {
8538 // @@protoc_insertion_point(destructor:proxima.be.proto.GetVersionResponse)
8539 SharedDtor();
8540}
8541
8542void GetVersionResponse::SharedDtor() {
8543 version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8544 if (this != internal_default_instance()) delete status_;
8545}
8546
8547void GetVersionResponse::SetCachedSize(int size) const {
8548 _cached_size_.Set(size);
8549}
8550const GetVersionResponse& GetVersionResponse::default_instance() {
8551 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetVersionResponse_proto_2fproxima_5fbe_2eproto.base);
8552 return *internal_default_instance();
8553}
8554
8555
8556void GetVersionResponse::Clear() {
8557// @@protoc_insertion_point(message_clear_start:proxima.be.proto.GetVersionResponse)
8558 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8559 // Prevent compiler warnings about cached_has_bits being unused
8560 (void) cached_has_bits;
8561
8562 version_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
8563 if (GetArenaNoVirtual() == nullptr && status_ != nullptr) {
8564 delete status_;
8565 }
8566 status_ = nullptr;
8567 _internal_metadata_.Clear();
8568}
8569
8570const char* GetVersionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
8571#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8572 while (!ctx->Done(&ptr)) {
8573 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
8574 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
8575 CHK_(ptr);
8576 switch (tag >> 3) {
8577 // .proxima.be.proto.Status status = 1;
8578 case 1:
8579 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
8580 ptr = ctx->ParseMessage(_internal_mutable_status(), ptr);
8581 CHK_(ptr);
8582 } else goto handle_unusual;
8583 continue;
8584 // string version = 2;
8585 case 2:
8586 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
8587 auto str = _internal_mutable_version();
8588 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
8589 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proxima.be.proto.GetVersionResponse.version"));
8590 CHK_(ptr);
8591 } else goto handle_unusual;
8592 continue;
8593 default: {
8594 handle_unusual:
8595 if ((tag & 7) == 4 || tag == 0) {
8596 ctx->SetLastTag(tag);
8597 goto success;
8598 }
8599 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
8600 CHK_(ptr != nullptr);
8601 continue;
8602 }
8603 } // switch
8604 } // while
8605success:
8606 return ptr;
8607failure:
8608 ptr = nullptr;
8609 goto success;
8610#undef CHK_
8611}
8612
8613::PROTOBUF_NAMESPACE_ID::uint8* GetVersionResponse::_InternalSerialize(
8614 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8615 // @@protoc_insertion_point(serialize_to_array_start:proxima.be.proto.GetVersionResponse)
8616 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8617 (void) cached_has_bits;
8618
8619 // .proxima.be.proto.Status status = 1;
8620 if (this->has_status()) {
8621 target = stream->EnsureSpace(target);
8622 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8623 InternalWriteMessage(
8624 1, _Internal::status(this), target, stream);
8625 }
8626
8627 // string version = 2;
8628 if (this->version().size() > 0) {
8629 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
8630 this->_internal_version().data(), static_cast<int>(this->_internal_version().length()),
8631 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
8632 "proxima.be.proto.GetVersionResponse.version");
8633 target = stream->WriteStringMaybeAliased(
8634 2, this->_internal_version(), target);
8635 }
8636
8637 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8638 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
8639 _internal_metadata_.unknown_fields(), target, stream);
8640 }
8641 // @@protoc_insertion_point(serialize_to_array_end:proxima.be.proto.GetVersionResponse)
8642 return target;
8643}
8644
8645size_t GetVersionResponse::ByteSizeLong() const {
8646// @@protoc_insertion_point(message_byte_size_start:proxima.be.proto.GetVersionResponse)
8647 size_t total_size = 0;
8648
8649 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8650 // Prevent compiler warnings about cached_has_bits being unused
8651 (void) cached_has_bits;
8652
8653 // string version = 2;
8654 if (this->version().size() > 0) {
8655 total_size += 1 +
8656 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
8657 this->_internal_version());
8658 }
8659
8660 // .proxima.be.proto.Status status = 1;
8661 if (this->has_status()) {
8662 total_size += 1 +
8663 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
8664 *status_);
8665 }
8666
8667 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8668 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
8669 _internal_metadata_, total_size, &_cached_size_);
8670 }
8671 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
8672 SetCachedSize(cached_size);
8673 return total_size;
8674}
8675
8676void GetVersionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8677// @@protoc_insertion_point(generalized_merge_from_start:proxima.be.proto.GetVersionResponse)
8678 GOOGLE_DCHECK_NE(&from, this);
8679 const GetVersionResponse* source =
8680 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GetVersionResponse>(
8681 &from);
8682 if (source == nullptr) {
8683 // @@protoc_insertion_point(generalized_merge_from_cast_fail:proxima.be.proto.GetVersionResponse)
8684 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
8685 } else {
8686 // @@protoc_insertion_point(generalized_merge_from_cast_success:proxima.be.proto.GetVersionResponse)
8687 MergeFrom(*source);
8688 }
8689}
8690
8691void GetVersionResponse::MergeFrom(const GetVersionResponse& from) {
8692// @@protoc_insertion_point(class_specific_merge_from_start:proxima.be.proto.GetVersionResponse)
8693 GOOGLE_DCHECK_NE(&from, this);
8694 _internal_metadata_.MergeFrom(from._internal_metadata_);
8695 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
8696 (void) cached_has_bits;
8697
8698 if (from.version().size() > 0) {
8699
8700 version_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.version_);
8701 }
8702 if (from.has_status()) {
8703 _internal_mutable_status()->::proxima::be::proto::Status::MergeFrom(from._internal_status());
8704 }
8705}
8706
8707void GetVersionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
8708// @@protoc_insertion_point(generalized_copy_from_start:proxima.be.proto.GetVersionResponse)
8709 if (&from == this) return;
8710 Clear();
8711 MergeFrom(from);
8712}
8713
8714void GetVersionResponse::CopyFrom(const GetVersionResponse& from) {
8715// @@protoc_insertion_point(class_specific_copy_from_start:proxima.be.proto.GetVersionResponse)
8716 if (&from == this) return;
8717 Clear();
8718 MergeFrom(from);
8719}
8720
8721bool GetVersionResponse::IsInitialized() const {
8722 return true;
8723}
8724
8725void GetVersionResponse::InternalSwap(GetVersionResponse* other) {
8726 using std::swap;
8727 _internal_metadata_.Swap(&other->_internal_metadata_);
8728 version_.Swap(&other->version_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
8729 GetArenaNoVirtual());
8730 swap(status_, other->status_);
8731}
8732
8733::PROTOBUF_NAMESPACE_ID::Metadata GetVersionResponse::GetMetadata() const {
8734 return GetMetadataStatic();
8735}
8736
8737
8738// ===================================================================
8739
8740ProximaService::~ProximaService() {}
8741
8742const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* ProximaService::descriptor() {
8743 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_proto_2fproxima_5fbe_2eproto);
8744 return file_level_service_descriptors_proto_2fproxima_5fbe_2eproto[0];
8745}
8746
8747const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* ProximaService::GetDescriptor() {
8748 return descriptor();
8749}
8750
8751void ProximaService::create_collection(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
8752 const ::proxima::be::proto::CollectionConfig*,
8753 ::proxima::be::proto::Status*,
8754 ::google::protobuf::Closure* done) {
8755 controller->SetFailed("Method create_collection() not implemented.");
8756 done->Run();
8757}
8758
8759void ProximaService::drop_collection(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
8760 const ::proxima::be::proto::CollectionName*,
8761 ::proxima::be::proto::Status*,
8762 ::google::protobuf::Closure* done) {
8763 controller->SetFailed("Method drop_collection() not implemented.");
8764 done->Run();
8765}
8766
8767void ProximaService::describe_collection(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
8768 const ::proxima::be::proto::CollectionName*,
8769 ::proxima::be::proto::DescribeCollectionResponse*,
8770 ::google::protobuf::Closure* done) {
8771 controller->SetFailed("Method describe_collection() not implemented.");
8772 done->Run();
8773}
8774
8775void ProximaService::list_collections(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
8776 const ::proxima::be::proto::ListCondition*,
8777 ::proxima::be::proto::ListCollectionsResponse*,
8778 ::google::protobuf::Closure* done) {
8779 controller->SetFailed("Method list_collections() not implemented.");
8780 done->Run();
8781}
8782
8783void ProximaService::stats_collection(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
8784 const ::proxima::be::proto::CollectionName*,
8785 ::proxima::be::proto::StatsCollectionResponse*,
8786 ::google::protobuf::Closure* done) {
8787 controller->SetFailed("Method stats_collection() not implemented.");
8788 done->Run();
8789}
8790
8791void ProximaService::write(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
8792 const ::proxima::be::proto::WriteRequest*,
8793 ::proxima::be::proto::Status*,
8794 ::google::protobuf::Closure* done) {
8795 controller->SetFailed("Method write() not implemented.");
8796 done->Run();
8797}
8798
8799void ProximaService::query(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
8800 const ::proxima::be::proto::QueryRequest*,
8801 ::proxima::be::proto::QueryResponse*,
8802 ::google::protobuf::Closure* done) {
8803 controller->SetFailed("Method query() not implemented.");
8804 done->Run();
8805}
8806
8807void ProximaService::get_document_by_key(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
8808 const ::proxima::be::proto::GetDocumentRequest*,
8809 ::proxima::be::proto::GetDocumentResponse*,
8810 ::google::protobuf::Closure* done) {
8811 controller->SetFailed("Method get_document_by_key() not implemented.");
8812 done->Run();
8813}
8814
8815void ProximaService::get_version(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
8816 const ::proxima::be::proto::GetVersionRequest*,
8817 ::proxima::be::proto::GetVersionResponse*,
8818 ::google::protobuf::Closure* done) {
8819 controller->SetFailed("Method get_version() not implemented.");
8820 done->Run();
8821}
8822
8823void ProximaService::CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method,
8824 ::PROTOBUF_NAMESPACE_ID::RpcController* controller,
8825 const ::PROTOBUF_NAMESPACE_ID::Message* request,
8826 ::PROTOBUF_NAMESPACE_ID::Message* response,
8827 ::google::protobuf::Closure* done) {
8828 GOOGLE_DCHECK_EQ(method->service(), file_level_service_descriptors_proto_2fproxima_5fbe_2eproto[0]);
8829 switch(method->index()) {
8830 case 0:
8831 create_collection(controller,
8832 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::proxima::be::proto::CollectionConfig*>(
8833 request),
8834 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::proxima::be::proto::Status*>(
8835 response),
8836 done);
8837 break;
8838 case 1:
8839 drop_collection(controller,
8840 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::proxima::be::proto::CollectionName*>(
8841 request),
8842 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::proxima::be::proto::Status*>(
8843 response),
8844 done);
8845 break;
8846 case 2:
8847 describe_collection(controller,
8848 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::proxima::be::proto::CollectionName*>(
8849 request),
8850 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::proxima::be::proto::DescribeCollectionResponse*>(
8851 response),
8852 done);
8853 break;
8854 case 3:
8855 list_collections(controller,
8856 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::proxima::be::proto::ListCondition*>(
8857 request),
8858 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::proxima::be::proto::ListCollectionsResponse*>(
8859 response),
8860 done);
8861 break;
8862 case 4:
8863 stats_collection(controller,
8864 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::proxima::be::proto::CollectionName*>(
8865 request),
8866 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::proxima::be::proto::StatsCollectionResponse*>(
8867 response),
8868 done);
8869 break;
8870 case 5:
8871 write(controller,
8872 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::proxima::be::proto::WriteRequest*>(
8873 request),
8874 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::proxima::be::proto::Status*>(
8875 response),
8876 done);
8877 break;
8878 case 6:
8879 query(controller,
8880 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::proxima::be::proto::QueryRequest*>(
8881 request),
8882 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::proxima::be::proto::QueryResponse*>(
8883 response),
8884 done);
8885 break;
8886 case 7:
8887 get_document_by_key(controller,
8888 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::proxima::be::proto::GetDocumentRequest*>(
8889 request),
8890 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::proxima::be::proto::GetDocumentResponse*>(
8891 response),
8892 done);
8893 break;
8894 case 8:
8895 get_version(controller,
8896 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::proxima::be::proto::GetVersionRequest*>(
8897 request),
8898 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::proxima::be::proto::GetVersionResponse*>(
8899 response),
8900 done);
8901 break;
8902 default:
8903 GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
8904 break;
8905 }
8906}
8907
8908const ::PROTOBUF_NAMESPACE_ID::Message& ProximaService::GetRequestPrototype(
8909 const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const {
8910 GOOGLE_DCHECK_EQ(method->service(), descriptor());
8911 switch(method->index()) {
8912 case 0:
8913 return ::proxima::be::proto::CollectionConfig::default_instance();
8914 case 1:
8915 return ::proxima::be::proto::CollectionName::default_instance();
8916 case 2:
8917 return ::proxima::be::proto::CollectionName::default_instance();
8918 case 3:
8919 return ::proxima::be::proto::ListCondition::default_instance();
8920 case 4:
8921 return ::proxima::be::proto::CollectionName::default_instance();
8922 case 5:
8923 return ::proxima::be::proto::WriteRequest::default_instance();
8924 case 6:
8925 return ::proxima::be::proto::QueryRequest::default_instance();
8926 case 7:
8927 return ::proxima::be::proto::GetDocumentRequest::default_instance();
8928 case 8:
8929 return ::proxima::be::proto::GetVersionRequest::default_instance();
8930 default:
8931 GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
8932 return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory()
8933 ->GetPrototype(method->input_type());
8934 }
8935}
8936
8937const ::PROTOBUF_NAMESPACE_ID::Message& ProximaService::GetResponsePrototype(
8938 const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const {
8939 GOOGLE_DCHECK_EQ(method->service(), descriptor());
8940 switch(method->index()) {
8941 case 0:
8942 return ::proxima::be::proto::Status::default_instance();
8943 case 1:
8944 return ::proxima::be::proto::Status::default_instance();
8945 case 2:
8946 return ::proxima::be::proto::DescribeCollectionResponse::default_instance();
8947 case 3:
8948 return ::proxima::be::proto::ListCollectionsResponse::default_instance();
8949 case 4:
8950 return ::proxima::be::proto::StatsCollectionResponse::default_instance();
8951 case 5:
8952 return ::proxima::be::proto::Status::default_instance();
8953 case 6:
8954 return ::proxima::be::proto::QueryResponse::default_instance();
8955 case 7:
8956 return ::proxima::be::proto::GetDocumentResponse::default_instance();
8957 case 8:
8958 return ::proxima::be::proto::GetVersionResponse::default_instance();
8959 default:
8960 GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
8961 return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory()
8962 ->GetPrototype(method->output_type());
8963 }
8964}
8965
8966ProximaService_Stub::ProximaService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel)
8967 : channel_(channel), owns_channel_(false) {}
8968ProximaService_Stub::ProximaService_Stub(
8969 ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel,
8970 ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership)
8971 : channel_(channel),
8972 owns_channel_(ownership == ::PROTOBUF_NAMESPACE_ID::Service::STUB_OWNS_CHANNEL) {}
8973ProximaService_Stub::~ProximaService_Stub() {
8974 if (owns_channel_) delete channel_;
8975}
8976
8977void ProximaService_Stub::create_collection(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
8978 const ::proxima::be::proto::CollectionConfig* request,
8979 ::proxima::be::proto::Status* response,
8980 ::google::protobuf::Closure* done) {
8981 channel_->CallMethod(descriptor()->method(0),
8982 controller, request, response, done);
8983}
8984void ProximaService_Stub::drop_collection(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
8985 const ::proxima::be::proto::CollectionName* request,
8986 ::proxima::be::proto::Status* response,
8987 ::google::protobuf::Closure* done) {
8988 channel_->CallMethod(descriptor()->method(1),
8989 controller, request, response, done);
8990}
8991void ProximaService_Stub::describe_collection(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
8992 const ::proxima::be::proto::CollectionName* request,
8993 ::proxima::be::proto::DescribeCollectionResponse* response,
8994 ::google::protobuf::Closure* done) {
8995 channel_->CallMethod(descriptor()->method(2),
8996 controller, request, response, done);
8997}
8998void ProximaService_Stub::list_collections(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
8999 const ::proxima::be::proto::ListCondition* request,
9000 ::proxima::be::proto::ListCollectionsResponse* response,
9001 ::google::protobuf::Closure* done) {
9002 channel_->CallMethod(descriptor()->method(3),
9003 controller, request, response, done);
9004}
9005void ProximaService_Stub::stats_collection(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
9006 const ::proxima::be::proto::CollectionName* request,
9007 ::proxima::be::proto::StatsCollectionResponse* response,
9008 ::google::protobuf::Closure* done) {
9009 channel_->CallMethod(descriptor()->method(4),
9010 controller, request, response, done);
9011}
9012void ProximaService_Stub::write(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
9013 const ::proxima::be::proto::WriteRequest* request,
9014 ::proxima::be::proto::Status* response,
9015 ::google::protobuf::Closure* done) {
9016 channel_->CallMethod(descriptor()->method(5),
9017 controller, request, response, done);
9018}
9019void ProximaService_Stub::query(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
9020 const ::proxima::be::proto::QueryRequest* request,
9021 ::proxima::be::proto::QueryResponse* response,
9022 ::google::protobuf::Closure* done) {
9023 channel_->CallMethod(descriptor()->method(6),
9024 controller, request, response, done);
9025}
9026void ProximaService_Stub::get_document_by_key(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
9027 const ::proxima::be::proto::GetDocumentRequest* request,
9028 ::proxima::be::proto::GetDocumentResponse* response,
9029 ::google::protobuf::Closure* done) {
9030 channel_->CallMethod(descriptor()->method(7),
9031 controller, request, response, done);
9032}
9033void ProximaService_Stub::get_version(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
9034 const ::proxima::be::proto::GetVersionRequest* request,
9035 ::proxima::be::proto::GetVersionResponse* response,
9036 ::google::protobuf::Closure* done) {
9037 channel_->CallMethod(descriptor()->method(8),
9038 controller, request, response, done);
9039}
9040// ===================================================================
9041
9042HttpProximaService::~HttpProximaService() {}
9043
9044const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* HttpProximaService::descriptor() {
9045 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_proto_2fproxima_5fbe_2eproto);
9046 return file_level_service_descriptors_proto_2fproxima_5fbe_2eproto[1];
9047}
9048
9049const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* HttpProximaService::GetDescriptor() {
9050 return descriptor();
9051}
9052
9053void HttpProximaService::collection(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
9054 const ::proxima::be::proto::HttpRequest*,
9055 ::proxima::be::proto::HttpResponse*,
9056 ::google::protobuf::Closure* done) {
9057 controller->SetFailed("Method collection() not implemented.");
9058 done->Run();
9059}
9060
9061void HttpProximaService::stats_collection(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
9062 const ::proxima::be::proto::HttpRequest*,
9063 ::proxima::be::proto::HttpResponse*,
9064 ::google::protobuf::Closure* done) {
9065 controller->SetFailed("Method stats_collection() not implemented.");
9066 done->Run();
9067}
9068
9069void HttpProximaService::write(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
9070 const ::proxima::be::proto::HttpRequest*,
9071 ::proxima::be::proto::HttpResponse*,
9072 ::google::protobuf::Closure* done) {
9073 controller->SetFailed("Method write() not implemented.");
9074 done->Run();
9075}
9076
9077void HttpProximaService::query(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
9078 const ::proxima::be::proto::HttpRequest*,
9079 ::proxima::be::proto::HttpResponse*,
9080 ::google::protobuf::Closure* done) {
9081 controller->SetFailed("Method query() not implemented.");
9082 done->Run();
9083}
9084
9085void HttpProximaService::get_document_by_key(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
9086 const ::proxima::be::proto::HttpRequest*,
9087 ::proxima::be::proto::HttpResponse*,
9088 ::google::protobuf::Closure* done) {
9089 controller->SetFailed("Method get_document_by_key() not implemented.");
9090 done->Run();
9091}
9092
9093void HttpProximaService::list_collections(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
9094 const ::proxima::be::proto::HttpRequest*,
9095 ::proxima::be::proto::HttpResponse*,
9096 ::google::protobuf::Closure* done) {
9097 controller->SetFailed("Method list_collections() not implemented.");
9098 done->Run();
9099}
9100
9101void HttpProximaService::get_version(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
9102 const ::proxima::be::proto::HttpRequest*,
9103 ::proxima::be::proto::HttpResponse*,
9104 ::google::protobuf::Closure* done) {
9105 controller->SetFailed("Method get_version() not implemented.");
9106 done->Run();
9107}
9108
9109void HttpProximaService::CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method,
9110 ::PROTOBUF_NAMESPACE_ID::RpcController* controller,
9111 const ::PROTOBUF_NAMESPACE_ID::Message* request,
9112 ::PROTOBUF_NAMESPACE_ID::Message* response,
9113 ::google::protobuf::Closure* done) {
9114 GOOGLE_DCHECK_EQ(method->service(), file_level_service_descriptors_proto_2fproxima_5fbe_2eproto[1]);
9115 switch(method->index()) {
9116 case 0:
9117 collection(controller,
9118 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::proxima::be::proto::HttpRequest*>(
9119 request),
9120 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::proxima::be::proto::HttpResponse*>(
9121 response),
9122 done);
9123 break;
9124 case 1:
9125 stats_collection(controller,
9126 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::proxima::be::proto::HttpRequest*>(
9127 request),
9128 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::proxima::be::proto::HttpResponse*>(
9129 response),
9130 done);
9131 break;
9132 case 2:
9133 write(controller,
9134 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::proxima::be::proto::HttpRequest*>(
9135 request),
9136 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::proxima::be::proto::HttpResponse*>(
9137 response),
9138 done);
9139 break;
9140 case 3:
9141 query(controller,
9142 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::proxima::be::proto::HttpRequest*>(
9143 request),
9144 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::proxima::be::proto::HttpResponse*>(
9145 response),
9146 done);
9147 break;
9148 case 4:
9149 get_document_by_key(controller,
9150 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::proxima::be::proto::HttpRequest*>(
9151 request),
9152 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::proxima::be::proto::HttpResponse*>(
9153 response),
9154 done);
9155 break;
9156 case 5:
9157 list_collections(controller,
9158 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::proxima::be::proto::HttpRequest*>(
9159 request),
9160 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::proxima::be::proto::HttpResponse*>(
9161 response),
9162 done);
9163 break;
9164 case 6:
9165 get_version(controller,
9166 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::proxima::be::proto::HttpRequest*>(
9167 request),
9168 ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::proxima::be::proto::HttpResponse*>(
9169 response),
9170 done);
9171 break;
9172 default:
9173 GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
9174 break;
9175 }
9176}
9177
9178const ::PROTOBUF_NAMESPACE_ID::Message& HttpProximaService::GetRequestPrototype(
9179 const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const {
9180 GOOGLE_DCHECK_EQ(method->service(), descriptor());
9181 switch(method->index()) {
9182 case 0:
9183 return ::proxima::be::proto::HttpRequest::default_instance();
9184 case 1:
9185 return ::proxima::be::proto::HttpRequest::default_instance();
9186 case 2:
9187 return ::proxima::be::proto::HttpRequest::default_instance();
9188 case 3:
9189 return ::proxima::be::proto::HttpRequest::default_instance();
9190 case 4:
9191 return ::proxima::be::proto::HttpRequest::default_instance();
9192 case 5:
9193 return ::proxima::be::proto::HttpRequest::default_instance();
9194 case 6:
9195 return ::proxima::be::proto::HttpRequest::default_instance();
9196 default:
9197 GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
9198 return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory()
9199 ->GetPrototype(method->input_type());
9200 }
9201}
9202
9203const ::PROTOBUF_NAMESPACE_ID::Message& HttpProximaService::GetResponsePrototype(
9204 const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const {
9205 GOOGLE_DCHECK_EQ(method->service(), descriptor());
9206 switch(method->index()) {
9207 case 0:
9208 return ::proxima::be::proto::HttpResponse::default_instance();
9209 case 1:
9210 return ::proxima::be::proto::HttpResponse::default_instance();
9211 case 2:
9212 return ::proxima::be::proto::HttpResponse::default_instance();
9213 case 3:
9214 return ::proxima::be::proto::HttpResponse::default_instance();
9215 case 4:
9216 return ::proxima::be::proto::HttpResponse::default_instance();
9217 case 5:
9218 return ::proxima::be::proto::HttpResponse::default_instance();
9219 case 6:
9220 return ::proxima::be::proto::HttpResponse::default_instance();
9221 default:
9222 GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
9223 return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory()
9224 ->GetPrototype(method->output_type());
9225 }
9226}
9227
9228HttpProximaService_Stub::HttpProximaService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel)
9229 : channel_(channel), owns_channel_(false) {}
9230HttpProximaService_Stub::HttpProximaService_Stub(
9231 ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel,
9232 ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership)
9233 : channel_(channel),
9234 owns_channel_(ownership == ::PROTOBUF_NAMESPACE_ID::Service::STUB_OWNS_CHANNEL) {}
9235HttpProximaService_Stub::~HttpProximaService_Stub() {
9236 if (owns_channel_) delete channel_;
9237}
9238
9239void HttpProximaService_Stub::collection(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
9240 const ::proxima::be::proto::HttpRequest* request,
9241 ::proxima::be::proto::HttpResponse* response,
9242 ::google::protobuf::Closure* done) {
9243 channel_->CallMethod(descriptor()->method(0),
9244 controller, request, response, done);
9245}
9246void HttpProximaService_Stub::stats_collection(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
9247 const ::proxima::be::proto::HttpRequest* request,
9248 ::proxima::be::proto::HttpResponse* response,
9249 ::google::protobuf::Closure* done) {
9250 channel_->CallMethod(descriptor()->method(1),
9251 controller, request, response, done);
9252}
9253void HttpProximaService_Stub::write(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
9254 const ::proxima::be::proto::HttpRequest* request,
9255 ::proxima::be::proto::HttpResponse* response,
9256 ::google::protobuf::Closure* done) {
9257 channel_->CallMethod(descriptor()->method(2),
9258 controller, request, response, done);
9259}
9260void HttpProximaService_Stub::query(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
9261 const ::proxima::be::proto::HttpRequest* request,
9262 ::proxima::be::proto::HttpResponse* response,
9263 ::google::protobuf::Closure* done) {
9264 channel_->CallMethod(descriptor()->method(3),
9265 controller, request, response, done);
9266}
9267void HttpProximaService_Stub::get_document_by_key(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
9268 const ::proxima::be::proto::HttpRequest* request,
9269 ::proxima::be::proto::HttpResponse* response,
9270 ::google::protobuf::Closure* done) {
9271 channel_->CallMethod(descriptor()->method(4),
9272 controller, request, response, done);
9273}
9274void HttpProximaService_Stub::list_collections(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
9275 const ::proxima::be::proto::HttpRequest* request,
9276 ::proxima::be::proto::HttpResponse* response,
9277 ::google::protobuf::Closure* done) {
9278 channel_->CallMethod(descriptor()->method(5),
9279 controller, request, response, done);
9280}
9281void HttpProximaService_Stub::get_version(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
9282 const ::proxima::be::proto::HttpRequest* request,
9283 ::proxima::be::proto::HttpResponse* response,
9284 ::google::protobuf::Closure* done) {
9285 channel_->CallMethod(descriptor()->method(6),
9286 controller, request, response, done);
9287}
9288
9289// @@protoc_insertion_point(namespace_scope)
9290} // namespace proto
9291} // namespace be
9292} // namespace proxima
9293PROTOBUF_NAMESPACE_OPEN
9294template<> PROTOBUF_NOINLINE ::proxima::be::proto::CollectionConfig_IndexColumnParam* Arena::CreateMaybeMessage< ::proxima::be::proto::CollectionConfig_IndexColumnParam >(Arena* arena) {
9295 return Arena::CreateInternal< ::proxima::be::proto::CollectionConfig_IndexColumnParam >(arena);
9296}
9297template<> PROTOBUF_NOINLINE ::proxima::be::proto::CollectionConfig_RepositoryConfig_Database* Arena::CreateMaybeMessage< ::proxima::be::proto::CollectionConfig_RepositoryConfig_Database >(Arena* arena) {
9298 return Arena::CreateInternal< ::proxima::be::proto::CollectionConfig_RepositoryConfig_Database >(arena);
9299}
9300template<> PROTOBUF_NOINLINE ::proxima::be::proto::CollectionConfig_RepositoryConfig* Arena::CreateMaybeMessage< ::proxima::be::proto::CollectionConfig_RepositoryConfig >(Arena* arena) {
9301 return Arena::CreateInternal< ::proxima::be::proto::CollectionConfig_RepositoryConfig >(arena);
9302}
9303template<> PROTOBUF_NOINLINE ::proxima::be::proto::CollectionConfig* Arena::CreateMaybeMessage< ::proxima::be::proto::CollectionConfig >(Arena* arena) {
9304 return Arena::CreateInternal< ::proxima::be::proto::CollectionConfig >(arena);
9305}
9306template<> PROTOBUF_NOINLINE ::proxima::be::proto::CollectionName* Arena::CreateMaybeMessage< ::proxima::be::proto::CollectionName >(Arena* arena) {
9307 return Arena::CreateInternal< ::proxima::be::proto::CollectionName >(arena);
9308}
9309template<> PROTOBUF_NOINLINE ::proxima::be::proto::LsnContext* Arena::CreateMaybeMessage< ::proxima::be::proto::LsnContext >(Arena* arena) {
9310 return Arena::CreateInternal< ::proxima::be::proto::LsnContext >(arena);
9311}
9312template<> PROTOBUF_NOINLINE ::proxima::be::proto::CollectionInfo* Arena::CreateMaybeMessage< ::proxima::be::proto::CollectionInfo >(Arena* arena) {
9313 return Arena::CreateInternal< ::proxima::be::proto::CollectionInfo >(arena);
9314}
9315template<> PROTOBUF_NOINLINE ::proxima::be::proto::DescribeCollectionResponse* Arena::CreateMaybeMessage< ::proxima::be::proto::DescribeCollectionResponse >(Arena* arena) {
9316 return Arena::CreateInternal< ::proxima::be::proto::DescribeCollectionResponse >(arena);
9317}
9318template<> PROTOBUF_NOINLINE ::proxima::be::proto::ListCondition* Arena::CreateMaybeMessage< ::proxima::be::proto::ListCondition >(Arena* arena) {
9319 return Arena::CreateInternal< ::proxima::be::proto::ListCondition >(arena);
9320}
9321template<> PROTOBUF_NOINLINE ::proxima::be::proto::ListCollectionsResponse* Arena::CreateMaybeMessage< ::proxima::be::proto::ListCollectionsResponse >(Arena* arena) {
9322 return Arena::CreateInternal< ::proxima::be::proto::ListCollectionsResponse >(arena);
9323}
9324template<> PROTOBUF_NOINLINE ::proxima::be::proto::CollectionStats_SegmentStats* Arena::CreateMaybeMessage< ::proxima::be::proto::CollectionStats_SegmentStats >(Arena* arena) {
9325 return Arena::CreateInternal< ::proxima::be::proto::CollectionStats_SegmentStats >(arena);
9326}
9327template<> PROTOBUF_NOINLINE ::proxima::be::proto::CollectionStats* Arena::CreateMaybeMessage< ::proxima::be::proto::CollectionStats >(Arena* arena) {
9328 return Arena::CreateInternal< ::proxima::be::proto::CollectionStats >(arena);
9329}
9330template<> PROTOBUF_NOINLINE ::proxima::be::proto::StatsCollectionResponse* Arena::CreateMaybeMessage< ::proxima::be::proto::StatsCollectionResponse >(Arena* arena) {
9331 return Arena::CreateInternal< ::proxima::be::proto::StatsCollectionResponse >(arena);
9332}
9333template<> PROTOBUF_NOINLINE ::proxima::be::proto::WriteRequest_Row* Arena::CreateMaybeMessage< ::proxima::be::proto::WriteRequest_Row >(Arena* arena) {
9334 return Arena::CreateInternal< ::proxima::be::proto::WriteRequest_Row >(arena);
9335}
9336template<> PROTOBUF_NOINLINE ::proxima::be::proto::WriteRequest_IndexColumnMeta* Arena::CreateMaybeMessage< ::proxima::be::proto::WriteRequest_IndexColumnMeta >(Arena* arena) {
9337 return Arena::CreateInternal< ::proxima::be::proto::WriteRequest_IndexColumnMeta >(arena);
9338}
9339template<> PROTOBUF_NOINLINE ::proxima::be::proto::WriteRequest_RowMeta* Arena::CreateMaybeMessage< ::proxima::be::proto::WriteRequest_RowMeta >(Arena* arena) {
9340 return Arena::CreateInternal< ::proxima::be::proto::WriteRequest_RowMeta >(arena);
9341}
9342template<> PROTOBUF_NOINLINE ::proxima::be::proto::WriteRequest* Arena::CreateMaybeMessage< ::proxima::be::proto::WriteRequest >(Arena* arena) {
9343 return Arena::CreateInternal< ::proxima::be::proto::WriteRequest >(arena);
9344}
9345template<> PROTOBUF_NOINLINE ::proxima::be::proto::Document* Arena::CreateMaybeMessage< ::proxima::be::proto::Document >(Arena* arena) {
9346 return Arena::CreateInternal< ::proxima::be::proto::Document >(arena);
9347}
9348template<> PROTOBUF_NOINLINE ::proxima::be::proto::QueryRequest_KnnQueryParam* Arena::CreateMaybeMessage< ::proxima::be::proto::QueryRequest_KnnQueryParam >(Arena* arena) {
9349 return Arena::CreateInternal< ::proxima::be::proto::QueryRequest_KnnQueryParam >(arena);
9350}
9351template<> PROTOBUF_NOINLINE ::proxima::be::proto::QueryRequest* Arena::CreateMaybeMessage< ::proxima::be::proto::QueryRequest >(Arena* arena) {
9352 return Arena::CreateInternal< ::proxima::be::proto::QueryRequest >(arena);
9353}
9354template<> PROTOBUF_NOINLINE ::proxima::be::proto::QueryResponse_Result* Arena::CreateMaybeMessage< ::proxima::be::proto::QueryResponse_Result >(Arena* arena) {
9355 return Arena::CreateInternal< ::proxima::be::proto::QueryResponse_Result >(arena);
9356}
9357template<> PROTOBUF_NOINLINE ::proxima::be::proto::QueryResponse* Arena::CreateMaybeMessage< ::proxima::be::proto::QueryResponse >(Arena* arena) {
9358 return Arena::CreateInternal< ::proxima::be::proto::QueryResponse >(arena);
9359}
9360template<> PROTOBUF_NOINLINE ::proxima::be::proto::GetDocumentRequest* Arena::CreateMaybeMessage< ::proxima::be::proto::GetDocumentRequest >(Arena* arena) {
9361 return Arena::CreateInternal< ::proxima::be::proto::GetDocumentRequest >(arena);
9362}
9363template<> PROTOBUF_NOINLINE ::proxima::be::proto::GetDocumentResponse* Arena::CreateMaybeMessage< ::proxima::be::proto::GetDocumentResponse >(Arena* arena) {
9364 return Arena::CreateInternal< ::proxima::be::proto::GetDocumentResponse >(arena);
9365}
9366template<> PROTOBUF_NOINLINE ::proxima::be::proto::GetVersionRequest* Arena::CreateMaybeMessage< ::proxima::be::proto::GetVersionRequest >(Arena* arena) {
9367 return Arena::CreateInternal< ::proxima::be::proto::GetVersionRequest >(arena);
9368}
9369template<> PROTOBUF_NOINLINE ::proxima::be::proto::GetVersionResponse* Arena::CreateMaybeMessage< ::proxima::be::proto::GetVersionResponse >(Arena* arena) {
9370 return Arena::CreateInternal< ::proxima::be::proto::GetVersionResponse >(arena);
9371}
9372PROTOBUF_NAMESPACE_CLOSE
9373
9374// @@protoc_insertion_point(global_scope)
9375#include <google/protobuf/port_undef.inc>
9376
9377#ifdef __GNUC__
9378#pragma GCC diagnostic pop
9379#endif
9380