...

Source file src/google.golang.org/genproto/googleapis/devtools/build/v1/publish_build_event.pb.go

Documentation: google.golang.org/genproto/googleapis/devtools/build/v1

     1  // Copyright 2023 Google LLC
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.26.0
    18  // 	protoc        v3.21.9
    19  // source: google/devtools/build/v1/publish_build_event.proto
    20  
    21  package build
    22  
    23  import (
    24  	context "context"
    25  	reflect "reflect"
    26  	sync "sync"
    27  
    28  	_ "google.golang.org/genproto/googleapis/api/annotations"
    29  	grpc "google.golang.org/grpc"
    30  	codes "google.golang.org/grpc/codes"
    31  	status "google.golang.org/grpc/status"
    32  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    33  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    34  	durationpb "google.golang.org/protobuf/types/known/durationpb"
    35  	emptypb "google.golang.org/protobuf/types/known/emptypb"
    36  )
    37  
    38  const (
    39  	// Verify that this generated code is sufficiently up-to-date.
    40  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    41  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    42  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    43  )
    44  
    45  // The service level of the build request. Backends only uses this value when
    46  // the BuildEnqueued event is published to determine what level of service
    47  // this build should receive.
    48  type PublishLifecycleEventRequest_ServiceLevel int32
    49  
    50  const (
    51  	// Non-interactive builds can tolerate longer event latencies. This is the
    52  	// default ServiceLevel if callers do not specify one.
    53  	PublishLifecycleEventRequest_NONINTERACTIVE PublishLifecycleEventRequest_ServiceLevel = 0
    54  	// The events of an interactive build should be delivered with low latency.
    55  	PublishLifecycleEventRequest_INTERACTIVE PublishLifecycleEventRequest_ServiceLevel = 1
    56  )
    57  
    58  // Enum value maps for PublishLifecycleEventRequest_ServiceLevel.
    59  var (
    60  	PublishLifecycleEventRequest_ServiceLevel_name = map[int32]string{
    61  		0: "NONINTERACTIVE",
    62  		1: "INTERACTIVE",
    63  	}
    64  	PublishLifecycleEventRequest_ServiceLevel_value = map[string]int32{
    65  		"NONINTERACTIVE": 0,
    66  		"INTERACTIVE":    1,
    67  	}
    68  )
    69  
    70  func (x PublishLifecycleEventRequest_ServiceLevel) Enum() *PublishLifecycleEventRequest_ServiceLevel {
    71  	p := new(PublishLifecycleEventRequest_ServiceLevel)
    72  	*p = x
    73  	return p
    74  }
    75  
    76  func (x PublishLifecycleEventRequest_ServiceLevel) String() string {
    77  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    78  }
    79  
    80  func (PublishLifecycleEventRequest_ServiceLevel) Descriptor() protoreflect.EnumDescriptor {
    81  	return file_google_devtools_build_v1_publish_build_event_proto_enumTypes[0].Descriptor()
    82  }
    83  
    84  func (PublishLifecycleEventRequest_ServiceLevel) Type() protoreflect.EnumType {
    85  	return &file_google_devtools_build_v1_publish_build_event_proto_enumTypes[0]
    86  }
    87  
    88  func (x PublishLifecycleEventRequest_ServiceLevel) Number() protoreflect.EnumNumber {
    89  	return protoreflect.EnumNumber(x)
    90  }
    91  
    92  // Deprecated: Use PublishLifecycleEventRequest_ServiceLevel.Descriptor instead.
    93  func (PublishLifecycleEventRequest_ServiceLevel) EnumDescriptor() ([]byte, []int) {
    94  	return file_google_devtools_build_v1_publish_build_event_proto_rawDescGZIP(), []int{0, 0}
    95  }
    96  
    97  // Publishes 'lifecycle events' that update the high-level state of a build:
    98  //   - BuildEnqueued: When a build is scheduled.
    99  //   - InvocationAttemptStarted: When work for a build starts; there can be
   100  //     multiple invocations for a build (e.g. retries).
   101  //   - InvocationAttemptCompleted: When work for a build finishes.
   102  //   - BuildFinished: When a build is finished.
   103  type PublishLifecycleEventRequest struct {
   104  	state         protoimpl.MessageState
   105  	sizeCache     protoimpl.SizeCache
   106  	unknownFields protoimpl.UnknownFields
   107  
   108  	// The interactivity of this build.
   109  	ServiceLevel PublishLifecycleEventRequest_ServiceLevel `protobuf:"varint,1,opt,name=service_level,json=serviceLevel,proto3,enum=google.devtools.build.v1.PublishLifecycleEventRequest_ServiceLevel" json:"service_level,omitempty"`
   110  	// Required. The lifecycle build event. If this is a build tool event, the RPC
   111  	// will fail with INVALID_REQUEST.
   112  	BuildEvent *OrderedBuildEvent `protobuf:"bytes,2,opt,name=build_event,json=buildEvent,proto3" json:"build_event,omitempty"`
   113  	// If the next event for this build or invocation (depending on the event
   114  	// type) hasn't been published after this duration from when {build_event}
   115  	// is written to BES, consider this stream expired. If this field is not set,
   116  	// BES backend will use its own default value.
   117  	StreamTimeout *durationpb.Duration `protobuf:"bytes,3,opt,name=stream_timeout,json=streamTimeout,proto3" json:"stream_timeout,omitempty"`
   118  	// Additional information about a build request. These are define by the event
   119  	// publishers, and the Build Event Service does not validate or interpret
   120  	// them. They are used while notifying internal systems of new builds and
   121  	// invocations if the OrderedBuildEvent.event type is
   122  	// BuildEnqueued/InvocationAttemptStarted.
   123  	NotificationKeywords []string `protobuf:"bytes,4,rep,name=notification_keywords,json=notificationKeywords,proto3" json:"notification_keywords,omitempty"`
   124  	// Required. The project this build is associated with.
   125  	// This should match the project used for the initial call to
   126  	// PublishLifecycleEvent (containing a BuildEnqueued message).
   127  	ProjectId string `protobuf:"bytes,6,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
   128  	// Whether to require a previously received matching parent lifecycle event
   129  	// for the current request's event before continuing processing.
   130  	//   - InvocationAttemptStarted and BuildFinished events require a BuildEnqueued
   131  	//     parent event.
   132  	//   - InvocationAttemptFinished events require an InvocationAttemptStarted
   133  	//     parent event.
   134  	CheckPrecedingLifecycleEventsPresent bool `protobuf:"varint,7,opt,name=check_preceding_lifecycle_events_present,json=checkPrecedingLifecycleEventsPresent,proto3" json:"check_preceding_lifecycle_events_present,omitempty"`
   135  }
   136  
   137  func (x *PublishLifecycleEventRequest) Reset() {
   138  	*x = PublishLifecycleEventRequest{}
   139  	if protoimpl.UnsafeEnabled {
   140  		mi := &file_google_devtools_build_v1_publish_build_event_proto_msgTypes[0]
   141  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   142  		ms.StoreMessageInfo(mi)
   143  	}
   144  }
   145  
   146  func (x *PublishLifecycleEventRequest) String() string {
   147  	return protoimpl.X.MessageStringOf(x)
   148  }
   149  
   150  func (*PublishLifecycleEventRequest) ProtoMessage() {}
   151  
   152  func (x *PublishLifecycleEventRequest) ProtoReflect() protoreflect.Message {
   153  	mi := &file_google_devtools_build_v1_publish_build_event_proto_msgTypes[0]
   154  	if protoimpl.UnsafeEnabled && x != nil {
   155  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   156  		if ms.LoadMessageInfo() == nil {
   157  			ms.StoreMessageInfo(mi)
   158  		}
   159  		return ms
   160  	}
   161  	return mi.MessageOf(x)
   162  }
   163  
   164  // Deprecated: Use PublishLifecycleEventRequest.ProtoReflect.Descriptor instead.
   165  func (*PublishLifecycleEventRequest) Descriptor() ([]byte, []int) {
   166  	return file_google_devtools_build_v1_publish_build_event_proto_rawDescGZIP(), []int{0}
   167  }
   168  
   169  func (x *PublishLifecycleEventRequest) GetServiceLevel() PublishLifecycleEventRequest_ServiceLevel {
   170  	if x != nil {
   171  		return x.ServiceLevel
   172  	}
   173  	return PublishLifecycleEventRequest_NONINTERACTIVE
   174  }
   175  
   176  func (x *PublishLifecycleEventRequest) GetBuildEvent() *OrderedBuildEvent {
   177  	if x != nil {
   178  		return x.BuildEvent
   179  	}
   180  	return nil
   181  }
   182  
   183  func (x *PublishLifecycleEventRequest) GetStreamTimeout() *durationpb.Duration {
   184  	if x != nil {
   185  		return x.StreamTimeout
   186  	}
   187  	return nil
   188  }
   189  
   190  func (x *PublishLifecycleEventRequest) GetNotificationKeywords() []string {
   191  	if x != nil {
   192  		return x.NotificationKeywords
   193  	}
   194  	return nil
   195  }
   196  
   197  func (x *PublishLifecycleEventRequest) GetProjectId() string {
   198  	if x != nil {
   199  		return x.ProjectId
   200  	}
   201  	return ""
   202  }
   203  
   204  func (x *PublishLifecycleEventRequest) GetCheckPrecedingLifecycleEventsPresent() bool {
   205  	if x != nil {
   206  		return x.CheckPrecedingLifecycleEventsPresent
   207  	}
   208  	return false
   209  }
   210  
   211  // States which event has been committed. Any failure to commit will cause
   212  // RPC errors, hence not recorded by this proto.
   213  type PublishBuildToolEventStreamResponse struct {
   214  	state         protoimpl.MessageState
   215  	sizeCache     protoimpl.SizeCache
   216  	unknownFields protoimpl.UnknownFields
   217  
   218  	// The stream that contains this event.
   219  	StreamId *StreamId `protobuf:"bytes,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"`
   220  	// The sequence number of this event that has been committed.
   221  	SequenceNumber int64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"`
   222  }
   223  
   224  func (x *PublishBuildToolEventStreamResponse) Reset() {
   225  	*x = PublishBuildToolEventStreamResponse{}
   226  	if protoimpl.UnsafeEnabled {
   227  		mi := &file_google_devtools_build_v1_publish_build_event_proto_msgTypes[1]
   228  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   229  		ms.StoreMessageInfo(mi)
   230  	}
   231  }
   232  
   233  func (x *PublishBuildToolEventStreamResponse) String() string {
   234  	return protoimpl.X.MessageStringOf(x)
   235  }
   236  
   237  func (*PublishBuildToolEventStreamResponse) ProtoMessage() {}
   238  
   239  func (x *PublishBuildToolEventStreamResponse) ProtoReflect() protoreflect.Message {
   240  	mi := &file_google_devtools_build_v1_publish_build_event_proto_msgTypes[1]
   241  	if protoimpl.UnsafeEnabled && x != nil {
   242  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   243  		if ms.LoadMessageInfo() == nil {
   244  			ms.StoreMessageInfo(mi)
   245  		}
   246  		return ms
   247  	}
   248  	return mi.MessageOf(x)
   249  }
   250  
   251  // Deprecated: Use PublishBuildToolEventStreamResponse.ProtoReflect.Descriptor instead.
   252  func (*PublishBuildToolEventStreamResponse) Descriptor() ([]byte, []int) {
   253  	return file_google_devtools_build_v1_publish_build_event_proto_rawDescGZIP(), []int{1}
   254  }
   255  
   256  func (x *PublishBuildToolEventStreamResponse) GetStreamId() *StreamId {
   257  	if x != nil {
   258  		return x.StreamId
   259  	}
   260  	return nil
   261  }
   262  
   263  func (x *PublishBuildToolEventStreamResponse) GetSequenceNumber() int64 {
   264  	if x != nil {
   265  		return x.SequenceNumber
   266  	}
   267  	return 0
   268  }
   269  
   270  // Build event with contextual information about the stream it belongs to and
   271  // its position in that stream.
   272  type OrderedBuildEvent struct {
   273  	state         protoimpl.MessageState
   274  	sizeCache     protoimpl.SizeCache
   275  	unknownFields protoimpl.UnknownFields
   276  
   277  	// Which build event stream this event belongs to.
   278  	StreamId *StreamId `protobuf:"bytes,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"`
   279  	// The position of this event in the stream. The sequence numbers for a build
   280  	// event stream should be a sequence of consecutive natural numbers starting
   281  	// from one. (1, 2, 3, ...)
   282  	SequenceNumber int64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"`
   283  	// The actual event.
   284  	Event *BuildEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"`
   285  }
   286  
   287  func (x *OrderedBuildEvent) Reset() {
   288  	*x = OrderedBuildEvent{}
   289  	if protoimpl.UnsafeEnabled {
   290  		mi := &file_google_devtools_build_v1_publish_build_event_proto_msgTypes[2]
   291  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   292  		ms.StoreMessageInfo(mi)
   293  	}
   294  }
   295  
   296  func (x *OrderedBuildEvent) String() string {
   297  	return protoimpl.X.MessageStringOf(x)
   298  }
   299  
   300  func (*OrderedBuildEvent) ProtoMessage() {}
   301  
   302  func (x *OrderedBuildEvent) ProtoReflect() protoreflect.Message {
   303  	mi := &file_google_devtools_build_v1_publish_build_event_proto_msgTypes[2]
   304  	if protoimpl.UnsafeEnabled && x != nil {
   305  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   306  		if ms.LoadMessageInfo() == nil {
   307  			ms.StoreMessageInfo(mi)
   308  		}
   309  		return ms
   310  	}
   311  	return mi.MessageOf(x)
   312  }
   313  
   314  // Deprecated: Use OrderedBuildEvent.ProtoReflect.Descriptor instead.
   315  func (*OrderedBuildEvent) Descriptor() ([]byte, []int) {
   316  	return file_google_devtools_build_v1_publish_build_event_proto_rawDescGZIP(), []int{2}
   317  }
   318  
   319  func (x *OrderedBuildEvent) GetStreamId() *StreamId {
   320  	if x != nil {
   321  		return x.StreamId
   322  	}
   323  	return nil
   324  }
   325  
   326  func (x *OrderedBuildEvent) GetSequenceNumber() int64 {
   327  	if x != nil {
   328  		return x.SequenceNumber
   329  	}
   330  	return 0
   331  }
   332  
   333  func (x *OrderedBuildEvent) GetEvent() *BuildEvent {
   334  	if x != nil {
   335  		return x.Event
   336  	}
   337  	return nil
   338  }
   339  
   340  // Streaming request message for PublishBuildToolEventStream.
   341  type PublishBuildToolEventStreamRequest struct {
   342  	state         protoimpl.MessageState
   343  	sizeCache     protoimpl.SizeCache
   344  	unknownFields protoimpl.UnknownFields
   345  
   346  	// Required. The build event with position info.
   347  	// New publishing clients should use this field rather than the 3 above.
   348  	OrderedBuildEvent *OrderedBuildEvent `protobuf:"bytes,4,opt,name=ordered_build_event,json=orderedBuildEvent,proto3" json:"ordered_build_event,omitempty"`
   349  	// The keywords to be attached to the notification which notifies the start
   350  	// of a new build event stream. BES only reads this field when sequence_number
   351  	// or ordered_build_event.sequence_number is 1 in this message. If this field
   352  	// is empty, BES will not publish notification messages for this stream.
   353  	NotificationKeywords []string `protobuf:"bytes,5,rep,name=notification_keywords,json=notificationKeywords,proto3" json:"notification_keywords,omitempty"`
   354  	// Required. The project this build is associated with.
   355  	// This should match the project used for the initial call to
   356  	// PublishLifecycleEvent (containing a BuildEnqueued message).
   357  	ProjectId string `protobuf:"bytes,6,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
   358  	// Whether to require a previously received matching InvocationAttemptStarted
   359  	// event before continuing event processing for the event in the current
   360  	// request. BES only performs this check for events with sequence_number 1
   361  	// i.e. the first event in the stream.
   362  	CheckPrecedingLifecycleEventsPresent bool `protobuf:"varint,7,opt,name=check_preceding_lifecycle_events_present,json=checkPrecedingLifecycleEventsPresent,proto3" json:"check_preceding_lifecycle_events_present,omitempty"`
   363  }
   364  
   365  func (x *PublishBuildToolEventStreamRequest) Reset() {
   366  	*x = PublishBuildToolEventStreamRequest{}
   367  	if protoimpl.UnsafeEnabled {
   368  		mi := &file_google_devtools_build_v1_publish_build_event_proto_msgTypes[3]
   369  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   370  		ms.StoreMessageInfo(mi)
   371  	}
   372  }
   373  
   374  func (x *PublishBuildToolEventStreamRequest) String() string {
   375  	return protoimpl.X.MessageStringOf(x)
   376  }
   377  
   378  func (*PublishBuildToolEventStreamRequest) ProtoMessage() {}
   379  
   380  func (x *PublishBuildToolEventStreamRequest) ProtoReflect() protoreflect.Message {
   381  	mi := &file_google_devtools_build_v1_publish_build_event_proto_msgTypes[3]
   382  	if protoimpl.UnsafeEnabled && x != nil {
   383  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   384  		if ms.LoadMessageInfo() == nil {
   385  			ms.StoreMessageInfo(mi)
   386  		}
   387  		return ms
   388  	}
   389  	return mi.MessageOf(x)
   390  }
   391  
   392  // Deprecated: Use PublishBuildToolEventStreamRequest.ProtoReflect.Descriptor instead.
   393  func (*PublishBuildToolEventStreamRequest) Descriptor() ([]byte, []int) {
   394  	return file_google_devtools_build_v1_publish_build_event_proto_rawDescGZIP(), []int{3}
   395  }
   396  
   397  func (x *PublishBuildToolEventStreamRequest) GetOrderedBuildEvent() *OrderedBuildEvent {
   398  	if x != nil {
   399  		return x.OrderedBuildEvent
   400  	}
   401  	return nil
   402  }
   403  
   404  func (x *PublishBuildToolEventStreamRequest) GetNotificationKeywords() []string {
   405  	if x != nil {
   406  		return x.NotificationKeywords
   407  	}
   408  	return nil
   409  }
   410  
   411  func (x *PublishBuildToolEventStreamRequest) GetProjectId() string {
   412  	if x != nil {
   413  		return x.ProjectId
   414  	}
   415  	return ""
   416  }
   417  
   418  func (x *PublishBuildToolEventStreamRequest) GetCheckPrecedingLifecycleEventsPresent() bool {
   419  	if x != nil {
   420  		return x.CheckPrecedingLifecycleEventsPresent
   421  	}
   422  	return false
   423  }
   424  
   425  var File_google_devtools_build_v1_publish_build_event_proto protoreflect.FileDescriptor
   426  
   427  var file_google_devtools_build_v1_publish_build_event_proto_rawDesc = []byte{
   428  	0x0a, 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c,
   429  	0x73, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69,
   430  	0x73, 0x68, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70,
   431  	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76,
   432  	0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x76, 0x31, 0x1a, 0x1c,
   433  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
   434  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f,
   435  	0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e,
   436  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
   437  	0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72,
   438  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64,
   439  	0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x76, 0x31,
   440  	0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72,
   441  	0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
   442  	0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
   443  	0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
   444  	0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   445  	0x22, 0x83, 0x04, 0x0a, 0x1c, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x4c, 0x69, 0x66, 0x65,
   446  	0x63, 0x79, 0x63, 0x6c, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
   447  	0x74, 0x12, 0x68, 0x0a, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6c, 0x65, 0x76,
   448  	0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   449  	0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64,
   450  	0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x4c, 0x69, 0x66, 0x65, 0x63,
   451  	0x79, 0x63, 0x6c, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
   452  	0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0c, 0x73,
   453  	0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x51, 0x0a, 0x0b, 0x62,
   454  	0x75, 0x69, 0x6c, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
   455  	0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f,
   456  	0x6c, 0x73, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65,
   457  	0x72, 0x65, 0x64, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x03, 0xe0,
   458  	0x41, 0x02, 0x52, 0x0a, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x40,
   459  	0x0a, 0x0e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
   460  	0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   461  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
   462  	0x6e, 0x52, 0x0d, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
   463  	0x12, 0x33, 0x0a, 0x15, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   464  	0x5f, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52,
   465  	0x14, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79,
   466  	0x77, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
   467  	0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09,
   468  	0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x56, 0x0a, 0x28, 0x63, 0x68, 0x65,
   469  	0x63, 0x6b, 0x5f, 0x70, 0x72, 0x65, 0x63, 0x65, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x69, 0x66,
   470  	0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x70, 0x72,
   471  	0x65, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x24, 0x63, 0x68, 0x65,
   472  	0x63, 0x6b, 0x50, 0x72, 0x65, 0x63, 0x65, 0x64, 0x69, 0x6e, 0x67, 0x4c, 0x69, 0x66, 0x65, 0x63,
   473  	0x79, 0x63, 0x6c, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x65, 0x73, 0x65, 0x6e,
   474  	0x74, 0x22, 0x33, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x65, 0x76, 0x65,
   475  	0x6c, 0x12, 0x12, 0x0a, 0x0e, 0x4e, 0x4f, 0x4e, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x41, 0x43, 0x54,
   476  	0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x41, 0x43,
   477  	0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x22, 0x8f, 0x01, 0x0a, 0x23, 0x50, 0x75, 0x62, 0x6c, 0x69,
   478  	0x73, 0x68, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x54, 0x6f, 0x6f, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74,
   479  	0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f,
   480  	0x0a, 0x09, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
   481  	0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f,
   482  	0x6f, 0x6c, 0x73, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72,
   483  	0x65, 0x61, 0x6d, 0x49, 0x64, 0x52, 0x08, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x49, 0x64, 0x12,
   484  	0x27, 0x0a, 0x0f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62,
   485  	0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e,
   486  	0x63, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xb9, 0x01, 0x0a, 0x11, 0x4f, 0x72, 0x64,
   487  	0x65, 0x72, 0x65, 0x64, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x3f,
   488  	0x0a, 0x09, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
   489  	0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f,
   490  	0x6f, 0x6c, 0x73, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72,
   491  	0x65, 0x61, 0x6d, 0x49, 0x64, 0x52, 0x08, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x49, 0x64, 0x12,
   492  	0x27, 0x0a, 0x0f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62,
   493  	0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e,
   494  	0x63, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e,
   495  	0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   496  	0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e,
   497  	0x76, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65,
   498  	0x76, 0x65, 0x6e, 0x74, 0x22, 0xb7, 0x02, 0x0a, 0x22, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68,
   499  	0x42, 0x75, 0x69, 0x6c, 0x64, 0x54, 0x6f, 0x6f, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x74,
   500  	0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x60, 0x0a, 0x13, 0x6f,
   501  	0x72, 0x64, 0x65, 0x72, 0x65, 0x64, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x65, 0x76, 0x65,
   502  	0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   503  	0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64,
   504  	0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x65, 0x64, 0x42, 0x75, 0x69, 0x6c, 0x64,
   505  	0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x11, 0x6f, 0x72, 0x64, 0x65,
   506  	0x72, 0x65, 0x64, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x33, 0x0a,
   507  	0x15, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65,
   508  	0x79, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x14, 0x6e, 0x6f,
   509  	0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72,
   510  	0x64, 0x73, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64,
   511  	0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, 0x72, 0x6f,
   512  	0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x56, 0x0a, 0x28, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f,
   513  	0x70, 0x72, 0x65, 0x63, 0x65, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x69, 0x66, 0x65, 0x63, 0x79,
   514  	0x63, 0x6c, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65,
   515  	0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x24, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x50,
   516  	0x72, 0x65, 0x63, 0x65, 0x64, 0x69, 0x6e, 0x67, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c,
   517  	0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x32, 0xde,
   518  	0x04, 0x0a, 0x11, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x45,
   519  	0x76, 0x65, 0x6e, 0x74, 0x12, 0xc9, 0x01, 0x0a, 0x15, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68,
   520  	0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x36,
   521  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73,
   522  	0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73,
   523  	0x68, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52,
   524  	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   525  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x60,
   526  	0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5a, 0x22, 0x33, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a,
   527  	0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64,
   528  	0x3d, 0x2a, 0x7d, 0x2f, 0x6c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x45, 0x76, 0x65,
   529  	0x6e, 0x74, 0x73, 0x3a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x3a, 0x01, 0x2a, 0x5a, 0x20,
   530  	0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x45,
   531  	0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x3a, 0x01, 0x2a,
   532  	0x12, 0xa6, 0x02, 0x0a, 0x1b, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x42, 0x75, 0x69, 0x6c,
   533  	0x64, 0x54, 0x6f, 0x6f, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d,
   534  	0x12, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f,
   535  	0x6c, 0x73, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c,
   536  	0x69, 0x73, 0x68, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x54, 0x6f, 0x6f, 0x6c, 0x45, 0x76, 0x65, 0x6e,
   537  	0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d,
   538  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73,
   539  	0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73,
   540  	0x68, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x54, 0x6f, 0x6f, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53,
   541  	0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x85, 0x01,
   542  	0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x22, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a,
   543  	0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64,
   544  	0x3d, 0x2a, 0x7d, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x70, 0x75, 0x62, 0x6c, 0x69,
   545  	0x73, 0x68, 0x3a, 0x01, 0x2a, 0x5a, 0x17, 0x22, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x76, 0x65,
   546  	0x6e, 0x74, 0x73, 0x3a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x3a, 0x01, 0x2a, 0xda, 0x41,
   547  	0x34, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x65, 0x64, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x65,
   548  	0x76, 0x65, 0x6e, 0x74, 0x2c, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
   549  	0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x2c, 0x70, 0x72, 0x6f, 0x6a, 0x65,
   550  	0x63, 0x74, 0x5f, 0x69, 0x64, 0x28, 0x01, 0x30, 0x01, 0x1a, 0x54, 0xca, 0x41, 0x20, 0x62, 0x75,
   551  	0x69, 0x6c, 0x64, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
   552  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41,
   553  	0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f,
   554  	0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68,
   555  	0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42,
   556  	0x88, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64,
   557  	0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x76, 0x31,
   558  	0x42, 0x0c, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
   559  	0x5a, 0x3d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e,
   560  	0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f,
   561  	0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73,
   562  	0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x76, 0x31, 0x3b, 0x62, 0x75, 0x69, 0x6c, 0x64, 0xf8,
   563  	0x01, 0x01, 0xca, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75,
   564  	0x64, 0x5c, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
   565  	0x6f, 0x33,
   566  }
   567  
   568  var (
   569  	file_google_devtools_build_v1_publish_build_event_proto_rawDescOnce sync.Once
   570  	file_google_devtools_build_v1_publish_build_event_proto_rawDescData = file_google_devtools_build_v1_publish_build_event_proto_rawDesc
   571  )
   572  
   573  func file_google_devtools_build_v1_publish_build_event_proto_rawDescGZIP() []byte {
   574  	file_google_devtools_build_v1_publish_build_event_proto_rawDescOnce.Do(func() {
   575  		file_google_devtools_build_v1_publish_build_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_devtools_build_v1_publish_build_event_proto_rawDescData)
   576  	})
   577  	return file_google_devtools_build_v1_publish_build_event_proto_rawDescData
   578  }
   579  
   580  var file_google_devtools_build_v1_publish_build_event_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   581  var file_google_devtools_build_v1_publish_build_event_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   582  var file_google_devtools_build_v1_publish_build_event_proto_goTypes = []interface{}{
   583  	(PublishLifecycleEventRequest_ServiceLevel)(0), // 0: google.devtools.build.v1.PublishLifecycleEventRequest.ServiceLevel
   584  	(*PublishLifecycleEventRequest)(nil),           // 1: google.devtools.build.v1.PublishLifecycleEventRequest
   585  	(*PublishBuildToolEventStreamResponse)(nil),    // 2: google.devtools.build.v1.PublishBuildToolEventStreamResponse
   586  	(*OrderedBuildEvent)(nil),                      // 3: google.devtools.build.v1.OrderedBuildEvent
   587  	(*PublishBuildToolEventStreamRequest)(nil),     // 4: google.devtools.build.v1.PublishBuildToolEventStreamRequest
   588  	(*durationpb.Duration)(nil),                    // 5: google.protobuf.Duration
   589  	(*StreamId)(nil),                               // 6: google.devtools.build.v1.StreamId
   590  	(*BuildEvent)(nil),                             // 7: google.devtools.build.v1.BuildEvent
   591  	(*emptypb.Empty)(nil),                          // 8: google.protobuf.Empty
   592  }
   593  var file_google_devtools_build_v1_publish_build_event_proto_depIdxs = []int32{
   594  	0, // 0: google.devtools.build.v1.PublishLifecycleEventRequest.service_level:type_name -> google.devtools.build.v1.PublishLifecycleEventRequest.ServiceLevel
   595  	3, // 1: google.devtools.build.v1.PublishLifecycleEventRequest.build_event:type_name -> google.devtools.build.v1.OrderedBuildEvent
   596  	5, // 2: google.devtools.build.v1.PublishLifecycleEventRequest.stream_timeout:type_name -> google.protobuf.Duration
   597  	6, // 3: google.devtools.build.v1.PublishBuildToolEventStreamResponse.stream_id:type_name -> google.devtools.build.v1.StreamId
   598  	6, // 4: google.devtools.build.v1.OrderedBuildEvent.stream_id:type_name -> google.devtools.build.v1.StreamId
   599  	7, // 5: google.devtools.build.v1.OrderedBuildEvent.event:type_name -> google.devtools.build.v1.BuildEvent
   600  	3, // 6: google.devtools.build.v1.PublishBuildToolEventStreamRequest.ordered_build_event:type_name -> google.devtools.build.v1.OrderedBuildEvent
   601  	1, // 7: google.devtools.build.v1.PublishBuildEvent.PublishLifecycleEvent:input_type -> google.devtools.build.v1.PublishLifecycleEventRequest
   602  	4, // 8: google.devtools.build.v1.PublishBuildEvent.PublishBuildToolEventStream:input_type -> google.devtools.build.v1.PublishBuildToolEventStreamRequest
   603  	8, // 9: google.devtools.build.v1.PublishBuildEvent.PublishLifecycleEvent:output_type -> google.protobuf.Empty
   604  	2, // 10: google.devtools.build.v1.PublishBuildEvent.PublishBuildToolEventStream:output_type -> google.devtools.build.v1.PublishBuildToolEventStreamResponse
   605  	9, // [9:11] is the sub-list for method output_type
   606  	7, // [7:9] is the sub-list for method input_type
   607  	7, // [7:7] is the sub-list for extension type_name
   608  	7, // [7:7] is the sub-list for extension extendee
   609  	0, // [0:7] is the sub-list for field type_name
   610  }
   611  
   612  func init() { file_google_devtools_build_v1_publish_build_event_proto_init() }
   613  func file_google_devtools_build_v1_publish_build_event_proto_init() {
   614  	if File_google_devtools_build_v1_publish_build_event_proto != nil {
   615  		return
   616  	}
   617  	file_google_devtools_build_v1_build_events_proto_init()
   618  	if !protoimpl.UnsafeEnabled {
   619  		file_google_devtools_build_v1_publish_build_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   620  			switch v := v.(*PublishLifecycleEventRequest); i {
   621  			case 0:
   622  				return &v.state
   623  			case 1:
   624  				return &v.sizeCache
   625  			case 2:
   626  				return &v.unknownFields
   627  			default:
   628  				return nil
   629  			}
   630  		}
   631  		file_google_devtools_build_v1_publish_build_event_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   632  			switch v := v.(*PublishBuildToolEventStreamResponse); i {
   633  			case 0:
   634  				return &v.state
   635  			case 1:
   636  				return &v.sizeCache
   637  			case 2:
   638  				return &v.unknownFields
   639  			default:
   640  				return nil
   641  			}
   642  		}
   643  		file_google_devtools_build_v1_publish_build_event_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   644  			switch v := v.(*OrderedBuildEvent); i {
   645  			case 0:
   646  				return &v.state
   647  			case 1:
   648  				return &v.sizeCache
   649  			case 2:
   650  				return &v.unknownFields
   651  			default:
   652  				return nil
   653  			}
   654  		}
   655  		file_google_devtools_build_v1_publish_build_event_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   656  			switch v := v.(*PublishBuildToolEventStreamRequest); i {
   657  			case 0:
   658  				return &v.state
   659  			case 1:
   660  				return &v.sizeCache
   661  			case 2:
   662  				return &v.unknownFields
   663  			default:
   664  				return nil
   665  			}
   666  		}
   667  	}
   668  	type x struct{}
   669  	out := protoimpl.TypeBuilder{
   670  		File: protoimpl.DescBuilder{
   671  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   672  			RawDescriptor: file_google_devtools_build_v1_publish_build_event_proto_rawDesc,
   673  			NumEnums:      1,
   674  			NumMessages:   4,
   675  			NumExtensions: 0,
   676  			NumServices:   1,
   677  		},
   678  		GoTypes:           file_google_devtools_build_v1_publish_build_event_proto_goTypes,
   679  		DependencyIndexes: file_google_devtools_build_v1_publish_build_event_proto_depIdxs,
   680  		EnumInfos:         file_google_devtools_build_v1_publish_build_event_proto_enumTypes,
   681  		MessageInfos:      file_google_devtools_build_v1_publish_build_event_proto_msgTypes,
   682  	}.Build()
   683  	File_google_devtools_build_v1_publish_build_event_proto = out.File
   684  	file_google_devtools_build_v1_publish_build_event_proto_rawDesc = nil
   685  	file_google_devtools_build_v1_publish_build_event_proto_goTypes = nil
   686  	file_google_devtools_build_v1_publish_build_event_proto_depIdxs = nil
   687  }
   688  
   689  // Reference imports to suppress errors if they are not otherwise used.
   690  var _ context.Context
   691  var _ grpc.ClientConnInterface
   692  
   693  // This is a compile-time assertion to ensure that this generated file
   694  // is compatible with the grpc package it is being compiled against.
   695  const _ = grpc.SupportPackageIsVersion6
   696  
   697  // PublishBuildEventClient is the client API for PublishBuildEvent service.
   698  //
   699  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   700  type PublishBuildEventClient interface {
   701  	// Publish a build event stating the new state of a build (typically from the
   702  	// build queue). The BuildEnqueued event must be published before all other
   703  	// events for the same build ID.
   704  	//
   705  	// The backend will persist the event and deliver it to registered frontend
   706  	// jobs immediately without batching.
   707  	//
   708  	// The commit status of the request is reported by the RPC's util_status()
   709  	// function. The error code is the canonical error code defined in
   710  	// //util/task/codes.proto.
   711  	PublishLifecycleEvent(ctx context.Context, in *PublishLifecycleEventRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
   712  	// Publish build tool events belonging to the same stream to a backend job
   713  	// using bidirectional streaming.
   714  	PublishBuildToolEventStream(ctx context.Context, opts ...grpc.CallOption) (PublishBuildEvent_PublishBuildToolEventStreamClient, error)
   715  }
   716  
   717  type publishBuildEventClient struct {
   718  	cc grpc.ClientConnInterface
   719  }
   720  
   721  func NewPublishBuildEventClient(cc grpc.ClientConnInterface) PublishBuildEventClient {
   722  	return &publishBuildEventClient{cc}
   723  }
   724  
   725  func (c *publishBuildEventClient) PublishLifecycleEvent(ctx context.Context, in *PublishLifecycleEventRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
   726  	out := new(emptypb.Empty)
   727  	err := c.cc.Invoke(ctx, "/google.devtools.build.v1.PublishBuildEvent/PublishLifecycleEvent", in, out, opts...)
   728  	if err != nil {
   729  		return nil, err
   730  	}
   731  	return out, nil
   732  }
   733  
   734  func (c *publishBuildEventClient) PublishBuildToolEventStream(ctx context.Context, opts ...grpc.CallOption) (PublishBuildEvent_PublishBuildToolEventStreamClient, error) {
   735  	stream, err := c.cc.NewStream(ctx, &_PublishBuildEvent_serviceDesc.Streams[0], "/google.devtools.build.v1.PublishBuildEvent/PublishBuildToolEventStream", opts...)
   736  	if err != nil {
   737  		return nil, err
   738  	}
   739  	x := &publishBuildEventPublishBuildToolEventStreamClient{stream}
   740  	return x, nil
   741  }
   742  
   743  type PublishBuildEvent_PublishBuildToolEventStreamClient interface {
   744  	Send(*PublishBuildToolEventStreamRequest) error
   745  	Recv() (*PublishBuildToolEventStreamResponse, error)
   746  	grpc.ClientStream
   747  }
   748  
   749  type publishBuildEventPublishBuildToolEventStreamClient struct {
   750  	grpc.ClientStream
   751  }
   752  
   753  func (x *publishBuildEventPublishBuildToolEventStreamClient) Send(m *PublishBuildToolEventStreamRequest) error {
   754  	return x.ClientStream.SendMsg(m)
   755  }
   756  
   757  func (x *publishBuildEventPublishBuildToolEventStreamClient) Recv() (*PublishBuildToolEventStreamResponse, error) {
   758  	m := new(PublishBuildToolEventStreamResponse)
   759  	if err := x.ClientStream.RecvMsg(m); err != nil {
   760  		return nil, err
   761  	}
   762  	return m, nil
   763  }
   764  
   765  // PublishBuildEventServer is the server API for PublishBuildEvent service.
   766  type PublishBuildEventServer interface {
   767  	// Publish a build event stating the new state of a build (typically from the
   768  	// build queue). The BuildEnqueued event must be published before all other
   769  	// events for the same build ID.
   770  	//
   771  	// The backend will persist the event and deliver it to registered frontend
   772  	// jobs immediately without batching.
   773  	//
   774  	// The commit status of the request is reported by the RPC's util_status()
   775  	// function. The error code is the canonical error code defined in
   776  	// //util/task/codes.proto.
   777  	PublishLifecycleEvent(context.Context, *PublishLifecycleEventRequest) (*emptypb.Empty, error)
   778  	// Publish build tool events belonging to the same stream to a backend job
   779  	// using bidirectional streaming.
   780  	PublishBuildToolEventStream(PublishBuildEvent_PublishBuildToolEventStreamServer) error
   781  }
   782  
   783  // UnimplementedPublishBuildEventServer can be embedded to have forward compatible implementations.
   784  type UnimplementedPublishBuildEventServer struct {
   785  }
   786  
   787  func (*UnimplementedPublishBuildEventServer) PublishLifecycleEvent(context.Context, *PublishLifecycleEventRequest) (*emptypb.Empty, error) {
   788  	return nil, status.Errorf(codes.Unimplemented, "method PublishLifecycleEvent not implemented")
   789  }
   790  func (*UnimplementedPublishBuildEventServer) PublishBuildToolEventStream(PublishBuildEvent_PublishBuildToolEventStreamServer) error {
   791  	return status.Errorf(codes.Unimplemented, "method PublishBuildToolEventStream not implemented")
   792  }
   793  
   794  func RegisterPublishBuildEventServer(s *grpc.Server, srv PublishBuildEventServer) {
   795  	s.RegisterService(&_PublishBuildEvent_serviceDesc, srv)
   796  }
   797  
   798  func _PublishBuildEvent_PublishLifecycleEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   799  	in := new(PublishLifecycleEventRequest)
   800  	if err := dec(in); err != nil {
   801  		return nil, err
   802  	}
   803  	if interceptor == nil {
   804  		return srv.(PublishBuildEventServer).PublishLifecycleEvent(ctx, in)
   805  	}
   806  	info := &grpc.UnaryServerInfo{
   807  		Server:     srv,
   808  		FullMethod: "/google.devtools.build.v1.PublishBuildEvent/PublishLifecycleEvent",
   809  	}
   810  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   811  		return srv.(PublishBuildEventServer).PublishLifecycleEvent(ctx, req.(*PublishLifecycleEventRequest))
   812  	}
   813  	return interceptor(ctx, in, info, handler)
   814  }
   815  
   816  func _PublishBuildEvent_PublishBuildToolEventStream_Handler(srv interface{}, stream grpc.ServerStream) error {
   817  	return srv.(PublishBuildEventServer).PublishBuildToolEventStream(&publishBuildEventPublishBuildToolEventStreamServer{stream})
   818  }
   819  
   820  type PublishBuildEvent_PublishBuildToolEventStreamServer interface {
   821  	Send(*PublishBuildToolEventStreamResponse) error
   822  	Recv() (*PublishBuildToolEventStreamRequest, error)
   823  	grpc.ServerStream
   824  }
   825  
   826  type publishBuildEventPublishBuildToolEventStreamServer struct {
   827  	grpc.ServerStream
   828  }
   829  
   830  func (x *publishBuildEventPublishBuildToolEventStreamServer) Send(m *PublishBuildToolEventStreamResponse) error {
   831  	return x.ServerStream.SendMsg(m)
   832  }
   833  
   834  func (x *publishBuildEventPublishBuildToolEventStreamServer) Recv() (*PublishBuildToolEventStreamRequest, error) {
   835  	m := new(PublishBuildToolEventStreamRequest)
   836  	if err := x.ServerStream.RecvMsg(m); err != nil {
   837  		return nil, err
   838  	}
   839  	return m, nil
   840  }
   841  
   842  var _PublishBuildEvent_serviceDesc = grpc.ServiceDesc{
   843  	ServiceName: "google.devtools.build.v1.PublishBuildEvent",
   844  	HandlerType: (*PublishBuildEventServer)(nil),
   845  	Methods: []grpc.MethodDesc{
   846  		{
   847  			MethodName: "PublishLifecycleEvent",
   848  			Handler:    _PublishBuildEvent_PublishLifecycleEvent_Handler,
   849  		},
   850  	},
   851  	Streams: []grpc.StreamDesc{
   852  		{
   853  			StreamName:    "PublishBuildToolEventStream",
   854  			Handler:       _PublishBuildEvent_PublishBuildToolEventStream_Handler,
   855  			ServerStreams: true,
   856  			ClientStreams: true,
   857  		},
   858  	},
   859  	Metadata: "google/devtools/build/v1/publish_build_event.proto",
   860  }
   861  

View as plain text