@@ -28,6 +28,7 @@ option go_package = "google.golang.org/genproto/googleapis/devtools/build/v1;bui
2828option java_multiple_files = true ;
2929option java_outer_classname = "BackendProto" ;
3030option java_package = "com.google.devtools.build.v1" ;
31+ option php_namespace = "Google\\Cloud\\Build\\V1" ;
3132
3233// A service for publishing BuildEvents. BuildEvents are generated by Build
3334// Systems to record actions taken during a Build. Events occur in streams,
@@ -46,7 +47,8 @@ option java_package = "com.google.devtools.build.v1";
4647// more than one build tool stream for an invocation attempt of a build.
4748service PublishBuildEvent {
4849 option (google.api.default_host ) = "buildeventservice.googleapis.com" ;
49- option (google.api.oauth_scopes ) = "https://www.googleapis.com/auth/cloud-platform" ;
50+ option (google.api.oauth_scopes ) =
51+ "https://www.googleapis.com/auth/cloud-platform" ;
5052
5153 // Publish a build event stating the new state of a build (typically from the
5254 // build queue). The BuildEnqueued event must be publishd before all other
@@ -58,29 +60,26 @@ service PublishBuildEvent {
5860 // The commit status of the request is reported by the RPC's util_status()
5961 // function. The error code is the canoncial error code defined in
6062 // //util/task/codes.proto.
61- rpc PublishLifecycleEvent (PublishLifecycleEventRequest ) returns (google.protobuf.Empty ) {
63+ rpc PublishLifecycleEvent (PublishLifecycleEventRequest )
64+ returns (google.protobuf.Empty ) {
6265 option (google.api.http ) = {
6366 post : "/v1/projects/{project_id=*}/lifecycleEvents:publish"
6467 body : "*"
65- additional_bindings {
66- post : "/v1/lifecycleEvents:publish"
67- body : "*"
68- }
68+ additional_bindings { post : "/v1/lifecycleEvents:publish" body : "*" }
6969 };
7070 }
7171
7272 // Publish build tool events belonging to the same stream to a backend job
7373 // using bidirectional streaming.
74- rpc PublishBuildToolEventStream (stream PublishBuildToolEventStreamRequest ) returns (stream PublishBuildToolEventStreamResponse ) {
74+ rpc PublishBuildToolEventStream (stream PublishBuildToolEventStreamRequest )
75+ returns (stream PublishBuildToolEventStreamResponse ) {
7576 option (google.api.http ) = {
7677 post : "/v1/projects/{project_id=*}/events:publish"
7778 body : "*"
78- additional_bindings {
79- post : "/v1/events:publish"
80- body : "*"
81- }
79+ additional_bindings { post : "/v1/events:publish" body : "*" }
8280 };
83- option (google.api.method_signature ) = "ordered_build_event,notification_keywords,project_id" ;
81+ option (google.api.method_signature ) =
82+ "ordered_build_event,notification_keywords,project_id" ;
8483 }
8584}
8685
@@ -106,8 +105,8 @@ message PublishLifecycleEventRequest {
106105 // The interactivity of this build.
107106 ServiceLevel service_level = 1 ;
108107
109- // Required. The lifecycle build event. If this is a build tool event, the RPC will fail
110- // with INVALID_REQUEST.
108+ // Required. The lifecycle build event. If this is a build tool event, the RPC
109+ // will fail with INVALID_REQUEST.
111110 OrderedBuildEvent build_event = 2 [(google.api.field_behavior ) = REQUIRED ];
112111
113112 // If the next event for this build or invocation (depending on the event
@@ -158,7 +157,8 @@ message OrderedBuildEvent {
158157message PublishBuildToolEventStreamRequest {
159158 // Required. The build event with position info.
160159 // New publishing clients should use this field rather than the 3 above.
161- OrderedBuildEvent ordered_build_event = 4 [(google.api.field_behavior ) = REQUIRED ];
160+ OrderedBuildEvent ordered_build_event = 4
161+ [(google.api.field_behavior ) = REQUIRED ];
162162
163163 // The keywords to be attached to the notification which notifies the start
164164 // of a new build event stream. BES only reads this field when sequence_number
0 commit comments