Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/public-api/go/v1/pagination.pb.go
2500 views
1
// Copyright (c) 2025 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
// Code generated by protoc-gen-go. DO NOT EDIT.
6
// versions:
7
// protoc-gen-go v1.28.1
8
// protoc (unknown)
9
// source: gitpod/v1/pagination.proto
10
11
package v1
12
13
import (
14
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
15
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
16
reflect "reflect"
17
sync "sync"
18
)
19
20
const (
21
// Verify that this generated code is sufficiently up-to-date.
22
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
23
// Verify that runtime/protoimpl is sufficiently up-to-date.
24
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
25
)
26
27
type PaginationRequest struct {
28
state protoimpl.MessageState
29
sizeCache protoimpl.SizeCache
30
unknownFields protoimpl.UnknownFields
31
32
// Page size is the maximum number of results to retrieve per page.
33
// Defaults to 25. Maximum 100.
34
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
35
// Page is the page number of results to retrieve.
36
// The first page starts at 1.
37
// Defaults to 1.
38
//
39
// Deprecated: Do not use.
40
Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
41
// Token for the next set of results that was returned as next_token of a
42
// PaginationResponse
43
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
44
}
45
46
func (x *PaginationRequest) Reset() {
47
*x = PaginationRequest{}
48
if protoimpl.UnsafeEnabled {
49
mi := &file_gitpod_v1_pagination_proto_msgTypes[0]
50
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
51
ms.StoreMessageInfo(mi)
52
}
53
}
54
55
func (x *PaginationRequest) String() string {
56
return protoimpl.X.MessageStringOf(x)
57
}
58
59
func (*PaginationRequest) ProtoMessage() {}
60
61
func (x *PaginationRequest) ProtoReflect() protoreflect.Message {
62
mi := &file_gitpod_v1_pagination_proto_msgTypes[0]
63
if protoimpl.UnsafeEnabled && x != nil {
64
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
65
if ms.LoadMessageInfo() == nil {
66
ms.StoreMessageInfo(mi)
67
}
68
return ms
69
}
70
return mi.MessageOf(x)
71
}
72
73
// Deprecated: Use PaginationRequest.ProtoReflect.Descriptor instead.
74
func (*PaginationRequest) Descriptor() ([]byte, []int) {
75
return file_gitpod_v1_pagination_proto_rawDescGZIP(), []int{0}
76
}
77
78
func (x *PaginationRequest) GetPageSize() int32 {
79
if x != nil {
80
return x.PageSize
81
}
82
return 0
83
}
84
85
// Deprecated: Do not use.
86
func (x *PaginationRequest) GetPage() int32 {
87
if x != nil {
88
return x.Page
89
}
90
return 0
91
}
92
93
func (x *PaginationRequest) GetToken() string {
94
if x != nil {
95
return x.Token
96
}
97
return ""
98
}
99
100
type PaginationResponse struct {
101
state protoimpl.MessageState
102
sizeCache protoimpl.SizeCache
103
unknownFields protoimpl.UnknownFields
104
105
// Total is the total number of results available.
106
//
107
// Deprecated: Do not use.
108
Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
109
// Token passed for retreiving the next set of results. Empty if there are no
110
// more results
111
NextToken string `protobuf:"bytes,2,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"`
112
}
113
114
func (x *PaginationResponse) Reset() {
115
*x = PaginationResponse{}
116
if protoimpl.UnsafeEnabled {
117
mi := &file_gitpod_v1_pagination_proto_msgTypes[1]
118
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
119
ms.StoreMessageInfo(mi)
120
}
121
}
122
123
func (x *PaginationResponse) String() string {
124
return protoimpl.X.MessageStringOf(x)
125
}
126
127
func (*PaginationResponse) ProtoMessage() {}
128
129
func (x *PaginationResponse) ProtoReflect() protoreflect.Message {
130
mi := &file_gitpod_v1_pagination_proto_msgTypes[1]
131
if protoimpl.UnsafeEnabled && x != nil {
132
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
133
if ms.LoadMessageInfo() == nil {
134
ms.StoreMessageInfo(mi)
135
}
136
return ms
137
}
138
return mi.MessageOf(x)
139
}
140
141
// Deprecated: Use PaginationResponse.ProtoReflect.Descriptor instead.
142
func (*PaginationResponse) Descriptor() ([]byte, []int) {
143
return file_gitpod_v1_pagination_proto_rawDescGZIP(), []int{1}
144
}
145
146
// Deprecated: Do not use.
147
func (x *PaginationResponse) GetTotal() int32 {
148
if x != nil {
149
return x.Total
150
}
151
return 0
152
}
153
154
func (x *PaginationResponse) GetNextToken() string {
155
if x != nil {
156
return x.NextToken
157
}
158
return ""
159
}
160
161
var File_gitpod_v1_pagination_proto protoreflect.FileDescriptor
162
163
var file_gitpod_v1_pagination_proto_rawDesc = []byte{
164
0x0a, 0x1a, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69,
165
0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x67, 0x69,
166
0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x22, 0x5e, 0x0a, 0x11, 0x50, 0x61, 0x67, 0x69, 0x6e,
167
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09,
168
0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
169
0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x16, 0x0a, 0x04, 0x70, 0x61, 0x67,
170
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x70, 0x61, 0x67,
171
0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
172
0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x4d, 0x0a, 0x12, 0x50, 0x61, 0x67, 0x69, 0x6e,
173
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a,
174
0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x42, 0x02, 0x18, 0x01,
175
0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x5f,
176
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x78,
177
0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74,
178
0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
179
0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74,
180
0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f,
181
0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d,
182
0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
183
0x33,
184
}
185
186
var (
187
file_gitpod_v1_pagination_proto_rawDescOnce sync.Once
188
file_gitpod_v1_pagination_proto_rawDescData = file_gitpod_v1_pagination_proto_rawDesc
189
)
190
191
func file_gitpod_v1_pagination_proto_rawDescGZIP() []byte {
192
file_gitpod_v1_pagination_proto_rawDescOnce.Do(func() {
193
file_gitpod_v1_pagination_proto_rawDescData = protoimpl.X.CompressGZIP(file_gitpod_v1_pagination_proto_rawDescData)
194
})
195
return file_gitpod_v1_pagination_proto_rawDescData
196
}
197
198
var file_gitpod_v1_pagination_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
199
var file_gitpod_v1_pagination_proto_goTypes = []interface{}{
200
(*PaginationRequest)(nil), // 0: gitpod.v1.PaginationRequest
201
(*PaginationResponse)(nil), // 1: gitpod.v1.PaginationResponse
202
}
203
var file_gitpod_v1_pagination_proto_depIdxs = []int32{
204
0, // [0:0] is the sub-list for method output_type
205
0, // [0:0] is the sub-list for method input_type
206
0, // [0:0] is the sub-list for extension type_name
207
0, // [0:0] is the sub-list for extension extendee
208
0, // [0:0] is the sub-list for field type_name
209
}
210
211
func init() { file_gitpod_v1_pagination_proto_init() }
212
func file_gitpod_v1_pagination_proto_init() {
213
if File_gitpod_v1_pagination_proto != nil {
214
return
215
}
216
if !protoimpl.UnsafeEnabled {
217
file_gitpod_v1_pagination_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
218
switch v := v.(*PaginationRequest); i {
219
case 0:
220
return &v.state
221
case 1:
222
return &v.sizeCache
223
case 2:
224
return &v.unknownFields
225
default:
226
return nil
227
}
228
}
229
file_gitpod_v1_pagination_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
230
switch v := v.(*PaginationResponse); i {
231
case 0:
232
return &v.state
233
case 1:
234
return &v.sizeCache
235
case 2:
236
return &v.unknownFields
237
default:
238
return nil
239
}
240
}
241
}
242
type x struct{}
243
out := protoimpl.TypeBuilder{
244
File: protoimpl.DescBuilder{
245
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
246
RawDescriptor: file_gitpod_v1_pagination_proto_rawDesc,
247
NumEnums: 0,
248
NumMessages: 2,
249
NumExtensions: 0,
250
NumServices: 0,
251
},
252
GoTypes: file_gitpod_v1_pagination_proto_goTypes,
253
DependencyIndexes: file_gitpod_v1_pagination_proto_depIdxs,
254
MessageInfos: file_gitpod_v1_pagination_proto_msgTypes,
255
}.Build()
256
File_gitpod_v1_pagination_proto = out.File
257
file_gitpod_v1_pagination_proto_rawDesc = nil
258
file_gitpod_v1_pagination_proto_goTypes = nil
259
file_gitpod_v1_pagination_proto_depIdxs = nil
260
}
261
262