Update killSwitch proto definitions
The protocol buffers definitions have been obtained from the TWPT server
repo.
Bug: twpowertools:162
Change-Id: Ia5cc44be28e2bc6c1054484c04c197b9b6852318
diff --git a/src/killSwitch/api_proto/README.md b/src/killSwitch/api_proto/README.md
index ea2416e..6814a69 100644
--- a/src/killSwitch/api_proto/README.md
+++ b/src/killSwitch/api_proto/README.md
@@ -1,4 +1,4 @@
`*.proto` files have been retrieved from
-https://gerrit.avm99963.com/plugins/gitiles/gomodules/twpt-server/+/63f9486f7b00b35b05115a730648164864aa37cc/api\_proto/kill\_switch.proto.
+https://gerrit.avm99963.com/plugins/gitiles/gomodules/twpt-server/+/dc5d29fd0e5af0eaa6d883eab3ea3b0920586c3b/api\_proto/kill\_switch.proto.
To generate the Javascript code, run `make grpc_proto_gen` in the project root.
diff --git a/src/killSwitch/api_proto/kill_switch_grpc_web_pb.js b/src/killSwitch/api_proto/kill_switch_grpc_web_pb.js
index d422d74..47aeb29 100644
--- a/src/killSwitch/api_proto/kill_switch_grpc_web_pb.js
+++ b/src/killSwitch/api_proto/kill_switch_grpc_web_pb.js
@@ -4,7 +4,11 @@
* @public
*/
-// GENERATED CODE -- DO NOT EDIT!
+// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
+// versions:
+// protoc-gen-grpc-web v1.4.2
+// protoc v3.21.12
+// source: api_proto/kill_switch.proto
/* eslint-disable */
@@ -42,7 +46,7 @@
/**
* @private @const {string} The hostname
*/
- this.hostname_ = hostname;
+ this.hostname_ = hostname.replace(/\/+$/, '');
};
@@ -68,7 +72,7 @@
/**
* @private @const {string} The hostname
*/
- this.hostname_ = hostname;
+ this.hostname_ = hostname.replace(/\/+$/, '');
};
diff --git a/src/killSwitch/api_proto/kill_switch_objects.proto b/src/killSwitch/api_proto/kill_switch_objects.proto
index 041291f..128371b 100644
--- a/src/killSwitch/api_proto/kill_switch_objects.proto
+++ b/src/killSwitch/api_proto/kill_switch_objects.proto
@@ -12,6 +12,7 @@
TYPE_UNKNOWN = 0;
TYPE_EXPERIMENT = 1;
TYPE_OPTION = 2;
+ TYPE_INTERNAL_KILL_SWITCH = 3;
TYPE_DEPRECATED = 10;
}
Type type = 3;
diff --git a/src/killSwitch/api_proto/kill_switch_objects_pb.js b/src/killSwitch/api_proto/kill_switch_objects_pb.js
index 427daa5..234fddf 100644
--- a/src/killSwitch/api_proto/kill_switch_objects_pb.js
+++ b/src/killSwitch/api_proto/kill_switch_objects_pb.js
@@ -407,6 +407,7 @@
TYPE_UNKNOWN: 0,
TYPE_EXPERIMENT: 1,
TYPE_OPTION: 2,
+ TYPE_INTERNAL_KILL_SWITCH: 3,
TYPE_DEPRECATED: 10
};
diff --git a/src/workflows/proto/main_pb.js b/src/workflows/proto/main_pb.js
index 25f18ef..961a61c 100644
--- a/src/workflows/proto/main_pb.js
+++ b/src/workflows/proto/main_pb.js
@@ -1223,7 +1223,8 @@
*/
proto.workflows.Action.MoveAction.prototype.clearPropertyMap = function() {
this.getPropertyMap().clear();
- return this;};
+ return this;
+};