taskspb

package
v0.0.0-...-e7509a3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package taskspb contains Cloud Tasks proto definations which will be used for sending notifications.

Index

Constants

This section is empty.

Variables

View Source
var File_go_chromium_org_luci_swarming_server_notifications_taskspb_notifications_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BuildbucketNotifyTask

type BuildbucketNotifyTask struct {

	// Swarming Task ID.
	TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	// TaskResultSummary state.
	State api_v2.TaskState `protobuf:"varint,2,opt,name=state,proto3,enum=swarming.v2.TaskState" json:"state,omitempty"`
	// int timestamp in nano seconds for when the update was made.
	UpdateId int64 `protobuf:"varint,3,opt,name=update_id,json=updateId,proto3" json:"update_id,omitempty"`
	// contains filtered or unexported fields
}

A Cloud task for sending updates to Buildbucket about the task status.

func (*BuildbucketNotifyTask) Descriptor deprecated

func (*BuildbucketNotifyTask) Descriptor() ([]byte, []int)

Deprecated: Use BuildbucketNotifyTask.ProtoReflect.Descriptor instead.

func (*BuildbucketNotifyTask) GetState

func (x *BuildbucketNotifyTask) GetState() api_v2.TaskState

func (*BuildbucketNotifyTask) GetTaskId

func (x *BuildbucketNotifyTask) GetTaskId() string

func (*BuildbucketNotifyTask) GetUpdateId

func (x *BuildbucketNotifyTask) GetUpdateId() int64

func (*BuildbucketNotifyTask) ProtoMessage

func (*BuildbucketNotifyTask) ProtoMessage()

func (*BuildbucketNotifyTask) ProtoReflect

func (x *BuildbucketNotifyTask) ProtoReflect() protoreflect.Message

func (*BuildbucketNotifyTask) Reset

func (x *BuildbucketNotifyTask) Reset()

func (*BuildbucketNotifyTask) String

func (x *BuildbucketNotifyTask) String() string

type PubSubNotifyTask

type PubSubNotifyTask struct {

	// Swarming Task ID.
	TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	// The pubsub topic that the notification needs to be sent.
	Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
	// Auth Token.
	AuthToken string `protobuf:"bytes,3,opt,name=auth_token,json=authToken,proto3" json:"auth_token,omitempty"`
	// The user provided data which will be sent back to users.
	Userdata string `protobuf:"bytes,4,opt,name=userdata,proto3" json:"userdata,omitempty"`
	// TaskResultSummary tags.
	Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"`
	// TaskResultSummary state.
	State api_v2.TaskState `protobuf:"varint,6,opt,name=state,proto3,enum=swarming.v2.TaskState" json:"state,omitempty"`
	// The point in time when this Cloud task was enqueued.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// contains filtered or unexported fields
}

A Cloud task for sending PubSub notification about the task completion.

func (*PubSubNotifyTask) Descriptor deprecated

func (*PubSubNotifyTask) Descriptor() ([]byte, []int)

Deprecated: Use PubSubNotifyTask.ProtoReflect.Descriptor instead.

func (*PubSubNotifyTask) GetAuthToken

func (x *PubSubNotifyTask) GetAuthToken() string

func (*PubSubNotifyTask) GetStartTime

func (x *PubSubNotifyTask) GetStartTime() *timestamppb.Timestamp

func (*PubSubNotifyTask) GetState

func (x *PubSubNotifyTask) GetState() api_v2.TaskState

func (*PubSubNotifyTask) GetTags

func (x *PubSubNotifyTask) GetTags() []string

func (*PubSubNotifyTask) GetTaskId

func (x *PubSubNotifyTask) GetTaskId() string

func (*PubSubNotifyTask) GetTopic

func (x *PubSubNotifyTask) GetTopic() string

func (*PubSubNotifyTask) GetUserdata

func (x *PubSubNotifyTask) GetUserdata() string

func (*PubSubNotifyTask) ProtoMessage

func (*PubSubNotifyTask) ProtoMessage()

func (*PubSubNotifyTask) ProtoReflect

func (x *PubSubNotifyTask) ProtoReflect() protoreflect.Message

func (*PubSubNotifyTask) Reset

func (x *PubSubNotifyTask) Reset()

func (*PubSubNotifyTask) String

func (x *PubSubNotifyTask) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL