123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- syntax = "proto3";
- package google.devtools.build.v1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/devtools/build/v1/build_events.proto";
- import "google/protobuf/duration.proto";
- import "google/protobuf/empty.proto";
- option cc_enable_arenas = true;
- option go_package = "google.golang.org/genproto/googleapis/devtools/build/v1;build";
- option java_multiple_files = true;
- option java_outer_classname = "BackendProto";
- option java_package = "com.google.devtools.build.v1";
- option php_namespace = "Google\\Cloud\\Build\\V1";
- service PublishBuildEvent {
- option (google.api.default_host) = "buildeventservice.googleapis.com";
- option (google.api.oauth_scopes) =
- "https://www.googleapis.com/auth/cloud-platform";
-
-
-
-
-
-
-
-
-
-
- rpc PublishLifecycleEvent(PublishLifecycleEventRequest)
- returns (google.protobuf.Empty) {
- option (google.api.http) = {
- post: "/v1/projects/{project_id=*}/lifecycleEvents:publish"
- body: "*"
- additional_bindings { post: "/v1/lifecycleEvents:publish" body: "*" }
- };
- }
-
-
- rpc PublishBuildToolEventStream(stream PublishBuildToolEventStreamRequest)
- returns (stream PublishBuildToolEventStreamResponse) {
- option (google.api.http) = {
- post: "/v1/projects/{project_id=*}/events:publish"
- body: "*"
- additional_bindings { post: "/v1/events:publish" body: "*" }
- };
- option (google.api.method_signature) =
- "ordered_build_event,notification_keywords,project_id";
- }
- }
- message PublishLifecycleEventRequest {
-
-
-
- enum ServiceLevel {
-
-
- NONINTERACTIVE = 0;
-
- INTERACTIVE = 1;
- }
-
- ServiceLevel service_level = 1;
-
-
- OrderedBuildEvent build_event = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
- google.protobuf.Duration stream_timeout = 3;
-
-
-
-
-
- repeated string notification_keywords = 4;
-
-
-
- string project_id = 6 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
- bool check_preceding_lifecycle_events_present = 7;
- }
- message PublishBuildToolEventStreamResponse {
-
- StreamId stream_id = 1;
-
- int64 sequence_number = 2;
- }
- message OrderedBuildEvent {
-
- StreamId stream_id = 1;
-
-
-
- int64 sequence_number = 2;
-
- BuildEvent event = 3;
- }
- message PublishBuildToolEventStreamRequest {
-
-
- OrderedBuildEvent ordered_build_event = 4
- [(google.api.field_behavior) = REQUIRED];
-
-
-
-
- repeated string notification_keywords = 5;
-
-
-
- string project_id = 6 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
- bool check_preceding_lifecycle_events_present = 7;
- }
|