@miradorlabs/web-grpc 3.27.0 → 3.28.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
|
@@ -117,13 +117,6 @@ export interface GitHubIssuesResponse {
|
|
|
117
117
|
issues: GitHubIssue[];
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
export interface GitHubWebhookRequest {
|
|
121
|
-
body: Uint8Array;
|
|
122
|
-
signature: string;
|
|
123
|
-
deliveryId: string;
|
|
124
|
-
event: string;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
120
|
export interface GitHubEmptyResponse {
|
|
128
121
|
status: ResponseStatus | undefined;
|
|
129
122
|
}
|
|
@@ -2114,127 +2107,6 @@ export const GitHubIssuesResponse: MessageFns<GitHubIssuesResponse> = {
|
|
|
2114
2107
|
},
|
|
2115
2108
|
};
|
|
2116
2109
|
|
|
2117
|
-
function createBaseGitHubWebhookRequest(): GitHubWebhookRequest {
|
|
2118
|
-
return { body: new Uint8Array(0), signature: "", deliveryId: "", event: "" };
|
|
2119
|
-
}
|
|
2120
|
-
|
|
2121
|
-
export const GitHubWebhookRequest: MessageFns<GitHubWebhookRequest> = {
|
|
2122
|
-
encode(message: GitHubWebhookRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2123
|
-
if (message.body.length !== 0) {
|
|
2124
|
-
writer.uint32(10).bytes(message.body);
|
|
2125
|
-
}
|
|
2126
|
-
if (message.signature !== "") {
|
|
2127
|
-
writer.uint32(18).string(message.signature);
|
|
2128
|
-
}
|
|
2129
|
-
if (message.deliveryId !== "") {
|
|
2130
|
-
writer.uint32(26).string(message.deliveryId);
|
|
2131
|
-
}
|
|
2132
|
-
if (message.event !== "") {
|
|
2133
|
-
writer.uint32(34).string(message.event);
|
|
2134
|
-
}
|
|
2135
|
-
return writer;
|
|
2136
|
-
},
|
|
2137
|
-
|
|
2138
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GitHubWebhookRequest {
|
|
2139
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2140
|
-
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
2141
|
-
if (previousRecursionDepth >= 100) {
|
|
2142
|
-
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2143
|
-
}
|
|
2144
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2145
|
-
try {
|
|
2146
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2147
|
-
const message = createBaseGitHubWebhookRequest();
|
|
2148
|
-
while (reader.pos < end) {
|
|
2149
|
-
const tag = reader.uint32();
|
|
2150
|
-
switch (tag >>> 3) {
|
|
2151
|
-
case 1: {
|
|
2152
|
-
if (tag !== 10) {
|
|
2153
|
-
break;
|
|
2154
|
-
}
|
|
2155
|
-
|
|
2156
|
-
message.body = reader.bytes();
|
|
2157
|
-
continue;
|
|
2158
|
-
}
|
|
2159
|
-
case 2: {
|
|
2160
|
-
if (tag !== 18) {
|
|
2161
|
-
break;
|
|
2162
|
-
}
|
|
2163
|
-
|
|
2164
|
-
message.signature = reader.string();
|
|
2165
|
-
continue;
|
|
2166
|
-
}
|
|
2167
|
-
case 3: {
|
|
2168
|
-
if (tag !== 26) {
|
|
2169
|
-
break;
|
|
2170
|
-
}
|
|
2171
|
-
|
|
2172
|
-
message.deliveryId = reader.string();
|
|
2173
|
-
continue;
|
|
2174
|
-
}
|
|
2175
|
-
case 4: {
|
|
2176
|
-
if (tag !== 34) {
|
|
2177
|
-
break;
|
|
2178
|
-
}
|
|
2179
|
-
|
|
2180
|
-
message.event = reader.string();
|
|
2181
|
-
continue;
|
|
2182
|
-
}
|
|
2183
|
-
}
|
|
2184
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2185
|
-
break;
|
|
2186
|
-
}
|
|
2187
|
-
reader.skip(tag & 7);
|
|
2188
|
-
}
|
|
2189
|
-
return message;
|
|
2190
|
-
} finally {
|
|
2191
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2192
|
-
}
|
|
2193
|
-
},
|
|
2194
|
-
|
|
2195
|
-
fromJSON(object: any): GitHubWebhookRequest {
|
|
2196
|
-
return {
|
|
2197
|
-
body: isSet(object.body) ? bytesFromBase64(object.body) : new Uint8Array(0),
|
|
2198
|
-
signature: isSet(object.signature) ? globalThis.String(object.signature) : "",
|
|
2199
|
-
deliveryId: isSet(object.deliveryId)
|
|
2200
|
-
? globalThis.String(object.deliveryId)
|
|
2201
|
-
: isSet(object.delivery_id)
|
|
2202
|
-
? globalThis.String(object.delivery_id)
|
|
2203
|
-
: "",
|
|
2204
|
-
event: isSet(object.event) ? globalThis.String(object.event) : "",
|
|
2205
|
-
};
|
|
2206
|
-
},
|
|
2207
|
-
|
|
2208
|
-
toJSON(message: GitHubWebhookRequest): unknown {
|
|
2209
|
-
const obj: any = {};
|
|
2210
|
-
if (message.body.length !== 0) {
|
|
2211
|
-
obj.body = base64FromBytes(message.body);
|
|
2212
|
-
}
|
|
2213
|
-
if (message.signature !== "") {
|
|
2214
|
-
obj.signature = message.signature;
|
|
2215
|
-
}
|
|
2216
|
-
if (message.deliveryId !== "") {
|
|
2217
|
-
obj.deliveryId = message.deliveryId;
|
|
2218
|
-
}
|
|
2219
|
-
if (message.event !== "") {
|
|
2220
|
-
obj.event = message.event;
|
|
2221
|
-
}
|
|
2222
|
-
return obj;
|
|
2223
|
-
},
|
|
2224
|
-
|
|
2225
|
-
create<I extends Exact<DeepPartial<GitHubWebhookRequest>, I>>(base?: I): GitHubWebhookRequest {
|
|
2226
|
-
return GitHubWebhookRequest.fromPartial(base ?? ({} as any));
|
|
2227
|
-
},
|
|
2228
|
-
fromPartial<I extends Exact<DeepPartial<GitHubWebhookRequest>, I>>(object: I): GitHubWebhookRequest {
|
|
2229
|
-
const message = createBaseGitHubWebhookRequest();
|
|
2230
|
-
message.body = object.body ?? new Uint8Array(0);
|
|
2231
|
-
message.signature = object.signature ?? "";
|
|
2232
|
-
message.deliveryId = object.deliveryId ?? "";
|
|
2233
|
-
message.event = object.event ?? "";
|
|
2234
|
-
return message;
|
|
2235
|
-
},
|
|
2236
|
-
};
|
|
2237
|
-
|
|
2238
2110
|
function createBaseGitHubEmptyResponse(): GitHubEmptyResponse {
|
|
2239
2111
|
return { status: undefined };
|
|
2240
2112
|
}
|
|
@@ -3407,7 +3279,6 @@ export interface GitHubGatewayService {
|
|
|
3407
3279
|
request: ListInstallTermaPullRequestsRequest,
|
|
3408
3280
|
metadata?: Metadata,
|
|
3409
3281
|
): Promise<ListInstallTermaPullRequestsResponse>;
|
|
3410
|
-
ReceiveGitHubWebhook(request: GitHubWebhookRequest, metadata?: Metadata): Promise<GitHubEmptyResponse>;
|
|
3411
3282
|
}
|
|
3412
3283
|
|
|
3413
3284
|
export const GitHubGatewayServiceServiceName = "gateway.web.v1.GitHubGatewayService";
|
|
@@ -3427,7 +3298,6 @@ export class GitHubGatewayServiceClientImpl implements GitHubGatewayService {
|
|
|
3427
3298
|
this.ListGitHubFiles = this.ListGitHubFiles.bind(this);
|
|
3428
3299
|
this.CreateInstallTermaPullRequests = this.CreateInstallTermaPullRequests.bind(this);
|
|
3429
3300
|
this.ListInstallTermaPullRequests = this.ListInstallTermaPullRequests.bind(this);
|
|
3430
|
-
this.ReceiveGitHubWebhook = this.ReceiveGitHubWebhook.bind(this);
|
|
3431
3301
|
}
|
|
3432
3302
|
GetGitHubConnector(request: GitHubScopeRequest, metadata?: Metadata): Promise<GitHubStatusResponse> {
|
|
3433
3303
|
const data = GitHubScopeRequest.encode(request).finish();
|
|
@@ -3494,43 +3364,12 @@ export class GitHubGatewayServiceClientImpl implements GitHubGatewayService {
|
|
|
3494
3364
|
const promise = this.rpc.request(this.service, "ListInstallTermaPullRequests", data, metadata);
|
|
3495
3365
|
return promise.then((data) => ListInstallTermaPullRequestsResponse.decode(new BinaryReader(data)));
|
|
3496
3366
|
}
|
|
3497
|
-
|
|
3498
|
-
ReceiveGitHubWebhook(request: GitHubWebhookRequest, metadata?: Metadata): Promise<GitHubEmptyResponse> {
|
|
3499
|
-
const data = GitHubWebhookRequest.encode(request).finish();
|
|
3500
|
-
const promise = this.rpc.request(this.service, "ReceiveGitHubWebhook", data, metadata);
|
|
3501
|
-
return promise.then((data) => GitHubEmptyResponse.decode(new BinaryReader(data)));
|
|
3502
|
-
}
|
|
3503
3367
|
}
|
|
3504
3368
|
|
|
3505
3369
|
interface Rpc {
|
|
3506
3370
|
request(service: string, method: string, data: Uint8Array, metadata?: Metadata): Promise<Uint8Array>;
|
|
3507
3371
|
}
|
|
3508
3372
|
|
|
3509
|
-
function bytesFromBase64(b64: string): Uint8Array {
|
|
3510
|
-
if ((globalThis as any).Buffer) {
|
|
3511
|
-
return Uint8Array.from((globalThis as any).Buffer.from(b64, "base64"));
|
|
3512
|
-
} else {
|
|
3513
|
-
const bin = globalThis.atob(b64);
|
|
3514
|
-
const arr = new Uint8Array(bin.length);
|
|
3515
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
3516
|
-
arr[i] = bin.charCodeAt(i);
|
|
3517
|
-
}
|
|
3518
|
-
return arr;
|
|
3519
|
-
}
|
|
3520
|
-
}
|
|
3521
|
-
|
|
3522
|
-
function base64FromBytes(arr: Uint8Array): string {
|
|
3523
|
-
if ((globalThis as any).Buffer) {
|
|
3524
|
-
return (globalThis as any).Buffer.from(arr).toString("base64");
|
|
3525
|
-
} else {
|
|
3526
|
-
const bin: string[] = [];
|
|
3527
|
-
arr.forEach((byte) => {
|
|
3528
|
-
bin.push(globalThis.String.fromCharCode(byte));
|
|
3529
|
-
});
|
|
3530
|
-
return globalThis.btoa(bin.join(""));
|
|
3531
|
-
}
|
|
3532
|
-
}
|
|
3533
|
-
|
|
3534
3373
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
3535
3374
|
|
|
3536
3375
|
export type DeepPartial<T> = T extends Builtin ? T
|
|
@@ -171,17 +171,6 @@ function deserialize_gateway_web_v1_GitHubStatusResponse(buffer_arg) {
|
|
|
171
171
|
return proto_gateway_web_v1_github_connector_pb.GitHubStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
function serialize_gateway_web_v1_GitHubWebhookRequest(arg) {
|
|
175
|
-
if (!(arg instanceof proto_gateway_web_v1_github_connector_pb.GitHubWebhookRequest)) {
|
|
176
|
-
throw new Error('Expected argument of type gateway.web.v1.GitHubWebhookRequest');
|
|
177
|
-
}
|
|
178
|
-
return Buffer.from(arg.serializeBinary());
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
function deserialize_gateway_web_v1_GitHubWebhookRequest(buffer_arg) {
|
|
182
|
-
return proto_gateway_web_v1_github_connector_pb.GitHubWebhookRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
183
|
-
}
|
|
184
|
-
|
|
185
174
|
function serialize_gateway_web_v1_ListInstallTermaPullRequestsRequest(arg) {
|
|
186
175
|
if (!(arg instanceof proto_gateway_web_v1_github_connector_pb.ListInstallTermaPullRequestsRequest)) {
|
|
187
176
|
throw new Error('Expected argument of type gateway.web.v1.ListInstallTermaPullRequestsRequest');
|
|
@@ -321,17 +310,6 @@ listInstallTermaPullRequests: {
|
|
|
321
310
|
responseSerialize: serialize_gateway_web_v1_ListInstallTermaPullRequestsResponse,
|
|
322
311
|
responseDeserialize: deserialize_gateway_web_v1_ListInstallTermaPullRequestsResponse,
|
|
323
312
|
},
|
|
324
|
-
receiveGitHubWebhook: {
|
|
325
|
-
path: '/gateway.web.v1.GitHubGatewayService/ReceiveGitHubWebhook',
|
|
326
|
-
requestStream: false,
|
|
327
|
-
responseStream: false,
|
|
328
|
-
requestType: proto_gateway_web_v1_github_connector_pb.GitHubWebhookRequest,
|
|
329
|
-
responseType: proto_gateway_web_v1_github_connector_pb.GitHubEmptyResponse,
|
|
330
|
-
requestSerialize: serialize_gateway_web_v1_GitHubWebhookRequest,
|
|
331
|
-
requestDeserialize: deserialize_gateway_web_v1_GitHubWebhookRequest,
|
|
332
|
-
responseSerialize: serialize_gateway_web_v1_GitHubEmptyResponse,
|
|
333
|
-
responseDeserialize: deserialize_gateway_web_v1_GitHubEmptyResponse,
|
|
334
|
-
},
|
|
335
313
|
};
|
|
336
314
|
|
|
337
315
|
exports.GitHubGatewayServiceClient = grpc.makeGenericClientConstructor(GitHubGatewayServiceService, 'GitHubGatewayService');
|
|
@@ -41,7 +41,6 @@ goog.exportSymbol('proto.gateway.web.v1.GitHubRepositoriesResponse', null, globa
|
|
|
41
41
|
goog.exportSymbol('proto.gateway.web.v1.GitHubRepository', null, global);
|
|
42
42
|
goog.exportSymbol('proto.gateway.web.v1.GitHubScopeRequest', null, global);
|
|
43
43
|
goog.exportSymbol('proto.gateway.web.v1.GitHubStatusResponse', null, global);
|
|
44
|
-
goog.exportSymbol('proto.gateway.web.v1.GitHubWebhookRequest', null, global);
|
|
45
44
|
goog.exportSymbol('proto.gateway.web.v1.InstallTermaPullRequest', null, global);
|
|
46
45
|
goog.exportSymbol('proto.gateway.web.v1.InstallTermaPullRequestResult', null, global);
|
|
47
46
|
goog.exportSymbol('proto.gateway.web.v1.ListInstallTermaPullRequestsRequest', null, global);
|
|
@@ -361,27 +360,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
361
360
|
*/
|
|
362
361
|
proto.gateway.web.v1.GitHubIssuesResponse.displayName = 'proto.gateway.web.v1.GitHubIssuesResponse';
|
|
363
362
|
}
|
|
364
|
-
/**
|
|
365
|
-
* Generated by JsPbCodeGenerator.
|
|
366
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
367
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
368
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
369
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
370
|
-
* valid.
|
|
371
|
-
* @extends {jspb.Message}
|
|
372
|
-
* @constructor
|
|
373
|
-
*/
|
|
374
|
-
proto.gateway.web.v1.GitHubWebhookRequest = function(opt_data) {
|
|
375
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
376
|
-
};
|
|
377
|
-
goog.inherits(proto.gateway.web.v1.GitHubWebhookRequest, jspb.Message);
|
|
378
|
-
if (goog.DEBUG && !COMPILED) {
|
|
379
|
-
/**
|
|
380
|
-
* @public
|
|
381
|
-
* @override
|
|
382
|
-
*/
|
|
383
|
-
proto.gateway.web.v1.GitHubWebhookRequest.displayName = 'proto.gateway.web.v1.GitHubWebhookRequest';
|
|
384
|
-
}
|
|
385
363
|
/**
|
|
386
364
|
* Generated by JsPbCodeGenerator.
|
|
387
365
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4111,250 +4089,6 @@ proto.gateway.web.v1.GitHubIssuesResponse.prototype.clearIssuesList = function()
|
|
|
4111
4089
|
|
|
4112
4090
|
|
|
4113
4091
|
|
|
4114
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4115
|
-
/**
|
|
4116
|
-
* Creates an object representation of this proto.
|
|
4117
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4118
|
-
* Optional fields that are not set will be set to undefined.
|
|
4119
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4120
|
-
* For the list of reserved names please see:
|
|
4121
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4122
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4123
|
-
* JSPB instance for transitional soy proto support:
|
|
4124
|
-
* http://goto/soy-param-migration
|
|
4125
|
-
* @return {!Object}
|
|
4126
|
-
*/
|
|
4127
|
-
proto.gateway.web.v1.GitHubWebhookRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4128
|
-
return proto.gateway.web.v1.GitHubWebhookRequest.toObject(opt_includeInstance, this);
|
|
4129
|
-
};
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
/**
|
|
4133
|
-
* Static version of the {@see toObject} method.
|
|
4134
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4135
|
-
* the JSPB instance for transitional soy proto support:
|
|
4136
|
-
* http://goto/soy-param-migration
|
|
4137
|
-
* @param {!proto.gateway.web.v1.GitHubWebhookRequest} msg The msg instance to transform.
|
|
4138
|
-
* @return {!Object}
|
|
4139
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4140
|
-
*/
|
|
4141
|
-
proto.gateway.web.v1.GitHubWebhookRequest.toObject = function(includeInstance, msg) {
|
|
4142
|
-
var f, obj = {
|
|
4143
|
-
body: msg.getBody_asB64(),
|
|
4144
|
-
signature: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4145
|
-
deliveryId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
4146
|
-
event: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
4147
|
-
};
|
|
4148
|
-
|
|
4149
|
-
if (includeInstance) {
|
|
4150
|
-
obj.$jspbMessageInstance = msg;
|
|
4151
|
-
}
|
|
4152
|
-
return obj;
|
|
4153
|
-
};
|
|
4154
|
-
}
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
/**
|
|
4158
|
-
* Deserializes binary data (in protobuf wire format).
|
|
4159
|
-
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
4160
|
-
* @return {!proto.gateway.web.v1.GitHubWebhookRequest}
|
|
4161
|
-
*/
|
|
4162
|
-
proto.gateway.web.v1.GitHubWebhookRequest.deserializeBinary = function(bytes) {
|
|
4163
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
4164
|
-
var msg = new proto.gateway.web.v1.GitHubWebhookRequest;
|
|
4165
|
-
return proto.gateway.web.v1.GitHubWebhookRequest.deserializeBinaryFromReader(msg, reader);
|
|
4166
|
-
};
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
/**
|
|
4170
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
4171
|
-
* given reader into the given message object.
|
|
4172
|
-
* @param {!proto.gateway.web.v1.GitHubWebhookRequest} msg The message object to deserialize into.
|
|
4173
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4174
|
-
* @return {!proto.gateway.web.v1.GitHubWebhookRequest}
|
|
4175
|
-
*/
|
|
4176
|
-
proto.gateway.web.v1.GitHubWebhookRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4177
|
-
while (reader.nextField()) {
|
|
4178
|
-
if (reader.isEndGroup()) {
|
|
4179
|
-
break;
|
|
4180
|
-
}
|
|
4181
|
-
var field = reader.getFieldNumber();
|
|
4182
|
-
switch (field) {
|
|
4183
|
-
case 1:
|
|
4184
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
4185
|
-
msg.setBody(value);
|
|
4186
|
-
break;
|
|
4187
|
-
case 2:
|
|
4188
|
-
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
4189
|
-
msg.setSignature(value);
|
|
4190
|
-
break;
|
|
4191
|
-
case 3:
|
|
4192
|
-
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
4193
|
-
msg.setDeliveryId(value);
|
|
4194
|
-
break;
|
|
4195
|
-
case 4:
|
|
4196
|
-
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
4197
|
-
msg.setEvent(value);
|
|
4198
|
-
break;
|
|
4199
|
-
default:
|
|
4200
|
-
reader.skipField();
|
|
4201
|
-
break;
|
|
4202
|
-
}
|
|
4203
|
-
}
|
|
4204
|
-
return msg;
|
|
4205
|
-
};
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
/**
|
|
4209
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
4210
|
-
* @return {!Uint8Array}
|
|
4211
|
-
*/
|
|
4212
|
-
proto.gateway.web.v1.GitHubWebhookRequest.prototype.serializeBinary = function() {
|
|
4213
|
-
var writer = new jspb.BinaryWriter();
|
|
4214
|
-
proto.gateway.web.v1.GitHubWebhookRequest.serializeBinaryToWriter(this, writer);
|
|
4215
|
-
return writer.getResultBuffer();
|
|
4216
|
-
};
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
/**
|
|
4220
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
4221
|
-
* format), writing to the given BinaryWriter.
|
|
4222
|
-
* @param {!proto.gateway.web.v1.GitHubWebhookRequest} message
|
|
4223
|
-
* @param {!jspb.BinaryWriter} writer
|
|
4224
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4225
|
-
*/
|
|
4226
|
-
proto.gateway.web.v1.GitHubWebhookRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4227
|
-
var f = undefined;
|
|
4228
|
-
f = message.getBody_asU8();
|
|
4229
|
-
if (f.length > 0) {
|
|
4230
|
-
writer.writeBytes(
|
|
4231
|
-
1,
|
|
4232
|
-
f
|
|
4233
|
-
);
|
|
4234
|
-
}
|
|
4235
|
-
f = message.getSignature();
|
|
4236
|
-
if (f.length > 0) {
|
|
4237
|
-
writer.writeString(
|
|
4238
|
-
2,
|
|
4239
|
-
f
|
|
4240
|
-
);
|
|
4241
|
-
}
|
|
4242
|
-
f = message.getDeliveryId();
|
|
4243
|
-
if (f.length > 0) {
|
|
4244
|
-
writer.writeString(
|
|
4245
|
-
3,
|
|
4246
|
-
f
|
|
4247
|
-
);
|
|
4248
|
-
}
|
|
4249
|
-
f = message.getEvent();
|
|
4250
|
-
if (f.length > 0) {
|
|
4251
|
-
writer.writeString(
|
|
4252
|
-
4,
|
|
4253
|
-
f
|
|
4254
|
-
);
|
|
4255
|
-
}
|
|
4256
|
-
};
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
/**
|
|
4260
|
-
* optional bytes body = 1;
|
|
4261
|
-
* @return {!(string|Uint8Array)}
|
|
4262
|
-
*/
|
|
4263
|
-
proto.gateway.web.v1.GitHubWebhookRequest.prototype.getBody = function() {
|
|
4264
|
-
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4265
|
-
};
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
/**
|
|
4269
|
-
* optional bytes body = 1;
|
|
4270
|
-
* This is a type-conversion wrapper around `getBody()`
|
|
4271
|
-
* @return {string}
|
|
4272
|
-
*/
|
|
4273
|
-
proto.gateway.web.v1.GitHubWebhookRequest.prototype.getBody_asB64 = function() {
|
|
4274
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
4275
|
-
this.getBody()));
|
|
4276
|
-
};
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
/**
|
|
4280
|
-
* optional bytes body = 1;
|
|
4281
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
4282
|
-
* @see http://caniuse.com/Uint8Array
|
|
4283
|
-
* This is a type-conversion wrapper around `getBody()`
|
|
4284
|
-
* @return {!Uint8Array}
|
|
4285
|
-
*/
|
|
4286
|
-
proto.gateway.web.v1.GitHubWebhookRequest.prototype.getBody_asU8 = function() {
|
|
4287
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
4288
|
-
this.getBody()));
|
|
4289
|
-
};
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
/**
|
|
4293
|
-
* @param {!(string|Uint8Array)} value
|
|
4294
|
-
* @return {!proto.gateway.web.v1.GitHubWebhookRequest} returns this
|
|
4295
|
-
*/
|
|
4296
|
-
proto.gateway.web.v1.GitHubWebhookRequest.prototype.setBody = function(value) {
|
|
4297
|
-
return jspb.Message.setProto3BytesField(this, 1, value);
|
|
4298
|
-
};
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
/**
|
|
4302
|
-
* optional string signature = 2;
|
|
4303
|
-
* @return {string}
|
|
4304
|
-
*/
|
|
4305
|
-
proto.gateway.web.v1.GitHubWebhookRequest.prototype.getSignature = function() {
|
|
4306
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4307
|
-
};
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
/**
|
|
4311
|
-
* @param {string} value
|
|
4312
|
-
* @return {!proto.gateway.web.v1.GitHubWebhookRequest} returns this
|
|
4313
|
-
*/
|
|
4314
|
-
proto.gateway.web.v1.GitHubWebhookRequest.prototype.setSignature = function(value) {
|
|
4315
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4316
|
-
};
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
/**
|
|
4320
|
-
* optional string delivery_id = 3;
|
|
4321
|
-
* @return {string}
|
|
4322
|
-
*/
|
|
4323
|
-
proto.gateway.web.v1.GitHubWebhookRequest.prototype.getDeliveryId = function() {
|
|
4324
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
4325
|
-
};
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
/**
|
|
4329
|
-
* @param {string} value
|
|
4330
|
-
* @return {!proto.gateway.web.v1.GitHubWebhookRequest} returns this
|
|
4331
|
-
*/
|
|
4332
|
-
proto.gateway.web.v1.GitHubWebhookRequest.prototype.setDeliveryId = function(value) {
|
|
4333
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
4334
|
-
};
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
/**
|
|
4338
|
-
* optional string event = 4;
|
|
4339
|
-
* @return {string}
|
|
4340
|
-
*/
|
|
4341
|
-
proto.gateway.web.v1.GitHubWebhookRequest.prototype.getEvent = function() {
|
|
4342
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
4343
|
-
};
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
/**
|
|
4347
|
-
* @param {string} value
|
|
4348
|
-
* @return {!proto.gateway.web.v1.GitHubWebhookRequest} returns this
|
|
4349
|
-
*/
|
|
4350
|
-
proto.gateway.web.v1.GitHubWebhookRequest.prototype.setEvent = function(value) {
|
|
4351
|
-
return jspb.Message.setProto3StringField(this, 4, value);
|
|
4352
|
-
};
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
4092
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4359
4093
|
/**
|
|
4360
4094
|
* Creates an object representation of this proto.
|