From 9eebd78215cdb8a43a2f62d35c1e0e6ab9e260a9 Mon Sep 17 00:00:00 2001 From: Build System Date: Wed, 13 Nov 2024 14:39:42 +0000 Subject: [PATCH] 'Protobuf files change' --- .../services/daily/v2/get_daily_scalar.proto | 1 - .../apis/services/tick/v2/get_tick.proto | 16 ++++----- .../apis/services/tick/v2/set_tick.proto | 34 +++++++++---------- 3 files changed, 25 insertions(+), 26 deletions(-) diff --git a/src/systemathics/apis/services/daily/v2/get_daily_scalar.proto b/src/systemathics/apis/services/daily/v2/get_daily_scalar.proto index aaae101..17e5c9a 100644 --- a/src/systemathics/apis/services/daily/v2/get_daily_scalar.proto +++ b/src/systemathics/apis/services/daily/v2/get_daily_scalar.proto @@ -25,7 +25,6 @@ syntax = "proto3"; import "google/protobuf/empty.proto"; import "google/api/annotations.proto"; import "google/type/date.proto"; -import "google/protobuf/struct.proto"; import "systemathics/apis/type/shared/v1/asset.proto"; import "systemathics/apis/type/shared/v1/identifier.proto"; diff --git a/src/systemathics/apis/services/tick/v2/get_tick.proto b/src/systemathics/apis/services/tick/v2/get_tick.proto index 1b76e34..ca6e153 100644 --- a/src/systemathics/apis/services/tick/v2/get_tick.proto +++ b/src/systemathics/apis/services/tick/v2/get_tick.proto @@ -46,10 +46,10 @@ service TickService // Gets tick historical data timeseries by identifier using streaming - rpc TickMatrixRowStream(TickRequest) returns (stream TickMatrixRowStreamResponse) + rpc TickVectorStream(TickRequest) returns (stream TickVectorStreamResponse) { option (google.api.http) = { - get: "/v2/tick_matrix_row/" + get: "/v2/tick_vector/" }; } @@ -145,7 +145,7 @@ message TickScalarStreamResponse // Represents the tick scalar stream response. -message TickMatrixRowStreamResponse +message TickVectorStreamResponse { oneof payload { @@ -153,7 +153,7 @@ message TickMatrixRowStreamResponse TickStreamFields info = 1; // The mapping data. Issued in the following frames. - TickMatrixRowStreamItem data = 2; + TickVectorStreamItem data = 2; } } @@ -176,12 +176,12 @@ message TickScalarStreamItem } // Represents the data part of a tick scalar stream response. -message TickMatrixRowStreamItem +message TickVectorStreamItem { // The data date. google.type.DateTime datetime = 1; - // The matrix row key + // The vector key string key = 2; // The data. Lenght of the array is the same as the fields. @@ -212,8 +212,8 @@ message TickFieldsResponse // The collection containing items values for scalars. repeated TickFieldsItemResponse scalars = 1; - // The collection containing items values for matrix rows. - repeated TickFieldsItemResponse matrix_rows = 2; + // The collection containing items values for vectors. + repeated TickFieldsItemResponse vectors = 2; } // Represents a links between an asset and a provider. diff --git a/src/systemathics/apis/services/tick/v2/set_tick.proto b/src/systemathics/apis/services/tick/v2/set_tick.proto index e2a2dca..c85ebc8 100644 --- a/src/systemathics/apis/services/tick/v2/set_tick.proto +++ b/src/systemathics/apis/services/tick/v2/set_tick.proto @@ -45,11 +45,11 @@ service SetTickService }; } - // Sets tick matrix row timeseries. - rpc WriteTickMatrixRow(stream SetTickMatrixRowRequest) returns (google.protobuf.Empty) + // Sets tick vector timeseries. + rpc WriteTickVector(stream SetTickVectorRequest) returns (google.protobuf.Empty) { option (google.api.http) = { - post: "/v2/tick_matrix_row" + post: "/v2/tick_vector" }; } @@ -61,11 +61,11 @@ service SetTickService }; } - // Update tick matrix rows timeseries. - rpc UpdateTickMatrixRow(stream SetTickMatrixRowRequest) returns (google.protobuf.Empty) + // Update tick vectors timeseries. + rpc UpdateTickVector(stream SetTickVectorRequest) returns (google.protobuf.Empty) { option (google.api.http) = { - put: "/v2/tick_matrix_row" + put: "/v2/tick_vector" }; } @@ -78,10 +78,10 @@ service SetTickService } // Delete tick scalar timeseries. - rpc DeleteTickMatrixRow(DeleteTickMatrixRowRequest) returns (google.protobuf.Empty) + rpc DeleteTickVector(DeleteTickVectorRequest) returns (google.protobuf.Empty) { option (google.api.http) = { - delete: "/v2/tick_matrix_row" + delete: "/v2/tick_vector" }; } } @@ -101,7 +101,7 @@ message SetTickScalarRequest } // The required input to request the SetTickScalar endpoint -message SetTickMatrixRowRequest +message SetTickVectorRequest { oneof payload { @@ -109,7 +109,7 @@ message SetTickMatrixRowRequest SetTickInfo info = 1; // The mapping data - SetTickMatrixRowData data = 2; + SetTickVectorData data = 2; } } @@ -128,7 +128,7 @@ message DeleteTickScalarRequest // The required input to request DeleteTickScalar. -message DeleteTickMatrixRowRequest +message DeleteTickVectorRequest { // [Mandatory] The instrument identifiers: a bloomberg ticker and an asset type systemathics.apis.type.shared.v1.Identifier identifier = 1; @@ -137,7 +137,7 @@ message DeleteTickMatrixRowRequest repeated string fields = 2; // [Mandatory] The keys to be deleted. - repeated MatrixRowKey keys = 3; + repeated VectorKey keys = 3; } // The required input to request the GetTickByDate endpoint @@ -160,23 +160,23 @@ message SetTickScalarData repeated double data = 2; } -// Represent the key for a matrix row. -message MatrixRowKey { +// Represent the key for a vector. +message VectorKey { // [Mandatory] The date used to request data. google.type.DateTime datetime = 1; - // [Mandatory] The matrix key. + // [Mandatory] The vector key. string key = 2; } // Represent the data to be added to the data scalar timeseries. -message SetTickMatrixRowData +message SetTickVectorData { // [Mandatory] The date used to request data. google.type.DateTime datetime = 1; - // [Mandatory] The matrix key. + // [Mandatory] The vector key. string key = 2; // [Mandatory] The data.