| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 syntax = "proto3"; | 5 syntax = "proto3"; |
| 6 | 6 |
| 7 package logdog; | 7 package logdog; |
| 8 | 8 |
| 9 // LogStreamState is the log stream state value communicated to services. | 9 // LogStreamState is the log stream state value communicated to services. |
| 10 message LogStreamState { | 10 message LogStreamState { |
| 11 // The log stream's project. |
| 12 string project = 1; |
| 11 // Path is the log stream's path. | 13 // Path is the log stream's path. |
| 12 string path = 1; | 14 string path = 2; |
| 15 |
| 13 // The log stream's secret. | 16 // The log stream's secret. |
| 14 // | 17 // |
| 15 // Note that the secret is returned! This is okay, since this endpoint is only | 18 // Note that the secret is returned! This is okay, since this endpoint is only |
| 16 // accessible to trusted services. The secret can be cached by services to | 19 // accessible to trusted services. The secret can be cached by services to |
| 17 // validate stream information without needing to ping the Coordinator in | 20 // validate stream information without needing to ping the Coordinator in |
| 18 // between each update. | 21 // between each update. |
| 19 bytes secret = 2; | 22 bytes secret = 3; |
| 20 | 23 |
| 21 // ProtoVersion is the protobuf version for this stream. | 24 // ProtoVersion is the protobuf version for this stream. |
| 22 » string proto_version = 3; | 25 » string proto_version = 4; |
| 23 | 26 |
| 24 // The stream index of the log stream's terminal message. If the value i
s -1, | 27 // The stream index of the log stream's terminal message. If the value i
s -1, |
| 25 // the log is still streaming. | 28 // the log is still streaming. |
| 26 » int64 terminal_index = 4; | 29 » int64 terminal_index = 5; |
| 27 | 30 |
| 28 // If the log stream has been archived. | 31 // If the log stream has been archived. |
| 29 » bool archived = 5; | 32 » bool archived = 6; |
| 30 // If the log stream has been purged. | 33 // If the log stream has been purged. |
| 31 » bool purged = 6; | 34 » bool purged = 7; |
| 32 } | 35 } |
| OLD | NEW |