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

     1  // Copyright 2018 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/db.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  // FinishedInvocation represents a recently finished invocation of a job.
    39  //
    40  // It is stored as part of Job entity inside FinishedInvocationsRaw field.
    41  type FinishedInvocation struct {
    42  	state         protoimpl.MessageState
    43  	sizeCache     protoimpl.SizeCache
    44  	unknownFields protoimpl.UnknownFields
    45  
    46  	InvocationId int64                  `protobuf:"varint,1,opt,name=invocation_id,json=invocationId,proto3" json:"invocation_id,omitempty"`
    47  	Finished     *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=finished,proto3" json:"finished,omitempty"` // when it was finished
    48  }
    49  
    50  func (x *FinishedInvocation) Reset() {
    51  	*x = FinishedInvocation{}
    52  	if protoimpl.UnsafeEnabled {
    53  		mi := &file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_msgTypes[0]
    54  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    55  		ms.StoreMessageInfo(mi)
    56  	}
    57  }
    58  
    59  func (x *FinishedInvocation) String() string {
    60  	return protoimpl.X.MessageStringOf(x)
    61  }
    62  
    63  func (*FinishedInvocation) ProtoMessage() {}
    64  
    65  func (x *FinishedInvocation) ProtoReflect() protoreflect.Message {
    66  	mi := &file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_msgTypes[0]
    67  	if protoimpl.UnsafeEnabled && x != nil {
    68  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    69  		if ms.LoadMessageInfo() == nil {
    70  			ms.StoreMessageInfo(mi)
    71  		}
    72  		return ms
    73  	}
    74  	return mi.MessageOf(x)
    75  }
    76  
    77  // Deprecated: Use FinishedInvocation.ProtoReflect.Descriptor instead.
    78  func (*FinishedInvocation) Descriptor() ([]byte, []int) {
    79  	return file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_rawDescGZIP(), []int{0}
    80  }
    81  
    82  func (x *FinishedInvocation) GetInvocationId() int64 {
    83  	if x != nil {
    84  		return x.InvocationId
    85  	}
    86  	return 0
    87  }
    88  
    89  func (x *FinishedInvocation) GetFinished() *timestamppb.Timestamp {
    90  	if x != nil {
    91  		return x.Finished
    92  	}
    93  	return nil
    94  }
    95  
    96  // FinishedInvocationList is stored in Job entities as FinishedInvocationsRaw.
    97  type FinishedInvocationList struct {
    98  	state         protoimpl.MessageState
    99  	sizeCache     protoimpl.SizeCache
   100  	unknownFields protoimpl.UnknownFields
   101  
   102  	Invocations []*FinishedInvocation `protobuf:"bytes,1,rep,name=invocations,proto3" json:"invocations,omitempty"`
   103  }
   104  
   105  func (x *FinishedInvocationList) Reset() {
   106  	*x = FinishedInvocationList{}
   107  	if protoimpl.UnsafeEnabled {
   108  		mi := &file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_msgTypes[1]
   109  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   110  		ms.StoreMessageInfo(mi)
   111  	}
   112  }
   113  
   114  func (x *FinishedInvocationList) String() string {
   115  	return protoimpl.X.MessageStringOf(x)
   116  }
   117  
   118  func (*FinishedInvocationList) ProtoMessage() {}
   119  
   120  func (x *FinishedInvocationList) ProtoReflect() protoreflect.Message {
   121  	mi := &file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_msgTypes[1]
   122  	if protoimpl.UnsafeEnabled && x != nil {
   123  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   124  		if ms.LoadMessageInfo() == nil {
   125  			ms.StoreMessageInfo(mi)
   126  		}
   127  		return ms
   128  	}
   129  	return mi.MessageOf(x)
   130  }
   131  
   132  // Deprecated: Use FinishedInvocationList.ProtoReflect.Descriptor instead.
   133  func (*FinishedInvocationList) Descriptor() ([]byte, []int) {
   134  	return file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_rawDescGZIP(), []int{1}
   135  }
   136  
   137  func (x *FinishedInvocationList) GetInvocations() []*FinishedInvocation {
   138  	if x != nil {
   139  		return x.Invocations
   140  	}
   141  	return nil
   142  }
   143  
   144  var File_go_chromium_org_luci_scheduler_appengine_internal_db_proto protoreflect.FileDescriptor
   145  
   146  var file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_rawDesc = []byte{
   147  	0x0a, 0x3a, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   148  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72,
   149  	0x2f, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
   150  	0x6e, 0x61, 0x6c, 0x2f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x69, 0x6e,
   151  	0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x64, 0x62, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   152  	0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
   153  	0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x71, 0x0a, 0x12, 0x46, 0x69,
   154  	0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x49, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   155  	0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69,
   156  	0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74,
   157  	0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x08, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65,
   158  	0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   159  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
   160  	0x61, 0x6d, 0x70, 0x52, 0x08, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x22, 0x5b, 0x0a,
   161  	0x16, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x49, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74,
   162  	0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x0b, 0x69, 0x6e, 0x76, 0x6f, 0x63,
   163  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x69,
   164  	0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x64, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x69, 0x73,
   165  	0x68, 0x65, 0x64, 0x49, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x69,
   166  	0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x6f,
   167  	0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75,
   168  	0x63, 0x69, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x70,
   169  	0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x62,
   170  	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   171  }
   172  
   173  var (
   174  	file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_rawDescOnce sync.Once
   175  	file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_rawDescData = file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_rawDesc
   176  )
   177  
   178  func file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_rawDescGZIP() []byte {
   179  	file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_rawDescOnce.Do(func() {
   180  		file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_rawDescData)
   181  	})
   182  	return file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_rawDescData
   183  }
   184  
   185  var file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   186  var file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_goTypes = []interface{}{
   187  	(*FinishedInvocation)(nil),     // 0: internal.db.FinishedInvocation
   188  	(*FinishedInvocationList)(nil), // 1: internal.db.FinishedInvocationList
   189  	(*timestamppb.Timestamp)(nil),  // 2: google.protobuf.Timestamp
   190  }
   191  var file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_depIdxs = []int32{
   192  	2, // 0: internal.db.FinishedInvocation.finished:type_name -> google.protobuf.Timestamp
   193  	0, // 1: internal.db.FinishedInvocationList.invocations:type_name -> internal.db.FinishedInvocation
   194  	2, // [2:2] is the sub-list for method output_type
   195  	2, // [2:2] is the sub-list for method input_type
   196  	2, // [2:2] is the sub-list for extension type_name
   197  	2, // [2:2] is the sub-list for extension extendee
   198  	0, // [0:2] is the sub-list for field type_name
   199  }
   200  
   201  func init() { file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_init() }
   202  func file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_init() {
   203  	if File_go_chromium_org_luci_scheduler_appengine_internal_db_proto != nil {
   204  		return
   205  	}
   206  	if !protoimpl.UnsafeEnabled {
   207  		file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   208  			switch v := v.(*FinishedInvocation); i {
   209  			case 0:
   210  				return &v.state
   211  			case 1:
   212  				return &v.sizeCache
   213  			case 2:
   214  				return &v.unknownFields
   215  			default:
   216  				return nil
   217  			}
   218  		}
   219  		file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   220  			switch v := v.(*FinishedInvocationList); i {
   221  			case 0:
   222  				return &v.state
   223  			case 1:
   224  				return &v.sizeCache
   225  			case 2:
   226  				return &v.unknownFields
   227  			default:
   228  				return nil
   229  			}
   230  		}
   231  	}
   232  	type x struct{}
   233  	out := protoimpl.TypeBuilder{
   234  		File: protoimpl.DescBuilder{
   235  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   236  			RawDescriptor: file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_rawDesc,
   237  			NumEnums:      0,
   238  			NumMessages:   2,
   239  			NumExtensions: 0,
   240  			NumServices:   0,
   241  		},
   242  		GoTypes:           file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_goTypes,
   243  		DependencyIndexes: file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_depIdxs,
   244  		MessageInfos:      file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_msgTypes,
   245  	}.Build()
   246  	File_go_chromium_org_luci_scheduler_appengine_internal_db_proto = out.File
   247  	file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_rawDesc = nil
   248  	file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_goTypes = nil
   249  	file_go_chromium_org_luci_scheduler_appengine_internal_db_proto_depIdxs = nil
   250  }