From d2ce7aba5f93d349f0eefaf649ea4c1cf3de24c1 Mon Sep 17 00:00:00 2001 From: Jakob Buchgraber Date: Tue, 11 Jul 2017 18:31:39 +0200 Subject: third_party/googleapis: Update BES protos to latest version. Change-Id: I8b0f4e7547358704d038db312795c58acaaac4a7 --- .../google/devtools/build/v1/build_events.proto | 16 ------------- .../google/devtools/build/v1/build_status.proto | 3 +++ .../devtools/build/v1/publish_build_event.proto | 28 ++++++++++++++++++++-- 3 files changed, 29 insertions(+), 18 deletions(-) (limited to 'third_party/googleapis') diff --git a/third_party/googleapis/google/devtools/build/v1/build_events.proto b/third_party/googleapis/google/devtools/build/v1/build_events.proto index e745aee828..c3a1faed8e 100644 --- a/third_party/googleapis/google/devtools/build/v1/build_events.proto +++ b/third_party/googleapis/google/devtools/build/v1/build_events.proto @@ -43,14 +43,6 @@ message BuildEvent { // Notification that an invocation attempt has finished. message InvocationAttemptFinished { - // The status of the build request. - // If OK, the build request was run, though this does not mean the - // requested build tool succeeded. "exit_code" will be set to the - // exit code of the build tool. - // If not OK, the build request was not successfully executed. - // "exit_code" will not be set. - google.rpc.Status status = 1; - // The exit code of the build tool. google.protobuf.Int32Value exit_code = 2; @@ -168,12 +160,8 @@ message StreamId { // A component that builds something. TOOL = 3; - - DEPRECATED = 4; } - int64 project_number = 5; - // The id of a Build message. string build_id = 1; @@ -183,10 +171,6 @@ message StreamId { // The component that emitted this event. BuildComponent component = 3; - - // The unique invocation ID within this build. - // It should be the same as {invocation_id} below during the migration. - string invocation = 4; } // The type of console output stream. diff --git a/third_party/googleapis/google/devtools/build/v1/build_status.proto b/third_party/googleapis/google/devtools/build/v1/build_status.proto index 3c2cbb7e67..f88296c9cd 100644 --- a/third_party/googleapis/google/devtools/build/v1/build_status.proto +++ b/third_party/googleapis/google/devtools/build/v1/build_status.proto @@ -60,4 +60,7 @@ message BuildStatus { // The end result. Result result = 1; + + // Fine-grained diagnostic information to complement the status. + google.protobuf.Any details = 2; } diff --git a/third_party/googleapis/google/devtools/build/v1/publish_build_event.proto b/third_party/googleapis/google/devtools/build/v1/publish_build_event.proto index 7589602ad9..7d7b1cd24c 100644 --- a/third_party/googleapis/google/devtools/build/v1/publish_build_event.proto +++ b/third_party/googleapis/google/devtools/build/v1/publish_build_event.proto @@ -17,9 +17,7 @@ syntax = "proto3"; package google.devtools.build.v1; import "google/api/annotations.proto"; -import "google/api/auth.proto"; import "google/devtools/build/v1/build_events.proto"; -import "google/protobuf/any.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; @@ -134,3 +132,29 @@ message OrderedBuildEvent { // The actual event. BuildEvent event = 3; } + +message PublishBuildToolEventStreamRequest { + // The fist 3 fields are identical to OrderedBuildEvent so we can have wire- + // compatibility when migrating BES publishers. + + // Which build event stream this event belongs to. + google.devtools.build.v1.StreamId stream_id = 1 [deprecated = true]; + + // The position of this event in the stream. The sequence numbers for a build + // event stream should be a sequence of consecutive natural numbers starting + // from one. (1, 2, 3, ...) + int64 sequence_number = 2 [deprecated = true]; + + // The actual event. + google.devtools.build.v1.BuildEvent event = 3 [deprecated = true]; + + // The build event with position info. + // New publishing clients should use this field rather than the 3 above. + OrderedBuildEvent ordered_build_event = 4; + + // The keywords to be attached to the notification which notifies the start + // of a new build event stream. BES only reads this field when sequence_number + // or ordered_build_event.sequence_number is 1 in this message. If this field + // is empty, BES will not publish notification messages for this stream. + repeated string notification_keywords = 5; +} -- cgit v1.2.3