2015-06-17 07:12:20 +00:00
|
|
|
/* -------------------------------------------------------------------
|
|
|
|
**
|
2015-06-19 03:28:31 +00:00
|
|
|
** machi.proto: Protocol Buffers definition for Machi
|
2015-06-17 07:12:20 +00:00
|
|
|
**
|
2015-06-19 03:28:31 +00:00
|
|
|
** Copyright (c) 2014-2015 Basho Technologies, Inc. All Rights Reserved.
|
2015-06-17 07:12:20 +00:00
|
|
|
**
|
|
|
|
** This file is provided to you under the Apache License,
|
|
|
|
** Version 2.0 (the "License"); you may not use this file
|
|
|
|
** except in compliance with the License. You may obtain
|
|
|
|
** a copy of the License at
|
|
|
|
**
|
|
|
|
** http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
**
|
|
|
|
** Unless required by applicable law or agreed to in writing,
|
|
|
|
** software distributed under the License is distributed on an
|
|
|
|
** "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
** KIND, either express or implied. See the License for the
|
|
|
|
** specific language governing permissions and limitations
|
|
|
|
** under the License.
|
|
|
|
**
|
|
|
|
** -------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
** Revision: 0.1
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Java package specifiers
|
|
|
|
option java_package = "com.basho.machi.protobuf";
|
|
|
|
option java_outer_classname = "MachiPB";
|
|
|
|
|
2015-06-19 03:28:31 +00:00
|
|
|
//////////////////////////////////////////
|
|
|
|
//
|
2015-06-24 07:13:11 +00:00
|
|
|
// Enums
|
2015-06-19 03:28:31 +00:00
|
|
|
//
|
|
|
|
//////////////////////////////////////////
|
2015-06-17 07:12:20 +00:00
|
|
|
|
2015-06-19 04:00:28 +00:00
|
|
|
enum Mpb_GeneralStatusCode {
|
2015-06-19 03:28:31 +00:00
|
|
|
OK = 0;
|
|
|
|
BAD_ARG = 1;
|
|
|
|
WEDGED = 2;
|
|
|
|
BAD_CHECKSUM = 3;
|
2015-06-19 06:19:59 +00:00
|
|
|
PARTITION = 4;
|
2015-06-23 05:08:10 +00:00
|
|
|
BAD_JOSS = 255; // Only for testing by the Taipan
|
2015-06-17 07:12:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Must match with machi.hrl's values!
|
2015-06-19 04:00:28 +00:00
|
|
|
enum Mpb_CSumType {
|
2015-06-17 07:12:20 +00:00
|
|
|
CSUM_TAG_NONE = 0;
|
2015-06-23 05:08:10 +00:00
|
|
|
CSUM_TAG_CLIENT_SHA = 1;
|
|
|
|
CSUM_TAG_SERVER_SHA = 2;
|
|
|
|
CSUM_TAG_SERVER_REGEN_SHA = 3;
|
2015-06-17 07:12:20 +00:00
|
|
|
}
|
|
|
|
|
2015-06-24 07:13:11 +00:00
|
|
|
enum Mpb_ProjType {
|
|
|
|
PRIVATE = 20;
|
|
|
|
PUBLIC = 21;
|
|
|
|
}
|
|
|
|
|
2015-06-19 03:28:31 +00:00
|
|
|
//////////////////////////////////////////
|
|
|
|
//
|
2015-06-24 07:13:11 +00:00
|
|
|
// Basic data types
|
2015-06-19 03:28:31 +00:00
|
|
|
//
|
|
|
|
//////////////////////////////////////////
|
|
|
|
|
2015-06-17 07:12:20 +00:00
|
|
|
// chunk_pos() type
|
2015-06-19 04:00:28 +00:00
|
|
|
message Mpb_ChunkPos {
|
2015-06-18 08:31:48 +00:00
|
|
|
required uint64 offset = 1;
|
|
|
|
required uint64 chunk_size = 2;
|
|
|
|
required string file_name = 3;
|
2015-06-17 07:12:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// chunk_csum() type
|
2015-06-19 04:00:28 +00:00
|
|
|
message Mpb_ChunkCSum {
|
|
|
|
required Mpb_CSumType type = 1;
|
2015-06-23 05:08:10 +00:00
|
|
|
optional bytes csum = 2;
|
2015-06-17 07:12:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// epoch_id() type
|
2015-06-24 07:13:11 +00:00
|
|
|
message Mpb_EpochID {
|
2015-06-24 08:20:18 +00:00
|
|
|
required uint32 epoch_number = 1;
|
2015-06-23 06:13:13 +00:00
|
|
|
required bytes epoch_csum = 2;
|
2015-06-18 07:16:23 +00:00
|
|
|
}
|
|
|
|
|
2015-06-23 08:08:15 +00:00
|
|
|
// file_info() type
|
|
|
|
message Mpb_FileInfo {
|
|
|
|
required uint64 file_size = 1;
|
|
|
|
required string file_name = 2;
|
|
|
|
}
|
|
|
|
|
2015-06-24 03:50:37 +00:00
|
|
|
// #p_srvr{} type
|
|
|
|
message Mpb_P_Srvr {
|
|
|
|
required string name = 1;
|
|
|
|
required string proto_mod = 2;
|
|
|
|
required string address = 3;
|
|
|
|
required string port = 4;
|
|
|
|
required bytes props = 5;
|
|
|
|
}
|
|
|
|
|
2015-06-19 03:28:31 +00:00
|
|
|
//////////////////////////////////////////
|
|
|
|
//
|
2015-06-24 07:13:11 +00:00
|
|
|
// Requests & responses
|
2015-06-19 03:28:31 +00:00
|
|
|
//
|
|
|
|
//////////////////////////////////////////
|
|
|
|
|
2015-06-19 04:00:28 +00:00
|
|
|
// Error response - may be generated for any Req
|
|
|
|
message Mpb_ErrorResp {
|
|
|
|
// Free-form (depends on server, which is probably a bad idea TODO)
|
|
|
|
required int32 code = 1;
|
|
|
|
required string msg = 2;
|
|
|
|
optional bytes extra = 3;
|
|
|
|
}
|
|
|
|
|
2015-06-24 03:50:37 +00:00
|
|
|
//////////////////////////////////////////
|
|
|
|
//
|
2015-06-24 07:13:11 +00:00
|
|
|
// High level API requests:
|
2015-06-24 03:50:37 +00:00
|
|
|
//
|
|
|
|
// echo() : Mpb_EchoReq and Mpb_EchoResp
|
|
|
|
// auth() : Mpb_AuthReq and Mpb_AuthResp
|
|
|
|
// append_chunk() : Mpb_AppendChunkReq and Mpb_AppendChunkResp
|
|
|
|
// write_chunk() : Mpb_WriteChunkReq and Mpb_WriteChunkResp
|
|
|
|
// read_chunk() : Mpb_ReadChunkReq and Mpb_ReadChunkResp
|
|
|
|
// checksum_list() : Mpb_ChecksumListReq and Mpb_ChecksumListResp
|
|
|
|
// list_files() : Mpb_ListFilesReq and Mpb_ListFilesResp
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////
|
|
|
|
|
|
|
|
// High level API: echo() request & response
|
2015-06-18 08:31:48 +00:00
|
|
|
|
2015-06-19 04:00:28 +00:00
|
|
|
message Mpb_EchoReq {
|
2015-06-18 08:31:48 +00:00
|
|
|
optional string message = 1;
|
|
|
|
}
|
|
|
|
|
2015-06-19 04:00:28 +00:00
|
|
|
message Mpb_EchoResp {
|
2015-06-18 08:31:48 +00:00
|
|
|
optional string message = 1;
|
|
|
|
}
|
|
|
|
|
2015-06-24 03:50:37 +00:00
|
|
|
// High level API: auth() request & response (not yet implemented)
|
2015-06-19 03:28:31 +00:00
|
|
|
|
2015-06-19 04:00:28 +00:00
|
|
|
message Mpb_AuthReq {
|
2015-06-19 03:28:31 +00:00
|
|
|
required bytes user = 1;
|
|
|
|
required bytes password = 2;
|
|
|
|
}
|
|
|
|
|
2015-06-19 04:00:28 +00:00
|
|
|
message Mpb_AuthResp {
|
2015-06-19 03:28:31 +00:00
|
|
|
required uint32 code = 1;
|
|
|
|
// TODO: not implemented yet
|
|
|
|
}
|
|
|
|
|
2015-06-24 03:50:37 +00:00
|
|
|
// High level API: append_chunk() request & response
|
2015-06-19 03:28:31 +00:00
|
|
|
|
2015-06-19 04:00:28 +00:00
|
|
|
message Mpb_AppendChunkReq {
|
2015-06-23 05:08:10 +00:00
|
|
|
optional bytes placement_key = 1;
|
|
|
|
required string prefix = 2;
|
2015-06-17 07:12:20 +00:00
|
|
|
required bytes chunk = 3;
|
2015-06-23 05:08:10 +00:00
|
|
|
required Mpb_ChunkCSum csum = 4;
|
|
|
|
optional uint32 chunk_extra = 5;
|
2015-06-17 07:12:20 +00:00
|
|
|
}
|
|
|
|
|
2015-06-19 04:00:28 +00:00
|
|
|
message Mpb_AppendChunkResp {
|
|
|
|
required Mpb_GeneralStatusCode status = 1;
|
2015-06-19 06:19:59 +00:00
|
|
|
// If OK, then chunk_pos is defined.
|
|
|
|
optional Mpb_ChunkPos chunk_pos = 2;
|
|
|
|
}
|
|
|
|
|
2015-06-24 03:50:37 +00:00
|
|
|
// High level API: write_chunk() request & response
|
2015-06-19 06:19:59 +00:00
|
|
|
|
|
|
|
message Mpb_WriteChunkReq {
|
|
|
|
required string file = 1;
|
|
|
|
required uint64 offset = 2;
|
|
|
|
required bytes chunk = 3;
|
2015-06-23 06:13:13 +00:00
|
|
|
required Mpb_ChunkCSum csum = 4;
|
2015-06-19 06:19:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Mpb_WriteChunkResp {
|
|
|
|
required Mpb_GeneralStatusCode status = 1;
|
2015-06-17 07:12:20 +00:00
|
|
|
}
|
|
|
|
|
2015-06-24 03:50:37 +00:00
|
|
|
// High level API: read_chunk() request & response
|
2015-06-23 06:34:48 +00:00
|
|
|
|
|
|
|
message Mpb_ReadChunkReq {
|
|
|
|
required string file = 1;
|
|
|
|
required uint64 offset = 2;
|
|
|
|
required uint32 size = 3;
|
|
|
|
// Use flag_checksum=non-zero to request the chunk's checksum also
|
|
|
|
optional uint32 flag_checksum = 4 [default=0];
|
|
|
|
// Use flag_no_chunk=non-zero to skip returning the chunk (which
|
|
|
|
// only makes sense if flag_checksum is set).
|
|
|
|
optional uint32 flag_no_chunk = 5 [default=0];
|
|
|
|
}
|
|
|
|
|
|
|
|
message Mpb_ReadChunkResp {
|
|
|
|
required Mpb_GeneralStatusCode status = 1;
|
|
|
|
optional bytes chunk = 2;
|
|
|
|
optional Mpb_ChunkCSum csum = 3;
|
|
|
|
}
|
|
|
|
|
2015-06-24 03:50:37 +00:00
|
|
|
// High level API: checksum_list() request & response
|
2015-06-23 07:53:06 +00:00
|
|
|
|
|
|
|
message Mpb_ChecksumListReq {
|
|
|
|
required string file = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Mpb_ChecksumListResp {
|
|
|
|
required Mpb_GeneralStatusCode status = 1;
|
|
|
|
optional bytes chunk = 2;
|
|
|
|
}
|
|
|
|
|
2015-06-24 03:50:37 +00:00
|
|
|
// High level API: list_files() request & response
|
2015-06-23 08:08:15 +00:00
|
|
|
|
|
|
|
message Mpb_ListFilesReq {
|
|
|
|
}
|
|
|
|
|
|
|
|
message Mpb_ListFilesResp {
|
|
|
|
required Mpb_GeneralStatusCode status = 1;
|
|
|
|
// Wow, I cannot use optional & repeated together?
|
|
|
|
repeated Mpb_FileInfo files = 2;
|
|
|
|
}
|
|
|
|
|
2015-06-19 03:28:31 +00:00
|
|
|
//////////////////////////////////////////
|
|
|
|
//
|
2015-06-24 07:13:11 +00:00
|
|
|
// High level API request & response wrapper
|
2015-06-19 03:28:31 +00:00
|
|
|
//
|
|
|
|
//////////////////////////////////////////
|
|
|
|
|
2015-06-19 04:00:28 +00:00
|
|
|
message Mpb_Request {
|
2015-06-19 03:28:31 +00:00
|
|
|
// TODO: If we wish to support pipelined requests sometime in the
|
|
|
|
// future, this is the placeholder to do it.
|
|
|
|
required bytes req_id = 1;
|
|
|
|
|
|
|
|
// The client should only define one request message. If the client
|
|
|
|
// includes multiple requests here, the server may pick/choose an
|
|
|
|
// arbitrary one.
|
|
|
|
// NOTE: The erlang protobuffs compiler doesn't support 'oneof'.
|
|
|
|
// But 'oneof' appears to be a very tiny memory optimization
|
|
|
|
// that not all languages might care about? (Erlang doesn't)
|
2015-06-19 04:00:28 +00:00
|
|
|
optional Mpb_EchoReq echo = 10;
|
|
|
|
optional Mpb_AuthReq auth = 11;
|
|
|
|
optional Mpb_AppendChunkReq append_chunk = 12;
|
2015-06-19 06:19:59 +00:00
|
|
|
optional Mpb_WriteChunkReq write_chunk = 13;
|
2015-06-23 06:34:48 +00:00
|
|
|
optional Mpb_ReadChunkReq read_chunk = 14;
|
2015-06-23 07:53:06 +00:00
|
|
|
optional Mpb_ChecksumListReq checksum_list = 15;
|
2015-06-23 08:08:15 +00:00
|
|
|
optional Mpb_ListFilesReq list_files = 16;
|
2015-06-17 07:12:20 +00:00
|
|
|
}
|
2015-06-18 07:16:23 +00:00
|
|
|
|
2015-06-19 04:00:28 +00:00
|
|
|
message Mpb_Response {
|
2015-06-19 03:28:31 +00:00
|
|
|
// TODO: If we wish to support pipelined requests sometime in the
|
|
|
|
// future, this is the placeholder to do it.
|
|
|
|
required bytes req_id = 1;
|
|
|
|
|
|
|
|
// The server will define only one of the optional responses below.
|
2015-06-18 07:16:23 +00:00
|
|
|
|
2015-06-19 03:28:31 +00:00
|
|
|
// Generic error response, typically used when something quite
|
|
|
|
// bad/unexpected happened within the server.
|
|
|
|
// Clients should always check this response and, if defined,
|
2015-06-24 07:13:11 +00:00
|
|
|
// ignore any request-specific response at codes 10+.
|
2015-06-19 04:00:28 +00:00
|
|
|
optional Mpb_ErrorResp generic = 2;
|
2015-06-19 03:28:31 +00:00
|
|
|
|
|
|
|
// Specific responses.
|
2015-06-19 04:00:28 +00:00
|
|
|
optional Mpb_EchoResp echo = 10;
|
|
|
|
optional Mpb_AuthResp auth = 11;
|
|
|
|
optional Mpb_AppendChunkResp append_chunk = 12;
|
2015-06-19 06:19:59 +00:00
|
|
|
optional Mpb_WriteChunkResp write_chunk = 13;
|
2015-06-23 06:34:48 +00:00
|
|
|
optional Mpb_ReadChunkResp read_chunk = 14;
|
2015-06-23 07:53:06 +00:00
|
|
|
optional Mpb_ChecksumListResp checksum_list = 15;
|
2015-06-23 08:08:15 +00:00
|
|
|
optional Mpb_ListFilesResp list_files = 16;
|
2015-06-19 03:28:31 +00:00
|
|
|
}
|
2015-06-24 07:13:11 +00:00
|
|
|
|
|
|
|
//////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Low level API data types
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////
|
|
|
|
|
|
|
|
enum Mpb_Mode {
|
|
|
|
AP_MODE = 30;
|
|
|
|
CP_MODE = 31;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Mpb_Now {
|
|
|
|
required uint64 sec = 1;
|
|
|
|
required uint32 usec = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Mpb_MembersDictEntry {
|
|
|
|
required string key = 1;
|
|
|
|
required Mpb_P_Srvr val = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Mpb_ProjectionV1 {
|
|
|
|
required uint32 epoch_number = 1;
|
|
|
|
required bytes epoch_csum = 2;
|
|
|
|
required string author_server = 3;
|
|
|
|
repeated string all_members = 4;
|
|
|
|
required Mpb_Now creation_time = 5;
|
|
|
|
required Mpb_Mode mode = 6;
|
|
|
|
repeated string upi = 7;
|
|
|
|
repeated string repairing = 8;
|
|
|
|
repeated string down = 9;
|
|
|
|
optional bytes opaque_flap = 10;
|
|
|
|
optional bytes opaque_inner = 11;
|
|
|
|
required bytes opaque_dbg = 12;
|
|
|
|
required bytes opaque_dbg2 = 13;
|
|
|
|
repeated Mpb_MembersDictEntry members_dict = 14;
|
|
|
|
}
|
|
|
|
|
|
|
|
//////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Low level API requests:
|
|
|
|
//
|
|
|
|
// echo() : Mpb_EchoReq and Mpb_EchoResp (reused from high level API)
|
|
|
|
// auth() : Mpb_AuthReq and Mpb_AuthResp (reused from high level API)
|
|
|
|
// get_latest_epochid() : Mpb_GetLatestEpochIDReq and Mpb_GetLatestEpochIDResp
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////
|
|
|
|
|
|
|
|
// Low level API: get_latest_epochid() request & response
|
|
|
|
|
|
|
|
message Mpb_LL_GetLatestEpochIDReq {
|
|
|
|
required Mpb_ProjType type = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Mpb_LL_GetLatestEpochIDResp {
|
2015-06-24 08:20:18 +00:00
|
|
|
required Mpb_GeneralStatusCode status = 1;
|
2015-06-24 07:13:11 +00:00
|
|
|
optional Mpb_EpochID epoch_id = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Low level API: read_latest_projection() request & response
|
|
|
|
|
|
|
|
message Mpb_LL_ReadLatestProjectionReq {
|
|
|
|
required Mpb_ProjType type = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Mpb_LL_ReadLatestProjectionResp {
|
2015-06-24 08:20:18 +00:00
|
|
|
required Mpb_GeneralStatusCode status = 1;
|
2015-06-24 07:13:11 +00:00
|
|
|
optional Mpb_ProjectionV1 proj = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Low level API: read_projection() request & response
|
|
|
|
|
|
|
|
message Mpb_LL_ReadProjectionReq {
|
|
|
|
required Mpb_ProjType type = 1;
|
|
|
|
required uint32 epoch_number = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Mpb_LL_ReadProjectionResp {
|
2015-06-24 08:20:18 +00:00
|
|
|
required Mpb_GeneralStatusCode status = 1;
|
2015-06-24 07:13:11 +00:00
|
|
|
optional Mpb_ProjectionV1 proj = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Low level API: write_projection() request & response
|
|
|
|
|
|
|
|
message Mpb_LL_WriteProjectionReq {
|
|
|
|
required Mpb_ProjType type = 1;
|
|
|
|
required Mpb_ProjectionV1 proj = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Mpb_LL_WriteProjectionResp {
|
2015-06-24 08:20:18 +00:00
|
|
|
required Mpb_GeneralStatusCode status = 1;
|
2015-06-24 07:13:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Low level API: get_all_projections() request & response
|
|
|
|
|
|
|
|
message Mpb_LL_GetAllProjectionsReq {
|
|
|
|
required Mpb_ProjType type = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Mpb_LL_GetAllProjectionsResp {
|
2015-06-24 08:20:18 +00:00
|
|
|
required Mpb_GeneralStatusCode status = 1;
|
2015-06-24 07:13:11 +00:00
|
|
|
repeated Mpb_ProjectionV1 proj = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Low level API: list_all_projections() request & response
|
|
|
|
|
|
|
|
message Mpb_LL_ListAllProjectionsReq {
|
|
|
|
required Mpb_ProjType type = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Mpb_LL_ListAllProjectionsResp {
|
2015-06-24 08:20:18 +00:00
|
|
|
required Mpb_GeneralStatusCode status = 1;
|
2015-06-24 07:13:11 +00:00
|
|
|
repeated uint32 epochs = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
//////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Low API request & response wrapper
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////
|
|
|
|
|
|
|
|
message Mpb_LL_Request {
|
|
|
|
// TODO: If we wish to support pipelined requests sometime in the
|
|
|
|
// future, this is the placeholder to do it.
|
|
|
|
required bytes req_id = 1;
|
|
|
|
|
|
|
|
// The client should only define one request message. If the client
|
|
|
|
// includes multiple requests here, the server may pick/choose an
|
|
|
|
// arbitrary one.
|
|
|
|
// NOTE: The erlang protobuffs compiler doesn't support 'oneof'.
|
|
|
|
// But 'oneof' appears to be a very tiny memory optimization
|
|
|
|
// that not all languages might care about? (Erlang doesn't)
|
|
|
|
optional Mpb_EchoReq echo = 10; // Re-use from high level API
|
|
|
|
optional Mpb_AuthReq auth = 11; // Re-use from high level API
|
2015-06-24 08:20:18 +00:00
|
|
|
optional Mpb_LL_GetLatestEpochIDReq proj_gl = 12;
|
|
|
|
optional Mpb_LL_ReadLatestProjectionReq proj_rl = 13;
|
|
|
|
optional Mpb_LL_ReadProjectionReq proj_rp = 14;
|
|
|
|
optional Mpb_LL_WriteProjectionReq proj_wp = 15;
|
|
|
|
optional Mpb_LL_GetAllProjectionsReq proj_ga = 16;
|
|
|
|
optional Mpb_LL_ListAllProjectionsReq proj_la = 17;
|
2015-06-24 07:13:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Mpb_LL_Response {
|
|
|
|
// TODO: If we wish to support pipelined requests sometime in the
|
|
|
|
// future, this is the placeholder to do it.
|
|
|
|
required bytes req_id = 1;
|
|
|
|
|
|
|
|
// The server will define only one of the optional responses below.
|
|
|
|
|
|
|
|
// Generic error response, typically used when something quite
|
|
|
|
// bad/unexpected happened within the server.
|
|
|
|
// Clients should always check this response and, if defined,
|
|
|
|
// ignore any request-specific response at codes 10+.
|
|
|
|
optional Mpb_ErrorResp generic = 2;
|
|
|
|
|
|
|
|
// Specific responses.
|
|
|
|
optional Mpb_EchoResp echo = 10; // Re-use from high level API
|
|
|
|
optional Mpb_AuthResp auth = 11; // Re-use from high level API
|
2015-06-24 08:20:18 +00:00
|
|
|
optional Mpb_LL_GetLatestEpochIDResp proj_gl = 12;
|
|
|
|
optional Mpb_LL_ReadLatestProjectionResp proj_rl = 13;
|
|
|
|
optional Mpb_LL_ReadProjectionResp proj_rp = 14;
|
|
|
|
optional Mpb_LL_WriteProjectionResp proj_wp = 15;
|
|
|
|
optional Mpb_LL_GetAllProjectionsResp proj_ga = 16;
|
|
|
|
optional Mpb_LL_ListAllProjectionsResp proj_la = 17;
|
2015-06-24 07:13:11 +00:00
|
|
|
}
|