go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/swarming/internal/notifications/notifications.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.31.0
     4  // 	protoc        v3.21.7
     5  // source: go.chromium.org/luci/swarming/internal/notifications/notifications.proto
     6  
     7  package notifications
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  // Wire proto defining the payload of a Cloud PubSub notification, which is sent
    24  // by RBE when the `scheduler_notification_config` is populated for an instance
    25  // and the corresponding RBE event occurs.
    26  type SchedulerNotification struct {
    27  	state         protoimpl.MessageState
    28  	sizeCache     protoimpl.SizeCache
    29  	unknownFields protoimpl.UnknownFields
    30  
    31  	// Exactly one of these IDs will be populated, depending on whether the
    32  	// notification is for a completed action or reservation.
    33  	ActionId      string `protobuf:"bytes,1,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"`
    34  	ReservationId string `protobuf:"bytes,2,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"`
    35  	// Status code for the received event.
    36  	StatusCode int32 `protobuf:"varint,3,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
    37  }
    38  
    39  func (x *SchedulerNotification) Reset() {
    40  	*x = SchedulerNotification{}
    41  	if protoimpl.UnsafeEnabled {
    42  		mi := &file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_msgTypes[0]
    43  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    44  		ms.StoreMessageInfo(mi)
    45  	}
    46  }
    47  
    48  func (x *SchedulerNotification) String() string {
    49  	return protoimpl.X.MessageStringOf(x)
    50  }
    51  
    52  func (*SchedulerNotification) ProtoMessage() {}
    53  
    54  func (x *SchedulerNotification) ProtoReflect() protoreflect.Message {
    55  	mi := &file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_msgTypes[0]
    56  	if protoimpl.UnsafeEnabled && x != nil {
    57  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    58  		if ms.LoadMessageInfo() == nil {
    59  			ms.StoreMessageInfo(mi)
    60  		}
    61  		return ms
    62  	}
    63  	return mi.MessageOf(x)
    64  }
    65  
    66  // Deprecated: Use SchedulerNotification.ProtoReflect.Descriptor instead.
    67  func (*SchedulerNotification) Descriptor() ([]byte, []int) {
    68  	return file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_rawDescGZIP(), []int{0}
    69  }
    70  
    71  func (x *SchedulerNotification) GetActionId() string {
    72  	if x != nil {
    73  		return x.ActionId
    74  	}
    75  	return ""
    76  }
    77  
    78  func (x *SchedulerNotification) GetReservationId() string {
    79  	if x != nil {
    80  		return x.ReservationId
    81  	}
    82  	return ""
    83  }
    84  
    85  func (x *SchedulerNotification) GetStatusCode() int32 {
    86  	if x != nil {
    87  		return x.StatusCode
    88  	}
    89  	return 0
    90  }
    91  
    92  var File_go_chromium_org_luci_swarming_internal_notifications_notifications_proto protoreflect.FileDescriptor
    93  
    94  var file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_rawDesc = []byte{
    95  	0x0a, 0x48, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
    96  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x77, 0x61, 0x72, 0x6d, 0x69, 0x6e, 0x67, 0x2f,
    97  	0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63,
    98  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
    99  	0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x64, 0x65, 0x76, 0x74,
   100  	0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x72, 0x79, 0x2e, 0x61, 0x70, 0x69,
   101  	0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7c,
   102  	0x0a, 0x15, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x4e, 0x6f, 0x74, 0x69, 0x66,
   103  	0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x63, 0x74, 0x69, 0x6f,
   104  	0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x74, 0x69,
   105  	0x6f, 0x6e, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74,
   106  	0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65,
   107  	0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x73,
   108  	0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05,
   109  	0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x42, 0x36, 0x5a, 0x34,
   110  	0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
   111  	0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x77, 0x61, 0x72, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x69, 0x6e,
   112  	0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
   113  	0x69, 0x6f, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   114  }
   115  
   116  var (
   117  	file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_rawDescOnce sync.Once
   118  	file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_rawDescData = file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_rawDesc
   119  )
   120  
   121  func file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_rawDescGZIP() []byte {
   122  	file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_rawDescOnce.Do(func() {
   123  		file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_rawDescData)
   124  	})
   125  	return file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_rawDescData
   126  }
   127  
   128  var file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   129  var file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_goTypes = []interface{}{
   130  	(*SchedulerNotification)(nil), // 0: devtools.foundry.api.notifications.SchedulerNotification
   131  }
   132  var file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_depIdxs = []int32{
   133  	0, // [0:0] is the sub-list for method output_type
   134  	0, // [0:0] is the sub-list for method input_type
   135  	0, // [0:0] is the sub-list for extension type_name
   136  	0, // [0:0] is the sub-list for extension extendee
   137  	0, // [0:0] is the sub-list for field type_name
   138  }
   139  
   140  func init() { file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_init() }
   141  func file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_init() {
   142  	if File_go_chromium_org_luci_swarming_internal_notifications_notifications_proto != nil {
   143  		return
   144  	}
   145  	if !protoimpl.UnsafeEnabled {
   146  		file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   147  			switch v := v.(*SchedulerNotification); i {
   148  			case 0:
   149  				return &v.state
   150  			case 1:
   151  				return &v.sizeCache
   152  			case 2:
   153  				return &v.unknownFields
   154  			default:
   155  				return nil
   156  			}
   157  		}
   158  	}
   159  	type x struct{}
   160  	out := protoimpl.TypeBuilder{
   161  		File: protoimpl.DescBuilder{
   162  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   163  			RawDescriptor: file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_rawDesc,
   164  			NumEnums:      0,
   165  			NumMessages:   1,
   166  			NumExtensions: 0,
   167  			NumServices:   0,
   168  		},
   169  		GoTypes:           file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_goTypes,
   170  		DependencyIndexes: file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_depIdxs,
   171  		MessageInfos:      file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_msgTypes,
   172  	}.Build()
   173  	File_go_chromium_org_luci_swarming_internal_notifications_notifications_proto = out.File
   174  	file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_rawDesc = nil
   175  	file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_goTypes = nil
   176  	file_go_chromium_org_luci_swarming_internal_notifications_notifications_proto_depIdxs = nil
   177  }