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

     1  // Copyright 2024 The LUCI Authors. All rights reserved.
     2  // Use of this source code is governed under the Apache License, Version 2.0
     3  // that can be found in the LICENSE file.
     4  
     5  // Code generated by protoc-gen-go. DO NOT EDIT.
     6  // versions:
     7  // 	protoc-gen-go v1.32.0
     8  // 	protoc        v3.21.7
     9  // source: go.chromium.org/luci/swarming/server/notifications/taskspb/notifications.proto
    10  
    11  package taskspb
    12  
    13  import (
    14  	api_v2 "go.chromium.org/luci/swarming/proto/api_v2"
    15  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    16  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    17  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    18  	reflect "reflect"
    19  	sync "sync"
    20  )
    21  
    22  const (
    23  	// Verify that this generated code is sufficiently up-to-date.
    24  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    25  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    26  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    27  )
    28  
    29  // A Cloud task for sending PubSub notification about the task completion.
    30  type PubSubNofityTask struct {
    31  	state         protoimpl.MessageState
    32  	sizeCache     protoimpl.SizeCache
    33  	unknownFields protoimpl.UnknownFields
    34  
    35  	// Swarming Task ID.
    36  	TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
    37  	// The pubsub topic that the notification needs to be sent.
    38  	Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
    39  	// Auth Token.
    40  	AuthToken string `protobuf:"bytes,3,opt,name=auth_token,json=authToken,proto3" json:"auth_token,omitempty"`
    41  	// The user provided data which will be sent back to users.
    42  	Userdata string `protobuf:"bytes,4,opt,name=userdata,proto3" json:"userdata,omitempty"`
    43  	// TaskResultSummary tags.
    44  	Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"`
    45  	// TaskResultSummary state.
    46  	State api_v2.TaskState `protobuf:"varint,6,opt,name=state,proto3,enum=swarming.v2.TaskState" json:"state,omitempty"`
    47  	// The point in time when this Cloud task was enqueued.
    48  	StartTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
    49  }
    50  
    51  func (x *PubSubNofityTask) Reset() {
    52  	*x = PubSubNofityTask{}
    53  	if protoimpl.UnsafeEnabled {
    54  		mi := &file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_msgTypes[0]
    55  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    56  		ms.StoreMessageInfo(mi)
    57  	}
    58  }
    59  
    60  func (x *PubSubNofityTask) String() string {
    61  	return protoimpl.X.MessageStringOf(x)
    62  }
    63  
    64  func (*PubSubNofityTask) ProtoMessage() {}
    65  
    66  func (x *PubSubNofityTask) ProtoReflect() protoreflect.Message {
    67  	mi := &file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_msgTypes[0]
    68  	if protoimpl.UnsafeEnabled && x != nil {
    69  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    70  		if ms.LoadMessageInfo() == nil {
    71  			ms.StoreMessageInfo(mi)
    72  		}
    73  		return ms
    74  	}
    75  	return mi.MessageOf(x)
    76  }
    77  
    78  // Deprecated: Use PubSubNofityTask.ProtoReflect.Descriptor instead.
    79  func (*PubSubNofityTask) Descriptor() ([]byte, []int) {
    80  	return file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_rawDescGZIP(), []int{0}
    81  }
    82  
    83  func (x *PubSubNofityTask) GetTaskId() string {
    84  	if x != nil {
    85  		return x.TaskId
    86  	}
    87  	return ""
    88  }
    89  
    90  func (x *PubSubNofityTask) GetTopic() string {
    91  	if x != nil {
    92  		return x.Topic
    93  	}
    94  	return ""
    95  }
    96  
    97  func (x *PubSubNofityTask) GetAuthToken() string {
    98  	if x != nil {
    99  		return x.AuthToken
   100  	}
   101  	return ""
   102  }
   103  
   104  func (x *PubSubNofityTask) GetUserdata() string {
   105  	if x != nil {
   106  		return x.Userdata
   107  	}
   108  	return ""
   109  }
   110  
   111  func (x *PubSubNofityTask) GetTags() []string {
   112  	if x != nil {
   113  		return x.Tags
   114  	}
   115  	return nil
   116  }
   117  
   118  func (x *PubSubNofityTask) GetState() api_v2.TaskState {
   119  	if x != nil {
   120  		return x.State
   121  	}
   122  	return api_v2.TaskState(0)
   123  }
   124  
   125  func (x *PubSubNofityTask) GetStartTime() *timestamppb.Timestamp {
   126  	if x != nil {
   127  		return x.StartTime
   128  	}
   129  	return nil
   130  }
   131  
   132  // A Cloud task for sending updates to Buildbucket about the task status.
   133  type BuildbucketNofityTask struct {
   134  	state         protoimpl.MessageState
   135  	sizeCache     protoimpl.SizeCache
   136  	unknownFields protoimpl.UnknownFields
   137  
   138  	// Swarming Task ID.
   139  	TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
   140  	// TaskResultSummary state.
   141  	State api_v2.TaskState `protobuf:"varint,2,opt,name=state,proto3,enum=swarming.v2.TaskState" json:"state,omitempty"`
   142  	// int timestamp in nano seconds for when the update was made.
   143  	UpdateId int64 `protobuf:"varint,3,opt,name=update_id,json=updateId,proto3" json:"update_id,omitempty"`
   144  }
   145  
   146  func (x *BuildbucketNofityTask) Reset() {
   147  	*x = BuildbucketNofityTask{}
   148  	if protoimpl.UnsafeEnabled {
   149  		mi := &file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_msgTypes[1]
   150  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   151  		ms.StoreMessageInfo(mi)
   152  	}
   153  }
   154  
   155  func (x *BuildbucketNofityTask) String() string {
   156  	return protoimpl.X.MessageStringOf(x)
   157  }
   158  
   159  func (*BuildbucketNofityTask) ProtoMessage() {}
   160  
   161  func (x *BuildbucketNofityTask) ProtoReflect() protoreflect.Message {
   162  	mi := &file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_msgTypes[1]
   163  	if protoimpl.UnsafeEnabled && x != nil {
   164  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   165  		if ms.LoadMessageInfo() == nil {
   166  			ms.StoreMessageInfo(mi)
   167  		}
   168  		return ms
   169  	}
   170  	return mi.MessageOf(x)
   171  }
   172  
   173  // Deprecated: Use BuildbucketNofityTask.ProtoReflect.Descriptor instead.
   174  func (*BuildbucketNofityTask) Descriptor() ([]byte, []int) {
   175  	return file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_rawDescGZIP(), []int{1}
   176  }
   177  
   178  func (x *BuildbucketNofityTask) GetTaskId() string {
   179  	if x != nil {
   180  		return x.TaskId
   181  	}
   182  	return ""
   183  }
   184  
   185  func (x *BuildbucketNofityTask) GetState() api_v2.TaskState {
   186  	if x != nil {
   187  		return x.State
   188  	}
   189  	return api_v2.TaskState(0)
   190  }
   191  
   192  func (x *BuildbucketNofityTask) GetUpdateId() int64 {
   193  	if x != nil {
   194  		return x.UpdateId
   195  	}
   196  	return 0
   197  }
   198  
   199  var File_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto protoreflect.FileDescriptor
   200  
   201  var file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_rawDesc = []byte{
   202  	0x0a, 0x4e, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   203  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x77, 0x61, 0x72, 0x6d, 0x69, 0x6e, 0x67, 0x2f,
   204  	0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
   205  	0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x70, 0x62, 0x2f, 0x6e, 0x6f, 0x74,
   206  	0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   207  	0x12, 0x1c, 0x73, 0x77, 0x61, 0x72, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66,
   208  	0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x1a, 0x1f,
   209  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
   210  	0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
   211  	0x39, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67,
   212  	0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x77, 0x61, 0x72, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x70,
   213  	0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x5f, 0x76, 0x32, 0x2f, 0x73, 0x77, 0x61, 0x72,
   214  	0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf9, 0x01, 0x0a, 0x10, 0x50,
   215  	0x75, 0x62, 0x53, 0x75, 0x62, 0x4e, 0x6f, 0x66, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x12,
   216  	0x17, 0x0a, 0x07, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
   217  	0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69,
   218  	0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x1d,
   219  	0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01,
   220  	0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1a, 0x0a,
   221  	0x08, 0x75, 0x73, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
   222  	0x08, 0x75, 0x73, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67,
   223  	0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x2c, 0x0a,
   224  	0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x73,
   225  	0x77, 0x61, 0x72, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53,
   226  	0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x73,
   227  	0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32,
   228  	0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
   229  	0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61,
   230  	0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x7b, 0x0a, 0x15, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x62,
   231  	0x75, 0x63, 0x6b, 0x65, 0x74, 0x4e, 0x6f, 0x66, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x12,
   232  	0x17, 0x0a, 0x07, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
   233  	0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74,
   234  	0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x73, 0x77, 0x61, 0x72, 0x6d, 0x69,
   235  	0x6e, 0x67, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52,
   236  	0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
   237  	0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x70, 0x64, 0x61, 0x74,
   238  	0x65, 0x49, 0x64, 0x42, 0x44, 0x5a, 0x42, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69,
   239  	0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x77, 0x61, 0x72,
   240  	0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x6e, 0x6f, 0x74, 0x69,
   241  	0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x70,
   242  	0x62, 0x3b, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   243  	0x33,
   244  }
   245  
   246  var (
   247  	file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_rawDescOnce sync.Once
   248  	file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_rawDescData = file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_rawDesc
   249  )
   250  
   251  func file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_rawDescGZIP() []byte {
   252  	file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_rawDescOnce.Do(func() {
   253  		file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_rawDescData)
   254  	})
   255  	return file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_rawDescData
   256  }
   257  
   258  var file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   259  var file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_goTypes = []interface{}{
   260  	(*PubSubNofityTask)(nil),      // 0: swarming.notifications.tasks.PubSubNofityTask
   261  	(*BuildbucketNofityTask)(nil), // 1: swarming.notifications.tasks.BuildbucketNofityTask
   262  	(api_v2.TaskState)(0),         // 2: swarming.v2.TaskState
   263  	(*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
   264  }
   265  var file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_depIdxs = []int32{
   266  	2, // 0: swarming.notifications.tasks.PubSubNofityTask.state:type_name -> swarming.v2.TaskState
   267  	3, // 1: swarming.notifications.tasks.PubSubNofityTask.start_time:type_name -> google.protobuf.Timestamp
   268  	2, // 2: swarming.notifications.tasks.BuildbucketNofityTask.state:type_name -> swarming.v2.TaskState
   269  	3, // [3:3] is the sub-list for method output_type
   270  	3, // [3:3] is the sub-list for method input_type
   271  	3, // [3:3] is the sub-list for extension type_name
   272  	3, // [3:3] is the sub-list for extension extendee
   273  	0, // [0:3] is the sub-list for field type_name
   274  }
   275  
   276  func init() {
   277  	file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_init()
   278  }
   279  func file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_init() {
   280  	if File_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto != nil {
   281  		return
   282  	}
   283  	if !protoimpl.UnsafeEnabled {
   284  		file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   285  			switch v := v.(*PubSubNofityTask); i {
   286  			case 0:
   287  				return &v.state
   288  			case 1:
   289  				return &v.sizeCache
   290  			case 2:
   291  				return &v.unknownFields
   292  			default:
   293  				return nil
   294  			}
   295  		}
   296  		file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   297  			switch v := v.(*BuildbucketNofityTask); i {
   298  			case 0:
   299  				return &v.state
   300  			case 1:
   301  				return &v.sizeCache
   302  			case 2:
   303  				return &v.unknownFields
   304  			default:
   305  				return nil
   306  			}
   307  		}
   308  	}
   309  	type x struct{}
   310  	out := protoimpl.TypeBuilder{
   311  		File: protoimpl.DescBuilder{
   312  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   313  			RawDescriptor: file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_rawDesc,
   314  			NumEnums:      0,
   315  			NumMessages:   2,
   316  			NumExtensions: 0,
   317  			NumServices:   0,
   318  		},
   319  		GoTypes:           file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_goTypes,
   320  		DependencyIndexes: file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_depIdxs,
   321  		MessageInfos:      file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_msgTypes,
   322  	}.Build()
   323  	File_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto = out.File
   324  	file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_rawDesc = nil
   325  	file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_goTypes = nil
   326  	file_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto_depIdxs = nil
   327  }