-
Notifications
You must be signed in to change notification settings - Fork 55
/
admin_pb.ts
133 lines (112 loc) · 5.03 KB
/
admin_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
// 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.1 with parameter "ts_nocheck=false,target=ts"
// @generated from file buf/alpha/registry/v1alpha1/admin.proto (package buf.alpha.registry.v1alpha1, syntax proto3)
/* eslint-disable */
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3 } from "@bufbuild/protobuf";
import { User } from "./user_pb.js";
import { Organization } from "./organization_pb.js";
import { Repository } from "./repository_pb.js";
import { Plugin, Template } from "./plugin_pb.js";
/**
* @generated from message buf.alpha.registry.v1alpha1.ForceDeleteUserRequest
*/
export class ForceDeleteUserRequest extends Message<ForceDeleteUserRequest> {
/**
* @generated from field: string user_id = 1;
*/
userId = "";
constructor(data?: PartialMessage<ForceDeleteUserRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.ForceDeleteUserRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ForceDeleteUserRequest {
return new ForceDeleteUserRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ForceDeleteUserRequest {
return new ForceDeleteUserRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ForceDeleteUserRequest {
return new ForceDeleteUserRequest().fromJsonString(jsonString, options);
}
static equals(a: ForceDeleteUserRequest | PlainMessage<ForceDeleteUserRequest> | undefined, b: ForceDeleteUserRequest | PlainMessage<ForceDeleteUserRequest> | undefined): boolean {
return proto3.util.equals(ForceDeleteUserRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.ForceDeleteUserResponse
*/
export class ForceDeleteUserResponse extends Message<ForceDeleteUserResponse> {
/**
* The deleted user.
*
* @generated from field: buf.alpha.registry.v1alpha1.User user = 1;
*/
user?: User;
/**
* The deleted organizations.
*
* @generated from field: repeated buf.alpha.registry.v1alpha1.Organization organizations = 2;
*/
organizations: Organization[] = [];
/**
* The deleted repositories.
*
* @generated from field: repeated buf.alpha.registry.v1alpha1.Repository repositories = 3;
*/
repositories: Repository[] = [];
/**
* The deleted plugins.
*
* @generated from field: repeated buf.alpha.registry.v1alpha1.Plugin plugins = 4;
*/
plugins: Plugin[] = [];
/**
* The deleted templates.
*
* @generated from field: repeated buf.alpha.registry.v1alpha1.Template templates = 5;
*/
templates: Template[] = [];
constructor(data?: PartialMessage<ForceDeleteUserResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.ForceDeleteUserResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "user", kind: "message", T: User },
{ no: 2, name: "organizations", kind: "message", T: Organization, repeated: true },
{ no: 3, name: "repositories", kind: "message", T: Repository, repeated: true },
{ no: 4, name: "plugins", kind: "message", T: Plugin, repeated: true },
{ no: 5, name: "templates", kind: "message", T: Template, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ForceDeleteUserResponse {
return new ForceDeleteUserResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ForceDeleteUserResponse {
return new ForceDeleteUserResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ForceDeleteUserResponse {
return new ForceDeleteUserResponse().fromJsonString(jsonString, options);
}
static equals(a: ForceDeleteUserResponse | PlainMessage<ForceDeleteUserResponse> | undefined, b: ForceDeleteUserResponse | PlainMessage<ForceDeleteUserResponse> | undefined): boolean {
return proto3.util.equals(ForceDeleteUserResponse, a, b);
}
}