Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/public-api/go/v1/sorting.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/sorting.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 SortOrder int32
28
29
const (
30
SortOrder_SORT_ORDER_UNSPECIFIED SortOrder = 0
31
SortOrder_SORT_ORDER_ASC SortOrder = 1
32
SortOrder_SORT_ORDER_DESC SortOrder = 2
33
)
34
35
// Enum value maps for SortOrder.
36
var (
37
SortOrder_name = map[int32]string{
38
0: "SORT_ORDER_UNSPECIFIED",
39
1: "SORT_ORDER_ASC",
40
2: "SORT_ORDER_DESC",
41
}
42
SortOrder_value = map[string]int32{
43
"SORT_ORDER_UNSPECIFIED": 0,
44
"SORT_ORDER_ASC": 1,
45
"SORT_ORDER_DESC": 2,
46
}
47
)
48
49
func (x SortOrder) Enum() *SortOrder {
50
p := new(SortOrder)
51
*p = x
52
return p
53
}
54
55
func (x SortOrder) String() string {
56
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
57
}
58
59
func (SortOrder) Descriptor() protoreflect.EnumDescriptor {
60
return file_gitpod_v1_sorting_proto_enumTypes[0].Descriptor()
61
}
62
63
func (SortOrder) Type() protoreflect.EnumType {
64
return &file_gitpod_v1_sorting_proto_enumTypes[0]
65
}
66
67
func (x SortOrder) Number() protoreflect.EnumNumber {
68
return protoreflect.EnumNumber(x)
69
}
70
71
// Deprecated: Use SortOrder.Descriptor instead.
72
func (SortOrder) EnumDescriptor() ([]byte, []int) {
73
return file_gitpod_v1_sorting_proto_rawDescGZIP(), []int{0}
74
}
75
76
type Sort struct {
77
state protoimpl.MessageState
78
sizeCache protoimpl.SizeCache
79
unknownFields protoimpl.UnknownFields
80
81
// Field name to sort by, in camelCase.
82
Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
83
Order SortOrder `protobuf:"varint,2,opt,name=order,proto3,enum=gitpod.v1.SortOrder" json:"order,omitempty"`
84
}
85
86
func (x *Sort) Reset() {
87
*x = Sort{}
88
if protoimpl.UnsafeEnabled {
89
mi := &file_gitpod_v1_sorting_proto_msgTypes[0]
90
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
91
ms.StoreMessageInfo(mi)
92
}
93
}
94
95
func (x *Sort) String() string {
96
return protoimpl.X.MessageStringOf(x)
97
}
98
99
func (*Sort) ProtoMessage() {}
100
101
func (x *Sort) ProtoReflect() protoreflect.Message {
102
mi := &file_gitpod_v1_sorting_proto_msgTypes[0]
103
if protoimpl.UnsafeEnabled && x != nil {
104
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
105
if ms.LoadMessageInfo() == nil {
106
ms.StoreMessageInfo(mi)
107
}
108
return ms
109
}
110
return mi.MessageOf(x)
111
}
112
113
// Deprecated: Use Sort.ProtoReflect.Descriptor instead.
114
func (*Sort) Descriptor() ([]byte, []int) {
115
return file_gitpod_v1_sorting_proto_rawDescGZIP(), []int{0}
116
}
117
118
func (x *Sort) GetField() string {
119
if x != nil {
120
return x.Field
121
}
122
return ""
123
}
124
125
func (x *Sort) GetOrder() SortOrder {
126
if x != nil {
127
return x.Order
128
}
129
return SortOrder_SORT_ORDER_UNSPECIFIED
130
}
131
132
var File_gitpod_v1_sorting_proto protoreflect.FileDescriptor
133
134
var file_gitpod_v1_sorting_proto_rawDesc = []byte{
135
0x0a, 0x17, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6f, 0x72, 0x74,
136
0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x67, 0x69, 0x74, 0x70, 0x6f,
137
0x64, 0x2e, 0x76, 0x31, 0x22, 0x48, 0x0a, 0x04, 0x53, 0x6f, 0x72, 0x74, 0x12, 0x14, 0x0a, 0x05,
138
0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x65,
139
0x6c, 0x64, 0x12, 0x2a, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28,
140
0x0e, 0x32, 0x14, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6f,
141
0x72, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x2a, 0x50,
142
0x0a, 0x09, 0x53, 0x6f, 0x72, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x16, 0x53,
143
0x4f, 0x52, 0x54, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
144
0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x4f, 0x52, 0x54, 0x5f,
145
0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x41, 0x53, 0x43, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x53,
146
0x4f, 0x52, 0x54, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x53, 0x43, 0x10, 0x02,
147
0x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75,
148
0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68,
149
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f,
150
0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e,
151
0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f,
152
0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
153
}
154
155
var (
156
file_gitpod_v1_sorting_proto_rawDescOnce sync.Once
157
file_gitpod_v1_sorting_proto_rawDescData = file_gitpod_v1_sorting_proto_rawDesc
158
)
159
160
func file_gitpod_v1_sorting_proto_rawDescGZIP() []byte {
161
file_gitpod_v1_sorting_proto_rawDescOnce.Do(func() {
162
file_gitpod_v1_sorting_proto_rawDescData = protoimpl.X.CompressGZIP(file_gitpod_v1_sorting_proto_rawDescData)
163
})
164
return file_gitpod_v1_sorting_proto_rawDescData
165
}
166
167
var file_gitpod_v1_sorting_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
168
var file_gitpod_v1_sorting_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
169
var file_gitpod_v1_sorting_proto_goTypes = []interface{}{
170
(SortOrder)(0), // 0: gitpod.v1.SortOrder
171
(*Sort)(nil), // 1: gitpod.v1.Sort
172
}
173
var file_gitpod_v1_sorting_proto_depIdxs = []int32{
174
0, // 0: gitpod.v1.Sort.order:type_name -> gitpod.v1.SortOrder
175
1, // [1:1] is the sub-list for method output_type
176
1, // [1:1] is the sub-list for method input_type
177
1, // [1:1] is the sub-list for extension type_name
178
1, // [1:1] is the sub-list for extension extendee
179
0, // [0:1] is the sub-list for field type_name
180
}
181
182
func init() { file_gitpod_v1_sorting_proto_init() }
183
func file_gitpod_v1_sorting_proto_init() {
184
if File_gitpod_v1_sorting_proto != nil {
185
return
186
}
187
if !protoimpl.UnsafeEnabled {
188
file_gitpod_v1_sorting_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
189
switch v := v.(*Sort); i {
190
case 0:
191
return &v.state
192
case 1:
193
return &v.sizeCache
194
case 2:
195
return &v.unknownFields
196
default:
197
return nil
198
}
199
}
200
}
201
type x struct{}
202
out := protoimpl.TypeBuilder{
203
File: protoimpl.DescBuilder{
204
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
205
RawDescriptor: file_gitpod_v1_sorting_proto_rawDesc,
206
NumEnums: 1,
207
NumMessages: 1,
208
NumExtensions: 0,
209
NumServices: 0,
210
},
211
GoTypes: file_gitpod_v1_sorting_proto_goTypes,
212
DependencyIndexes: file_gitpod_v1_sorting_proto_depIdxs,
213
EnumInfos: file_gitpod_v1_sorting_proto_enumTypes,
214
MessageInfos: file_gitpod_v1_sorting_proto_msgTypes,
215
}.Build()
216
File_gitpod_v1_sorting_proto = out.File
217
file_gitpod_v1_sorting_proto_rawDesc = nil
218
file_gitpod_v1_sorting_proto_goTypes = nil
219
file_gitpod_v1_sorting_proto_depIdxs = nil
220
}
221
222