From 7ac3445efbb95872c39a6f60da6c8761b6a2f473 Mon Sep 17 00:00:00 2001 From: Ahmet Turkmen Date: Tue, 17 Aug 2021 17:48:00 +0200 Subject: [PATCH 01/23] update proto files for vpn+browser events Signed-off-by: Ahmet Turkmen --- client/daemon_grpc_web_pb.js | 390 +-- client/daemon_pb.js | 4449 ++++++++++++++++++++-------------- proto/daemon.proto | 2 +- 3 files changed, 2768 insertions(+), 2073 deletions(-) diff --git a/client/daemon_grpc_web_pb.js b/client/daemon_grpc_web_pb.js index 6d5cffb1..841329ab 100644 --- a/client/daemon_grpc_web_pb.js +++ b/client/daemon_grpc_web_pb.js @@ -7,10 +7,6 @@ // GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - - const grpc = {}; grpc.web = require('grpc-web'); @@ -41,6 +37,16 @@ proto.daemon.DaemonClient = */ this.hostname_ = hostname; + /** + * @private @const {?Object} The credentials to be used to connect + * to the server + */ + this.credentials_ = credentials; + + /** + * @private @const {?Object} Options for the client + */ + this.options_ = options; }; @@ -67,6 +73,16 @@ proto.daemon.DaemonPromiseClient = */ this.hostname_ = hostname; + /** + * @private @const {?Object} The credentials to be used to connect + * to the server + */ + this.credentials_ = credentials; + + /** + * @private @const {?Object} Options for the client + */ + this.options_ = options; }; @@ -81,10 +97,7 @@ const methodDescriptor_Daemon_LoginUser = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.LoginUserRequest, proto.daemon.LoginUserResponse, - /** - * @param {!proto.daemon.LoginUserRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.LoginUserRequest} request */ function(request) { return request.serializeBinary(); }, @@ -100,10 +113,7 @@ const methodDescriptor_Daemon_LoginUser = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_LoginUser = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.LoginUserResponse, - /** - * @param {!proto.daemon.LoginUserRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.LoginUserRequest} request */ function(request) { return request.serializeBinary(); }, @@ -138,7 +148,7 @@ proto.daemon.DaemonClient.prototype.loginUser = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.loginUser = function(request, metadata) { @@ -161,10 +171,7 @@ const methodDescriptor_Daemon_SignupUser = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.SignupUserRequest, proto.daemon.LoginUserResponse, - /** - * @param {!proto.daemon.SignupUserRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.SignupUserRequest} request */ function(request) { return request.serializeBinary(); }, @@ -180,10 +187,7 @@ const methodDescriptor_Daemon_SignupUser = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_SignupUser = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.LoginUserResponse, - /** - * @param {!proto.daemon.SignupUserRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.SignupUserRequest} request */ function(request) { return request.serializeBinary(); }, @@ -218,7 +222,7 @@ proto.daemon.DaemonClient.prototype.signupUser = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.signupUser = function(request, metadata) { @@ -241,10 +245,7 @@ const methodDescriptor_Daemon_InviteUser = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.InviteUserRequest, proto.daemon.InviteUserResponse, - /** - * @param {!proto.daemon.InviteUserRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.InviteUserRequest} request */ function(request) { return request.serializeBinary(); }, @@ -260,10 +261,7 @@ const methodDescriptor_Daemon_InviteUser = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_InviteUser = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.InviteUserResponse, - /** - * @param {!proto.daemon.InviteUserRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.InviteUserRequest} request */ function(request) { return request.serializeBinary(); }, @@ -298,7 +296,7 @@ proto.daemon.DaemonClient.prototype.inviteUser = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.inviteUser = function(request, metadata) { @@ -321,10 +319,7 @@ const methodDescriptor_Daemon_ListUsers = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.Empty, proto.daemon.ListUsersResponse, - /** - * @param {!proto.daemon.Empty} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.Empty} request */ function(request) { return request.serializeBinary(); }, @@ -340,10 +335,7 @@ const methodDescriptor_Daemon_ListUsers = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_ListUsers = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.ListUsersResponse, - /** - * @param {!proto.daemon.Empty} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.Empty} request */ function(request) { return request.serializeBinary(); }, @@ -378,7 +370,7 @@ proto.daemon.DaemonClient.prototype.listUsers = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.listUsers = function(request, metadata) { @@ -401,10 +393,7 @@ const methodDescriptor_Daemon_ChangeUserPasswd = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.UpdatePasswdRequest, proto.daemon.UpdatePasswdResponse, - /** - * @param {!proto.daemon.UpdatePasswdRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.UpdatePasswdRequest} request */ function(request) { return request.serializeBinary(); }, @@ -420,10 +409,7 @@ const methodDescriptor_Daemon_ChangeUserPasswd = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_ChangeUserPasswd = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.UpdatePasswdResponse, - /** - * @param {!proto.daemon.UpdatePasswdRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.UpdatePasswdRequest} request */ function(request) { return request.serializeBinary(); }, @@ -458,7 +444,7 @@ proto.daemon.DaemonClient.prototype.changeUserPasswd = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.changeUserPasswd = function(request, metadata) { @@ -481,10 +467,7 @@ const methodDescriptor_Daemon_DestroyUser = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.DestroyUserRequest, proto.daemon.DestroyUserResponse, - /** - * @param {!proto.daemon.DestroyUserRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.DestroyUserRequest} request */ function(request) { return request.serializeBinary(); }, @@ -500,10 +483,7 @@ const methodDescriptor_Daemon_DestroyUser = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_DestroyUser = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.DestroyUserResponse, - /** - * @param {!proto.daemon.DestroyUserRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.DestroyUserRequest} request */ function(request) { return request.serializeBinary(); }, @@ -538,7 +518,7 @@ proto.daemon.DaemonClient.prototype.destroyUser = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.destroyUser = function(request, metadata) { @@ -561,10 +541,7 @@ const methodDescriptor_Daemon_SetTeamSuspend = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.SetTeamSuspendRequest, proto.daemon.Empty, - /** - * @param {!proto.daemon.SetTeamSuspendRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.SetTeamSuspendRequest} request */ function(request) { return request.serializeBinary(); }, @@ -580,10 +557,7 @@ const methodDescriptor_Daemon_SetTeamSuspend = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_SetTeamSuspend = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.Empty, - /** - * @param {!proto.daemon.SetTeamSuspendRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.SetTeamSuspendRequest} request */ function(request) { return request.serializeBinary(); }, @@ -618,7 +592,7 @@ proto.daemon.DaemonClient.prototype.setTeamSuspend = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.setTeamSuspend = function(request, metadata) { @@ -641,10 +615,7 @@ const methodDescriptor_Daemon_UpdateTeamPassword = new grpc.web.MethodDescriptor grpc.web.MethodType.UNARY, proto.daemon.UpdateTeamPassRequest, proto.daemon.UpdateTeamPassResponse, - /** - * @param {!proto.daemon.UpdateTeamPassRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.UpdateTeamPassRequest} request */ function(request) { return request.serializeBinary(); }, @@ -660,10 +631,7 @@ const methodDescriptor_Daemon_UpdateTeamPassword = new grpc.web.MethodDescriptor */ const methodInfo_Daemon_UpdateTeamPassword = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.UpdateTeamPassResponse, - /** - * @param {!proto.daemon.UpdateTeamPassRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.UpdateTeamPassRequest} request */ function(request) { return request.serializeBinary(); }, @@ -698,7 +666,7 @@ proto.daemon.DaemonClient.prototype.updateTeamPassword = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.updateTeamPassword = function(request, metadata) { @@ -721,10 +689,7 @@ const methodDescriptor_Daemon_GetAPICreds = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.Empty, proto.daemon.CredsResponse, - /** - * @param {!proto.daemon.Empty} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.Empty} request */ function(request) { return request.serializeBinary(); }, @@ -740,10 +705,7 @@ const methodDescriptor_Daemon_GetAPICreds = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_GetAPICreds = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.CredsResponse, - /** - * @param {!proto.daemon.Empty} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.Empty} request */ function(request) { return request.serializeBinary(); }, @@ -778,7 +740,7 @@ proto.daemon.DaemonClient.prototype.getAPICreds = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.getAPICreds = function(request, metadata) { @@ -801,10 +763,7 @@ const methodDescriptor_Daemon_CreateEvent = new grpc.web.MethodDescriptor( grpc.web.MethodType.SERVER_STREAMING, proto.daemon.CreateEventRequest, proto.daemon.LabStatus, - /** - * @param {!proto.daemon.CreateEventRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.CreateEventRequest} request */ function(request) { return request.serializeBinary(); }, @@ -820,10 +779,7 @@ const methodDescriptor_Daemon_CreateEvent = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_CreateEvent = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.LabStatus, - /** - * @param {!proto.daemon.CreateEventRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.CreateEventRequest} request */ function(request) { return request.serializeBinary(); }, @@ -876,10 +832,7 @@ const methodDescriptor_Daemon_StopEvent = new grpc.web.MethodDescriptor( grpc.web.MethodType.SERVER_STREAMING, proto.daemon.StopEventRequest, proto.daemon.EventStatus, - /** - * @param {!proto.daemon.StopEventRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.StopEventRequest} request */ function(request) { return request.serializeBinary(); }, @@ -895,10 +848,7 @@ const methodDescriptor_Daemon_StopEvent = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_StopEvent = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.EventStatus, - /** - * @param {!proto.daemon.StopEventRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.StopEventRequest} request */ function(request) { return request.serializeBinary(); }, @@ -951,10 +901,7 @@ const methodDescriptor_Daemon_SuspendEvent = new grpc.web.MethodDescriptor( grpc.web.MethodType.SERVER_STREAMING, proto.daemon.SuspendEventRequest, proto.daemon.EventStatus, - /** - * @param {!proto.daemon.SuspendEventRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.SuspendEventRequest} request */ function(request) { return request.serializeBinary(); }, @@ -970,10 +917,7 @@ const methodDescriptor_Daemon_SuspendEvent = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_SuspendEvent = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.EventStatus, - /** - * @param {!proto.daemon.SuspendEventRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.SuspendEventRequest} request */ function(request) { return request.serializeBinary(); }, @@ -1026,10 +970,7 @@ const methodDescriptor_Daemon_ListEvents = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.ListEventsRequest, proto.daemon.ListEventsResponse, - /** - * @param {!proto.daemon.ListEventsRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.ListEventsRequest} request */ function(request) { return request.serializeBinary(); }, @@ -1045,10 +986,7 @@ const methodDescriptor_Daemon_ListEvents = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_ListEvents = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.ListEventsResponse, - /** - * @param {!proto.daemon.ListEventsRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.ListEventsRequest} request */ function(request) { return request.serializeBinary(); }, @@ -1083,7 +1021,7 @@ proto.daemon.DaemonClient.prototype.listEvents = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.listEvents = function(request, metadata) { @@ -1106,10 +1044,7 @@ const methodDescriptor_Daemon_ListEventTeams = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.ListEventTeamsRequest, proto.daemon.ListEventTeamsResponse, - /** - * @param {!proto.daemon.ListEventTeamsRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.ListEventTeamsRequest} request */ function(request) { return request.serializeBinary(); }, @@ -1125,10 +1060,7 @@ const methodDescriptor_Daemon_ListEventTeams = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_ListEventTeams = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.ListEventTeamsResponse, - /** - * @param {!proto.daemon.ListEventTeamsRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.ListEventTeamsRequest} request */ function(request) { return request.serializeBinary(); }, @@ -1163,7 +1095,7 @@ proto.daemon.DaemonClient.prototype.listEventTeams = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.listEventTeams = function(request, metadata) { @@ -1186,10 +1118,7 @@ const methodDescriptor_Daemon_RestartTeamLab = new grpc.web.MethodDescriptor( grpc.web.MethodType.SERVER_STREAMING, proto.daemon.RestartTeamLabRequest, proto.daemon.EventStatus, - /** - * @param {!proto.daemon.RestartTeamLabRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.RestartTeamLabRequest} request */ function(request) { return request.serializeBinary(); }, @@ -1205,10 +1134,7 @@ const methodDescriptor_Daemon_RestartTeamLab = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_RestartTeamLab = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.EventStatus, - /** - * @param {!proto.daemon.RestartTeamLabRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.RestartTeamLabRequest} request */ function(request) { return request.serializeBinary(); }, @@ -1261,10 +1187,7 @@ const methodDescriptor_Daemon_SolveChallenge = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.SolveChallengeRequest, proto.daemon.SolveChallengeResponse, - /** - * @param {!proto.daemon.SolveChallengeRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.SolveChallengeRequest} request */ function(request) { return request.serializeBinary(); }, @@ -1280,10 +1203,7 @@ const methodDescriptor_Daemon_SolveChallenge = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_SolveChallenge = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.SolveChallengeResponse, - /** - * @param {!proto.daemon.SolveChallengeRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.SolveChallengeRequest} request */ function(request) { return request.serializeBinary(); }, @@ -1318,7 +1238,7 @@ proto.daemon.DaemonClient.prototype.solveChallenge = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.solveChallenge = function(request, metadata) { @@ -1341,10 +1261,7 @@ const methodDescriptor_Daemon_AddChallenge = new grpc.web.MethodDescriptor( grpc.web.MethodType.SERVER_STREAMING, proto.daemon.AddChallengeRequest, proto.daemon.AddChallengeResponse, - /** - * @param {!proto.daemon.AddChallengeRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.AddChallengeRequest} request */ function(request) { return request.serializeBinary(); }, @@ -1360,10 +1277,7 @@ const methodDescriptor_Daemon_AddChallenge = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_AddChallenge = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.AddChallengeResponse, - /** - * @param {!proto.daemon.AddChallengeRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.AddChallengeRequest} request */ function(request) { return request.serializeBinary(); }, @@ -1416,10 +1330,7 @@ const methodDescriptor_Daemon_AddNotification = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.AddNotificationRequest, proto.daemon.AddNotificationResponse, - /** - * @param {!proto.daemon.AddNotificationRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.AddNotificationRequest} request */ function(request) { return request.serializeBinary(); }, @@ -1435,10 +1346,7 @@ const methodDescriptor_Daemon_AddNotification = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_AddNotification = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.AddNotificationResponse, - /** - * @param {!proto.daemon.AddNotificationRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.AddNotificationRequest} request */ function(request) { return request.serializeBinary(); }, @@ -1473,7 +1381,7 @@ proto.daemon.DaemonClient.prototype.addNotification = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.addNotification = function(request, metadata) { @@ -1496,10 +1404,7 @@ const methodDescriptor_Daemon_DeleteTeam = new grpc.web.MethodDescriptor( grpc.web.MethodType.SERVER_STREAMING, proto.daemon.DeleteTeamRequest, proto.daemon.DeleteTeamResponse, - /** - * @param {!proto.daemon.DeleteTeamRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.DeleteTeamRequest} request */ function(request) { return request.serializeBinary(); }, @@ -1515,10 +1420,7 @@ const methodDescriptor_Daemon_DeleteTeam = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_DeleteTeam = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.DeleteTeamResponse, - /** - * @param {!proto.daemon.DeleteTeamRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.DeleteTeamRequest} request */ function(request) { return request.serializeBinary(); }, @@ -1571,10 +1473,7 @@ const methodDescriptor_Daemon_GetTeamChals = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.GetTeamInfoRequest, proto.daemon.TeamChalsInfo, - /** - * @param {!proto.daemon.GetTeamInfoRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.GetTeamInfoRequest} request */ function(request) { return request.serializeBinary(); }, @@ -1590,10 +1489,7 @@ const methodDescriptor_Daemon_GetTeamChals = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_GetTeamChals = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.TeamChalsInfo, - /** - * @param {!proto.daemon.GetTeamInfoRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.GetTeamInfoRequest} request */ function(request) { return request.serializeBinary(); }, @@ -1628,7 +1524,7 @@ proto.daemon.DaemonClient.prototype.getTeamChals = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.getTeamChals = function(request, metadata) { @@ -1651,10 +1547,7 @@ const methodDescriptor_Daemon_StressEvent = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.TestEventLoadReq, proto.daemon.TestEventLoadResp, - /** - * @param {!proto.daemon.TestEventLoadReq} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.TestEventLoadReq} request */ function(request) { return request.serializeBinary(); }, @@ -1670,10 +1563,7 @@ const methodDescriptor_Daemon_StressEvent = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_StressEvent = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.TestEventLoadResp, - /** - * @param {!proto.daemon.TestEventLoadReq} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.TestEventLoadReq} request */ function(request) { return request.serializeBinary(); }, @@ -1708,7 +1598,7 @@ proto.daemon.DaemonClient.prototype.stressEvent = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.stressEvent = function(request, metadata) { @@ -1731,10 +1621,7 @@ const methodDescriptor_Daemon_ListExercises = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.Empty, proto.daemon.ListExercisesResponse, - /** - * @param {!proto.daemon.Empty} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.Empty} request */ function(request) { return request.serializeBinary(); }, @@ -1750,10 +1637,7 @@ const methodDescriptor_Daemon_ListExercises = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_ListExercises = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.ListExercisesResponse, - /** - * @param {!proto.daemon.Empty} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.Empty} request */ function(request) { return request.serializeBinary(); }, @@ -1788,7 +1672,7 @@ proto.daemon.DaemonClient.prototype.listExercises = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.listExercises = function(request, metadata) { @@ -1811,10 +1695,7 @@ const methodDescriptor_Daemon_ResetExercise = new grpc.web.MethodDescriptor( grpc.web.MethodType.SERVER_STREAMING, proto.daemon.ResetExerciseRequest, proto.daemon.ResetTeamStatus, - /** - * @param {!proto.daemon.ResetExerciseRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.ResetExerciseRequest} request */ function(request) { return request.serializeBinary(); }, @@ -1830,10 +1711,7 @@ const methodDescriptor_Daemon_ResetExercise = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_ResetExercise = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.ResetTeamStatus, - /** - * @param {!proto.daemon.ResetExerciseRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.ResetExerciseRequest} request */ function(request) { return request.serializeBinary(); }, @@ -1886,10 +1764,7 @@ const methodDescriptor_Daemon_GetExercisesByTags = new grpc.web.MethodDescriptor grpc.web.MethodType.UNARY, proto.daemon.GetExsByTagsReq, proto.daemon.GetExsByTagsResp, - /** - * @param {!proto.daemon.GetExsByTagsReq} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.GetExsByTagsReq} request */ function(request) { return request.serializeBinary(); }, @@ -1905,10 +1780,7 @@ const methodDescriptor_Daemon_GetExercisesByTags = new grpc.web.MethodDescriptor */ const methodInfo_Daemon_GetExercisesByTags = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.GetExsByTagsResp, - /** - * @param {!proto.daemon.GetExsByTagsReq} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.GetExsByTagsReq} request */ function(request) { return request.serializeBinary(); }, @@ -1943,7 +1815,7 @@ proto.daemon.DaemonClient.prototype.getExercisesByTags = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.getExercisesByTags = function(request, metadata) { @@ -1966,10 +1838,7 @@ const methodDescriptor_Daemon_ListFrontends = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.Empty, proto.daemon.ListFrontendsResponse, - /** - * @param {!proto.daemon.Empty} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.Empty} request */ function(request) { return request.serializeBinary(); }, @@ -1985,10 +1854,7 @@ const methodDescriptor_Daemon_ListFrontends = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_ListFrontends = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.ListFrontendsResponse, - /** - * @param {!proto.daemon.Empty} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.Empty} request */ function(request) { return request.serializeBinary(); }, @@ -2023,7 +1889,7 @@ proto.daemon.DaemonClient.prototype.listFrontends = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.listFrontends = function(request, metadata) { @@ -2046,10 +1912,7 @@ const methodDescriptor_Daemon_ResetFrontends = new grpc.web.MethodDescriptor( grpc.web.MethodType.SERVER_STREAMING, proto.daemon.ResetFrontendsRequest, proto.daemon.ResetTeamStatus, - /** - * @param {!proto.daemon.ResetFrontendsRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.ResetFrontendsRequest} request */ function(request) { return request.serializeBinary(); }, @@ -2065,10 +1928,7 @@ const methodDescriptor_Daemon_ResetFrontends = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_ResetFrontends = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.ResetTeamStatus, - /** - * @param {!proto.daemon.ResetFrontendsRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.ResetFrontendsRequest} request */ function(request) { return request.serializeBinary(); }, @@ -2121,10 +1981,7 @@ const methodDescriptor_Daemon_SetFrontendMemory = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.SetFrontendMemoryRequest, proto.daemon.Empty, - /** - * @param {!proto.daemon.SetFrontendMemoryRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.SetFrontendMemoryRequest} request */ function(request) { return request.serializeBinary(); }, @@ -2140,10 +1997,7 @@ const methodDescriptor_Daemon_SetFrontendMemory = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_SetFrontendMemory = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.Empty, - /** - * @param {!proto.daemon.SetFrontendMemoryRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.SetFrontendMemoryRequest} request */ function(request) { return request.serializeBinary(); }, @@ -2178,7 +2032,7 @@ proto.daemon.DaemonClient.prototype.setFrontendMemory = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.setFrontendMemory = function(request, metadata) { @@ -2201,10 +2055,7 @@ const methodDescriptor_Daemon_SetFrontendCpu = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.SetFrontendCpuRequest, proto.daemon.Empty, - /** - * @param {!proto.daemon.SetFrontendCpuRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.SetFrontendCpuRequest} request */ function(request) { return request.serializeBinary(); }, @@ -2220,10 +2071,7 @@ const methodDescriptor_Daemon_SetFrontendCpu = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_SetFrontendCpu = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.Empty, - /** - * @param {!proto.daemon.SetFrontendCpuRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.SetFrontendCpuRequest} request */ function(request) { return request.serializeBinary(); }, @@ -2258,7 +2106,7 @@ proto.daemon.DaemonClient.prototype.setFrontendCpu = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.setFrontendCpu = function(request, metadata) { @@ -2281,10 +2129,7 @@ const methodDescriptor_Daemon_GetTeamInfo = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.GetTeamInfoRequest, proto.daemon.GetTeamInfoResponse, - /** - * @param {!proto.daemon.GetTeamInfoRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.GetTeamInfoRequest} request */ function(request) { return request.serializeBinary(); }, @@ -2300,10 +2145,7 @@ const methodDescriptor_Daemon_GetTeamInfo = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_GetTeamInfo = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.GetTeamInfoResponse, - /** - * @param {!proto.daemon.GetTeamInfoRequest} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.GetTeamInfoRequest} request */ function(request) { return request.serializeBinary(); }, @@ -2338,7 +2180,7 @@ proto.daemon.DaemonClient.prototype.getTeamInfo = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.getTeamInfo = function(request, metadata) { @@ -2361,10 +2203,7 @@ const methodDescriptor_Daemon_MonitorHost = new grpc.web.MethodDescriptor( grpc.web.MethodType.SERVER_STREAMING, proto.daemon.Empty, proto.daemon.MonitorHostResponse, - /** - * @param {!proto.daemon.Empty} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.Empty} request */ function(request) { return request.serializeBinary(); }, @@ -2380,10 +2219,7 @@ const methodDescriptor_Daemon_MonitorHost = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_MonitorHost = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.MonitorHostResponse, - /** - * @param {!proto.daemon.Empty} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.Empty} request */ function(request) { return request.serializeBinary(); }, @@ -2436,10 +2272,7 @@ const methodDescriptor_Daemon_Version = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.Empty, proto.daemon.VersionResponse, - /** - * @param {!proto.daemon.Empty} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.Empty} request */ function(request) { return request.serializeBinary(); }, @@ -2455,10 +2288,7 @@ const methodDescriptor_Daemon_Version = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_Version = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.VersionResponse, - /** - * @param {!proto.daemon.Empty} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.Empty} request */ function(request) { return request.serializeBinary(); }, @@ -2493,7 +2323,7 @@ proto.daemon.DaemonClient.prototype.version = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.version = function(request, metadata) { @@ -2516,10 +2346,7 @@ const methodDescriptor_Daemon_ListCategories = new grpc.web.MethodDescriptor( grpc.web.MethodType.UNARY, proto.daemon.Empty, proto.daemon.ListCategoriesResponse, - /** - * @param {!proto.daemon.Empty} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.Empty} request */ function(request) { return request.serializeBinary(); }, @@ -2535,10 +2362,7 @@ const methodDescriptor_Daemon_ListCategories = new grpc.web.MethodDescriptor( */ const methodInfo_Daemon_ListCategories = new grpc.web.AbstractClientBase.MethodInfo( proto.daemon.ListCategoriesResponse, - /** - * @param {!proto.daemon.Empty} request - * @return {!Uint8Array} - */ + /** @param {!proto.daemon.Empty} request */ function(request) { return request.serializeBinary(); }, @@ -2573,7 +2397,7 @@ proto.daemon.DaemonClient.prototype.listCategories = * @param {?Object} metadata User defined * call metadata * @return {!Promise} - * Promise that resolves to the response + * A native promise that resolves to the response */ proto.daemon.DaemonPromiseClient.prototype.listCategories = function(request, metadata) { diff --git a/client/daemon_pb.js b/client/daemon_pb.js index b43c35e7..cd18c733 100644 --- a/client/daemon_pb.js +++ b/client/daemon_pb.js @@ -1,11 +1,15 @@ +// source: daemon.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; @@ -72,7 +76,6 @@ goog.exportSymbol('proto.daemon.UpdatePasswdResponse', null, global); goog.exportSymbol('proto.daemon.UpdateTeamPassRequest', null, global); goog.exportSymbol('proto.daemon.UpdateTeamPassResponse', null, global); goog.exportSymbol('proto.daemon.VersionResponse', null, global); - /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -83,24 +86,1291 @@ goog.exportSymbol('proto.daemon.VersionResponse', null, global); * @extends {jspb.Message} * @constructor */ -proto.daemon.AddNotificationRequest = function(opt_data) { +proto.daemon.AddNotificationRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.AddNotificationRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.AddNotificationRequest.displayName = 'proto.daemon.AddNotificationRequest'; +} +/** + * 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.daemon.AddNotificationResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.AddNotificationResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.AddNotificationResponse.displayName = 'proto.daemon.AddNotificationResponse'; +} +/** + * 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.daemon.AddChallengeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.AddChallengeRequest.repeatedFields_, null); +}; +goog.inherits(proto.daemon.AddChallengeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.AddChallengeRequest.displayName = 'proto.daemon.AddChallengeRequest'; +} +/** + * 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.daemon.AddChallengeResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.AddChallengeResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.AddChallengeResponse.displayName = 'proto.daemon.AddChallengeResponse'; +} +/** + * 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.daemon.GetExsByTagsReq = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.GetExsByTagsReq.repeatedFields_, null); +}; +goog.inherits(proto.daemon.GetExsByTagsReq, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.GetExsByTagsReq.displayName = 'proto.daemon.GetExsByTagsReq'; +} +/** + * 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.daemon.GetExsByTagsResp = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.GetExsByTagsResp.repeatedFields_, null); +}; +goog.inherits(proto.daemon.GetExsByTagsResp, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.GetExsByTagsResp.displayName = 'proto.daemon.GetExsByTagsResp'; +} +/** + * 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.daemon.GetExsByTagsResp.ExInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.GetExsByTagsResp.ExInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.GetExsByTagsResp.ExInfo.displayName = 'proto.daemon.GetExsByTagsResp.ExInfo'; +} +/** + * 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.daemon.DeleteTeamRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.DeleteTeamRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.DeleteTeamRequest.displayName = 'proto.daemon.DeleteTeamRequest'; +} +/** + * 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.daemon.DeleteTeamResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.DeleteTeamResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.DeleteTeamResponse.displayName = 'proto.daemon.DeleteTeamResponse'; +} +/** + * 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.daemon.UpdateTeamPassRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.UpdateTeamPassRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.UpdateTeamPassRequest.displayName = 'proto.daemon.UpdateTeamPassRequest'; +} +/** + * 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.daemon.UpdateTeamPassResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.UpdateTeamPassResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.UpdateTeamPassResponse.displayName = 'proto.daemon.UpdateTeamPassResponse'; +} +/** + * 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.daemon.SolveChallengeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.SolveChallengeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.SolveChallengeRequest.displayName = 'proto.daemon.SolveChallengeRequest'; +} +/** + * 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.daemon.SolveChallengeResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.SolveChallengeResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.SolveChallengeResponse.displayName = 'proto.daemon.SolveChallengeResponse'; +} +/** + * 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.daemon.Flag = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.Flag, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.Flag.displayName = 'proto.daemon.Flag'; +} +/** + * 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.daemon.TeamChalsInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.TeamChalsInfo.repeatedFields_, null); +}; +goog.inherits(proto.daemon.TeamChalsInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.TeamChalsInfo.displayName = 'proto.daemon.TeamChalsInfo'; +} +/** + * 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.daemon.CredsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.CredsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.CredsResponse.displayName = 'proto.daemon.CredsResponse'; +} +/** + * 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.daemon.Team = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.Team, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.Team.displayName = 'proto.daemon.Team'; +} +/** + * 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.daemon.SuspendEventRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.SuspendEventRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.SuspendEventRequest.displayName = 'proto.daemon.SuspendEventRequest'; +} +/** + * 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.daemon.SetTeamSuspendRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.SetTeamSuspendRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.SetTeamSuspendRequest.displayName = 'proto.daemon.SetTeamSuspendRequest'; +} +/** + * 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.daemon.DestroyUserRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.DestroyUserRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.DestroyUserRequest.displayName = 'proto.daemon.DestroyUserRequest'; +} +/** + * 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.daemon.DestroyUserResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.DestroyUserResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.DestroyUserResponse.displayName = 'proto.daemon.DestroyUserResponse'; +} +/** + * 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.daemon.UpdatePasswdRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.UpdatePasswdRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.UpdatePasswdRequest.displayName = 'proto.daemon.UpdatePasswdRequest'; +} +/** + * 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.daemon.UpdatePasswdResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.UpdatePasswdResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.UpdatePasswdResponse.displayName = 'proto.daemon.UpdatePasswdResponse'; +} +/** + * 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.daemon.LoginUserRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.LoginUserRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.LoginUserRequest.displayName = 'proto.daemon.LoginUserRequest'; +} +/** + * 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.daemon.LoginUserResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.LoginUserResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.LoginUserResponse.displayName = 'proto.daemon.LoginUserResponse'; +} +/** + * 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.daemon.SignupUserRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.SignupUserRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.SignupUserRequest.displayName = 'proto.daemon.SignupUserRequest'; +} +/** + * 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.daemon.InviteUserRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.InviteUserRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.InviteUserRequest.displayName = 'proto.daemon.InviteUserRequest'; +} +/** + * 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.daemon.InviteUserResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.InviteUserResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.InviteUserResponse.displayName = 'proto.daemon.InviteUserResponse'; +} +/** + * 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.daemon.ListUsersResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.ListUsersResponse.repeatedFields_, null); +}; +goog.inherits(proto.daemon.ListUsersResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.ListUsersResponse.displayName = 'proto.daemon.ListUsersResponse'; +} +/** + * 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.daemon.ListUsersResponse.UserInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.ListUsersResponse.UserInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.ListUsersResponse.UserInfo.displayName = 'proto.daemon.ListUsersResponse.UserInfo'; +} +/** + * 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.daemon.CreateEventRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.CreateEventRequest.repeatedFields_, null); +}; +goog.inherits(proto.daemon.CreateEventRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.CreateEventRequest.displayName = 'proto.daemon.CreateEventRequest'; +} +/** + * 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.daemon.TestEventLoadReq = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.TestEventLoadReq, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.TestEventLoadReq.displayName = 'proto.daemon.TestEventLoadReq'; +} +/** + * 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.daemon.TestEventLoadResp = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.TestEventLoadResp, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.TestEventLoadResp.displayName = 'proto.daemon.TestEventLoadResp'; +} +/** + * 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.daemon.ListEventsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.ListEventsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.ListEventsRequest.displayName = 'proto.daemon.ListEventsRequest'; +} +/** + * 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.daemon.ListEventsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.ListEventsResponse.repeatedFields_, null); +}; +goog.inherits(proto.daemon.ListEventsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.ListEventsResponse.displayName = 'proto.daemon.ListEventsResponse'; +} +/** + * 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.daemon.ListEventsResponse.Events = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.ListEventsResponse.Events, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.ListEventsResponse.Events.displayName = 'proto.daemon.ListEventsResponse.Events'; +} +/** + * 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.daemon.ListEventTeamsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.ListEventTeamsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.ListEventTeamsRequest.displayName = 'proto.daemon.ListEventTeamsRequest'; +} +/** + * 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.daemon.ListEventTeamsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.ListEventTeamsResponse.repeatedFields_, null); +}; +goog.inherits(proto.daemon.ListEventTeamsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.ListEventTeamsResponse.displayName = 'proto.daemon.ListEventTeamsResponse'; +} +/** + * 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.daemon.ListEventTeamsResponse.Teams = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.ListEventTeamsResponse.Teams, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.ListEventTeamsResponse.Teams.displayName = 'proto.daemon.ListEventTeamsResponse.Teams'; +} +/** + * 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.daemon.RestartTeamLabRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.RestartTeamLabRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.RestartTeamLabRequest.displayName = 'proto.daemon.RestartTeamLabRequest'; +} +/** + * 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.daemon.ResetExerciseRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.ResetExerciseRequest.repeatedFields_, null); +}; +goog.inherits(proto.daemon.ResetExerciseRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.ResetExerciseRequest.displayName = 'proto.daemon.ResetExerciseRequest'; +} +/** + * 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.daemon.ListExercisesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.ListExercisesResponse.repeatedFields_, null); +}; +goog.inherits(proto.daemon.ListExercisesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.ListExercisesResponse.displayName = 'proto.daemon.ListExercisesResponse'; +} +/** + * 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.daemon.ListExercisesResponse.Exercise = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.ListExercisesResponse.Exercise.repeatedFields_, null); +}; +goog.inherits(proto.daemon.ListExercisesResponse.Exercise, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.ListExercisesResponse.Exercise.displayName = 'proto.daemon.ListExercisesResponse.Exercise'; +} +/** + * 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.daemon.ListExercisesResponse.Exercise.ExerciseInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo.displayName = 'proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo'; +} +/** + * 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.daemon.ListCategoriesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.ListCategoriesResponse.repeatedFields_, null); +}; +goog.inherits(proto.daemon.ListCategoriesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.ListCategoriesResponse.displayName = 'proto.daemon.ListCategoriesResponse'; +} +/** + * 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.daemon.ListCategoriesResponse.Category = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.ListCategoriesResponse.Category, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.ListCategoriesResponse.Category.displayName = 'proto.daemon.ListCategoriesResponse.Category'; +} +/** + * 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.daemon.ResetTeamStatus = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.ResetTeamStatus, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.ResetTeamStatus.displayName = 'proto.daemon.ResetTeamStatus'; +} +/** + * 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.daemon.StopEventRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.StopEventRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.StopEventRequest.displayName = 'proto.daemon.StopEventRequest'; +} +/** + * 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.daemon.EventStatus = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.EventStatus, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.EventStatus.displayName = 'proto.daemon.EventStatus'; +} +/** + * 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.daemon.LabStatus = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.LabStatus, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.LabStatus.displayName = 'proto.daemon.LabStatus'; +} +/** + * 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.daemon.MonitorHostResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.MonitorHostResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.MonitorHostResponse.displayName = 'proto.daemon.MonitorHostResponse'; +} +/** + * 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.daemon.Empty = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.Empty, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.Empty.displayName = 'proto.daemon.Empty'; +} +/** + * 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.daemon.VersionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.VersionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.VersionResponse.displayName = 'proto.daemon.VersionResponse'; +} +/** + * 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.daemon.ListFrontendsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.ListFrontendsResponse.repeatedFields_, null); +}; +goog.inherits(proto.daemon.ListFrontendsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.ListFrontendsResponse.displayName = 'proto.daemon.ListFrontendsResponse'; +} +/** + * 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.daemon.ListFrontendsResponse.Frontend = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.ListFrontendsResponse.Frontend, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.ListFrontendsResponse.Frontend.displayName = 'proto.daemon.ListFrontendsResponse.Frontend'; +} +/** + * 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.daemon.ResetFrontendsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.ResetFrontendsRequest.repeatedFields_, null); +}; +goog.inherits(proto.daemon.ResetFrontendsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.ResetFrontendsRequest.displayName = 'proto.daemon.ResetFrontendsRequest'; +} +/** + * 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.daemon.SetFrontendMemoryRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.daemon.AddNotificationRequest, jspb.Message); +goog.inherits(proto.daemon.SetFrontendMemoryRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { - proto.daemon.AddNotificationRequest.displayName = 'proto.daemon.AddNotificationRequest'; + /** + * @public + * @override + */ + proto.daemon.SetFrontendMemoryRequest.displayName = 'proto.daemon.SetFrontendMemoryRequest'; +} +/** + * 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.daemon.SetFrontendCpuRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.SetFrontendCpuRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.SetFrontendCpuRequest.displayName = 'proto.daemon.SetFrontendCpuRequest'; +} +/** + * 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.daemon.GetTeamInfoRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.GetTeamInfoRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.GetTeamInfoRequest.displayName = 'proto.daemon.GetTeamInfoRequest'; +} +/** + * 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.daemon.GetTeamInfoResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.GetTeamInfoResponse.repeatedFields_, null); +}; +goog.inherits(proto.daemon.GetTeamInfoResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.GetTeamInfoResponse.displayName = 'proto.daemon.GetTeamInfoResponse'; +} +/** + * 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.daemon.GetTeamInfoResponse.Instance = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.daemon.GetTeamInfoResponse.Instance, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.daemon.GetTeamInfoResponse.Instance.displayName = 'proto.daemon.GetTeamInfoResponse.Instance'; } + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.AddNotificationRequest.prototype.toObject = function(opt_includeInstance) { @@ -110,8 +1380,8 @@ proto.daemon.AddNotificationRequest.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.AddNotificationRequest} msg The msg instance to transform. * @return {!Object} @@ -120,7 +1390,7 @@ proto.daemon.AddNotificationRequest.prototype.toObject = function(opt_includeIns proto.daemon.AddNotificationRequest.toObject = function(includeInstance, msg) { var f, obj = { message: jspb.Message.getFieldWithDefault(msg, 1, ""), - loggedusers: jspb.Message.getFieldWithDefault(msg, 2, false) + loggedusers: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) }; if (includeInstance) { @@ -220,58 +1490,47 @@ proto.daemon.AddNotificationRequest.prototype.getMessage = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.AddNotificationRequest} returns this + */ proto.daemon.AddNotificationRequest.prototype.setMessage = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional bool loggedUsers = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.daemon.AddNotificationRequest.prototype.getLoggedusers = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.daemon.AddNotificationRequest} returns this + */ proto.daemon.AddNotificationRequest.prototype.setLoggedusers = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; -/** - * 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.daemon.AddNotificationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.AddNotificationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.AddNotificationResponse.displayName = 'proto.daemon.AddNotificationResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.AddNotificationResponse.prototype.toObject = function(opt_includeInstance) { @@ -281,8 +1540,8 @@ proto.daemon.AddNotificationResponse.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.AddNotificationResponse} msg The msg instance to transform. * @return {!Object} @@ -379,30 +1638,16 @@ proto.daemon.AddNotificationResponse.prototype.getResponse = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.AddNotificationResponse} returns this + */ proto.daemon.AddNotificationResponse.prototype.setResponse = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.daemon.AddChallengeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.AddChallengeRequest.repeatedFields_, null); -}; -goog.inherits(proto.daemon.AddChallengeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.AddChallengeRequest.displayName = 'proto.daemon.AddChallengeRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -414,13 +1659,15 @@ proto.daemon.AddChallengeRequest.repeatedFields_ = [2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.AddChallengeRequest.prototype.toObject = function(opt_includeInstance) { @@ -430,8 +1677,8 @@ proto.daemon.AddChallengeRequest.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.AddChallengeRequest} msg The msg instance to transform. * @return {!Object} @@ -440,7 +1687,7 @@ proto.daemon.AddChallengeRequest.prototype.toObject = function(opt_includeInstan proto.daemon.AddChallengeRequest.toObject = function(includeInstance, msg) { var f, obj = { eventtag: jspb.Message.getFieldWithDefault(msg, 1, ""), - challengetagList: jspb.Message.getRepeatedField(msg, 2) + challengetagList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -540,9 +1787,12 @@ proto.daemon.AddChallengeRequest.prototype.getEventtag = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.AddChallengeRequest} returns this + */ proto.daemon.AddChallengeRequest.prototype.setEventtag = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -555,55 +1805,48 @@ proto.daemon.AddChallengeRequest.prototype.getChallengetagList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.daemon.AddChallengeRequest} returns this + */ proto.daemon.AddChallengeRequest.prototype.setChallengetagList = function(value) { - jspb.Message.setField(this, 2, value || []); + return jspb.Message.setField(this, 2, value || []); }; /** - * @param {!string} value + * @param {string} value * @param {number=} opt_index + * @return {!proto.daemon.AddChallengeRequest} returns this */ proto.daemon.AddChallengeRequest.prototype.addChallengetag = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 2, value, opt_index); + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.daemon.AddChallengeRequest} returns this + */ proto.daemon.AddChallengeRequest.prototype.clearChallengetagList = function() { - this.setChallengetagList([]); + return this.setChallengetagList([]); }; -/** - * 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.daemon.AddChallengeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.AddChallengeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.AddChallengeResponse.displayName = 'proto.daemon.AddChallengeResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.AddChallengeResponse.prototype.toObject = function(opt_includeInstance) { @@ -613,8 +1856,8 @@ proto.daemon.AddChallengeResponse.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.AddChallengeResponse} msg The msg instance to transform. * @return {!Object} @@ -711,30 +1954,16 @@ proto.daemon.AddChallengeResponse.prototype.getMessage = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.AddChallengeResponse} returns this + */ proto.daemon.AddChallengeResponse.prototype.setMessage = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.daemon.GetExsByTagsReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.GetExsByTagsReq.repeatedFields_, null); -}; -goog.inherits(proto.daemon.GetExsByTagsReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.GetExsByTagsReq.displayName = 'proto.daemon.GetExsByTagsReq'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -746,13 +1975,15 @@ proto.daemon.GetExsByTagsReq.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.GetExsByTagsReq.prototype.toObject = function(opt_includeInstance) { @@ -762,8 +1993,8 @@ proto.daemon.GetExsByTagsReq.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.GetExsByTagsReq} msg The msg instance to transform. * @return {!Object} @@ -771,7 +2002,7 @@ proto.daemon.GetExsByTagsReq.prototype.toObject = function(opt_includeInstance) */ proto.daemon.GetExsByTagsReq.toObject = function(includeInstance, msg) { var f, obj = { - tagsList: jspb.Message.getRepeatedField(msg, 1) + tagsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f }; if (includeInstance) { @@ -860,44 +2091,35 @@ proto.daemon.GetExsByTagsReq.prototype.getTagsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.daemon.GetExsByTagsReq} returns this + */ proto.daemon.GetExsByTagsReq.prototype.setTagsList = function(value) { - jspb.Message.setField(this, 1, value || []); + return jspb.Message.setField(this, 1, value || []); }; /** - * @param {!string} value + * @param {string} value * @param {number=} opt_index + * @return {!proto.daemon.GetExsByTagsReq} returns this */ proto.daemon.GetExsByTagsReq.prototype.addTags = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 1, value, opt_index); + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.daemon.GetExsByTagsReq} returns this + */ proto.daemon.GetExsByTagsReq.prototype.clearTagsList = function() { - this.setTagsList([]); + return this.setTagsList([]); }; -/** - * 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.daemon.GetExsByTagsResp = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.GetExsByTagsResp.repeatedFields_, null); -}; -goog.inherits(proto.daemon.GetExsByTagsResp, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.GetExsByTagsResp.displayName = 'proto.daemon.GetExsByTagsResp'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -909,13 +2131,15 @@ proto.daemon.GetExsByTagsResp.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.GetExsByTagsResp.prototype.toObject = function(opt_includeInstance) { @@ -925,8 +2149,8 @@ proto.daemon.GetExsByTagsResp.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.GetExsByTagsResp} msg The msg instance to transform. * @return {!Object} @@ -1018,34 +2242,19 @@ proto.daemon.GetExsByTagsResp.serializeBinaryToWriter = function(message, writer -/** - * 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.daemon.GetExsByTagsResp.ExInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.GetExsByTagsResp.ExInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.GetExsByTagsResp.ExInfo.displayName = 'proto.daemon.GetExsByTagsResp.ExInfo'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.GetExsByTagsResp.ExInfo.prototype.toObject = function(opt_includeInstance) { @@ -1055,8 +2264,8 @@ proto.daemon.GetExsByTagsResp.ExInfo.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.GetExsByTagsResp.ExInfo} msg The msg instance to transform. * @return {!Object} @@ -1165,9 +2374,12 @@ proto.daemon.GetExsByTagsResp.ExInfo.prototype.getName = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.GetExsByTagsResp.ExInfo} returns this + */ proto.daemon.GetExsByTagsResp.ExInfo.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1180,9 +2392,12 @@ proto.daemon.GetExsByTagsResp.ExInfo.prototype.getTag = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.GetExsByTagsResp.ExInfo} returns this + */ proto.daemon.GetExsByTagsResp.ExInfo.prototype.setTag = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -1196,9 +2411,12 @@ proto.daemon.GetExsByTagsResp.prototype.getExercisesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.daemon.GetExsByTagsResp} returns this +*/ proto.daemon.GetExsByTagsResp.prototype.setExercisesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -1212,40 +2430,29 @@ proto.daemon.GetExsByTagsResp.prototype.addExercises = function(opt_value, opt_i }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.daemon.GetExsByTagsResp} returns this + */ proto.daemon.GetExsByTagsResp.prototype.clearExercisesList = function() { - this.setExercisesList([]); + return this.setExercisesList([]); }; -/** - * 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.daemon.DeleteTeamRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.DeleteTeamRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.DeleteTeamRequest.displayName = 'proto.daemon.DeleteTeamRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.DeleteTeamRequest.prototype.toObject = function(opt_includeInstance) { @@ -1255,8 +2462,8 @@ proto.daemon.DeleteTeamRequest.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.DeleteTeamRequest} msg The msg instance to transform. * @return {!Object} @@ -1365,9 +2572,12 @@ proto.daemon.DeleteTeamRequest.prototype.getEvtag = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.DeleteTeamRequest} returns this + */ proto.daemon.DeleteTeamRequest.prototype.setEvtag = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1380,41 +2590,29 @@ proto.daemon.DeleteTeamRequest.prototype.getTeamid = function() { }; -/** @param {string} value */ -proto.daemon.DeleteTeamRequest.prototype.setTeamid = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * 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 +/** + * @param {string} value + * @return {!proto.daemon.DeleteTeamRequest} returns this */ -proto.daemon.DeleteTeamResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.daemon.DeleteTeamRequest.prototype.setTeamid = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; -goog.inherits(proto.daemon.DeleteTeamResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.DeleteTeamResponse.displayName = 'proto.daemon.DeleteTeamResponse'; -} + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.DeleteTeamResponse.prototype.toObject = function(opt_includeInstance) { @@ -1424,8 +2622,8 @@ proto.daemon.DeleteTeamResponse.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.DeleteTeamResponse} msg The msg instance to transform. * @return {!Object} @@ -1522,41 +2720,29 @@ proto.daemon.DeleteTeamResponse.prototype.getMessage = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.DeleteTeamResponse} returns this + */ proto.daemon.DeleteTeamResponse.prototype.setMessage = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.daemon.UpdateTeamPassRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.UpdateTeamPassRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.UpdateTeamPassRequest.displayName = 'proto.daemon.UpdateTeamPassRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.UpdateTeamPassRequest.prototype.toObject = function(opt_includeInstance) { @@ -1566,8 +2752,8 @@ proto.daemon.UpdateTeamPassRequest.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.UpdateTeamPassRequest} msg The msg instance to transform. * @return {!Object} @@ -1700,9 +2886,12 @@ proto.daemon.UpdateTeamPassRequest.prototype.getEventtag = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.UpdateTeamPassRequest} returns this + */ proto.daemon.UpdateTeamPassRequest.prototype.setEventtag = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1715,9 +2904,12 @@ proto.daemon.UpdateTeamPassRequest.prototype.getTeamid = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.UpdateTeamPassRequest} returns this + */ proto.daemon.UpdateTeamPassRequest.prototype.setTeamid = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -1730,9 +2922,12 @@ proto.daemon.UpdateTeamPassRequest.prototype.getPassword = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.UpdateTeamPassRequest} returns this + */ proto.daemon.UpdateTeamPassRequest.prototype.setPassword = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -1745,41 +2940,29 @@ proto.daemon.UpdateTeamPassRequest.prototype.getPasswordrepeat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.UpdateTeamPassRequest} returns this + */ proto.daemon.UpdateTeamPassRequest.prototype.setPasswordrepeat = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; -/** - * 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.daemon.UpdateTeamPassResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.UpdateTeamPassResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.UpdateTeamPassResponse.displayName = 'proto.daemon.UpdateTeamPassResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.UpdateTeamPassResponse.prototype.toObject = function(opt_includeInstance) { @@ -1789,8 +2972,8 @@ proto.daemon.UpdateTeamPassResponse.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.UpdateTeamPassResponse} msg The msg instance to transform. * @return {!Object} @@ -1887,41 +3070,29 @@ proto.daemon.UpdateTeamPassResponse.prototype.getStatus = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.UpdateTeamPassResponse} returns this + */ proto.daemon.UpdateTeamPassResponse.prototype.setStatus = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.daemon.SolveChallengeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.SolveChallengeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.SolveChallengeRequest.displayName = 'proto.daemon.SolveChallengeRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.SolveChallengeRequest.prototype.toObject = function(opt_includeInstance) { @@ -1931,8 +3102,8 @@ proto.daemon.SolveChallengeRequest.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.SolveChallengeRequest} msg The msg instance to transform. * @return {!Object} @@ -2053,9 +3224,12 @@ proto.daemon.SolveChallengeRequest.prototype.getEventtag = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.SolveChallengeRequest} returns this + */ proto.daemon.SolveChallengeRequest.prototype.setEventtag = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -2068,9 +3242,12 @@ proto.daemon.SolveChallengeRequest.prototype.getTeamid = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.SolveChallengeRequest} returns this + */ proto.daemon.SolveChallengeRequest.prototype.setTeamid = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -2083,41 +3260,29 @@ proto.daemon.SolveChallengeRequest.prototype.getChallengetag = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.SolveChallengeRequest} returns this + */ proto.daemon.SolveChallengeRequest.prototype.setChallengetag = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * 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.daemon.SolveChallengeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.SolveChallengeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.SolveChallengeResponse.displayName = 'proto.daemon.SolveChallengeResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.SolveChallengeResponse.prototype.toObject = function(opt_includeInstance) { @@ -2127,8 +3292,8 @@ proto.daemon.SolveChallengeResponse.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.SolveChallengeResponse} msg The msg instance to transform. * @return {!Object} @@ -2225,41 +3390,29 @@ proto.daemon.SolveChallengeResponse.prototype.getStatus = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.SolveChallengeResponse} returns this + */ proto.daemon.SolveChallengeResponse.prototype.setStatus = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.daemon.Flag = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.Flag, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.Flag.displayName = 'proto.daemon.Flag'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.Flag.prototype.toObject = function(opt_includeInstance) { @@ -2269,8 +3422,8 @@ proto.daemon.Flag.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.Flag} msg The msg instance to transform. * @return {!Object} @@ -2391,9 +3544,12 @@ proto.daemon.Flag.prototype.getChallengename = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.Flag} returns this + */ proto.daemon.Flag.prototype.setChallengename = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -2406,9 +3562,12 @@ proto.daemon.Flag.prototype.getChallengetag = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.Flag} returns this + */ proto.daemon.Flag.prototype.setChallengetag = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -2421,30 +3580,16 @@ proto.daemon.Flag.prototype.getChallengeflag = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.Flag} returns this + */ proto.daemon.Flag.prototype.setChallengeflag = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * 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.daemon.TeamChalsInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.TeamChalsInfo.repeatedFields_, null); -}; -goog.inherits(proto.daemon.TeamChalsInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.TeamChalsInfo.displayName = 'proto.daemon.TeamChalsInfo'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -2456,13 +3601,15 @@ proto.daemon.TeamChalsInfo.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.TeamChalsInfo.prototype.toObject = function(opt_includeInstance) { @@ -2472,8 +3619,8 @@ proto.daemon.TeamChalsInfo.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.TeamChalsInfo} msg The msg instance to transform. * @return {!Object} @@ -2574,9 +3721,12 @@ proto.daemon.TeamChalsInfo.prototype.getFlagsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.daemon.TeamChalsInfo} returns this +*/ proto.daemon.TeamChalsInfo.prototype.setFlagsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -2590,40 +3740,29 @@ proto.daemon.TeamChalsInfo.prototype.addFlags = function(opt_value, opt_index) { }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.daemon.TeamChalsInfo} returns this + */ proto.daemon.TeamChalsInfo.prototype.clearFlagsList = function() { - this.setFlagsList([]); + return this.setFlagsList([]); }; -/** - * 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.daemon.CredsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.CredsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.CredsResponse.displayName = 'proto.daemon.CredsResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.CredsResponse.prototype.toObject = function(opt_includeInstance) { @@ -2633,8 +3772,8 @@ proto.daemon.CredsResponse.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.CredsResponse} msg The msg instance to transform. * @return {!Object} @@ -2743,9 +3882,12 @@ proto.daemon.CredsResponse.prototype.getUsername = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.CredsResponse} returns this + */ proto.daemon.CredsResponse.prototype.setUsername = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -2758,41 +3900,29 @@ proto.daemon.CredsResponse.prototype.getPassword = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.CredsResponse} returns this + */ proto.daemon.CredsResponse.prototype.setPassword = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.daemon.Team = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.Team, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.Team.displayName = 'proto.daemon.Team'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.Team.prototype.toObject = function(opt_includeInstance) { @@ -2802,8 +3932,8 @@ proto.daemon.Team.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.Team} msg The msg instance to transform. * @return {!Object} @@ -2900,41 +4030,29 @@ proto.daemon.Team.prototype.getId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.Team} returns this + */ proto.daemon.Team.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.daemon.SuspendEventRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.SuspendEventRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.SuspendEventRequest.displayName = 'proto.daemon.SuspendEventRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.SuspendEventRequest.prototype.toObject = function(opt_includeInstance) { @@ -2944,8 +4062,8 @@ proto.daemon.SuspendEventRequest.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.SuspendEventRequest} msg The msg instance to transform. * @return {!Object} @@ -2954,7 +4072,7 @@ proto.daemon.SuspendEventRequest.prototype.toObject = function(opt_includeInstan proto.daemon.SuspendEventRequest.toObject = function(includeInstance, msg) { var f, obj = { eventtag: jspb.Message.getFieldWithDefault(msg, 1, ""), - suspend: jspb.Message.getFieldWithDefault(msg, 2, false) + suspend: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) }; if (includeInstance) { @@ -3054,58 +4172,47 @@ proto.daemon.SuspendEventRequest.prototype.getEventtag = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.SuspendEventRequest} returns this + */ proto.daemon.SuspendEventRequest.prototype.setEventtag = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional bool suspend = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.daemon.SuspendEventRequest.prototype.getSuspend = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.daemon.SuspendEventRequest} returns this + */ proto.daemon.SuspendEventRequest.prototype.setSuspend = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; -/** - * 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.daemon.SetTeamSuspendRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.SetTeamSuspendRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.SetTeamSuspendRequest.displayName = 'proto.daemon.SetTeamSuspendRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.SetTeamSuspendRequest.prototype.toObject = function(opt_includeInstance) { @@ -3115,8 +4222,8 @@ proto.daemon.SetTeamSuspendRequest.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.SetTeamSuspendRequest} msg The msg instance to transform. * @return {!Object} @@ -3126,7 +4233,7 @@ proto.daemon.SetTeamSuspendRequest.toObject = function(includeInstance, msg) { var f, obj = { teamid: jspb.Message.getFieldWithDefault(msg, 1, ""), eventtag: jspb.Message.getFieldWithDefault(msg, 2, ""), - suspend: jspb.Message.getFieldWithDefault(msg, 3, false) + suspend: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) }; if (includeInstance) { @@ -3237,9 +4344,12 @@ proto.daemon.SetTeamSuspendRequest.prototype.getTeamid = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.SetTeamSuspendRequest} returns this + */ proto.daemon.SetTeamSuspendRequest.prototype.setTeamid = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -3252,58 +4362,47 @@ proto.daemon.SetTeamSuspendRequest.prototype.getEventtag = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.SetTeamSuspendRequest} returns this + */ proto.daemon.SetTeamSuspendRequest.prototype.setEventtag = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional bool suspend = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.daemon.SetTeamSuspendRequest.prototype.getSuspend = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); -}; - - -/** @param {boolean} value */ -proto.daemon.SetTeamSuspendRequest.prototype.setSuspend = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; - /** - * 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 + * @param {boolean} value + * @return {!proto.daemon.SetTeamSuspendRequest} returns this */ -proto.daemon.DestroyUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.DestroyUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.DestroyUserRequest.displayName = 'proto.daemon.DestroyUserRequest'; -} +proto.daemon.SetTeamSuspendRequest.prototype.setSuspend = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.DestroyUserRequest.prototype.toObject = function(opt_includeInstance) { @@ -3313,8 +4412,8 @@ proto.daemon.DestroyUserRequest.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.DestroyUserRequest} msg The msg instance to transform. * @return {!Object} @@ -3411,41 +4510,29 @@ proto.daemon.DestroyUserRequest.prototype.getUsername = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.DestroyUserRequest} returns this + */ proto.daemon.DestroyUserRequest.prototype.setUsername = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.daemon.DestroyUserResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.DestroyUserResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.DestroyUserResponse.displayName = 'proto.daemon.DestroyUserResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.DestroyUserResponse.prototype.toObject = function(opt_includeInstance) { @@ -3455,8 +4542,8 @@ proto.daemon.DestroyUserResponse.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.DestroyUserResponse} msg The msg instance to transform. * @return {!Object} @@ -3553,41 +4640,29 @@ proto.daemon.DestroyUserResponse.prototype.getMessage = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.DestroyUserResponse} returns this + */ proto.daemon.DestroyUserResponse.prototype.setMessage = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.daemon.UpdatePasswdRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.UpdatePasswdRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.UpdatePasswdRequest.displayName = 'proto.daemon.UpdatePasswdRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.UpdatePasswdRequest.prototype.toObject = function(opt_includeInstance) { @@ -3597,8 +4672,8 @@ proto.daemon.UpdatePasswdRequest.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.UpdatePasswdRequest} msg The msg instance to transform. * @return {!Object} @@ -3707,9 +4782,12 @@ proto.daemon.UpdatePasswdRequest.prototype.getUsername = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.UpdatePasswdRequest} returns this + */ proto.daemon.UpdatePasswdRequest.prototype.setUsername = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -3722,41 +4800,29 @@ proto.daemon.UpdatePasswdRequest.prototype.getPassword = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.UpdatePasswdRequest} returns this + */ proto.daemon.UpdatePasswdRequest.prototype.setPassword = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.daemon.UpdatePasswdResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.UpdatePasswdResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.UpdatePasswdResponse.displayName = 'proto.daemon.UpdatePasswdResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.UpdatePasswdResponse.prototype.toObject = function(opt_includeInstance) { @@ -3766,8 +4832,8 @@ proto.daemon.UpdatePasswdResponse.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.UpdatePasswdResponse} msg The msg instance to transform. * @return {!Object} @@ -3864,41 +4930,29 @@ proto.daemon.UpdatePasswdResponse.prototype.getMessage = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.UpdatePasswdResponse} returns this + */ proto.daemon.UpdatePasswdResponse.prototype.setMessage = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.daemon.LoginUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.LoginUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.LoginUserRequest.displayName = 'proto.daemon.LoginUserRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.LoginUserRequest.prototype.toObject = function(opt_includeInstance) { @@ -3908,8 +4962,8 @@ proto.daemon.LoginUserRequest.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.LoginUserRequest} msg The msg instance to transform. * @return {!Object} @@ -4018,9 +5072,12 @@ proto.daemon.LoginUserRequest.prototype.getUsername = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.LoginUserRequest} returns this + */ proto.daemon.LoginUserRequest.prototype.setUsername = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -4033,41 +5090,29 @@ proto.daemon.LoginUserRequest.prototype.getPassword = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.LoginUserRequest} returns this + */ proto.daemon.LoginUserRequest.prototype.setPassword = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.daemon.LoginUserResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.LoginUserResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.LoginUserResponse.displayName = 'proto.daemon.LoginUserResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.LoginUserResponse.prototype.toObject = function(opt_includeInstance) { @@ -4077,8 +5122,8 @@ proto.daemon.LoginUserResponse.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.LoginUserResponse} msg The msg instance to transform. * @return {!Object} @@ -4187,9 +5232,12 @@ proto.daemon.LoginUserResponse.prototype.getToken = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.LoginUserResponse} returns this + */ proto.daemon.LoginUserResponse.prototype.setToken = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -4202,41 +5250,29 @@ proto.daemon.LoginUserResponse.prototype.getError = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.LoginUserResponse} returns this + */ proto.daemon.LoginUserResponse.prototype.setError = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.daemon.SignupUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.SignupUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.SignupUserRequest.displayName = 'proto.daemon.SignupUserRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.SignupUserRequest.prototype.toObject = function(opt_includeInstance) { @@ -4246,8 +5282,8 @@ proto.daemon.SignupUserRequest.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.SignupUserRequest} msg The msg instance to transform. * @return {!Object} @@ -4404,9 +5440,12 @@ proto.daemon.SignupUserRequest.prototype.getKey = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.SignupUserRequest} returns this + */ proto.daemon.SignupUserRequest.prototype.setKey = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -4419,9 +5458,12 @@ proto.daemon.SignupUserRequest.prototype.getUsername = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.SignupUserRequest} returns this + */ proto.daemon.SignupUserRequest.prototype.setUsername = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -4434,9 +5476,12 @@ proto.daemon.SignupUserRequest.prototype.getName = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.SignupUserRequest} returns this + */ proto.daemon.SignupUserRequest.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -4449,9 +5494,12 @@ proto.daemon.SignupUserRequest.prototype.getSurname = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.SignupUserRequest} returns this + */ proto.daemon.SignupUserRequest.prototype.setSurname = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -4464,9 +5512,12 @@ proto.daemon.SignupUserRequest.prototype.getEmail = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.SignupUserRequest} returns this + */ proto.daemon.SignupUserRequest.prototype.setEmail = function(value) { - jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; @@ -4479,41 +5530,29 @@ proto.daemon.SignupUserRequest.prototype.getPassword = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.SignupUserRequest} returns this + */ proto.daemon.SignupUserRequest.prototype.setPassword = function(value) { - jspb.Message.setProto3StringField(this, 6, value); + return jspb.Message.setProto3StringField(this, 6, value); }; -/** - * 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.daemon.InviteUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.InviteUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.InviteUserRequest.displayName = 'proto.daemon.InviteUserRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.InviteUserRequest.prototype.toObject = function(opt_includeInstance) { @@ -4523,8 +5562,8 @@ proto.daemon.InviteUserRequest.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.InviteUserRequest} msg The msg instance to transform. * @return {!Object} @@ -4532,8 +5571,8 @@ proto.daemon.InviteUserRequest.prototype.toObject = function(opt_includeInstance */ proto.daemon.InviteUserRequest.toObject = function(includeInstance, msg) { var f, obj = { - superUser: jspb.Message.getFieldWithDefault(msg, 1, false), - npUser: jspb.Message.getFieldWithDefault(msg, 2, false) + superUser: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + npUser: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) }; if (includeInstance) { @@ -4626,67 +5665,54 @@ proto.daemon.InviteUserRequest.serializeBinaryToWriter = function(message, write /** * optional bool super_user = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.daemon.InviteUserRequest.prototype.getSuperUser = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.daemon.InviteUserRequest} returns this + */ proto.daemon.InviteUserRequest.prototype.setSuperUser = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; /** * optional bool np_user = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.daemon.InviteUserRequest.prototype.getNpUser = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.daemon.InviteUserRequest} returns this + */ proto.daemon.InviteUserRequest.prototype.setNpUser = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; -/** - * 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.daemon.InviteUserResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.InviteUserResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.InviteUserResponse.displayName = 'proto.daemon.InviteUserResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.InviteUserResponse.prototype.toObject = function(opt_includeInstance) { @@ -4696,8 +5722,8 @@ proto.daemon.InviteUserResponse.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.InviteUserResponse} msg The msg instance to transform. * @return {!Object} @@ -4806,9 +5832,12 @@ proto.daemon.InviteUserResponse.prototype.getKey = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.InviteUserResponse} returns this + */ proto.daemon.InviteUserResponse.prototype.setKey = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -4821,30 +5850,16 @@ proto.daemon.InviteUserResponse.prototype.getError = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.InviteUserResponse} returns this + */ proto.daemon.InviteUserResponse.prototype.setError = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.daemon.ListUsersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.ListUsersResponse.repeatedFields_, null); -}; -goog.inherits(proto.daemon.ListUsersResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.ListUsersResponse.displayName = 'proto.daemon.ListUsersResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -4856,13 +5871,15 @@ proto.daemon.ListUsersResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.ListUsersResponse.prototype.toObject = function(opt_includeInstance) { @@ -4872,8 +5889,8 @@ proto.daemon.ListUsersResponse.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.ListUsersResponse} msg The msg instance to transform. * @return {!Object} @@ -4977,34 +5994,19 @@ proto.daemon.ListUsersResponse.serializeBinaryToWriter = function(message, write -/** - * 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.daemon.ListUsersResponse.UserInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.ListUsersResponse.UserInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.ListUsersResponse.UserInfo.displayName = 'proto.daemon.ListUsersResponse.UserInfo'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.ListUsersResponse.UserInfo.prototype.toObject = function(opt_includeInstance) { @@ -5014,8 +6016,8 @@ proto.daemon.ListUsersResponse.UserInfo.prototype.toObject = function(opt_includ /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.ListUsersResponse.UserInfo} msg The msg instance to transform. * @return {!Object} @@ -5028,8 +6030,8 @@ proto.daemon.ListUsersResponse.UserInfo.toObject = function(includeInstance, msg surname: jspb.Message.getFieldWithDefault(msg, 3, ""), email: jspb.Message.getFieldWithDefault(msg, 4, ""), createdat: jspb.Message.getFieldWithDefault(msg, 5, ""), - issuperuser: jspb.Message.getFieldWithDefault(msg, 6, false), - isnpuser: jspb.Message.getFieldWithDefault(msg, 7, false) + issuperuser: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + isnpuser: jspb.Message.getBooleanFieldWithDefault(msg, 7, false) }; if (includeInstance) { @@ -5184,9 +6186,12 @@ proto.daemon.ListUsersResponse.UserInfo.prototype.getUsername = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListUsersResponse.UserInfo} returns this + */ proto.daemon.ListUsersResponse.UserInfo.prototype.setUsername = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -5199,9 +6204,12 @@ proto.daemon.ListUsersResponse.UserInfo.prototype.getName = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListUsersResponse.UserInfo} returns this + */ proto.daemon.ListUsersResponse.UserInfo.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -5214,9 +6222,12 @@ proto.daemon.ListUsersResponse.UserInfo.prototype.getSurname = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListUsersResponse.UserInfo} returns this + */ proto.daemon.ListUsersResponse.UserInfo.prototype.setSurname = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -5229,9 +6240,12 @@ proto.daemon.ListUsersResponse.UserInfo.prototype.getEmail = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListUsersResponse.UserInfo} returns this + */ proto.daemon.ListUsersResponse.UserInfo.prototype.setEmail = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -5244,43 +6258,48 @@ proto.daemon.ListUsersResponse.UserInfo.prototype.getCreatedat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListUsersResponse.UserInfo} returns this + */ proto.daemon.ListUsersResponse.UserInfo.prototype.setCreatedat = function(value) { - jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; /** * optional bool isSuperUser = 6; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.daemon.ListUsersResponse.UserInfo.prototype.getIssuperuser = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 6, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.daemon.ListUsersResponse.UserInfo} returns this + */ proto.daemon.ListUsersResponse.UserInfo.prototype.setIssuperuser = function(value) { - jspb.Message.setProto3BooleanField(this, 6, value); + return jspb.Message.setProto3BooleanField(this, 6, value); }; /** * optional bool isNPUser = 7; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.daemon.ListUsersResponse.UserInfo.prototype.getIsnpuser = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 7, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.daemon.ListUsersResponse.UserInfo} returns this + */ proto.daemon.ListUsersResponse.UserInfo.prototype.setIsnpuser = function(value) { - jspb.Message.setProto3BooleanField(this, 7, value); + return jspb.Message.setProto3BooleanField(this, 7, value); }; @@ -5294,9 +6313,12 @@ proto.daemon.ListUsersResponse.prototype.getUsersList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.daemon.ListUsersResponse} returns this +*/ proto.daemon.ListUsersResponse.prototype.setUsersList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -5310,8 +6332,12 @@ proto.daemon.ListUsersResponse.prototype.addUsers = function(opt_value, opt_inde }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.daemon.ListUsersResponse} returns this + */ proto.daemon.ListUsersResponse.prototype.clearUsersList = function() { - this.setUsersList([]); + return this.setUsersList([]); }; @@ -5322,32 +6348,18 @@ proto.daemon.ListUsersResponse.prototype.clearUsersList = function() { proto.daemon.ListUsersResponse.prototype.getError = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; - - -/** @param {string} value */ -proto.daemon.ListUsersResponse.prototype.setError = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * 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 + + +/** + * @param {string} value + * @return {!proto.daemon.ListUsersResponse} returns this */ -proto.daemon.CreateEventRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.CreateEventRequest.repeatedFields_, null); +proto.daemon.ListUsersResponse.prototype.setError = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; -goog.inherits(proto.daemon.CreateEventRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.CreateEventRequest.displayName = 'proto.daemon.CreateEventRequest'; -} + + + /** * List of repeated fields within this message type. * @private {!Array} @@ -5359,13 +6371,15 @@ proto.daemon.CreateEventRequest.repeatedFields_ = [3,4,11]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.CreateEventRequest.prototype.toObject = function(opt_includeInstance) { @@ -5375,8 +6389,8 @@ proto.daemon.CreateEventRequest.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.CreateEventRequest} msg The msg instance to transform. * @return {!Object} @@ -5386,15 +6400,15 @@ proto.daemon.CreateEventRequest.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), tag: jspb.Message.getFieldWithDefault(msg, 2, ""), - frontendsList: jspb.Message.getRepeatedField(msg, 3), - exercisesList: jspb.Message.getRepeatedField(msg, 4), + frontendsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + exercisesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, available: jspb.Message.getFieldWithDefault(msg, 5, 0), capacity: jspb.Message.getFieldWithDefault(msg, 6, 0), starttime: jspb.Message.getFieldWithDefault(msg, 7, ""), finishtime: jspb.Message.getFieldWithDefault(msg, 8, ""), - onlyvpn: jspb.Message.getFieldWithDefault(msg, 9, false), + onlyvpn: jspb.Message.getFieldWithDefault(msg, 9, 0), secretevent: jspb.Message.getFieldWithDefault(msg, 10, ""), - disableexercisesList: jspb.Message.getRepeatedField(msg, 11) + disableexercisesList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f }; if (includeInstance) { @@ -5464,7 +6478,7 @@ proto.daemon.CreateEventRequest.deserializeBinaryFromReader = function(msg, read msg.setFinishtime(value); break; case 9: - var value = /** @type {boolean} */ (reader.readBool()); + var value = /** @type {number} */ (reader.readInt32()); msg.setOnlyvpn(value); break; case 10: @@ -5561,8 +6575,8 @@ proto.daemon.CreateEventRequest.serializeBinaryToWriter = function(message, writ ); } f = message.getOnlyvpn(); - if (f) { - writer.writeBool( + if (f !== 0) { + writer.writeInt32( 9, f ); @@ -5593,9 +6607,12 @@ proto.daemon.CreateEventRequest.prototype.getName = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.CreateEventRequest} returns this + */ proto.daemon.CreateEventRequest.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -5608,9 +6625,12 @@ proto.daemon.CreateEventRequest.prototype.getTag = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.CreateEventRequest} returns this + */ proto.daemon.CreateEventRequest.prototype.setTag = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -5623,23 +6643,31 @@ proto.daemon.CreateEventRequest.prototype.getFrontendsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.daemon.CreateEventRequest} returns this + */ proto.daemon.CreateEventRequest.prototype.setFrontendsList = function(value) { - jspb.Message.setField(this, 3, value || []); + return jspb.Message.setField(this, 3, value || []); }; /** - * @param {!string} value + * @param {string} value * @param {number=} opt_index + * @return {!proto.daemon.CreateEventRequest} returns this */ proto.daemon.CreateEventRequest.prototype.addFrontends = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 3, value, opt_index); + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.daemon.CreateEventRequest} returns this + */ proto.daemon.CreateEventRequest.prototype.clearFrontendsList = function() { - this.setFrontendsList([]); + return this.setFrontendsList([]); }; @@ -5652,23 +6680,31 @@ proto.daemon.CreateEventRequest.prototype.getExercisesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.daemon.CreateEventRequest} returns this + */ proto.daemon.CreateEventRequest.prototype.setExercisesList = function(value) { - jspb.Message.setField(this, 4, value || []); + return jspb.Message.setField(this, 4, value || []); }; /** - * @param {!string} value + * @param {string} value * @param {number=} opt_index + * @return {!proto.daemon.CreateEventRequest} returns this */ proto.daemon.CreateEventRequest.prototype.addExercises = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 4, value, opt_index); + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.daemon.CreateEventRequest} returns this + */ proto.daemon.CreateEventRequest.prototype.clearExercisesList = function() { - this.setExercisesList([]); + return this.setExercisesList([]); }; @@ -5681,9 +6717,12 @@ proto.daemon.CreateEventRequest.prototype.getAvailable = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.daemon.CreateEventRequest} returns this + */ proto.daemon.CreateEventRequest.prototype.setAvailable = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -5696,9 +6735,12 @@ proto.daemon.CreateEventRequest.prototype.getCapacity = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.daemon.CreateEventRequest} returns this + */ proto.daemon.CreateEventRequest.prototype.setCapacity = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; @@ -5711,9 +6753,12 @@ proto.daemon.CreateEventRequest.prototype.getStarttime = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.CreateEventRequest} returns this + */ proto.daemon.CreateEventRequest.prototype.setStarttime = function(value) { - jspb.Message.setProto3StringField(this, 7, value); + return jspb.Message.setProto3StringField(this, 7, value); }; @@ -5726,26 +6771,30 @@ proto.daemon.CreateEventRequest.prototype.getFinishtime = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.CreateEventRequest} returns this + */ proto.daemon.CreateEventRequest.prototype.setFinishtime = function(value) { - jspb.Message.setProto3StringField(this, 8, value); + return jspb.Message.setProto3StringField(this, 8, value); }; /** - * optional bool onlyVPN = 9; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} + * optional int32 onlyVPN = 9; + * @return {number} */ proto.daemon.CreateEventRequest.prototype.getOnlyvpn = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 9, false)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); }; -/** @param {boolean} value */ +/** + * @param {number} value + * @return {!proto.daemon.CreateEventRequest} returns this + */ proto.daemon.CreateEventRequest.prototype.setOnlyvpn = function(value) { - jspb.Message.setProto3BooleanField(this, 9, value); + return jspb.Message.setProto3IntField(this, 9, value); }; @@ -5758,9 +6807,12 @@ proto.daemon.CreateEventRequest.prototype.getSecretevent = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.CreateEventRequest} returns this + */ proto.daemon.CreateEventRequest.prototype.setSecretevent = function(value) { - jspb.Message.setProto3StringField(this, 10, value); + return jspb.Message.setProto3StringField(this, 10, value); }; @@ -5773,55 +6825,48 @@ proto.daemon.CreateEventRequest.prototype.getDisableexercisesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.daemon.CreateEventRequest} returns this + */ proto.daemon.CreateEventRequest.prototype.setDisableexercisesList = function(value) { - jspb.Message.setField(this, 11, value || []); + return jspb.Message.setField(this, 11, value || []); }; /** - * @param {!string} value + * @param {string} value * @param {number=} opt_index + * @return {!proto.daemon.CreateEventRequest} returns this */ proto.daemon.CreateEventRequest.prototype.addDisableexercises = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 11, value, opt_index); + return jspb.Message.addToRepeatedField(this, 11, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.daemon.CreateEventRequest} returns this + */ proto.daemon.CreateEventRequest.prototype.clearDisableexercisesList = function() { - this.setDisableexercisesList([]); + return this.setDisableexercisesList([]); }; -/** - * 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.daemon.TestEventLoadReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.TestEventLoadReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.TestEventLoadReq.displayName = 'proto.daemon.TestEventLoadReq'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.TestEventLoadReq.prototype.toObject = function(opt_includeInstance) { @@ -5831,8 +6876,8 @@ proto.daemon.TestEventLoadReq.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.TestEventLoadReq} msg The msg instance to transform. * @return {!Object} @@ -5941,9 +6986,12 @@ proto.daemon.TestEventLoadReq.prototype.getEventname = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.TestEventLoadReq} returns this + */ proto.daemon.TestEventLoadReq.prototype.setEventname = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -5956,41 +7004,29 @@ proto.daemon.TestEventLoadReq.prototype.getNumberofteams = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.daemon.TestEventLoadReq} returns this + */ proto.daemon.TestEventLoadReq.prototype.setNumberofteams = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; -/** - * 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.daemon.TestEventLoadResp = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.TestEventLoadResp, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.TestEventLoadResp.displayName = 'proto.daemon.TestEventLoadResp'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.TestEventLoadResp.prototype.toObject = function(opt_includeInstance) { @@ -6000,8 +7036,8 @@ proto.daemon.TestEventLoadResp.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.TestEventLoadResp} msg The msg instance to transform. * @return {!Object} @@ -6098,41 +7134,29 @@ proto.daemon.TestEventLoadResp.prototype.getSignupresult = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.TestEventLoadResp} returns this + */ proto.daemon.TestEventLoadResp.prototype.setSignupresult = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.daemon.ListEventsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.ListEventsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.ListEventsRequest.displayName = 'proto.daemon.ListEventsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.ListEventsRequest.prototype.toObject = function(opt_includeInstance) { @@ -6142,8 +7166,8 @@ proto.daemon.ListEventsRequest.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.ListEventsRequest} msg The msg instance to transform. * @return {!Object} @@ -6240,30 +7264,16 @@ proto.daemon.ListEventsRequest.prototype.getStatus = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.daemon.ListEventsRequest} returns this + */ proto.daemon.ListEventsRequest.prototype.setStatus = function(value) { - jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3IntField(this, 1, value); }; -/** - * 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.daemon.ListEventsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.ListEventsResponse.repeatedFields_, null); -}; -goog.inherits(proto.daemon.ListEventsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.ListEventsResponse.displayName = 'proto.daemon.ListEventsResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -6275,13 +7285,15 @@ proto.daemon.ListEventsResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.ListEventsResponse.prototype.toObject = function(opt_includeInstance) { @@ -6291,8 +7303,8 @@ proto.daemon.ListEventsResponse.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.ListEventsResponse} msg The msg instance to transform. * @return {!Object} @@ -6384,34 +7396,19 @@ proto.daemon.ListEventsResponse.serializeBinaryToWriter = function(message, writ -/** - * 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.daemon.ListEventsResponse.Events = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.ListEventsResponse.Events, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.ListEventsResponse.Events.displayName = 'proto.daemon.ListEventsResponse.Events'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.ListEventsResponse.Events.prototype.toObject = function(opt_includeInstance) { @@ -6421,8 +7418,8 @@ proto.daemon.ListEventsResponse.Events.prototype.toObject = function(opt_include /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.ListEventsResponse.Events} msg The msg instance to transform. * @return {!Object} @@ -6639,9 +7636,12 @@ proto.daemon.ListEventsResponse.Events.prototype.getTag = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListEventsResponse.Events} returns this + */ proto.daemon.ListEventsResponse.Events.prototype.setTag = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -6654,9 +7654,12 @@ proto.daemon.ListEventsResponse.Events.prototype.getName = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListEventsResponse.Events} returns this + */ proto.daemon.ListEventsResponse.Events.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -6669,9 +7672,12 @@ proto.daemon.ListEventsResponse.Events.prototype.getTeamcount = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.daemon.ListEventsResponse.Events} returns this + */ proto.daemon.ListEventsResponse.Events.prototype.setTeamcount = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -6684,9 +7690,12 @@ proto.daemon.ListEventsResponse.Events.prototype.getExercises = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListEventsResponse.Events} returns this + */ proto.daemon.ListEventsResponse.Events.prototype.setExercises = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -6699,9 +7708,12 @@ proto.daemon.ListEventsResponse.Events.prototype.getAvailability = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.daemon.ListEventsResponse.Events} returns this + */ proto.daemon.ListEventsResponse.Events.prototype.setAvailability = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -6714,9 +7726,12 @@ proto.daemon.ListEventsResponse.Events.prototype.getCapacity = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.daemon.ListEventsResponse.Events} returns this + */ proto.daemon.ListEventsResponse.Events.prototype.setCapacity = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; @@ -6729,9 +7744,12 @@ proto.daemon.ListEventsResponse.Events.prototype.getCreationtime = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListEventsResponse.Events} returns this + */ proto.daemon.ListEventsResponse.Events.prototype.setCreationtime = function(value) { - jspb.Message.setProto3StringField(this, 7, value); + return jspb.Message.setProto3StringField(this, 7, value); }; @@ -6744,9 +7762,12 @@ proto.daemon.ListEventsResponse.Events.prototype.getFinishtime = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListEventsResponse.Events} returns this + */ proto.daemon.ListEventsResponse.Events.prototype.setFinishtime = function(value) { - jspb.Message.setProto3StringField(this, 8, value); + return jspb.Message.setProto3StringField(this, 8, value); }; @@ -6759,9 +7780,12 @@ proto.daemon.ListEventsResponse.Events.prototype.getStatus = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.daemon.ListEventsResponse.Events} returns this + */ proto.daemon.ListEventsResponse.Events.prototype.setStatus = function(value) { - jspb.Message.setProto3IntField(this, 9, value); + return jspb.Message.setProto3IntField(this, 9, value); }; @@ -6774,9 +7798,12 @@ proto.daemon.ListEventsResponse.Events.prototype.getCreatedby = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListEventsResponse.Events} returns this + */ proto.daemon.ListEventsResponse.Events.prototype.setCreatedby = function(value) { - jspb.Message.setProto3StringField(this, 10, value); + return jspb.Message.setProto3StringField(this, 10, value); }; @@ -6789,9 +7816,12 @@ proto.daemon.ListEventsResponse.Events.prototype.getSecretevent = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListEventsResponse.Events} returns this + */ proto.daemon.ListEventsResponse.Events.prototype.setSecretevent = function(value) { - jspb.Message.setProto3StringField(this, 11, value); + return jspb.Message.setProto3StringField(this, 11, value); }; @@ -6805,9 +7835,12 @@ proto.daemon.ListEventsResponse.prototype.getEventsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.daemon.ListEventsResponse} returns this +*/ proto.daemon.ListEventsResponse.prototype.setEventsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -6821,40 +7854,29 @@ proto.daemon.ListEventsResponse.prototype.addEvents = function(opt_value, opt_in }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.daemon.ListEventsResponse} returns this + */ proto.daemon.ListEventsResponse.prototype.clearEventsList = function() { - this.setEventsList([]); + return this.setEventsList([]); }; -/** - * 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.daemon.ListEventTeamsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.ListEventTeamsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.ListEventTeamsRequest.displayName = 'proto.daemon.ListEventTeamsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.ListEventTeamsRequest.prototype.toObject = function(opt_includeInstance) { @@ -6864,8 +7886,8 @@ proto.daemon.ListEventTeamsRequest.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.ListEventTeamsRequest} msg The msg instance to transform. * @return {!Object} @@ -6962,30 +7984,16 @@ proto.daemon.ListEventTeamsRequest.prototype.getTag = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListEventTeamsRequest} returns this + */ proto.daemon.ListEventTeamsRequest.prototype.setTag = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.daemon.ListEventTeamsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.ListEventTeamsResponse.repeatedFields_, null); -}; -goog.inherits(proto.daemon.ListEventTeamsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.ListEventTeamsResponse.displayName = 'proto.daemon.ListEventTeamsResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -6997,13 +8005,15 @@ proto.daemon.ListEventTeamsResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.ListEventTeamsResponse.prototype.toObject = function(opt_includeInstance) { @@ -7013,8 +8023,8 @@ proto.daemon.ListEventTeamsResponse.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.ListEventTeamsResponse} msg The msg instance to transform. * @return {!Object} @@ -7106,34 +8116,19 @@ proto.daemon.ListEventTeamsResponse.serializeBinaryToWriter = function(message, -/** - * 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.daemon.ListEventTeamsResponse.Teams = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.ListEventTeamsResponse.Teams, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.ListEventTeamsResponse.Teams.displayName = 'proto.daemon.ListEventTeamsResponse.Teams'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.ListEventTeamsResponse.Teams.prototype.toObject = function(opt_includeInstance) { @@ -7143,8 +8138,8 @@ proto.daemon.ListEventTeamsResponse.Teams.prototype.toObject = function(opt_incl /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.ListEventTeamsResponse.Teams} msg The msg instance to transform. * @return {!Object} @@ -7277,9 +8272,12 @@ proto.daemon.ListEventTeamsResponse.Teams.prototype.getId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListEventTeamsResponse.Teams} returns this + */ proto.daemon.ListEventTeamsResponse.Teams.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -7292,9 +8290,12 @@ proto.daemon.ListEventTeamsResponse.Teams.prototype.getName = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListEventTeamsResponse.Teams} returns this + */ proto.daemon.ListEventTeamsResponse.Teams.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -7307,9 +8308,12 @@ proto.daemon.ListEventTeamsResponse.Teams.prototype.getEmail = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListEventTeamsResponse.Teams} returns this + */ proto.daemon.ListEventTeamsResponse.Teams.prototype.setEmail = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -7322,9 +8326,12 @@ proto.daemon.ListEventTeamsResponse.Teams.prototype.getAccessedat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListEventTeamsResponse.Teams} returns this + */ proto.daemon.ListEventTeamsResponse.Teams.prototype.setAccessedat = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -7338,9 +8345,12 @@ proto.daemon.ListEventTeamsResponse.prototype.getTeamsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.daemon.ListEventTeamsResponse} returns this +*/ proto.daemon.ListEventTeamsResponse.prototype.setTeamsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -7351,43 +8361,32 @@ proto.daemon.ListEventTeamsResponse.prototype.setTeamsList = function(value) { */ proto.daemon.ListEventTeamsResponse.prototype.addTeams = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.daemon.ListEventTeamsResponse.Teams, opt_index); -}; - - -proto.daemon.ListEventTeamsResponse.prototype.clearTeamsList = function() { - this.setTeamsList([]); -}; - - - -/** - * 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 +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.daemon.ListEventTeamsResponse} returns this */ -proto.daemon.RestartTeamLabRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.daemon.ListEventTeamsResponse.prototype.clearTeamsList = function() { + return this.setTeamsList([]); }; -goog.inherits(proto.daemon.RestartTeamLabRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.RestartTeamLabRequest.displayName = 'proto.daemon.RestartTeamLabRequest'; -} + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.RestartTeamLabRequest.prototype.toObject = function(opt_includeInstance) { @@ -7397,8 +8396,8 @@ proto.daemon.RestartTeamLabRequest.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.RestartTeamLabRequest} msg The msg instance to transform. * @return {!Object} @@ -7507,9 +8506,12 @@ proto.daemon.RestartTeamLabRequest.prototype.getEventtag = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.RestartTeamLabRequest} returns this + */ proto.daemon.RestartTeamLabRequest.prototype.setEventtag = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -7522,30 +8524,16 @@ proto.daemon.RestartTeamLabRequest.prototype.getTeamid = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.RestartTeamLabRequest} returns this + */ proto.daemon.RestartTeamLabRequest.prototype.setTeamid = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.daemon.ResetExerciseRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.ResetExerciseRequest.repeatedFields_, null); -}; -goog.inherits(proto.daemon.ResetExerciseRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.ResetExerciseRequest.displayName = 'proto.daemon.ResetExerciseRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -7557,13 +8545,15 @@ proto.daemon.ResetExerciseRequest.repeatedFields_ = [3]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.ResetExerciseRequest.prototype.toObject = function(opt_includeInstance) { @@ -7573,8 +8563,8 @@ proto.daemon.ResetExerciseRequest.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.ResetExerciseRequest} msg The msg instance to transform. * @return {!Object} @@ -7698,9 +8688,12 @@ proto.daemon.ResetExerciseRequest.prototype.getExercisetag = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ResetExerciseRequest} returns this + */ proto.daemon.ResetExerciseRequest.prototype.setExercisetag = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -7713,9 +8706,12 @@ proto.daemon.ResetExerciseRequest.prototype.getEventtag = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ResetExerciseRequest} returns this + */ proto.daemon.ResetExerciseRequest.prototype.setEventtag = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -7729,9 +8725,12 @@ proto.daemon.ResetExerciseRequest.prototype.getTeamsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.daemon.ResetExerciseRequest} returns this +*/ proto.daemon.ResetExerciseRequest.prototype.setTeamsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 3, value); + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; @@ -7745,29 +8744,16 @@ proto.daemon.ResetExerciseRequest.prototype.addTeams = function(opt_value, opt_i }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.daemon.ResetExerciseRequest} returns this + */ proto.daemon.ResetExerciseRequest.prototype.clearTeamsList = function() { - this.setTeamsList([]); + return this.setTeamsList([]); }; -/** - * 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.daemon.ListExercisesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.ListExercisesResponse.repeatedFields_, null); -}; -goog.inherits(proto.daemon.ListExercisesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.ListExercisesResponse.displayName = 'proto.daemon.ListExercisesResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -7779,13 +8765,15 @@ proto.daemon.ListExercisesResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.ListExercisesResponse.prototype.toObject = function(opt_includeInstance) { @@ -7795,8 +8783,8 @@ proto.daemon.ListExercisesResponse.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.ListExercisesResponse} msg The msg instance to transform. * @return {!Object} @@ -7888,23 +8876,6 @@ proto.daemon.ListExercisesResponse.serializeBinaryToWriter = function(message, w -/** - * 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.daemon.ListExercisesResponse.Exercise = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.ListExercisesResponse.Exercise.repeatedFields_, null); -}; -goog.inherits(proto.daemon.ListExercisesResponse.Exercise, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.ListExercisesResponse.Exercise.displayName = 'proto.daemon.ListExercisesResponse.Exercise'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -7916,13 +8887,15 @@ proto.daemon.ListExercisesResponse.Exercise.repeatedFields_ = [1,5]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.ListExercisesResponse.Exercise.prototype.toObject = function(opt_includeInstance) { @@ -7932,8 +8905,8 @@ proto.daemon.ListExercisesResponse.Exercise.prototype.toObject = function(opt_in /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.ListExercisesResponse.Exercise} msg The msg instance to transform. * @return {!Object} @@ -7941,11 +8914,11 @@ proto.daemon.ListExercisesResponse.Exercise.prototype.toObject = function(opt_in */ proto.daemon.ListExercisesResponse.Exercise.toObject = function(includeInstance, msg) { var f, obj = { - tagsList: jspb.Message.getRepeatedField(msg, 1), + tagsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, name: jspb.Message.getFieldWithDefault(msg, 2, ""), dockerimagecount: jspb.Message.getFieldWithDefault(msg, 3, 0), vboximagecount: jspb.Message.getFieldWithDefault(msg, 4, 0), - secret: jspb.Message.getFieldWithDefault(msg, 6, false), + secret: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), exerciseinfoList: jspb.Message.toObjectList(msg.getExerciseinfoList(), proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo.toObject, includeInstance), orgdescription: jspb.Message.getFieldWithDefault(msg, 7, "") @@ -8097,34 +9070,19 @@ proto.daemon.ListExercisesResponse.Exercise.serializeBinaryToWriter = function(m -/** - * 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.daemon.ListExercisesResponse.Exercise.ExerciseInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo.displayName = 'proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.ListExercisesResponse.Exercise.ExerciseInfo.prototype.toObject = function(opt_includeInstance) { @@ -8134,8 +9092,8 @@ proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo.prototype.toObject = fu /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo} msg The msg instance to transform. * @return {!Object} @@ -8280,9 +9238,12 @@ proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo.prototype.getTag = func }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo} returns this + */ proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo.prototype.setTag = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -8295,9 +9256,12 @@ proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo.prototype.getName = fun }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo} returns this + */ proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -8310,9 +9274,12 @@ proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo.prototype.getPoints = f }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo} returns this + */ proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo.prototype.setPoints = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -8325,9 +9292,12 @@ proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo.prototype.getCategory = }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo} returns this + */ proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo.prototype.setCategory = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -8340,9 +9310,12 @@ proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo.prototype.getDescriptio }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo} returns this + */ proto.daemon.ListExercisesResponse.Exercise.ExerciseInfo.prototype.setDescription = function(value) { - jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; @@ -8355,23 +9328,31 @@ proto.daemon.ListExercisesResponse.Exercise.prototype.getTagsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.daemon.ListExercisesResponse.Exercise} returns this + */ proto.daemon.ListExercisesResponse.Exercise.prototype.setTagsList = function(value) { - jspb.Message.setField(this, 1, value || []); + return jspb.Message.setField(this, 1, value || []); }; /** - * @param {!string} value + * @param {string} value * @param {number=} opt_index + * @return {!proto.daemon.ListExercisesResponse.Exercise} returns this */ proto.daemon.ListExercisesResponse.Exercise.prototype.addTags = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 1, value, opt_index); + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.daemon.ListExercisesResponse.Exercise} returns this + */ proto.daemon.ListExercisesResponse.Exercise.prototype.clearTagsList = function() { - this.setTagsList([]); + return this.setTagsList([]); }; @@ -8384,9 +9365,12 @@ proto.daemon.ListExercisesResponse.Exercise.prototype.getName = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListExercisesResponse.Exercise} returns this + */ proto.daemon.ListExercisesResponse.Exercise.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -8399,9 +9383,12 @@ proto.daemon.ListExercisesResponse.Exercise.prototype.getDockerimagecount = func }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.daemon.ListExercisesResponse.Exercise} returns this + */ proto.daemon.ListExercisesResponse.Exercise.prototype.setDockerimagecount = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -8414,26 +9401,30 @@ proto.daemon.ListExercisesResponse.Exercise.prototype.getVboximagecount = functi }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.daemon.ListExercisesResponse.Exercise} returns this + */ proto.daemon.ListExercisesResponse.Exercise.prototype.setVboximagecount = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; /** * optional bool secret = 6; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.daemon.ListExercisesResponse.Exercise.prototype.getSecret = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 6, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.daemon.ListExercisesResponse.Exercise} returns this + */ proto.daemon.ListExercisesResponse.Exercise.prototype.setSecret = function(value) { - jspb.Message.setProto3BooleanField(this, 6, value); + return jspb.Message.setProto3BooleanField(this, 6, value); }; @@ -8447,9 +9438,12 @@ proto.daemon.ListExercisesResponse.Exercise.prototype.getExerciseinfoList = func }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.daemon.ListExercisesResponse.Exercise} returns this +*/ proto.daemon.ListExercisesResponse.Exercise.prototype.setExerciseinfoList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 5, value); + return jspb.Message.setRepeatedWrapperField(this, 5, value); }; @@ -8463,8 +9457,12 @@ proto.daemon.ListExercisesResponse.Exercise.prototype.addExerciseinfo = function }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.daemon.ListExercisesResponse.Exercise} returns this + */ proto.daemon.ListExercisesResponse.Exercise.prototype.clearExerciseinfoList = function() { - this.setExerciseinfoList([]); + return this.setExerciseinfoList([]); }; @@ -8477,9 +9475,12 @@ proto.daemon.ListExercisesResponse.Exercise.prototype.getOrgdescription = functi }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListExercisesResponse.Exercise} returns this + */ proto.daemon.ListExercisesResponse.Exercise.prototype.setOrgdescription = function(value) { - jspb.Message.setProto3StringField(this, 7, value); + return jspb.Message.setProto3StringField(this, 7, value); }; @@ -8493,9 +9494,12 @@ proto.daemon.ListExercisesResponse.prototype.getExercisesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.daemon.ListExercisesResponse} returns this +*/ proto.daemon.ListExercisesResponse.prototype.setExercisesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -8509,29 +9513,16 @@ proto.daemon.ListExercisesResponse.prototype.addExercises = function(opt_value, }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.daemon.ListExercisesResponse} returns this + */ proto.daemon.ListExercisesResponse.prototype.clearExercisesList = function() { - this.setExercisesList([]); + return this.setExercisesList([]); }; -/** - * 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.daemon.ListCategoriesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.ListCategoriesResponse.repeatedFields_, null); -}; -goog.inherits(proto.daemon.ListCategoriesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.ListCategoriesResponse.displayName = 'proto.daemon.ListCategoriesResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -8543,13 +9534,15 @@ proto.daemon.ListCategoriesResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.ListCategoriesResponse.prototype.toObject = function(opt_includeInstance) { @@ -8559,8 +9552,8 @@ proto.daemon.ListCategoriesResponse.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.ListCategoriesResponse} msg The msg instance to transform. * @return {!Object} @@ -8652,34 +9645,19 @@ proto.daemon.ListCategoriesResponse.serializeBinaryToWriter = function(message, -/** - * 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.daemon.ListCategoriesResponse.Category = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.ListCategoriesResponse.Category, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.ListCategoriesResponse.Category.displayName = 'proto.daemon.ListCategoriesResponse.Category'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.ListCategoriesResponse.Category.prototype.toObject = function(opt_includeInstance) { @@ -8689,8 +9667,8 @@ proto.daemon.ListCategoriesResponse.Category.prototype.toObject = function(opt_i /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.ListCategoriesResponse.Category} msg The msg instance to transform. * @return {!Object} @@ -8811,9 +9789,12 @@ proto.daemon.ListCategoriesResponse.Category.prototype.getTag = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListCategoriesResponse.Category} returns this + */ proto.daemon.ListCategoriesResponse.Category.prototype.setTag = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -8826,9 +9807,12 @@ proto.daemon.ListCategoriesResponse.Category.prototype.getName = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListCategoriesResponse.Category} returns this + */ proto.daemon.ListCategoriesResponse.Category.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -8841,9 +9825,12 @@ proto.daemon.ListCategoriesResponse.Category.prototype.getCatdescription = funct }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListCategoriesResponse.Category} returns this + */ proto.daemon.ListCategoriesResponse.Category.prototype.setCatdescription = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -8857,9 +9844,12 @@ proto.daemon.ListCategoriesResponse.prototype.getCategoriesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.daemon.ListCategoriesResponse} returns this +*/ proto.daemon.ListCategoriesResponse.prototype.setCategoriesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -8873,40 +9863,29 @@ proto.daemon.ListCategoriesResponse.prototype.addCategories = function(opt_value }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.daemon.ListCategoriesResponse} returns this + */ proto.daemon.ListCategoriesResponse.prototype.clearCategoriesList = function() { - this.setCategoriesList([]); + return this.setCategoriesList([]); }; -/** - * 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.daemon.ResetTeamStatus = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.ResetTeamStatus, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.ResetTeamStatus.displayName = 'proto.daemon.ResetTeamStatus'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.ResetTeamStatus.prototype.toObject = function(opt_includeInstance) { @@ -8916,8 +9895,8 @@ proto.daemon.ResetTeamStatus.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.ResetTeamStatus} msg The msg instance to transform. * @return {!Object} @@ -9026,9 +10005,12 @@ proto.daemon.ResetTeamStatus.prototype.getTeamid = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ResetTeamStatus} returns this + */ proto.daemon.ResetTeamStatus.prototype.setTeamid = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -9041,41 +10023,29 @@ proto.daemon.ResetTeamStatus.prototype.getStatus = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ResetTeamStatus} returns this + */ proto.daemon.ResetTeamStatus.prototype.setStatus = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.daemon.StopEventRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.StopEventRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.StopEventRequest.displayName = 'proto.daemon.StopEventRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.StopEventRequest.prototype.toObject = function(opt_includeInstance) { @@ -9085,8 +10055,8 @@ proto.daemon.StopEventRequest.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.StopEventRequest} msg The msg instance to transform. * @return {!Object} @@ -9183,41 +10153,29 @@ proto.daemon.StopEventRequest.prototype.getTag = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.StopEventRequest} returns this + */ proto.daemon.StopEventRequest.prototype.setTag = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.daemon.EventStatus = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.EventStatus, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.EventStatus.displayName = 'proto.daemon.EventStatus'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.EventStatus.prototype.toObject = function(opt_includeInstance) { @@ -9227,8 +10185,8 @@ proto.daemon.EventStatus.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.EventStatus} msg The msg instance to transform. * @return {!Object} @@ -9337,9 +10295,12 @@ proto.daemon.EventStatus.prototype.getEntity = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.EventStatus} returns this + */ proto.daemon.EventStatus.prototype.setEntity = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -9352,41 +10313,29 @@ proto.daemon.EventStatus.prototype.getStatus = function() { }; -/** @param {string} value */ -proto.daemon.EventStatus.prototype.setStatus = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - - /** - * 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 + * @param {string} value + * @return {!proto.daemon.EventStatus} returns this */ -proto.daemon.LabStatus = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.LabStatus, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.LabStatus.displayName = 'proto.daemon.LabStatus'; -} +proto.daemon.EventStatus.prototype.setStatus = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.LabStatus.prototype.toObject = function(opt_includeInstance) { @@ -9396,8 +10345,8 @@ proto.daemon.LabStatus.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.LabStatus} msg The msg instance to transform. * @return {!Object} @@ -9506,9 +10455,12 @@ proto.daemon.LabStatus.prototype.getMessage = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.LabStatus} returns this + */ proto.daemon.LabStatus.prototype.setMessage = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -9521,41 +10473,29 @@ proto.daemon.LabStatus.prototype.getErrormessage = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.LabStatus} returns this + */ proto.daemon.LabStatus.prototype.setErrormessage = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.daemon.MonitorHostResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.MonitorHostResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.MonitorHostResponse.displayName = 'proto.daemon.MonitorHostResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.MonitorHostResponse.prototype.toObject = function(opt_includeInstance) { @@ -9565,8 +10505,8 @@ proto.daemon.MonitorHostResponse.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.MonitorHostResponse} msg The msg instance to transform. * @return {!Object} @@ -9574,9 +10514,9 @@ proto.daemon.MonitorHostResponse.prototype.toObject = function(opt_includeInstan */ proto.daemon.MonitorHostResponse.toObject = function(includeInstance, msg) { var f, obj = { - memorypercent: +jspb.Message.getFieldWithDefault(msg, 1, 0.0), + memorypercent: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), memoryreaderror: jspb.Message.getFieldWithDefault(msg, 2, ""), - cpupercent: +jspb.Message.getFieldWithDefault(msg, 3, 0.0), + cpupercent: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), cpureaderror: jspb.Message.getFieldWithDefault(msg, 4, "") }; @@ -9695,13 +10635,16 @@ proto.daemon.MonitorHostResponse.serializeBinaryToWriter = function(message, wri * @return {number} */ proto.daemon.MonitorHostResponse.prototype.getMemorypercent = function() { - return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 1, 0.0)); + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.daemon.MonitorHostResponse} returns this + */ proto.daemon.MonitorHostResponse.prototype.setMemorypercent = function(value) { - jspb.Message.setProto3FloatField(this, 1, value); + return jspb.Message.setProto3FloatField(this, 1, value); }; @@ -9714,9 +10657,12 @@ proto.daemon.MonitorHostResponse.prototype.getMemoryreaderror = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.MonitorHostResponse} returns this + */ proto.daemon.MonitorHostResponse.prototype.setMemoryreaderror = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -9725,13 +10671,16 @@ proto.daemon.MonitorHostResponse.prototype.setMemoryreaderror = function(value) * @return {number} */ proto.daemon.MonitorHostResponse.prototype.getCpupercent = function() { - return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 3, 0.0)); + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.daemon.MonitorHostResponse} returns this + */ proto.daemon.MonitorHostResponse.prototype.setCpupercent = function(value) { - jspb.Message.setProto3FloatField(this, 3, value); + return jspb.Message.setProto3FloatField(this, 3, value); }; @@ -9744,41 +10693,29 @@ proto.daemon.MonitorHostResponse.prototype.getCpureaderror = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.MonitorHostResponse} returns this + */ proto.daemon.MonitorHostResponse.prototype.setCpureaderror = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; -/** - * 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.daemon.Empty = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.Empty, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.Empty.displayName = 'proto.daemon.Empty'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.Empty.prototype.toObject = function(opt_includeInstance) { @@ -9788,8 +10725,8 @@ proto.daemon.Empty.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.Empty} msg The msg instance to transform. * @return {!Object} @@ -9867,34 +10804,19 @@ proto.daemon.Empty.serializeBinaryToWriter = function(message, writer) { -/** - * 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.daemon.VersionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.VersionResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.VersionResponse.displayName = 'proto.daemon.VersionResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.VersionResponse.prototype.toObject = function(opt_includeInstance) { @@ -9904,8 +10826,8 @@ proto.daemon.VersionResponse.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.VersionResponse} msg The msg instance to transform. * @return {!Object} @@ -10002,30 +10924,16 @@ proto.daemon.VersionResponse.prototype.getVersion = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.VersionResponse} returns this + */ proto.daemon.VersionResponse.prototype.setVersion = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.daemon.ListFrontendsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.ListFrontendsResponse.repeatedFields_, null); -}; -goog.inherits(proto.daemon.ListFrontendsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.ListFrontendsResponse.displayName = 'proto.daemon.ListFrontendsResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -10037,13 +10945,15 @@ proto.daemon.ListFrontendsResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.ListFrontendsResponse.prototype.toObject = function(opt_includeInstance) { @@ -10053,8 +10963,8 @@ proto.daemon.ListFrontendsResponse.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.ListFrontendsResponse} msg The msg instance to transform. * @return {!Object} @@ -10146,34 +11056,19 @@ proto.daemon.ListFrontendsResponse.serializeBinaryToWriter = function(message, w -/** - * 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.daemon.ListFrontendsResponse.Frontend = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.ListFrontendsResponse.Frontend, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.ListFrontendsResponse.Frontend.displayName = 'proto.daemon.ListFrontendsResponse.Frontend'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.ListFrontendsResponse.Frontend.prototype.toObject = function(opt_includeInstance) { @@ -10183,8 +11078,8 @@ proto.daemon.ListFrontendsResponse.Frontend.prototype.toObject = function(opt_in /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.ListFrontendsResponse.Frontend} msg The msg instance to transform. * @return {!Object} @@ -10195,7 +11090,7 @@ proto.daemon.ListFrontendsResponse.Frontend.toObject = function(includeInstance, image: jspb.Message.getFieldWithDefault(msg, 1, ""), size: jspb.Message.getFieldWithDefault(msg, 2, 0), memorymb: jspb.Message.getFieldWithDefault(msg, 3, 0), - cpu: +jspb.Message.getFieldWithDefault(msg, 4, 0.0) + cpu: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0) }; if (includeInstance) { @@ -10317,9 +11212,12 @@ proto.daemon.ListFrontendsResponse.Frontend.prototype.getImage = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ListFrontendsResponse.Frontend} returns this + */ proto.daemon.ListFrontendsResponse.Frontend.prototype.setImage = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -10332,9 +11230,12 @@ proto.daemon.ListFrontendsResponse.Frontend.prototype.getSize = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.daemon.ListFrontendsResponse.Frontend} returns this + */ proto.daemon.ListFrontendsResponse.Frontend.prototype.setSize = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -10347,9 +11248,12 @@ proto.daemon.ListFrontendsResponse.Frontend.prototype.getMemorymb = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.daemon.ListFrontendsResponse.Frontend} returns this + */ proto.daemon.ListFrontendsResponse.Frontend.prototype.setMemorymb = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -10358,13 +11262,16 @@ proto.daemon.ListFrontendsResponse.Frontend.prototype.setMemorymb = function(val * @return {number} */ proto.daemon.ListFrontendsResponse.Frontend.prototype.getCpu = function() { - return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 4, 0.0)); + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.daemon.ListFrontendsResponse.Frontend} returns this + */ proto.daemon.ListFrontendsResponse.Frontend.prototype.setCpu = function(value) { - jspb.Message.setProto3FloatField(this, 4, value); + return jspb.Message.setProto3FloatField(this, 4, value); }; @@ -10378,9 +11285,12 @@ proto.daemon.ListFrontendsResponse.prototype.getFrontendsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.daemon.ListFrontendsResponse} returns this +*/ proto.daemon.ListFrontendsResponse.prototype.setFrontendsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -10394,29 +11304,16 @@ proto.daemon.ListFrontendsResponse.prototype.addFrontends = function(opt_value, }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.daemon.ListFrontendsResponse} returns this + */ proto.daemon.ListFrontendsResponse.prototype.clearFrontendsList = function() { - this.setFrontendsList([]); + return this.setFrontendsList([]); }; -/** - * 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.daemon.ResetFrontendsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.ResetFrontendsRequest.repeatedFields_, null); -}; -goog.inherits(proto.daemon.ResetFrontendsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.ResetFrontendsRequest.displayName = 'proto.daemon.ResetFrontendsRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -10428,13 +11325,15 @@ proto.daemon.ResetFrontendsRequest.repeatedFields_ = [3]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.ResetFrontendsRequest.prototype.toObject = function(opt_includeInstance) { @@ -10444,8 +11343,8 @@ proto.daemon.ResetFrontendsRequest.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.ResetFrontendsRequest} msg The msg instance to transform. * @return {!Object} @@ -10557,9 +11456,12 @@ proto.daemon.ResetFrontendsRequest.prototype.getEventtag = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.ResetFrontendsRequest} returns this + */ proto.daemon.ResetFrontendsRequest.prototype.setEventtag = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -10573,9 +11475,12 @@ proto.daemon.ResetFrontendsRequest.prototype.getTeamsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.daemon.ResetFrontendsRequest} returns this +*/ proto.daemon.ResetFrontendsRequest.prototype.setTeamsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 3, value); + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; @@ -10589,40 +11494,29 @@ proto.daemon.ResetFrontendsRequest.prototype.addTeams = function(opt_value, opt_ }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.daemon.ResetFrontendsRequest} returns this + */ proto.daemon.ResetFrontendsRequest.prototype.clearTeamsList = function() { - this.setTeamsList([]); + return this.setTeamsList([]); }; -/** - * 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.daemon.SetFrontendMemoryRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.SetFrontendMemoryRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.SetFrontendMemoryRequest.displayName = 'proto.daemon.SetFrontendMemoryRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.SetFrontendMemoryRequest.prototype.toObject = function(opt_includeInstance) { @@ -10632,8 +11526,8 @@ proto.daemon.SetFrontendMemoryRequest.prototype.toObject = function(opt_includeI /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.SetFrontendMemoryRequest} msg The msg instance to transform. * @return {!Object} @@ -10742,9 +11636,12 @@ proto.daemon.SetFrontendMemoryRequest.prototype.getImage = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.SetFrontendMemoryRequest} returns this + */ proto.daemon.SetFrontendMemoryRequest.prototype.setImage = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -10757,41 +11654,29 @@ proto.daemon.SetFrontendMemoryRequest.prototype.getMemorymb = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.daemon.SetFrontendMemoryRequest} returns this + */ proto.daemon.SetFrontendMemoryRequest.prototype.setMemorymb = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; -/** - * 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.daemon.SetFrontendCpuRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.SetFrontendCpuRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.SetFrontendCpuRequest.displayName = 'proto.daemon.SetFrontendCpuRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.SetFrontendCpuRequest.prototype.toObject = function(opt_includeInstance) { @@ -10801,8 +11686,8 @@ proto.daemon.SetFrontendCpuRequest.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.SetFrontendCpuRequest} msg The msg instance to transform. * @return {!Object} @@ -10811,7 +11696,7 @@ proto.daemon.SetFrontendCpuRequest.prototype.toObject = function(opt_includeInst proto.daemon.SetFrontendCpuRequest.toObject = function(includeInstance, msg) { var f, obj = { image: jspb.Message.getFieldWithDefault(msg, 1, ""), - cpu: +jspb.Message.getFieldWithDefault(msg, 2, 0.0) + cpu: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0) }; if (includeInstance) { @@ -10911,9 +11796,12 @@ proto.daemon.SetFrontendCpuRequest.prototype.getImage = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.SetFrontendCpuRequest} returns this + */ proto.daemon.SetFrontendCpuRequest.prototype.setImage = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -10922,45 +11810,33 @@ proto.daemon.SetFrontendCpuRequest.prototype.setImage = function(value) { * @return {number} */ proto.daemon.SetFrontendCpuRequest.prototype.getCpu = function() { - return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 2, 0.0)); + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.daemon.SetFrontendCpuRequest} returns this + */ proto.daemon.SetFrontendCpuRequest.prototype.setCpu = function(value) { - jspb.Message.setProto3FloatField(this, 2, value); + return jspb.Message.setProto3FloatField(this, 2, value); }; -/** - * 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.daemon.GetTeamInfoRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.GetTeamInfoRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.GetTeamInfoRequest.displayName = 'proto.daemon.GetTeamInfoRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.GetTeamInfoRequest.prototype.toObject = function(opt_includeInstance) { @@ -10970,8 +11846,8 @@ proto.daemon.GetTeamInfoRequest.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.GetTeamInfoRequest} msg The msg instance to transform. * @return {!Object} @@ -11080,9 +11956,12 @@ proto.daemon.GetTeamInfoRequest.prototype.getTeamid = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.GetTeamInfoRequest} returns this + */ proto.daemon.GetTeamInfoRequest.prototype.setTeamid = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -11095,30 +11974,16 @@ proto.daemon.GetTeamInfoRequest.prototype.getEventtag = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.GetTeamInfoRequest} returns this + */ proto.daemon.GetTeamInfoRequest.prototype.setEventtag = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.daemon.GetTeamInfoResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.daemon.GetTeamInfoResponse.repeatedFields_, null); -}; -goog.inherits(proto.daemon.GetTeamInfoResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.GetTeamInfoResponse.displayName = 'proto.daemon.GetTeamInfoResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -11130,13 +11995,15 @@ proto.daemon.GetTeamInfoResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.GetTeamInfoResponse.prototype.toObject = function(opt_includeInstance) { @@ -11146,8 +12013,8 @@ proto.daemon.GetTeamInfoResponse.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.GetTeamInfoResponse} msg The msg instance to transform. * @return {!Object} @@ -11239,34 +12106,19 @@ proto.daemon.GetTeamInfoResponse.serializeBinaryToWriter = function(message, wri -/** - * 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.daemon.GetTeamInfoResponse.Instance = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.daemon.GetTeamInfoResponse.Instance, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.daemon.GetTeamInfoResponse.Instance.displayName = 'proto.daemon.GetTeamInfoResponse.Instance'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.daemon.GetTeamInfoResponse.Instance.prototype.toObject = function(opt_includeInstance) { @@ -11276,8 +12128,8 @@ proto.daemon.GetTeamInfoResponse.Instance.prototype.toObject = function(opt_incl /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.daemon.GetTeamInfoResponse.Instance} msg The msg instance to transform. * @return {!Object} @@ -11410,9 +12262,12 @@ proto.daemon.GetTeamInfoResponse.Instance.prototype.getImage = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.GetTeamInfoResponse.Instance} returns this + */ proto.daemon.GetTeamInfoResponse.Instance.prototype.setImage = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -11425,9 +12280,12 @@ proto.daemon.GetTeamInfoResponse.Instance.prototype.getType = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.GetTeamInfoResponse.Instance} returns this + */ proto.daemon.GetTeamInfoResponse.Instance.prototype.setType = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -11440,9 +12298,12 @@ proto.daemon.GetTeamInfoResponse.Instance.prototype.getId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.daemon.GetTeamInfoResponse.Instance} returns this + */ proto.daemon.GetTeamInfoResponse.Instance.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -11455,9 +12316,12 @@ proto.daemon.GetTeamInfoResponse.Instance.prototype.getState = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.daemon.GetTeamInfoResponse.Instance} returns this + */ proto.daemon.GetTeamInfoResponse.Instance.prototype.setState = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -11471,9 +12335,12 @@ proto.daemon.GetTeamInfoResponse.prototype.getInstancesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.daemon.GetTeamInfoResponse} returns this +*/ proto.daemon.GetTeamInfoResponse.prototype.setInstancesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -11487,8 +12354,12 @@ proto.daemon.GetTeamInfoResponse.prototype.addInstances = function(opt_value, op }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.daemon.GetTeamInfoResponse} returns this + */ proto.daemon.GetTeamInfoResponse.prototype.clearInstancesList = function() { - this.setInstancesList([]); + return this.setInstancesList([]); }; diff --git a/proto/daemon.proto b/proto/daemon.proto index 9a73fd30..485e6a51 100644 --- a/proto/daemon.proto +++ b/proto/daemon.proto @@ -205,7 +205,7 @@ message CreateEventRequest { int32 capacity = 6; string startTime = 7; string finishTime = 8; - bool onlyVPN = 9; + int32 onlyVPN = 9; string secretEvent = 10; repeated string disableExercises = 11; } From 4b14c5ddbf9de2fa57522843c3778e674dde2e8f Mon Sep 17 00:00:00 2001 From: Mikkel Christiansen Date: Sun, 22 Aug 2021 11:57:14 +0200 Subject: [PATCH 02/23] Initial commit --- client/src/Pages/Challenges.vue | 228 ++++++++++++++++++++++---------- 1 file changed, 157 insertions(+), 71 deletions(-) diff --git a/client/src/Pages/Challenges.vue b/client/src/Pages/Challenges.vue index c9cc26f9..276100cc 100644 --- a/client/src/Pages/Challenges.vue +++ b/client/src/Pages/Challenges.vue @@ -1,88 +1,174 @@ \ No newline at end of file From 2e8cf5e60a030ab45cfb1bb9ec2d8d92bba9e41b Mon Sep 17 00:00:00 2001 From: Mikkelhost Date: Sun, 22 Aug 2021 14:55:17 +0200 Subject: [PATCH 03/23] progress --- client/src/Pages/Challenges.vue | 2 +- client/src/components/EventModal.vue | 450 +++++++++------------------ 2 files changed, 156 insertions(+), 296 deletions(-) diff --git a/client/src/Pages/Challenges.vue b/client/src/Pages/Challenges.vue index 276100cc..5d3dde27 100644 --- a/client/src/Pages/Challenges.vue +++ b/client/src/Pages/Challenges.vue @@ -68,7 +68,7 @@ export default { }, created: function () { this.listChallenges(); - this.getAll(); + //this.getAll(); }, methods: { getAll: function () { diff --git a/client/src/components/EventModal.vue b/client/src/components/EventModal.vue index cfcc3b8b..e05618e0 100644 --- a/client/src/components/EventModal.vue +++ b/client/src/components/EventModal.vue @@ -1,5 +1,5 @@ @@ -322,7 +406,17 @@ - {{challenge.name}} + + + {{ challenge.name }} + @@ -357,57 +451,73 @@ export default { categories: [], cat: '', childrenChallenges: '', - profile: {name: "", selectedChallenges: []}, + profile: {name: "", secret: false, selectedChallenges: []}, profiles: [], showSelected: true, + secretChallenges: null, + saveAble: false, } }, created: function () { this.getCategories(); - this.getProfiles(); }, methods: { - countDownChanged: function(dismissCountDown) { + updateSecret: function () { + this.profile.secret = false + const that = this + this.profile.selectedChallenges.forEach(function (challenge) { + window.console.log("Checking if", challenge.tag, "is in secretchallenges") + let secret = that.secretChallenges.get(challenge.tag) + if (secret) { + that.profile.secret = true + } + }) + window.console.log("profile secret is now", this.profile.secret) + }, + countDownChanged: function (dismissCountDown) { this.dismissCountDown = dismissCountDown }, - showAlert: function(variant) { + showAlert: function (variant) { this.variant = variant this.dismissCountDown = this.dismissSecs }, - removeFromProfile: function(challenge) { + removeFromProfile: function (challenge) { this.profile.selectedChallenges = this.removeItem(this.profile.selectedChallenges, "tag", challenge.tag) + this.updateSecret() }, - getProfiles: function() { + getProfiles: function () { const that = this let getRequest = new Empty daemonclient.listProfiles(getRequest, {Token: localStorage.getItem("user")}, (err, response) => { window.console.log(err) let profileListObj = response.getProfilesList(); - profileListObj.forEach(function (element){ + profileListObj.forEach(function (element) { let name = element.getName() + let secret = element.getSecret() let challengesListObj = element.getChallengesList() let challenges = [] - challengesListObj.forEach(function (element){ + challengesListObj.forEach(function (element) { let tag = element.getTag() let name = element.getName() let challenge = {tag: tag, name: name} challenges.push(challenge) }) - let profile = {name: name, challenges: challenges} + let profile = {name: name, secret: secret, challenges: challenges} window.console.log("Got profile", profile) that.profiles.push(profile) }) }) }, - saveProfile: function() { + saveProfile: function () { window.console.log("Saving profile") const that = this - let index = this.profiles.findIndex(obj => obj['name'] === this.profile.name) - window.console.log("Seing it profile exists:",index) + let index = this.profiles.findIndex(obj => obj['name'] === this.profile.name.trim()) + window.console.log("Seing it profile exists:", index) if (index < 0) { let getRequest = new SaveProfileRequest(); - getRequest.setName(this.profile.name) - this.profile.selectedChallenges.forEach(function(chal) { + getRequest.setName(this.profile.name.trim()) + getRequest.setSecret(this.profile.secret) + this.profile.selectedChallenges.forEach(function (chal) { let challenge = new SaveProfileRequest.Challenge() challenge.setTag(chal.tag) challenge.setName(chal.name) @@ -415,15 +525,15 @@ export default { }) const call = daemonclient.saveProfile(getRequest, {Token: localStorage.getItem("user")}); - call.on('data', function(response){ + call.on('data', function (response) { window.console.log("Data response: ", response) }); - call.on('error', function(response){ + call.on('error', function (response) { that.alert = response.message that.showAlert("danger") window.console.log("Error response: ", response) }); - call.on('status', function(response){ + call.on('status', function (response) { window.console.log("Status response: ", response) if (response.details == "") { that.getProfiles() @@ -436,26 +546,26 @@ export default { this.showAlert("danger") } }, - removeItem: function(array, key, value) { + removeItem: function (array, key, value) { const index = array.findIndex(obj => obj[key] === value) return index >= 0 ? [ - ...array.slice(0, index), - ...array.slice(index+1) + ...array.slice(0, index), + ...array.slice(index + 1) ] : array; }, - filterItems: function(category, difficulty) { + filterItems: function (category, difficulty) { difficulty.enabled = !difficulty.enabled const that = this if (difficulty.enabled) { - category.challenges.forEach( function(challenge) { - if (challenge.difficulty == difficulty.name){ + category.challenges.forEach(function (challenge) { + if (challenge.difficulty == difficulty.name) { category.filteredItems.push(challenge) } }) } else { - category.filteredItems.forEach(function(challenge){ + category.filteredItems.forEach(function (challenge) { //window.console.log(challenge, index) - if (challenge.difficulty == difficulty.name){ + if (challenge.difficulty == difficulty.name) { //window.console.log(challenge.difficulty, " Equals ", difficulty.name) //window.console.log("Removing challenge from filter: ", challenge.text) category.filteredItems = that.removeItem(category.filteredItems, "difficulty", difficulty.name) @@ -463,7 +573,7 @@ export default { }) } category.filterOn = false - category.difficulties.forEach(function(difficulty){ + category.difficulties.forEach(function (difficulty) { if (difficulty.enabled) { category.filterOn = true } @@ -471,13 +581,13 @@ export default { //window.console.log(category.filteredItems) //window.console.log(category, difficulty) }, - showOrgDescription: function(challenge) { + showOrgDescription: function (challenge) { window.console.log("Showing org description") const that = this // Emptying/resetting the description field if (challenge != null) { - this.categories.forEach(function(category){ - category.challenges.forEach(function(chal){ + this.categories.forEach(function (category) { + category.challenges.forEach(function (chal) { if (chal.value == challenge.value) { challenge.isInfoShown = !challenge.isInfoShown } else { @@ -491,14 +601,13 @@ export default { this.showSelected = true } } else { - this.categories.forEach(function(category){ - category.challenges.forEach(function(chal) { - chal.isInfoShown = false - that.showSelected = true - }) + this.categories.forEach(function (category) { + category.challenges.forEach(function (chal) { + chal.isInfoShown = false + that.showSelected = true + }) }) } - }, getCategories: function () { // Getting categories first. @@ -553,6 +662,7 @@ export default { getExercises: function () { let getRequest = new Empty(); const that = this + this.secretChallenges = new Map() daemonclient.listExercises(getRequest, {Token: localStorage.getItem("user")}, (err, response) => { this.error = err; let exercisesListObj = response.getExercisesList(); @@ -602,6 +712,9 @@ export default { secret: secret, difficulty: averageDifficulty }; + if (secret) { + that.secretChallenges.set(taglist[0], true) + } that.categories.forEach(function (category) { if (that.cat == category.name) { category.challenges.push(parentChallenge) @@ -609,7 +722,9 @@ export default { } }) }) + window.console.log("Secret challenges", that.secretChallenges) window.console.log(that.categories) + that.getProfiles(); }); }, } @@ -699,23 +814,23 @@ export default { /* set button(top and bottom of the scrollbar) */ .customscroll::-webkit-scrollbar-button { - display:none; + display: none; } -.chalInfo{ +.chalInfo { overflow: hidden; max-height: 0; padding-right: 5px; visibility: hidden; } -.chalInfo.visible{ +.chalInfo.visible { overflow-y: auto; visibility: visible; max-height: 410px; } -.profile-chal{ +.profile-chal { border-width: 1px; border-style: solid; border-color: rgb(206, 212, 218); diff --git a/client/src/Pages/Profiles.vue b/client/src/Pages/Profiles.vue index f2108ad7..ed1bd7ac 100644 --- a/client/src/Pages/Profiles.vue +++ b/client/src/Pages/Profiles.vue @@ -20,6 +20,10 @@ aria-selected="true" v-on:click="setProfileForUpdate(profile)" > + {{ profile.name }} @@ -33,6 +37,10 @@ aria-selected="false" v-on:click="setProfileForUpdate(profile)" > + {{ profile.name }} @@ -41,6 +49,18 @@
+ + + {{ alert }} + + -
- +
+
@@ -367,8 +367,8 @@ -
- +
+
@@ -414,8 +414,8 @@ -
- +
+
@@ -944,4 +944,8 @@ h3 { user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */ } + +.info-icon{ + cursor: pointer; +} \ No newline at end of file diff --git a/client/src/components/ChalModal.vue b/client/src/components/ChalModal.vue index 8a38d14e..8da54181 100644 --- a/client/src/components/ChalModal.vue +++ b/client/src/components/ChalModal.vue @@ -89,8 +89,8 @@ -
- +
+
-
- +
+
\ No newline at end of file diff --git a/client/src/components/EventModal.vue b/client/src/components/EventModal.vue index 6e8256b8..e4294bb2 100644 --- a/client/src/components/EventModal.vue +++ b/client/src/components/EventModal.vue @@ -254,8 +254,8 @@ -
- +
+
-
- +
+
\ No newline at end of file From c36b90452c0b3052f73fde6187bc6fa3874016f3 Mon Sep 17 00:00:00 2001 From: Mikkelhost Date: Sat, 4 Sep 2021 19:29:52 +0200 Subject: [PATCH 21/23] Removed 1 dot after difficulty name for ux --- client/src/Pages/Challenges.vue | 2 -- 1 file changed, 2 deletions(-) diff --git a/client/src/Pages/Challenges.vue b/client/src/Pages/Challenges.vue index 9a6e97fd..b96b0e68 100644 --- a/client/src/Pages/Challenges.vue +++ b/client/src/Pages/Challenges.vue @@ -61,7 +61,6 @@

{{ difficulty.name }} -

@@ -274,7 +273,6 @@

{{ difficulty.name }} -

From c74cd3a1574fc094b0d8e7b5bc99cb910b1fb136 Mon Sep 17 00:00:00 2001 From: Mikkelhost Date: Mon, 6 Sep 2021 18:51:19 +0200 Subject: [PATCH 22/23] Gave user feed back when no profiles are available --- client/src/Pages/Profiles.vue | 75 ++++++++++++++++++++++++++--------- 1 file changed, 56 insertions(+), 19 deletions(-) diff --git a/client/src/Pages/Profiles.vue b/client/src/Pages/Profiles.vue index c51ffef4..c8452868 100644 --- a/client/src/Pages/Profiles.vue +++ b/client/src/Pages/Profiles.vue @@ -5,7 +5,8 @@

Available Challenge Profiles

- + + +
@@ -371,6 +393,8 @@ export default { areYouSure: false, showSelected: true, secretChallenges: null, + loaderIsActive: true, + noProfiles: false, } }, created: function () { @@ -427,6 +451,11 @@ export default { that.alert = "Profile \"" + that.profileForUpdate.name + "\" successfully deleted" that.setProfileForUpdate(that.profiles[0]) that.showAlert("success") + setTimeout(function (){ + if(!that.profiles.length){ + that.noProfiles = true + } + }.bind(that), 5000) } }); }, @@ -519,25 +548,26 @@ export default { }, setProfileForUpdate: function(profile) { //window.console.log("Setting profileForUpdate to", profile) - this.areYouSure = false - const that = this - let categories = JSON.parse(JSON.stringify(that.categories)) // Creates a copy of this.categories - let challenges = JSON.parse(JSON.stringify(profile.challenges)) // Creates a copy of this.categories - let name = JSON.parse(JSON.stringify(profile.name)) - let secret = JSON.parse(JSON.stringify(profile.secret)) - this.profileForUpdate = [] - this.profileForUpdate = {name: name, secret: secret, challenges: challenges, categories: categories} - this.profileForUpdate.challenges.forEach(function(pchallenge){ - that.profileForUpdate.categories.forEach(function(category){ - let index = category.challenges.findIndex(obj => obj['name'] === pchallenge.name) - if (index >= 0) { - //window.console.log("Found", pchallenge.name, "in category",category,"removing them from Challenges not in profile") - category.challenges = that.removeItem(category.challenges, 'value', pchallenge.tag) - } + if(this.profiles.length) { + this.areYouSure = false + const that = this + let categories = JSON.parse(JSON.stringify(that.categories)) // Creates a copy of this.categories + let challenges = JSON.parse(JSON.stringify(profile.challenges)) // Creates a copy of this.categories + let name = JSON.parse(JSON.stringify(profile.name)) + let secret = JSON.parse(JSON.stringify(profile.secret)) + this.profileForUpdate = [] + this.profileForUpdate = {name: name, secret: secret, challenges: challenges, categories: categories} + this.profileForUpdate.challenges.forEach(function (pchallenge) { + that.profileForUpdate.categories.forEach(function (category) { + let index = category.challenges.findIndex(obj => obj['name'] === pchallenge.name) + if (index >= 0) { + //window.console.log("Found", pchallenge.name, "in category",category,"removing them from Challenges not in profile") + category.challenges = that.removeItem(category.challenges, 'value', pchallenge.tag) + } + }) }) - }) - this.checkIfUpdateAvailable() - // window.console.log("ProfileForUpdate is now", this.profileForUpdate) + this.checkIfUpdateAvailable() + } }, getProfiles: function () { const that = this @@ -571,6 +601,13 @@ export default { }) }) that.setProfileForUpdate(that.profiles[0]) + if (!that.profiles.length) { + that.noProfiles = true + } + setTimeout(function (){ + that.loaderIsActive = false + }.bind(that), 1000) + }) }, getCategories: function () { From ac8f69e0e2a3b438d51083f6c213604c6b4fdee3 Mon Sep 17 00:00:00 2001 From: Mikkelhost Date: Mon, 6 Sep 2021 19:01:56 +0200 Subject: [PATCH 23/23] Added info of how to create profiles --- client/src/Pages/Profiles.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/Pages/Profiles.vue b/client/src/Pages/Profiles.vue index c8452868..e3cea7ce 100644 --- a/client/src/Pages/Profiles.vue +++ b/client/src/Pages/Profiles.vue @@ -3,7 +3,11 @@
-

Available Challenge Profiles

+

+ Available Challenge Profiles + + You can create challenge profiles from the Challenges page. Select your desired challenges, choose a profile name and hit "Save Profile". Your new profile will displayed on this page. +