From 7ded166d7d7ee94bd95fd1b4eb043791120f7539 Mon Sep 17 00:00:00 2001 From: Chengyuan Zhang Date: Fri, 16 Oct 2020 16:10:26 -0700 Subject: [PATCH] Add empty message definitions for real-time stats service and configure service. --- src/proto/grpc/testing/messages.proto | 6 ++++++ src/proto/grpc/testing/test.proto | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/proto/grpc/testing/messages.proto b/src/proto/grpc/testing/messages.proto index e15d4a56a41..552922ea95a 100644 --- a/src/proto/grpc/testing/messages.proto +++ b/src/proto/grpc/testing/messages.proto @@ -213,6 +213,9 @@ message LoadBalancerStatsResponse { map rpcs_by_method = 3; } +// Request for retrieving a test client's real time stats. +message LoadBalancerRealTimeStatsRequest {} + // Real-time stats for RPCs sent by a test client. message LoadBalancerRealTimeStatsResponse { // The real-time total number of RPCs issued. @@ -244,3 +247,6 @@ message ClientConfigureRequest { // The collection of custom metadata to be attached to RPCs sent by the client. repeated Metadata metadata = 2; } + +// Response for updating a test client's configuration. +message ClientConfigureResponse {} diff --git a/src/proto/grpc/testing/test.proto b/src/proto/grpc/testing/test.proto index 19f471be755..a7aaa10eb53 100644 --- a/src/proto/grpc/testing/test.proto +++ b/src/proto/grpc/testing/test.proto @@ -88,7 +88,7 @@ service LoadBalancerStatsService { // A service used to obtain real-time stats for verifying LB behavior. service LoadBalancerRealTimeStatsService { // Gets the real-time stats for RPCs sent by a test client. - rpc GetClientRealTimeStats(grpc.testing.Empty) + rpc GetClientRealTimeStats(LoadBalancerRealTimeStatsRequest) returns (LoadBalancerRealTimeStatsResponse) {} } @@ -100,5 +100,6 @@ service XdsUpdateHealthService { // A service to dynamically update the configuration of an xDS test client. service XdsUpdateClientConfigureService { - rpc Configure(ClientConfigureRequest) returns (grpc.testing.Empty); + // Update the tes client's configuration. + rpc Configure(ClientConfigureRequest) returns (ClientConfigureResponse); }