go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/scheduler/appengine/internal/cursors.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/cursors.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  	reflect "reflect"
    27  	sync "sync"
    28  )
    29  
    30  const (
    31  	// Verify that this generated code is sufficiently up-to-date.
    32  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    33  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    35  )
    36  
    37  // InvocationsCursor is used to paginate results of GetInvocations RPC call.
    38  //
    39  // It is serialized in base64 and sent to the clients. There's no integrity
    40  // protection: we assume broken cursors are rejected down the call stack.
    41  //
    42  // The internal structure of the cursor is implementation detail and clients
    43  // must not depend on it.
    44  type InvocationsCursor struct {
    45  	state         protoimpl.MessageState
    46  	sizeCache     protoimpl.SizeCache
    47  	unknownFields protoimpl.UnknownFields
    48  
    49  	// ID of the last scanned invocation (active or finished).
    50  	//
    51  	// The query will return all IDs that are larger than this one.
    52  	LastScanned int64 `protobuf:"varint,2,opt,name=last_scanned,json=lastScanned,proto3" json:"last_scanned,omitempty"`
    53  }
    54  
    55  func (x *InvocationsCursor) Reset() {
    56  	*x = InvocationsCursor{}
    57  	if protoimpl.UnsafeEnabled {
    58  		mi := &file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_msgTypes[0]
    59  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    60  		ms.StoreMessageInfo(mi)
    61  	}
    62  }
    63  
    64  func (x *InvocationsCursor) String() string {
    65  	return protoimpl.X.MessageStringOf(x)
    66  }
    67  
    68  func (*InvocationsCursor) ProtoMessage() {}
    69  
    70  func (x *InvocationsCursor) ProtoReflect() protoreflect.Message {
    71  	mi := &file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_msgTypes[0]
    72  	if protoimpl.UnsafeEnabled && x != nil {
    73  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    74  		if ms.LoadMessageInfo() == nil {
    75  			ms.StoreMessageInfo(mi)
    76  		}
    77  		return ms
    78  	}
    79  	return mi.MessageOf(x)
    80  }
    81  
    82  // Deprecated: Use InvocationsCursor.ProtoReflect.Descriptor instead.
    83  func (*InvocationsCursor) Descriptor() ([]byte, []int) {
    84  	return file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_rawDescGZIP(), []int{0}
    85  }
    86  
    87  func (x *InvocationsCursor) GetLastScanned() int64 {
    88  	if x != nil {
    89  		return x.LastScanned
    90  	}
    91  	return 0
    92  }
    93  
    94  var File_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto protoreflect.FileDescriptor
    95  
    96  var file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_rawDesc = []byte{
    97  	0x0a, 0x3f, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
    98  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72,
    99  	0x2f, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
   100  	0x6e, 0x61, 0x6c, 0x2f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   101  	0x6f, 0x12, 0x10, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x63, 0x75, 0x72, 0x73,
   102  	0x6f, 0x72, 0x73, 0x22, 0x3c, 0x0a, 0x11, 0x49, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
   103  	0x6e, 0x73, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x61, 0x73, 0x74,
   104  	0x5f, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b,
   105  	0x6c, 0x61, 0x73, 0x74, 0x53, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x4a, 0x04, 0x08, 0x01, 0x10,
   106  	0x02, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d,
   107  	0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75,
   108  	0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x69, 0x6e,
   109  	0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   110  }
   111  
   112  var (
   113  	file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_rawDescOnce sync.Once
   114  	file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_rawDescData = file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_rawDesc
   115  )
   116  
   117  func file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_rawDescGZIP() []byte {
   118  	file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_rawDescOnce.Do(func() {
   119  		file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_rawDescData)
   120  	})
   121  	return file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_rawDescData
   122  }
   123  
   124  var file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   125  var file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_goTypes = []interface{}{
   126  	(*InvocationsCursor)(nil), // 0: internal.cursors.InvocationsCursor
   127  }
   128  var file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_depIdxs = []int32{
   129  	0, // [0:0] is the sub-list for method output_type
   130  	0, // [0:0] is the sub-list for method input_type
   131  	0, // [0:0] is the sub-list for extension type_name
   132  	0, // [0:0] is the sub-list for extension extendee
   133  	0, // [0:0] is the sub-list for field type_name
   134  }
   135  
   136  func init() { file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_init() }
   137  func file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_init() {
   138  	if File_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto != nil {
   139  		return
   140  	}
   141  	if !protoimpl.UnsafeEnabled {
   142  		file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   143  			switch v := v.(*InvocationsCursor); i {
   144  			case 0:
   145  				return &v.state
   146  			case 1:
   147  				return &v.sizeCache
   148  			case 2:
   149  				return &v.unknownFields
   150  			default:
   151  				return nil
   152  			}
   153  		}
   154  	}
   155  	type x struct{}
   156  	out := protoimpl.TypeBuilder{
   157  		File: protoimpl.DescBuilder{
   158  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   159  			RawDescriptor: file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_rawDesc,
   160  			NumEnums:      0,
   161  			NumMessages:   1,
   162  			NumExtensions: 0,
   163  			NumServices:   0,
   164  		},
   165  		GoTypes:           file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_goTypes,
   166  		DependencyIndexes: file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_depIdxs,
   167  		MessageInfos:      file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_msgTypes,
   168  	}.Build()
   169  	File_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto = out.File
   170  	file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_rawDesc = nil
   171  	file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_goTypes = nil
   172  	file_go_chromium_org_luci_scheduler_appengine_internal_cursors_proto_depIdxs = nil
   173  }