go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/resultdb/internal/proto/page_token.pb.go (about) 1 // Copyright 2019 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/resultdb/internal/proto/page_token.proto 20 21 package internalpb 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_resultdb_internal_proto_page_token_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_resultdb_internal_proto_page_token_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_resultdb_internal_proto_page_token_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_resultdb_internal_proto_page_token_proto protoreflect.FileDescriptor 91 92 var file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_rawDesc = []byte{ 93 0x0a, 0x3d, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 94 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2f, 95 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 96 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 97 0x16, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2e, 0x69, 98 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x22, 0x27, 0x0a, 0x09, 0x50, 0x61, 0x67, 0x65, 0x54, 99 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 100 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 101 0x42, 0x39, 0x5a, 0x37, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 102 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 103 0x62, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 104 0x3b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 105 0x74, 0x6f, 0x33, 106 } 107 108 var ( 109 file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_rawDescOnce sync.Once 110 file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_rawDescData = file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_rawDesc 111 ) 112 113 func file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_rawDescGZIP() []byte { 114 file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_rawDescOnce.Do(func() { 115 file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_rawDescData) 116 }) 117 return file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_rawDescData 118 } 119 120 var file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 121 var file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_goTypes = []interface{}{ 122 (*PageToken)(nil), // 0: luci.resultdb.internal.PageToken 123 } 124 var file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_depIdxs = []int32{ 125 0, // [0:0] is the sub-list for method output_type 126 0, // [0:0] is the sub-list for method input_type 127 0, // [0:0] is the sub-list for extension type_name 128 0, // [0:0] is the sub-list for extension extendee 129 0, // [0:0] is the sub-list for field type_name 130 } 131 132 func init() { file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_init() } 133 func file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_init() { 134 if File_go_chromium_org_luci_resultdb_internal_proto_page_token_proto != nil { 135 return 136 } 137 if !protoimpl.UnsafeEnabled { 138 file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 139 switch v := v.(*PageToken); i { 140 case 0: 141 return &v.state 142 case 1: 143 return &v.sizeCache 144 case 2: 145 return &v.unknownFields 146 default: 147 return nil 148 } 149 } 150 } 151 type x struct{} 152 out := protoimpl.TypeBuilder{ 153 File: protoimpl.DescBuilder{ 154 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 155 RawDescriptor: file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_rawDesc, 156 NumEnums: 0, 157 NumMessages: 1, 158 NumExtensions: 0, 159 NumServices: 0, 160 }, 161 GoTypes: file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_goTypes, 162 DependencyIndexes: file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_depIdxs, 163 MessageInfos: file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_msgTypes, 164 }.Build() 165 File_go_chromium_org_luci_resultdb_internal_proto_page_token_proto = out.File 166 file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_rawDesc = nil 167 file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_goTypes = nil 168 file_go_chromium_org_luci_resultdb_internal_proto_page_token_proto_depIdxs = nil 169 }