@miradorlabs/web-grpc 3.10.0 → 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -235,6 +235,26 @@ export interface CreateInstallTermaPullRequestsResponse {
|
|
|
235
235
|
results: InstallTermaPullRequestResult[];
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
+
export interface ListInstallTermaPullRequestsRequest {
|
|
239
|
+
organizationId: string;
|
|
240
|
+
projectId: string;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export interface InstallTermaPullRequest {
|
|
244
|
+
/** GitHub owner/name. */
|
|
245
|
+
repository: string;
|
|
246
|
+
number: number;
|
|
247
|
+
url: string;
|
|
248
|
+
/** open, merged or closed. */
|
|
249
|
+
state: string;
|
|
250
|
+
updatedAt: string;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export interface ListInstallTermaPullRequestsResponse {
|
|
254
|
+
status: ResponseStatus | undefined;
|
|
255
|
+
pullRequests: InstallTermaPullRequest[];
|
|
256
|
+
}
|
|
257
|
+
|
|
238
258
|
function createBaseGitHubScopeRequest(): GitHubScopeRequest {
|
|
239
259
|
return { organizationId: "" };
|
|
240
260
|
}
|
|
@@ -3030,6 +3050,335 @@ export const CreateInstallTermaPullRequestsResponse: MessageFns<CreateInstallTer
|
|
|
3030
3050
|
},
|
|
3031
3051
|
};
|
|
3032
3052
|
|
|
3053
|
+
function createBaseListInstallTermaPullRequestsRequest(): ListInstallTermaPullRequestsRequest {
|
|
3054
|
+
return { organizationId: "", projectId: "" };
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3057
|
+
export const ListInstallTermaPullRequestsRequest: MessageFns<ListInstallTermaPullRequestsRequest> = {
|
|
3058
|
+
encode(message: ListInstallTermaPullRequestsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3059
|
+
if (message.organizationId !== "") {
|
|
3060
|
+
writer.uint32(10).string(message.organizationId);
|
|
3061
|
+
}
|
|
3062
|
+
if (message.projectId !== "") {
|
|
3063
|
+
writer.uint32(18).string(message.projectId);
|
|
3064
|
+
}
|
|
3065
|
+
return writer;
|
|
3066
|
+
},
|
|
3067
|
+
|
|
3068
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ListInstallTermaPullRequestsRequest {
|
|
3069
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3070
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
3071
|
+
if (previousRecursionDepth >= 100) {
|
|
3072
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3073
|
+
}
|
|
3074
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3075
|
+
try {
|
|
3076
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3077
|
+
const message = createBaseListInstallTermaPullRequestsRequest();
|
|
3078
|
+
while (reader.pos < end) {
|
|
3079
|
+
const tag = reader.uint32();
|
|
3080
|
+
switch (tag >>> 3) {
|
|
3081
|
+
case 1: {
|
|
3082
|
+
if (tag !== 10) {
|
|
3083
|
+
break;
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3086
|
+
message.organizationId = reader.string();
|
|
3087
|
+
continue;
|
|
3088
|
+
}
|
|
3089
|
+
case 2: {
|
|
3090
|
+
if (tag !== 18) {
|
|
3091
|
+
break;
|
|
3092
|
+
}
|
|
3093
|
+
|
|
3094
|
+
message.projectId = reader.string();
|
|
3095
|
+
continue;
|
|
3096
|
+
}
|
|
3097
|
+
}
|
|
3098
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3099
|
+
break;
|
|
3100
|
+
}
|
|
3101
|
+
reader.skip(tag & 7);
|
|
3102
|
+
}
|
|
3103
|
+
return message;
|
|
3104
|
+
} finally {
|
|
3105
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3106
|
+
}
|
|
3107
|
+
},
|
|
3108
|
+
|
|
3109
|
+
fromJSON(object: any): ListInstallTermaPullRequestsRequest {
|
|
3110
|
+
return {
|
|
3111
|
+
organizationId: isSet(object.organizationId)
|
|
3112
|
+
? globalThis.String(object.organizationId)
|
|
3113
|
+
: isSet(object.organization_id)
|
|
3114
|
+
? globalThis.String(object.organization_id)
|
|
3115
|
+
: "",
|
|
3116
|
+
projectId: isSet(object.projectId)
|
|
3117
|
+
? globalThis.String(object.projectId)
|
|
3118
|
+
: isSet(object.project_id)
|
|
3119
|
+
? globalThis.String(object.project_id)
|
|
3120
|
+
: "",
|
|
3121
|
+
};
|
|
3122
|
+
},
|
|
3123
|
+
|
|
3124
|
+
toJSON(message: ListInstallTermaPullRequestsRequest): unknown {
|
|
3125
|
+
const obj: any = {};
|
|
3126
|
+
if (message.organizationId !== "") {
|
|
3127
|
+
obj.organizationId = message.organizationId;
|
|
3128
|
+
}
|
|
3129
|
+
if (message.projectId !== "") {
|
|
3130
|
+
obj.projectId = message.projectId;
|
|
3131
|
+
}
|
|
3132
|
+
return obj;
|
|
3133
|
+
},
|
|
3134
|
+
|
|
3135
|
+
create<I extends Exact<DeepPartial<ListInstallTermaPullRequestsRequest>, I>>(
|
|
3136
|
+
base?: I,
|
|
3137
|
+
): ListInstallTermaPullRequestsRequest {
|
|
3138
|
+
return ListInstallTermaPullRequestsRequest.fromPartial(base ?? ({} as any));
|
|
3139
|
+
},
|
|
3140
|
+
fromPartial<I extends Exact<DeepPartial<ListInstallTermaPullRequestsRequest>, I>>(
|
|
3141
|
+
object: I,
|
|
3142
|
+
): ListInstallTermaPullRequestsRequest {
|
|
3143
|
+
const message = createBaseListInstallTermaPullRequestsRequest();
|
|
3144
|
+
message.organizationId = object.organizationId ?? "";
|
|
3145
|
+
message.projectId = object.projectId ?? "";
|
|
3146
|
+
return message;
|
|
3147
|
+
},
|
|
3148
|
+
};
|
|
3149
|
+
|
|
3150
|
+
function createBaseInstallTermaPullRequest(): InstallTermaPullRequest {
|
|
3151
|
+
return { repository: "", number: 0, url: "", state: "", updatedAt: "" };
|
|
3152
|
+
}
|
|
3153
|
+
|
|
3154
|
+
export const InstallTermaPullRequest: MessageFns<InstallTermaPullRequest> = {
|
|
3155
|
+
encode(message: InstallTermaPullRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3156
|
+
if (message.repository !== "") {
|
|
3157
|
+
writer.uint32(10).string(message.repository);
|
|
3158
|
+
}
|
|
3159
|
+
if (message.number !== 0) {
|
|
3160
|
+
writer.uint32(16).int64(message.number);
|
|
3161
|
+
}
|
|
3162
|
+
if (message.url !== "") {
|
|
3163
|
+
writer.uint32(26).string(message.url);
|
|
3164
|
+
}
|
|
3165
|
+
if (message.state !== "") {
|
|
3166
|
+
writer.uint32(34).string(message.state);
|
|
3167
|
+
}
|
|
3168
|
+
if (message.updatedAt !== "") {
|
|
3169
|
+
writer.uint32(42).string(message.updatedAt);
|
|
3170
|
+
}
|
|
3171
|
+
return writer;
|
|
3172
|
+
},
|
|
3173
|
+
|
|
3174
|
+
decode(input: BinaryReader | Uint8Array, length?: number): InstallTermaPullRequest {
|
|
3175
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3176
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
3177
|
+
if (previousRecursionDepth >= 100) {
|
|
3178
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3179
|
+
}
|
|
3180
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3181
|
+
try {
|
|
3182
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3183
|
+
const message = createBaseInstallTermaPullRequest();
|
|
3184
|
+
while (reader.pos < end) {
|
|
3185
|
+
const tag = reader.uint32();
|
|
3186
|
+
switch (tag >>> 3) {
|
|
3187
|
+
case 1: {
|
|
3188
|
+
if (tag !== 10) {
|
|
3189
|
+
break;
|
|
3190
|
+
}
|
|
3191
|
+
|
|
3192
|
+
message.repository = reader.string();
|
|
3193
|
+
continue;
|
|
3194
|
+
}
|
|
3195
|
+
case 2: {
|
|
3196
|
+
if (tag !== 16) {
|
|
3197
|
+
break;
|
|
3198
|
+
}
|
|
3199
|
+
|
|
3200
|
+
message.number = longToNumber(reader.int64());
|
|
3201
|
+
continue;
|
|
3202
|
+
}
|
|
3203
|
+
case 3: {
|
|
3204
|
+
if (tag !== 26) {
|
|
3205
|
+
break;
|
|
3206
|
+
}
|
|
3207
|
+
|
|
3208
|
+
message.url = reader.string();
|
|
3209
|
+
continue;
|
|
3210
|
+
}
|
|
3211
|
+
case 4: {
|
|
3212
|
+
if (tag !== 34) {
|
|
3213
|
+
break;
|
|
3214
|
+
}
|
|
3215
|
+
|
|
3216
|
+
message.state = reader.string();
|
|
3217
|
+
continue;
|
|
3218
|
+
}
|
|
3219
|
+
case 5: {
|
|
3220
|
+
if (tag !== 42) {
|
|
3221
|
+
break;
|
|
3222
|
+
}
|
|
3223
|
+
|
|
3224
|
+
message.updatedAt = reader.string();
|
|
3225
|
+
continue;
|
|
3226
|
+
}
|
|
3227
|
+
}
|
|
3228
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3229
|
+
break;
|
|
3230
|
+
}
|
|
3231
|
+
reader.skip(tag & 7);
|
|
3232
|
+
}
|
|
3233
|
+
return message;
|
|
3234
|
+
} finally {
|
|
3235
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3236
|
+
}
|
|
3237
|
+
},
|
|
3238
|
+
|
|
3239
|
+
fromJSON(object: any): InstallTermaPullRequest {
|
|
3240
|
+
return {
|
|
3241
|
+
repository: isSet(object.repository) ? globalThis.String(object.repository) : "",
|
|
3242
|
+
number: isSet(object.number) ? globalThis.Number(object.number) : 0,
|
|
3243
|
+
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
3244
|
+
state: isSet(object.state) ? globalThis.String(object.state) : "",
|
|
3245
|
+
updatedAt: isSet(object.updatedAt)
|
|
3246
|
+
? globalThis.String(object.updatedAt)
|
|
3247
|
+
: isSet(object.updated_at)
|
|
3248
|
+
? globalThis.String(object.updated_at)
|
|
3249
|
+
: "",
|
|
3250
|
+
};
|
|
3251
|
+
},
|
|
3252
|
+
|
|
3253
|
+
toJSON(message: InstallTermaPullRequest): unknown {
|
|
3254
|
+
const obj: any = {};
|
|
3255
|
+
if (message.repository !== "") {
|
|
3256
|
+
obj.repository = message.repository;
|
|
3257
|
+
}
|
|
3258
|
+
if (message.number !== 0) {
|
|
3259
|
+
obj.number = Math.round(message.number);
|
|
3260
|
+
}
|
|
3261
|
+
if (message.url !== "") {
|
|
3262
|
+
obj.url = message.url;
|
|
3263
|
+
}
|
|
3264
|
+
if (message.state !== "") {
|
|
3265
|
+
obj.state = message.state;
|
|
3266
|
+
}
|
|
3267
|
+
if (message.updatedAt !== "") {
|
|
3268
|
+
obj.updatedAt = message.updatedAt;
|
|
3269
|
+
}
|
|
3270
|
+
return obj;
|
|
3271
|
+
},
|
|
3272
|
+
|
|
3273
|
+
create<I extends Exact<DeepPartial<InstallTermaPullRequest>, I>>(base?: I): InstallTermaPullRequest {
|
|
3274
|
+
return InstallTermaPullRequest.fromPartial(base ?? ({} as any));
|
|
3275
|
+
},
|
|
3276
|
+
fromPartial<I extends Exact<DeepPartial<InstallTermaPullRequest>, I>>(object: I): InstallTermaPullRequest {
|
|
3277
|
+
const message = createBaseInstallTermaPullRequest();
|
|
3278
|
+
message.repository = object.repository ?? "";
|
|
3279
|
+
message.number = object.number ?? 0;
|
|
3280
|
+
message.url = object.url ?? "";
|
|
3281
|
+
message.state = object.state ?? "";
|
|
3282
|
+
message.updatedAt = object.updatedAt ?? "";
|
|
3283
|
+
return message;
|
|
3284
|
+
},
|
|
3285
|
+
};
|
|
3286
|
+
|
|
3287
|
+
function createBaseListInstallTermaPullRequestsResponse(): ListInstallTermaPullRequestsResponse {
|
|
3288
|
+
return { status: undefined, pullRequests: [] };
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3291
|
+
export const ListInstallTermaPullRequestsResponse: MessageFns<ListInstallTermaPullRequestsResponse> = {
|
|
3292
|
+
encode(message: ListInstallTermaPullRequestsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3293
|
+
if (message.status !== undefined) {
|
|
3294
|
+
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
3295
|
+
}
|
|
3296
|
+
for (const v of message.pullRequests) {
|
|
3297
|
+
InstallTermaPullRequest.encode(v!, writer.uint32(18).fork()).join();
|
|
3298
|
+
}
|
|
3299
|
+
return writer;
|
|
3300
|
+
},
|
|
3301
|
+
|
|
3302
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ListInstallTermaPullRequestsResponse {
|
|
3303
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3304
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
3305
|
+
if (previousRecursionDepth >= 100) {
|
|
3306
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3307
|
+
}
|
|
3308
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3309
|
+
try {
|
|
3310
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3311
|
+
const message = createBaseListInstallTermaPullRequestsResponse();
|
|
3312
|
+
while (reader.pos < end) {
|
|
3313
|
+
const tag = reader.uint32();
|
|
3314
|
+
switch (tag >>> 3) {
|
|
3315
|
+
case 1: {
|
|
3316
|
+
if (tag !== 10) {
|
|
3317
|
+
break;
|
|
3318
|
+
}
|
|
3319
|
+
|
|
3320
|
+
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
3321
|
+
continue;
|
|
3322
|
+
}
|
|
3323
|
+
case 2: {
|
|
3324
|
+
if (tag !== 18) {
|
|
3325
|
+
break;
|
|
3326
|
+
}
|
|
3327
|
+
|
|
3328
|
+
message.pullRequests.push(InstallTermaPullRequest.decode(reader, reader.uint32()));
|
|
3329
|
+
continue;
|
|
3330
|
+
}
|
|
3331
|
+
}
|
|
3332
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3333
|
+
break;
|
|
3334
|
+
}
|
|
3335
|
+
reader.skip(tag & 7);
|
|
3336
|
+
}
|
|
3337
|
+
return message;
|
|
3338
|
+
} finally {
|
|
3339
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3340
|
+
}
|
|
3341
|
+
},
|
|
3342
|
+
|
|
3343
|
+
fromJSON(object: any): ListInstallTermaPullRequestsResponse {
|
|
3344
|
+
return {
|
|
3345
|
+
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
3346
|
+
pullRequests: globalThis.Array.isArray(object?.pullRequests)
|
|
3347
|
+
? object.pullRequests.map((e: any) => InstallTermaPullRequest.fromJSON(e))
|
|
3348
|
+
: globalThis.Array.isArray(object?.pull_requests)
|
|
3349
|
+
? object.pull_requests.map((e: any) => InstallTermaPullRequest.fromJSON(e))
|
|
3350
|
+
: [],
|
|
3351
|
+
};
|
|
3352
|
+
},
|
|
3353
|
+
|
|
3354
|
+
toJSON(message: ListInstallTermaPullRequestsResponse): unknown {
|
|
3355
|
+
const obj: any = {};
|
|
3356
|
+
if (message.status !== undefined) {
|
|
3357
|
+
obj.status = ResponseStatus.toJSON(message.status);
|
|
3358
|
+
}
|
|
3359
|
+
if (message.pullRequests?.length) {
|
|
3360
|
+
obj.pullRequests = message.pullRequests.map((e) => InstallTermaPullRequest.toJSON(e));
|
|
3361
|
+
}
|
|
3362
|
+
return obj;
|
|
3363
|
+
},
|
|
3364
|
+
|
|
3365
|
+
create<I extends Exact<DeepPartial<ListInstallTermaPullRequestsResponse>, I>>(
|
|
3366
|
+
base?: I,
|
|
3367
|
+
): ListInstallTermaPullRequestsResponse {
|
|
3368
|
+
return ListInstallTermaPullRequestsResponse.fromPartial(base ?? ({} as any));
|
|
3369
|
+
},
|
|
3370
|
+
fromPartial<I extends Exact<DeepPartial<ListInstallTermaPullRequestsResponse>, I>>(
|
|
3371
|
+
object: I,
|
|
3372
|
+
): ListInstallTermaPullRequestsResponse {
|
|
3373
|
+
const message = createBaseListInstallTermaPullRequestsResponse();
|
|
3374
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
3375
|
+
? ResponseStatus.fromPartial(object.status)
|
|
3376
|
+
: undefined;
|
|
3377
|
+
message.pullRequests = object.pullRequests?.map((e) => InstallTermaPullRequest.fromPartial(e)) || [];
|
|
3378
|
+
return message;
|
|
3379
|
+
},
|
|
3380
|
+
};
|
|
3381
|
+
|
|
3033
3382
|
/**
|
|
3034
3383
|
* One GitHub App connection per organization. Credentials never leave the
|
|
3035
3384
|
* account service; installation tokens are minted on demand and never stored.
|
|
@@ -3048,6 +3397,14 @@ export interface GitHubGatewayService {
|
|
|
3048
3397
|
request: CreateInstallTermaPullRequestsRequest,
|
|
3049
3398
|
metadata?: Metadata,
|
|
3050
3399
|
): Promise<CreateInstallTermaPullRequestsResponse>;
|
|
3400
|
+
/**
|
|
3401
|
+
* Org members. Every setup pull request Terma opened for the team on GitHub, open, merged or closed (a repository can
|
|
3402
|
+
* have several over time), most recently updated first.
|
|
3403
|
+
*/
|
|
3404
|
+
ListInstallTermaPullRequests(
|
|
3405
|
+
request: ListInstallTermaPullRequestsRequest,
|
|
3406
|
+
metadata?: Metadata,
|
|
3407
|
+
): Promise<ListInstallTermaPullRequestsResponse>;
|
|
3051
3408
|
ReceiveGitHubWebhook(request: GitHubWebhookRequest, metadata?: Metadata): Promise<GitHubEmptyResponse>;
|
|
3052
3409
|
}
|
|
3053
3410
|
|
|
@@ -3067,6 +3424,7 @@ export class GitHubGatewayServiceClientImpl implements GitHubGatewayService {
|
|
|
3067
3424
|
this.ListGitHubIssues = this.ListGitHubIssues.bind(this);
|
|
3068
3425
|
this.ListGitHubFiles = this.ListGitHubFiles.bind(this);
|
|
3069
3426
|
this.CreateInstallTermaPullRequests = this.CreateInstallTermaPullRequests.bind(this);
|
|
3427
|
+
this.ListInstallTermaPullRequests = this.ListInstallTermaPullRequests.bind(this);
|
|
3070
3428
|
this.ReceiveGitHubWebhook = this.ReceiveGitHubWebhook.bind(this);
|
|
3071
3429
|
}
|
|
3072
3430
|
GetGitHubConnector(request: GitHubScopeRequest, metadata?: Metadata): Promise<GitHubStatusResponse> {
|
|
@@ -3126,6 +3484,15 @@ export class GitHubGatewayServiceClientImpl implements GitHubGatewayService {
|
|
|
3126
3484
|
return promise.then((data) => CreateInstallTermaPullRequestsResponse.decode(new BinaryReader(data)));
|
|
3127
3485
|
}
|
|
3128
3486
|
|
|
3487
|
+
ListInstallTermaPullRequests(
|
|
3488
|
+
request: ListInstallTermaPullRequestsRequest,
|
|
3489
|
+
metadata?: Metadata,
|
|
3490
|
+
): Promise<ListInstallTermaPullRequestsResponse> {
|
|
3491
|
+
const data = ListInstallTermaPullRequestsRequest.encode(request).finish();
|
|
3492
|
+
const promise = this.rpc.request(this.service, "ListInstallTermaPullRequests", data, metadata);
|
|
3493
|
+
return promise.then((data) => ListInstallTermaPullRequestsResponse.decode(new BinaryReader(data)));
|
|
3494
|
+
}
|
|
3495
|
+
|
|
3129
3496
|
ReceiveGitHubWebhook(request: GitHubWebhookRequest, metadata?: Metadata): Promise<GitHubEmptyResponse> {
|
|
3130
3497
|
const data = GitHubWebhookRequest.encode(request).finish();
|
|
3131
3498
|
const promise = this.rpc.request(this.service, "ReceiveGitHubWebhook", data, metadata);
|
|
@@ -181,6 +181,28 @@ function deserialize_gateway_web_v1_GitHubWebhookRequest(buffer_arg) {
|
|
|
181
181
|
return proto_gateway_web_v1_github_connector_pb.GitHubWebhookRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
+
function serialize_gateway_web_v1_ListInstallTermaPullRequestsRequest(arg) {
|
|
185
|
+
if (!(arg instanceof proto_gateway_web_v1_github_connector_pb.ListInstallTermaPullRequestsRequest)) {
|
|
186
|
+
throw new Error('Expected argument of type gateway.web.v1.ListInstallTermaPullRequestsRequest');
|
|
187
|
+
}
|
|
188
|
+
return Buffer.from(arg.serializeBinary());
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
function deserialize_gateway_web_v1_ListInstallTermaPullRequestsRequest(buffer_arg) {
|
|
192
|
+
return proto_gateway_web_v1_github_connector_pb.ListInstallTermaPullRequestsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
function serialize_gateway_web_v1_ListInstallTermaPullRequestsResponse(arg) {
|
|
196
|
+
if (!(arg instanceof proto_gateway_web_v1_github_connector_pb.ListInstallTermaPullRequestsResponse)) {
|
|
197
|
+
throw new Error('Expected argument of type gateway.web.v1.ListInstallTermaPullRequestsResponse');
|
|
198
|
+
}
|
|
199
|
+
return Buffer.from(arg.serializeBinary());
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
function deserialize_gateway_web_v1_ListInstallTermaPullRequestsResponse(buffer_arg) {
|
|
203
|
+
return proto_gateway_web_v1_github_connector_pb.ListInstallTermaPullRequestsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
204
|
+
}
|
|
205
|
+
|
|
184
206
|
|
|
185
207
|
// One GitHub App connection per organization. Credentials never leave the
|
|
186
208
|
// account service; installation tokens are minted on demand and never stored.
|
|
@@ -285,6 +307,19 @@ createInstallTermaPullRequests: {
|
|
|
285
307
|
responseSerialize: serialize_gateway_web_v1_CreateInstallTermaPullRequestsResponse,
|
|
286
308
|
responseDeserialize: deserialize_gateway_web_v1_CreateInstallTermaPullRequestsResponse,
|
|
287
309
|
},
|
|
310
|
+
// Org members. Every setup pull request Terma opened for the team on GitHub, open, merged or closed (a repository can
|
|
311
|
+
// have several over time), most recently updated first.
|
|
312
|
+
listInstallTermaPullRequests: {
|
|
313
|
+
path: '/gateway.web.v1.GitHubGatewayService/ListInstallTermaPullRequests',
|
|
314
|
+
requestStream: false,
|
|
315
|
+
responseStream: false,
|
|
316
|
+
requestType: proto_gateway_web_v1_github_connector_pb.ListInstallTermaPullRequestsRequest,
|
|
317
|
+
responseType: proto_gateway_web_v1_github_connector_pb.ListInstallTermaPullRequestsResponse,
|
|
318
|
+
requestSerialize: serialize_gateway_web_v1_ListInstallTermaPullRequestsRequest,
|
|
319
|
+
requestDeserialize: deserialize_gateway_web_v1_ListInstallTermaPullRequestsRequest,
|
|
320
|
+
responseSerialize: serialize_gateway_web_v1_ListInstallTermaPullRequestsResponse,
|
|
321
|
+
responseDeserialize: deserialize_gateway_web_v1_ListInstallTermaPullRequestsResponse,
|
|
322
|
+
},
|
|
288
323
|
receiveGitHubWebhook: {
|
|
289
324
|
path: '/gateway.web.v1.GitHubGatewayService/ReceiveGitHubWebhook',
|
|
290
325
|
requestStream: false,
|
|
@@ -40,7 +40,10 @@ goog.exportSymbol('proto.gateway.web.v1.GitHubRepository', null, global);
|
|
|
40
40
|
goog.exportSymbol('proto.gateway.web.v1.GitHubScopeRequest', null, global);
|
|
41
41
|
goog.exportSymbol('proto.gateway.web.v1.GitHubStatusResponse', null, global);
|
|
42
42
|
goog.exportSymbol('proto.gateway.web.v1.GitHubWebhookRequest', null, global);
|
|
43
|
+
goog.exportSymbol('proto.gateway.web.v1.InstallTermaPullRequest', null, global);
|
|
43
44
|
goog.exportSymbol('proto.gateway.web.v1.InstallTermaPullRequestResult', null, global);
|
|
45
|
+
goog.exportSymbol('proto.gateway.web.v1.ListInstallTermaPullRequestsRequest', null, global);
|
|
46
|
+
goog.exportSymbol('proto.gateway.web.v1.ListInstallTermaPullRequestsResponse', null, global);
|
|
44
47
|
/**
|
|
45
48
|
* Generated by JsPbCodeGenerator.
|
|
46
49
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -524,6 +527,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
524
527
|
*/
|
|
525
528
|
proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.displayName = 'proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse';
|
|
526
529
|
}
|
|
530
|
+
/**
|
|
531
|
+
* Generated by JsPbCodeGenerator.
|
|
532
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
533
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
534
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
535
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
536
|
+
* valid.
|
|
537
|
+
* @extends {jspb.Message}
|
|
538
|
+
* @constructor
|
|
539
|
+
*/
|
|
540
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsRequest = function(opt_data) {
|
|
541
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
542
|
+
};
|
|
543
|
+
goog.inherits(proto.gateway.web.v1.ListInstallTermaPullRequestsRequest, jspb.Message);
|
|
544
|
+
if (goog.DEBUG && !COMPILED) {
|
|
545
|
+
/**
|
|
546
|
+
* @public
|
|
547
|
+
* @override
|
|
548
|
+
*/
|
|
549
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.displayName = 'proto.gateway.web.v1.ListInstallTermaPullRequestsRequest';
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* Generated by JsPbCodeGenerator.
|
|
553
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
554
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
555
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
556
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
557
|
+
* valid.
|
|
558
|
+
* @extends {jspb.Message}
|
|
559
|
+
* @constructor
|
|
560
|
+
*/
|
|
561
|
+
proto.gateway.web.v1.InstallTermaPullRequest = function(opt_data) {
|
|
562
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
563
|
+
};
|
|
564
|
+
goog.inherits(proto.gateway.web.v1.InstallTermaPullRequest, jspb.Message);
|
|
565
|
+
if (goog.DEBUG && !COMPILED) {
|
|
566
|
+
/**
|
|
567
|
+
* @public
|
|
568
|
+
* @override
|
|
569
|
+
*/
|
|
570
|
+
proto.gateway.web.v1.InstallTermaPullRequest.displayName = 'proto.gateway.web.v1.InstallTermaPullRequest';
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* Generated by JsPbCodeGenerator.
|
|
574
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
575
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
576
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
577
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
578
|
+
* valid.
|
|
579
|
+
* @extends {jspb.Message}
|
|
580
|
+
* @constructor
|
|
581
|
+
*/
|
|
582
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsResponse = function(opt_data) {
|
|
583
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.repeatedFields_, null);
|
|
584
|
+
};
|
|
585
|
+
goog.inherits(proto.gateway.web.v1.ListInstallTermaPullRequestsResponse, jspb.Message);
|
|
586
|
+
if (goog.DEBUG && !COMPILED) {
|
|
587
|
+
/**
|
|
588
|
+
* @public
|
|
589
|
+
* @override
|
|
590
|
+
*/
|
|
591
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.displayName = 'proto.gateway.web.v1.ListInstallTermaPullRequestsResponse';
|
|
592
|
+
}
|
|
527
593
|
|
|
528
594
|
|
|
529
595
|
|
|
@@ -5891,4 +5957,625 @@ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.clearResul
|
|
|
5891
5957
|
};
|
|
5892
5958
|
|
|
5893
5959
|
|
|
5960
|
+
|
|
5961
|
+
|
|
5962
|
+
|
|
5963
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5964
|
+
/**
|
|
5965
|
+
* Creates an object representation of this proto.
|
|
5966
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5967
|
+
* Optional fields that are not set will be set to undefined.
|
|
5968
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5969
|
+
* For the list of reserved names please see:
|
|
5970
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5971
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5972
|
+
* JSPB instance for transitional soy proto support:
|
|
5973
|
+
* http://goto/soy-param-migration
|
|
5974
|
+
* @return {!Object}
|
|
5975
|
+
*/
|
|
5976
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
5977
|
+
return proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.toObject(opt_includeInstance, this);
|
|
5978
|
+
};
|
|
5979
|
+
|
|
5980
|
+
|
|
5981
|
+
/**
|
|
5982
|
+
* Static version of the {@see toObject} method.
|
|
5983
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5984
|
+
* the JSPB instance for transitional soy proto support:
|
|
5985
|
+
* http://goto/soy-param-migration
|
|
5986
|
+
* @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest} msg The msg instance to transform.
|
|
5987
|
+
* @return {!Object}
|
|
5988
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5989
|
+
*/
|
|
5990
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.toObject = function(includeInstance, msg) {
|
|
5991
|
+
var f, obj = {
|
|
5992
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5993
|
+
projectId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
5994
|
+
};
|
|
5995
|
+
|
|
5996
|
+
if (includeInstance) {
|
|
5997
|
+
obj.$jspbMessageInstance = msg;
|
|
5998
|
+
}
|
|
5999
|
+
return obj;
|
|
6000
|
+
};
|
|
6001
|
+
}
|
|
6002
|
+
|
|
6003
|
+
|
|
6004
|
+
/**
|
|
6005
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6006
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
6007
|
+
* @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest}
|
|
6008
|
+
*/
|
|
6009
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.deserializeBinary = function(bytes) {
|
|
6010
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6011
|
+
var msg = new proto.gateway.web.v1.ListInstallTermaPullRequestsRequest;
|
|
6012
|
+
return proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.deserializeBinaryFromReader(msg, reader);
|
|
6013
|
+
};
|
|
6014
|
+
|
|
6015
|
+
|
|
6016
|
+
/**
|
|
6017
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6018
|
+
* given reader into the given message object.
|
|
6019
|
+
* @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest} msg The message object to deserialize into.
|
|
6020
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6021
|
+
* @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest}
|
|
6022
|
+
*/
|
|
6023
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
6024
|
+
while (reader.nextField()) {
|
|
6025
|
+
if (reader.isEndGroup()) {
|
|
6026
|
+
break;
|
|
6027
|
+
}
|
|
6028
|
+
var field = reader.getFieldNumber();
|
|
6029
|
+
switch (field) {
|
|
6030
|
+
case 1:
|
|
6031
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
6032
|
+
msg.setOrganizationId(value);
|
|
6033
|
+
break;
|
|
6034
|
+
case 2:
|
|
6035
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
6036
|
+
msg.setProjectId(value);
|
|
6037
|
+
break;
|
|
6038
|
+
default:
|
|
6039
|
+
reader.skipField();
|
|
6040
|
+
break;
|
|
6041
|
+
}
|
|
6042
|
+
}
|
|
6043
|
+
return msg;
|
|
6044
|
+
};
|
|
6045
|
+
|
|
6046
|
+
|
|
6047
|
+
/**
|
|
6048
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6049
|
+
* @return {!Uint8Array}
|
|
6050
|
+
*/
|
|
6051
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.serializeBinary = function() {
|
|
6052
|
+
var writer = new jspb.BinaryWriter();
|
|
6053
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.serializeBinaryToWriter(this, writer);
|
|
6054
|
+
return writer.getResultBuffer();
|
|
6055
|
+
};
|
|
6056
|
+
|
|
6057
|
+
|
|
6058
|
+
/**
|
|
6059
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6060
|
+
* format), writing to the given BinaryWriter.
|
|
6061
|
+
* @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest} message
|
|
6062
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6063
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6064
|
+
*/
|
|
6065
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
6066
|
+
var f = undefined;
|
|
6067
|
+
f = message.getOrganizationId();
|
|
6068
|
+
if (f.length > 0) {
|
|
6069
|
+
writer.writeString(
|
|
6070
|
+
1,
|
|
6071
|
+
f
|
|
6072
|
+
);
|
|
6073
|
+
}
|
|
6074
|
+
f = message.getProjectId();
|
|
6075
|
+
if (f.length > 0) {
|
|
6076
|
+
writer.writeString(
|
|
6077
|
+
2,
|
|
6078
|
+
f
|
|
6079
|
+
);
|
|
6080
|
+
}
|
|
6081
|
+
};
|
|
6082
|
+
|
|
6083
|
+
|
|
6084
|
+
/**
|
|
6085
|
+
* optional string organization_id = 1;
|
|
6086
|
+
* @return {string}
|
|
6087
|
+
*/
|
|
6088
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.getOrganizationId = function() {
|
|
6089
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6090
|
+
};
|
|
6091
|
+
|
|
6092
|
+
|
|
6093
|
+
/**
|
|
6094
|
+
* @param {string} value
|
|
6095
|
+
* @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest} returns this
|
|
6096
|
+
*/
|
|
6097
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.setOrganizationId = function(value) {
|
|
6098
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6099
|
+
};
|
|
6100
|
+
|
|
6101
|
+
|
|
6102
|
+
/**
|
|
6103
|
+
* optional string project_id = 2;
|
|
6104
|
+
* @return {string}
|
|
6105
|
+
*/
|
|
6106
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.getProjectId = function() {
|
|
6107
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
6108
|
+
};
|
|
6109
|
+
|
|
6110
|
+
|
|
6111
|
+
/**
|
|
6112
|
+
* @param {string} value
|
|
6113
|
+
* @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsRequest} returns this
|
|
6114
|
+
*/
|
|
6115
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsRequest.prototype.setProjectId = function(value) {
|
|
6116
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
6117
|
+
};
|
|
6118
|
+
|
|
6119
|
+
|
|
6120
|
+
|
|
6121
|
+
|
|
6122
|
+
|
|
6123
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6124
|
+
/**
|
|
6125
|
+
* Creates an object representation of this proto.
|
|
6126
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6127
|
+
* Optional fields that are not set will be set to undefined.
|
|
6128
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6129
|
+
* For the list of reserved names please see:
|
|
6130
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6131
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6132
|
+
* JSPB instance for transitional soy proto support:
|
|
6133
|
+
* http://goto/soy-param-migration
|
|
6134
|
+
* @return {!Object}
|
|
6135
|
+
*/
|
|
6136
|
+
proto.gateway.web.v1.InstallTermaPullRequest.prototype.toObject = function(opt_includeInstance) {
|
|
6137
|
+
return proto.gateway.web.v1.InstallTermaPullRequest.toObject(opt_includeInstance, this);
|
|
6138
|
+
};
|
|
6139
|
+
|
|
6140
|
+
|
|
6141
|
+
/**
|
|
6142
|
+
* Static version of the {@see toObject} method.
|
|
6143
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6144
|
+
* the JSPB instance for transitional soy proto support:
|
|
6145
|
+
* http://goto/soy-param-migration
|
|
6146
|
+
* @param {!proto.gateway.web.v1.InstallTermaPullRequest} msg The msg instance to transform.
|
|
6147
|
+
* @return {!Object}
|
|
6148
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6149
|
+
*/
|
|
6150
|
+
proto.gateway.web.v1.InstallTermaPullRequest.toObject = function(includeInstance, msg) {
|
|
6151
|
+
var f, obj = {
|
|
6152
|
+
repository: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6153
|
+
number: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
6154
|
+
url: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
6155
|
+
state: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
6156
|
+
updatedAt: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
6157
|
+
};
|
|
6158
|
+
|
|
6159
|
+
if (includeInstance) {
|
|
6160
|
+
obj.$jspbMessageInstance = msg;
|
|
6161
|
+
}
|
|
6162
|
+
return obj;
|
|
6163
|
+
};
|
|
6164
|
+
}
|
|
6165
|
+
|
|
6166
|
+
|
|
6167
|
+
/**
|
|
6168
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6169
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
6170
|
+
* @return {!proto.gateway.web.v1.InstallTermaPullRequest}
|
|
6171
|
+
*/
|
|
6172
|
+
proto.gateway.web.v1.InstallTermaPullRequest.deserializeBinary = function(bytes) {
|
|
6173
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6174
|
+
var msg = new proto.gateway.web.v1.InstallTermaPullRequest;
|
|
6175
|
+
return proto.gateway.web.v1.InstallTermaPullRequest.deserializeBinaryFromReader(msg, reader);
|
|
6176
|
+
};
|
|
6177
|
+
|
|
6178
|
+
|
|
6179
|
+
/**
|
|
6180
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6181
|
+
* given reader into the given message object.
|
|
6182
|
+
* @param {!proto.gateway.web.v1.InstallTermaPullRequest} msg The message object to deserialize into.
|
|
6183
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6184
|
+
* @return {!proto.gateway.web.v1.InstallTermaPullRequest}
|
|
6185
|
+
*/
|
|
6186
|
+
proto.gateway.web.v1.InstallTermaPullRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
6187
|
+
while (reader.nextField()) {
|
|
6188
|
+
if (reader.isEndGroup()) {
|
|
6189
|
+
break;
|
|
6190
|
+
}
|
|
6191
|
+
var field = reader.getFieldNumber();
|
|
6192
|
+
switch (field) {
|
|
6193
|
+
case 1:
|
|
6194
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
6195
|
+
msg.setRepository(value);
|
|
6196
|
+
break;
|
|
6197
|
+
case 2:
|
|
6198
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
6199
|
+
msg.setNumber(value);
|
|
6200
|
+
break;
|
|
6201
|
+
case 3:
|
|
6202
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
6203
|
+
msg.setUrl(value);
|
|
6204
|
+
break;
|
|
6205
|
+
case 4:
|
|
6206
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
6207
|
+
msg.setState(value);
|
|
6208
|
+
break;
|
|
6209
|
+
case 5:
|
|
6210
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
6211
|
+
msg.setUpdatedAt(value);
|
|
6212
|
+
break;
|
|
6213
|
+
default:
|
|
6214
|
+
reader.skipField();
|
|
6215
|
+
break;
|
|
6216
|
+
}
|
|
6217
|
+
}
|
|
6218
|
+
return msg;
|
|
6219
|
+
};
|
|
6220
|
+
|
|
6221
|
+
|
|
6222
|
+
/**
|
|
6223
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6224
|
+
* @return {!Uint8Array}
|
|
6225
|
+
*/
|
|
6226
|
+
proto.gateway.web.v1.InstallTermaPullRequest.prototype.serializeBinary = function() {
|
|
6227
|
+
var writer = new jspb.BinaryWriter();
|
|
6228
|
+
proto.gateway.web.v1.InstallTermaPullRequest.serializeBinaryToWriter(this, writer);
|
|
6229
|
+
return writer.getResultBuffer();
|
|
6230
|
+
};
|
|
6231
|
+
|
|
6232
|
+
|
|
6233
|
+
/**
|
|
6234
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6235
|
+
* format), writing to the given BinaryWriter.
|
|
6236
|
+
* @param {!proto.gateway.web.v1.InstallTermaPullRequest} message
|
|
6237
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6238
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6239
|
+
*/
|
|
6240
|
+
proto.gateway.web.v1.InstallTermaPullRequest.serializeBinaryToWriter = function(message, writer) {
|
|
6241
|
+
var f = undefined;
|
|
6242
|
+
f = message.getRepository();
|
|
6243
|
+
if (f.length > 0) {
|
|
6244
|
+
writer.writeString(
|
|
6245
|
+
1,
|
|
6246
|
+
f
|
|
6247
|
+
);
|
|
6248
|
+
}
|
|
6249
|
+
f = message.getNumber();
|
|
6250
|
+
if (f !== 0) {
|
|
6251
|
+
writer.writeInt64(
|
|
6252
|
+
2,
|
|
6253
|
+
f
|
|
6254
|
+
);
|
|
6255
|
+
}
|
|
6256
|
+
f = message.getUrl();
|
|
6257
|
+
if (f.length > 0) {
|
|
6258
|
+
writer.writeString(
|
|
6259
|
+
3,
|
|
6260
|
+
f
|
|
6261
|
+
);
|
|
6262
|
+
}
|
|
6263
|
+
f = message.getState();
|
|
6264
|
+
if (f.length > 0) {
|
|
6265
|
+
writer.writeString(
|
|
6266
|
+
4,
|
|
6267
|
+
f
|
|
6268
|
+
);
|
|
6269
|
+
}
|
|
6270
|
+
f = message.getUpdatedAt();
|
|
6271
|
+
if (f.length > 0) {
|
|
6272
|
+
writer.writeString(
|
|
6273
|
+
5,
|
|
6274
|
+
f
|
|
6275
|
+
);
|
|
6276
|
+
}
|
|
6277
|
+
};
|
|
6278
|
+
|
|
6279
|
+
|
|
6280
|
+
/**
|
|
6281
|
+
* optional string repository = 1;
|
|
6282
|
+
* @return {string}
|
|
6283
|
+
*/
|
|
6284
|
+
proto.gateway.web.v1.InstallTermaPullRequest.prototype.getRepository = function() {
|
|
6285
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6286
|
+
};
|
|
6287
|
+
|
|
6288
|
+
|
|
6289
|
+
/**
|
|
6290
|
+
* @param {string} value
|
|
6291
|
+
* @return {!proto.gateway.web.v1.InstallTermaPullRequest} returns this
|
|
6292
|
+
*/
|
|
6293
|
+
proto.gateway.web.v1.InstallTermaPullRequest.prototype.setRepository = function(value) {
|
|
6294
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6295
|
+
};
|
|
6296
|
+
|
|
6297
|
+
|
|
6298
|
+
/**
|
|
6299
|
+
* optional int64 number = 2;
|
|
6300
|
+
* @return {number}
|
|
6301
|
+
*/
|
|
6302
|
+
proto.gateway.web.v1.InstallTermaPullRequest.prototype.getNumber = function() {
|
|
6303
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
6304
|
+
};
|
|
6305
|
+
|
|
6306
|
+
|
|
6307
|
+
/**
|
|
6308
|
+
* @param {number} value
|
|
6309
|
+
* @return {!proto.gateway.web.v1.InstallTermaPullRequest} returns this
|
|
6310
|
+
*/
|
|
6311
|
+
proto.gateway.web.v1.InstallTermaPullRequest.prototype.setNumber = function(value) {
|
|
6312
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
6313
|
+
};
|
|
6314
|
+
|
|
6315
|
+
|
|
6316
|
+
/**
|
|
6317
|
+
* optional string url = 3;
|
|
6318
|
+
* @return {string}
|
|
6319
|
+
*/
|
|
6320
|
+
proto.gateway.web.v1.InstallTermaPullRequest.prototype.getUrl = function() {
|
|
6321
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
6322
|
+
};
|
|
6323
|
+
|
|
6324
|
+
|
|
6325
|
+
/**
|
|
6326
|
+
* @param {string} value
|
|
6327
|
+
* @return {!proto.gateway.web.v1.InstallTermaPullRequest} returns this
|
|
6328
|
+
*/
|
|
6329
|
+
proto.gateway.web.v1.InstallTermaPullRequest.prototype.setUrl = function(value) {
|
|
6330
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
6331
|
+
};
|
|
6332
|
+
|
|
6333
|
+
|
|
6334
|
+
/**
|
|
6335
|
+
* optional string state = 4;
|
|
6336
|
+
* @return {string}
|
|
6337
|
+
*/
|
|
6338
|
+
proto.gateway.web.v1.InstallTermaPullRequest.prototype.getState = function() {
|
|
6339
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
6340
|
+
};
|
|
6341
|
+
|
|
6342
|
+
|
|
6343
|
+
/**
|
|
6344
|
+
* @param {string} value
|
|
6345
|
+
* @return {!proto.gateway.web.v1.InstallTermaPullRequest} returns this
|
|
6346
|
+
*/
|
|
6347
|
+
proto.gateway.web.v1.InstallTermaPullRequest.prototype.setState = function(value) {
|
|
6348
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
6349
|
+
};
|
|
6350
|
+
|
|
6351
|
+
|
|
6352
|
+
/**
|
|
6353
|
+
* optional string updated_at = 5;
|
|
6354
|
+
* @return {string}
|
|
6355
|
+
*/
|
|
6356
|
+
proto.gateway.web.v1.InstallTermaPullRequest.prototype.getUpdatedAt = function() {
|
|
6357
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
6358
|
+
};
|
|
6359
|
+
|
|
6360
|
+
|
|
6361
|
+
/**
|
|
6362
|
+
* @param {string} value
|
|
6363
|
+
* @return {!proto.gateway.web.v1.InstallTermaPullRequest} returns this
|
|
6364
|
+
*/
|
|
6365
|
+
proto.gateway.web.v1.InstallTermaPullRequest.prototype.setUpdatedAt = function(value) {
|
|
6366
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
6367
|
+
};
|
|
6368
|
+
|
|
6369
|
+
|
|
6370
|
+
|
|
6371
|
+
/**
|
|
6372
|
+
* List of repeated fields within this message type.
|
|
6373
|
+
* @private {!Array<number>}
|
|
6374
|
+
* @const
|
|
6375
|
+
*/
|
|
6376
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.repeatedFields_ = [2];
|
|
6377
|
+
|
|
6378
|
+
|
|
6379
|
+
|
|
6380
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6381
|
+
/**
|
|
6382
|
+
* Creates an object representation of this proto.
|
|
6383
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6384
|
+
* Optional fields that are not set will be set to undefined.
|
|
6385
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6386
|
+
* For the list of reserved names please see:
|
|
6387
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6388
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6389
|
+
* JSPB instance for transitional soy proto support:
|
|
6390
|
+
* http://goto/soy-param-migration
|
|
6391
|
+
* @return {!Object}
|
|
6392
|
+
*/
|
|
6393
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
6394
|
+
return proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.toObject(opt_includeInstance, this);
|
|
6395
|
+
};
|
|
6396
|
+
|
|
6397
|
+
|
|
6398
|
+
/**
|
|
6399
|
+
* Static version of the {@see toObject} method.
|
|
6400
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6401
|
+
* the JSPB instance for transitional soy proto support:
|
|
6402
|
+
* http://goto/soy-param-migration
|
|
6403
|
+
* @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} msg The msg instance to transform.
|
|
6404
|
+
* @return {!Object}
|
|
6405
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6406
|
+
*/
|
|
6407
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.toObject = function(includeInstance, msg) {
|
|
6408
|
+
var f, obj = {
|
|
6409
|
+
status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
|
|
6410
|
+
pullRequestsList: jspb.Message.toObjectList(msg.getPullRequestsList(),
|
|
6411
|
+
proto.gateway.web.v1.InstallTermaPullRequest.toObject, includeInstance)
|
|
6412
|
+
};
|
|
6413
|
+
|
|
6414
|
+
if (includeInstance) {
|
|
6415
|
+
obj.$jspbMessageInstance = msg;
|
|
6416
|
+
}
|
|
6417
|
+
return obj;
|
|
6418
|
+
};
|
|
6419
|
+
}
|
|
6420
|
+
|
|
6421
|
+
|
|
6422
|
+
/**
|
|
6423
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6424
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
6425
|
+
* @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse}
|
|
6426
|
+
*/
|
|
6427
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.deserializeBinary = function(bytes) {
|
|
6428
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6429
|
+
var msg = new proto.gateway.web.v1.ListInstallTermaPullRequestsResponse;
|
|
6430
|
+
return proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.deserializeBinaryFromReader(msg, reader);
|
|
6431
|
+
};
|
|
6432
|
+
|
|
6433
|
+
|
|
6434
|
+
/**
|
|
6435
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6436
|
+
* given reader into the given message object.
|
|
6437
|
+
* @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} msg The message object to deserialize into.
|
|
6438
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6439
|
+
* @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse}
|
|
6440
|
+
*/
|
|
6441
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
6442
|
+
while (reader.nextField()) {
|
|
6443
|
+
if (reader.isEndGroup()) {
|
|
6444
|
+
break;
|
|
6445
|
+
}
|
|
6446
|
+
var field = reader.getFieldNumber();
|
|
6447
|
+
switch (field) {
|
|
6448
|
+
case 1:
|
|
6449
|
+
var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
|
|
6450
|
+
reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
6451
|
+
msg.setStatus(value);
|
|
6452
|
+
break;
|
|
6453
|
+
case 2:
|
|
6454
|
+
var value = new proto.gateway.web.v1.InstallTermaPullRequest;
|
|
6455
|
+
reader.readMessage(value,proto.gateway.web.v1.InstallTermaPullRequest.deserializeBinaryFromReader);
|
|
6456
|
+
msg.addPullRequests(value);
|
|
6457
|
+
break;
|
|
6458
|
+
default:
|
|
6459
|
+
reader.skipField();
|
|
6460
|
+
break;
|
|
6461
|
+
}
|
|
6462
|
+
}
|
|
6463
|
+
return msg;
|
|
6464
|
+
};
|
|
6465
|
+
|
|
6466
|
+
|
|
6467
|
+
/**
|
|
6468
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6469
|
+
* @return {!Uint8Array}
|
|
6470
|
+
*/
|
|
6471
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.serializeBinary = function() {
|
|
6472
|
+
var writer = new jspb.BinaryWriter();
|
|
6473
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.serializeBinaryToWriter(this, writer);
|
|
6474
|
+
return writer.getResultBuffer();
|
|
6475
|
+
};
|
|
6476
|
+
|
|
6477
|
+
|
|
6478
|
+
/**
|
|
6479
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6480
|
+
* format), writing to the given BinaryWriter.
|
|
6481
|
+
* @param {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} message
|
|
6482
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6483
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6484
|
+
*/
|
|
6485
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
6486
|
+
var f = undefined;
|
|
6487
|
+
f = message.getStatus();
|
|
6488
|
+
if (f != null) {
|
|
6489
|
+
writer.writeMessage(
|
|
6490
|
+
1,
|
|
6491
|
+
f,
|
|
6492
|
+
proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
6493
|
+
);
|
|
6494
|
+
}
|
|
6495
|
+
f = message.getPullRequestsList();
|
|
6496
|
+
if (f.length > 0) {
|
|
6497
|
+
writer.writeRepeatedMessage(
|
|
6498
|
+
2,
|
|
6499
|
+
f,
|
|
6500
|
+
proto.gateway.web.v1.InstallTermaPullRequest.serializeBinaryToWriter
|
|
6501
|
+
);
|
|
6502
|
+
}
|
|
6503
|
+
};
|
|
6504
|
+
|
|
6505
|
+
|
|
6506
|
+
/**
|
|
6507
|
+
* optional gateway.common.v1.ResponseStatus status = 1;
|
|
6508
|
+
* @return {?proto.gateway.common.v1.ResponseStatus}
|
|
6509
|
+
*/
|
|
6510
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.getStatus = function() {
|
|
6511
|
+
return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
|
|
6512
|
+
jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
|
|
6513
|
+
};
|
|
6514
|
+
|
|
6515
|
+
|
|
6516
|
+
/**
|
|
6517
|
+
* @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
|
|
6518
|
+
* @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} returns this
|
|
6519
|
+
*/
|
|
6520
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.setStatus = function(value) {
|
|
6521
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
6522
|
+
};
|
|
6523
|
+
|
|
6524
|
+
|
|
6525
|
+
/**
|
|
6526
|
+
* Clears the message field making it undefined.
|
|
6527
|
+
* @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} returns this
|
|
6528
|
+
*/
|
|
6529
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.clearStatus = function() {
|
|
6530
|
+
return this.setStatus(undefined);
|
|
6531
|
+
};
|
|
6532
|
+
|
|
6533
|
+
|
|
6534
|
+
/**
|
|
6535
|
+
* Returns whether this field is set.
|
|
6536
|
+
* @return {boolean}
|
|
6537
|
+
*/
|
|
6538
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.hasStatus = function() {
|
|
6539
|
+
return jspb.Message.getField(this, 1) != null;
|
|
6540
|
+
};
|
|
6541
|
+
|
|
6542
|
+
|
|
6543
|
+
/**
|
|
6544
|
+
* repeated InstallTermaPullRequest pull_requests = 2;
|
|
6545
|
+
* @return {!Array<!proto.gateway.web.v1.InstallTermaPullRequest>}
|
|
6546
|
+
*/
|
|
6547
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.getPullRequestsList = function() {
|
|
6548
|
+
return /** @type{!Array<!proto.gateway.web.v1.InstallTermaPullRequest>} */ (
|
|
6549
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.InstallTermaPullRequest, 2));
|
|
6550
|
+
};
|
|
6551
|
+
|
|
6552
|
+
|
|
6553
|
+
/**
|
|
6554
|
+
* @param {!Array<!proto.gateway.web.v1.InstallTermaPullRequest>} value
|
|
6555
|
+
* @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} returns this
|
|
6556
|
+
*/
|
|
6557
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.setPullRequestsList = function(value) {
|
|
6558
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
6559
|
+
};
|
|
6560
|
+
|
|
6561
|
+
|
|
6562
|
+
/**
|
|
6563
|
+
* @param {!proto.gateway.web.v1.InstallTermaPullRequest=} opt_value
|
|
6564
|
+
* @param {number=} opt_index
|
|
6565
|
+
* @return {!proto.gateway.web.v1.InstallTermaPullRequest}
|
|
6566
|
+
*/
|
|
6567
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.addPullRequests = function(opt_value, opt_index) {
|
|
6568
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.InstallTermaPullRequest, opt_index);
|
|
6569
|
+
};
|
|
6570
|
+
|
|
6571
|
+
|
|
6572
|
+
/**
|
|
6573
|
+
* Clears the list making it empty but non-null.
|
|
6574
|
+
* @return {!proto.gateway.web.v1.ListInstallTermaPullRequestsResponse} returns this
|
|
6575
|
+
*/
|
|
6576
|
+
proto.gateway.web.v1.ListInstallTermaPullRequestsResponse.prototype.clearPullRequestsList = function() {
|
|
6577
|
+
return this.setPullRequestsList([]);
|
|
6578
|
+
};
|
|
6579
|
+
|
|
6580
|
+
|
|
5894
6581
|
goog.object.extend(exports, proto.gateway.web.v1);
|