go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/analysis/internal/pagination/proto/pagination.pb.go (about) 1 // Copyright 2022 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/analysis/internal/pagination/proto/pagination.proto 20 21 package paginationpb 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 // A message for storing all the information attached to a page token. 38 type PageToken struct { 39 state protoimpl.MessageState 40 sizeCache protoimpl.SizeCache 41 unknownFields protoimpl.UnknownFields 42 43 // Position marks the cursor's start (exclusive). Its interpretation is 44 // implementation-specific. For instance, for a Spanner cursor, this is a 45 // string slice representation of the Spanner key corresponding to the entry 46 // prior to the one at which to start reading, or empty if the cursor is to 47 // start at the beginning. 48 Position []string `protobuf:"bytes,1,rep,name=position,proto3" json:"position,omitempty"` 49 } 50 51 func (x *PageToken) Reset() { 52 *x = PageToken{} 53 if protoimpl.UnsafeEnabled { 54 mi := &file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_msgTypes[0] 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 ms.StoreMessageInfo(mi) 57 } 58 } 59 60 func (x *PageToken) String() string { 61 return protoimpl.X.MessageStringOf(x) 62 } 63 64 func (*PageToken) ProtoMessage() {} 65 66 func (x *PageToken) ProtoReflect() protoreflect.Message { 67 mi := &file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_msgTypes[0] 68 if protoimpl.UnsafeEnabled && x != nil { 69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 70 if ms.LoadMessageInfo() == nil { 71 ms.StoreMessageInfo(mi) 72 } 73 return ms 74 } 75 return mi.MessageOf(x) 76 } 77 78 // Deprecated: Use PageToken.ProtoReflect.Descriptor instead. 79 func (*PageToken) Descriptor() ([]byte, []int) { 80 return file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_rawDescGZIP(), []int{0} 81 } 82 83 func (x *PageToken) GetPosition() []string { 84 if x != nil { 85 return x.Position 86 } 87 return nil 88 } 89 90 var File_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto protoreflect.FileDescriptor 91 92 var file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_rawDesc = []byte{ 93 0x0a, 0x48, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 94 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f, 95 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 96 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 97 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x6c, 0x75, 0x63, 0x69, 98 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 99 0x61, 0x6c, 0x2e, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x27, 0x0a, 100 0x09, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f, 101 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 102 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x46, 0x5a, 0x44, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 103 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 104 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 105 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 106 0x6f, 0x3b, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x70, 0x62, 0x62, 0x06, 107 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 108 } 109 110 var ( 111 file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_rawDescOnce sync.Once 112 file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_rawDescData = file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_rawDesc 113 ) 114 115 func file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_rawDescGZIP() []byte { 116 file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_rawDescOnce.Do(func() { 117 file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_rawDescData) 118 }) 119 return file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_rawDescData 120 } 121 122 var file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 123 var file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_goTypes = []interface{}{ 124 (*PageToken)(nil), // 0: luci.analysis.internal.pagination.PageToken 125 } 126 var file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_depIdxs = []int32{ 127 0, // [0:0] is the sub-list for method output_type 128 0, // [0:0] is the sub-list for method input_type 129 0, // [0:0] is the sub-list for extension type_name 130 0, // [0:0] is the sub-list for extension extendee 131 0, // [0:0] is the sub-list for field type_name 132 } 133 134 func init() { file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_init() } 135 func file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_init() { 136 if File_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto != nil { 137 return 138 } 139 if !protoimpl.UnsafeEnabled { 140 file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 141 switch v := v.(*PageToken); i { 142 case 0: 143 return &v.state 144 case 1: 145 return &v.sizeCache 146 case 2: 147 return &v.unknownFields 148 default: 149 return nil 150 } 151 } 152 } 153 type x struct{} 154 out := protoimpl.TypeBuilder{ 155 File: protoimpl.DescBuilder{ 156 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 157 RawDescriptor: file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_rawDesc, 158 NumEnums: 0, 159 NumMessages: 1, 160 NumExtensions: 0, 161 NumServices: 0, 162 }, 163 GoTypes: file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_goTypes, 164 DependencyIndexes: file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_depIdxs, 165 MessageInfos: file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_msgTypes, 166 }.Build() 167 File_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto = out.File 168 file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_rawDesc = nil 169 file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_goTypes = nil 170 file_go_chromium_org_luci_analysis_internal_pagination_proto_pagination_proto_depIdxs = nil 171 }