Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/usage-api/go/v1/pagination.pb.go
2499 views
1
// Copyright (c) 2022 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.0
8
// protoc v3.20.1
9
// source: usage/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 we expect
33
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
34
// page_token points to a specific page of the results
35
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
36
}
37
38
func (x *Pagination) Reset() {
39
*x = Pagination{}
40
if protoimpl.UnsafeEnabled {
41
mi := &file_usage_v1_pagination_proto_msgTypes[0]
42
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
43
ms.StoreMessageInfo(mi)
44
}
45
}
46
47
func (x *Pagination) String() string {
48
return protoimpl.X.MessageStringOf(x)
49
}
50
51
func (*Pagination) ProtoMessage() {}
52
53
func (x *Pagination) ProtoReflect() protoreflect.Message {
54
mi := &file_usage_v1_pagination_proto_msgTypes[0]
55
if protoimpl.UnsafeEnabled && x != nil {
56
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
57
if ms.LoadMessageInfo() == nil {
58
ms.StoreMessageInfo(mi)
59
}
60
return ms
61
}
62
return mi.MessageOf(x)
63
}
64
65
// Deprecated: Use Pagination.ProtoReflect.Descriptor instead.
66
func (*Pagination) Descriptor() ([]byte, []int) {
67
return file_usage_v1_pagination_proto_rawDescGZIP(), []int{0}
68
}
69
70
func (x *Pagination) GetPageSize() int32 {
71
if x != nil {
72
return x.PageSize
73
}
74
return 0
75
}
76
77
func (x *Pagination) GetPageToken() string {
78
if x != nil {
79
return x.PageToken
80
}
81
return ""
82
}
83
84
var File_usage_v1_pagination_proto protoreflect.FileDescriptor
85
86
var file_usage_v1_pagination_proto_rawDesc = []byte{
87
0x0a, 0x19, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e,
88
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x75, 0x73, 0x61,
89
0x67, 0x65, 0x2e, 0x76, 0x31, 0x22, 0x48, 0x0a, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74,
90
0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65,
91
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
92
0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02,
93
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42,
94
0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69,
95
0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x75,
96
0x73, 0x61, 0x67, 0x65, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
97
0x74, 0x6f, 0x33,
98
}
99
100
var (
101
file_usage_v1_pagination_proto_rawDescOnce sync.Once
102
file_usage_v1_pagination_proto_rawDescData = file_usage_v1_pagination_proto_rawDesc
103
)
104
105
func file_usage_v1_pagination_proto_rawDescGZIP() []byte {
106
file_usage_v1_pagination_proto_rawDescOnce.Do(func() {
107
file_usage_v1_pagination_proto_rawDescData = protoimpl.X.CompressGZIP(file_usage_v1_pagination_proto_rawDescData)
108
})
109
return file_usage_v1_pagination_proto_rawDescData
110
}
111
112
var file_usage_v1_pagination_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
113
var file_usage_v1_pagination_proto_goTypes = []interface{}{
114
(*Pagination)(nil), // 0: usage.v1.Pagination
115
}
116
var file_usage_v1_pagination_proto_depIdxs = []int32{
117
0, // [0:0] is the sub-list for method output_type
118
0, // [0:0] is the sub-list for method input_type
119
0, // [0:0] is the sub-list for extension type_name
120
0, // [0:0] is the sub-list for extension extendee
121
0, // [0:0] is the sub-list for field type_name
122
}
123
124
func init() { file_usage_v1_pagination_proto_init() }
125
func file_usage_v1_pagination_proto_init() {
126
if File_usage_v1_pagination_proto != nil {
127
return
128
}
129
if !protoimpl.UnsafeEnabled {
130
file_usage_v1_pagination_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
131
switch v := v.(*Pagination); i {
132
case 0:
133
return &v.state
134
case 1:
135
return &v.sizeCache
136
case 2:
137
return &v.unknownFields
138
default:
139
return nil
140
}
141
}
142
}
143
type x struct{}
144
out := protoimpl.TypeBuilder{
145
File: protoimpl.DescBuilder{
146
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
147
RawDescriptor: file_usage_v1_pagination_proto_rawDesc,
148
NumEnums: 0,
149
NumMessages: 1,
150
NumExtensions: 0,
151
NumServices: 0,
152
},
153
GoTypes: file_usage_v1_pagination_proto_goTypes,
154
DependencyIndexes: file_usage_v1_pagination_proto_depIdxs,
155
MessageInfos: file_usage_v1_pagination_proto_msgTypes,
156
}.Build()
157
File_usage_v1_pagination_proto = out.File
158
file_usage_v1_pagination_proto_rawDesc = nil
159
file_usage_v1_pagination_proto_goTypes = nil
160
file_usage_v1_pagination_proto_depIdxs = nil
161
}
162
163