Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/public-api/go/experimental/v1/pagination.pb.go
2501 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/experimental/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 Pagination 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
Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
39
}
40
41
func (x *Pagination) Reset() {
42
*x = Pagination{}
43
if protoimpl.UnsafeEnabled {
44
mi := &file_gitpod_experimental_v1_pagination_proto_msgTypes[0]
45
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
46
ms.StoreMessageInfo(mi)
47
}
48
}
49
50
func (x *Pagination) String() string {
51
return protoimpl.X.MessageStringOf(x)
52
}
53
54
func (*Pagination) ProtoMessage() {}
55
56
func (x *Pagination) ProtoReflect() protoreflect.Message {
57
mi := &file_gitpod_experimental_v1_pagination_proto_msgTypes[0]
58
if protoimpl.UnsafeEnabled && x != nil {
59
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
60
if ms.LoadMessageInfo() == nil {
61
ms.StoreMessageInfo(mi)
62
}
63
return ms
64
}
65
return mi.MessageOf(x)
66
}
67
68
// Deprecated: Use Pagination.ProtoReflect.Descriptor instead.
69
func (*Pagination) Descriptor() ([]byte, []int) {
70
return file_gitpod_experimental_v1_pagination_proto_rawDescGZIP(), []int{0}
71
}
72
73
func (x *Pagination) GetPageSize() int32 {
74
if x != nil {
75
return x.PageSize
76
}
77
return 0
78
}
79
80
func (x *Pagination) GetPage() int32 {
81
if x != nil {
82
return x.Page
83
}
84
return 0
85
}
86
87
var File_gitpod_experimental_v1_pagination_proto protoreflect.FileDescriptor
88
89
var file_gitpod_experimental_v1_pagination_proto_rawDesc = []byte{
90
0x0a, 0x27, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d,
91
0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74,
92
0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, 0x69, 0x74, 0x70, 0x6f,
93
0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76,
94
0x31, 0x22, 0x3d, 0x0a, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
95
0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01,
96
0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04,
97
0x70, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65,
98
0x42, 0x6b, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75,
99
0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65,
100
0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
101
0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69,
102
0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f,
103
0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78,
104
0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70,
105
0x72, 0x6f, 0x74, 0x6f, 0x33,
106
}
107
108
var (
109
file_gitpod_experimental_v1_pagination_proto_rawDescOnce sync.Once
110
file_gitpod_experimental_v1_pagination_proto_rawDescData = file_gitpod_experimental_v1_pagination_proto_rawDesc
111
)
112
113
func file_gitpod_experimental_v1_pagination_proto_rawDescGZIP() []byte {
114
file_gitpod_experimental_v1_pagination_proto_rawDescOnce.Do(func() {
115
file_gitpod_experimental_v1_pagination_proto_rawDescData = protoimpl.X.CompressGZIP(file_gitpod_experimental_v1_pagination_proto_rawDescData)
116
})
117
return file_gitpod_experimental_v1_pagination_proto_rawDescData
118
}
119
120
var file_gitpod_experimental_v1_pagination_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
121
var file_gitpod_experimental_v1_pagination_proto_goTypes = []interface{}{
122
(*Pagination)(nil), // 0: gitpod.experimental.v1.Pagination
123
}
124
var file_gitpod_experimental_v1_pagination_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_gitpod_experimental_v1_pagination_proto_init() }
133
func file_gitpod_experimental_v1_pagination_proto_init() {
134
if File_gitpod_experimental_v1_pagination_proto != nil {
135
return
136
}
137
if !protoimpl.UnsafeEnabled {
138
file_gitpod_experimental_v1_pagination_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
139
switch v := v.(*Pagination); 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_gitpod_experimental_v1_pagination_proto_rawDesc,
156
NumEnums: 0,
157
NumMessages: 1,
158
NumExtensions: 0,
159
NumServices: 0,
160
},
161
GoTypes: file_gitpod_experimental_v1_pagination_proto_goTypes,
162
DependencyIndexes: file_gitpod_experimental_v1_pagination_proto_depIdxs,
163
MessageInfos: file_gitpod_experimental_v1_pagination_proto_msgTypes,
164
}.Build()
165
File_gitpod_experimental_v1_pagination_proto = out.File
166
file_gitpod_experimental_v1_pagination_proto_rawDesc = nil
167
file_gitpod_experimental_v1_pagination_proto_goTypes = nil
168
file_gitpod_experimental_v1_pagination_proto_depIdxs = nil
169
}
170
171