Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Unified Diff: components/offline_pages/core/prefetch/proto/operation.proto

Issue 2940393002: [Offline Prefetch] Use proto2 syntax for offline prefetch proto (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/offline_pages/core/prefetch/proto/operation.proto
diff --git a/components/offline_pages/core/prefetch/proto/operation.proto b/components/offline_pages/core/prefetch/proto/operation.proto
index 77558d9fb65fdcfad504fb329769abb12c89afe3..db0b1eeedf4dfedcc77eecfaf71e53d3207b2175 100644
--- a/components/offline_pages/core/prefetch/proto/operation.proto
+++ b/components/offline_pages/core/prefetch/proto/operation.proto
@@ -2,11 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-syntax = "proto3";
+syntax = "proto2";
option optimize_for = LITE_RUNTIME;
package offline_pages.proto;
-;
import "any.proto";
import "status.proto";
@@ -16,18 +15,18 @@ import "status.proto";
message Operation {
// The server-assigned name, which is only unique within the same service that
// originally returns it.
- string name = 1;
+ optional string name = 1;
// Service-specific metadata associated with the operation. It typically
// contains progress information and common metadata such as create time.
// Some services might not provide such metadata. Any method that returns a
// long-running operation should document the metadata type, if any.
- Any metadata = 2;
+ optional Any metadata = 2;
// If the value is 'false', it means the operation is still in progress.
// If true, the operation is completed, and either 'error' or 'response' is
// available.
- bool done = 3;
+ optional bool done = 3;
// The operation result, which can be either an 'error' or a valid 'response'.
// If 'done' == 'false', neither 'error' nor 'response' is set.

Powered by Google App Engine
This is Rietveld 408576698