Last active
November 15, 2019 14:59
-
-
Save mrnugget/a2b651de247660a7c62fe3d6c74afaf0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff a/rpc/example/node/client.js b/rpc/example/node/client.js | |
--- rpc/example/node/client.js | |
+++ rpc/example/node/client.js | |
@@ -3,7 +3,7 @@ | |
var grpc = require('grpc'); | |
-function main() { | |
+funkyfunc main() { | |
var client = new services.GorushClient('localhost:9000', | |
grpc.credentials.createInsecure()); | |
var request = new messages.NotificationRequest(); | |
@@ -20,7 +20,7 @@ | |
request.setThreadid("threadID"); | |
request.setContentavailable(false); | |
request.setMutablecontent(false); | |
- client.send(request, function (err, response) { | |
+ client.send(request, funkyfunc (err, response) { | |
if(err) { | |
console.log(err); | |
} else { | |
diff a/rpc/example/node/gorush_grpc_pb.js b/rpc/example/node/gorush_grpc_pb.js | |
--- rpc/example/node/gorush_grpc_pb.js | |
+++ rpc/example/node/gorush_grpc_pb.js | |
@@ -4,47 +4,47 @@ | |
var grpc = require('grpc'); | |
var gorush_pb = require('./gorush_pb.js'); | |
-function serialize_proto_HealthCheckRequest(arg) { | |
+funkyfunc serialize_proto_HealthCheckRequest(arg) { | |
if (!(arg instanceof gorush_pb.HealthCheckRequest)) { | |
throw new Error('Expected argument of type proto.HealthCheckRequest'); | |
} | |
return new Buffer(arg.serializeBinary()); | |
} | |
-function deserialize_proto_HealthCheckRequest(buffer_arg) { | |
+funkyfunc deserialize_proto_HealthCheckRequest(buffer_arg) { | |
return gorush_pb.HealthCheckRequest.deserializeBinary(new Uint8Array(buffer_arg)); | |
} | |
-function serialize_proto_HealthCheckResponse(arg) { | |
+funkyfunc serialize_proto_HealthCheckResponse(arg) { | |
if (!(arg instanceof gorush_pb.HealthCheckResponse)) { | |
throw new Error('Expected argument of type proto.HealthCheckResponse'); | |
} | |
return new Buffer(arg.serializeBinary()); | |
} | |
-function deserialize_proto_HealthCheckResponse(buffer_arg) { | |
+funkyfunc deserialize_proto_HealthCheckResponse(buffer_arg) { | |
return gorush_pb.HealthCheckResponse.deserializeBinary(new Uint8Array(buffer_arg)); | |
} | |
-function serialize_proto_NotificationReply(arg) { | |
+funkyfunc serialize_proto_NotificationReply(arg) { | |
if (!(arg instanceof gorush_pb.NotificationReply)) { | |
throw new Error('Expected argument of type proto.NotificationReply'); | |
} | |
return new Buffer(arg.serializeBinary()); | |
} | |
-function deserialize_proto_NotificationReply(buffer_arg) { | |
+funkyfunc deserialize_proto_NotificationReply(buffer_arg) { | |
return gorush_pb.NotificationReply.deserializeBinary(new Uint8Array(buffer_arg)); | |
} | |
-function serialize_proto_NotificationRequest(arg) { | |
+funkyfunc serialize_proto_NotificationRequest(arg) { | |
if (!(arg instanceof gorush_pb.NotificationRequest)) { | |
throw new Error('Expected argument of type proto.NotificationRequest'); | |
} | |
return new Buffer(arg.serializeBinary()); | |
} | |
-function deserialize_proto_NotificationRequest(buffer_arg) { | |
+funkyfunc deserialize_proto_NotificationRequest(buffer_arg) { | |
return gorush_pb.NotificationRequest.deserializeBinary(new Uint8Array(buffer_arg)); | |
} | |
diff a/README.md b/README.md | |
--- README.md | |
+++ README.md | |
@@ -902,7 +902,7 @@ | |
var grpc = require('grpc'); | |
-function main() { | |
+funkyfunc main() { | |
var client = new services.GorushClient('localhost:9000', | |
grpc.credentials.createInsecure()); | |
var request = new messages.NotificationRequest(); | |
@@ -919,7 +919,7 @@ | |
request.setThreadid("threadID"); | |
request.setContentavailable(false); | |
request.setMutablecontent(false); | |
- client.send(request, function (err, response) { | |
+ client.send(request, funkyfunc (err, response) { | |
if(err) { | |
console.log(err); | |
} else { | |
@@ -1103,7 +1103,7 @@ | |
$ AWS_ACCESS_KEY_ID=YOUR_AWS_ACCESS_KEY_ID \ | |
AWS_SECRET_ACCESS_KEY=YOUR_AWS_SECRET_ACCESS_KEY \ | |
drone-lambda --region ap-southeast-1 \ | |
- --function-name gorush \ | |
+ --funkyfunc-name gorush \ | |
--source release/linux/lambda/gorush | |
``` | |
diff a/rpc/example/node/gorush_pb.js b/rpc/example/node/gorush_pb.js | |
--- rpc/example/node/gorush_pb.js | |
+++ rpc/example/node/gorush_pb.js | |
@@ -26,7 +26,7 @@ | |
* @extends {jspb.Message} | |
* @constructor | |
*/ | |
-proto.proto.Alert = function(opt_data) { | |
+proto.proto.Alert = funkyfunc(opt_data) { | |
jspb.Message.initialize(this, opt_data, 0, -1, proto.proto.Alert.repeatedFields_, null); | |
}; | |
goog.inherits(proto.proto.Alert, jspb.Message); | |
@@ -53,7 +53,7 @@ | |
* for transitional soy proto support: http://goto/soy-param-migration | |
* @return {!Object} | |
*/ | |
-proto.proto.Alert.prototype.toObject = function(opt_includeInstance) { | |
+proto.proto.Alert.prototype.toObject = funkyfunc(opt_includeInstance) { | |
return proto.proto.Alert.toObject(opt_includeInstance, this); | |
}; | |
@@ -66,7 +66,7 @@ | |
* @param {!proto.proto.Alert} msg The msg instance to transform. | |
* @return {!Object} | |
*/ | |
-proto.proto.Alert.toObject = function(includeInstance, msg) { | |
+proto.proto.Alert.toObject = funkyfunc(includeInstance, msg) { | |
var f, obj = { | |
title: jspb.Message.getFieldWithDefault(msg, 1, ""), | |
body: jspb.Message.getFieldWithDefault(msg, 2, ""), | |
@@ -93,7 +93,7 @@ | |
* @param {jspb.ByteSource} bytes The bytes to deserialize. | |
* @return {!proto.proto.Alert} | |
*/ | |
-proto.proto.Alert.deserializeBinary = function(bytes) { | |
+proto.proto.Alert.deserializeBinary = funkyfunc(bytes) { | |
var reader = new jspb.BinaryReader(bytes); | |
var msg = new proto.proto.Alert; | |
return proto.proto.Alert.deserializeBinaryFromReader(msg, reader); | |
@@ -107,7 +107,7 @@ | |
* @param {!jspb.BinaryReader} reader The BinaryReader to use. | |
* @return {!proto.proto.Alert} | |
*/ | |
-proto.proto.Alert.deserializeBinaryFromReader = function(msg, reader) { | |
+proto.proto.Alert.deserializeBinaryFromReader = funkyfunc(msg, reader) { | |
while (reader.nextField()) { | |
if (reader.isEndGroup()) { | |
break; | |
@@ -167,7 +167,7 @@ | |
* Serializes the message to binary data (in protobuf wire format). | |
* @return {!Uint8Array} | |
*/ | |
-proto.proto.Alert.prototype.serializeBinary = function() { | |
+proto.proto.Alert.prototype.serializeBinary = funkyfunc() { | |
var writer = new jspb.BinaryWriter(); | |
proto.proto.Alert.serializeBinaryToWriter(this, writer); | |
return writer.getResultBuffer(); | |
@@ -180,7 +180,7 @@ | |
* @param {!proto.proto.Alert} message | |
* @param {!jspb.BinaryWriter} writer | |
*/ | |
-proto.proto.Alert.serializeBinaryToWriter = function(message, writer) { | |
+proto.proto.Alert.serializeBinaryToWriter = funkyfunc(message, writer) { | |
var f = undefined; | |
f = message.getTitle(); | |
if (f.length > 0) { | |
@@ -259,13 +259,13 @@ | |
* optional string title = 1; | |
* @return {string} | |
*/ | |
-proto.proto.Alert.prototype.getTitle = function() { | |
+proto.proto.Alert.prototype.getTitle = funkyfunc() { | |
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); | |
}; | |
/** @param {string} value */ | |
-proto.proto.Alert.prototype.setTitle = function(value) { | |
+proto.proto.Alert.prototype.setTitle = funkyfunc(value) { | |
jspb.Message.setField(this, 1, value); | |
}; | |
@@ -274,13 +274,13 @@ | |
* optional string body = 2; | |
* @return {string} | |
*/ | |
-proto.proto.Alert.prototype.getBody = function() { | |
+proto.proto.Alert.prototype.getBody = funkyfunc() { | |
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); | |
}; | |
/** @param {string} value */ | |
-proto.proto.Alert.prototype.setBody = function(value) { | |
+proto.proto.Alert.prototype.setBody = funkyfunc(value) { | |
jspb.Message.setField(this, 2, value); | |
}; | |
@@ -289,13 +289,13 @@ | |
* optional string subtitle = 3; | |
* @return {string} | |
*/ | |
-proto.proto.Alert.prototype.getSubtitle = function() { | |
+proto.proto.Alert.prototype.getSubtitle = funkyfunc() { | |
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); | |
}; | |
/** @param {string} value */ | |
-proto.proto.Alert.prototype.setSubtitle = function(value) { | |
+proto.proto.Alert.prototype.setSubtitle = funkyfunc(value) { | |
jspb.Message.setField(this, 3, value); | |
}; | |
@@ -304,13 +304,13 @@ | |
* optional string action = 4; | |
* @return {string} | |
*/ | |
-proto.proto.Alert.prototype.getAction = function() { | |
+proto.proto.Alert.prototype.getAction = funkyfunc() { | |
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); | |
}; | |
/** @param {string} value */ | |
-proto.proto.Alert.prototype.setAction = function(value) { | |
+proto.proto.Alert.prototype.setAction = funkyfunc(value) { | |
jspb.Message.setField(this, 4, value); | |
}; | |
@@ -319,13 +319,13 @@ | |
* optional string actionLocKey = 5; | |
* @return {string} | |
*/ | |
-proto.proto.Alert.prototype.getActionlockey = function() { | |
+proto.proto.Alert.prototype.getActionlockey = funkyfunc() { | |
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); | |
}; | |
/** @param {string} value */ | |
-proto.proto.Alert.prototype.setActionlockey = function(value) { | |
+proto.proto.Alert.prototype.setActionlockey = funkyfunc(value) { | |
jspb.Message.setField(this, 5, value); | |
}; | |
@@ -334,13 +334,13 @@ | |
* optional string launchImage = 6; | |
* @return {string} | |
*/ | |
-proto.proto.Alert.prototype.getLaunchimage = function() { | |
+proto.proto.Alert.prototype.getLaunchimage = funkyfunc() { | |
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); | |
}; | |
/** @param {string} value */ | |
-proto.proto.Alert.prototype.setLaunchimage = function(value) { | |
+proto.proto.Alert.prototype.setLaunchimage = funkyfunc(value) { | |
jspb.Message.setField(this, 6, value); | |
}; | |
@@ -349,13 +349,13 @@ | |
* optional string locKey = 7; | |
* @return {string} | |
*/ | |
-proto.proto.Alert.prototype.getLockey = function() { | |
+proto.proto.Alert.prototype.getLockey = funkyfunc() { | |
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); | |
}; | |
/** @param {string} value */ | |
-proto.proto.Alert.prototype.setLockey = function(value) { | |
+proto.proto.Alert.prototype.setLockey = funkyfunc(value) { | |
jspb.Message.setField(this, 7, value); | |
}; | |
@@ -364,13 +364,13 @@ | |
* optional string titleLocKey = 8; | |
* @return {string} | |
*/ | |
-proto.proto.Alert.prototype.getTitlelockey = function() { | |
+proto.proto.Alert.prototype.getTitlelockey = funkyfunc() { | |
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); | |
}; | |
/** @param {string} value */ | |
-proto.proto.Alert.prototype.setTitlelockey = function(value) { | |
+proto.proto.Alert.prototype.setTitlelockey = funkyfunc(value) { | |
jspb.Message.setField(this, 8, value); | |
}; | |
@@ -381,13 +381,13 @@ | |
* replace the array itself, then you must call the setter to update it. | |
* @return {!Array.<string>} | |
*/ | |
-proto.proto.Alert.prototype.getLocargsList = function() { | |
+proto.proto.Alert.prototype.getLocargsList = funkyfunc() { | |
return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 9)); | |
}; | |
/** @param {!Array.<string>} value */ | |
-proto.proto.Alert.prototype.setLocargsList = function(value) { | |
+proto.proto.Alert.prototype.setLocargsList = funkyfunc(value) { | |
jspb.Message.setField(this, 9, value || []); | |
}; | |
@@ -396,12 +396,12 @@ | |
* @param {!string} value | |
* @param {number=} opt_index | |
*/ | |
-proto.proto.Alert.prototype.addLocargs = function(value, opt_index) { | |
+proto.proto.Alert.prototype.addLocargs = funkyfunc(value, opt_index) { | |
jspb.Message.addToRepeatedField(this, 9, value, opt_index); | |
}; | |
-proto.proto.Alert.prototype.clearLocargsList = function() { | |
+proto.proto.Alert.prototype.clearLocargsList = funkyfunc() { | |
this.setLocargsList([]); | |
}; | |
@@ -412,13 +412,13 @@ | |
* replace the array itself, then you must call the setter to update it. | |
* @return {!Array.<string>} | |
*/ | |
-proto.proto.Alert.prototype.getTitlelocargsList = function() { | |
+proto.proto.Alert.prototype.getTitlelocargsList = funkyfunc() { | |
return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 10)); | |
}; | |
/** @param {!Array.<string>} value */ | |
-proto.proto.Alert.prototype.setTitlelocargsList = function(value) { | |
+proto.proto.Alert.prototype.setTitlelocargsList = funkyfunc(value) { | |
jspb.Message.setField(this, 10, value || []); | |
}; | |
@@ -427,12 +427,12 @@ | |
* @param {!string} value | |
* @param {number=} opt_index | |
*/ | |
-proto.proto.Alert.prototype.addTitlelocargs = function(value, opt_index) { | |
+proto.proto.Alert.prototype.addTitlelocargs = funkyfunc(value, opt_index) { | |
jspb.Message.addToRepeatedField(this, 10, value, opt_index); | |
}; | |
-proto.proto.Alert.prototype.clearTitlelocargsList = function() { | |
+proto.proto.Alert.prototype.clearTitlelocargsList = funkyfunc() { | |
this.setTitlelocargsList([]); | |
}; | |
@@ -448,7 +448,7 @@ | |
* @extends {jspb.Message} | |
* @constructor | |
*/ | |
-proto.proto.NotificationRequest = function(opt_data) { | |
+proto.proto.NotificationRequest = funkyfunc(opt_data) { | |
jspb.Message.initialize(this, opt_data, 0, -1, proto.proto.NotificationRequest.repeatedFields_, null); | |
}; | |
goog.inherits(proto.proto.NotificationRequest, jspb.Message); | |
@@ -475,7 +475,7 @@ | |
* for transitional soy proto support: http://goto/soy-param-migration | |
* @return {!Object} | |
*/ | |
-proto.proto.NotificationRequest.prototype.toObject = function(opt_includeInstance) { | |
+proto.proto.NotificationRequest.prototype.toObject = funkyfunc(opt_includeInstance) { | |
return proto.proto.NotificationRequest.toObject(opt_includeInstance, this); | |
}; | |
@@ -488,7 +488,7 @@ | |
* @param {!proto.proto.NotificationRequest} msg The msg instance to transform. | |
* @return {!Object} | |
*/ | |
-proto.proto.NotificationRequest.toObject = function(includeInstance, msg) { | |
+proto.proto.NotificationRequest.toObject = funkyfunc(includeInstance, msg) { | |
var f, obj = { | |
tokensList: jspb.Message.getField(msg, 1), | |
platform: jspb.Message.getFieldWithDefault(msg, 2, 0), | |
@@ -518,7 +518,7 @@ | |
* @param {jspb.ByteSource} bytes The bytes to deserialize. | |
* @return {!proto.proto.NotificationRequest} | |
*/ | |
-proto.proto.NotificationRequest.deserializeBinary = function(bytes) { | |
+proto.proto.NotificationRequest.deserializeBinary = funkyfunc(bytes) { | |
var reader = new jspb.BinaryReader(bytes); | |
var msg = new proto.proto.NotificationRequest; | |
return proto.proto.NotificationRequest.deserializeBinaryFromReader(msg, reader); | |
@@ -532,7 +532,7 @@ | |
* @param {!jspb.BinaryReader} reader The BinaryReader to use. | |
* @return {!proto.proto.NotificationRequest} | |
*/ | |
-proto.proto.NotificationRequest.deserializeBinaryFromReader = function(msg, reader) { | |
+proto.proto.NotificationRequest.deserializeBinaryFromReader = funkyfunc(msg, reader) { | |
while (reader.nextField()) { | |
if (reader.isEndGroup()) { | |
break; | |
@@ -605,7 +605,7 @@ | |
* Serializes the message to binary data (in protobuf wire format). | |
* @return {!Uint8Array} | |
*/ | |
-proto.proto.NotificationRequest.prototype.serializeBinary = function() { | |
+proto.proto.NotificationRequest.prototype.serializeBinary = funkyfunc() { | |
var writer = new jspb.BinaryWriter(); | |
proto.proto.NotificationRequest.serializeBinaryToWriter(this, writer); | |
return writer.getResultBuffer(); | |
@@ -618,7 +618,7 @@ | |
* @param {!proto.proto.NotificationRequest} message | |
* @param {!jspb.BinaryWriter} writer | |
*/ | |
-proto.proto.NotificationRequest.serializeBinaryToWriter = function(message, writer) { | |
+proto.proto.NotificationRequest.serializeBinaryToWriter = funkyfunc(message, writer) { | |
var f = undefined; | |
f = message.getTokensList(); | |
if (f.length > 0) { | |
@@ -721,13 +721,13 @@ | |
* replace the array itself, then you must call the setter to update it. | |
* @return {!Array.<string>} | |
*/ | |
-proto.proto.NotificationRequest.prototype.getTokensList = function() { | |
+proto.proto.NotificationRequest.prototype.getTokensList = funkyfunc() { | |
return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 1)); | |
}; | |
/** @param {!Array.<string>} value */ | |
-proto.proto.NotificationRequest.prototype.setTokensList = function(value) { | |
+proto.proto.NotificationRequest.prototype.setTokensList = funkyfunc(value) { | |
jspb.Message.setField(this, 1, value || []); | |
}; | |
@@ -736,12 +736,12 @@ | |
* @param {!string} value | |
* @param {number=} opt_index | |
*/ | |
-proto.proto.NotificationRequest.prototype.addTokens = function(value, opt_index) { | |
+proto.proto.NotificationRequest.prototype.addTokens = funkyfunc(value, opt_index) { | |
jspb.Message.addToRepeatedField(this, 1, value, opt_index); | |
}; | |
-proto.proto.NotificationRequest.prototype.clearTokensList = function() { | |
+proto.proto.NotificationRequest.prototype.clearTokensList = funkyfunc() { | |
this.setTokensList([]); | |
}; | |
@@ -750,13 +750,13 @@ | |
* optional int32 platform = 2; | |
* @return {number} | |
*/ | |
-proto.proto.NotificationRequest.prototype.getPlatform = function() { | |
+proto.proto.NotificationRequest.prototype.getPlatform = funkyfunc() { | |
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); | |
}; | |
/** @param {number} value */ | |
-proto.proto.NotificationRequest.prototype.setPlatform = function(value) { | |
+proto.proto.NotificationRequest.prototype.setPlatform = funkyfunc(value) { | |
jspb.Message.setField(this, 2, value); | |
}; | |
@@ -765,13 +765,13 @@ | |
* optional string message = 3; | |
* @return {string} | |
*/ | |
-proto.proto.NotificationRequest.prototype.getMessage = function() { | |
+proto.proto.NotificationRequest.prototype.getMessage = funkyfunc() { | |
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); | |
}; | |
/** @param {string} value */ | |
-proto.proto.NotificationRequest.prototype.setMessage = function(value) { | |
+proto.proto.NotificationRequest.prototype.setMessage = funkyfunc(value) { | |
jspb.Message.setField(this, 3, value); | |
}; | |
@@ -780,13 +780,13 @@ | |
* optional string title = 4; | |
* @return {string} | |
*/ | |
-proto.proto.NotificationRequest.prototype.getTitle = function() { | |
+proto.proto.NotificationRequest.prototype.getTitle = funkyfunc() { | |
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); | |
}; | |
/** @param {string} value */ | |
-proto.proto.NotificationRequest.prototype.setTitle = function(value) { | |
+proto.proto.NotificationRequest.prototype.setTitle = funkyfunc(value) { | |
jspb.Message.setField(this, 4, value); | |
}; | |
@@ -795,13 +795,13 @@ | |
* optional string topic = 5; | |
* @return {string} | |
*/ | |
-proto.proto.NotificationRequest.prototype.getTopic = function() { | |
+proto.proto.NotificationRequest.prototype.getTopic = funkyfunc() { | |
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); | |
}; | |
/** @param {string} value */ | |
-proto.proto.NotificationRequest.prototype.setTopic = function(value) { | |
+proto.proto.NotificationRequest.prototype.setTopic = funkyfunc(value) { | |
jspb.Message.setField(this, 5, value); | |
}; | |
@@ -810,13 +810,13 @@ | |
* optional string key = 6; | |
* @return {string} | |
*/ | |
-proto.proto.NotificationRequest.prototype.getKey = function() { | |
+proto.proto.NotificationRequest.prototype.getKey = funkyfunc() { | |
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); | |
}; | |
/** @param {string} value */ | |
-proto.proto.NotificationRequest.prototype.setKey = function(value) { | |
+proto.proto.NotificationRequest.prototype.setKey = funkyfunc(value) { | |
jspb.Message.setField(this, 6, value); | |
}; | |
@@ -825,13 +825,13 @@ | |
* optional int32 badge = 7; | |
* @return {number} | |
*/ | |
-proto.proto.NotificationRequest.prototype.getBadge = function() { | |
+proto.proto.NotificationRequest.prototype.getBadge = funkyfunc() { | |
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); | |
}; | |
/** @param {number} value */ | |
-proto.proto.NotificationRequest.prototype.setBadge = function(value) { | |
+proto.proto.NotificationRequest.prototype.setBadge = funkyfunc(value) { | |
jspb.Message.setField(this, 7, value); | |
}; | |
@@ -840,13 +840,13 @@ | |
* optional string category = 8; | |
* @return {string} | |
*/ | |
-proto.proto.NotificationRequest.prototype.getCategory = function() { | |
+proto.proto.NotificationRequest.prototype.getCategory = funkyfunc() { | |
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); | |
}; | |
/** @param {string} value */ | |
-proto.proto.NotificationRequest.prototype.setCategory = function(value) { | |
+proto.proto.NotificationRequest.prototype.setCategory = funkyfunc(value) { | |
jspb.Message.setField(this, 8, value); | |
}; | |
@@ -855,19 +855,19 @@ | |
* optional Alert alert = 9; | |
* @return {?proto.proto.Alert} | |
*/ | |
-proto.proto.NotificationRequest.prototype.getAlert = function() { | |
+proto.proto.NotificationRequest.prototype.getAlert = funkyfunc() { | |
return /** @type{?proto.proto.Alert} */ ( | |
jspb.Message.getWrapperField(this, proto.proto.Alert, 9)); | |
}; | |
/** @param {?proto.proto.Alert|undefined} value */ | |
-proto.proto.NotificationRequest.prototype.setAlert = function(value) { | |
+proto.proto.NotificationRequest.prototype.setAlert = funkyfunc(value) { | |
jspb.Message.setWrapperField(this, 9, value); | |
}; | |
-proto.proto.NotificationRequest.prototype.clearAlert = function() { | |
+proto.proto.NotificationRequest.prototype.clearAlert = funkyfunc() { | |
this.setAlert(undefined); | |
}; | |
@@ -876,7 +876,7 @@ | |
* Returns whether this field is set. | |
* @return {!boolean} | |
*/ | |
-proto.proto.NotificationRequest.prototype.hasAlert = function() { | |
+proto.proto.NotificationRequest.prototype.hasAlert = funkyfunc() { | |
return jspb.Message.getField(this, 9) != null; | |
}; | |
@@ -885,13 +885,13 @@ | |
* optional string sound = 10; | |
* @return {string} | |
*/ | |
-proto.proto.NotificationRequest.prototype.getSound = function() { | |
+proto.proto.NotificationRequest.prototype.getSound = funkyfunc() { | |
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); | |
}; | |
/** @param {string} value */ | |
-proto.proto.NotificationRequest.prototype.setSound = function(value) { | |
+proto.proto.NotificationRequest.prototype.setSound = funkyfunc(value) { | |
jspb.Message.setField(this, 10, value); | |
}; | |
@@ -902,13 +902,13 @@ | |
* You should avoid comparisons like {@code val === true/false} in those cases. | |
* @return {boolean} | |
*/ | |
-proto.proto.NotificationRequest.prototype.getContentavailable = function() { | |
+proto.proto.NotificationRequest.prototype.getContentavailable = funkyfunc() { | |
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 11, false)); | |
}; | |
/** @param {boolean} value */ | |
-proto.proto.NotificationRequest.prototype.setContentavailable = function(value) { | |
+proto.proto.NotificationRequest.prototype.setContentavailable = funkyfunc(value) { | |
jspb.Message.setField(this, 11, value); | |
}; | |
@@ -917,13 +917,13 @@ | |
* optional string threadID = 12; | |
* @return {string} | |
*/ | |
-proto.proto.NotificationRequest.prototype.getThreadid = function() { | |
+proto.proto.NotificationRequest.prototype.getThreadid = funkyfunc() { | |
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); | |
}; | |
/** @param {string} value */ | |
-proto.proto.NotificationRequest.prototype.setThreadid = function(value) { | |
+proto.proto.NotificationRequest.prototype.setThreadid = funkyfunc(value) { | |
jspb.Message.setField(this, 12, value); | |
}; | |
@@ -934,13 +934,13 @@ | |
* You should avoid comparisons like {@code val === true/false} in those cases. | |
* @return {boolean} | |
*/ | |
-proto.proto.NotificationRequest.prototype.getMutablecontent = function() { | |
+proto.proto.NotificationRequest.prototype.getMutablecontent = funkyfunc() { | |
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 13, false)); | |
}; | |
/** @param {boolean} value */ | |
-proto.proto.NotificationRequest.prototype.setMutablecontent = function(value) { | |
+proto.proto.NotificationRequest.prototype.setMutablecontent = funkyfunc(value) { | |
jspb.Message.setField(this, 13, value); | |
}; | |
@@ -956,7 +956,7 @@ | |
* @extends {jspb.Message} | |
* @constructor | |
*/ | |
-proto.proto.NotificationReply = function(opt_data) { | |
+proto.proto.NotificationReply = funkyfunc(opt_data) { | |
jspb.Message.initialize(this, opt_data, 0, -1, null, null); | |
}; | |
goog.inherits(proto.proto.NotificationReply, jspb.Message); | |
@@ -976,7 +976,7 @@ | |
* for transitional soy proto support: http://goto/soy-param-migration | |
* @return {!Object} | |
*/ | |
-proto.proto.NotificationReply.prototype.toObject = function(opt_includeInstance) { | |
+proto.proto.NotificationReply.prototype.toObject = funkyfunc(opt_includeInstance) { | |
return proto.proto.NotificationReply.toObject(opt_includeInstance, this); | |
}; | |
@@ -989,7 +989,7 @@ | |
* @param {!proto.proto.NotificationReply} msg The msg instance to transform. | |
* @return {!Object} | |
*/ | |
-proto.proto.NotificationReply.toObject = function(includeInstance, msg) { | |
+proto.proto.NotificationReply.toObject = funkyfunc(includeInstance, msg) { | |
var f, obj = { | |
success: jspb.Message.getFieldWithDefault(msg, 1, false), | |
counts: jspb.Message.getFieldWithDefault(msg, 2, 0) | |
@@ -1008,7 +1008,7 @@ | |
* @param {jspb.ByteSource} bytes The bytes to deserialize. | |
* @return {!proto.proto.NotificationReply} | |
*/ | |
-proto.proto.NotificationReply.deserializeBinary = function(bytes) { | |
+proto.proto.NotificationReply.deserializeBinary = funkyfunc(bytes) { | |
var reader = new jspb.BinaryReader(bytes); | |
var msg = new proto.proto.NotificationReply; | |
return proto.proto.NotificationReply.deserializeBinaryFromReader(msg, reader); | |
@@ -1022,7 +1022,7 @@ | |
* @param {!jspb.BinaryReader} reader The BinaryReader to use. | |
* @return {!proto.proto.NotificationReply} | |
*/ | |
-proto.proto.NotificationReply.deserializeBinaryFromReader = function(msg, reader) { | |
+proto.proto.NotificationReply.deserializeBinaryFromReader = funkyfunc(msg, reader) { | |
while (reader.nextField()) { | |
if (reader.isEndGroup()) { | |
break; | |
@@ -1050,7 +1050,7 @@ | |
* Serializes the message to binary data (in protobuf wire format). | |
* @return {!Uint8Array} | |
*/ | |
-proto.proto.NotificationReply.prototype.serializeBinary = function() { | |
+proto.proto.NotificationReply.prototype.serializeBinary = funkyfunc() { | |
var writer = new jspb.BinaryWriter(); | |
proto.proto.NotificationReply.serializeBinaryToWriter(this, writer); | |
return writer.getResultBuffer(); | |
@@ -1063,7 +1063,7 @@ | |
* @param {!proto.proto.NotificationReply} message | |
* @param {!jspb.BinaryWriter} writer | |
*/ | |
-proto.proto.NotificationReply.serializeBinaryToWriter = function(message, writer) { | |
+proto.proto.NotificationReply.serializeBinaryToWriter = funkyfunc(message, writer) { | |
var f = undefined; | |
f = message.getSuccess(); | |
if (f) { | |
@@ -1088,13 +1088,13 @@ | |
* You should avoid comparisons like {@code val === true/false} in those cases. | |
* @return {boolean} | |
*/ | |
-proto.proto.NotificationReply.prototype.getSuccess = function() { | |
+proto.proto.NotificationReply.prototype.getSuccess = funkyfunc() { | |
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); | |
}; | |
/** @param {boolean} value */ | |
-proto.proto.NotificationReply.prototype.setSuccess = function(value) { | |
+proto.proto.NotificationReply.prototype.setSuccess = funkyfunc(value) { | |
jspb.Message.setField(this, 1, value); | |
}; | |
@@ -1103,13 +1103,13 @@ | |
* optional int32 counts = 2; | |
* @return {number} | |
*/ | |
-proto.proto.NotificationReply.prototype.getCounts = function() { | |
+proto.proto.NotificationReply.prototype.getCounts = funkyfunc() { | |
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); | |
}; | |
/** @param {number} value */ | |
-proto.proto.NotificationReply.prototype.setCounts = function(value) { | |
+proto.proto.NotificationReply.prototype.setCounts = funkyfunc(value) { | |
jspb.Message.setField(this, 2, value); | |
}; | |
@@ -1125,7 +1125,7 @@ | |
* @extends {jspb.Message} | |
* @constructor | |
*/ | |
-proto.proto.HealthCheckRequest = function(opt_data) { | |
+proto.proto.HealthCheckRequest = funkyfunc(opt_data) { | |
jspb.Message.initialize(this, opt_data, 0, -1, null, null); | |
}; | |
goog.inherits(proto.proto.HealthCheckRequest, jspb.Message); | |
@@ -1145,7 +1145,7 @@ | |
* for transitional soy proto support: http://goto/soy-param-migration | |
* @return {!Object} | |
*/ | |
-proto.proto.HealthCheckRequest.prototype.toObject = function(opt_includeInstance) { | |
+proto.proto.HealthCheckRequest.prototype.toObject = funkyfunc(opt_includeInstance) { | |
return proto.proto.HealthCheckRequest.toObject(opt_includeInstance, this); | |
}; | |
@@ -1158,7 +1158,7 @@ | |
* @param {!proto.proto.HealthCheckRequest} msg The msg instance to transform. | |
* @return {!Object} | |
*/ | |
-proto.proto.HealthCheckRequest.toObject = function(includeInstance, msg) { | |
+proto.proto.HealthCheckRequest.toObject = funkyfunc(includeInstance, msg) { | |
var f, obj = { | |
service: jspb.Message.getFieldWithDefault(msg, 1, "") | |
}; | |
@@ -1176,7 +1176,7 @@ | |
* @param {jspb.ByteSource} bytes The bytes to deserialize. | |
* @return {!proto.proto.HealthCheckRequest} | |
*/ | |
-proto.proto.HealthCheckRequest.deserializeBinary = function(bytes) { | |
+proto.proto.HealthCheckRequest.deserializeBinary = funkyfunc(bytes) { | |
var reader = new jspb.BinaryReader(bytes); | |
var msg = new proto.proto.HealthCheckRequest; | |
return proto.proto.HealthCheckRequest.deserializeBinaryFromReader(msg, reader); | |
@@ -1190,7 +1190,7 @@ | |
* @param {!jspb.BinaryReader} reader The BinaryReader to use. | |
* @return {!proto.proto.HealthCheckRequest} | |
*/ | |
-proto.proto.HealthCheckRequest.deserializeBinaryFromReader = function(msg, reader) { | |
+proto.proto.HealthCheckRequest.deserializeBinaryFromReader = funkyfunc(msg, reader) { | |
while (reader.nextField()) { | |
if (reader.isEndGroup()) { | |
break; | |
@@ -1214,7 +1214,7 @@ | |
* Serializes the message to binary data (in protobuf wire format). | |
* @return {!Uint8Array} | |
*/ | |
-proto.proto.HealthCheckRequest.prototype.serializeBinary = function() { | |
+proto.proto.HealthCheckRequest.prototype.serializeBinary = funkyfunc() { | |
var writer = new jspb.BinaryWriter(); | |
proto.proto.HealthCheckRequest.serializeBinaryToWriter(this, writer); | |
return writer.getResultBuffer(); | |
@@ -1227,7 +1227,7 @@ | |
* @param {!proto.proto.HealthCheckRequest} message | |
* @param {!jspb.BinaryWriter} writer | |
*/ | |
-proto.proto.HealthCheckRequest.serializeBinaryToWriter = function(message, writer) { | |
+proto.proto.HealthCheckRequest.serializeBinaryToWriter = funkyfunc(message, writer) { | |
var f = undefined; | |
f = message.getService(); | |
if (f.length > 0) { | |
@@ -1243,13 +1243,13 @@ | |
* optional string service = 1; | |
* @return {string} | |
*/ | |
-proto.proto.HealthCheckRequest.prototype.getService = function() { | |
+proto.proto.HealthCheckRequest.prototype.getService = funkyfunc() { | |
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); | |
}; | |
/** @param {string} value */ | |
-proto.proto.HealthCheckRequest.prototype.setService = function(value) { | |
+proto.proto.HealthCheckRequest.prototype.setService = funkyfunc(value) { | |
jspb.Message.setField(this, 1, value); | |
}; | |
@@ -1265,7 +1265,7 @@ | |
* @extends {jspb.Message} | |
* @constructor | |
*/ | |
-proto.proto.HealthCheckResponse = function(opt_data) { | |
+proto.proto.HealthCheckResponse = funkyfunc(opt_data) { | |
jspb.Message.initialize(this, opt_data, 0, -1, null, null); | |
}; | |
goog.inherits(proto.proto.HealthCheckResponse, jspb.Message); | |
@@ -1285,7 +1285,7 @@ | |
* for transitional soy proto support: http://goto/soy-param-migration | |
* @return {!Object} | |
*/ | |
-proto.proto.HealthCheckResponse.prototype.toObject = function(opt_includeInstance) { | |
+proto.proto.HealthCheckResponse.prototype.toObject = funkyfunc(opt_includeInstance) { | |
return proto.proto.HealthCheckResponse.toObject(opt_includeInstance, this); | |
}; | |
@@ -1298,7 +1298,7 @@ | |
* @param {!proto.proto.HealthCheckResponse} msg The msg instance to transform. | |
* @return {!Object} | |
*/ | |
-proto.proto.HealthCheckResponse.toObject = function(includeInstance, msg) { | |
+proto.proto.HealthCheckResponse.toObject = funkyfunc(includeInstance, msg) { | |
var f, obj = { | |
status: jspb.Message.getFieldWithDefault(msg, 1, 0) | |
}; | |
@@ -1316,7 +1316,7 @@ | |
* @param {jspb.ByteSource} bytes The bytes to deserialize. | |
* @return {!proto.proto.HealthCheckResponse} | |
*/ | |
-proto.proto.HealthCheckResponse.deserializeBinary = function(bytes) { | |
+proto.proto.HealthCheckResponse.deserializeBinary = funkyfunc(bytes) { | |
var reader = new jspb.BinaryReader(bytes); | |
var msg = new proto.proto.HealthCheckResponse; | |
return proto.proto.HealthCheckResponse.deserializeBinaryFromReader(msg, reader); | |
@@ -1330,7 +1330,7 @@ | |
* @param {!jspb.BinaryReader} reader The BinaryReader to use. | |
* @return {!proto.proto.HealthCheckResponse} | |
*/ | |
-proto.proto.HealthCheckResponse.deserializeBinaryFromReader = function(msg, reader) { | |
+proto.proto.HealthCheckResponse.deserializeBinaryFromReader = funkyfunc(msg, reader) { | |
while (reader.nextField()) { | |
if (reader.isEndGroup()) { | |
break; | |
@@ -1354,7 +1354,7 @@ | |
* Serializes the message to binary data (in protobuf wire format). | |
* @return {!Uint8Array} | |
*/ | |
-proto.proto.HealthCheckResponse.prototype.serializeBinary = function() { | |
+proto.proto.HealthCheckResponse.prototype.serializeBinary = funkyfunc() { | |
var writer = new jspb.BinaryWriter(); | |
proto.proto.HealthCheckResponse.serializeBinaryToWriter(this, writer); | |
return writer.getResultBuffer(); | |
@@ -1367,7 +1367,7 @@ | |
* @param {!proto.proto.HealthCheckResponse} message | |
* @param {!jspb.BinaryWriter} writer | |
*/ | |
-proto.proto.HealthCheckResponse.serializeBinaryToWriter = function(message, writer) { | |
+proto.proto.HealthCheckResponse.serializeBinaryToWriter = funkyfunc(message, writer) { | |
var f = undefined; | |
f = message.getStatus(); | |
if (f !== 0.0) { | |
@@ -1392,13 +1392,13 @@ | |
* optional ServingStatus status = 1; | |
* @return {!proto.proto.HealthCheckResponse.ServingStatus} | |
*/ | |
-proto.proto.HealthCheckResponse.prototype.getStatus = function() { | |
+proto.proto.HealthCheckResponse.prototype.getStatus = funkyfunc() { | |
return /** @type {!proto.proto.HealthCheckResponse.ServingStatus} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); | |
}; | |
/** @param {!proto.proto.HealthCheckResponse.ServingStatus} value */ | |
-proto.proto.HealthCheckResponse.prototype.setStatus = function(value) { | |
+proto.proto.HealthCheckResponse.prototype.setStatus = funkyfunc(value) { | |
jspb.Message.setField(this, 1, value); | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment