blob: a0b3400a7c4a129844a959b2ccdc3a134264397d [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc v3.21.12
// source: louhi.proto
package louhi
import (
reflect "reflect"
sync "sync"
unsafe "unsafe"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// EventSource describes the source of a Notification.
type EventSource int32
const (
EventSource_PIPELINE EventSource = 0
EventSource_STAGE EventSource = 1
)
// Enum value maps for EventSource.
var (
EventSource_name = map[int32]string{
0: "PIPELINE",
1: "STAGE",
}
EventSource_value = map[string]int32{
"PIPELINE": 0,
"STAGE": 1,
}
)
func (x EventSource) Enum() *EventSource {
p := new(EventSource)
*p = x
return p
}
func (x EventSource) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (EventSource) Descriptor() protoreflect.EnumDescriptor {
return file_louhi_proto_enumTypes[0].Descriptor()
}
func (EventSource) Type() protoreflect.EnumType {
return &file_louhi_proto_enumTypes[0]
}
func (x EventSource) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use EventSource.Descriptor instead.
func (EventSource) EnumDescriptor() ([]byte, []int) {
return file_louhi_proto_rawDescGZIP(), []int{0}
}
// EventAction describes the action which generated a Notification.
type EventAction int32
const (
EventAction_STARTED EventAction = 0
EventAction_FINISHED EventAction = 1
EventAction_FAILED EventAction = 2
EventAction_CREATED_ARTIFACT EventAction = 3
)
// Enum value maps for EventAction.
var (
EventAction_name = map[int32]string{
0: "STARTED",
1: "FINISHED",
2: "FAILED",
3: "CREATED_ARTIFACT",
}
EventAction_value = map[string]int32{
"STARTED": 0,
"FINISHED": 1,
"FAILED": 2,
"CREATED_ARTIFACT": 3,
}
)
func (x EventAction) Enum() *EventAction {
p := new(EventAction)
*p = x
return p
}
func (x EventAction) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (EventAction) Descriptor() protoreflect.EnumDescriptor {
return file_louhi_proto_enumTypes[1].Descriptor()
}
func (EventAction) Type() protoreflect.EnumType {
return &file_louhi_proto_enumTypes[1]
}
func (x EventAction) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use EventAction.Descriptor instead.
func (EventAction) EnumDescriptor() ([]byte, []int) {
return file_louhi_proto_rawDescGZIP(), []int{1}
}
// Notification describes a PubSub notification from Louhi.
type Notification struct {
state protoimpl.MessageState `protogen:"open.v1"`
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
FlowUniqueKey string `protobuf:"bytes,2,opt,name=flow_unique_key,json=flowUniqueKey,proto3" json:"flow_unique_key,omitempty"`
FlowName string `protobuf:"bytes,3,opt,name=flow_name,json=flowName,proto3" json:"flow_name,omitempty"`
PipelineExecutionId string `protobuf:"bytes,4,opt,name=pipeline_execution_id,json=pipelineExecutionId,proto3" json:"pipeline_execution_id,omitempty"`
EventSource EventSource `protobuf:"varint,5,opt,name=event_source,json=eventSource,proto3,enum=louhi.EventSource" json:"event_source,omitempty"`
EventAction EventAction `protobuf:"varint,6,opt,name=event_action,json=eventAction,proto3,enum=louhi.EventAction" json:"event_action,omitempty"`
Link string `protobuf:"bytes,7,opt,name=link,proto3" json:"link,omitempty"`
Branch string `protobuf:"bytes,8,opt,name=branch,proto3" json:"branch,omitempty"`
RefSha string `protobuf:"bytes,9,opt,name=ref_sha,json=refSha,proto3" json:"ref_sha,omitempty"`
// We'd really prefer an enum for trigger_type, but the values don't follow
// a consistent format, eg. "MANUAL" and "cron-trigger", the latter of which
// is not a valid enum value.
TriggerType string `protobuf:"bytes,10,opt,name=trigger_type,json=triggerType,proto3" json:"trigger_type,omitempty"`
StartedBy string `protobuf:"bytes,11,opt,name=started_by,json=startedBy,proto3" json:"started_by,omitempty"`
ArtifactLink []string `protobuf:"bytes,12,rep,name=artifact_link,json=artifactLink,proto3" json:"artifact_link,omitempty"`
GeneratedCls []string `protobuf:"bytes,13,rep,name=generated_cls,json=generatedCls,proto3" json:"generated_cls,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Notification) Reset() {
*x = Notification{}
mi := &file_louhi_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Notification) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Notification) ProtoMessage() {}
func (x *Notification) ProtoReflect() protoreflect.Message {
mi := &file_louhi_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Notification.ProtoReflect.Descriptor instead.
func (*Notification) Descriptor() ([]byte, []int) {
return file_louhi_proto_rawDescGZIP(), []int{0}
}
func (x *Notification) GetProjectId() string {
if x != nil {
return x.ProjectId
}
return ""
}
func (x *Notification) GetFlowUniqueKey() string {
if x != nil {
return x.FlowUniqueKey
}
return ""
}
func (x *Notification) GetFlowName() string {
if x != nil {
return x.FlowName
}
return ""
}
func (x *Notification) GetPipelineExecutionId() string {
if x != nil {
return x.PipelineExecutionId
}
return ""
}
func (x *Notification) GetEventSource() EventSource {
if x != nil {
return x.EventSource
}
return EventSource_PIPELINE
}
func (x *Notification) GetEventAction() EventAction {
if x != nil {
return x.EventAction
}
return EventAction_STARTED
}
func (x *Notification) GetLink() string {
if x != nil {
return x.Link
}
return ""
}
func (x *Notification) GetBranch() string {
if x != nil {
return x.Branch
}
return ""
}
func (x *Notification) GetRefSha() string {
if x != nil {
return x.RefSha
}
return ""
}
func (x *Notification) GetTriggerType() string {
if x != nil {
return x.TriggerType
}
return ""
}
func (x *Notification) GetStartedBy() string {
if x != nil {
return x.StartedBy
}
return ""
}
func (x *Notification) GetArtifactLink() []string {
if x != nil {
return x.ArtifactLink
}
return nil
}
func (x *Notification) GetGeneratedCls() []string {
if x != nil {
return x.GeneratedCls
}
return nil
}
var File_louhi_proto protoreflect.FileDescriptor
const file_louhi_proto_rawDesc = "" +
"\n" +
"\vlouhi.proto\x12\x05louhi\"\xe5\x03\n" +
"\fNotification\x12\x1d\n" +
"\n" +
"project_id\x18\x01 \x01(\tR\tprojectId\x12&\n" +
"\x0fflow_unique_key\x18\x02 \x01(\tR\rflowUniqueKey\x12\x1b\n" +
"\tflow_name\x18\x03 \x01(\tR\bflowName\x122\n" +
"\x15pipeline_execution_id\x18\x04 \x01(\tR\x13pipelineExecutionId\x125\n" +
"\fevent_source\x18\x05 \x01(\x0e2\x12.louhi.EventSourceR\veventSource\x125\n" +
"\fevent_action\x18\x06 \x01(\x0e2\x12.louhi.EventActionR\veventAction\x12\x12\n" +
"\x04link\x18\a \x01(\tR\x04link\x12\x16\n" +
"\x06branch\x18\b \x01(\tR\x06branch\x12\x17\n" +
"\aref_sha\x18\t \x01(\tR\x06refSha\x12!\n" +
"\ftrigger_type\x18\n" +
" \x01(\tR\vtriggerType\x12\x1d\n" +
"\n" +
"started_by\x18\v \x01(\tR\tstartedBy\x12#\n" +
"\rartifact_link\x18\f \x03(\tR\fartifactLink\x12#\n" +
"\rgenerated_cls\x18\r \x03(\tR\fgeneratedCls*&\n" +
"\vEventSource\x12\f\n" +
"\bPIPELINE\x10\x00\x12\t\n" +
"\x05STAGE\x10\x01*J\n" +
"\vEventAction\x12\v\n" +
"\aSTARTED\x10\x00\x12\f\n" +
"\bFINISHED\x10\x01\x12\n" +
"\n" +
"\x06FAILED\x10\x02\x12\x14\n" +
"\x10CREATED_ARTIFACT\x10\x03B*Z(go.skia.org/infra/louhi-watcher/go/louhib\x06proto3"
var (
file_louhi_proto_rawDescOnce sync.Once
file_louhi_proto_rawDescData []byte
)
func file_louhi_proto_rawDescGZIP() []byte {
file_louhi_proto_rawDescOnce.Do(func() {
file_louhi_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_louhi_proto_rawDesc), len(file_louhi_proto_rawDesc)))
})
return file_louhi_proto_rawDescData
}
var file_louhi_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_louhi_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_louhi_proto_goTypes = []any{
(EventSource)(0), // 0: louhi.EventSource
(EventAction)(0), // 1: louhi.EventAction
(*Notification)(nil), // 2: louhi.Notification
}
var file_louhi_proto_depIdxs = []int32{
0, // 0: louhi.Notification.event_source:type_name -> louhi.EventSource
1, // 1: louhi.Notification.event_action:type_name -> louhi.EventAction
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_louhi_proto_init() }
func file_louhi_proto_init() {
if File_louhi_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_louhi_proto_rawDesc), len(file_louhi_proto_rawDesc)),
NumEnums: 2,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_louhi_proto_goTypes,
DependencyIndexes: file_louhi_proto_depIdxs,
EnumInfos: file_louhi_proto_enumTypes,
MessageInfos: file_louhi_proto_msgTypes,
}.Build()
File_louhi_proto = out.File
file_louhi_proto_goTypes = nil
file_louhi_proto_depIdxs = nil
}