-
Notifications
You must be signed in to change notification settings - Fork 55
/
repository_track_commit_pb.ts
360 lines (297 loc) · 16 KB
/
repository_track_commit_pb.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
// Copyright 2021-2024 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// @generated by protoc-gen-es v1.7.0 with parameter "ts_nocheck=false,target=ts"
// @generated from file buf/alpha/registry/v1alpha1/repository_track_commit.proto (package buf.alpha.registry.v1alpha1, syntax proto3)
/* eslint-disable */
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
/**
* RepositoryTrackCommit is the existance of a RepositoryCommit on a RepositoryTrack. Currently its only purpose is
* for querying whether a RepositoryCommit is on a RepositoryTrack and determining it's sequence id.
*
* We reserve field number '3' for id, but RepositoryTrackCommits have no id.
* string id = 1;
*
* @generated from message buf.alpha.registry.v1alpha1.RepositoryTrackCommit
*/
export class RepositoryTrackCommit extends Message<RepositoryTrackCommit> {
/**
* immutable
*
* @generated from field: google.protobuf.Timestamp create_time = 2;
*/
createTime?: Timestamp;
/**
* immutable
*
* @generated from field: string repository_track_id = 4;
*/
repositoryTrackId = "";
/**
* immutable
*
* @generated from field: string repository_commit_id = 5;
*/
repositoryCommitId = "";
/**
* unique for repository_track, immutable
*
* @generated from field: int64 sequence_id = 6;
*/
sequenceId = protoInt64.zero;
constructor(data?: PartialMessage<RepositoryTrackCommit>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.RepositoryTrackCommit";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 2, name: "create_time", kind: "message", T: Timestamp },
{ no: 4, name: "repository_track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "repository_commit_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 6, name: "sequence_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RepositoryTrackCommit {
return new RepositoryTrackCommit().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RepositoryTrackCommit {
return new RepositoryTrackCommit().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RepositoryTrackCommit {
return new RepositoryTrackCommit().fromJsonString(jsonString, options);
}
static equals(a: RepositoryTrackCommit | PlainMessage<RepositoryTrackCommit> | undefined, b: RepositoryTrackCommit | PlainMessage<RepositoryTrackCommit> | undefined): boolean {
return proto3.util.equals(RepositoryTrackCommit, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.GetRepositoryTrackCommitByRepositoryCommitRequest
*/
export class GetRepositoryTrackCommitByRepositoryCommitRequest extends Message<GetRepositoryTrackCommitByRepositoryCommitRequest> {
/**
* @generated from field: string repository_track_id = 1;
*/
repositoryTrackId = "";
/**
* @generated from field: string repository_commit_id = 2;
*/
repositoryCommitId = "";
constructor(data?: PartialMessage<GetRepositoryTrackCommitByRepositoryCommitRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.GetRepositoryTrackCommitByRepositoryCommitRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "repository_track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "repository_commit_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetRepositoryTrackCommitByRepositoryCommitRequest {
return new GetRepositoryTrackCommitByRepositoryCommitRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetRepositoryTrackCommitByRepositoryCommitRequest {
return new GetRepositoryTrackCommitByRepositoryCommitRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRepositoryTrackCommitByRepositoryCommitRequest {
return new GetRepositoryTrackCommitByRepositoryCommitRequest().fromJsonString(jsonString, options);
}
static equals(a: GetRepositoryTrackCommitByRepositoryCommitRequest | PlainMessage<GetRepositoryTrackCommitByRepositoryCommitRequest> | undefined, b: GetRepositoryTrackCommitByRepositoryCommitRequest | PlainMessage<GetRepositoryTrackCommitByRepositoryCommitRequest> | undefined): boolean {
return proto3.util.equals(GetRepositoryTrackCommitByRepositoryCommitRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.GetRepositoryTrackCommitByRepositoryCommitResponse
*/
export class GetRepositoryTrackCommitByRepositoryCommitResponse extends Message<GetRepositoryTrackCommitByRepositoryCommitResponse> {
/**
* @generated from field: buf.alpha.registry.v1alpha1.RepositoryTrackCommit repository_track_commit = 1;
*/
repositoryTrackCommit?: RepositoryTrackCommit;
constructor(data?: PartialMessage<GetRepositoryTrackCommitByRepositoryCommitResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.GetRepositoryTrackCommitByRepositoryCommitResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "repository_track_commit", kind: "message", T: RepositoryTrackCommit },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetRepositoryTrackCommitByRepositoryCommitResponse {
return new GetRepositoryTrackCommitByRepositoryCommitResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetRepositoryTrackCommitByRepositoryCommitResponse {
return new GetRepositoryTrackCommitByRepositoryCommitResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRepositoryTrackCommitByRepositoryCommitResponse {
return new GetRepositoryTrackCommitByRepositoryCommitResponse().fromJsonString(jsonString, options);
}
static equals(a: GetRepositoryTrackCommitByRepositoryCommitResponse | PlainMessage<GetRepositoryTrackCommitByRepositoryCommitResponse> | undefined, b: GetRepositoryTrackCommitByRepositoryCommitResponse | PlainMessage<GetRepositoryTrackCommitByRepositoryCommitResponse> | undefined): boolean {
return proto3.util.equals(GetRepositoryTrackCommitByRepositoryCommitResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.ListRepositoryTrackCommitsByRepositoryTrackRequest
*/
export class ListRepositoryTrackCommitsByRepositoryTrackRequest extends Message<ListRepositoryTrackCommitsByRepositoryTrackRequest> {
/**
* @generated from field: string repository_track_id = 1;
*/
repositoryTrackId = "";
/**
* @generated from field: uint32 page_size = 2;
*/
pageSize = 0;
/**
* @generated from field: string page_token = 3;
*/
pageToken = "";
/**
* @generated from field: bool reverse = 4;
*/
reverse = false;
constructor(data?: PartialMessage<ListRepositoryTrackCommitsByRepositoryTrackRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.ListRepositoryTrackCommitsByRepositoryTrackRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "repository_track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
{ no: 3, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "reverse", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRepositoryTrackCommitsByRepositoryTrackRequest {
return new ListRepositoryTrackCommitsByRepositoryTrackRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRepositoryTrackCommitsByRepositoryTrackRequest {
return new ListRepositoryTrackCommitsByRepositoryTrackRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRepositoryTrackCommitsByRepositoryTrackRequest {
return new ListRepositoryTrackCommitsByRepositoryTrackRequest().fromJsonString(jsonString, options);
}
static equals(a: ListRepositoryTrackCommitsByRepositoryTrackRequest | PlainMessage<ListRepositoryTrackCommitsByRepositoryTrackRequest> | undefined, b: ListRepositoryTrackCommitsByRepositoryTrackRequest | PlainMessage<ListRepositoryTrackCommitsByRepositoryTrackRequest> | undefined): boolean {
return proto3.util.equals(ListRepositoryTrackCommitsByRepositoryTrackRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.ListRepositoryTrackCommitsByRepositoryTrackResponse
*/
export class ListRepositoryTrackCommitsByRepositoryTrackResponse extends Message<ListRepositoryTrackCommitsByRepositoryTrackResponse> {
/**
* @generated from field: repeated buf.alpha.registry.v1alpha1.RepositoryTrackCommit repository_track_commits = 1;
*/
repositoryTrackCommits: RepositoryTrackCommit[] = [];
/**
* @generated from field: string next_page_token = 2;
*/
nextPageToken = "";
constructor(data?: PartialMessage<ListRepositoryTrackCommitsByRepositoryTrackResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.ListRepositoryTrackCommitsByRepositoryTrackResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "repository_track_commits", kind: "message", T: RepositoryTrackCommit, repeated: true },
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRepositoryTrackCommitsByRepositoryTrackResponse {
return new ListRepositoryTrackCommitsByRepositoryTrackResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRepositoryTrackCommitsByRepositoryTrackResponse {
return new ListRepositoryTrackCommitsByRepositoryTrackResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRepositoryTrackCommitsByRepositoryTrackResponse {
return new ListRepositoryTrackCommitsByRepositoryTrackResponse().fromJsonString(jsonString, options);
}
static equals(a: ListRepositoryTrackCommitsByRepositoryTrackResponse | PlainMessage<ListRepositoryTrackCommitsByRepositoryTrackResponse> | undefined, b: ListRepositoryTrackCommitsByRepositoryTrackResponse | PlainMessage<ListRepositoryTrackCommitsByRepositoryTrackResponse> | undefined): boolean {
return proto3.util.equals(ListRepositoryTrackCommitsByRepositoryTrackResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.GetRepositoryTrackCommitByReferenceRequest
*/
export class GetRepositoryTrackCommitByReferenceRequest extends Message<GetRepositoryTrackCommitByReferenceRequest> {
/**
* @generated from field: string repository_owner = 1;
*/
repositoryOwner = "";
/**
* @generated from field: string repository_name = 2;
*/
repositoryName = "";
/**
* @generated from field: string track = 3;
*/
track = "";
/**
* @generated from field: string reference = 4;
*/
reference = "";
constructor(data?: PartialMessage<GetRepositoryTrackCommitByReferenceRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.GetRepositoryTrackCommitByReferenceRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "repository_owner", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "repository_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "track", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "reference", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetRepositoryTrackCommitByReferenceRequest {
return new GetRepositoryTrackCommitByReferenceRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetRepositoryTrackCommitByReferenceRequest {
return new GetRepositoryTrackCommitByReferenceRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRepositoryTrackCommitByReferenceRequest {
return new GetRepositoryTrackCommitByReferenceRequest().fromJsonString(jsonString, options);
}
static equals(a: GetRepositoryTrackCommitByReferenceRequest | PlainMessage<GetRepositoryTrackCommitByReferenceRequest> | undefined, b: GetRepositoryTrackCommitByReferenceRequest | PlainMessage<GetRepositoryTrackCommitByReferenceRequest> | undefined): boolean {
return proto3.util.equals(GetRepositoryTrackCommitByReferenceRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.GetRepositoryTrackCommitByReferenceResponse
*/
export class GetRepositoryTrackCommitByReferenceResponse extends Message<GetRepositoryTrackCommitByReferenceResponse> {
/**
* @generated from field: buf.alpha.registry.v1alpha1.RepositoryTrackCommit repository_track_commit = 1;
*/
repositoryTrackCommit?: RepositoryTrackCommit;
constructor(data?: PartialMessage<GetRepositoryTrackCommitByReferenceResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.GetRepositoryTrackCommitByReferenceResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "repository_track_commit", kind: "message", T: RepositoryTrackCommit },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetRepositoryTrackCommitByReferenceResponse {
return new GetRepositoryTrackCommitByReferenceResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetRepositoryTrackCommitByReferenceResponse {
return new GetRepositoryTrackCommitByReferenceResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRepositoryTrackCommitByReferenceResponse {
return new GetRepositoryTrackCommitByReferenceResponse().fromJsonString(jsonString, options);
}
static equals(a: GetRepositoryTrackCommitByReferenceResponse | PlainMessage<GetRepositoryTrackCommitByReferenceResponse> | undefined, b: GetRepositoryTrackCommitByReferenceResponse | PlainMessage<GetRepositoryTrackCommitByReferenceResponse> | undefined): boolean {
return proto3.util.equals(GetRepositoryTrackCommitByReferenceResponse, a, b);
}
}