@miradorlabs/web-grpc 2.14.0 → 2.15.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.
@@ -56,6 +56,8 @@ goog.exportSymbol('proto.gateway.web.v1.ListRuleSchemasResponse', null, global);
56
56
  goog.exportSymbol('proto.gateway.web.v1.ListRulesRequest', null, global);
57
57
  goog.exportSymbol('proto.gateway.web.v1.ListRulesRequest.FilterCase', null, global);
58
58
  goog.exportSymbol('proto.gateway.web.v1.ListRulesResponse', null, global);
59
+ goog.exportSymbol('proto.gateway.web.v1.PagerDutyConfig', null, global);
60
+ goog.exportSymbol('proto.gateway.web.v1.PagerDutyDestination', null, global);
59
61
  goog.exportSymbol('proto.gateway.web.v1.Rule', null, global);
60
62
  goog.exportSymbol('proto.gateway.web.v1.RuleMatchEnvelope', null, global);
61
63
  goog.exportSymbol('proto.gateway.web.v1.RuleMatchEnvelope.EventCase', null, global);
@@ -165,6 +167,27 @@ if (goog.DEBUG && !COMPILED) {
165
167
  */
166
168
  proto.gateway.web.v1.EmailConfig.displayName = 'proto.gateway.web.v1.EmailConfig';
167
169
  }
170
+ /**
171
+ * Generated by JsPbCodeGenerator.
172
+ * @param {Array=} opt_data Optional initial data array, typically from a
173
+ * server response, or constructed directly in Javascript. The array is used
174
+ * in place and becomes part of the constructed object. It is not cloned.
175
+ * If no data is provided, the constructed object will be empty, but still
176
+ * valid.
177
+ * @extends {jspb.Message}
178
+ * @constructor
179
+ */
180
+ proto.gateway.web.v1.PagerDutyConfig = function(opt_data) {
181
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
182
+ };
183
+ goog.inherits(proto.gateway.web.v1.PagerDutyConfig, jspb.Message);
184
+ if (goog.DEBUG && !COMPILED) {
185
+ /**
186
+ * @public
187
+ * @override
188
+ */
189
+ proto.gateway.web.v1.PagerDutyConfig.displayName = 'proto.gateway.web.v1.PagerDutyConfig';
190
+ }
168
191
  /**
169
192
  * Generated by JsPbCodeGenerator.
170
193
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1047,6 +1070,27 @@ if (goog.DEBUG && !COMPILED) {
1047
1070
  */
1048
1071
  proto.gateway.web.v1.SlackDestination.displayName = 'proto.gateway.web.v1.SlackDestination';
1049
1072
  }
1073
+ /**
1074
+ * Generated by JsPbCodeGenerator.
1075
+ * @param {Array=} opt_data Optional initial data array, typically from a
1076
+ * server response, or constructed directly in Javascript. The array is used
1077
+ * in place and becomes part of the constructed object. It is not cloned.
1078
+ * If no data is provided, the constructed object will be empty, but still
1079
+ * valid.
1080
+ * @extends {jspb.Message}
1081
+ * @constructor
1082
+ */
1083
+ proto.gateway.web.v1.PagerDutyDestination = function(opt_data) {
1084
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1085
+ };
1086
+ goog.inherits(proto.gateway.web.v1.PagerDutyDestination, jspb.Message);
1087
+ if (goog.DEBUG && !COMPILED) {
1088
+ /**
1089
+ * @public
1090
+ * @override
1091
+ */
1092
+ proto.gateway.web.v1.PagerDutyDestination.displayName = 'proto.gateway.web.v1.PagerDutyDestination';
1093
+ }
1050
1094
 
1051
1095
  /**
1052
1096
  * Oneof group definitions for this message. Each group defines the field
@@ -1056,7 +1100,7 @@ if (goog.DEBUG && !COMPILED) {
1056
1100
  * @private {!Array<!Array<number>>}
1057
1101
  * @const
1058
1102
  */
1059
- proto.gateway.web.v1.Integration.oneofGroups_ = [[6,7,8]];
1103
+ proto.gateway.web.v1.Integration.oneofGroups_ = [[6,7,8,11]];
1060
1104
 
1061
1105
  /**
1062
1106
  * @enum {number}
@@ -1065,7 +1109,8 @@ proto.gateway.web.v1.Integration.ConfigCase = {
1065
1109
  CONFIG_NOT_SET: 0,
1066
1110
  WEBHOOK_CONFIG: 6,
1067
1111
  SLACK_CONFIG: 7,
1068
- EMAIL_CONFIG: 8
1112
+ EMAIL_CONFIG: 8,
1113
+ PAGERDUTY_CONFIG: 11
1069
1114
  };
1070
1115
 
1071
1116
  /**
@@ -1114,6 +1159,7 @@ enabled: jspb.Message.getFieldWithDefault(msg, 5, 0),
1114
1159
  webhookConfig: (f = msg.getWebhookConfig()) && proto.gateway.web.v1.WebhookConfig.toObject(includeInstance, f),
1115
1160
  slackConfig: (f = msg.getSlackConfig()) && proto.gateway.web.v1.SlackConfig.toObject(includeInstance, f),
1116
1161
  emailConfig: (f = msg.getEmailConfig()) && proto.gateway.web.v1.EmailConfig.toObject(includeInstance, f),
1162
+ pagerdutyConfig: (f = msg.getPagerdutyConfig()) && proto.gateway.web.v1.PagerDutyConfig.toObject(includeInstance, f),
1117
1163
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1118
1164
  updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1119
1165
  };
@@ -1187,6 +1233,11 @@ proto.gateway.web.v1.Integration.deserializeBinaryFromReader = function(msg, rea
1187
1233
  reader.readMessage(value,proto.gateway.web.v1.EmailConfig.deserializeBinaryFromReader);
1188
1234
  msg.setEmailConfig(value);
1189
1235
  break;
1236
+ case 11:
1237
+ var value = new proto.gateway.web.v1.PagerDutyConfig;
1238
+ reader.readMessage(value,proto.gateway.web.v1.PagerDutyConfig.deserializeBinaryFromReader);
1239
+ msg.setPagerdutyConfig(value);
1240
+ break;
1190
1241
  case 9:
1191
1242
  var value = new google_protobuf_timestamp_pb.Timestamp;
1192
1243
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
@@ -1285,6 +1336,14 @@ proto.gateway.web.v1.Integration.serializeBinaryToWriter = function(message, wri
1285
1336
  proto.gateway.web.v1.EmailConfig.serializeBinaryToWriter
1286
1337
  );
1287
1338
  }
1339
+ f = message.getPagerdutyConfig();
1340
+ if (f != null) {
1341
+ writer.writeMessage(
1342
+ 11,
1343
+ f,
1344
+ proto.gateway.web.v1.PagerDutyConfig.serializeBinaryToWriter
1345
+ );
1346
+ }
1288
1347
  f = message.getCreatedAt();
1289
1348
  if (f != null) {
1290
1349
  writer.writeMessage(
@@ -1505,6 +1564,43 @@ proto.gateway.web.v1.Integration.prototype.hasEmailConfig = function() {
1505
1564
  };
1506
1565
 
1507
1566
 
1567
+ /**
1568
+ * optional PagerDutyConfig pagerduty_config = 11;
1569
+ * @return {?proto.gateway.web.v1.PagerDutyConfig}
1570
+ */
1571
+ proto.gateway.web.v1.Integration.prototype.getPagerdutyConfig = function() {
1572
+ return /** @type{?proto.gateway.web.v1.PagerDutyConfig} */ (
1573
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.PagerDutyConfig, 11));
1574
+ };
1575
+
1576
+
1577
+ /**
1578
+ * @param {?proto.gateway.web.v1.PagerDutyConfig|undefined} value
1579
+ * @return {!proto.gateway.web.v1.Integration} returns this
1580
+ */
1581
+ proto.gateway.web.v1.Integration.prototype.setPagerdutyConfig = function(value) {
1582
+ return jspb.Message.setOneofWrapperField(this, 11, proto.gateway.web.v1.Integration.oneofGroups_[0], value);
1583
+ };
1584
+
1585
+
1586
+ /**
1587
+ * Clears the message field making it undefined.
1588
+ * @return {!proto.gateway.web.v1.Integration} returns this
1589
+ */
1590
+ proto.gateway.web.v1.Integration.prototype.clearPagerdutyConfig = function() {
1591
+ return this.setPagerdutyConfig(undefined);
1592
+ };
1593
+
1594
+
1595
+ /**
1596
+ * Returns whether this field is set.
1597
+ * @return {boolean}
1598
+ */
1599
+ proto.gateway.web.v1.Integration.prototype.hasPagerdutyConfig = function() {
1600
+ return jspb.Message.getField(this, 11) != null;
1601
+ };
1602
+
1603
+
1508
1604
  /**
1509
1605
  * optional google.protobuf.Timestamp created_at = 9;
1510
1606
  * @return {?proto.google.protobuf.Timestamp}
@@ -2120,6 +2216,166 @@ proto.gateway.web.v1.EmailConfig.prototype.clearRecipientsList = function() {
2120
2216
 
2121
2217
 
2122
2218
 
2219
+
2220
+
2221
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2222
+ /**
2223
+ * Creates an object representation of this proto.
2224
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2225
+ * Optional fields that are not set will be set to undefined.
2226
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2227
+ * For the list of reserved names please see:
2228
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2229
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2230
+ * JSPB instance for transitional soy proto support:
2231
+ * http://goto/soy-param-migration
2232
+ * @return {!Object}
2233
+ */
2234
+ proto.gateway.web.v1.PagerDutyConfig.prototype.toObject = function(opt_includeInstance) {
2235
+ return proto.gateway.web.v1.PagerDutyConfig.toObject(opt_includeInstance, this);
2236
+ };
2237
+
2238
+
2239
+ /**
2240
+ * Static version of the {@see toObject} method.
2241
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2242
+ * the JSPB instance for transitional soy proto support:
2243
+ * http://goto/soy-param-migration
2244
+ * @param {!proto.gateway.web.v1.PagerDutyConfig} msg The msg instance to transform.
2245
+ * @return {!Object}
2246
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2247
+ */
2248
+ proto.gateway.web.v1.PagerDutyConfig.toObject = function(includeInstance, msg) {
2249
+ var f, obj = {
2250
+ serviceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2251
+ serviceName: jspb.Message.getFieldWithDefault(msg, 2, "")
2252
+ };
2253
+
2254
+ if (includeInstance) {
2255
+ obj.$jspbMessageInstance = msg;
2256
+ }
2257
+ return obj;
2258
+ };
2259
+ }
2260
+
2261
+
2262
+ /**
2263
+ * Deserializes binary data (in protobuf wire format).
2264
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2265
+ * @return {!proto.gateway.web.v1.PagerDutyConfig}
2266
+ */
2267
+ proto.gateway.web.v1.PagerDutyConfig.deserializeBinary = function(bytes) {
2268
+ var reader = new jspb.BinaryReader(bytes);
2269
+ var msg = new proto.gateway.web.v1.PagerDutyConfig;
2270
+ return proto.gateway.web.v1.PagerDutyConfig.deserializeBinaryFromReader(msg, reader);
2271
+ };
2272
+
2273
+
2274
+ /**
2275
+ * Deserializes binary data (in protobuf wire format) from the
2276
+ * given reader into the given message object.
2277
+ * @param {!proto.gateway.web.v1.PagerDutyConfig} msg The message object to deserialize into.
2278
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2279
+ * @return {!proto.gateway.web.v1.PagerDutyConfig}
2280
+ */
2281
+ proto.gateway.web.v1.PagerDutyConfig.deserializeBinaryFromReader = function(msg, reader) {
2282
+ while (reader.nextField()) {
2283
+ if (reader.isEndGroup()) {
2284
+ break;
2285
+ }
2286
+ var field = reader.getFieldNumber();
2287
+ switch (field) {
2288
+ case 1:
2289
+ var value = /** @type {string} */ (reader.readString());
2290
+ msg.setServiceId(value);
2291
+ break;
2292
+ case 2:
2293
+ var value = /** @type {string} */ (reader.readString());
2294
+ msg.setServiceName(value);
2295
+ break;
2296
+ default:
2297
+ reader.skipField();
2298
+ break;
2299
+ }
2300
+ }
2301
+ return msg;
2302
+ };
2303
+
2304
+
2305
+ /**
2306
+ * Serializes the message to binary data (in protobuf wire format).
2307
+ * @return {!Uint8Array}
2308
+ */
2309
+ proto.gateway.web.v1.PagerDutyConfig.prototype.serializeBinary = function() {
2310
+ var writer = new jspb.BinaryWriter();
2311
+ proto.gateway.web.v1.PagerDutyConfig.serializeBinaryToWriter(this, writer);
2312
+ return writer.getResultBuffer();
2313
+ };
2314
+
2315
+
2316
+ /**
2317
+ * Serializes the given message to binary data (in protobuf wire
2318
+ * format), writing to the given BinaryWriter.
2319
+ * @param {!proto.gateway.web.v1.PagerDutyConfig} message
2320
+ * @param {!jspb.BinaryWriter} writer
2321
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2322
+ */
2323
+ proto.gateway.web.v1.PagerDutyConfig.serializeBinaryToWriter = function(message, writer) {
2324
+ var f = undefined;
2325
+ f = message.getServiceId();
2326
+ if (f.length > 0) {
2327
+ writer.writeString(
2328
+ 1,
2329
+ f
2330
+ );
2331
+ }
2332
+ f = message.getServiceName();
2333
+ if (f.length > 0) {
2334
+ writer.writeString(
2335
+ 2,
2336
+ f
2337
+ );
2338
+ }
2339
+ };
2340
+
2341
+
2342
+ /**
2343
+ * optional string service_id = 1;
2344
+ * @return {string}
2345
+ */
2346
+ proto.gateway.web.v1.PagerDutyConfig.prototype.getServiceId = function() {
2347
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2348
+ };
2349
+
2350
+
2351
+ /**
2352
+ * @param {string} value
2353
+ * @return {!proto.gateway.web.v1.PagerDutyConfig} returns this
2354
+ */
2355
+ proto.gateway.web.v1.PagerDutyConfig.prototype.setServiceId = function(value) {
2356
+ return jspb.Message.setProto3StringField(this, 1, value);
2357
+ };
2358
+
2359
+
2360
+ /**
2361
+ * optional string service_name = 2;
2362
+ * @return {string}
2363
+ */
2364
+ proto.gateway.web.v1.PagerDutyConfig.prototype.getServiceName = function() {
2365
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2366
+ };
2367
+
2368
+
2369
+ /**
2370
+ * @param {string} value
2371
+ * @return {!proto.gateway.web.v1.PagerDutyConfig} returns this
2372
+ */
2373
+ proto.gateway.web.v1.PagerDutyConfig.prototype.setServiceName = function(value) {
2374
+ return jspb.Message.setProto3StringField(this, 2, value);
2375
+ };
2376
+
2377
+
2378
+
2123
2379
  /**
2124
2380
  * List of repeated fields within this message type.
2125
2381
  * @private {!Array<number>}
@@ -2566,7 +2822,7 @@ proto.gateway.web.v1.Rule.prototype.hasUpdatedAt = function() {
2566
2822
  * @private {!Array<!Array<number>>}
2567
2823
  * @const
2568
2824
  */
2569
- proto.gateway.web.v1.CreateIntegrationRequest.oneofGroups_ = [[4,5,6]];
2825
+ proto.gateway.web.v1.CreateIntegrationRequest.oneofGroups_ = [[4,5,6,7]];
2570
2826
 
2571
2827
  /**
2572
2828
  * @enum {number}
@@ -2575,7 +2831,8 @@ proto.gateway.web.v1.CreateIntegrationRequest.ConfigCase = {
2575
2831
  CONFIG_NOT_SET: 0,
2576
2832
  WEBHOOK_CONFIG: 4,
2577
2833
  SLACK_CONFIG: 5,
2578
- EMAIL_CONFIG: 6
2834
+ EMAIL_CONFIG: 6,
2835
+ PAGERDUTY_CONFIG: 7
2579
2836
  };
2580
2837
 
2581
2838
  /**
@@ -2621,7 +2878,8 @@ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
2621
2878
  type: jspb.Message.getFieldWithDefault(msg, 3, 0),
2622
2879
  webhookConfig: (f = msg.getWebhookConfig()) && proto.gateway.web.v1.WebhookConfig.toObject(includeInstance, f),
2623
2880
  slackConfig: (f = msg.getSlackConfig()) && proto.gateway.web.v1.SlackConfig.toObject(includeInstance, f),
2624
- emailConfig: (f = msg.getEmailConfig()) && proto.gateway.web.v1.EmailConfig.toObject(includeInstance, f)
2881
+ emailConfig: (f = msg.getEmailConfig()) && proto.gateway.web.v1.EmailConfig.toObject(includeInstance, f),
2882
+ pagerdutyConfig: (f = msg.getPagerdutyConfig()) && proto.gateway.web.v1.PagerDutyConfig.toObject(includeInstance, f)
2625
2883
  };
2626
2884
 
2627
2885
  if (includeInstance) {
@@ -2685,6 +2943,11 @@ proto.gateway.web.v1.CreateIntegrationRequest.deserializeBinaryFromReader = func
2685
2943
  reader.readMessage(value,proto.gateway.web.v1.EmailConfig.deserializeBinaryFromReader);
2686
2944
  msg.setEmailConfig(value);
2687
2945
  break;
2946
+ case 7:
2947
+ var value = new proto.gateway.web.v1.PagerDutyConfig;
2948
+ reader.readMessage(value,proto.gateway.web.v1.PagerDutyConfig.deserializeBinaryFromReader);
2949
+ msg.setPagerdutyConfig(value);
2950
+ break;
2688
2951
  default:
2689
2952
  reader.skipField();
2690
2953
  break;
@@ -2759,6 +3022,14 @@ proto.gateway.web.v1.CreateIntegrationRequest.serializeBinaryToWriter = function
2759
3022
  proto.gateway.web.v1.EmailConfig.serializeBinaryToWriter
2760
3023
  );
2761
3024
  }
3025
+ f = message.getPagerdutyConfig();
3026
+ if (f != null) {
3027
+ writer.writeMessage(
3028
+ 7,
3029
+ f,
3030
+ proto.gateway.web.v1.PagerDutyConfig.serializeBinaryToWriter
3031
+ );
3032
+ }
2762
3033
  };
2763
3034
 
2764
3035
 
@@ -2927,6 +3198,43 @@ proto.gateway.web.v1.CreateIntegrationRequest.prototype.hasEmailConfig = functio
2927
3198
  };
2928
3199
 
2929
3200
 
3201
+ /**
3202
+ * optional PagerDutyConfig pagerduty_config = 7;
3203
+ * @return {?proto.gateway.web.v1.PagerDutyConfig}
3204
+ */
3205
+ proto.gateway.web.v1.CreateIntegrationRequest.prototype.getPagerdutyConfig = function() {
3206
+ return /** @type{?proto.gateway.web.v1.PagerDutyConfig} */ (
3207
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.PagerDutyConfig, 7));
3208
+ };
3209
+
3210
+
3211
+ /**
3212
+ * @param {?proto.gateway.web.v1.PagerDutyConfig|undefined} value
3213
+ * @return {!proto.gateway.web.v1.CreateIntegrationRequest} returns this
3214
+ */
3215
+ proto.gateway.web.v1.CreateIntegrationRequest.prototype.setPagerdutyConfig = function(value) {
3216
+ return jspb.Message.setOneofWrapperField(this, 7, proto.gateway.web.v1.CreateIntegrationRequest.oneofGroups_[0], value);
3217
+ };
3218
+
3219
+
3220
+ /**
3221
+ * Clears the message field making it undefined.
3222
+ * @return {!proto.gateway.web.v1.CreateIntegrationRequest} returns this
3223
+ */
3224
+ proto.gateway.web.v1.CreateIntegrationRequest.prototype.clearPagerdutyConfig = function() {
3225
+ return this.setPagerdutyConfig(undefined);
3226
+ };
3227
+
3228
+
3229
+ /**
3230
+ * Returns whether this field is set.
3231
+ * @return {boolean}
3232
+ */
3233
+ proto.gateway.web.v1.CreateIntegrationRequest.prototype.hasPagerdutyConfig = function() {
3234
+ return jspb.Message.getField(this, 7) != null;
3235
+ };
3236
+
3237
+
2930
3238
 
2931
3239
 
2932
3240
 
@@ -4009,7 +4317,7 @@ proto.gateway.web.v1.UpdateIntegrationRequest.serializeBinaryToWriter = function
4009
4317
  * @private {!Array<!Array<number>>}
4010
4318
  * @const
4011
4319
  */
4012
- proto.gateway.web.v1.UpdateIntegrationRequest.IntegrationUpdates.oneofGroups_ = [[3,4,5]];
4320
+ proto.gateway.web.v1.UpdateIntegrationRequest.IntegrationUpdates.oneofGroups_ = [[3,4,5,6]];
4013
4321
 
4014
4322
  /**
4015
4323
  * @enum {number}
@@ -4018,7 +4326,8 @@ proto.gateway.web.v1.UpdateIntegrationRequest.IntegrationUpdates.ConfigCase = {
4018
4326
  CONFIG_NOT_SET: 0,
4019
4327
  WEBHOOK_CONFIG: 3,
4020
4328
  SLACK_CONFIG: 4,
4021
- EMAIL_CONFIG: 5
4329
+ EMAIL_CONFIG: 5,
4330
+ PAGERDUTY_CONFIG: 6
4022
4331
  };
4023
4332
 
4024
4333
  /**
@@ -4063,7 +4372,8 @@ name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
4063
4372
  enabled: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
4064
4373
  webhookConfig: (f = msg.getWebhookConfig()) && proto.gateway.web.v1.WebhookConfig.toObject(includeInstance, f),
4065
4374
  slackConfig: (f = msg.getSlackConfig()) && proto.gateway.web.v1.SlackConfig.toObject(includeInstance, f),
4066
- emailConfig: (f = msg.getEmailConfig()) && proto.gateway.web.v1.EmailConfig.toObject(includeInstance, f)
4375
+ emailConfig: (f = msg.getEmailConfig()) && proto.gateway.web.v1.EmailConfig.toObject(includeInstance, f),
4376
+ pagerdutyConfig: (f = msg.getPagerdutyConfig()) && proto.gateway.web.v1.PagerDutyConfig.toObject(includeInstance, f)
4067
4377
  };
4068
4378
 
4069
4379
  if (includeInstance) {
@@ -4123,6 +4433,11 @@ proto.gateway.web.v1.UpdateIntegrationRequest.IntegrationUpdates.deserializeBina
4123
4433
  reader.readMessage(value,proto.gateway.web.v1.EmailConfig.deserializeBinaryFromReader);
4124
4434
  msg.setEmailConfig(value);
4125
4435
  break;
4436
+ case 6:
4437
+ var value = new proto.gateway.web.v1.PagerDutyConfig;
4438
+ reader.readMessage(value,proto.gateway.web.v1.PagerDutyConfig.deserializeBinaryFromReader);
4439
+ msg.setPagerdutyConfig(value);
4440
+ break;
4126
4441
  default:
4127
4442
  reader.skipField();
4128
4443
  break;
@@ -4190,6 +4505,14 @@ proto.gateway.web.v1.UpdateIntegrationRequest.IntegrationUpdates.serializeBinary
4190
4505
  proto.gateway.web.v1.EmailConfig.serializeBinaryToWriter
4191
4506
  );
4192
4507
  }
4508
+ f = message.getPagerdutyConfig();
4509
+ if (f != null) {
4510
+ writer.writeMessage(
4511
+ 6,
4512
+ f,
4513
+ proto.gateway.web.v1.PagerDutyConfig.serializeBinaryToWriter
4514
+ );
4515
+ }
4193
4516
  };
4194
4517
 
4195
4518
 
@@ -4376,6 +4699,43 @@ proto.gateway.web.v1.UpdateIntegrationRequest.IntegrationUpdates.prototype.hasEm
4376
4699
  };
4377
4700
 
4378
4701
 
4702
+ /**
4703
+ * optional PagerDutyConfig pagerduty_config = 6;
4704
+ * @return {?proto.gateway.web.v1.PagerDutyConfig}
4705
+ */
4706
+ proto.gateway.web.v1.UpdateIntegrationRequest.IntegrationUpdates.prototype.getPagerdutyConfig = function() {
4707
+ return /** @type{?proto.gateway.web.v1.PagerDutyConfig} */ (
4708
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.PagerDutyConfig, 6));
4709
+ };
4710
+
4711
+
4712
+ /**
4713
+ * @param {?proto.gateway.web.v1.PagerDutyConfig|undefined} value
4714
+ * @return {!proto.gateway.web.v1.UpdateIntegrationRequest.IntegrationUpdates} returns this
4715
+ */
4716
+ proto.gateway.web.v1.UpdateIntegrationRequest.IntegrationUpdates.prototype.setPagerdutyConfig = function(value) {
4717
+ return jspb.Message.setOneofWrapperField(this, 6, proto.gateway.web.v1.UpdateIntegrationRequest.IntegrationUpdates.oneofGroups_[0], value);
4718
+ };
4719
+
4720
+
4721
+ /**
4722
+ * Clears the message field making it undefined.
4723
+ * @return {!proto.gateway.web.v1.UpdateIntegrationRequest.IntegrationUpdates} returns this
4724
+ */
4725
+ proto.gateway.web.v1.UpdateIntegrationRequest.IntegrationUpdates.prototype.clearPagerdutyConfig = function() {
4726
+ return this.setPagerdutyConfig(undefined);
4727
+ };
4728
+
4729
+
4730
+ /**
4731
+ * Returns whether this field is set.
4732
+ * @return {boolean}
4733
+ */
4734
+ proto.gateway.web.v1.UpdateIntegrationRequest.IntegrationUpdates.prototype.hasPagerdutyConfig = function() {
4735
+ return jspb.Message.getField(this, 6) != null;
4736
+ };
4737
+
4738
+
4379
4739
  /**
4380
4740
  * optional string organization_id = 1;
4381
4741
  * @return {string}
@@ -10467,7 +10827,7 @@ proto.gateway.web.v1.ListRuleMatchDeliveriesResponse.prototype.clearDeliveriesLi
10467
10827
  * @private {!Array<!Array<number>>}
10468
10828
  * @const
10469
10829
  */
10470
- proto.gateway.web.v1.IntegrationDelivery.oneofGroups_ = [[20,21,22]];
10830
+ proto.gateway.web.v1.IntegrationDelivery.oneofGroups_ = [[20,21,22,23]];
10471
10831
 
10472
10832
  /**
10473
10833
  * @enum {number}
@@ -10476,7 +10836,8 @@ proto.gateway.web.v1.IntegrationDelivery.DestinationCase = {
10476
10836
  DESTINATION_NOT_SET: 0,
10477
10837
  WEBHOOK: 20,
10478
10838
  EMAIL: 21,
10479
- SLACK: 22
10839
+ SLACK: 22,
10840
+ PAGERDUTY: 23
10480
10841
  };
10481
10842
 
10482
10843
  /**
@@ -10530,7 +10891,8 @@ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.to
10530
10891
  updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
10531
10892
  webhook: (f = msg.getWebhook()) && proto.gateway.web.v1.WebhookDestination.toObject(includeInstance, f),
10532
10893
  email: (f = msg.getEmail()) && proto.gateway.web.v1.EmailDestination.toObject(includeInstance, f),
10533
- slack: (f = msg.getSlack()) && proto.gateway.web.v1.SlackDestination.toObject(includeInstance, f)
10894
+ slack: (f = msg.getSlack()) && proto.gateway.web.v1.SlackDestination.toObject(includeInstance, f),
10895
+ pagerduty: (f = msg.getPagerduty()) && proto.gateway.web.v1.PagerDutyDestination.toObject(includeInstance, f)
10534
10896
  };
10535
10897
 
10536
10898
  if (includeInstance) {
@@ -10628,6 +10990,11 @@ proto.gateway.web.v1.IntegrationDelivery.deserializeBinaryFromReader = function(
10628
10990
  reader.readMessage(value,proto.gateway.web.v1.SlackDestination.deserializeBinaryFromReader);
10629
10991
  msg.setSlack(value);
10630
10992
  break;
10993
+ case 23:
10994
+ var value = new proto.gateway.web.v1.PagerDutyDestination;
10995
+ reader.readMessage(value,proto.gateway.web.v1.PagerDutyDestination.deserializeBinaryFromReader);
10996
+ msg.setPagerduty(value);
10997
+ break;
10631
10998
  default:
10632
10999
  reader.skipField();
10633
11000
  break;
@@ -10760,6 +11127,14 @@ proto.gateway.web.v1.IntegrationDelivery.serializeBinaryToWriter = function(mess
10760
11127
  proto.gateway.web.v1.SlackDestination.serializeBinaryToWriter
10761
11128
  );
10762
11129
  }
11130
+ f = message.getPagerduty();
11131
+ if (f != null) {
11132
+ writer.writeMessage(
11133
+ 23,
11134
+ f,
11135
+ proto.gateway.web.v1.PagerDutyDestination.serializeBinaryToWriter
11136
+ );
11137
+ }
10763
11138
  };
10764
11139
 
10765
11140
 
@@ -11110,6 +11485,43 @@ proto.gateway.web.v1.IntegrationDelivery.prototype.hasSlack = function() {
11110
11485
  };
11111
11486
 
11112
11487
 
11488
+ /**
11489
+ * optional PagerDutyDestination pagerduty = 23;
11490
+ * @return {?proto.gateway.web.v1.PagerDutyDestination}
11491
+ */
11492
+ proto.gateway.web.v1.IntegrationDelivery.prototype.getPagerduty = function() {
11493
+ return /** @type{?proto.gateway.web.v1.PagerDutyDestination} */ (
11494
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.PagerDutyDestination, 23));
11495
+ };
11496
+
11497
+
11498
+ /**
11499
+ * @param {?proto.gateway.web.v1.PagerDutyDestination|undefined} value
11500
+ * @return {!proto.gateway.web.v1.IntegrationDelivery} returns this
11501
+ */
11502
+ proto.gateway.web.v1.IntegrationDelivery.prototype.setPagerduty = function(value) {
11503
+ return jspb.Message.setOneofWrapperField(this, 23, proto.gateway.web.v1.IntegrationDelivery.oneofGroups_[0], value);
11504
+ };
11505
+
11506
+
11507
+ /**
11508
+ * Clears the message field making it undefined.
11509
+ * @return {!proto.gateway.web.v1.IntegrationDelivery} returns this
11510
+ */
11511
+ proto.gateway.web.v1.IntegrationDelivery.prototype.clearPagerduty = function() {
11512
+ return this.setPagerduty(undefined);
11513
+ };
11514
+
11515
+
11516
+ /**
11517
+ * Returns whether this field is set.
11518
+ * @return {boolean}
11519
+ */
11520
+ proto.gateway.web.v1.IntegrationDelivery.prototype.hasPagerduty = function() {
11521
+ return jspb.Message.getField(this, 23) != null;
11522
+ };
11523
+
11524
+
11113
11525
 
11114
11526
 
11115
11527
 
@@ -11586,6 +11998,166 @@ proto.gateway.web.v1.SlackDestination.prototype.setChannelName = function(value)
11586
11998
  };
11587
11999
 
11588
12000
 
12001
+
12002
+
12003
+
12004
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12005
+ /**
12006
+ * Creates an object representation of this proto.
12007
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12008
+ * Optional fields that are not set will be set to undefined.
12009
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12010
+ * For the list of reserved names please see:
12011
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12012
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12013
+ * JSPB instance for transitional soy proto support:
12014
+ * http://goto/soy-param-migration
12015
+ * @return {!Object}
12016
+ */
12017
+ proto.gateway.web.v1.PagerDutyDestination.prototype.toObject = function(opt_includeInstance) {
12018
+ return proto.gateway.web.v1.PagerDutyDestination.toObject(opt_includeInstance, this);
12019
+ };
12020
+
12021
+
12022
+ /**
12023
+ * Static version of the {@see toObject} method.
12024
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12025
+ * the JSPB instance for transitional soy proto support:
12026
+ * http://goto/soy-param-migration
12027
+ * @param {!proto.gateway.web.v1.PagerDutyDestination} msg The msg instance to transform.
12028
+ * @return {!Object}
12029
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12030
+ */
12031
+ proto.gateway.web.v1.PagerDutyDestination.toObject = function(includeInstance, msg) {
12032
+ var f, obj = {
12033
+ serviceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
12034
+ serviceName: jspb.Message.getFieldWithDefault(msg, 2, "")
12035
+ };
12036
+
12037
+ if (includeInstance) {
12038
+ obj.$jspbMessageInstance = msg;
12039
+ }
12040
+ return obj;
12041
+ };
12042
+ }
12043
+
12044
+
12045
+ /**
12046
+ * Deserializes binary data (in protobuf wire format).
12047
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12048
+ * @return {!proto.gateway.web.v1.PagerDutyDestination}
12049
+ */
12050
+ proto.gateway.web.v1.PagerDutyDestination.deserializeBinary = function(bytes) {
12051
+ var reader = new jspb.BinaryReader(bytes);
12052
+ var msg = new proto.gateway.web.v1.PagerDutyDestination;
12053
+ return proto.gateway.web.v1.PagerDutyDestination.deserializeBinaryFromReader(msg, reader);
12054
+ };
12055
+
12056
+
12057
+ /**
12058
+ * Deserializes binary data (in protobuf wire format) from the
12059
+ * given reader into the given message object.
12060
+ * @param {!proto.gateway.web.v1.PagerDutyDestination} msg The message object to deserialize into.
12061
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12062
+ * @return {!proto.gateway.web.v1.PagerDutyDestination}
12063
+ */
12064
+ proto.gateway.web.v1.PagerDutyDestination.deserializeBinaryFromReader = function(msg, reader) {
12065
+ while (reader.nextField()) {
12066
+ if (reader.isEndGroup()) {
12067
+ break;
12068
+ }
12069
+ var field = reader.getFieldNumber();
12070
+ switch (field) {
12071
+ case 1:
12072
+ var value = /** @type {string} */ (reader.readString());
12073
+ msg.setServiceId(value);
12074
+ break;
12075
+ case 2:
12076
+ var value = /** @type {string} */ (reader.readString());
12077
+ msg.setServiceName(value);
12078
+ break;
12079
+ default:
12080
+ reader.skipField();
12081
+ break;
12082
+ }
12083
+ }
12084
+ return msg;
12085
+ };
12086
+
12087
+
12088
+ /**
12089
+ * Serializes the message to binary data (in protobuf wire format).
12090
+ * @return {!Uint8Array}
12091
+ */
12092
+ proto.gateway.web.v1.PagerDutyDestination.prototype.serializeBinary = function() {
12093
+ var writer = new jspb.BinaryWriter();
12094
+ proto.gateway.web.v1.PagerDutyDestination.serializeBinaryToWriter(this, writer);
12095
+ return writer.getResultBuffer();
12096
+ };
12097
+
12098
+
12099
+ /**
12100
+ * Serializes the given message to binary data (in protobuf wire
12101
+ * format), writing to the given BinaryWriter.
12102
+ * @param {!proto.gateway.web.v1.PagerDutyDestination} message
12103
+ * @param {!jspb.BinaryWriter} writer
12104
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12105
+ */
12106
+ proto.gateway.web.v1.PagerDutyDestination.serializeBinaryToWriter = function(message, writer) {
12107
+ var f = undefined;
12108
+ f = message.getServiceId();
12109
+ if (f.length > 0) {
12110
+ writer.writeString(
12111
+ 1,
12112
+ f
12113
+ );
12114
+ }
12115
+ f = message.getServiceName();
12116
+ if (f.length > 0) {
12117
+ writer.writeString(
12118
+ 2,
12119
+ f
12120
+ );
12121
+ }
12122
+ };
12123
+
12124
+
12125
+ /**
12126
+ * optional string service_id = 1;
12127
+ * @return {string}
12128
+ */
12129
+ proto.gateway.web.v1.PagerDutyDestination.prototype.getServiceId = function() {
12130
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
12131
+ };
12132
+
12133
+
12134
+ /**
12135
+ * @param {string} value
12136
+ * @return {!proto.gateway.web.v1.PagerDutyDestination} returns this
12137
+ */
12138
+ proto.gateway.web.v1.PagerDutyDestination.prototype.setServiceId = function(value) {
12139
+ return jspb.Message.setProto3StringField(this, 1, value);
12140
+ };
12141
+
12142
+
12143
+ /**
12144
+ * optional string service_name = 2;
12145
+ * @return {string}
12146
+ */
12147
+ proto.gateway.web.v1.PagerDutyDestination.prototype.getServiceName = function() {
12148
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
12149
+ };
12150
+
12151
+
12152
+ /**
12153
+ * @param {string} value
12154
+ * @return {!proto.gateway.web.v1.PagerDutyDestination} returns this
12155
+ */
12156
+ proto.gateway.web.v1.PagerDutyDestination.prototype.setServiceName = function(value) {
12157
+ return jspb.Message.setProto3StringField(this, 2, value);
12158
+ };
12159
+
12160
+
11589
12161
  /**
11590
12162
  * @enum {number}
11591
12163
  */
@@ -11593,7 +12165,8 @@ proto.gateway.web.v1.IntegrationType = {
11593
12165
  INTEGRATION_TYPE_UNSPECIFIED: 0,
11594
12166
  INTEGRATION_TYPE_WEBHOOK: 1,
11595
12167
  INTEGRATION_TYPE_SLACK: 2,
11596
- INTEGRATION_TYPE_EMAIL: 3
12168
+ INTEGRATION_TYPE_EMAIL: 3,
12169
+ INTEGRATION_TYPE_PAGERDUTY: 4
11597
12170
  };
11598
12171
 
11599
12172
  /**