From 8afd8532b1e05b55bed4d08ee2e11d64c79550d8 Mon Sep 17 00:00:00 2001 From: Yi Situ <yisitu@google.com> Date: Fri, 9 Oct 2020 16:30:15 -0700 Subject: [PATCH] Make proto field annotations lint-able. PiperOrigin-RevId: 336387125 Change-Id: I4972d19337d3558ac8242e2e4cd943c1c46966af --- tensorflow/core/profiler/profiler_service.proto | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tensorflow/core/profiler/profiler_service.proto b/tensorflow/core/profiler/profiler_service.proto index 69ccf04e304..f32b10f01bd 100644 --- a/tensorflow/core/profiler/profiler_service.proto +++ b/tensorflow/core/profiler/profiler_service.proto @@ -29,6 +29,7 @@ message ToolRequestOptions { bool save_to_repo = 3; } +// Next-ID: 9 message ProfileRequest { // In future, the caller will be able to customize when profiling starts and // stops. For now, it collects `duration_ms` milliseconds worth of data. @@ -61,7 +62,6 @@ message ProfileRequest { // In future, the caller will indicate which TF session is being profiled, and // only data relating to that program will be returned. For now, we assume // all activity during the profiling period is relevant. - // next-field: 9 } message ProfileToolData { @@ -73,6 +73,7 @@ message ProfileToolData { bytes data = 2; } +// Next-ID: 8 message ProfileResponse { // Data payload for each required tools. repeated ProfileToolData tool_data = 6; @@ -82,7 +83,6 @@ message ProfileResponse { bool empty_trace = 7; reserved 1, 2, 3, 4, 5; - // next-field: 8 } message TerminateRequest { @@ -92,6 +92,7 @@ message TerminateRequest { message TerminateResponse {} +// Next-ID: 4 message MonitorRequest { // Duration for which to profile between each update. uint64 duration_ms = 1; @@ -106,10 +107,9 @@ message MonitorRequest { int32 monitoring_level = 2; // True to display timestamp in monitoring result. bool timestamp = 3; - - // next-field: 4 } +// Next-ID: 11 message MonitorResponse { // Properly formatted string data that can be directly returned back to user. string data = 1; @@ -118,6 +118,4 @@ message MonitorResponse { ProfilerServiceMonitorResult monitor_result = 10; reserved 2, 3, 4, 5, 6, 7, 8, 9; - - // next-field: 11 }