milvus.proto 17.7 KB
Newer Older
1 2 3
syntax = "proto3";
package milvus.proto.milvus;

X
Xiangyu Wang 已提交
4
option go_package = "github.com/milvus-io/milvus/internal/proto/milvuspb";
5 6

import "common.proto";
Y
yukun 已提交
7
import "schema.proto";
8

G
godchen 已提交
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
service MilvusService {
  rpc CreateCollection(CreateCollectionRequest) returns (common.Status) {}
  rpc DropCollection(DropCollectionRequest) returns (common.Status) {}
  rpc HasCollection(HasCollectionRequest) returns (BoolResponse) {}
  rpc LoadCollection(LoadCollectionRequest) returns (common.Status) {}
  rpc ReleaseCollection(ReleaseCollectionRequest) returns (common.Status) {}
  rpc DescribeCollection(DescribeCollectionRequest) returns (DescribeCollectionResponse) {}
  rpc GetCollectionStatistics(GetCollectionStatisticsRequest) returns (GetCollectionStatisticsResponse) {}
  rpc ShowCollections(ShowCollectionsRequest) returns (ShowCollectionsResponse) {}

  rpc CreatePartition(CreatePartitionRequest) returns (common.Status) {}
  rpc DropPartition(DropPartitionRequest) returns (common.Status) {}
  rpc HasPartition(HasPartitionRequest) returns (BoolResponse) {}
  rpc LoadPartitions(LoadPartitionsRequest) returns (common.Status) {}
  rpc ReleasePartitions(ReleasePartitionsRequest) returns (common.Status) {}
  rpc GetPartitionStatistics(GetPartitionStatisticsRequest) returns (GetPartitionStatisticsResponse) {}
  rpc ShowPartitions(ShowPartitionsRequest) returns (ShowPartitionsResponse) {}

Y
Yusup 已提交
27 28 29 30
  rpc CreateAlias(CreateAliasRequest) returns (common.Status) {}
  rpc DropAlias(DropAliasRequest) returns (common.Status) {}
  rpc AlterAlias(AlterAliasRequest) returns (common.Status) {}

G
godchen 已提交
31 32 33
  rpc CreateIndex(CreateIndexRequest) returns (common.Status) {}
  rpc DescribeIndex(DescribeIndexRequest) returns (DescribeIndexResponse) {}
  rpc GetIndexState(GetIndexStateRequest) returns (GetIndexStateResponse) {}
34
  rpc GetIndexBuildProgress(GetIndexBuildProgressRequest) returns (GetIndexBuildProgressResponse) {}
G
godchen 已提交
35 36
  rpc DropIndex(DropIndexRequest) returns (common.Status) {}

37
  rpc Insert(InsertRequest) returns (MutationResult) {}
G
groot 已提交
38
  rpc Delete(DeleteRequest) returns (MutationResult) {}
G
godchen 已提交
39
  rpc Search(SearchRequest) returns (SearchResults) {}
40
  rpc Flush(FlushRequest) returns (FlushResponse) {}
X
Xiangyu Wang 已提交
41
  rpc Query(QueryRequest) returns (QueryResults) {}
42
  rpc CalcDistance(CalcDistanceRequest) returns (CalcDistanceResults) {}
G
godchen 已提交
43 44 45 46

  rpc GetPersistentSegmentInfo(GetPersistentSegmentInfoRequest) returns (GetPersistentSegmentInfoResponse) {}
  rpc GetQuerySegmentInfo(GetQuerySegmentInfoRequest) returns (GetQuerySegmentInfoResponse) {}

X
Xiangyu Wang 已提交
47 48
  rpc Dummy(DummyRequest) returns (DummyResponse) {}

G
godchen 已提交
49 50
  // TODO: remove
  rpc RegisterLink(RegisterLinkRequest) returns (RegisterLinkResponse) {}
51 52 53

  // https://wiki.lfaidata.foundation/display/MIL/MEP+8+--+Add+metrics+for+proxy
  rpc GetMetrics(GetMetricsRequest) returns (GetMetricsResponse) {}
G
godchen 已提交
54 55
}

Y
Yusup 已提交
56 57
message CreateAliasRequest {
  common.MsgBase base = 1;
C
Cai Yudong 已提交
58 59 60
  string db_name = 2;
  string collection_name = 3;
  string alias = 4;
Y
Yusup 已提交
61 62 63 64
}

message DropAliasRequest {
  common.MsgBase base = 1;
C
Cai Yudong 已提交
65 66
  string db_name = 2;
  string alias = 3;
Y
Yusup 已提交
67 68 69 70
}

message AlterAliasRequest{
  common.MsgBase base = 1;
C
Cai Yudong 已提交
71 72 73
  string db_name = 2;
  string collection_name = 3;
  string alias = 4;
Y
Yusup 已提交
74 75
}

76
/**
Y
Yusup 已提交
77
* Create collection in milvus
78
*/
79
message CreateCollectionRequest {
80 81 82
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
83
  string db_name = 2;
84 85 86 87 88
  // The unique collection name in milvus.(Required)
  string collection_name = 3; 
  // The serialized `schema.CollectionSchema`(Required)
  bytes schema = 4; 
  // Once set, no modification is allowed (Optional)
89
  // https://github.com/milvus-io/milvus/issues/6690
90
  int32 shards_num = 5;
91 92
}

93 94 95
/**
* Drop collection in milvus, also will drop data in collection. 
*/
96
message DropCollectionRequest {
97 98 99
  // Not useful for now
  common.MsgBase base = 1; 
  // Not useful for now
Z
zhenshan.cao 已提交
100
  string db_name = 2;
101 102
  // The unique collection name in milvus.(Required)
  string collection_name = 3;
103 104
}

105 106 107
/**
* Check collection exist in milvus or not.
*/
108
message HasCollectionRequest {
109 110 111
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
112
  string db_name = 2;
113 114
  // The collection name you want to check.
  string collection_name = 3; 
115
  // If time_stamp is not zero, will return true when time_stamp >= created collection timestamp, otherwise will return false.
N
neza2017 已提交
116
  uint64 time_stamp = 4;
117 118
}

119

Y
yukun 已提交
120 121 122 123 124
message BoolResponse {
  common.Status status = 1;
  bool value = 2;
}

Z
zhenshan.cao 已提交
125 126 127 128 129
message StringResponse {
  common.Status status = 1;
  string value = 2;
}

130 131 132
/**
* Get collection meta datas like: schema, collectionID, shards number ...
*/
133
message DescribeCollectionRequest {
134 135 136
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
137
  string db_name = 2;
138
  // The collection name you want to describe, you can pass collection_name or collectionID
139
  string collection_name = 3;
140
  // The collection ID you want to describe
N
neza2017 已提交
141
  int64 collectionID = 4;
142
  // If time_stamp is not zero, will describe collection success when time_stamp >= created collection timestamp, otherwise will throw error.
N
neza2017 已提交
143
  uint64 time_stamp = 5;
144 145
}

146 147 148
/**
* DescribeCollection Response
*/
149
message DescribeCollectionResponse {
150
  // Contain error_code and reason
Y
yukun 已提交
151
  common.Status status = 1;
152
  // The schema param when you created collection.
Y
yukun 已提交
153
  schema.CollectionSchema schema = 2;
154
  // The collection id
155
  int64 collectionID = 3;
156
  // System design related, users should not perceive
157
  repeated string virtual_channel_names = 4;
158
  // System design related, users should not perceive
159
  repeated string physical_channel_names = 5;
160 161 162 163 164
  // Hybrid timestamp in milvus
  uint64 created_timestamp = 6;
  // The utc timestamp calculated by created_timestamp
  uint64 created_utc_timestamp = 7;
  // The shards number you set.
Y
Yusup 已提交
165 166 167
  int32 shards_num = 8;
  // The aliases of this collection
  repeated string aliases = 9;
168 169
  // The message ID/posititon when collection is created
  repeated common.KeyDataPair start_positions = 10;
170 171
}

172 173 174
/**
* Load collection data into query nodes, then you can do vector search on this collection.
*/
175
message LoadCollectionRequest {
176 177 178
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
179
  string db_name = 2;
180 181
  // The collection name you want to load
  string collection_name = 3;
182 183
}

184 185 186
/**
* Release collection data from query nodes, then you can't do vector search on this collection.
*/
187
message ReleaseCollectionRequest {
188 189 190
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
191
  string db_name = 2;
192 193
  // The collection name you want to release
  string collection_name = 3;
194 195
}

196 197 198
/**
* Get collection statistics like row_count.
*/
G
godchen 已提交
199
message GetCollectionStatisticsRequest {
200 201 202
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
203
  string db_name = 2;
204 205
  // The collection name you want get statistics
  string collection_name = 3;
206 207
}

208 209 210
/**
* Will return collection statistics in stats field like [{key:"row_count",value:"1"}]
*/
G
godchen 已提交
211
message GetCollectionStatisticsResponse {
212
  // Contain error_code and reason
Z
zhenshan.cao 已提交
213
  common.Status status = 1;
214
  // Collection statistics data
Z
zhenshan.cao 已提交
215
  repeated common.KeyValuePair stats = 2;
216 217
}

218 219 220
/*
* This is for ShowCollectionsRequest type field.
*/
221
enum ShowType {
222
  // Will return all colloections 
223
  All = 0;
224
  // Will return loaded collections with their inMemory_percentages
225 226 227
  InMemory = 1;
}

228 229 230
/*
* List collections 
*/
G
godchen 已提交
231
message ShowCollectionsRequest {
232 233 234
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
235
  string db_name = 2;
236
  // Not useful for now
N
neza2017 已提交
237
  uint64 time_stamp = 3;
238
  // Decide return Loaded collections or All collections(Optional)
239
  ShowType type = 4;
240 241
  // When type is InMemory, will return these collection's inMemory_percentages.(Optional)
  repeated string collection_names = 5; 
242 243
}

244 245 246
/*
* Return basic collection infos.
*/
G
godchen 已提交
247
message ShowCollectionsResponse {
248
  // Contain error_code and reason
Z
zhenshan.cao 已提交
249
  common.Status status = 1;
250
  // Collection name array
Z
zhenshan.cao 已提交
251
  repeated string collection_names = 2;
252
  // Collection Id array
253
  repeated int64 collection_ids = 3;
254 255 256 257 258 259
  // Hybrid timestamps in milvus
  repeated uint64 created_timestamps = 4;
  // The utc timestamp calculated by created_timestamp
  repeated uint64 created_utc_timestamps = 5;
  // Load percentage on querynode when type is InMemory
  repeated int64 inMemory_percentages = 6; 
260 261
}

262 263 264
/*
* Create partition in created collection.
*/
265
message CreatePartitionRequest {
266 267 268
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
269
  string db_name = 2;
270 271 272 273
  // The collection name in milvus
  string collection_name = 3;
  // The partition name you want to create.
  string partition_name = 4;
274 275
}

276 277 278
/*
* Drop partition in created collection.
*/
279
message DropPartitionRequest {
280 281 282
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
283
  string db_name = 2;
284 285 286 287
  // The collection name in milvus
  string collection_name = 3;
  // The partition name you want to drop
  string partition_name = 4; 
288 289
}

290 291 292
/*
* Check if partition exist in collection or not.
*/
293
message HasPartitionRequest {
294 295 296
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
297
  string db_name = 2;
298 299 300 301
  // The collection name in milvus
  string collection_name = 3;
  // The partition name you want to check
  string partition_name = 4;
302 303
}

304 305 306 307
/*
* Load specific partitions data of one collection into query nodes
* Then you can get these data as result when you do vector search on this collection.
*/
G
godchen 已提交
308
message LoadPartitionsRequest {
309 310 311
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
312
  string db_name = 2;
313 314 315 316
  // The collection name in milvus
  string collection_name = 3;
  // The partition names you want to load
  repeated string partition_names = 4;
317 318
}

319 320 321 322
/*
* Release specific partitions data of one collection from query nodes.
* Then you can not get these data as result when you do vector search on this collection.
*/
G
godchen 已提交
323
message ReleasePartitionsRequest {
324 325 326
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
327
  string db_name = 2;
328 329 330 331
  // The collection name in milvus
  string collection_name = 3;
  // The partition names you want to release
  repeated string partition_names = 4;
332 333
}

334 335 336
/*
* Get partition statistics like row_count.
*/
G
godchen 已提交
337
message GetPartitionStatisticsRequest {
338 339 340
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
341
  string db_name = 2;
342 343 344 345
  // The collection name in milvus
  string collection_name = 3;
  // The partition name you want to collect statistics
  string partition_name = 4; 
346 347
}

G
godchen 已提交
348
message GetPartitionStatisticsResponse {
Z
zhenshan.cao 已提交
349 350
  common.Status status = 1;
  repeated common.KeyValuePair stats = 2;
351
}
352 353 354
/*
* List all partitions for particular collection
*/
G
godchen 已提交
355
message ShowPartitionsRequest {
356 357 358
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
359
  string db_name = 2;
360 361 362
  // The collection name you want to describe, you can pass collection_name or collectionID
  string collection_name = 3;
  // The collection id in milvus
363
  int64 collectionID = 4;
364 365 366
  // When type is InMemory, will return these patitions's inMemory_percentages.(Optional)
  repeated string partition_names = 5;
  // Decide return Loaded partitions or All partitions(Optional)
367
  ShowType type = 6;
368 369
}

G
godchen 已提交
370
message ShowPartitionsResponse {
Z
zhenshan.cao 已提交
371 372 373
  common.Status status = 1;
  repeated string partition_names = 2;
  repeated int64 partitionIDs = 3;
374 375
  repeated uint64 created_timestamps = 4; // hybrid timestamps
  repeated uint64 created_utc_timestamps = 5; // physical timestamps
376
  repeated int64 inMemory_percentages = 6; // load percentage on querynode
377 378 379 380 381 382 383 384 385 386 387
}

message DescribeSegmentRequest {
  common.MsgBase base = 1;
  int64 collectionID = 2;
  int64 segmentID = 3;
}

message DescribeSegmentResponse {
  common.Status status = 1;
  int64 indexID = 2;
N
neza2017 已提交
388
  int64 buildID = 3;
389
  bool enable_index = 4;
390 391
}

G
godchen 已提交
392
message ShowSegmentsRequest {
393 394 395 396 397
  common.MsgBase base = 1;
  int64 collectionID = 2;
  int64 partitionID = 3;
}

G
godchen 已提交
398
message ShowSegmentsResponse {
399 400 401
  common.Status status = 1;
  repeated int64 segmentIDs = 2;
}
402 403

message CreateIndexRequest {
Z
zhenshan.cao 已提交
404
  common.MsgBase base = 1; // must
Z
zhenshan.cao 已提交
405
  string db_name = 2;
Z
zhenshan.cao 已提交
406 407 408
  string collection_name = 3; // must
  string field_name = 4; // must
  repeated common.KeyValuePair extra_params = 5; // must
409 410 411
}

message DescribeIndexRequest {
Z
zhenshan.cao 已提交
412
  common.MsgBase base = 1; // must
Z
zhenshan.cao 已提交
413
  string db_name = 2;
Z
zhenshan.cao 已提交
414
  string collection_name = 3; // must
415
  string field_name = 4;
Z
zhenshan.cao 已提交
416
  string index_name = 5; // No need to set up for now @2021.06.30
417 418 419 420
}

message IndexDescription {
  string index_name = 1;
G
godchen 已提交
421
  int64 indexID = 2;
422
  repeated common.KeyValuePair params = 3;
423
  string field_name = 4;
424 425 426
}

message DescribeIndexResponse {
427 428 429 430
  common.Status status = 1;
  repeated IndexDescription index_descriptions = 2;
}

431
message GetIndexBuildProgressRequest {
Z
zhenshan.cao 已提交
432
  common.MsgBase base = 1; // must
433
  string db_name = 2 ;
Z
zhenshan.cao 已提交
434
  string collection_name = 3; // must
435
  string field_name = 4;
Z
zhenshan.cao 已提交
436
  string index_name = 5; // must
437 438 439 440 441 442 443 444
}

message GetIndexBuildProgressResponse {
  common.Status status = 1;
  int64 indexed_rows = 2;
  int64 total_rows = 3;
}

G
godchen 已提交
445
message GetIndexStateRequest {
Z
zhenshan.cao 已提交
446
  common.MsgBase base = 1; // must
447
  string db_name = 2 ;
Z
zhenshan.cao 已提交
448
  string collection_name = 3; // must
449
  string field_name = 4;
Z
zhenshan.cao 已提交
450
  string index_name = 5; // No need to set up for now @2021.06.30
451 452
}

G
godchen 已提交
453
message GetIndexStateResponse {
454 455
  common.Status status = 1;
  common.IndexState state = 2;
456
  string fail_reason = 3;
457 458
}

X
xige-16 已提交
459
message DropIndexRequest {
Z
zhenshan.cao 已提交
460
  common.MsgBase base = 1; // must
X
xige-16 已提交
461
  string db_name = 2;
Z
zhenshan.cao 已提交
462
  string collection_name = 3; // must
X
xige-16 已提交
463
  string field_name = 4;
Z
zhenshan.cao 已提交
464
  string index_name = 5; // No need to set up for now @2021.06.30
X
xige-16 已提交
465 466
}

467
message InsertRequest {
468
  common.MsgBase base = 1;
Z
zhenshan.cao 已提交
469
  string db_name = 2;
470 471 472 473
  string collection_name = 3;
  string partition_name = 4;
  repeated schema.FieldData fields_data = 5;
  repeated uint32 hash_keys = 6;
474
  uint32 num_rows = 7;
475 476
}

477
message MutationResult {
Z
zhenshan.cao 已提交
478
  common.Status status = 1;
479 480 481 482 483 484 485 486
  schema.IDs IDs = 2; // required for insert, delete
  repeated uint32 succ_index = 3; // error indexes indicate
  repeated uint32 err_index = 4; // error indexes indicate
  bool acknowledged = 5;
  int64 insert_cnt = 6;
  int64 delete_cnt = 7;
  int64 upsert_cnt = 8;
  uint64 timestamp = 9;
Y
yukun 已提交
487 488
}

G
groot 已提交
489 490 491 492 493 494 495 496
message DeleteRequest {
  common.MsgBase base = 1;
  string db_name = 2;
  string collection_name = 3;
  string partition_name = 4;
  string expr = 5;
}

Y
yukun 已提交
497
enum PlaceholderType {
G
godchen 已提交
498 499 500
  None = 0;
  BinaryVector = 100;
  FloatVector = 101;
Y
yukun 已提交
501 502 503 504 505 506 507 508 509 510 511
}

message PlaceholderValue {
  string tag = 1;
  PlaceholderType type = 2;
  // values is a 2d-array, every array contains a vector
  repeated bytes values = 3;
}

message PlaceholderGroup {
  repeated PlaceholderValue placeholders = 1;
512 513 514
}

message SearchRequest {
Z
zhenshan.cao 已提交
515
  common.MsgBase base = 1; // must
Z
zhenshan.cao 已提交
516
  string db_name = 2;
Z
zhenshan.cao 已提交
517 518 519
  string collection_name = 3; // must
  repeated string partition_names = 4; // must
  string dsl = 5; // must
Y
yukun 已提交
520
  // serialized `PlaceholderGroup`
Z
zhenshan.cao 已提交
521 522
  bytes placeholder_group = 6; // must
  common.DslType dsl_type = 7; // must
523 524 525
  repeated string output_fields = 8;
  repeated common.KeyValuePair search_params = 9; // must
  uint64 travel_timestamp = 10;
526
  uint64 guarantee_timestamp = 11; // guarantee_timestamp
Y
yukun 已提交
527 528 529 530 531 532 533 534
}

message Hits {
  repeated int64 IDs = 1;
  repeated bytes row_data = 2;
  repeated float scores = 3;
}

535
message SearchResults {
Y
yukun 已提交
536
  common.Status status = 1;
537
  schema.SearchResultData results = 2;
538 539 540
}

message FlushRequest {
541
  common.MsgBase base = 1;
542
  string db_name = 2;
543
  repeated string collection_names = 3;
Y
yukun 已提交
544 545
}

546 547 548 549 550 551
message FlushResponse{
  common.Status status = 1;
  string db_name = 2;
  map<string, schema.LongArray> coll_segIDs = 3;
}

X
Xiangyu Wang 已提交
552 553 554 555 556 557 558
message QueryRequest {
  common.MsgBase base = 1;
  string db_name = 2;
  string collection_name = 3;
  string expr = 4;
  repeated string output_fields = 5;
  repeated string partition_names = 6;
559 560
  uint64 travel_timestamp = 7;
  uint64 guarantee_timestamp = 8; // guarantee_timestamp
X
Xiangyu Wang 已提交
561 562 563 564 565 566 567
}

message QueryResults {
  common.Status status = 1;
  repeated schema.FieldData fields_data = 2;
}

568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597
message VectorIDs {
  string collection_name = 1;
  string field_name = 2;
  schema.IDs id_array = 3;
  repeated string partition_names = 4;
}

message VectorsArray {
  oneof array {
    VectorIDs id_array = 1; // vector ids
    schema.VectorField data_array = 2; // vectors data
  } 
}

message CalcDistanceRequest {
  common.MsgBase base = 1;
  VectorsArray op_left = 2; // vectors on the left of operator
  VectorsArray op_right = 3; // vectors on the right of operator
  repeated common.KeyValuePair params = 4; // "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
}

message CalcDistanceResults {
  common.Status status = 1;
  // num(op_left)*num(op_right) distance values, "HAMMIN" return integer distance
  oneof array {
    	schema.IntArray int_dist = 2;
	schema.FloatArray float_dist = 3;
  }
}

Z
zhenshan.cao 已提交
598 599 600 601
message PersistentSegmentInfo {
  int64 segmentID = 1;
  int64 collectionID = 2;
  int64 partitionID = 3;
602 603
  int64 num_rows = 4;
  common.SegmentState state = 5;
Z
zhenshan.cao 已提交
604 605
}

G
godchen 已提交
606
message GetPersistentSegmentInfoRequest {
Z
zhenshan.cao 已提交
607
  common.MsgBase base = 1; // must
Z
zhenshan.cao 已提交
608
  string dbName = 2;
Z
zhenshan.cao 已提交
609
  string collectionName = 3; // must
Z
zhenshan.cao 已提交
610 611
}

G
godchen 已提交
612
message GetPersistentSegmentInfoResponse {
Z
zhenshan.cao 已提交
613 614 615 616
  common.Status status = 1;
  repeated PersistentSegmentInfo infos = 2;
}

Z
zhenshan.cao 已提交
617 618 619 620 621 622 623 624 625 626
message QuerySegmentInfo {
  int64 segmentID = 1;
  int64 collectionID = 2;
  int64 partitionID = 3;
  int64 mem_size = 4;
  int64 num_rows = 5;
  string index_name = 6;
  int64 indexID = 7;
}

G
godchen 已提交
627
message GetQuerySegmentInfoRequest {
Z
zhenshan.cao 已提交
628
  common.MsgBase base = 1; // must
Z
zhenshan.cao 已提交
629
  string dbName = 2;
Z
zhenshan.cao 已提交
630
  string collectionName = 3; // must
Z
zhenshan.cao 已提交
631 632
}

G
godchen 已提交
633
message GetQuerySegmentInfoResponse {
Z
zhenshan.cao 已提交
634 635 636 637
  common.Status status = 1;
  repeated QuerySegmentInfo infos = 2;
}

X
Xiangyu Wang 已提交
638 639 640 641 642 643 644
message DummyRequest {
  string request_type = 1;
}

message DummyResponse {
  string response = 1;
}
Z
zhenshan.cao 已提交
645

G
godchen 已提交
646
message RegisterLinkRequest {
Y
yukun 已提交
647
}
D
dragondriver 已提交
648 649 650 651 652 653

message RegisterLinkResponse {
  common.Address address = 1;
  common.Status status = 2;
}

654 655 656 657 658 659 660 661 662 663 664
message GetMetricsRequest {
  common.MsgBase base = 1;
  string request = 2; // request is of jsonic format
}

message GetMetricsResponse {
  common.Status status = 1;
  string response = 2;  // response is of jsonic format
  string component_name = 3; // metrics from which component
}

D
dragondriver 已提交
665
service ProxyService {
G
godchen 已提交
666
  rpc RegisterLink(RegisterLinkRequest) returns (RegisterLinkResponse) {}
Y
Yusup 已提交
667
}