-
Notifications
You must be signed in to change notification settings - Fork 55
/
repository_branch_pb.ts
283 lines (236 loc) · 10.7 KB
/
repository_branch_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
// 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.8.0 with parameter "ts_nocheck=false,target=ts"
// @generated from file buf/alpha/registry/v1alpha1/repository_branch.proto (package buf.alpha.registry.v1alpha1, syntax proto3)
/* eslint-disable */
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
/**
* @generated from message buf.alpha.registry.v1alpha1.RepositoryBranch
*/
export class RepositoryBranch extends Message<RepositoryBranch> {
/**
* primary key, unique, immutable
*
* @generated from field: string id = 1;
*/
id = "";
/**
* immutable
*
* @generated from field: google.protobuf.Timestamp create_time = 2;
*/
createTime?: Timestamp;
/**
* We reserve field number '3' for the update_time.
* google.protobuf.Timestamp update_time = 3;
* The name of the repository branch, i.e. "v1".
*
* @generated from field: string name = 4;
*/
name = "";
/**
* The ID of the repository this branch belongs to.
*
* @generated from field: string repository_id = 5;
*/
repositoryId = "";
constructor(data?: PartialMessage<RepositoryBranch>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.RepositoryBranch";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "create_time", kind: "message", T: Timestamp },
{ no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "repository_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RepositoryBranch {
return new RepositoryBranch().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RepositoryBranch {
return new RepositoryBranch().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RepositoryBranch {
return new RepositoryBranch().fromJsonString(jsonString, options);
}
static equals(a: RepositoryBranch | PlainMessage<RepositoryBranch> | undefined, b: RepositoryBranch | PlainMessage<RepositoryBranch> | undefined): boolean {
return proto3.util.equals(RepositoryBranch, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.CreateRepositoryBranchRequest
*/
export class CreateRepositoryBranchRequest extends Message<CreateRepositoryBranchRequest> {
/**
* The ID of the repository this branch should be created on.
*
* @generated from field: string repository_id = 1;
*/
repositoryId = "";
/**
* The name of the repository branch, i.e. v1.
*
* @generated from field: string name = 2;
*/
name = "";
/**
* The name of the parent branch. The latest commit on this
* branch will be used as the branch's parent.
*
* @generated from field: string parent_branch = 3;
*/
parentBranch = "";
constructor(data?: PartialMessage<CreateRepositoryBranchRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.CreateRepositoryBranchRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "repository_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "parent_branch", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateRepositoryBranchRequest {
return new CreateRepositoryBranchRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateRepositoryBranchRequest {
return new CreateRepositoryBranchRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateRepositoryBranchRequest {
return new CreateRepositoryBranchRequest().fromJsonString(jsonString, options);
}
static equals(a: CreateRepositoryBranchRequest | PlainMessage<CreateRepositoryBranchRequest> | undefined, b: CreateRepositoryBranchRequest | PlainMessage<CreateRepositoryBranchRequest> | undefined): boolean {
return proto3.util.equals(CreateRepositoryBranchRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.CreateRepositoryBranchResponse
*/
export class CreateRepositoryBranchResponse extends Message<CreateRepositoryBranchResponse> {
/**
* @generated from field: buf.alpha.registry.v1alpha1.RepositoryBranch repository_branch = 1;
*/
repositoryBranch?: RepositoryBranch;
constructor(data?: PartialMessage<CreateRepositoryBranchResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.CreateRepositoryBranchResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "repository_branch", kind: "message", T: RepositoryBranch },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateRepositoryBranchResponse {
return new CreateRepositoryBranchResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateRepositoryBranchResponse {
return new CreateRepositoryBranchResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateRepositoryBranchResponse {
return new CreateRepositoryBranchResponse().fromJsonString(jsonString, options);
}
static equals(a: CreateRepositoryBranchResponse | PlainMessage<CreateRepositoryBranchResponse> | undefined, b: CreateRepositoryBranchResponse | PlainMessage<CreateRepositoryBranchResponse> | undefined): boolean {
return proto3.util.equals(CreateRepositoryBranchResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.ListRepositoryBranchesRequest
*/
export class ListRepositoryBranchesRequest extends Message<ListRepositoryBranchesRequest> {
/**
* The ID of the repository whose branches should be listed.
*
* @generated from field: string repository_id = 1;
*/
repositoryId = "";
/**
* @generated from field: uint32 page_size = 2;
*/
pageSize = 0;
/**
* The first page is returned if this is empty.
*
* @generated from field: string page_token = 3;
*/
pageToken = "";
/**
* @generated from field: bool reverse = 4;
*/
reverse = false;
constructor(data?: PartialMessage<ListRepositoryBranchesRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.ListRepositoryBranchesRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "repository_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>): ListRepositoryBranchesRequest {
return new ListRepositoryBranchesRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRepositoryBranchesRequest {
return new ListRepositoryBranchesRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRepositoryBranchesRequest {
return new ListRepositoryBranchesRequest().fromJsonString(jsonString, options);
}
static equals(a: ListRepositoryBranchesRequest | PlainMessage<ListRepositoryBranchesRequest> | undefined, b: ListRepositoryBranchesRequest | PlainMessage<ListRepositoryBranchesRequest> | undefined): boolean {
return proto3.util.equals(ListRepositoryBranchesRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.ListRepositoryBranchesResponse
*/
export class ListRepositoryBranchesResponse extends Message<ListRepositoryBranchesResponse> {
/**
* @generated from field: repeated buf.alpha.registry.v1alpha1.RepositoryBranch repository_branches = 1;
*/
repositoryBranches: RepositoryBranch[] = [];
/**
* There are no more pages if this is empty.
*
* @generated from field: string next_page_token = 2;
*/
nextPageToken = "";
constructor(data?: PartialMessage<ListRepositoryBranchesResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.ListRepositoryBranchesResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "repository_branches", kind: "message", T: RepositoryBranch, repeated: true },
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRepositoryBranchesResponse {
return new ListRepositoryBranchesResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRepositoryBranchesResponse {
return new ListRepositoryBranchesResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRepositoryBranchesResponse {
return new ListRepositoryBranchesResponse().fromJsonString(jsonString, options);
}
static equals(a: ListRepositoryBranchesResponse | PlainMessage<ListRepositoryBranchesResponse> | undefined, b: ListRepositoryBranchesResponse | PlainMessage<ListRepositoryBranchesResponse> | undefined): boolean {
return proto3.util.equals(ListRepositoryBranchesResponse, a, b);
}
}