Path: blob/main/components/public-api/go/v1/sorting.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/sorting.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 SortOrder int322728const (29SortOrder_SORT_ORDER_UNSPECIFIED SortOrder = 030SortOrder_SORT_ORDER_ASC SortOrder = 131SortOrder_SORT_ORDER_DESC SortOrder = 232)3334// Enum value maps for SortOrder.35var (36SortOrder_name = map[int32]string{370: "SORT_ORDER_UNSPECIFIED",381: "SORT_ORDER_ASC",392: "SORT_ORDER_DESC",40}41SortOrder_value = map[string]int32{42"SORT_ORDER_UNSPECIFIED": 0,43"SORT_ORDER_ASC": 1,44"SORT_ORDER_DESC": 2,45}46)4748func (x SortOrder) Enum() *SortOrder {49p := new(SortOrder)50*p = x51return p52}5354func (x SortOrder) String() string {55return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))56}5758func (SortOrder) Descriptor() protoreflect.EnumDescriptor {59return file_gitpod_v1_sorting_proto_enumTypes[0].Descriptor()60}6162func (SortOrder) Type() protoreflect.EnumType {63return &file_gitpod_v1_sorting_proto_enumTypes[0]64}6566func (x SortOrder) Number() protoreflect.EnumNumber {67return protoreflect.EnumNumber(x)68}6970// Deprecated: Use SortOrder.Descriptor instead.71func (SortOrder) EnumDescriptor() ([]byte, []int) {72return file_gitpod_v1_sorting_proto_rawDescGZIP(), []int{0}73}7475type Sort struct {76state protoimpl.MessageState77sizeCache protoimpl.SizeCache78unknownFields protoimpl.UnknownFields7980// Field name to sort by, in camelCase.81Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`82Order SortOrder `protobuf:"varint,2,opt,name=order,proto3,enum=gitpod.v1.SortOrder" json:"order,omitempty"`83}8485func (x *Sort) Reset() {86*x = Sort{}87if protoimpl.UnsafeEnabled {88mi := &file_gitpod_v1_sorting_proto_msgTypes[0]89ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))90ms.StoreMessageInfo(mi)91}92}9394func (x *Sort) String() string {95return protoimpl.X.MessageStringOf(x)96}9798func (*Sort) ProtoMessage() {}99100func (x *Sort) ProtoReflect() protoreflect.Message {101mi := &file_gitpod_v1_sorting_proto_msgTypes[0]102if protoimpl.UnsafeEnabled && x != nil {103ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))104if ms.LoadMessageInfo() == nil {105ms.StoreMessageInfo(mi)106}107return ms108}109return mi.MessageOf(x)110}111112// Deprecated: Use Sort.ProtoReflect.Descriptor instead.113func (*Sort) Descriptor() ([]byte, []int) {114return file_gitpod_v1_sorting_proto_rawDescGZIP(), []int{0}115}116117func (x *Sort) GetField() string {118if x != nil {119return x.Field120}121return ""122}123124func (x *Sort) GetOrder() SortOrder {125if x != nil {126return x.Order127}128return SortOrder_SORT_ORDER_UNSPECIFIED129}130131var File_gitpod_v1_sorting_proto protoreflect.FileDescriptor132133var file_gitpod_v1_sorting_proto_rawDesc = []byte{1340x0a, 0x17, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6f, 0x72, 0x74,1350x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x67, 0x69, 0x74, 0x70, 0x6f,1360x64, 0x2e, 0x76, 0x31, 0x22, 0x48, 0x0a, 0x04, 0x53, 0x6f, 0x72, 0x74, 0x12, 0x14, 0x0a, 0x05,1370x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x65,1380x6c, 0x64, 0x12, 0x2a, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28,1390x0e, 0x32, 0x14, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6f,1400x72, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x2a, 0x50,1410x0a, 0x09, 0x53, 0x6f, 0x72, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x16, 0x53,1420x4f, 0x52, 0x54, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,1430x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x4f, 0x52, 0x54, 0x5f,1440x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x41, 0x53, 0x43, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x53,1450x4f, 0x52, 0x54, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x53, 0x43, 0x10, 0x02,1460x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75,1470x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68,1480x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f,1490x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e,1500x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f,1510x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,152}153154var (155file_gitpod_v1_sorting_proto_rawDescOnce sync.Once156file_gitpod_v1_sorting_proto_rawDescData = file_gitpod_v1_sorting_proto_rawDesc157)158159func file_gitpod_v1_sorting_proto_rawDescGZIP() []byte {160file_gitpod_v1_sorting_proto_rawDescOnce.Do(func() {161file_gitpod_v1_sorting_proto_rawDescData = protoimpl.X.CompressGZIP(file_gitpod_v1_sorting_proto_rawDescData)162})163return file_gitpod_v1_sorting_proto_rawDescData164}165166var file_gitpod_v1_sorting_proto_enumTypes = make([]protoimpl.EnumInfo, 1)167var file_gitpod_v1_sorting_proto_msgTypes = make([]protoimpl.MessageInfo, 1)168var file_gitpod_v1_sorting_proto_goTypes = []interface{}{169(SortOrder)(0), // 0: gitpod.v1.SortOrder170(*Sort)(nil), // 1: gitpod.v1.Sort171}172var file_gitpod_v1_sorting_proto_depIdxs = []int32{1730, // 0: gitpod.v1.Sort.order:type_name -> gitpod.v1.SortOrder1741, // [1:1] is the sub-list for method output_type1751, // [1:1] is the sub-list for method input_type1761, // [1:1] is the sub-list for extension type_name1771, // [1:1] is the sub-list for extension extendee1780, // [0:1] is the sub-list for field type_name179}180181func init() { file_gitpod_v1_sorting_proto_init() }182func file_gitpod_v1_sorting_proto_init() {183if File_gitpod_v1_sorting_proto != nil {184return185}186if !protoimpl.UnsafeEnabled {187file_gitpod_v1_sorting_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {188switch v := v.(*Sort); i {189case 0:190return &v.state191case 1:192return &v.sizeCache193case 2:194return &v.unknownFields195default:196return nil197}198}199}200type x struct{}201out := protoimpl.TypeBuilder{202File: protoimpl.DescBuilder{203GoPackagePath: reflect.TypeOf(x{}).PkgPath(),204RawDescriptor: file_gitpod_v1_sorting_proto_rawDesc,205NumEnums: 1,206NumMessages: 1,207NumExtensions: 0,208NumServices: 0,209},210GoTypes: file_gitpod_v1_sorting_proto_goTypes,211DependencyIndexes: file_gitpod_v1_sorting_proto_depIdxs,212EnumInfos: file_gitpod_v1_sorting_proto_enumTypes,213MessageInfos: file_gitpod_v1_sorting_proto_msgTypes,214}.Build()215File_gitpod_v1_sorting_proto = out.File216file_gitpod_v1_sorting_proto_rawDesc = nil217file_gitpod_v1_sorting_proto_goTypes = nil218file_gitpod_v1_sorting_proto_depIdxs = nil219}220221222