Path: blob/main/components/public-api/go/v1/pagination.pb.go
2500 views
// Copyright (c) 2025 Gitpod GmbH. All rights reserved.1// Licensed under the GNU Affero General Public License (AGPL).2// See License.AGPL.txt in the project root for license information.34// Code generated by protoc-gen-go. DO NOT EDIT.5// versions:6// protoc-gen-go v1.28.17// protoc (unknown)8// source: gitpod/v1/pagination.proto910package v11112import (13protoreflect "google.golang.org/protobuf/reflect/protoreflect"14protoimpl "google.golang.org/protobuf/runtime/protoimpl"15reflect "reflect"16sync "sync"17)1819const (20// Verify that this generated code is sufficiently up-to-date.21_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)22// Verify that runtime/protoimpl is sufficiently up-to-date.23_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)24)2526type PaginationRequest struct {27state protoimpl.MessageState28sizeCache protoimpl.SizeCache29unknownFields protoimpl.UnknownFields3031// Page size is the maximum number of results to retrieve per page.32// Defaults to 25. Maximum 100.33PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`34// Page is the page number of results to retrieve.35// The first page starts at 1.36// Defaults to 1.37//38// Deprecated: Do not use.39Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`40// Token for the next set of results that was returned as next_token of a41// PaginationResponse42Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`43}4445func (x *PaginationRequest) Reset() {46*x = PaginationRequest{}47if protoimpl.UnsafeEnabled {48mi := &file_gitpod_v1_pagination_proto_msgTypes[0]49ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))50ms.StoreMessageInfo(mi)51}52}5354func (x *PaginationRequest) String() string {55return protoimpl.X.MessageStringOf(x)56}5758func (*PaginationRequest) ProtoMessage() {}5960func (x *PaginationRequest) ProtoReflect() protoreflect.Message {61mi := &file_gitpod_v1_pagination_proto_msgTypes[0]62if protoimpl.UnsafeEnabled && x != nil {63ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))64if ms.LoadMessageInfo() == nil {65ms.StoreMessageInfo(mi)66}67return ms68}69return mi.MessageOf(x)70}7172// Deprecated: Use PaginationRequest.ProtoReflect.Descriptor instead.73func (*PaginationRequest) Descriptor() ([]byte, []int) {74return file_gitpod_v1_pagination_proto_rawDescGZIP(), []int{0}75}7677func (x *PaginationRequest) GetPageSize() int32 {78if x != nil {79return x.PageSize80}81return 082}8384// Deprecated: Do not use.85func (x *PaginationRequest) GetPage() int32 {86if x != nil {87return x.Page88}89return 090}9192func (x *PaginationRequest) GetToken() string {93if x != nil {94return x.Token95}96return ""97}9899type PaginationResponse struct {100state protoimpl.MessageState101sizeCache protoimpl.SizeCache102unknownFields protoimpl.UnknownFields103104// Total is the total number of results available.105//106// Deprecated: Do not use.107Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`108// Token passed for retreiving the next set of results. Empty if there are no109// more results110NextToken string `protobuf:"bytes,2,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"`111}112113func (x *PaginationResponse) Reset() {114*x = PaginationResponse{}115if protoimpl.UnsafeEnabled {116mi := &file_gitpod_v1_pagination_proto_msgTypes[1]117ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))118ms.StoreMessageInfo(mi)119}120}121122func (x *PaginationResponse) String() string {123return protoimpl.X.MessageStringOf(x)124}125126func (*PaginationResponse) ProtoMessage() {}127128func (x *PaginationResponse) ProtoReflect() protoreflect.Message {129mi := &file_gitpod_v1_pagination_proto_msgTypes[1]130if protoimpl.UnsafeEnabled && x != nil {131ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))132if ms.LoadMessageInfo() == nil {133ms.StoreMessageInfo(mi)134}135return ms136}137return mi.MessageOf(x)138}139140// Deprecated: Use PaginationResponse.ProtoReflect.Descriptor instead.141func (*PaginationResponse) Descriptor() ([]byte, []int) {142return file_gitpod_v1_pagination_proto_rawDescGZIP(), []int{1}143}144145// Deprecated: Do not use.146func (x *PaginationResponse) GetTotal() int32 {147if x != nil {148return x.Total149}150return 0151}152153func (x *PaginationResponse) GetNextToken() string {154if x != nil {155return x.NextToken156}157return ""158}159160var File_gitpod_v1_pagination_proto protoreflect.FileDescriptor161162var file_gitpod_v1_pagination_proto_rawDesc = []byte{1630x0a, 0x1a, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69,1640x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x67, 0x69,1650x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x22, 0x5e, 0x0a, 0x11, 0x50, 0x61, 0x67, 0x69, 0x6e,1660x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09,1670x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,1680x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x16, 0x0a, 0x04, 0x70, 0x61, 0x67,1690x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x70, 0x61, 0x67,1700x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,1710x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x4d, 0x0a, 0x12, 0x50, 0x61, 0x67, 0x69, 0x6e,1720x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a,1730x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x42, 0x02, 0x18, 0x01,1740x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x5f,1750x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x78,1760x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74,1770x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,1780x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74,1790x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f,1800x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d,1810x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,1820x33,183}184185var (186file_gitpod_v1_pagination_proto_rawDescOnce sync.Once187file_gitpod_v1_pagination_proto_rawDescData = file_gitpod_v1_pagination_proto_rawDesc188)189190func file_gitpod_v1_pagination_proto_rawDescGZIP() []byte {191file_gitpod_v1_pagination_proto_rawDescOnce.Do(func() {192file_gitpod_v1_pagination_proto_rawDescData = protoimpl.X.CompressGZIP(file_gitpod_v1_pagination_proto_rawDescData)193})194return file_gitpod_v1_pagination_proto_rawDescData195}196197var file_gitpod_v1_pagination_proto_msgTypes = make([]protoimpl.MessageInfo, 2)198var file_gitpod_v1_pagination_proto_goTypes = []interface{}{199(*PaginationRequest)(nil), // 0: gitpod.v1.PaginationRequest200(*PaginationResponse)(nil), // 1: gitpod.v1.PaginationResponse201}202var file_gitpod_v1_pagination_proto_depIdxs = []int32{2030, // [0:0] is the sub-list for method output_type2040, // [0:0] is the sub-list for method input_type2050, // [0:0] is the sub-list for extension type_name2060, // [0:0] is the sub-list for extension extendee2070, // [0:0] is the sub-list for field type_name208}209210func init() { file_gitpod_v1_pagination_proto_init() }211func file_gitpod_v1_pagination_proto_init() {212if File_gitpod_v1_pagination_proto != nil {213return214}215if !protoimpl.UnsafeEnabled {216file_gitpod_v1_pagination_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {217switch v := v.(*PaginationRequest); i {218case 0:219return &v.state220case 1:221return &v.sizeCache222case 2:223return &v.unknownFields224default:225return nil226}227}228file_gitpod_v1_pagination_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {229switch v := v.(*PaginationResponse); i {230case 0:231return &v.state232case 1:233return &v.sizeCache234case 2:235return &v.unknownFields236default:237return nil238}239}240}241type x struct{}242out := protoimpl.TypeBuilder{243File: protoimpl.DescBuilder{244GoPackagePath: reflect.TypeOf(x{}).PkgPath(),245RawDescriptor: file_gitpod_v1_pagination_proto_rawDesc,246NumEnums: 0,247NumMessages: 2,248NumExtensions: 0,249NumServices: 0,250},251GoTypes: file_gitpod_v1_pagination_proto_goTypes,252DependencyIndexes: file_gitpod_v1_pagination_proto_depIdxs,253MessageInfos: file_gitpod_v1_pagination_proto_msgTypes,254}.Build()255File_gitpod_v1_pagination_proto = out.File256file_gitpod_v1_pagination_proto_rawDesc = nil257file_gitpod_v1_pagination_proto_goTypes = nil258file_gitpod_v1_pagination_proto_depIdxs = nil259}260261262