go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/scheduler/appengine/internal/timers.pb.go (about)

     1  // Copyright 2017 The LUCI Authors.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //      http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.31.0
    18  // 	protoc        v3.21.7
    19  // source: go.chromium.org/luci/scheduler/appengine/internal/timers.proto
    20  
    21  package internal
    22  
    23  import (
    24  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    25  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    26  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    27  	reflect "reflect"
    28  	sync "sync"
    29  )
    30  
    31  const (
    32  	// Verify that this generated code is sufficiently up-to-date.
    33  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    34  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    36  )
    37  
    38  // Timer can be emitted by any invocation if it wants to be poked later.
    39  //
    40  // Timers are scoped to single invocation and owned by it, so we don't include
    41  // invocation reference here. It is always available from the context of calls.
    42  type Timer struct {
    43  	state         protoimpl.MessageState
    44  	sizeCache     protoimpl.SizeCache
    45  	unknownFields protoimpl.UnknownFields
    46  
    47  	// Unique in time identifier of this timer, auto-generated.
    48  	//
    49  	// It is used to deduplicate and hence provide idempotency for adding
    50  	// timers.
    51  	//
    52  	// Set by the engine, can't be overridden.
    53  	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    54  	// Timestamp when the timer was created.
    55  	//
    56  	// Set by the engine, can't be overridden.
    57  	Created *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created,proto3" json:"created,omitempty"`
    58  	// Target time when this timer activates.
    59  	//
    60  	// Should be provided by whoever emits the timer.
    61  	Eta *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=eta,proto3" json:"eta,omitempty"`
    62  	// User friendly name for this timer that shows up in UI.
    63  	//
    64  	// Can be provided by whoever emits the timer. Doesn't have to be unique.
    65  	Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
    66  	// Arbitrary optional payload passed verbatim to the invocation.
    67  	Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"`
    68  }
    69  
    70  func (x *Timer) Reset() {
    71  	*x = Timer{}
    72  	if protoimpl.UnsafeEnabled {
    73  		mi := &file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_msgTypes[0]
    74  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    75  		ms.StoreMessageInfo(mi)
    76  	}
    77  }
    78  
    79  func (x *Timer) String() string {
    80  	return protoimpl.X.MessageStringOf(x)
    81  }
    82  
    83  func (*Timer) ProtoMessage() {}
    84  
    85  func (x *Timer) ProtoReflect() protoreflect.Message {
    86  	mi := &file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_msgTypes[0]
    87  	if protoimpl.UnsafeEnabled && x != nil {
    88  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    89  		if ms.LoadMessageInfo() == nil {
    90  			ms.StoreMessageInfo(mi)
    91  		}
    92  		return ms
    93  	}
    94  	return mi.MessageOf(x)
    95  }
    96  
    97  // Deprecated: Use Timer.ProtoReflect.Descriptor instead.
    98  func (*Timer) Descriptor() ([]byte, []int) {
    99  	return file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_rawDescGZIP(), []int{0}
   100  }
   101  
   102  func (x *Timer) GetId() string {
   103  	if x != nil {
   104  		return x.Id
   105  	}
   106  	return ""
   107  }
   108  
   109  func (x *Timer) GetCreated() *timestamppb.Timestamp {
   110  	if x != nil {
   111  		return x.Created
   112  	}
   113  	return nil
   114  }
   115  
   116  func (x *Timer) GetEta() *timestamppb.Timestamp {
   117  	if x != nil {
   118  		return x.Eta
   119  	}
   120  	return nil
   121  }
   122  
   123  func (x *Timer) GetTitle() string {
   124  	if x != nil {
   125  		return x.Title
   126  	}
   127  	return ""
   128  }
   129  
   130  func (x *Timer) GetPayload() []byte {
   131  	if x != nil {
   132  		return x.Payload
   133  	}
   134  	return nil
   135  }
   136  
   137  // TimerList is what we store in datastore entities.
   138  type TimerList struct {
   139  	state         protoimpl.MessageState
   140  	sizeCache     protoimpl.SizeCache
   141  	unknownFields protoimpl.UnknownFields
   142  
   143  	Timers []*Timer `protobuf:"bytes,1,rep,name=timers,proto3" json:"timers,omitempty"`
   144  }
   145  
   146  func (x *TimerList) Reset() {
   147  	*x = TimerList{}
   148  	if protoimpl.UnsafeEnabled {
   149  		mi := &file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_msgTypes[1]
   150  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   151  		ms.StoreMessageInfo(mi)
   152  	}
   153  }
   154  
   155  func (x *TimerList) String() string {
   156  	return protoimpl.X.MessageStringOf(x)
   157  }
   158  
   159  func (*TimerList) ProtoMessage() {}
   160  
   161  func (x *TimerList) ProtoReflect() protoreflect.Message {
   162  	mi := &file_go_chromium_org_luci_scheduler_appengine_internal_timers_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 TimerList.ProtoReflect.Descriptor instead.
   174  func (*TimerList) Descriptor() ([]byte, []int) {
   175  	return file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_rawDescGZIP(), []int{1}
   176  }
   177  
   178  func (x *TimerList) GetTimers() []*Timer {
   179  	if x != nil {
   180  		return x.Timers
   181  	}
   182  	return nil
   183  }
   184  
   185  var File_go_chromium_org_luci_scheduler_appengine_internal_timers_proto protoreflect.FileDescriptor
   186  
   187  var file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_rawDesc = []byte{
   188  	0x0a, 0x3e, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   189  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72,
   190  	0x2f, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
   191  	0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   192  	0x12, 0x0f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x74, 0x69, 0x6d, 0x65, 0x72,
   193  	0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
   194  	0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f,
   195  	0x74, 0x6f, 0x22, 0xab, 0x01, 0x0a, 0x05, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02,
   196  	0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x07,
   197  	0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
   198  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
   199  	0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74,
   200  	0x65, 0x64, 0x12, 0x2c, 0x0a, 0x03, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
   201  	0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
   202  	0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x03, 0x65, 0x74, 0x61,
   203  	0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
   204  	0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61,
   205  	0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,
   206  	0x22, 0x3b, 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2e, 0x0a,
   207  	0x06, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e,
   208  	0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x73, 0x2e,
   209  	0x54, 0x69, 0x6d, 0x65, 0x72, 0x52, 0x06, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x73, 0x42, 0x33, 0x5a,
   210  	0x31, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67,
   211  	0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2f,
   212  	0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
   213  	0x61, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   214  }
   215  
   216  var (
   217  	file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_rawDescOnce sync.Once
   218  	file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_rawDescData = file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_rawDesc
   219  )
   220  
   221  func file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_rawDescGZIP() []byte {
   222  	file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_rawDescOnce.Do(func() {
   223  		file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_rawDescData)
   224  	})
   225  	return file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_rawDescData
   226  }
   227  
   228  var file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   229  var file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_goTypes = []interface{}{
   230  	(*Timer)(nil),                 // 0: internal.timers.Timer
   231  	(*TimerList)(nil),             // 1: internal.timers.TimerList
   232  	(*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
   233  }
   234  var file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_depIdxs = []int32{
   235  	2, // 0: internal.timers.Timer.created:type_name -> google.protobuf.Timestamp
   236  	2, // 1: internal.timers.Timer.eta:type_name -> google.protobuf.Timestamp
   237  	0, // 2: internal.timers.TimerList.timers:type_name -> internal.timers.Timer
   238  	3, // [3:3] is the sub-list for method output_type
   239  	3, // [3:3] is the sub-list for method input_type
   240  	3, // [3:3] is the sub-list for extension type_name
   241  	3, // [3:3] is the sub-list for extension extendee
   242  	0, // [0:3] is the sub-list for field type_name
   243  }
   244  
   245  func init() { file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_init() }
   246  func file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_init() {
   247  	if File_go_chromium_org_luci_scheduler_appengine_internal_timers_proto != nil {
   248  		return
   249  	}
   250  	if !protoimpl.UnsafeEnabled {
   251  		file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   252  			switch v := v.(*Timer); i {
   253  			case 0:
   254  				return &v.state
   255  			case 1:
   256  				return &v.sizeCache
   257  			case 2:
   258  				return &v.unknownFields
   259  			default:
   260  				return nil
   261  			}
   262  		}
   263  		file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   264  			switch v := v.(*TimerList); i {
   265  			case 0:
   266  				return &v.state
   267  			case 1:
   268  				return &v.sizeCache
   269  			case 2:
   270  				return &v.unknownFields
   271  			default:
   272  				return nil
   273  			}
   274  		}
   275  	}
   276  	type x struct{}
   277  	out := protoimpl.TypeBuilder{
   278  		File: protoimpl.DescBuilder{
   279  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   280  			RawDescriptor: file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_rawDesc,
   281  			NumEnums:      0,
   282  			NumMessages:   2,
   283  			NumExtensions: 0,
   284  			NumServices:   0,
   285  		},
   286  		GoTypes:           file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_goTypes,
   287  		DependencyIndexes: file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_depIdxs,
   288  		MessageInfos:      file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_msgTypes,
   289  	}.Build()
   290  	File_go_chromium_org_luci_scheduler_appengine_internal_timers_proto = out.File
   291  	file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_rawDesc = nil
   292  	file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_goTypes = nil
   293  	file_go_chromium_org_luci_scheduler_appengine_internal_timers_proto_depIdxs = nil
   294  }