committed by
GitHub
parent
24c3492541
commit
9d47494585
@@ -30,7 +30,7 @@ func main() {
|
||||
Badge: 1,
|
||||
Category: "test",
|
||||
Sound: "test",
|
||||
Priority: proto.Priority_High,
|
||||
Priority: proto.NotificationRequest_HIGH,
|
||||
Alert: &proto.Alert{
|
||||
Title: "Test Title",
|
||||
Body: "Test Alert Body",
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
* @public
|
||||
*/
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
var jspb = require('google-protobuf');
|
||||
var goog = jspb;
|
||||
@@ -20,7 +22,7 @@ goog.exportSymbol('proto.proto.HealthCheckResponse', null, global);
|
||||
goog.exportSymbol('proto.proto.HealthCheckResponse.ServingStatus', null, global);
|
||||
goog.exportSymbol('proto.proto.NotificationReply', null, global);
|
||||
goog.exportSymbol('proto.proto.NotificationRequest', null, global);
|
||||
goog.exportSymbol('proto.proto.Priority', null, global);
|
||||
goog.exportSymbol('proto.proto.NotificationRequest.Priority', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
@@ -725,7 +727,7 @@ proto.proto.NotificationRequest.deserializeBinaryFromReader = function(msg, read
|
||||
msg.setImage(value);
|
||||
break;
|
||||
case 16:
|
||||
var value = /** @type {!proto.proto.Priority} */ (reader.readEnum());
|
||||
var value = /** @type {!proto.proto.NotificationRequest.Priority} */ (reader.readEnum());
|
||||
msg.setPriority(value);
|
||||
break;
|
||||
default:
|
||||
@@ -874,6 +876,14 @@ proto.proto.NotificationRequest.serializeBinaryToWriter = function(message, writ
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.proto.NotificationRequest.Priority = {
|
||||
NORMAL: 0,
|
||||
HIGH: 1
|
||||
};
|
||||
|
||||
/**
|
||||
* repeated string tokens = 1;
|
||||
* @return {!Array<string>}
|
||||
@@ -1202,16 +1212,16 @@ proto.proto.NotificationRequest.prototype.setImage = function(value) {
|
||||
|
||||
|
||||
/**
|
||||
* optional Priority Priority = 16;
|
||||
* @return {!proto.proto.Priority}
|
||||
* optional Priority priority = 16;
|
||||
* @return {!proto.proto.NotificationRequest.Priority}
|
||||
*/
|
||||
proto.proto.NotificationRequest.prototype.getPriority = function() {
|
||||
return /** @type {!proto.proto.Priority} */ (jspb.Message.getFieldWithDefault(this, 16, 0));
|
||||
return /** @type {!proto.proto.NotificationRequest.Priority} */ (jspb.Message.getFieldWithDefault(this, 16, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.proto.Priority} value
|
||||
* @param {!proto.proto.NotificationRequest.Priority} value
|
||||
* @return {!proto.proto.NotificationRequest} returns this
|
||||
*/
|
||||
proto.proto.NotificationRequest.prototype.setPriority = function(value) {
|
||||
@@ -1648,12 +1658,4 @@ proto.proto.HealthCheckResponse.prototype.setStatus = function(value) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.proto.Priority = {
|
||||
NORMAL: 0,
|
||||
HIGH: 1
|
||||
};
|
||||
|
||||
goog.object.extend(exports, proto.proto);
|
||||
|
||||
Reference in New Issue
Block a user