Add WithNonactiveKillSwitches field to GetKillSwitchOverviewRequest
This will be used by the extension to only get active kill switches.
Change-Id: Ibe7ad4cdb74ab7b385f3d18b70e74da6b834375c
diff --git a/frontend/src/api_proto/kill_switch_pb.js b/frontend/src/api_proto/kill_switch_pb.js
index d9f9b6b..010eaef 100644
--- a/frontend/src/api_proto/kill_switch_pb.js
+++ b/frontend/src/api_proto/kill_switch_pb.js
@@ -802,7 +802,7 @@
*/
proto.GetKillSwitchOverviewRequest.toObject = function(includeInstance, msg) {
var f, obj = {
-
+ withNonactiveKillSwitches: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
};
if (includeInstance) {
@@ -839,6 +839,10 @@
}
var field = reader.getFieldNumber();
switch (field) {
+ case 1:
+ var value = /** @type {boolean} */ (reader.readBool());
+ msg.setWithNonactiveKillSwitches(value);
+ break;
default:
reader.skipField();
break;
@@ -868,6 +872,31 @@
*/
proto.GetKillSwitchOverviewRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
+ f = message.getWithNonactiveKillSwitches();
+ if (f) {
+ writer.writeBool(
+ 1,
+ f
+ );
+ }
+};
+
+
+/**
+ * optional bool with_nonactive_kill_switches = 1;
+ * @return {boolean}
+ */
+proto.GetKillSwitchOverviewRequest.prototype.getWithNonactiveKillSwitches = function() {
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
+};
+
+
+/**
+ * @param {boolean} value
+ * @return {!proto.GetKillSwitchOverviewRequest} returns this
+ */
+proto.GetKillSwitchOverviewRequest.prototype.setWithNonactiveKillSwitches = function(value) {
+ return jspb.Message.setProto3BooleanField(this, 1, value);
};