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

     1  // Copyright 2017 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  // Messages for the task queue.
     6  
     7  // Code generated by protoc-gen-go. DO NOT EDIT.
     8  // versions:
     9  // 	protoc-gen-go v1.31.0
    10  // 	protoc        v3.21.7
    11  // source: go.chromium.org/luci/luci_notify/internal/tq.proto
    12  
    13  package internal
    14  
    15  import (
    16  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    17  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    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  // EmailTask represents a single email notification to be dispatched.
    30  type EmailTask struct {
    31  	state         protoimpl.MessageState
    32  	sizeCache     protoimpl.SizeCache
    33  	unknownFields protoimpl.UnknownFields
    34  
    35  	// Recipients is a list of email addresses to send the email to.
    36  	// TODO(nodir): make it non-repeated.
    37  	Recipients []string `protobuf:"bytes,1,rep,name=recipients,proto3" json:"recipients,omitempty"`
    38  	// Subject is the subject line of the email to be sent.
    39  	Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
    40  	// DEPRECATED. See body_gzip.
    41  	Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
    42  	// Gzipped, HTML-formatted string containing the body of the email
    43  	// to be sent.
    44  	BodyGzip []byte `protobuf:"bytes,4,opt,name=body_gzip,json=bodyGzip,proto3" json:"body_gzip,omitempty"`
    45  }
    46  
    47  func (x *EmailTask) Reset() {
    48  	*x = EmailTask{}
    49  	if protoimpl.UnsafeEnabled {
    50  		mi := &file_go_chromium_org_luci_luci_notify_internal_tq_proto_msgTypes[0]
    51  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    52  		ms.StoreMessageInfo(mi)
    53  	}
    54  }
    55  
    56  func (x *EmailTask) String() string {
    57  	return protoimpl.X.MessageStringOf(x)
    58  }
    59  
    60  func (*EmailTask) ProtoMessage() {}
    61  
    62  func (x *EmailTask) ProtoReflect() protoreflect.Message {
    63  	mi := &file_go_chromium_org_luci_luci_notify_internal_tq_proto_msgTypes[0]
    64  	if protoimpl.UnsafeEnabled && x != nil {
    65  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    66  		if ms.LoadMessageInfo() == nil {
    67  			ms.StoreMessageInfo(mi)
    68  		}
    69  		return ms
    70  	}
    71  	return mi.MessageOf(x)
    72  }
    73  
    74  // Deprecated: Use EmailTask.ProtoReflect.Descriptor instead.
    75  func (*EmailTask) Descriptor() ([]byte, []int) {
    76  	return file_go_chromium_org_luci_luci_notify_internal_tq_proto_rawDescGZIP(), []int{0}
    77  }
    78  
    79  func (x *EmailTask) GetRecipients() []string {
    80  	if x != nil {
    81  		return x.Recipients
    82  	}
    83  	return nil
    84  }
    85  
    86  func (x *EmailTask) GetSubject() string {
    87  	if x != nil {
    88  		return x.Subject
    89  	}
    90  	return ""
    91  }
    92  
    93  func (x *EmailTask) GetBody() string {
    94  	if x != nil {
    95  		return x.Body
    96  	}
    97  	return ""
    98  }
    99  
   100  func (x *EmailTask) GetBodyGzip() []byte {
   101  	if x != nil {
   102  		return x.BodyGzip
   103  	}
   104  	return nil
   105  }
   106  
   107  var File_go_chromium_org_luci_luci_notify_internal_tq_proto protoreflect.FileDescriptor
   108  
   109  var file_go_chromium_org_luci_luci_notify_internal_tq_proto_rawDesc = []byte{
   110  	0x0a, 0x32, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   111  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x5f, 0x6e, 0x6f, 0x74, 0x69,
   112  	0x66, 0x79, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x71, 0x2e, 0x70,
   113  	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x22, 0x76,
   114  	0x0a, 0x09, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x1e, 0x0a, 0x0a, 0x72,
   115  	0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52,
   116  	0x0a, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x73,
   117  	0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75,
   118  	0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20,
   119  	0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x6f, 0x64,
   120  	0x79, 0x5f, 0x67, 0x7a, 0x69, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x62, 0x6f,
   121  	0x64, 0x79, 0x47, 0x7a, 0x69, 0x70, 0x42, 0x2b, 0x5a, 0x29, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72,
   122  	0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x6c,
   123  	0x75, 0x63, 0x69, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
   124  	0x6e, 0x61, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   125  }
   126  
   127  var (
   128  	file_go_chromium_org_luci_luci_notify_internal_tq_proto_rawDescOnce sync.Once
   129  	file_go_chromium_org_luci_luci_notify_internal_tq_proto_rawDescData = file_go_chromium_org_luci_luci_notify_internal_tq_proto_rawDesc
   130  )
   131  
   132  func file_go_chromium_org_luci_luci_notify_internal_tq_proto_rawDescGZIP() []byte {
   133  	file_go_chromium_org_luci_luci_notify_internal_tq_proto_rawDescOnce.Do(func() {
   134  		file_go_chromium_org_luci_luci_notify_internal_tq_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_luci_notify_internal_tq_proto_rawDescData)
   135  	})
   136  	return file_go_chromium_org_luci_luci_notify_internal_tq_proto_rawDescData
   137  }
   138  
   139  var file_go_chromium_org_luci_luci_notify_internal_tq_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   140  var file_go_chromium_org_luci_luci_notify_internal_tq_proto_goTypes = []interface{}{
   141  	(*EmailTask)(nil), // 0: internal.EmailTask
   142  }
   143  var file_go_chromium_org_luci_luci_notify_internal_tq_proto_depIdxs = []int32{
   144  	0, // [0:0] is the sub-list for method output_type
   145  	0, // [0:0] is the sub-list for method input_type
   146  	0, // [0:0] is the sub-list for extension type_name
   147  	0, // [0:0] is the sub-list for extension extendee
   148  	0, // [0:0] is the sub-list for field type_name
   149  }
   150  
   151  func init() { file_go_chromium_org_luci_luci_notify_internal_tq_proto_init() }
   152  func file_go_chromium_org_luci_luci_notify_internal_tq_proto_init() {
   153  	if File_go_chromium_org_luci_luci_notify_internal_tq_proto != nil {
   154  		return
   155  	}
   156  	if !protoimpl.UnsafeEnabled {
   157  		file_go_chromium_org_luci_luci_notify_internal_tq_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   158  			switch v := v.(*EmailTask); i {
   159  			case 0:
   160  				return &v.state
   161  			case 1:
   162  				return &v.sizeCache
   163  			case 2:
   164  				return &v.unknownFields
   165  			default:
   166  				return nil
   167  			}
   168  		}
   169  	}
   170  	type x struct{}
   171  	out := protoimpl.TypeBuilder{
   172  		File: protoimpl.DescBuilder{
   173  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   174  			RawDescriptor: file_go_chromium_org_luci_luci_notify_internal_tq_proto_rawDesc,
   175  			NumEnums:      0,
   176  			NumMessages:   1,
   177  			NumExtensions: 0,
   178  			NumServices:   0,
   179  		},
   180  		GoTypes:           file_go_chromium_org_luci_luci_notify_internal_tq_proto_goTypes,
   181  		DependencyIndexes: file_go_chromium_org_luci_luci_notify_internal_tq_proto_depIdxs,
   182  		MessageInfos:      file_go_chromium_org_luci_luci_notify_internal_tq_proto_msgTypes,
   183  	}.Build()
   184  	File_go_chromium_org_luci_luci_notify_internal_tq_proto = out.File
   185  	file_go_chromium_org_luci_luci_notify_internal_tq_proto_rawDesc = nil
   186  	file_go_chromium_org_luci_luci_notify_internal_tq_proto_goTypes = nil
   187  	file_go_chromium_org_luci_luci_notify_internal_tq_proto_depIdxs = nil
   188  }