UNPKG

@toitware/api

Version:
1,318 lines (1,304 loc) 379 kB
// source: toit/api/device.proto /** * @fileoverview * @enhanceable * @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! var jspb = require('google-protobuf'); var goog = jspb; var global = Function('return this')(); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); goog.object.extend(proto, google_protobuf_timestamp_pb); var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); goog.object.extend(proto, google_protobuf_duration_pb); var toit_model_job_pb = require('../../toit/model/job_pb.js'); goog.object.extend(proto, toit_model_job_pb); var toit_model_device_pb = require('../../toit/model/device_pb.js'); goog.object.extend(proto, toit_model_device_pb); var toit_model_data_pb = require('../../toit/model/data_pb.js'); goog.object.extend(proto, toit_model_data_pb); goog.exportSymbol('proto.toit.api.ConfigChange', null, global); goog.exportSymbol('proto.toit.api.ConfigChange.Broker', null, global); goog.exportSymbol('proto.toit.api.ConfigChange.ConfigCase', null, global); goog.exportSymbol('proto.toit.api.ConfigChange.Connections', null, global); goog.exportSymbol('proto.toit.api.ConfigChange.EventQueueThreshold', null, global); goog.exportSymbol('proto.toit.api.ConfigChange.FactoryReset', null, global); goog.exportSymbol('proto.toit.api.ConfigChange.LoggingLevel', null, global); goog.exportSymbol('proto.toit.api.ConfigChange.MaxOffline', null, global); goog.exportSymbol('proto.toit.api.ConfigChange.MetricsLevel', null, global); goog.exportSymbol('proto.toit.api.ConfigChange.Name', null, global); goog.exportSymbol('proto.toit.api.ConfigChange.Reboot', null, global); goog.exportSymbol('proto.toit.api.ConfigChange.ReportModules', null, global); goog.exportSymbol('proto.toit.api.ConfigChange.SDK', null, global); goog.exportSymbol('proto.toit.api.ConfigChange.SDKModel', null, global); goog.exportSymbol('proto.toit.api.ConfigChange.UpdateModule', null, global); goog.exportSymbol('proto.toit.api.ConfigureDeviceRequest', null, global); goog.exportSymbol('proto.toit.api.ConfigureDeviceResponse', null, global); goog.exportSymbol('proto.toit.api.ConfigureJobRequest', null, global); goog.exportSymbol('proto.toit.api.ConfigureJobResponse', null, global); goog.exportSymbol('proto.toit.api.ConnectionSettings', null, global); goog.exportSymbol('proto.toit.api.Device', null, global); goog.exportSymbol('proto.toit.api.DeviceLog', null, global); goog.exportSymbol('proto.toit.api.DeviceLog.Type', null, global); goog.exportSymbol('proto.toit.api.GetCurrentTimeRequest', null, global); goog.exportSymbol('proto.toit.api.GetCurrentTimeResponse', null, global); goog.exportSymbol('proto.toit.api.GetDevicePartitionsRequest', null, global); goog.exportSymbol('proto.toit.api.GetDevicePartitionsRequest.Mode', null, global); goog.exportSymbol('proto.toit.api.GetDevicePartitionsResponse', null, global); goog.exportSymbol('proto.toit.api.GetDevicePartitionsResponse.Partition', null, global); goog.exportSymbol('proto.toit.api.GetDeviceRequest', null, global); goog.exportSymbol('proto.toit.api.GetDeviceResponse', null, global); goog.exportSymbol('proto.toit.api.InstallJobRequest', null, global); goog.exportSymbol('proto.toit.api.InstallJobResponse', null, global); goog.exportSymbol('proto.toit.api.Job', null, global); goog.exportSymbol('proto.toit.api.ListDevicesFilter', null, global); goog.exportSymbol('proto.toit.api.ListDevicesRequest', null, global); goog.exportSymbol('proto.toit.api.ListDevicesResponse', null, global); goog.exportSymbol('proto.toit.api.ListJobsFilter', null, global); goog.exportSymbol('proto.toit.api.ListJobsRequest', null, global); goog.exportSymbol('proto.toit.api.ListJobsResponse', null, global); goog.exportSymbol('proto.toit.api.LookupDevicesRequest', null, global); goog.exportSymbol('proto.toit.api.LookupDevicesResponse', null, global); goog.exportSymbol('proto.toit.api.ProcessGoalStatus', null, global); goog.exportSymbol('proto.toit.api.ProcessStatus', null, global); goog.exportSymbol('proto.toit.api.ReadDeviceEventsRequest', null, global); goog.exportSymbol('proto.toit.api.ReadDeviceEventsRequest.OffsetCase', null, global); goog.exportSymbol('proto.toit.api.ReadDeviceEventsResponse', null, global); goog.exportSymbol('proto.toit.api.ReadDeviceLogsRequest', null, global); goog.exportSymbol('proto.toit.api.ReadDeviceLogsRequest.OffsetCase', null, global); goog.exportSymbol('proto.toit.api.ReadDeviceLogsResponse', null, global); goog.exportSymbol('proto.toit.api.RebootDeviceRequest', null, global); goog.exportSymbol('proto.toit.api.RebootDeviceResponse', null, global); goog.exportSymbol('proto.toit.api.UnclaimDeviceRequest', null, global); goog.exportSymbol('proto.toit.api.UnclaimDeviceResponse', null, global); goog.exportSymbol('proto.toit.api.WatchDeviceChangesRequest', null, global); goog.exportSymbol('proto.toit.api.WatchDeviceChangesResponse', null, global); goog.exportSymbol('proto.toit.api.WatchJobChangesRequest', null, global); goog.exportSymbol('proto.toit.api.WatchJobChangesResponse', null, global); goog.exportSymbol('proto.toit.api.WatchSessionChangesRequest', null, global); goog.exportSymbol('proto.toit.api.WatchSessionChangesResponse', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.toit.api.Device = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.Device, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.Device.displayName = 'proto.toit.api.Device'; } /** * 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.toit.api.Job = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.Job, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.Job.displayName = 'proto.toit.api.Job'; } /** * 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.toit.api.DeviceLog = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.DeviceLog, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.DeviceLog.displayName = 'proto.toit.api.DeviceLog'; } /** * 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.toit.api.GetDeviceRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.GetDeviceRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.GetDeviceRequest.displayName = 'proto.toit.api.GetDeviceRequest'; } /** * 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.toit.api.GetDeviceResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.toit.api.GetDeviceResponse.repeatedFields_, null); }; goog.inherits(proto.toit.api.GetDeviceResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.GetDeviceResponse.displayName = 'proto.toit.api.GetDeviceResponse'; } /** * 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.toit.api.ConfigChange = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.toit.api.ConfigChange.oneofGroups_); }; goog.inherits(proto.toit.api.ConfigChange, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ConfigChange.displayName = 'proto.toit.api.ConfigChange'; } /** * 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.toit.api.ConfigChange.SDK = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.ConfigChange.SDK, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ConfigChange.SDK.displayName = 'proto.toit.api.ConfigChange.SDK'; } /** * 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.toit.api.ConfigChange.Name = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.ConfigChange.Name, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ConfigChange.Name.displayName = 'proto.toit.api.ConfigChange.Name'; } /** * 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.toit.api.ConfigChange.SDKModel = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.ConfigChange.SDKModel, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ConfigChange.SDKModel.displayName = 'proto.toit.api.ConfigChange.SDKModel'; } /** * 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.toit.api.ConfigChange.Broker = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.ConfigChange.Broker, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ConfigChange.Broker.displayName = 'proto.toit.api.ConfigChange.Broker'; } /** * 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.toit.api.ConfigChange.MaxOffline = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.ConfigChange.MaxOffline, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ConfigChange.MaxOffline.displayName = 'proto.toit.api.ConfigChange.MaxOffline'; } /** * 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.toit.api.ConfigChange.Connections = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.toit.api.ConfigChange.Connections.repeatedFields_, null); }; goog.inherits(proto.toit.api.ConfigChange.Connections, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ConfigChange.Connections.displayName = 'proto.toit.api.ConfigChange.Connections'; } /** * 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.toit.api.ConfigChange.Reboot = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.ConfigChange.Reboot, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ConfigChange.Reboot.displayName = 'proto.toit.api.ConfigChange.Reboot'; } /** * 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.toit.api.ConfigChange.FactoryReset = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.ConfigChange.FactoryReset, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ConfigChange.FactoryReset.displayName = 'proto.toit.api.ConfigChange.FactoryReset'; } /** * 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.toit.api.ConfigChange.EventQueueThreshold = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.ConfigChange.EventQueueThreshold, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ConfigChange.EventQueueThreshold.displayName = 'proto.toit.api.ConfigChange.EventQueueThreshold'; } /** * 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.toit.api.ConfigChange.LoggingLevel = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.ConfigChange.LoggingLevel, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ConfigChange.LoggingLevel.displayName = 'proto.toit.api.ConfigChange.LoggingLevel'; } /** * 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.toit.api.ConfigChange.MetricsLevel = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.ConfigChange.MetricsLevel, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ConfigChange.MetricsLevel.displayName = 'proto.toit.api.ConfigChange.MetricsLevel'; } /** * 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.toit.api.ConfigChange.ReportModules = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.ConfigChange.ReportModules, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ConfigChange.ReportModules.displayName = 'proto.toit.api.ConfigChange.ReportModules'; } /** * 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.toit.api.ConfigChange.UpdateModule = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.ConfigChange.UpdateModule, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ConfigChange.UpdateModule.displayName = 'proto.toit.api.ConfigChange.UpdateModule'; } /** * 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.toit.api.ConfigureDeviceRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.toit.api.ConfigureDeviceRequest.repeatedFields_, null); }; goog.inherits(proto.toit.api.ConfigureDeviceRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ConfigureDeviceRequest.displayName = 'proto.toit.api.ConfigureDeviceRequest'; } /** * 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.toit.api.ConfigureDeviceResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.ConfigureDeviceResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ConfigureDeviceResponse.displayName = 'proto.toit.api.ConfigureDeviceResponse'; } /** * 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.toit.api.ConnectionSettings = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.toit.api.ConnectionSettings.repeatedFields_, null); }; goog.inherits(proto.toit.api.ConnectionSettings, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ConnectionSettings.displayName = 'proto.toit.api.ConnectionSettings'; } /** * 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.toit.api.LookupDevicesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.LookupDevicesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.LookupDevicesRequest.displayName = 'proto.toit.api.LookupDevicesRequest'; } /** * 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.toit.api.LookupDevicesResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.toit.api.LookupDevicesResponse.repeatedFields_, null); }; goog.inherits(proto.toit.api.LookupDevicesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.LookupDevicesResponse.displayName = 'proto.toit.api.LookupDevicesResponse'; } /** * 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.toit.api.ListDevicesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.ListDevicesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ListDevicesRequest.displayName = 'proto.toit.api.ListDevicesRequest'; } /** * 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.toit.api.ListDevicesFilter = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.ListDevicesFilter, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ListDevicesFilter.displayName = 'proto.toit.api.ListDevicesFilter'; } /** * 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.toit.api.ListDevicesResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.toit.api.ListDevicesResponse.repeatedFields_, null); }; goog.inherits(proto.toit.api.ListDevicesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ListDevicesResponse.displayName = 'proto.toit.api.ListDevicesResponse'; } /** * 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.toit.api.ListJobsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.ListJobsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ListJobsRequest.displayName = 'proto.toit.api.ListJobsRequest'; } /** * 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.toit.api.ListJobsFilter = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.toit.api.ListJobsFilter.repeatedFields_, null); }; goog.inherits(proto.toit.api.ListJobsFilter, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ListJobsFilter.displayName = 'proto.toit.api.ListJobsFilter'; } /** * 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.toit.api.ListJobsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.toit.api.ListJobsResponse.repeatedFields_, null); }; goog.inherits(proto.toit.api.ListJobsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ListJobsResponse.displayName = 'proto.toit.api.ListJobsResponse'; } /** * 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.toit.api.InstallJobRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.InstallJobRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.InstallJobRequest.displayName = 'proto.toit.api.InstallJobRequest'; } /** * 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.toit.api.InstallJobResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.InstallJobResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.InstallJobResponse.displayName = 'proto.toit.api.InstallJobResponse'; } /** * 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.toit.api.ConfigureJobRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.ConfigureJobRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ConfigureJobRequest.displayName = 'proto.toit.api.ConfigureJobRequest'; } /** * 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.toit.api.ConfigureJobResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.ConfigureJobResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ConfigureJobResponse.displayName = 'proto.toit.api.ConfigureJobResponse'; } /** * 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.toit.api.RebootDeviceRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.RebootDeviceRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.RebootDeviceRequest.displayName = 'proto.toit.api.RebootDeviceRequest'; } /** * 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.toit.api.RebootDeviceResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.RebootDeviceResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.RebootDeviceResponse.displayName = 'proto.toit.api.RebootDeviceResponse'; } /** * 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.toit.api.ReadDeviceLogsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.toit.api.ReadDeviceLogsRequest.repeatedFields_, proto.toit.api.ReadDeviceLogsRequest.oneofGroups_); }; goog.inherits(proto.toit.api.ReadDeviceLogsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ReadDeviceLogsRequest.displayName = 'proto.toit.api.ReadDeviceLogsRequest'; } /** * 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.toit.api.ReadDeviceLogsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.toit.api.ReadDeviceLogsResponse.repeatedFields_, null); }; goog.inherits(proto.toit.api.ReadDeviceLogsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ReadDeviceLogsResponse.displayName = 'proto.toit.api.ReadDeviceLogsResponse'; } /** * 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.toit.api.ReadDeviceEventsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.toit.api.ReadDeviceEventsRequest.oneofGroups_); }; goog.inherits(proto.toit.api.ReadDeviceEventsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ReadDeviceEventsRequest.displayName = 'proto.toit.api.ReadDeviceEventsRequest'; } /** * 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.toit.api.ReadDeviceEventsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.toit.api.ReadDeviceEventsResponse.repeatedFields_, null); }; goog.inherits(proto.toit.api.ReadDeviceEventsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.ReadDeviceEventsResponse.displayName = 'proto.toit.api.ReadDeviceEventsResponse'; } /** * 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.toit.api.GetDevicePartitionsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.GetDevicePartitionsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.GetDevicePartitionsRequest.displayName = 'proto.toit.api.GetDevicePartitionsRequest'; } /** * 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.toit.api.GetDevicePartitionsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.toit.api.GetDevicePartitionsResponse.repeatedFields_, null); }; goog.inherits(proto.toit.api.GetDevicePartitionsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.GetDevicePartitionsResponse.displayName = 'proto.toit.api.GetDevicePartitionsResponse'; } /** * 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.toit.api.GetDevicePartitionsResponse.Partition = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.GetDevicePartitionsResponse.Partition, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.GetDevicePartitionsResponse.Partition.displayName = 'proto.toit.api.GetDevicePartitionsResponse.Partition'; } /** * 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.toit.api.WatchDeviceChangesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.WatchDeviceChangesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.WatchDeviceChangesRequest.displayName = 'proto.toit.api.WatchDeviceChangesRequest'; } /** * 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.toit.api.WatchDeviceChangesResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.WatchDeviceChangesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.WatchDeviceChangesResponse.displayName = 'proto.toit.api.WatchDeviceChangesResponse'; } /** * 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.toit.api.WatchJobChangesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.WatchJobChangesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.WatchJobChangesRequest.displayName = 'proto.toit.api.WatchJobChangesRequest'; } /** * 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.toit.api.WatchJobChangesResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.WatchJobChangesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.WatchJobChangesResponse.displayName = 'proto.toit.api.WatchJobChangesResponse'; } /** * 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.toit.api.WatchSessionChangesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.WatchSessionChangesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.WatchSessionChangesRequest.displayName = 'proto.toit.api.WatchSessionChangesRequest'; } /** * 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.toit.api.WatchSessionChangesResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.WatchSessionChangesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.WatchSessionChangesResponse.displayName = 'proto.toit.api.WatchSessionChangesResponse'; } /** * 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.toit.api.GetCurrentTimeRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.GetCurrentTimeRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.GetCurrentTimeRequest.displayName = 'proto.toit.api.GetCurrentTimeRequest'; } /** * 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.toit.api.GetCurrentTimeResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.GetCurrentTimeResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.GetCurrentTimeResponse.displayName = 'proto.toit.api.GetCurrentTimeResponse'; } /** * 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.toit.api.UnclaimDeviceRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.UnclaimDeviceRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.UnclaimDeviceRequest.displayName = 'proto.toit.api.UnclaimDeviceRequest'; } /** * 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.toit.api.UnclaimDeviceResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.toit.api.UnclaimDeviceResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.toit.api.UnclaimDeviceResponse.displayName = 'proto.toit.api.UnclaimDeviceResponse'; } if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.toit.api.Device.prototype.toObject = function(opt_includeInstance) { return proto.toit.api.Device.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.toit.api.Device} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.toit.api.Device.toObject = function(includeInstance, msg) { var f, obj = { id: msg.getId_asB64(), hardwareId: msg.getHardwareId_asB64(), hardwareFqdn: jspb.Message.getFieldWithDefault(msg, 6, ""), config: (f = msg.getConfig()) && toit_model_device_pb.DeviceConfig.toObject(includeInstance, f), status: (f = msg.getStatus()) && toit_model_device_pb.DeviceStatus.toObject(includeInstance, f), isSimulator: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), nextAction: jspb.Message.getFieldWithDefault(msg, 10, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.toit.api.Device} */ proto.toit.api.Device.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.toit.api.Device; return proto.toit.api.Device.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.toit.api.Device} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.toit.api.Device} */ proto.toit.api.Device.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setId(value); break; case 5: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setHardwareId(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setHardwareFqdn(value); break; case 7: var value = new toit_model_device_pb.DeviceConfig; reader.readMessage(value,toit_model_device_pb.DeviceConfig.deserializeBinaryFromReader); msg.setConfig(value); break; case 8: var value = new toit_model_device_pb.DeviceStatus; reader.readMessage(value,toit_model_device_pb.DeviceStatus.deserializeBinaryFromReader); msg.setStatus(value); break; case 9: var value = /** @type {boolean} */ (reader.readBool()); msg.setIsSimulator(value); break; case 10: var value = /** @type {!proto.toit.model.DeviceAction} */ (reader.readEnum()); msg.setNextAction(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.toit.api.Device.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.toit.api.Device.serializeBinaryToWr