UNPKG

@ondewo/csi-client-nodejs

Version:

ONDEWO Communication System Integration (CSI) Client library for Nodejs

1,641 lines (1,442 loc) 114 kB
// source: ondewo/nlu/common.proto /** * @fileoverview * @enhanceable * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! /* eslint-disable */ // @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; var global = (function() { if (this) { return this; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } if (typeof self !== 'undefined') { return self; } return Function('return this')(); }.call(null)); var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js'); goog.object.extend(proto, google_protobuf_field_mask_pb); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); goog.object.extend(proto, google_protobuf_timestamp_pb); goog.exportSymbol('proto.ondewo.nlu.AddNotificationsRequest', null, global); goog.exportSymbol('proto.ondewo.nlu.AddNotificationsResponse', null, global); goog.exportSymbol('proto.ondewo.nlu.Comment', null, global); goog.exportSymbol('proto.ondewo.nlu.KeyValuePair', null, global); goog.exportSymbol('proto.ondewo.nlu.KeyValuePair.ValueCase', null, global); goog.exportSymbol('proto.ondewo.nlu.ListNotificationsRequest', null, global); goog.exportSymbol('proto.ondewo.nlu.ListNotificationsResponse', null, global); goog.exportSymbol('proto.ondewo.nlu.Notification', null, global); goog.exportSymbol('proto.ondewo.nlu.NotificationFilter', null, global); goog.exportSymbol('proto.ondewo.nlu.NotificationFlaggedStatus', null, global); goog.exportSymbol('proto.ondewo.nlu.NotificationOrigin', null, global); goog.exportSymbol('proto.ondewo.nlu.NotificationReadStatus', null, global); goog.exportSymbol('proto.ondewo.nlu.NotificationType', null, global); goog.exportSymbol('proto.ondewo.nlu.NotificationVisibility', null, global); goog.exportSymbol('proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest', null, global); goog.exportSymbol('proto.ondewo.nlu.SetNotificationsReadStatusRequest', null, global); goog.exportSymbol('proto.ondewo.nlu.SortingMode', null, global); goog.exportSymbol('proto.ondewo.nlu.StatResponse', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ondewo.nlu.StatResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ondewo.nlu.StatResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.StatResponse.displayName = 'proto.ondewo.nlu.StatResponse'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ondewo.nlu.Comment = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ondewo.nlu.Comment, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.Comment.displayName = 'proto.ondewo.nlu.Comment'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ondewo.nlu.Notification = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ondewo.nlu.Notification, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.Notification.displayName = 'proto.ondewo.nlu.Notification'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ondewo.nlu.AddNotificationsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.AddNotificationsRequest.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.AddNotificationsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.AddNotificationsRequest.displayName = 'proto.ondewo.nlu.AddNotificationsRequest'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ondewo.nlu.AddNotificationsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.AddNotificationsResponse.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.AddNotificationsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.AddNotificationsResponse.displayName = 'proto.ondewo.nlu.AddNotificationsResponse'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ondewo.nlu.NotificationFilter = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.NotificationFilter.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.NotificationFilter, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.NotificationFilter.displayName = 'proto.ondewo.nlu.NotificationFilter'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ondewo.nlu.ListNotificationsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ondewo.nlu.ListNotificationsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.ListNotificationsRequest.displayName = 'proto.ondewo.nlu.ListNotificationsRequest'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ondewo.nlu.ListNotificationsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ListNotificationsResponse.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.ListNotificationsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.ListNotificationsResponse.displayName = 'proto.ondewo.nlu.ListNotificationsResponse'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.displayName = 'proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ondewo.nlu.SetNotificationsReadStatusRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.SetNotificationsReadStatusRequest.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.SetNotificationsReadStatusRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.SetNotificationsReadStatusRequest.displayName = 'proto.ondewo.nlu.SetNotificationsReadStatusRequest'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ondewo.nlu.KeyValuePair = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ondewo.nlu.KeyValuePair.oneofGroups_); }; goog.inherits(proto.ondewo.nlu.KeyValuePair, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.KeyValuePair.displayName = 'proto.ondewo.nlu.KeyValuePair'; } if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.ondewo.nlu.StatResponse.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.StatResponse.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.ondewo.nlu.StatResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.StatResponse.toObject = function(includeInstance, msg) { var f, obj = { value: jspb.Message.getFieldWithDefault(msg, 1, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.ondewo.nlu.StatResponse} */ proto.ondewo.nlu.StatResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ondewo.nlu.StatResponse; return proto.ondewo.nlu.StatResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ondewo.nlu.StatResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ondewo.nlu.StatResponse} */ proto.ondewo.nlu.StatResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readUint32()); msg.setValue(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ondewo.nlu.StatResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ondewo.nlu.StatResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.ondewo.nlu.StatResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.StatResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getValue(); if (f !== 0) { writer.writeUint32( 1, f ); } }; /** * optional uint32 value = 1; * @return {number} */ proto.ondewo.nlu.StatResponse.prototype.getValue = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.ondewo.nlu.StatResponse} returns this */ proto.ondewo.nlu.StatResponse.prototype.setValue = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.ondewo.nlu.Comment.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.Comment.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.ondewo.nlu.Comment} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.Comment.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), text: jspb.Message.getFieldWithDefault(msg, 2, ""), userId: jspb.Message.getFieldWithDefault(msg, 3, ""), commentAboutName: jspb.Message.getFieldWithDefault(msg, 4, ""), parentCommentName: jspb.Message.getFieldWithDefault(msg, 5, ""), createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), createdBy: jspb.Message.getFieldWithDefault(msg, 8, ""), modifiedBy: jspb.Message.getFieldWithDefault(msg, 9, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.ondewo.nlu.Comment} */ proto.ondewo.nlu.Comment.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ondewo.nlu.Comment; return proto.ondewo.nlu.Comment.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ondewo.nlu.Comment} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ondewo.nlu.Comment} */ proto.ondewo.nlu.Comment.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setText(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setUserId(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setCommentAboutName(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.setParentCommentName(value); break; case 6: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setCreatedAt(value); break; case 7: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setModifiedAt(value); break; case 8: var value = /** @type {string} */ (reader.readString()); msg.setCreatedBy(value); break; case 9: var value = /** @type {string} */ (reader.readString()); msg.setModifiedBy(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ondewo.nlu.Comment.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ondewo.nlu.Comment.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.ondewo.nlu.Comment} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.Comment.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getName(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getText(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getUserId(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getCommentAboutName(); if (f.length > 0) { writer.writeString( 4, f ); } f = message.getParentCommentName(); if (f.length > 0) { writer.writeString( 5, f ); } f = message.getCreatedAt(); if (f != null) { writer.writeMessage( 6, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getModifiedAt(); if (f != null) { writer.writeMessage( 7, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getCreatedBy(); if (f.length > 0) { writer.writeString( 8, f ); } f = message.getModifiedBy(); if (f.length > 0) { writer.writeString( 9, f ); } }; /** * optional string name = 1; * @return {string} */ proto.ondewo.nlu.Comment.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.Comment} returns this */ proto.ondewo.nlu.Comment.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string text = 2; * @return {string} */ proto.ondewo.nlu.Comment.prototype.getText = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.Comment} returns this */ proto.ondewo.nlu.Comment.prototype.setText = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string user_id = 3; * @return {string} */ proto.ondewo.nlu.Comment.prototype.getUserId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.Comment} returns this */ proto.ondewo.nlu.Comment.prototype.setUserId = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional string comment_about_name = 4; * @return {string} */ proto.ondewo.nlu.Comment.prototype.getCommentAboutName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.Comment} returns this */ proto.ondewo.nlu.Comment.prototype.setCommentAboutName = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** * optional string parent_comment_name = 5; * @return {string} */ proto.ondewo.nlu.Comment.prototype.getParentCommentName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.Comment} returns this */ proto.ondewo.nlu.Comment.prototype.setParentCommentName = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; /** * optional google.protobuf.Timestamp created_at = 6; * @return {?proto.google.protobuf.Timestamp} */ proto.ondewo.nlu.Comment.prototype.getCreatedAt = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.ondewo.nlu.Comment} returns this */ proto.ondewo.nlu.Comment.prototype.setCreatedAt = function(value) { return jspb.Message.setWrapperField(this, 6, value); }; /** * Clears the message field making it undefined. * @return {!proto.ondewo.nlu.Comment} returns this */ proto.ondewo.nlu.Comment.prototype.clearCreatedAt = function() { return this.setCreatedAt(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.Comment.prototype.hasCreatedAt = function() { return jspb.Message.getField(this, 6) != null; }; /** * optional google.protobuf.Timestamp modified_at = 7; * @return {?proto.google.protobuf.Timestamp} */ proto.ondewo.nlu.Comment.prototype.getModifiedAt = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.ondewo.nlu.Comment} returns this */ proto.ondewo.nlu.Comment.prototype.setModifiedAt = function(value) { return jspb.Message.setWrapperField(this, 7, value); }; /** * Clears the message field making it undefined. * @return {!proto.ondewo.nlu.Comment} returns this */ proto.ondewo.nlu.Comment.prototype.clearModifiedAt = function() { return this.setModifiedAt(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.Comment.prototype.hasModifiedAt = function() { return jspb.Message.getField(this, 7) != null; }; /** * optional string created_by = 8; * @return {string} */ proto.ondewo.nlu.Comment.prototype.getCreatedBy = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.Comment} returns this */ proto.ondewo.nlu.Comment.prototype.setCreatedBy = function(value) { return jspb.Message.setProto3StringField(this, 8, value); }; /** * optional string modified_by = 9; * @return {string} */ proto.ondewo.nlu.Comment.prototype.getModifiedBy = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.Comment} returns this */ proto.ondewo.nlu.Comment.prototype.setModifiedBy = function(value) { return jspb.Message.setProto3StringField(this, 9, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.ondewo.nlu.Notification.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.Notification.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.ondewo.nlu.Notification} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.Notification.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), userName: jspb.Message.getFieldWithDefault(msg, 2, ""), title: jspb.Message.getFieldWithDefault(msg, 3, ""), descriptionShort: jspb.Message.getFieldWithDefault(msg, 4, ""), descriptionLong: jspb.Message.getFieldWithDefault(msg, 5, ""), notificationFlaggedStatus: jspb.Message.getFieldWithDefault(msg, 6, 0), notificationFlaggedTimestamp: (f = msg.getNotificationFlaggedTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), notificationReadStatus: jspb.Message.getFieldWithDefault(msg, 8, 0), notificationReadTimestamp: (f = msg.getNotificationReadTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), notificationOrigin: jspb.Message.getFieldWithDefault(msg, 10, 0), originName: jspb.Message.getFieldWithDefault(msg, 11, ""), originLanguage: jspb.Message.getFieldWithDefault(msg, 12, ""), notificationType: jspb.Message.getFieldWithDefault(msg, 13, 0), notificationVisibility: jspb.Message.getFieldWithDefault(msg, 14, 0), createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), createdBy: jspb.Message.getFieldWithDefault(msg, 17, ""), modifiedBy: jspb.Message.getFieldWithDefault(msg, 18, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.ondewo.nlu.Notification} */ proto.ondewo.nlu.Notification.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ondewo.nlu.Notification; return proto.ondewo.nlu.Notification.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ondewo.nlu.Notification} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ondewo.nlu.Notification} */ proto.ondewo.nlu.Notification.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setUserName(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setTitle(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setDescriptionShort(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.setDescriptionLong(value); break; case 6: var value = /** @type {!proto.ondewo.nlu.NotificationFlaggedStatus} */ (reader.readEnum()); msg.setNotificationFlaggedStatus(value); break; case 7: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setNotificationFlaggedTimestamp(value); break; case 8: var value = /** @type {!proto.ondewo.nlu.NotificationReadStatus} */ (reader.readEnum()); msg.setNotificationReadStatus(value); break; case 9: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setNotificationReadTimestamp(value); break; case 10: var value = /** @type {!proto.ondewo.nlu.NotificationOrigin} */ (reader.readEnum()); msg.setNotificationOrigin(value); break; case 11: var value = /** @type {string} */ (reader.readString()); msg.setOriginName(value); break; case 12: var value = /** @type {string} */ (reader.readString()); msg.setOriginLanguage(value); break; case 13: var value = /** @type {!proto.ondewo.nlu.NotificationType} */ (reader.readEnum()); msg.setNotificationType(value); break; case 14: var value = /** @type {!proto.ondewo.nlu.NotificationVisibility} */ (reader.readEnum()); msg.setNotificationVisibility(value); break; case 15: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setCreatedAt(value); break; case 16: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setModifiedAt(value); break; case 17: var value = /** @type {string} */ (reader.readString()); msg.setCreatedBy(value); break; case 18: var value = /** @type {string} */ (reader.readString()); msg.setModifiedBy(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ondewo.nlu.Notification.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ondewo.nlu.Notification.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.ondewo.nlu.Notification} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.Notification.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getName(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getUserName(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getTitle(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getDescriptionShort(); if (f.length > 0) { writer.writeString( 4, f ); } f = message.getDescriptionLong(); if (f.length > 0) { writer.writeString( 5, f ); } f = message.getNotificationFlaggedStatus(); if (f !== 0.0) { writer.writeEnum( 6, f ); } f = message.getNotificationFlaggedTimestamp(); if (f != null) { writer.writeMessage( 7, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getNotificationReadStatus(); if (f !== 0.0) { writer.writeEnum( 8, f ); } f = message.getNotificationReadTimestamp(); if (f != null) { writer.writeMessage( 9, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getNotificationOrigin(); if (f !== 0.0) { writer.writeEnum( 10, f ); } f = message.getOriginName(); if (f.length > 0) { writer.writeString( 11, f ); } f = message.getOriginLanguage(); if (f.length > 0) { writer.writeString( 12, f ); } f = message.getNotificationType(); if (f !== 0.0) { writer.writeEnum( 13, f ); } f = message.getNotificationVisibility(); if (f !== 0.0) { writer.writeEnum( 14, f ); } f = message.getCreatedAt(); if (f != null) { writer.writeMessage( 15, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getModifiedAt(); if (f != null) { writer.writeMessage( 16, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getCreatedBy(); if (f.length > 0) { writer.writeString( 17, f ); } f = message.getModifiedBy(); if (f.length > 0) { writer.writeString( 18, f ); } }; /** * optional string name = 1; * @return {string} */ proto.ondewo.nlu.Notification.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string user_name = 2; * @return {string} */ proto.ondewo.nlu.Notification.prototype.getUserName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.setUserName = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string title = 3; * @return {string} */ proto.ondewo.nlu.Notification.prototype.getTitle = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.setTitle = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional string description_short = 4; * @return {string} */ proto.ondewo.nlu.Notification.prototype.getDescriptionShort = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.setDescriptionShort = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** * optional string description_long = 5; * @return {string} */ proto.ondewo.nlu.Notification.prototype.getDescriptionLong = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.setDescriptionLong = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; /** * optional NotificationFlaggedStatus notification_flagged_status = 6; * @return {!proto.ondewo.nlu.NotificationFlaggedStatus} */ proto.ondewo.nlu.Notification.prototype.getNotificationFlaggedStatus = function() { return /** @type {!proto.ondewo.nlu.NotificationFlaggedStatus} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; /** * @param {!proto.ondewo.nlu.NotificationFlaggedStatus} value * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.setNotificationFlaggedStatus = function(value) { return jspb.Message.setProto3EnumField(this, 6, value); }; /** * optional google.protobuf.Timestamp notification_flagged_timestamp = 7; * @return {?proto.google.protobuf.Timestamp} */ proto.ondewo.nlu.Notification.prototype.getNotificationFlaggedTimestamp = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.setNotificationFlaggedTimestamp = function(value) { return jspb.Message.setWrapperField(this, 7, value); }; /** * Clears the message field making it undefined. * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.clearNotificationFlaggedTimestamp = function() { return this.setNotificationFlaggedTimestamp(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.Notification.prototype.hasNotificationFlaggedTimestamp = function() { return jspb.Message.getField(this, 7) != null; }; /** * optional NotificationReadStatus notification_read_status = 8; * @return {!proto.ondewo.nlu.NotificationReadStatus} */ proto.ondewo.nlu.Notification.prototype.getNotificationReadStatus = function() { return /** @type {!proto.ondewo.nlu.NotificationReadStatus} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); }; /** * @param {!proto.ondewo.nlu.NotificationReadStatus} value * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.setNotificationReadStatus = function(value) { return jspb.Message.setProto3EnumField(this, 8, value); }; /** * optional google.protobuf.Timestamp notification_read_timestamp = 9; * @return {?proto.google.protobuf.Timestamp} */ proto.ondewo.nlu.Notification.prototype.getNotificationReadTimestamp = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.setNotificationReadTimestamp = function(value) { return jspb.Message.setWrapperField(this, 9, value); }; /** * Clears the message field making it undefined. * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.clearNotificationReadTimestamp = function() { return this.setNotificationReadTimestamp(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.Notification.prototype.hasNotificationReadTimestamp = function() { return jspb.Message.getField(this, 9) != null; }; /** * optional NotificationOrigin notification_origin = 10; * @return {!proto.ondewo.nlu.NotificationOrigin} */ proto.ondewo.nlu.Notification.prototype.getNotificationOrigin = function() { return /** @type {!proto.ondewo.nlu.NotificationOrigin} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); }; /** * @param {!proto.ondewo.nlu.NotificationOrigin} value * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.setNotificationOrigin = function(value) { return jspb.Message.setProto3EnumField(this, 10, value); }; /** * optional string origin_name = 11; * @return {string} */ proto.ondewo.nlu.Notification.prototype.getOriginName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.setOriginName = function(value) { return jspb.Message.setProto3StringField(this, 11, value); }; /** * optional string origin_language = 12; * @return {string} */ proto.ondewo.nlu.Notification.prototype.getOriginLanguage = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.setOriginLanguage = function(value) { return jspb.Message.setProto3StringField(this, 12, value); }; /** * optional NotificationType notification_type = 13; * @return {!proto.ondewo.nlu.NotificationType} */ proto.ondewo.nlu.Notification.prototype.getNotificationType = function() { return /** @type {!proto.ondewo.nlu.NotificationType} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); }; /** * @param {!proto.ondewo.nlu.NotificationType} value * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.setNotificationType = function(value) { return jspb.Message.setProto3EnumField(this, 13, value); }; /** * optional NotificationVisibility notification_visibility = 14; * @return {!proto.ondewo.nlu.NotificationVisibility} */ proto.ondewo.nlu.Notification.prototype.getNotificationVisibility = function() { return /** @type {!proto.ondewo.nlu.NotificationVisibility} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); }; /** * @param {!proto.ondewo.nlu.NotificationVisibility} value * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.setNotificationVisibility = function(value) { return jspb.Message.setProto3EnumField(this, 14, value); }; /** * optional google.protobuf.Timestamp created_at = 15; * @return {?proto.google.protobuf.Timestamp} */ proto.ondewo.nlu.Notification.prototype.getCreatedAt = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 15)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.setCreatedAt = function(value) { return jspb.Message.setWrapperField(this, 15, value); }; /** * Clears the message field making it undefined. * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.clearCreatedAt = function() { return this.setCreatedAt(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.Notification.prototype.hasCreatedAt = function() { return jspb.Message.getField(this, 15) != null; }; /** * optional google.protobuf.Timestamp modified_at = 16; * @return {?proto.google.protobuf.Timestamp} */ proto.ondewo.nlu.Notification.prototype.getModifiedAt = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 16)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.setModifiedAt = function(value) { return jspb.Message.setWrapperField(this, 16, value); }; /** * Clears the message field making it undefined. * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.clearModifiedAt = function() { return this.setModifiedAt(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.Notification.prototype.hasModifiedAt = function() { return jspb.Message.getField(this, 16) != null; }; /** * optional string created_by = 17; * @return {string} */ proto.ondewo.nlu.Notification.prototype.getCreatedBy = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.setCreatedBy = function(value) { return jspb.Message.setProto3StringField(this, 17, value); }; /** * optional string modified_by = 18; * @return {string} */ proto.ondewo.nlu.Notification.prototype.getModifiedBy = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.Notification} returns this */ proto.ondewo.nlu.Notification.prototype.setModifiedBy = function(value) { return jspb.Message.setProto3StringField(this, 18, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.ondewo.nlu.AddNotificationsRequest.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.ondewo.nlu.AddNotificationsRequest.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.AddNotificationsRequest.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.ondewo.nlu.AddNotificationsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.AddNotificationsRequest.toObject = function(includeInstance, msg) { var f, obj = { notificationsList: jspb.Message.toObjectList(msg.getNotificationsList(), proto.ondewo.nlu.Notification.toObject, includeInstance) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.ondewo.nlu.AddNotificationsRequest} */ proto.ondewo.nlu.AddNotificationsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ondewo.nlu.AddNotificationsRequest; return proto.ondewo.nlu.AddNotificationsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ondewo.nlu.AddNotificationsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ondewo.nlu.AddNotificationsRequest} */ proto.ondewo.nlu.AddNotificationsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.ondewo.nlu.Notification; reader.readMessage(value,proto.ondewo.nlu.Notification.deserializeBinaryFromReader); msg.addNotifications(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ondewo.nlu.AddNotificationsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ondewo.nlu.AddNotificationsRequest.serializeBinaryToWriter(this, writer); ret