syntax="proto3";packagerta.toolkit.api.chunk_service;import"protos/API/model_data.proto";import"google/protobuf/wrappers.proto";optioncsharp_namespace="MAT.OCS.RTA.Toolkit.API.DataService";// Request messages for WriteDataStream.messageWriteDataStreamMessage{oneoftype{stringdata_identity=1;// Data identity to write. Format and length is restricted based on the backing store.stringflush_marker=2;// Requests a flush, to be acknowledged with this marker when completed. Don't flush too frequently or write and read performance will drop off.rta.model.data.TimestampedDatatimestamped_data=3;// Timestamped Data to write. Note that individual data items are written, but they are read back in lists.rta.model.data.PeriodicDataperiodic_data=4;// Periodic Data to write. Note that individual data items are written, but they are read back in lists.rta.model.data.RowDatarow_data=5;// Row Data to write. Note that individual data items are written, but they are read back in lists.rta.model.data.Eventevent=6;// Event to write. Note that individual data items are written, but they are read back in lists.}}// Response messages for WriteDataStream.messageWriteDataStreamResponseMessage{oneoftype{stringflush_completed=1;// Indicates that a requested flush is completd by echoing back the flush marker.}}// Request for ReadEventsStream.messageReadDataStreamRequest{stringdata_identity=1;// Data identity to read.google.protobuf.Int64Valuestart_time=2;// Optional start time to include in the request, in nanoseconds since the Unix epoch (inclusive). May over-read before this point.google.protobuf.Int64Valueend_time=3;// Optional end time to include in the request, in nanoseconds since the Unix epoch (inclusive). May over-read after this point.}// Request for ReadTimestampedDataStream / ReadPeriodicDataStream / ReadRowDataStream.messageReadChannelDataStreamRequest{stringdata_identity=1;// Data identity to read.google.protobuf.Int64Valuestart_time=2;// Optional start time to include in the request, in nanoseconds since the Unix epoch (inclusive). May over-read before this point.google.protobuf.Int64Valueend_time=3;// Optional end time to include in the request, in nanoseconds since the Unix epoch (inclusive). May over-read after this point.stringchannels=4;// Channels expression, as used in the REST API - e.g. "-5,7,B-D,14-"}// Writes RTA data to storage.serviceDataWriter{// Writes a stream of RTA data.rpcWriteDataStream(streamWriteDataStreamMessage)returns(streamWriteDataStreamResponseMessage);}// Reads RTA data from storage.serviceDataReader{// Reads timestamped data.rpcReadTimestampedDataStream(ReadChannelDataStreamRequest)returns(streamrta.model.data.TimestampedDataList);// Reads periodic data.rpcReadPeriodicDataStream(ReadChannelDataStreamRequest)returns(streamrta.model.data.PeriodicDataList);// Reads row data.rpcReadRowDataStream(ReadChannelDataStreamRequest)returns(streamrta.model.data.RowDataList);// Reads events.rpcReadEventsStream(ReadDataStreamRequest)returns(streamrta.model.data.EventsList);}