UNPKG

echofi-client

Version:

A TypeScript/Node.js client library for EchoFi services with Level 3 Ultimate API and gRPC-Web clients for music streaming, user management, activity tracking, and authentication.

1,400 lines (1,308 loc) 232 kB
// source: activity/service.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 activity_listening_history_pb = require('../activity/listening_history_pb.js'); goog.object.extend(proto, activity_listening_history_pb); var activity_user_favorite_pb = require('../activity/user_favorite_pb.js'); goog.object.extend(proto, activity_user_favorite_pb); var activity_playlist_pb = require('../activity/playlist_pb.js'); goog.object.extend(proto, activity_playlist_pb); var activity_user_point_rate_pb = require('../activity/user_point_rate_pb.js'); goog.object.extend(proto, activity_user_point_rate_pb); var activity_rate_param_pb = require('../activity/rate_param_pb.js'); goog.object.extend(proto, activity_rate_param_pb); var activity_listening_session_pb = require('../activity/listening_session_pb.js'); goog.object.extend(proto, activity_listening_session_pb); var activity_user_points_pb = require('../activity/user_points_pb.js'); goog.object.extend(proto, activity_user_points_pb); goog.exportSymbol('proto.activity.GetListeningHistoryRequest', null, global); goog.exportSymbol('proto.activity.GetListeningHistoryResponse', null, global); goog.exportSymbol('proto.activity.GetListeningSessionRequest', null, global); goog.exportSymbol('proto.activity.GetListeningSessionResponse', null, global); goog.exportSymbol('proto.activity.GetPlaylistRequest', null, global); goog.exportSymbol('proto.activity.GetPlaylistResponse', null, global); goog.exportSymbol('proto.activity.GetRateParamRequest', null, global); goog.exportSymbol('proto.activity.GetRateParamResponse', null, global); goog.exportSymbol('proto.activity.GetUnprocessedListeningDurationRequest', null, global); goog.exportSymbol('proto.activity.GetUnprocessedListeningDurationResponse', null, global); goog.exportSymbol('proto.activity.GetUnprocessedListeningRecordsRequest', null, global); goog.exportSymbol('proto.activity.GetUnprocessedListeningRecordsResponse', null, global); goog.exportSymbol('proto.activity.GetUserFavoriteRequest', null, global); goog.exportSymbol('proto.activity.GetUserFavoriteResponse', null, global); goog.exportSymbol('proto.activity.GetUserPointRateRequest', null, global); goog.exportSymbol('proto.activity.GetUserPointRateResponse', null, global); goog.exportSymbol('proto.activity.GetUserPointsRequest', null, global); goog.exportSymbol('proto.activity.GetUserPointsResponse', null, global); goog.exportSymbol('proto.activity.ListListeningHistoryRequest', null, global); goog.exportSymbol('proto.activity.ListListeningHistoryResponse', null, global); goog.exportSymbol('proto.activity.ListListeningSessionsRequest', null, global); goog.exportSymbol('proto.activity.ListListeningSessionsResponse', null, global); goog.exportSymbol('proto.activity.ListPlaylistTracksRequest', null, global); goog.exportSymbol('proto.activity.ListPlaylistTracksResponse', null, global); goog.exportSymbol('proto.activity.ListPlaylistsRequest', null, global); goog.exportSymbol('proto.activity.ListPlaylistsResponse', null, global); goog.exportSymbol('proto.activity.ListRateParamsRequest', null, global); goog.exportSymbol('proto.activity.ListRateParamsResponse', null, global); goog.exportSymbol('proto.activity.ListUserFavoritesRequest', null, global); goog.exportSymbol('proto.activity.ListUserFavoritesResponse', null, global); goog.exportSymbol('proto.activity.ListUserPointRatesRequest', null, global); goog.exportSymbol('proto.activity.ListUserPointRatesResponse', null, global); goog.exportSymbol('proto.activity.ListUserPointsRequest', null, global); goog.exportSymbol('proto.activity.ListUserPointsResponse', null, global); goog.exportSymbol('proto.activity.UpdateUserPointRateRequest', null, global); goog.exportSymbol('proto.activity.UpdateUserPointRateResponse', 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.activity.GetListeningHistoryRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.GetListeningHistoryRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.GetListeningHistoryRequest.displayName = 'proto.activity.GetListeningHistoryRequest'; } /** * 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.activity.GetListeningHistoryResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.GetListeningHistoryResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.GetListeningHistoryResponse.displayName = 'proto.activity.GetListeningHistoryResponse'; } /** * 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.activity.ListListeningHistoryRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.ListListeningHistoryRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.ListListeningHistoryRequest.displayName = 'proto.activity.ListListeningHistoryRequest'; } /** * 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.activity.ListListeningHistoryResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.activity.ListListeningHistoryResponse.repeatedFields_, null); }; goog.inherits(proto.activity.ListListeningHistoryResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.ListListeningHistoryResponse.displayName = 'proto.activity.ListListeningHistoryResponse'; } /** * 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.activity.GetUserFavoriteRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.GetUserFavoriteRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.GetUserFavoriteRequest.displayName = 'proto.activity.GetUserFavoriteRequest'; } /** * 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.activity.GetUserFavoriteResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.GetUserFavoriteResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.GetUserFavoriteResponse.displayName = 'proto.activity.GetUserFavoriteResponse'; } /** * 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.activity.ListUserFavoritesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.ListUserFavoritesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.ListUserFavoritesRequest.displayName = 'proto.activity.ListUserFavoritesRequest'; } /** * 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.activity.ListUserFavoritesResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.activity.ListUserFavoritesResponse.repeatedFields_, null); }; goog.inherits(proto.activity.ListUserFavoritesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.ListUserFavoritesResponse.displayName = 'proto.activity.ListUserFavoritesResponse'; } /** * 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.activity.GetPlaylistRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.GetPlaylistRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.GetPlaylistRequest.displayName = 'proto.activity.GetPlaylistRequest'; } /** * 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.activity.GetPlaylistResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.GetPlaylistResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.GetPlaylistResponse.displayName = 'proto.activity.GetPlaylistResponse'; } /** * 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.activity.ListPlaylistsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.ListPlaylistsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.ListPlaylistsRequest.displayName = 'proto.activity.ListPlaylistsRequest'; } /** * 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.activity.ListPlaylistsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.activity.ListPlaylistsResponse.repeatedFields_, null); }; goog.inherits(proto.activity.ListPlaylistsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.ListPlaylistsResponse.displayName = 'proto.activity.ListPlaylistsResponse'; } /** * 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.activity.ListPlaylistTracksRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.ListPlaylistTracksRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.ListPlaylistTracksRequest.displayName = 'proto.activity.ListPlaylistTracksRequest'; } /** * 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.activity.ListPlaylistTracksResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.activity.ListPlaylistTracksResponse.repeatedFields_, null); }; goog.inherits(proto.activity.ListPlaylistTracksResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.ListPlaylistTracksResponse.displayName = 'proto.activity.ListPlaylistTracksResponse'; } /** * 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.activity.GetUserPointRateRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.GetUserPointRateRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.GetUserPointRateRequest.displayName = 'proto.activity.GetUserPointRateRequest'; } /** * 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.activity.GetUserPointRateResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.GetUserPointRateResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.GetUserPointRateResponse.displayName = 'proto.activity.GetUserPointRateResponse'; } /** * 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.activity.ListUserPointRatesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.ListUserPointRatesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.ListUserPointRatesRequest.displayName = 'proto.activity.ListUserPointRatesRequest'; } /** * 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.activity.ListUserPointRatesResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.activity.ListUserPointRatesResponse.repeatedFields_, null); }; goog.inherits(proto.activity.ListUserPointRatesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.ListUserPointRatesResponse.displayName = 'proto.activity.ListUserPointRatesResponse'; } /** * 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.activity.UpdateUserPointRateRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.UpdateUserPointRateRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.UpdateUserPointRateRequest.displayName = 'proto.activity.UpdateUserPointRateRequest'; } /** * 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.activity.UpdateUserPointRateResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.UpdateUserPointRateResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.UpdateUserPointRateResponse.displayName = 'proto.activity.UpdateUserPointRateResponse'; } /** * 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.activity.GetRateParamRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.GetRateParamRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.GetRateParamRequest.displayName = 'proto.activity.GetRateParamRequest'; } /** * 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.activity.GetRateParamResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.GetRateParamResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.GetRateParamResponse.displayName = 'proto.activity.GetRateParamResponse'; } /** * 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.activity.ListRateParamsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.ListRateParamsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.ListRateParamsRequest.displayName = 'proto.activity.ListRateParamsRequest'; } /** * 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.activity.ListRateParamsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.activity.ListRateParamsResponse.repeatedFields_, null); }; goog.inherits(proto.activity.ListRateParamsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.ListRateParamsResponse.displayName = 'proto.activity.ListRateParamsResponse'; } /** * 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.activity.GetListeningSessionRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.GetListeningSessionRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.GetListeningSessionRequest.displayName = 'proto.activity.GetListeningSessionRequest'; } /** * 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.activity.GetListeningSessionResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.GetListeningSessionResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.GetListeningSessionResponse.displayName = 'proto.activity.GetListeningSessionResponse'; } /** * 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.activity.ListListeningSessionsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.ListListeningSessionsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.ListListeningSessionsRequest.displayName = 'proto.activity.ListListeningSessionsRequest'; } /** * 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.activity.ListListeningSessionsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.activity.ListListeningSessionsResponse.repeatedFields_, null); }; goog.inherits(proto.activity.ListListeningSessionsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.ListListeningSessionsResponse.displayName = 'proto.activity.ListListeningSessionsResponse'; } /** * 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.activity.GetUserPointsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.GetUserPointsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.GetUserPointsRequest.displayName = 'proto.activity.GetUserPointsRequest'; } /** * 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.activity.GetUserPointsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.GetUserPointsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.GetUserPointsResponse.displayName = 'proto.activity.GetUserPointsResponse'; } /** * 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.activity.ListUserPointsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.ListUserPointsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.ListUserPointsRequest.displayName = 'proto.activity.ListUserPointsRequest'; } /** * 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.activity.ListUserPointsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.activity.ListUserPointsResponse.repeatedFields_, null); }; goog.inherits(proto.activity.ListUserPointsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.ListUserPointsResponse.displayName = 'proto.activity.ListUserPointsResponse'; } /** * 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.activity.GetUnprocessedListeningRecordsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.GetUnprocessedListeningRecordsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.GetUnprocessedListeningRecordsRequest.displayName = 'proto.activity.GetUnprocessedListeningRecordsRequest'; } /** * 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.activity.GetUnprocessedListeningRecordsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.activity.GetUnprocessedListeningRecordsResponse.repeatedFields_, null); }; goog.inherits(proto.activity.GetUnprocessedListeningRecordsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.GetUnprocessedListeningRecordsResponse.displayName = 'proto.activity.GetUnprocessedListeningRecordsResponse'; } /** * 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.activity.GetUnprocessedListeningDurationRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.GetUnprocessedListeningDurationRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.GetUnprocessedListeningDurationRequest.displayName = 'proto.activity.GetUnprocessedListeningDurationRequest'; } /** * 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.activity.GetUnprocessedListeningDurationResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.activity.GetUnprocessedListeningDurationResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.activity.GetUnprocessedListeningDurationResponse.displayName = 'proto.activity.GetUnprocessedListeningDurationResponse'; } 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.activity.GetListeningHistoryRequest.prototype.toObject = function(opt_includeInstance) { return proto.activity.GetListeningHistoryRequest.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.activity.GetListeningHistoryRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.activity.GetListeningHistoryRequest.toObject = function(includeInstance, msg) { var f, obj = { historyId: 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.activity.GetListeningHistoryRequest} */ proto.activity.GetListeningHistoryRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.activity.GetListeningHistoryRequest; return proto.activity.GetListeningHistoryRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.activity.GetListeningHistoryRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.activity.GetListeningHistoryRequest} */ proto.activity.GetListeningHistoryRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readInt32()); msg.setHistoryId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.activity.GetListeningHistoryRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.activity.GetListeningHistoryRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.activity.GetListeningHistoryRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.activity.GetListeningHistoryRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getHistoryId(); if (f !== 0) { writer.writeInt32( 1, f ); } }; /** * optional int32 history_id = 1; * @return {number} */ proto.activity.GetListeningHistoryRequest.prototype.getHistoryId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.activity.GetListeningHistoryRequest} returns this */ proto.activity.GetListeningHistoryRequest.prototype.setHistoryId = 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.activity.GetListeningHistoryResponse.prototype.toObject = function(opt_includeInstance) { return proto.activity.GetListeningHistoryResponse.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.activity.GetListeningHistoryResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.activity.GetListeningHistoryResponse.toObject = function(includeInstance, msg) { var f, obj = { history: (f = msg.getHistory()) && activity_listening_history_pb.ListeningHistory.toObject(includeInstance, f) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.activity.GetListeningHistoryResponse} */ proto.activity.GetListeningHistoryResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.activity.GetListeningHistoryResponse; return proto.activity.GetListeningHistoryResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.activity.GetListeningHistoryResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.activity.GetListeningHistoryResponse} */ proto.activity.GetListeningHistoryResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new activity_listening_history_pb.ListeningHistory; reader.readMessage(value,activity_listening_history_pb.ListeningHistory.deserializeBinaryFromReader); msg.setHistory(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.activity.GetListeningHistoryResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.activity.GetListeningHistoryResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.activity.GetListeningHistoryResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.activity.GetListeningHistoryResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getHistory(); if (f != null) { writer.writeMessage( 1, f, activity_listening_history_pb.ListeningHistory.serializeBinaryToWriter ); } }; /** * optional ListeningHistory history = 1; * @return {?proto.activity.ListeningHistory} */ proto.activity.GetListeningHistoryResponse.prototype.getHistory = function() { return /** @type{?proto.activity.ListeningHistory} */ ( jspb.Message.getWrapperField(this, activity_listening_history_pb.ListeningHistory, 1)); }; /** * @param {?proto.activity.ListeningHistory|undefined} value * @return {!proto.activity.GetListeningHistoryResponse} returns this */ proto.activity.GetListeningHistoryResponse.prototype.setHistory = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.activity.GetListeningHistoryResponse} returns this */ proto.activity.GetListeningHistoryResponse.prototype.clearHistory = function() { return this.setHistory(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.activity.GetListeningHistoryResponse.prototype.hasHistory = function() { return jspb.Message.getField(this, 1) != null; }; 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.activity.ListListeningHistoryRequest.prototype.toObject = function(opt_includeInstance) { return proto.activity.ListListeningHistoryRequest.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.activity.ListListeningHistoryRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.activity.ListListeningHistoryRequest.toObject = function(includeInstance, msg) { var f, obj = { offset: jspb.Message.getFieldWithDefault(msg, 1, 0), limit: jspb.Message.getFieldWithDefault(msg, 2, 0), userId: jspb.Message.getFieldWithDefault(msg, 3, ""), trackId: jspb.Message.getFieldWithDefault(msg, 4, 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.activity.ListListeningHistoryRequest} */ proto.activity.ListListeningHistoryRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.activity.ListListeningHistoryRequest; return proto.activity.ListListeningHistoryRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.activity.ListListeningHistoryRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.activity.ListListeningHistoryRequest} */ proto.activity.ListListeningHistoryRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readInt32()); msg.setOffset(value); break; case 2: var value = /** @type {number} */ (reader.readInt32()); msg.setLimit(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setUserId(value); break; case 4: var value = /** @type {number} */ (reader.readInt32()); msg.setTrackId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.activity.ListListeningHistoryRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.activity.ListListeningHistoryRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.activity.ListListeningHistoryRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.activity.ListListeningHistoryRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getOffset(); if (f !== 0) { writer.writeInt32( 1, f ); } f = message.getLimit(); if (f !== 0) { writer.writeInt32( 2, f ); } f = /** @type {string} */ (jspb.Message.getField(message, 3)); if (f != null) { writer.writeString( 3, f ); } f = /** @type {number} */ (jspb.Message.getField(message, 4)); if (f != null) { writer.writeInt32( 4, f ); } }; /** * optional int32 offset = 1; * @return {number} */ proto.activity.ListListeningHistoryRequest.prototype.getOffset = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.activity.ListListeningHistoryRequest} returns this */ proto.activity.ListListeningHistoryRequest.prototype.setOffset = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional int32 limit = 2; * @return {number} */ proto.activity.ListListeningHistoryRequest.prototype.getLimit = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value * @return {!proto.activity.ListListeningHistoryRequest} returns this */ proto.activity.ListListeningHistoryRequest.prototype.setLimit = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; /** * optional string user_id = 3; * @return {string} */ proto.activity.ListListeningHistoryRequest.prototype.getUserId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.activity.ListListeningHistoryRequest} returns this */ proto.activity.ListListeningHistoryRequest.prototype.setUserId = function(value) { return jspb.Message.setField(this, 3, value); }; /** * Clears the field making it undefined. * @return {!proto.activity.ListListeningHistoryRequest} returns this */ proto.activity.ListListeningHistoryRequest.prototype.clearUserId = function() { return jspb.Message.setField(this, 3, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.activity.ListListeningHistoryRequest.prototype.hasUserId = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional int32 track_id = 4; * @return {number} */ proto.activity.ListListeningHistoryRequest.prototype.getTrackId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value * @return {!proto.activity.ListListeningHistoryRequest} returns this */ proto.activity.ListListeningHistoryRequest.prototype.setTrackId = function(value) { return jspb.Message.setField(this, 4, value); }; /** * Clears the field making it undefined. * @return {!proto.activity.ListListeningHistoryRequest} returns this */ proto.activity.ListListeningHistoryRequest.prototype.clearTrackId = function() { return jspb.Message.setField(this, 4, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.activity.ListListeningHistoryRequest.prototype.hasTrackId = function() { return jspb.Message.getField(this, 4) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.activity.ListListeningHistoryResponse.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.activity.ListListeningHistoryResponse.prototype.toObject = function(opt_includeInstance) { return proto.activity.ListListeningHistoryResponse.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