@science-corporation/synapse 2.2.9 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/api/api.d.ts CHANGED
@@ -1407,7 +1407,8 @@ export namespace synapse {
1407
1407
  kSpectralFilter = 8,
1408
1408
  kDiskWriter = 9,
1409
1409
  kSpikeBinner = 10,
1410
- kApplication = 11
1410
+ kApplication = 11,
1411
+ kCamera = 12
1411
1412
  }
1412
1413
 
1413
1414
  /** Properties of a NodeConfig. */
@@ -1445,6 +1446,9 @@ export namespace synapse {
1445
1446
 
1446
1447
  /** NodeConfig application */
1447
1448
  application?: (synapse.IApplicationNodeConfig|null);
1449
+
1450
+ /** NodeConfig camera */
1451
+ camera?: (synapse.ICameraConfig|null);
1448
1452
  }
1449
1453
 
1450
1454
  /** Represents a NodeConfig. */
@@ -1489,8 +1493,11 @@ export namespace synapse {
1489
1493
  /** NodeConfig application. */
1490
1494
  public application?: (synapse.IApplicationNodeConfig|null);
1491
1495
 
1496
+ /** NodeConfig camera. */
1497
+ public camera?: (synapse.ICameraConfig|null);
1498
+
1492
1499
  /** NodeConfig config. */
1493
- public config?: ("broadbandSource"|"electricalStimulation"|"opticalStimulation"|"spikeDetector"|"spectralFilter"|"diskWriter"|"spikeSource"|"spikeBinner"|"application");
1500
+ public config?: ("broadbandSource"|"electricalStimulation"|"opticalStimulation"|"spikeDetector"|"spectralFilter"|"diskWriter"|"spikeSource"|"spikeBinner"|"application"|"camera");
1494
1501
 
1495
1502
  /**
1496
1503
  * Creates a new NodeConfig instance using the specified properties.
@@ -1593,6 +1600,9 @@ export namespace synapse {
1593
1600
 
1594
1601
  /** NodeStatus diskWriter */
1595
1602
  diskWriter?: (synapse.IDiskWriterStatus|null);
1603
+
1604
+ /** NodeStatus camera */
1605
+ camera?: (synapse.ICameraStatus|null);
1596
1606
  }
1597
1607
 
1598
1608
  /** Represents a NodeStatus. */
@@ -1625,8 +1635,11 @@ export namespace synapse {
1625
1635
  /** NodeStatus diskWriter. */
1626
1636
  public diskWriter?: (synapse.IDiskWriterStatus|null);
1627
1637
 
1638
+ /** NodeStatus camera. */
1639
+ public camera?: (synapse.ICameraStatus|null);
1640
+
1628
1641
  /** NodeStatus status. */
1629
- public status?: ("broadbandSource"|"electricalStimulation"|"application"|"opticalStimulation"|"diskWriter");
1642
+ public status?: ("broadbandSource"|"electricalStimulation"|"application"|"opticalStimulation"|"diskWriter"|"camera");
1630
1643
 
1631
1644
  /**
1632
1645
  * Creates a new NodeStatus instance using the specified properties.
@@ -4522,1759 +4535,2106 @@ export namespace synapse {
4522
4535
  public static getTypeUrl(typeUrlPrefix?: string): string;
4523
4536
  }
4524
4537
 
4525
- /** Properties of a FunctionProfile. */
4526
- interface IFunctionProfile {
4527
-
4528
- /** FunctionProfile name */
4529
- name?: (string|null);
4530
-
4531
- /** FunctionProfile callCount */
4532
- callCount?: (Long|null);
4533
-
4534
- /** FunctionProfile minDurationNs */
4535
- minDurationNs?: (Long|null);
4538
+ /** Properties of a CameraConfig. */
4539
+ interface ICameraConfig {
4536
4540
 
4537
- /** FunctionProfile maxDurationNs */
4538
- maxDurationNs?: (Long|null);
4541
+ /** CameraConfig peripheralId */
4542
+ peripheralId?: (number|null);
4539
4543
 
4540
- /** FunctionProfile averageDurationNs */
4541
- averageDurationNs?: (Long|null);
4544
+ /** CameraConfig width */
4545
+ width?: (number|null);
4542
4546
 
4543
- /** FunctionProfile medianDurationNs */
4544
- medianDurationNs?: (Long|null);
4547
+ /** CameraConfig height */
4548
+ height?: (number|null);
4545
4549
 
4546
- /** FunctionProfile p99DurationNs */
4547
- p99DurationNs?: (Long|null);
4550
+ /** CameraConfig format */
4551
+ format?: (synapse.PixelFormat|null);
4548
4552
 
4549
- /** FunctionProfile latestDurationNs */
4550
- latestDurationNs?: (Long|null);
4553
+ /** CameraConfig frameRateHz */
4554
+ frameRateHz?: (number|null);
4551
4555
  }
4552
4556
 
4553
- /** Represents a FunctionProfile. */
4554
- class FunctionProfile implements IFunctionProfile {
4557
+ /** Represents a CameraConfig. */
4558
+ class CameraConfig implements ICameraConfig {
4555
4559
 
4556
4560
  /**
4557
- * Constructs a new FunctionProfile.
4561
+ * Constructs a new CameraConfig.
4558
4562
  * @param [properties] Properties to set
4559
4563
  */
4560
- constructor(properties?: synapse.IFunctionProfile);
4561
-
4562
- /** FunctionProfile name. */
4563
- public name: string;
4564
-
4565
- /** FunctionProfile callCount. */
4566
- public callCount: Long;
4564
+ constructor(properties?: synapse.ICameraConfig);
4567
4565
 
4568
- /** FunctionProfile minDurationNs. */
4569
- public minDurationNs: Long;
4570
-
4571
- /** FunctionProfile maxDurationNs. */
4572
- public maxDurationNs: Long;
4566
+ /** CameraConfig peripheralId. */
4567
+ public peripheralId: number;
4573
4568
 
4574
- /** FunctionProfile averageDurationNs. */
4575
- public averageDurationNs: Long;
4569
+ /** CameraConfig width. */
4570
+ public width: number;
4576
4571
 
4577
- /** FunctionProfile medianDurationNs. */
4578
- public medianDurationNs: Long;
4572
+ /** CameraConfig height. */
4573
+ public height: number;
4579
4574
 
4580
- /** FunctionProfile p99DurationNs. */
4581
- public p99DurationNs: Long;
4575
+ /** CameraConfig format. */
4576
+ public format: synapse.PixelFormat;
4582
4577
 
4583
- /** FunctionProfile latestDurationNs. */
4584
- public latestDurationNs: Long;
4578
+ /** CameraConfig frameRateHz. */
4579
+ public frameRateHz: number;
4585
4580
 
4586
4581
  /**
4587
- * Creates a new FunctionProfile instance using the specified properties.
4582
+ * Creates a new CameraConfig instance using the specified properties.
4588
4583
  * @param [properties] Properties to set
4589
- * @returns FunctionProfile instance
4584
+ * @returns CameraConfig instance
4590
4585
  */
4591
- public static create(properties?: synapse.IFunctionProfile): synapse.FunctionProfile;
4586
+ public static create(properties?: synapse.ICameraConfig): synapse.CameraConfig;
4592
4587
 
4593
4588
  /**
4594
- * Encodes the specified FunctionProfile message. Does not implicitly {@link synapse.FunctionProfile.verify|verify} messages.
4595
- * @param message FunctionProfile message or plain object to encode
4589
+ * Encodes the specified CameraConfig message. Does not implicitly {@link synapse.CameraConfig.verify|verify} messages.
4590
+ * @param message CameraConfig message or plain object to encode
4596
4591
  * @param [writer] Writer to encode to
4597
4592
  * @returns Writer
4598
4593
  */
4599
- public static encode(message: synapse.IFunctionProfile, writer?: $protobuf.Writer): $protobuf.Writer;
4594
+ public static encode(message: synapse.ICameraConfig, writer?: $protobuf.Writer): $protobuf.Writer;
4600
4595
 
4601
4596
  /**
4602
- * Encodes the specified FunctionProfile message, length delimited. Does not implicitly {@link synapse.FunctionProfile.verify|verify} messages.
4603
- * @param message FunctionProfile message or plain object to encode
4597
+ * Encodes the specified CameraConfig message, length delimited. Does not implicitly {@link synapse.CameraConfig.verify|verify} messages.
4598
+ * @param message CameraConfig message or plain object to encode
4604
4599
  * @param [writer] Writer to encode to
4605
4600
  * @returns Writer
4606
4601
  */
4607
- public static encodeDelimited(message: synapse.IFunctionProfile, writer?: $protobuf.Writer): $protobuf.Writer;
4602
+ public static encodeDelimited(message: synapse.ICameraConfig, writer?: $protobuf.Writer): $protobuf.Writer;
4608
4603
 
4609
4604
  /**
4610
- * Decodes a FunctionProfile message from the specified reader or buffer.
4605
+ * Decodes a CameraConfig message from the specified reader or buffer.
4611
4606
  * @param reader Reader or buffer to decode from
4612
4607
  * @param [length] Message length if known beforehand
4613
- * @returns FunctionProfile
4608
+ * @returns CameraConfig
4614
4609
  * @throws {Error} If the payload is not a reader or valid buffer
4615
4610
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
4616
4611
  */
4617
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.FunctionProfile;
4612
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.CameraConfig;
4618
4613
 
4619
4614
  /**
4620
- * Decodes a FunctionProfile message from the specified reader or buffer, length delimited.
4615
+ * Decodes a CameraConfig message from the specified reader or buffer, length delimited.
4621
4616
  * @param reader Reader or buffer to decode from
4622
- * @returns FunctionProfile
4617
+ * @returns CameraConfig
4623
4618
  * @throws {Error} If the payload is not a reader or valid buffer
4624
4619
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
4625
4620
  */
4626
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.FunctionProfile;
4621
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.CameraConfig;
4627
4622
 
4628
4623
  /**
4629
- * Verifies a FunctionProfile message.
4624
+ * Verifies a CameraConfig message.
4630
4625
  * @param message Plain object to verify
4631
4626
  * @returns `null` if valid, otherwise the reason why it is not
4632
4627
  */
4633
4628
  public static verify(message: { [k: string]: any }): (string|null);
4634
4629
 
4635
4630
  /**
4636
- * Creates a FunctionProfile message from a plain object. Also converts values to their respective internal types.
4631
+ * Creates a CameraConfig message from a plain object. Also converts values to their respective internal types.
4637
4632
  * @param object Plain object
4638
- * @returns FunctionProfile
4633
+ * @returns CameraConfig
4639
4634
  */
4640
- public static fromObject(object: { [k: string]: any }): synapse.FunctionProfile;
4635
+ public static fromObject(object: { [k: string]: any }): synapse.CameraConfig;
4641
4636
 
4642
4637
  /**
4643
- * Creates a plain object from a FunctionProfile message. Also converts values to other types if specified.
4644
- * @param message FunctionProfile
4638
+ * Creates a plain object from a CameraConfig message. Also converts values to other types if specified.
4639
+ * @param message CameraConfig
4645
4640
  * @param [options] Conversion options
4646
4641
  * @returns Plain object
4647
4642
  */
4648
- public static toObject(message: synapse.FunctionProfile, options?: $protobuf.IConversionOptions): { [k: string]: any };
4643
+ public static toObject(message: synapse.CameraConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
4649
4644
 
4650
4645
  /**
4651
- * Converts this FunctionProfile to JSON.
4646
+ * Converts this CameraConfig to JSON.
4652
4647
  * @returns JSON object
4653
4648
  */
4654
4649
  public toJSON(): { [k: string]: any };
4655
4650
 
4656
4651
  /**
4657
- * Gets the default type url for FunctionProfile
4652
+ * Gets the default type url for CameraConfig
4658
4653
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4659
4654
  * @returns The default type url
4660
4655
  */
4661
4656
  public static getTypeUrl(typeUrlPrefix?: string): string;
4662
4657
  }
4663
4658
 
4664
- /** Properties of a Peripheral. */
4665
- interface IPeripheral {
4666
-
4667
- /** Peripheral name */
4668
- name?: (string|null);
4669
-
4670
- /** Peripheral vendor */
4671
- vendor?: (string|null);
4672
-
4673
- /** Peripheral peripheralId */
4674
- peripheralId?: (number|null);
4659
+ /** Properties of a CameraStatus. */
4660
+ interface ICameraStatus {
4675
4661
 
4676
- /** Peripheral type */
4677
- type?: (synapse.Peripheral.Type|null);
4662
+ /** CameraStatus framesProduced */
4663
+ framesProduced?: (Long|null);
4678
4664
 
4679
- /** Peripheral address */
4680
- address?: (string|null);
4665
+ /** CameraStatus framesDropped */
4666
+ framesDropped?: (Long|null);
4681
4667
  }
4682
4668
 
4683
- /** Represents a Peripheral. */
4684
- class Peripheral implements IPeripheral {
4669
+ /** Represents a CameraStatus. */
4670
+ class CameraStatus implements ICameraStatus {
4685
4671
 
4686
4672
  /**
4687
- * Constructs a new Peripheral.
4673
+ * Constructs a new CameraStatus.
4688
4674
  * @param [properties] Properties to set
4689
4675
  */
4690
- constructor(properties?: synapse.IPeripheral);
4691
-
4692
- /** Peripheral name. */
4693
- public name: string;
4676
+ constructor(properties?: synapse.ICameraStatus);
4694
4677
 
4695
- /** Peripheral vendor. */
4696
- public vendor: string;
4697
-
4698
- /** Peripheral peripheralId. */
4699
- public peripheralId: number;
4700
-
4701
- /** Peripheral type. */
4702
- public type: synapse.Peripheral.Type;
4678
+ /** CameraStatus framesProduced. */
4679
+ public framesProduced: Long;
4703
4680
 
4704
- /** Peripheral address. */
4705
- public address: string;
4681
+ /** CameraStatus framesDropped. */
4682
+ public framesDropped: Long;
4706
4683
 
4707
4684
  /**
4708
- * Creates a new Peripheral instance using the specified properties.
4685
+ * Creates a new CameraStatus instance using the specified properties.
4709
4686
  * @param [properties] Properties to set
4710
- * @returns Peripheral instance
4687
+ * @returns CameraStatus instance
4711
4688
  */
4712
- public static create(properties?: synapse.IPeripheral): synapse.Peripheral;
4689
+ public static create(properties?: synapse.ICameraStatus): synapse.CameraStatus;
4713
4690
 
4714
4691
  /**
4715
- * Encodes the specified Peripheral message. Does not implicitly {@link synapse.Peripheral.verify|verify} messages.
4716
- * @param message Peripheral message or plain object to encode
4692
+ * Encodes the specified CameraStatus message. Does not implicitly {@link synapse.CameraStatus.verify|verify} messages.
4693
+ * @param message CameraStatus message or plain object to encode
4717
4694
  * @param [writer] Writer to encode to
4718
4695
  * @returns Writer
4719
4696
  */
4720
- public static encode(message: synapse.IPeripheral, writer?: $protobuf.Writer): $protobuf.Writer;
4697
+ public static encode(message: synapse.ICameraStatus, writer?: $protobuf.Writer): $protobuf.Writer;
4721
4698
 
4722
4699
  /**
4723
- * Encodes the specified Peripheral message, length delimited. Does not implicitly {@link synapse.Peripheral.verify|verify} messages.
4724
- * @param message Peripheral message or plain object to encode
4700
+ * Encodes the specified CameraStatus message, length delimited. Does not implicitly {@link synapse.CameraStatus.verify|verify} messages.
4701
+ * @param message CameraStatus message or plain object to encode
4725
4702
  * @param [writer] Writer to encode to
4726
4703
  * @returns Writer
4727
4704
  */
4728
- public static encodeDelimited(message: synapse.IPeripheral, writer?: $protobuf.Writer): $protobuf.Writer;
4705
+ public static encodeDelimited(message: synapse.ICameraStatus, writer?: $protobuf.Writer): $protobuf.Writer;
4729
4706
 
4730
4707
  /**
4731
- * Decodes a Peripheral message from the specified reader or buffer.
4708
+ * Decodes a CameraStatus message from the specified reader or buffer.
4732
4709
  * @param reader Reader or buffer to decode from
4733
4710
  * @param [length] Message length if known beforehand
4734
- * @returns Peripheral
4711
+ * @returns CameraStatus
4735
4712
  * @throws {Error} If the payload is not a reader or valid buffer
4736
4713
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
4737
4714
  */
4738
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.Peripheral;
4715
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.CameraStatus;
4739
4716
 
4740
4717
  /**
4741
- * Decodes a Peripheral message from the specified reader or buffer, length delimited.
4718
+ * Decodes a CameraStatus message from the specified reader or buffer, length delimited.
4742
4719
  * @param reader Reader or buffer to decode from
4743
- * @returns Peripheral
4720
+ * @returns CameraStatus
4744
4721
  * @throws {Error} If the payload is not a reader or valid buffer
4745
4722
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
4746
4723
  */
4747
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.Peripheral;
4724
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.CameraStatus;
4748
4725
 
4749
4726
  /**
4750
- * Verifies a Peripheral message.
4727
+ * Verifies a CameraStatus message.
4751
4728
  * @param message Plain object to verify
4752
4729
  * @returns `null` if valid, otherwise the reason why it is not
4753
4730
  */
4754
4731
  public static verify(message: { [k: string]: any }): (string|null);
4755
4732
 
4756
4733
  /**
4757
- * Creates a Peripheral message from a plain object. Also converts values to their respective internal types.
4734
+ * Creates a CameraStatus message from a plain object. Also converts values to their respective internal types.
4758
4735
  * @param object Plain object
4759
- * @returns Peripheral
4736
+ * @returns CameraStatus
4760
4737
  */
4761
- public static fromObject(object: { [k: string]: any }): synapse.Peripheral;
4738
+ public static fromObject(object: { [k: string]: any }): synapse.CameraStatus;
4762
4739
 
4763
4740
  /**
4764
- * Creates a plain object from a Peripheral message. Also converts values to other types if specified.
4765
- * @param message Peripheral
4741
+ * Creates a plain object from a CameraStatus message. Also converts values to other types if specified.
4742
+ * @param message CameraStatus
4766
4743
  * @param [options] Conversion options
4767
4744
  * @returns Plain object
4768
4745
  */
4769
- public static toObject(message: synapse.Peripheral, options?: $protobuf.IConversionOptions): { [k: string]: any };
4746
+ public static toObject(message: synapse.CameraStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
4770
4747
 
4771
4748
  /**
4772
- * Converts this Peripheral to JSON.
4749
+ * Converts this CameraStatus to JSON.
4773
4750
  * @returns JSON object
4774
4751
  */
4775
4752
  public toJSON(): { [k: string]: any };
4776
4753
 
4777
4754
  /**
4778
- * Gets the default type url for Peripheral
4755
+ * Gets the default type url for CameraStatus
4779
4756
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4780
4757
  * @returns The default type url
4781
4758
  */
4782
4759
  public static getTypeUrl(typeUrlPrefix?: string): string;
4783
4760
  }
4784
4761
 
4785
- namespace Peripheral {
4786
-
4787
- /** Type enum. */
4788
- enum Type {
4789
- kUnknown = 0,
4790
- kBroadbandSource = 1,
4791
- kElectricalStimulation = 2,
4792
- kOpticalStimulation = 3,
4793
- kSpikeSource = 4
4794
- }
4762
+ /** DataType enum. */
4763
+ enum DataType {
4764
+ kDataTypeUnknown = 0,
4765
+ kAny = 1,
4766
+ kBroadband = 2,
4767
+ kSpiketrain = 3,
4768
+ kTimestamps = 4,
4769
+ kImage = 5,
4770
+ kWaveforms = 6
4795
4771
  }
4796
4772
 
4797
- /** Properties of a DeviceInfo. */
4798
- interface IDeviceInfo {
4799
-
4800
- /** DeviceInfo name */
4801
- name?: (string|null);
4802
-
4803
- /** DeviceInfo serial */
4804
- serial?: (string|null);
4773
+ /** Properties of a Tensor. */
4774
+ interface ITensor {
4805
4775
 
4806
- /** DeviceInfo synapseVersion */
4807
- synapseVersion?: (number|null);
4776
+ /** Tensor timestampNs */
4777
+ timestampNs?: (Long|null);
4808
4778
 
4809
- /** DeviceInfo firmwareVersion */
4810
- firmwareVersion?: (number|null);
4779
+ /** Tensor shape */
4780
+ shape?: (number[]|null);
4811
4781
 
4812
- /** DeviceInfo status */
4813
- status?: (synapse.IStatus|null);
4782
+ /** Tensor dtype */
4783
+ dtype?: (synapse.Tensor.DType|null);
4814
4784
 
4815
- /** DeviceInfo peripherals */
4816
- peripherals?: (synapse.IPeripheral[]|null);
4785
+ /** Tensor endianness */
4786
+ endianness?: (synapse.Tensor.Endianness|null);
4817
4787
 
4818
- /** DeviceInfo configuration */
4819
- configuration?: (synapse.IDeviceConfiguration|null);
4788
+ /** Tensor data */
4789
+ data?: (Uint8Array|null);
4820
4790
  }
4821
4791
 
4822
- /** Represents a DeviceInfo. */
4823
- class DeviceInfo implements IDeviceInfo {
4792
+ /** Represents a Tensor. */
4793
+ class Tensor implements ITensor {
4824
4794
 
4825
4795
  /**
4826
- * Constructs a new DeviceInfo.
4796
+ * Constructs a new Tensor.
4827
4797
  * @param [properties] Properties to set
4828
4798
  */
4829
- constructor(properties?: synapse.IDeviceInfo);
4830
-
4831
- /** DeviceInfo name. */
4832
- public name: string;
4833
-
4834
- /** DeviceInfo serial. */
4835
- public serial: string;
4799
+ constructor(properties?: synapse.ITensor);
4836
4800
 
4837
- /** DeviceInfo synapseVersion. */
4838
- public synapseVersion: number;
4801
+ /** Tensor timestampNs. */
4802
+ public timestampNs: Long;
4839
4803
 
4840
- /** DeviceInfo firmwareVersion. */
4841
- public firmwareVersion: number;
4804
+ /** Tensor shape. */
4805
+ public shape: number[];
4842
4806
 
4843
- /** DeviceInfo status. */
4844
- public status?: (synapse.IStatus|null);
4807
+ /** Tensor dtype. */
4808
+ public dtype: synapse.Tensor.DType;
4845
4809
 
4846
- /** DeviceInfo peripherals. */
4847
- public peripherals: synapse.IPeripheral[];
4810
+ /** Tensor endianness. */
4811
+ public endianness: synapse.Tensor.Endianness;
4848
4812
 
4849
- /** DeviceInfo configuration. */
4850
- public configuration?: (synapse.IDeviceConfiguration|null);
4813
+ /** Tensor data. */
4814
+ public data: Uint8Array;
4851
4815
 
4852
4816
  /**
4853
- * Creates a new DeviceInfo instance using the specified properties.
4817
+ * Creates a new Tensor instance using the specified properties.
4854
4818
  * @param [properties] Properties to set
4855
- * @returns DeviceInfo instance
4819
+ * @returns Tensor instance
4856
4820
  */
4857
- public static create(properties?: synapse.IDeviceInfo): synapse.DeviceInfo;
4821
+ public static create(properties?: synapse.ITensor): synapse.Tensor;
4858
4822
 
4859
4823
  /**
4860
- * Encodes the specified DeviceInfo message. Does not implicitly {@link synapse.DeviceInfo.verify|verify} messages.
4861
- * @param message DeviceInfo message or plain object to encode
4824
+ * Encodes the specified Tensor message. Does not implicitly {@link synapse.Tensor.verify|verify} messages.
4825
+ * @param message Tensor message or plain object to encode
4862
4826
  * @param [writer] Writer to encode to
4863
4827
  * @returns Writer
4864
4828
  */
4865
- public static encode(message: synapse.IDeviceInfo, writer?: $protobuf.Writer): $protobuf.Writer;
4829
+ public static encode(message: synapse.ITensor, writer?: $protobuf.Writer): $protobuf.Writer;
4866
4830
 
4867
4831
  /**
4868
- * Encodes the specified DeviceInfo message, length delimited. Does not implicitly {@link synapse.DeviceInfo.verify|verify} messages.
4869
- * @param message DeviceInfo message or plain object to encode
4832
+ * Encodes the specified Tensor message, length delimited. Does not implicitly {@link synapse.Tensor.verify|verify} messages.
4833
+ * @param message Tensor message or plain object to encode
4870
4834
  * @param [writer] Writer to encode to
4871
4835
  * @returns Writer
4872
4836
  */
4873
- public static encodeDelimited(message: synapse.IDeviceInfo, writer?: $protobuf.Writer): $protobuf.Writer;
4837
+ public static encodeDelimited(message: synapse.ITensor, writer?: $protobuf.Writer): $protobuf.Writer;
4874
4838
 
4875
4839
  /**
4876
- * Decodes a DeviceInfo message from the specified reader or buffer.
4840
+ * Decodes a Tensor message from the specified reader or buffer.
4877
4841
  * @param reader Reader or buffer to decode from
4878
4842
  * @param [length] Message length if known beforehand
4879
- * @returns DeviceInfo
4843
+ * @returns Tensor
4880
4844
  * @throws {Error} If the payload is not a reader or valid buffer
4881
4845
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
4882
4846
  */
4883
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.DeviceInfo;
4847
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.Tensor;
4884
4848
 
4885
4849
  /**
4886
- * Decodes a DeviceInfo message from the specified reader or buffer, length delimited.
4850
+ * Decodes a Tensor message from the specified reader or buffer, length delimited.
4887
4851
  * @param reader Reader or buffer to decode from
4888
- * @returns DeviceInfo
4852
+ * @returns Tensor
4889
4853
  * @throws {Error} If the payload is not a reader or valid buffer
4890
4854
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
4891
4855
  */
4892
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.DeviceInfo;
4856
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.Tensor;
4893
4857
 
4894
4858
  /**
4895
- * Verifies a DeviceInfo message.
4859
+ * Verifies a Tensor message.
4896
4860
  * @param message Plain object to verify
4897
4861
  * @returns `null` if valid, otherwise the reason why it is not
4898
4862
  */
4899
4863
  public static verify(message: { [k: string]: any }): (string|null);
4900
4864
 
4901
4865
  /**
4902
- * Creates a DeviceInfo message from a plain object. Also converts values to their respective internal types.
4866
+ * Creates a Tensor message from a plain object. Also converts values to their respective internal types.
4903
4867
  * @param object Plain object
4904
- * @returns DeviceInfo
4868
+ * @returns Tensor
4905
4869
  */
4906
- public static fromObject(object: { [k: string]: any }): synapse.DeviceInfo;
4870
+ public static fromObject(object: { [k: string]: any }): synapse.Tensor;
4907
4871
 
4908
4872
  /**
4909
- * Creates a plain object from a DeviceInfo message. Also converts values to other types if specified.
4910
- * @param message DeviceInfo
4873
+ * Creates a plain object from a Tensor message. Also converts values to other types if specified.
4874
+ * @param message Tensor
4911
4875
  * @param [options] Conversion options
4912
4876
  * @returns Plain object
4913
4877
  */
4914
- public static toObject(message: synapse.DeviceInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
4878
+ public static toObject(message: synapse.Tensor, options?: $protobuf.IConversionOptions): { [k: string]: any };
4915
4879
 
4916
4880
  /**
4917
- * Converts this DeviceInfo to JSON.
4881
+ * Converts this Tensor to JSON.
4918
4882
  * @returns JSON object
4919
4883
  */
4920
4884
  public toJSON(): { [k: string]: any };
4921
4885
 
4922
4886
  /**
4923
- * Gets the default type url for DeviceInfo
4887
+ * Gets the default type url for Tensor
4924
4888
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4925
4889
  * @returns The default type url
4926
4890
  */
4927
4891
  public static getTypeUrl(typeUrlPrefix?: string): string;
4928
4892
  }
4929
4893
 
4930
- /** Properties of a DeviceConfiguration. */
4931
- interface IDeviceConfiguration {
4894
+ namespace Tensor {
4932
4895
 
4933
- /** DeviceConfiguration nodes */
4934
- nodes?: (synapse.INodeConfig[]|null);
4896
+ /** DType enum. */
4897
+ enum DType {
4898
+ DT_INVALID = 0,
4899
+ DT_FLOAT = 1,
4900
+ DT_DOUBLE = 2,
4901
+ DT_UINT8 = 3,
4902
+ DT_UINT16 = 4,
4903
+ DT_UINT32 = 5,
4904
+ DT_UINT64 = 6,
4905
+ DT_INT8 = 7,
4906
+ DT_INT16 = 8,
4907
+ DT_INT32 = 9,
4908
+ DT_INT64 = 10,
4909
+ DT_BOOL = 11
4910
+ }
4935
4911
 
4936
- /** DeviceConfiguration connections */
4937
- connections?: (synapse.INodeConnection[]|null);
4912
+ /** Endianness enum. */
4913
+ enum Endianness {
4914
+ TENSOR_LITTLE_ENDIAN = 0,
4915
+ TENSOR_BIG_ENDIAN = 1
4916
+ }
4938
4917
  }
4939
4918
 
4940
- /** Represents a DeviceConfiguration. */
4941
- class DeviceConfiguration implements IDeviceConfiguration {
4919
+ /** Properties of a BroadbandFrame. */
4920
+ interface IBroadbandFrame {
4921
+
4922
+ /** BroadbandFrame timestampNs */
4923
+ timestampNs?: (Long|null);
4924
+
4925
+ /** BroadbandFrame sequenceNumber */
4926
+ sequenceNumber?: (Long|null);
4927
+
4928
+ /** BroadbandFrame frameData */
4929
+ frameData?: (number[]|null);
4930
+
4931
+ /** BroadbandFrame sampleRateHz */
4932
+ sampleRateHz?: (number|null);
4933
+
4934
+ /** BroadbandFrame channelRanges */
4935
+ channelRanges?: (synapse.IChannelRange[]|null);
4936
+
4937
+ /** BroadbandFrame unixTimestampNs */
4938
+ unixTimestampNs?: (Long|null);
4939
+ }
4940
+
4941
+ /** Represents a BroadbandFrame. */
4942
+ class BroadbandFrame implements IBroadbandFrame {
4942
4943
 
4943
4944
  /**
4944
- * Constructs a new DeviceConfiguration.
4945
+ * Constructs a new BroadbandFrame.
4945
4946
  * @param [properties] Properties to set
4946
4947
  */
4947
- constructor(properties?: synapse.IDeviceConfiguration);
4948
+ constructor(properties?: synapse.IBroadbandFrame);
4948
4949
 
4949
- /** DeviceConfiguration nodes. */
4950
- public nodes: synapse.INodeConfig[];
4950
+ /** BroadbandFrame timestampNs. */
4951
+ public timestampNs: Long;
4951
4952
 
4952
- /** DeviceConfiguration connections. */
4953
- public connections: synapse.INodeConnection[];
4953
+ /** BroadbandFrame sequenceNumber. */
4954
+ public sequenceNumber: Long;
4955
+
4956
+ /** BroadbandFrame frameData. */
4957
+ public frameData: number[];
4958
+
4959
+ /** BroadbandFrame sampleRateHz. */
4960
+ public sampleRateHz: number;
4961
+
4962
+ /** BroadbandFrame channelRanges. */
4963
+ public channelRanges: synapse.IChannelRange[];
4964
+
4965
+ /** BroadbandFrame unixTimestampNs. */
4966
+ public unixTimestampNs: Long;
4954
4967
 
4955
4968
  /**
4956
- * Creates a new DeviceConfiguration instance using the specified properties.
4969
+ * Creates a new BroadbandFrame instance using the specified properties.
4957
4970
  * @param [properties] Properties to set
4958
- * @returns DeviceConfiguration instance
4971
+ * @returns BroadbandFrame instance
4959
4972
  */
4960
- public static create(properties?: synapse.IDeviceConfiguration): synapse.DeviceConfiguration;
4973
+ public static create(properties?: synapse.IBroadbandFrame): synapse.BroadbandFrame;
4961
4974
 
4962
4975
  /**
4963
- * Encodes the specified DeviceConfiguration message. Does not implicitly {@link synapse.DeviceConfiguration.verify|verify} messages.
4964
- * @param message DeviceConfiguration message or plain object to encode
4976
+ * Encodes the specified BroadbandFrame message. Does not implicitly {@link synapse.BroadbandFrame.verify|verify} messages.
4977
+ * @param message BroadbandFrame message or plain object to encode
4965
4978
  * @param [writer] Writer to encode to
4966
4979
  * @returns Writer
4967
4980
  */
4968
- public static encode(message: synapse.IDeviceConfiguration, writer?: $protobuf.Writer): $protobuf.Writer;
4981
+ public static encode(message: synapse.IBroadbandFrame, writer?: $protobuf.Writer): $protobuf.Writer;
4969
4982
 
4970
4983
  /**
4971
- * Encodes the specified DeviceConfiguration message, length delimited. Does not implicitly {@link synapse.DeviceConfiguration.verify|verify} messages.
4972
- * @param message DeviceConfiguration message or plain object to encode
4984
+ * Encodes the specified BroadbandFrame message, length delimited. Does not implicitly {@link synapse.BroadbandFrame.verify|verify} messages.
4985
+ * @param message BroadbandFrame message or plain object to encode
4973
4986
  * @param [writer] Writer to encode to
4974
4987
  * @returns Writer
4975
4988
  */
4976
- public static encodeDelimited(message: synapse.IDeviceConfiguration, writer?: $protobuf.Writer): $protobuf.Writer;
4989
+ public static encodeDelimited(message: synapse.IBroadbandFrame, writer?: $protobuf.Writer): $protobuf.Writer;
4977
4990
 
4978
4991
  /**
4979
- * Decodes a DeviceConfiguration message from the specified reader or buffer.
4992
+ * Decodes a BroadbandFrame message from the specified reader or buffer.
4980
4993
  * @param reader Reader or buffer to decode from
4981
4994
  * @param [length] Message length if known beforehand
4982
- * @returns DeviceConfiguration
4995
+ * @returns BroadbandFrame
4983
4996
  * @throws {Error} If the payload is not a reader or valid buffer
4984
4997
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
4985
4998
  */
4986
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.DeviceConfiguration;
4999
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.BroadbandFrame;
4987
5000
 
4988
5001
  /**
4989
- * Decodes a DeviceConfiguration message from the specified reader or buffer, length delimited.
5002
+ * Decodes a BroadbandFrame message from the specified reader or buffer, length delimited.
4990
5003
  * @param reader Reader or buffer to decode from
4991
- * @returns DeviceConfiguration
5004
+ * @returns BroadbandFrame
4992
5005
  * @throws {Error} If the payload is not a reader or valid buffer
4993
5006
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
4994
5007
  */
4995
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.DeviceConfiguration;
5008
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.BroadbandFrame;
4996
5009
 
4997
5010
  /**
4998
- * Verifies a DeviceConfiguration message.
5011
+ * Verifies a BroadbandFrame message.
4999
5012
  * @param message Plain object to verify
5000
5013
  * @returns `null` if valid, otherwise the reason why it is not
5001
5014
  */
5002
5015
  public static verify(message: { [k: string]: any }): (string|null);
5003
5016
 
5004
5017
  /**
5005
- * Creates a DeviceConfiguration message from a plain object. Also converts values to their respective internal types.
5018
+ * Creates a BroadbandFrame message from a plain object. Also converts values to their respective internal types.
5006
5019
  * @param object Plain object
5007
- * @returns DeviceConfiguration
5020
+ * @returns BroadbandFrame
5008
5021
  */
5009
- public static fromObject(object: { [k: string]: any }): synapse.DeviceConfiguration;
5022
+ public static fromObject(object: { [k: string]: any }): synapse.BroadbandFrame;
5010
5023
 
5011
5024
  /**
5012
- * Creates a plain object from a DeviceConfiguration message. Also converts values to other types if specified.
5013
- * @param message DeviceConfiguration
5025
+ * Creates a plain object from a BroadbandFrame message. Also converts values to other types if specified.
5026
+ * @param message BroadbandFrame
5014
5027
  * @param [options] Conversion options
5015
5028
  * @returns Plain object
5016
5029
  */
5017
- public static toObject(message: synapse.DeviceConfiguration, options?: $protobuf.IConversionOptions): { [k: string]: any };
5030
+ public static toObject(message: synapse.BroadbandFrame, options?: $protobuf.IConversionOptions): { [k: string]: any };
5018
5031
 
5019
5032
  /**
5020
- * Converts this DeviceConfiguration to JSON.
5033
+ * Converts this BroadbandFrame to JSON.
5021
5034
  * @returns JSON object
5022
5035
  */
5023
5036
  public toJSON(): { [k: string]: any };
5024
5037
 
5025
5038
  /**
5026
- * Gets the default type url for DeviceConfiguration
5039
+ * Gets the default type url for BroadbandFrame
5027
5040
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5028
5041
  * @returns The default type url
5029
5042
  */
5030
5043
  public static getTypeUrl(typeUrlPrefix?: string): string;
5031
5044
  }
5032
5045
 
5033
- /** Properties of a DeviceSettings. */
5034
- interface IDeviceSettings {
5035
-
5036
- /** DeviceSettings name */
5037
- name?: (string|null);
5046
+ /** Properties of a Timeseries. */
5047
+ interface ITimeseries {
5038
5048
 
5039
- /** DeviceSettings timeSource */
5040
- timeSource?: (synapse.TimeSource|null);
5049
+ /** Timeseries id */
5050
+ id?: (number|null);
5041
5051
 
5042
- /** DeviceSettings fpgaClockFreqHz */
5043
- fpgaClockFreqHz?: (number|null);
5052
+ /** Timeseries datapoints */
5053
+ datapoints?: (synapse.Timeseries.IDatapoint[]|null);
5044
5054
  }
5045
5055
 
5046
- /** Represents a DeviceSettings. */
5047
- class DeviceSettings implements IDeviceSettings {
5056
+ /** Represents a Timeseries. */
5057
+ class Timeseries implements ITimeseries {
5048
5058
 
5049
5059
  /**
5050
- * Constructs a new DeviceSettings.
5060
+ * Constructs a new Timeseries.
5051
5061
  * @param [properties] Properties to set
5052
5062
  */
5053
- constructor(properties?: synapse.IDeviceSettings);
5054
-
5055
- /** DeviceSettings name. */
5056
- public name: string;
5063
+ constructor(properties?: synapse.ITimeseries);
5057
5064
 
5058
- /** DeviceSettings timeSource. */
5059
- public timeSource: synapse.TimeSource;
5065
+ /** Timeseries id. */
5066
+ public id: number;
5060
5067
 
5061
- /** DeviceSettings fpgaClockFreqHz. */
5062
- public fpgaClockFreqHz: number;
5068
+ /** Timeseries datapoints. */
5069
+ public datapoints: synapse.Timeseries.IDatapoint[];
5063
5070
 
5064
5071
  /**
5065
- * Creates a new DeviceSettings instance using the specified properties.
5072
+ * Creates a new Timeseries instance using the specified properties.
5066
5073
  * @param [properties] Properties to set
5067
- * @returns DeviceSettings instance
5074
+ * @returns Timeseries instance
5068
5075
  */
5069
- public static create(properties?: synapse.IDeviceSettings): synapse.DeviceSettings;
5076
+ public static create(properties?: synapse.ITimeseries): synapse.Timeseries;
5070
5077
 
5071
5078
  /**
5072
- * Encodes the specified DeviceSettings message. Does not implicitly {@link synapse.DeviceSettings.verify|verify} messages.
5073
- * @param message DeviceSettings message or plain object to encode
5079
+ * Encodes the specified Timeseries message. Does not implicitly {@link synapse.Timeseries.verify|verify} messages.
5080
+ * @param message Timeseries message or plain object to encode
5074
5081
  * @param [writer] Writer to encode to
5075
5082
  * @returns Writer
5076
5083
  */
5077
- public static encode(message: synapse.IDeviceSettings, writer?: $protobuf.Writer): $protobuf.Writer;
5084
+ public static encode(message: synapse.ITimeseries, writer?: $protobuf.Writer): $protobuf.Writer;
5078
5085
 
5079
5086
  /**
5080
- * Encodes the specified DeviceSettings message, length delimited. Does not implicitly {@link synapse.DeviceSettings.verify|verify} messages.
5081
- * @param message DeviceSettings message or plain object to encode
5087
+ * Encodes the specified Timeseries message, length delimited. Does not implicitly {@link synapse.Timeseries.verify|verify} messages.
5088
+ * @param message Timeseries message or plain object to encode
5082
5089
  * @param [writer] Writer to encode to
5083
5090
  * @returns Writer
5084
5091
  */
5085
- public static encodeDelimited(message: synapse.IDeviceSettings, writer?: $protobuf.Writer): $protobuf.Writer;
5092
+ public static encodeDelimited(message: synapse.ITimeseries, writer?: $protobuf.Writer): $protobuf.Writer;
5086
5093
 
5087
5094
  /**
5088
- * Decodes a DeviceSettings message from the specified reader or buffer.
5095
+ * Decodes a Timeseries message from the specified reader or buffer.
5089
5096
  * @param reader Reader or buffer to decode from
5090
5097
  * @param [length] Message length if known beforehand
5091
- * @returns DeviceSettings
5098
+ * @returns Timeseries
5092
5099
  * @throws {Error} If the payload is not a reader or valid buffer
5093
5100
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5094
5101
  */
5095
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.DeviceSettings;
5102
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.Timeseries;
5096
5103
 
5097
5104
  /**
5098
- * Decodes a DeviceSettings message from the specified reader or buffer, length delimited.
5105
+ * Decodes a Timeseries message from the specified reader or buffer, length delimited.
5099
5106
  * @param reader Reader or buffer to decode from
5100
- * @returns DeviceSettings
5107
+ * @returns Timeseries
5101
5108
  * @throws {Error} If the payload is not a reader or valid buffer
5102
5109
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5103
5110
  */
5104
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.DeviceSettings;
5111
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.Timeseries;
5105
5112
 
5106
5113
  /**
5107
- * Verifies a DeviceSettings message.
5114
+ * Verifies a Timeseries message.
5108
5115
  * @param message Plain object to verify
5109
5116
  * @returns `null` if valid, otherwise the reason why it is not
5110
5117
  */
5111
5118
  public static verify(message: { [k: string]: any }): (string|null);
5112
5119
 
5113
5120
  /**
5114
- * Creates a DeviceSettings message from a plain object. Also converts values to their respective internal types.
5121
+ * Creates a Timeseries message from a plain object. Also converts values to their respective internal types.
5115
5122
  * @param object Plain object
5116
- * @returns DeviceSettings
5123
+ * @returns Timeseries
5117
5124
  */
5118
- public static fromObject(object: { [k: string]: any }): synapse.DeviceSettings;
5125
+ public static fromObject(object: { [k: string]: any }): synapse.Timeseries;
5119
5126
 
5120
5127
  /**
5121
- * Creates a plain object from a DeviceSettings message. Also converts values to other types if specified.
5122
- * @param message DeviceSettings
5128
+ * Creates a plain object from a Timeseries message. Also converts values to other types if specified.
5129
+ * @param message Timeseries
5123
5130
  * @param [options] Conversion options
5124
5131
  * @returns Plain object
5125
5132
  */
5126
- public static toObject(message: synapse.DeviceSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
5133
+ public static toObject(message: synapse.Timeseries, options?: $protobuf.IConversionOptions): { [k: string]: any };
5127
5134
 
5128
5135
  /**
5129
- * Converts this DeviceSettings to JSON.
5136
+ * Converts this Timeseries to JSON.
5130
5137
  * @returns JSON object
5131
5138
  */
5132
5139
  public toJSON(): { [k: string]: any };
5133
5140
 
5134
5141
  /**
5135
- * Gets the default type url for DeviceSettings
5142
+ * Gets the default type url for Timeseries
5136
5143
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5137
5144
  * @returns The default type url
5138
5145
  */
5139
5146
  public static getTypeUrl(typeUrlPrefix?: string): string;
5140
5147
  }
5141
5148
 
5142
- /** Properties of a GetSettingsQuery. */
5143
- interface IGetSettingsQuery {
5144
- }
5145
-
5146
- /** Represents a GetSettingsQuery. */
5147
- class GetSettingsQuery implements IGetSettingsQuery {
5149
+ namespace Timeseries {
5148
5150
 
5149
- /**
5150
- * Constructs a new GetSettingsQuery.
5151
- * @param [properties] Properties to set
5152
- */
5153
- constructor(properties?: synapse.IGetSettingsQuery);
5151
+ /** Properties of a Datapoint. */
5152
+ interface IDatapoint {
5154
5153
 
5155
- /**
5156
- * Creates a new GetSettingsQuery instance using the specified properties.
5157
- * @param [properties] Properties to set
5158
- * @returns GetSettingsQuery instance
5159
- */
5160
- public static create(properties?: synapse.IGetSettingsQuery): synapse.GetSettingsQuery;
5154
+ /** Datapoint timestampNs */
5155
+ timestampNs?: (Long|null);
5161
5156
 
5162
- /**
5163
- * Encodes the specified GetSettingsQuery message. Does not implicitly {@link synapse.GetSettingsQuery.verify|verify} messages.
5164
- * @param message GetSettingsQuery message or plain object to encode
5165
- * @param [writer] Writer to encode to
5166
- * @returns Writer
5167
- */
5168
- public static encode(message: synapse.IGetSettingsQuery, writer?: $protobuf.Writer): $protobuf.Writer;
5157
+ /** Datapoint sample */
5158
+ sample?: (number|null);
5159
+ }
5169
5160
 
5170
- /**
5171
- * Encodes the specified GetSettingsQuery message, length delimited. Does not implicitly {@link synapse.GetSettingsQuery.verify|verify} messages.
5172
- * @param message GetSettingsQuery message or plain object to encode
5173
- * @param [writer] Writer to encode to
5174
- * @returns Writer
5175
- */
5176
- public static encodeDelimited(message: synapse.IGetSettingsQuery, writer?: $protobuf.Writer): $protobuf.Writer;
5161
+ /** Represents a Datapoint. */
5162
+ class Datapoint implements IDatapoint {
5177
5163
 
5178
- /**
5179
- * Decodes a GetSettingsQuery message from the specified reader or buffer.
5180
- * @param reader Reader or buffer to decode from
5181
- * @param [length] Message length if known beforehand
5182
- * @returns GetSettingsQuery
5183
- * @throws {Error} If the payload is not a reader or valid buffer
5184
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
5185
- */
5186
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.GetSettingsQuery;
5164
+ /**
5165
+ * Constructs a new Datapoint.
5166
+ * @param [properties] Properties to set
5167
+ */
5168
+ constructor(properties?: synapse.Timeseries.IDatapoint);
5187
5169
 
5188
- /**
5189
- * Decodes a GetSettingsQuery message from the specified reader or buffer, length delimited.
5190
- * @param reader Reader or buffer to decode from
5191
- * @returns GetSettingsQuery
5192
- * @throws {Error} If the payload is not a reader or valid buffer
5193
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
5194
- */
5195
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.GetSettingsQuery;
5170
+ /** Datapoint timestampNs. */
5171
+ public timestampNs: Long;
5196
5172
 
5197
- /**
5198
- * Verifies a GetSettingsQuery message.
5199
- * @param message Plain object to verify
5200
- * @returns `null` if valid, otherwise the reason why it is not
5201
- */
5202
- public static verify(message: { [k: string]: any }): (string|null);
5173
+ /** Datapoint sample. */
5174
+ public sample: number;
5203
5175
 
5204
- /**
5205
- * Creates a GetSettingsQuery message from a plain object. Also converts values to their respective internal types.
5206
- * @param object Plain object
5207
- * @returns GetSettingsQuery
5208
- */
5209
- public static fromObject(object: { [k: string]: any }): synapse.GetSettingsQuery;
5176
+ /**
5177
+ * Creates a new Datapoint instance using the specified properties.
5178
+ * @param [properties] Properties to set
5179
+ * @returns Datapoint instance
5180
+ */
5181
+ public static create(properties?: synapse.Timeseries.IDatapoint): synapse.Timeseries.Datapoint;
5210
5182
 
5211
- /**
5212
- * Creates a plain object from a GetSettingsQuery message. Also converts values to other types if specified.
5213
- * @param message GetSettingsQuery
5214
- * @param [options] Conversion options
5215
- * @returns Plain object
5216
- */
5217
- public static toObject(message: synapse.GetSettingsQuery, options?: $protobuf.IConversionOptions): { [k: string]: any };
5183
+ /**
5184
+ * Encodes the specified Datapoint message. Does not implicitly {@link synapse.Timeseries.Datapoint.verify|verify} messages.
5185
+ * @param message Datapoint message or plain object to encode
5186
+ * @param [writer] Writer to encode to
5187
+ * @returns Writer
5188
+ */
5189
+ public static encode(message: synapse.Timeseries.IDatapoint, writer?: $protobuf.Writer): $protobuf.Writer;
5218
5190
 
5219
- /**
5220
- * Converts this GetSettingsQuery to JSON.
5221
- * @returns JSON object
5222
- */
5223
- public toJSON(): { [k: string]: any };
5191
+ /**
5192
+ * Encodes the specified Datapoint message, length delimited. Does not implicitly {@link synapse.Timeseries.Datapoint.verify|verify} messages.
5193
+ * @param message Datapoint message or plain object to encode
5194
+ * @param [writer] Writer to encode to
5195
+ * @returns Writer
5196
+ */
5197
+ public static encodeDelimited(message: synapse.Timeseries.IDatapoint, writer?: $protobuf.Writer): $protobuf.Writer;
5224
5198
 
5225
- /**
5226
- * Gets the default type url for GetSettingsQuery
5227
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5228
- * @returns The default type url
5229
- */
5230
- public static getTypeUrl(typeUrlPrefix?: string): string;
5199
+ /**
5200
+ * Decodes a Datapoint message from the specified reader or buffer.
5201
+ * @param reader Reader or buffer to decode from
5202
+ * @param [length] Message length if known beforehand
5203
+ * @returns Datapoint
5204
+ * @throws {Error} If the payload is not a reader or valid buffer
5205
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5206
+ */
5207
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.Timeseries.Datapoint;
5208
+
5209
+ /**
5210
+ * Decodes a Datapoint message from the specified reader or buffer, length delimited.
5211
+ * @param reader Reader or buffer to decode from
5212
+ * @returns Datapoint
5213
+ * @throws {Error} If the payload is not a reader or valid buffer
5214
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5215
+ */
5216
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.Timeseries.Datapoint;
5217
+
5218
+ /**
5219
+ * Verifies a Datapoint message.
5220
+ * @param message Plain object to verify
5221
+ * @returns `null` if valid, otherwise the reason why it is not
5222
+ */
5223
+ public static verify(message: { [k: string]: any }): (string|null);
5224
+
5225
+ /**
5226
+ * Creates a Datapoint message from a plain object. Also converts values to their respective internal types.
5227
+ * @param object Plain object
5228
+ * @returns Datapoint
5229
+ */
5230
+ public static fromObject(object: { [k: string]: any }): synapse.Timeseries.Datapoint;
5231
+
5232
+ /**
5233
+ * Creates a plain object from a Datapoint message. Also converts values to other types if specified.
5234
+ * @param message Datapoint
5235
+ * @param [options] Conversion options
5236
+ * @returns Plain object
5237
+ */
5238
+ public static toObject(message: synapse.Timeseries.Datapoint, options?: $protobuf.IConversionOptions): { [k: string]: any };
5239
+
5240
+ /**
5241
+ * Converts this Datapoint to JSON.
5242
+ * @returns JSON object
5243
+ */
5244
+ public toJSON(): { [k: string]: any };
5245
+
5246
+ /**
5247
+ * Gets the default type url for Datapoint
5248
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5249
+ * @returns The default type url
5250
+ */
5251
+ public static getTypeUrl(typeUrlPrefix?: string): string;
5252
+ }
5231
5253
  }
5232
5254
 
5233
- /** Properties of a GetSettingsResponse. */
5234
- interface IGetSettingsResponse {
5255
+ /** Properties of an AnnotatedTensor. */
5256
+ interface IAnnotatedTensor {
5235
5257
 
5236
- /** GetSettingsResponse settings */
5237
- settings?: (synapse.IDeviceSettings|null);
5258
+ /** AnnotatedTensor tensor */
5259
+ tensor?: (synapse.ITensor|null);
5260
+
5261
+ /** AnnotatedTensor metadata */
5262
+ metadata?: ({ [k: string]: google.protobuf.IValue }|null);
5238
5263
  }
5239
5264
 
5240
- /** Represents a GetSettingsResponse. */
5241
- class GetSettingsResponse implements IGetSettingsResponse {
5265
+ /** Represents an AnnotatedTensor. */
5266
+ class AnnotatedTensor implements IAnnotatedTensor {
5242
5267
 
5243
5268
  /**
5244
- * Constructs a new GetSettingsResponse.
5269
+ * Constructs a new AnnotatedTensor.
5245
5270
  * @param [properties] Properties to set
5246
5271
  */
5247
- constructor(properties?: synapse.IGetSettingsResponse);
5272
+ constructor(properties?: synapse.IAnnotatedTensor);
5248
5273
 
5249
- /** GetSettingsResponse settings. */
5250
- public settings?: (synapse.IDeviceSettings|null);
5274
+ /** AnnotatedTensor tensor. */
5275
+ public tensor?: (synapse.ITensor|null);
5276
+
5277
+ /** AnnotatedTensor metadata. */
5278
+ public metadata: { [k: string]: google.protobuf.IValue };
5251
5279
 
5252
5280
  /**
5253
- * Creates a new GetSettingsResponse instance using the specified properties.
5281
+ * Creates a new AnnotatedTensor instance using the specified properties.
5254
5282
  * @param [properties] Properties to set
5255
- * @returns GetSettingsResponse instance
5283
+ * @returns AnnotatedTensor instance
5256
5284
  */
5257
- public static create(properties?: synapse.IGetSettingsResponse): synapse.GetSettingsResponse;
5285
+ public static create(properties?: synapse.IAnnotatedTensor): synapse.AnnotatedTensor;
5258
5286
 
5259
5287
  /**
5260
- * Encodes the specified GetSettingsResponse message. Does not implicitly {@link synapse.GetSettingsResponse.verify|verify} messages.
5261
- * @param message GetSettingsResponse message or plain object to encode
5288
+ * Encodes the specified AnnotatedTensor message. Does not implicitly {@link synapse.AnnotatedTensor.verify|verify} messages.
5289
+ * @param message AnnotatedTensor message or plain object to encode
5262
5290
  * @param [writer] Writer to encode to
5263
5291
  * @returns Writer
5264
5292
  */
5265
- public static encode(message: synapse.IGetSettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
5293
+ public static encode(message: synapse.IAnnotatedTensor, writer?: $protobuf.Writer): $protobuf.Writer;
5266
5294
 
5267
5295
  /**
5268
- * Encodes the specified GetSettingsResponse message, length delimited. Does not implicitly {@link synapse.GetSettingsResponse.verify|verify} messages.
5269
- * @param message GetSettingsResponse message or plain object to encode
5296
+ * Encodes the specified AnnotatedTensor message, length delimited. Does not implicitly {@link synapse.AnnotatedTensor.verify|verify} messages.
5297
+ * @param message AnnotatedTensor message or plain object to encode
5270
5298
  * @param [writer] Writer to encode to
5271
5299
  * @returns Writer
5272
5300
  */
5273
- public static encodeDelimited(message: synapse.IGetSettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
5301
+ public static encodeDelimited(message: synapse.IAnnotatedTensor, writer?: $protobuf.Writer): $protobuf.Writer;
5274
5302
 
5275
5303
  /**
5276
- * Decodes a GetSettingsResponse message from the specified reader or buffer.
5304
+ * Decodes an AnnotatedTensor message from the specified reader or buffer.
5277
5305
  * @param reader Reader or buffer to decode from
5278
5306
  * @param [length] Message length if known beforehand
5279
- * @returns GetSettingsResponse
5307
+ * @returns AnnotatedTensor
5280
5308
  * @throws {Error} If the payload is not a reader or valid buffer
5281
5309
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5282
5310
  */
5283
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.GetSettingsResponse;
5311
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.AnnotatedTensor;
5284
5312
 
5285
5313
  /**
5286
- * Decodes a GetSettingsResponse message from the specified reader or buffer, length delimited.
5314
+ * Decodes an AnnotatedTensor message from the specified reader or buffer, length delimited.
5287
5315
  * @param reader Reader or buffer to decode from
5288
- * @returns GetSettingsResponse
5316
+ * @returns AnnotatedTensor
5289
5317
  * @throws {Error} If the payload is not a reader or valid buffer
5290
5318
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5291
5319
  */
5292
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.GetSettingsResponse;
5320
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.AnnotatedTensor;
5293
5321
 
5294
5322
  /**
5295
- * Verifies a GetSettingsResponse message.
5323
+ * Verifies an AnnotatedTensor message.
5296
5324
  * @param message Plain object to verify
5297
5325
  * @returns `null` if valid, otherwise the reason why it is not
5298
5326
  */
5299
5327
  public static verify(message: { [k: string]: any }): (string|null);
5300
5328
 
5301
5329
  /**
5302
- * Creates a GetSettingsResponse message from a plain object. Also converts values to their respective internal types.
5330
+ * Creates an AnnotatedTensor message from a plain object. Also converts values to their respective internal types.
5303
5331
  * @param object Plain object
5304
- * @returns GetSettingsResponse
5332
+ * @returns AnnotatedTensor
5305
5333
  */
5306
- public static fromObject(object: { [k: string]: any }): synapse.GetSettingsResponse;
5334
+ public static fromObject(object: { [k: string]: any }): synapse.AnnotatedTensor;
5307
5335
 
5308
5336
  /**
5309
- * Creates a plain object from a GetSettingsResponse message. Also converts values to other types if specified.
5310
- * @param message GetSettingsResponse
5337
+ * Creates a plain object from an AnnotatedTensor message. Also converts values to other types if specified.
5338
+ * @param message AnnotatedTensor
5311
5339
  * @param [options] Conversion options
5312
5340
  * @returns Plain object
5313
5341
  */
5314
- public static toObject(message: synapse.GetSettingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
5342
+ public static toObject(message: synapse.AnnotatedTensor, options?: $protobuf.IConversionOptions): { [k: string]: any };
5315
5343
 
5316
5344
  /**
5317
- * Converts this GetSettingsResponse to JSON.
5345
+ * Converts this AnnotatedTensor to JSON.
5318
5346
  * @returns JSON object
5319
5347
  */
5320
5348
  public toJSON(): { [k: string]: any };
5321
5349
 
5322
5350
  /**
5323
- * Gets the default type url for GetSettingsResponse
5351
+ * Gets the default type url for AnnotatedTensor
5324
5352
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5325
5353
  * @returns The default type url
5326
5354
  */
5327
5355
  public static getTypeUrl(typeUrlPrefix?: string): string;
5328
5356
  }
5329
5357
 
5330
- /** Properties of an UpdateDeviceSettingsRequest. */
5331
- interface IUpdateDeviceSettingsRequest {
5358
+ /** PixelFormat enum. */
5359
+ enum PixelFormat {
5360
+ kPixelFormatUnknown = 0,
5361
+ kYUV420_888 = 1,
5362
+ kRGB888 = 2,
5363
+ kRGBA8888 = 3,
5364
+ kGrayscale8 = 4,
5365
+ kRAW10 = 5,
5366
+ kRAW16 = 6,
5367
+ kNV12 = 7,
5368
+ kNV21 = 8
5369
+ }
5332
5370
 
5333
- /** UpdateDeviceSettingsRequest settings */
5334
- settings?: (synapse.IDeviceSettings|null);
5371
+ /** Properties of an ImageFrame. */
5372
+ interface IImageFrame {
5373
+
5374
+ /** ImageFrame width */
5375
+ width?: (number|null);
5376
+
5377
+ /** ImageFrame height */
5378
+ height?: (number|null);
5379
+
5380
+ /** ImageFrame format */
5381
+ format?: (synapse.PixelFormat|null);
5382
+
5383
+ /** ImageFrame sampleRateHz */
5384
+ sampleRateHz?: (number|null);
5385
+
5386
+ /** ImageFrame sequenceNumber */
5387
+ sequenceNumber?: (Long|null);
5388
+
5389
+ /** ImageFrame timestampNs */
5390
+ timestampNs?: (Long|null);
5391
+
5392
+ /** ImageFrame unixTimestampNs */
5393
+ unixTimestampNs?: (Long|null);
5394
+
5395
+ /** ImageFrame data */
5396
+ data?: (Uint8Array|null);
5335
5397
  }
5336
5398
 
5337
- /** Represents an UpdateDeviceSettingsRequest. */
5338
- class UpdateDeviceSettingsRequest implements IUpdateDeviceSettingsRequest {
5399
+ /** Represents an ImageFrame. */
5400
+ class ImageFrame implements IImageFrame {
5339
5401
 
5340
5402
  /**
5341
- * Constructs a new UpdateDeviceSettingsRequest.
5403
+ * Constructs a new ImageFrame.
5342
5404
  * @param [properties] Properties to set
5343
5405
  */
5344
- constructor(properties?: synapse.IUpdateDeviceSettingsRequest);
5406
+ constructor(properties?: synapse.IImageFrame);
5345
5407
 
5346
- /** UpdateDeviceSettingsRequest settings. */
5347
- public settings?: (synapse.IDeviceSettings|null);
5408
+ /** ImageFrame width. */
5409
+ public width: number;
5410
+
5411
+ /** ImageFrame height. */
5412
+ public height: number;
5413
+
5414
+ /** ImageFrame format. */
5415
+ public format: synapse.PixelFormat;
5416
+
5417
+ /** ImageFrame sampleRateHz. */
5418
+ public sampleRateHz: number;
5419
+
5420
+ /** ImageFrame sequenceNumber. */
5421
+ public sequenceNumber: Long;
5422
+
5423
+ /** ImageFrame timestampNs. */
5424
+ public timestampNs: Long;
5425
+
5426
+ /** ImageFrame unixTimestampNs. */
5427
+ public unixTimestampNs: Long;
5428
+
5429
+ /** ImageFrame data. */
5430
+ public data: Uint8Array;
5348
5431
 
5349
5432
  /**
5350
- * Creates a new UpdateDeviceSettingsRequest instance using the specified properties.
5433
+ * Creates a new ImageFrame instance using the specified properties.
5351
5434
  * @param [properties] Properties to set
5352
- * @returns UpdateDeviceSettingsRequest instance
5435
+ * @returns ImageFrame instance
5353
5436
  */
5354
- public static create(properties?: synapse.IUpdateDeviceSettingsRequest): synapse.UpdateDeviceSettingsRequest;
5437
+ public static create(properties?: synapse.IImageFrame): synapse.ImageFrame;
5355
5438
 
5356
5439
  /**
5357
- * Encodes the specified UpdateDeviceSettingsRequest message. Does not implicitly {@link synapse.UpdateDeviceSettingsRequest.verify|verify} messages.
5358
- * @param message UpdateDeviceSettingsRequest message or plain object to encode
5440
+ * Encodes the specified ImageFrame message. Does not implicitly {@link synapse.ImageFrame.verify|verify} messages.
5441
+ * @param message ImageFrame message or plain object to encode
5359
5442
  * @param [writer] Writer to encode to
5360
5443
  * @returns Writer
5361
5444
  */
5362
- public static encode(message: synapse.IUpdateDeviceSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5445
+ public static encode(message: synapse.IImageFrame, writer?: $protobuf.Writer): $protobuf.Writer;
5363
5446
 
5364
5447
  /**
5365
- * Encodes the specified UpdateDeviceSettingsRequest message, length delimited. Does not implicitly {@link synapse.UpdateDeviceSettingsRequest.verify|verify} messages.
5366
- * @param message UpdateDeviceSettingsRequest message or plain object to encode
5448
+ * Encodes the specified ImageFrame message, length delimited. Does not implicitly {@link synapse.ImageFrame.verify|verify} messages.
5449
+ * @param message ImageFrame message or plain object to encode
5367
5450
  * @param [writer] Writer to encode to
5368
5451
  * @returns Writer
5369
5452
  */
5370
- public static encodeDelimited(message: synapse.IUpdateDeviceSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5453
+ public static encodeDelimited(message: synapse.IImageFrame, writer?: $protobuf.Writer): $protobuf.Writer;
5371
5454
 
5372
5455
  /**
5373
- * Decodes an UpdateDeviceSettingsRequest message from the specified reader or buffer.
5456
+ * Decodes an ImageFrame message from the specified reader or buffer.
5374
5457
  * @param reader Reader or buffer to decode from
5375
5458
  * @param [length] Message length if known beforehand
5376
- * @returns UpdateDeviceSettingsRequest
5459
+ * @returns ImageFrame
5377
5460
  * @throws {Error} If the payload is not a reader or valid buffer
5378
5461
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5379
5462
  */
5380
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.UpdateDeviceSettingsRequest;
5463
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.ImageFrame;
5381
5464
 
5382
5465
  /**
5383
- * Decodes an UpdateDeviceSettingsRequest message from the specified reader or buffer, length delimited.
5466
+ * Decodes an ImageFrame message from the specified reader or buffer, length delimited.
5384
5467
  * @param reader Reader or buffer to decode from
5385
- * @returns UpdateDeviceSettingsRequest
5468
+ * @returns ImageFrame
5386
5469
  * @throws {Error} If the payload is not a reader or valid buffer
5387
5470
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5388
5471
  */
5389
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.UpdateDeviceSettingsRequest;
5472
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.ImageFrame;
5390
5473
 
5391
5474
  /**
5392
- * Verifies an UpdateDeviceSettingsRequest message.
5475
+ * Verifies an ImageFrame message.
5393
5476
  * @param message Plain object to verify
5394
5477
  * @returns `null` if valid, otherwise the reason why it is not
5395
5478
  */
5396
5479
  public static verify(message: { [k: string]: any }): (string|null);
5397
5480
 
5398
5481
  /**
5399
- * Creates an UpdateDeviceSettingsRequest message from a plain object. Also converts values to their respective internal types.
5482
+ * Creates an ImageFrame message from a plain object. Also converts values to their respective internal types.
5400
5483
  * @param object Plain object
5401
- * @returns UpdateDeviceSettingsRequest
5484
+ * @returns ImageFrame
5402
5485
  */
5403
- public static fromObject(object: { [k: string]: any }): synapse.UpdateDeviceSettingsRequest;
5486
+ public static fromObject(object: { [k: string]: any }): synapse.ImageFrame;
5404
5487
 
5405
5488
  /**
5406
- * Creates a plain object from an UpdateDeviceSettingsRequest message. Also converts values to other types if specified.
5407
- * @param message UpdateDeviceSettingsRequest
5489
+ * Creates a plain object from an ImageFrame message. Also converts values to other types if specified.
5490
+ * @param message ImageFrame
5408
5491
  * @param [options] Conversion options
5409
5492
  * @returns Plain object
5410
5493
  */
5411
- public static toObject(message: synapse.UpdateDeviceSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5494
+ public static toObject(message: synapse.ImageFrame, options?: $protobuf.IConversionOptions): { [k: string]: any };
5412
5495
 
5413
5496
  /**
5414
- * Converts this UpdateDeviceSettingsRequest to JSON.
5497
+ * Converts this ImageFrame to JSON.
5415
5498
  * @returns JSON object
5416
5499
  */
5417
5500
  public toJSON(): { [k: string]: any };
5418
5501
 
5419
5502
  /**
5420
- * Gets the default type url for UpdateDeviceSettingsRequest
5503
+ * Gets the default type url for ImageFrame
5421
5504
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5422
5505
  * @returns The default type url
5423
5506
  */
5424
5507
  public static getTypeUrl(typeUrlPrefix?: string): string;
5425
5508
  }
5426
5509
 
5427
- /** Properties of an UpdateDeviceSettingsResponse. */
5428
- interface IUpdateDeviceSettingsResponse {
5510
+ /** Properties of a FunctionProfile. */
5511
+ interface IFunctionProfile {
5429
5512
 
5430
- /** UpdateDeviceSettingsResponse status */
5431
- status?: (synapse.IStatus|null);
5513
+ /** FunctionProfile name */
5514
+ name?: (string|null);
5432
5515
 
5433
- /** UpdateDeviceSettingsResponse updatedSettings */
5434
- updatedSettings?: (synapse.IDeviceSettings|null);
5516
+ /** FunctionProfile callCount */
5517
+ callCount?: (Long|null);
5518
+
5519
+ /** FunctionProfile minDurationNs */
5520
+ minDurationNs?: (Long|null);
5521
+
5522
+ /** FunctionProfile maxDurationNs */
5523
+ maxDurationNs?: (Long|null);
5524
+
5525
+ /** FunctionProfile averageDurationNs */
5526
+ averageDurationNs?: (Long|null);
5527
+
5528
+ /** FunctionProfile medianDurationNs */
5529
+ medianDurationNs?: (Long|null);
5530
+
5531
+ /** FunctionProfile p99DurationNs */
5532
+ p99DurationNs?: (Long|null);
5533
+
5534
+ /** FunctionProfile latestDurationNs */
5535
+ latestDurationNs?: (Long|null);
5435
5536
  }
5436
5537
 
5437
- /** Represents an UpdateDeviceSettingsResponse. */
5438
- class UpdateDeviceSettingsResponse implements IUpdateDeviceSettingsResponse {
5538
+ /** Represents a FunctionProfile. */
5539
+ class FunctionProfile implements IFunctionProfile {
5439
5540
 
5440
5541
  /**
5441
- * Constructs a new UpdateDeviceSettingsResponse.
5542
+ * Constructs a new FunctionProfile.
5442
5543
  * @param [properties] Properties to set
5443
5544
  */
5444
- constructor(properties?: synapse.IUpdateDeviceSettingsResponse);
5545
+ constructor(properties?: synapse.IFunctionProfile);
5445
5546
 
5446
- /** UpdateDeviceSettingsResponse status. */
5447
- public status?: (synapse.IStatus|null);
5547
+ /** FunctionProfile name. */
5548
+ public name: string;
5448
5549
 
5449
- /** UpdateDeviceSettingsResponse updatedSettings. */
5450
- public updatedSettings?: (synapse.IDeviceSettings|null);
5550
+ /** FunctionProfile callCount. */
5551
+ public callCount: Long;
5552
+
5553
+ /** FunctionProfile minDurationNs. */
5554
+ public minDurationNs: Long;
5555
+
5556
+ /** FunctionProfile maxDurationNs. */
5557
+ public maxDurationNs: Long;
5558
+
5559
+ /** FunctionProfile averageDurationNs. */
5560
+ public averageDurationNs: Long;
5561
+
5562
+ /** FunctionProfile medianDurationNs. */
5563
+ public medianDurationNs: Long;
5564
+
5565
+ /** FunctionProfile p99DurationNs. */
5566
+ public p99DurationNs: Long;
5567
+
5568
+ /** FunctionProfile latestDurationNs. */
5569
+ public latestDurationNs: Long;
5451
5570
 
5452
5571
  /**
5453
- * Creates a new UpdateDeviceSettingsResponse instance using the specified properties.
5572
+ * Creates a new FunctionProfile instance using the specified properties.
5454
5573
  * @param [properties] Properties to set
5455
- * @returns UpdateDeviceSettingsResponse instance
5574
+ * @returns FunctionProfile instance
5456
5575
  */
5457
- public static create(properties?: synapse.IUpdateDeviceSettingsResponse): synapse.UpdateDeviceSettingsResponse;
5576
+ public static create(properties?: synapse.IFunctionProfile): synapse.FunctionProfile;
5458
5577
 
5459
5578
  /**
5460
- * Encodes the specified UpdateDeviceSettingsResponse message. Does not implicitly {@link synapse.UpdateDeviceSettingsResponse.verify|verify} messages.
5461
- * @param message UpdateDeviceSettingsResponse message or plain object to encode
5579
+ * Encodes the specified FunctionProfile message. Does not implicitly {@link synapse.FunctionProfile.verify|verify} messages.
5580
+ * @param message FunctionProfile message or plain object to encode
5462
5581
  * @param [writer] Writer to encode to
5463
5582
  * @returns Writer
5464
5583
  */
5465
- public static encode(message: synapse.IUpdateDeviceSettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
5584
+ public static encode(message: synapse.IFunctionProfile, writer?: $protobuf.Writer): $protobuf.Writer;
5466
5585
 
5467
5586
  /**
5468
- * Encodes the specified UpdateDeviceSettingsResponse message, length delimited. Does not implicitly {@link synapse.UpdateDeviceSettingsResponse.verify|verify} messages.
5469
- * @param message UpdateDeviceSettingsResponse message or plain object to encode
5587
+ * Encodes the specified FunctionProfile message, length delimited. Does not implicitly {@link synapse.FunctionProfile.verify|verify} messages.
5588
+ * @param message FunctionProfile message or plain object to encode
5470
5589
  * @param [writer] Writer to encode to
5471
5590
  * @returns Writer
5472
5591
  */
5473
- public static encodeDelimited(message: synapse.IUpdateDeviceSettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
5592
+ public static encodeDelimited(message: synapse.IFunctionProfile, writer?: $protobuf.Writer): $protobuf.Writer;
5474
5593
 
5475
5594
  /**
5476
- * Decodes an UpdateDeviceSettingsResponse message from the specified reader or buffer.
5595
+ * Decodes a FunctionProfile message from the specified reader or buffer.
5477
5596
  * @param reader Reader or buffer to decode from
5478
5597
  * @param [length] Message length if known beforehand
5479
- * @returns UpdateDeviceSettingsResponse
5598
+ * @returns FunctionProfile
5480
5599
  * @throws {Error} If the payload is not a reader or valid buffer
5481
5600
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5482
5601
  */
5483
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.UpdateDeviceSettingsResponse;
5602
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.FunctionProfile;
5484
5603
 
5485
5604
  /**
5486
- * Decodes an UpdateDeviceSettingsResponse message from the specified reader or buffer, length delimited.
5605
+ * Decodes a FunctionProfile message from the specified reader or buffer, length delimited.
5487
5606
  * @param reader Reader or buffer to decode from
5488
- * @returns UpdateDeviceSettingsResponse
5607
+ * @returns FunctionProfile
5489
5608
  * @throws {Error} If the payload is not a reader or valid buffer
5490
5609
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5491
5610
  */
5492
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.UpdateDeviceSettingsResponse;
5611
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.FunctionProfile;
5493
5612
 
5494
5613
  /**
5495
- * Verifies an UpdateDeviceSettingsResponse message.
5614
+ * Verifies a FunctionProfile message.
5496
5615
  * @param message Plain object to verify
5497
5616
  * @returns `null` if valid, otherwise the reason why it is not
5498
5617
  */
5499
5618
  public static verify(message: { [k: string]: any }): (string|null);
5500
5619
 
5501
5620
  /**
5502
- * Creates an UpdateDeviceSettingsResponse message from a plain object. Also converts values to their respective internal types.
5621
+ * Creates a FunctionProfile message from a plain object. Also converts values to their respective internal types.
5503
5622
  * @param object Plain object
5504
- * @returns UpdateDeviceSettingsResponse
5623
+ * @returns FunctionProfile
5505
5624
  */
5506
- public static fromObject(object: { [k: string]: any }): synapse.UpdateDeviceSettingsResponse;
5625
+ public static fromObject(object: { [k: string]: any }): synapse.FunctionProfile;
5507
5626
 
5508
5627
  /**
5509
- * Creates a plain object from an UpdateDeviceSettingsResponse message. Also converts values to other types if specified.
5510
- * @param message UpdateDeviceSettingsResponse
5628
+ * Creates a plain object from a FunctionProfile message. Also converts values to other types if specified.
5629
+ * @param message FunctionProfile
5511
5630
  * @param [options] Conversion options
5512
5631
  * @returns Plain object
5513
5632
  */
5514
- public static toObject(message: synapse.UpdateDeviceSettingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
5633
+ public static toObject(message: synapse.FunctionProfile, options?: $protobuf.IConversionOptions): { [k: string]: any };
5515
5634
 
5516
5635
  /**
5517
- * Converts this UpdateDeviceSettingsResponse to JSON.
5636
+ * Converts this FunctionProfile to JSON.
5518
5637
  * @returns JSON object
5519
5638
  */
5520
5639
  public toJSON(): { [k: string]: any };
5521
5640
 
5522
5641
  /**
5523
- * Gets the default type url for UpdateDeviceSettingsResponse
5642
+ * Gets the default type url for FunctionProfile
5524
5643
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5525
5644
  * @returns The default type url
5526
5645
  */
5527
5646
  public static getTypeUrl(typeUrlPrefix?: string): string;
5528
5647
  }
5529
5648
 
5530
- /** Properties of a TimeSyncPacket. */
5531
- interface ITimeSyncPacket {
5532
-
5533
- /** TimeSyncPacket clientId */
5534
- clientId?: (number|null);
5649
+ /** Properties of a Peripheral. */
5650
+ interface IPeripheral {
5535
5651
 
5536
- /** TimeSyncPacket sequence */
5537
- sequence?: (number|null);
5652
+ /** Peripheral name */
5653
+ name?: (string|null);
5538
5654
 
5539
- /** TimeSyncPacket clientSendTimeNs */
5540
- clientSendTimeNs?: (Long|null);
5655
+ /** Peripheral vendor */
5656
+ vendor?: (string|null);
5541
5657
 
5542
- /** TimeSyncPacket serverReceiveTimeNs */
5543
- serverReceiveTimeNs?: (Long|null);
5658
+ /** Peripheral peripheralId */
5659
+ peripheralId?: (number|null);
5544
5660
 
5545
- /** TimeSyncPacket serverSendTimeNs */
5546
- serverSendTimeNs?: (Long|null);
5661
+ /** Peripheral type */
5662
+ type?: (synapse.Peripheral.Type|null);
5547
5663
 
5548
- /** TimeSyncPacket clientReceiveTimeNs */
5549
- clientReceiveTimeNs?: (Long|null);
5664
+ /** Peripheral address */
5665
+ address?: (string|null);
5550
5666
  }
5551
5667
 
5552
- /**
5553
- * Used for precise time synchronization over UDP between clients and a server
5554
- * In most cases, the server is the Synapse device.enum
5555
- *
5556
- * How it works:
5557
- * 1. Client generates a random client_id on first connection
5558
- * 2. Client increments the sequence number on each packet (to detect drops)
5559
- * 3. Client records the send time and sends the packet to the server over udp.
5560
- * - The server port will be available through the Status message
5561
- * - Try to timestamp the packet as close as possible to the send to minimize
5562
- * the calculated offset error. Future improvements could support hardware timestamps
5563
- * 4. Server records the receive time
5564
- * 5. Server immediately echos it back to the client, recording the send time
5565
- * 6. Client records the receive time when the packet returns
5566
- *
5567
- * With these times, the client can calculate
5568
- * - Round Trip Time: (client_receive_time_ns - client_send_time_ns)
5569
- * - Network Latency (assumes symmetric paths): rtt / 2
5570
- * - Clock offset: https://en.wikipedia.org/wiki/Network_Time_Protocol#Clock_synchronization_algorithm
5571
- *
5572
- * Implementation notes:
5573
- * - All timestamps are monotonic nanoseconds since Unix epoch
5574
- * - The server acts as a passive reflector
5575
- * - Multiple sync packets (8 or so) should be sent with a short period (200 ms) between
5576
- */
5577
- class TimeSyncPacket implements ITimeSyncPacket {
5668
+ /** Represents a Peripheral. */
5669
+ class Peripheral implements IPeripheral {
5578
5670
 
5579
5671
  /**
5580
- * Constructs a new TimeSyncPacket.
5672
+ * Constructs a new Peripheral.
5581
5673
  * @param [properties] Properties to set
5582
5674
  */
5583
- constructor(properties?: synapse.ITimeSyncPacket);
5584
-
5585
- /** TimeSyncPacket clientId. */
5586
- public clientId: number;
5675
+ constructor(properties?: synapse.IPeripheral);
5587
5676
 
5588
- /** TimeSyncPacket sequence. */
5589
- public sequence: number;
5677
+ /** Peripheral name. */
5678
+ public name: string;
5590
5679
 
5591
- /** TimeSyncPacket clientSendTimeNs. */
5592
- public clientSendTimeNs: Long;
5680
+ /** Peripheral vendor. */
5681
+ public vendor: string;
5593
5682
 
5594
- /** TimeSyncPacket serverReceiveTimeNs. */
5595
- public serverReceiveTimeNs: Long;
5683
+ /** Peripheral peripheralId. */
5684
+ public peripheralId: number;
5596
5685
 
5597
- /** TimeSyncPacket serverSendTimeNs. */
5598
- public serverSendTimeNs: Long;
5686
+ /** Peripheral type. */
5687
+ public type: synapse.Peripheral.Type;
5599
5688
 
5600
- /** TimeSyncPacket clientReceiveTimeNs. */
5601
- public clientReceiveTimeNs: Long;
5689
+ /** Peripheral address. */
5690
+ public address: string;
5602
5691
 
5603
5692
  /**
5604
- * Creates a new TimeSyncPacket instance using the specified properties.
5693
+ * Creates a new Peripheral instance using the specified properties.
5605
5694
  * @param [properties] Properties to set
5606
- * @returns TimeSyncPacket instance
5695
+ * @returns Peripheral instance
5607
5696
  */
5608
- public static create(properties?: synapse.ITimeSyncPacket): synapse.TimeSyncPacket;
5697
+ public static create(properties?: synapse.IPeripheral): synapse.Peripheral;
5609
5698
 
5610
5699
  /**
5611
- * Encodes the specified TimeSyncPacket message. Does not implicitly {@link synapse.TimeSyncPacket.verify|verify} messages.
5612
- * @param message TimeSyncPacket message or plain object to encode
5700
+ * Encodes the specified Peripheral message. Does not implicitly {@link synapse.Peripheral.verify|verify} messages.
5701
+ * @param message Peripheral message or plain object to encode
5613
5702
  * @param [writer] Writer to encode to
5614
5703
  * @returns Writer
5615
5704
  */
5616
- public static encode(message: synapse.ITimeSyncPacket, writer?: $protobuf.Writer): $protobuf.Writer;
5705
+ public static encode(message: synapse.IPeripheral, writer?: $protobuf.Writer): $protobuf.Writer;
5617
5706
 
5618
5707
  /**
5619
- * Encodes the specified TimeSyncPacket message, length delimited. Does not implicitly {@link synapse.TimeSyncPacket.verify|verify} messages.
5620
- * @param message TimeSyncPacket message or plain object to encode
5708
+ * Encodes the specified Peripheral message, length delimited. Does not implicitly {@link synapse.Peripheral.verify|verify} messages.
5709
+ * @param message Peripheral message or plain object to encode
5621
5710
  * @param [writer] Writer to encode to
5622
5711
  * @returns Writer
5623
5712
  */
5624
- public static encodeDelimited(message: synapse.ITimeSyncPacket, writer?: $protobuf.Writer): $protobuf.Writer;
5713
+ public static encodeDelimited(message: synapse.IPeripheral, writer?: $protobuf.Writer): $protobuf.Writer;
5625
5714
 
5626
5715
  /**
5627
- * Decodes a TimeSyncPacket message from the specified reader or buffer.
5716
+ * Decodes a Peripheral message from the specified reader or buffer.
5628
5717
  * @param reader Reader or buffer to decode from
5629
5718
  * @param [length] Message length if known beforehand
5630
- * @returns TimeSyncPacket
5719
+ * @returns Peripheral
5631
5720
  * @throws {Error} If the payload is not a reader or valid buffer
5632
5721
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5633
5722
  */
5634
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.TimeSyncPacket;
5723
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.Peripheral;
5635
5724
 
5636
5725
  /**
5637
- * Decodes a TimeSyncPacket message from the specified reader or buffer, length delimited.
5726
+ * Decodes a Peripheral message from the specified reader or buffer, length delimited.
5638
5727
  * @param reader Reader or buffer to decode from
5639
- * @returns TimeSyncPacket
5728
+ * @returns Peripheral
5640
5729
  * @throws {Error} If the payload is not a reader or valid buffer
5641
5730
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5642
5731
  */
5643
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.TimeSyncPacket;
5732
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.Peripheral;
5644
5733
 
5645
5734
  /**
5646
- * Verifies a TimeSyncPacket message.
5735
+ * Verifies a Peripheral message.
5647
5736
  * @param message Plain object to verify
5648
5737
  * @returns `null` if valid, otherwise the reason why it is not
5649
5738
  */
5650
5739
  public static verify(message: { [k: string]: any }): (string|null);
5651
5740
 
5652
5741
  /**
5653
- * Creates a TimeSyncPacket message from a plain object. Also converts values to their respective internal types.
5742
+ * Creates a Peripheral message from a plain object. Also converts values to their respective internal types.
5654
5743
  * @param object Plain object
5655
- * @returns TimeSyncPacket
5744
+ * @returns Peripheral
5656
5745
  */
5657
- public static fromObject(object: { [k: string]: any }): synapse.TimeSyncPacket;
5746
+ public static fromObject(object: { [k: string]: any }): synapse.Peripheral;
5658
5747
 
5659
5748
  /**
5660
- * Creates a plain object from a TimeSyncPacket message. Also converts values to other types if specified.
5661
- * @param message TimeSyncPacket
5749
+ * Creates a plain object from a Peripheral message. Also converts values to other types if specified.
5750
+ * @param message Peripheral
5662
5751
  * @param [options] Conversion options
5663
5752
  * @returns Plain object
5664
5753
  */
5665
- public static toObject(message: synapse.TimeSyncPacket, options?: $protobuf.IConversionOptions): { [k: string]: any };
5754
+ public static toObject(message: synapse.Peripheral, options?: $protobuf.IConversionOptions): { [k: string]: any };
5666
5755
 
5667
5756
  /**
5668
- * Converts this TimeSyncPacket to JSON.
5757
+ * Converts this Peripheral to JSON.
5669
5758
  * @returns JSON object
5670
5759
  */
5671
5760
  public toJSON(): { [k: string]: any };
5672
5761
 
5673
5762
  /**
5674
- * Gets the default type url for TimeSyncPacket
5763
+ * Gets the default type url for Peripheral
5675
5764
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5676
5765
  * @returns The default type url
5677
5766
  */
5678
5767
  public static getTypeUrl(typeUrlPrefix?: string): string;
5679
5768
  }
5680
5769
 
5681
- /** TimeSource enum. */
5682
- enum TimeSource {
5683
- TIME_SOURCE_UNKNOWN = 0,
5684
- TIME_SOURCE_STEADY_CLOCK = 1,
5685
- TIME_SOURCE_SAMPLE_COUNTER = 2
5770
+ namespace Peripheral {
5771
+
5772
+ /** Type enum. */
5773
+ enum Type {
5774
+ kUnknown = 0,
5775
+ kBroadbandSource = 1,
5776
+ kElectricalStimulation = 2,
5777
+ kOpticalStimulation = 3,
5778
+ kSpikeSource = 4,
5779
+ kCamera = 5
5780
+ }
5686
5781
  }
5687
5782
 
5688
- /** DataType enum. */
5689
- enum DataType {
5690
- kDataTypeUnknown = 0,
5691
- kAny = 1,
5692
- kBroadband = 2,
5693
- kSpiketrain = 3,
5694
- kTimestamps = 4,
5695
- kImage = 5,
5696
- kWaveforms = 6
5697
- }
5783
+ /** Properties of a DeviceInfo. */
5784
+ interface IDeviceInfo {
5698
5785
 
5699
- /** Properties of a Tensor. */
5700
- interface ITensor {
5786
+ /** DeviceInfo name */
5787
+ name?: (string|null);
5701
5788
 
5702
- /** Tensor timestampNs */
5703
- timestampNs?: (Long|null);
5789
+ /** DeviceInfo serial */
5790
+ serial?: (string|null);
5704
5791
 
5705
- /** Tensor shape */
5706
- shape?: (number[]|null);
5792
+ /** DeviceInfo synapseVersion */
5793
+ synapseVersion?: (number|null);
5707
5794
 
5708
- /** Tensor dtype */
5709
- dtype?: (synapse.Tensor.DType|null);
5795
+ /** DeviceInfo firmwareVersion */
5796
+ firmwareVersion?: (number|null);
5710
5797
 
5711
- /** Tensor endianness */
5712
- endianness?: (synapse.Tensor.Endianness|null);
5798
+ /** DeviceInfo status */
5799
+ status?: (synapse.IStatus|null);
5713
5800
 
5714
- /** Tensor data */
5715
- data?: (Uint8Array|null);
5801
+ /** DeviceInfo peripherals */
5802
+ peripherals?: (synapse.IPeripheral[]|null);
5803
+
5804
+ /** DeviceInfo configuration */
5805
+ configuration?: (synapse.IDeviceConfiguration|null);
5716
5806
  }
5717
5807
 
5718
- /** Represents a Tensor. */
5719
- class Tensor implements ITensor {
5808
+ /** Represents a DeviceInfo. */
5809
+ class DeviceInfo implements IDeviceInfo {
5720
5810
 
5721
5811
  /**
5722
- * Constructs a new Tensor.
5812
+ * Constructs a new DeviceInfo.
5723
5813
  * @param [properties] Properties to set
5724
5814
  */
5725
- constructor(properties?: synapse.ITensor);
5815
+ constructor(properties?: synapse.IDeviceInfo);
5726
5816
 
5727
- /** Tensor timestampNs. */
5728
- public timestampNs: Long;
5817
+ /** DeviceInfo name. */
5818
+ public name: string;
5729
5819
 
5730
- /** Tensor shape. */
5731
- public shape: number[];
5820
+ /** DeviceInfo serial. */
5821
+ public serial: string;
5732
5822
 
5733
- /** Tensor dtype. */
5734
- public dtype: synapse.Tensor.DType;
5823
+ /** DeviceInfo synapseVersion. */
5824
+ public synapseVersion: number;
5735
5825
 
5736
- /** Tensor endianness. */
5737
- public endianness: synapse.Tensor.Endianness;
5826
+ /** DeviceInfo firmwareVersion. */
5827
+ public firmwareVersion: number;
5738
5828
 
5739
- /** Tensor data. */
5740
- public data: Uint8Array;
5829
+ /** DeviceInfo status. */
5830
+ public status?: (synapse.IStatus|null);
5831
+
5832
+ /** DeviceInfo peripherals. */
5833
+ public peripherals: synapse.IPeripheral[];
5834
+
5835
+ /** DeviceInfo configuration. */
5836
+ public configuration?: (synapse.IDeviceConfiguration|null);
5741
5837
 
5742
5838
  /**
5743
- * Creates a new Tensor instance using the specified properties.
5839
+ * Creates a new DeviceInfo instance using the specified properties.
5744
5840
  * @param [properties] Properties to set
5745
- * @returns Tensor instance
5841
+ * @returns DeviceInfo instance
5746
5842
  */
5747
- public static create(properties?: synapse.ITensor): synapse.Tensor;
5843
+ public static create(properties?: synapse.IDeviceInfo): synapse.DeviceInfo;
5748
5844
 
5749
5845
  /**
5750
- * Encodes the specified Tensor message. Does not implicitly {@link synapse.Tensor.verify|verify} messages.
5751
- * @param message Tensor message or plain object to encode
5846
+ * Encodes the specified DeviceInfo message. Does not implicitly {@link synapse.DeviceInfo.verify|verify} messages.
5847
+ * @param message DeviceInfo message or plain object to encode
5752
5848
  * @param [writer] Writer to encode to
5753
5849
  * @returns Writer
5754
5850
  */
5755
- public static encode(message: synapse.ITensor, writer?: $protobuf.Writer): $protobuf.Writer;
5851
+ public static encode(message: synapse.IDeviceInfo, writer?: $protobuf.Writer): $protobuf.Writer;
5756
5852
 
5757
5853
  /**
5758
- * Encodes the specified Tensor message, length delimited. Does not implicitly {@link synapse.Tensor.verify|verify} messages.
5759
- * @param message Tensor message or plain object to encode
5854
+ * Encodes the specified DeviceInfo message, length delimited. Does not implicitly {@link synapse.DeviceInfo.verify|verify} messages.
5855
+ * @param message DeviceInfo message or plain object to encode
5760
5856
  * @param [writer] Writer to encode to
5761
5857
  * @returns Writer
5762
5858
  */
5763
- public static encodeDelimited(message: synapse.ITensor, writer?: $protobuf.Writer): $protobuf.Writer;
5859
+ public static encodeDelimited(message: synapse.IDeviceInfo, writer?: $protobuf.Writer): $protobuf.Writer;
5764
5860
 
5765
5861
  /**
5766
- * Decodes a Tensor message from the specified reader or buffer.
5862
+ * Decodes a DeviceInfo message from the specified reader or buffer.
5767
5863
  * @param reader Reader or buffer to decode from
5768
5864
  * @param [length] Message length if known beforehand
5769
- * @returns Tensor
5865
+ * @returns DeviceInfo
5770
5866
  * @throws {Error} If the payload is not a reader or valid buffer
5771
5867
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5772
5868
  */
5773
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.Tensor;
5869
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.DeviceInfo;
5774
5870
 
5775
5871
  /**
5776
- * Decodes a Tensor message from the specified reader or buffer, length delimited.
5872
+ * Decodes a DeviceInfo message from the specified reader or buffer, length delimited.
5777
5873
  * @param reader Reader or buffer to decode from
5778
- * @returns Tensor
5874
+ * @returns DeviceInfo
5779
5875
  * @throws {Error} If the payload is not a reader or valid buffer
5780
5876
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5781
5877
  */
5782
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.Tensor;
5878
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.DeviceInfo;
5783
5879
 
5784
5880
  /**
5785
- * Verifies a Tensor message.
5881
+ * Verifies a DeviceInfo message.
5786
5882
  * @param message Plain object to verify
5787
5883
  * @returns `null` if valid, otherwise the reason why it is not
5788
5884
  */
5789
5885
  public static verify(message: { [k: string]: any }): (string|null);
5790
5886
 
5791
5887
  /**
5792
- * Creates a Tensor message from a plain object. Also converts values to their respective internal types.
5888
+ * Creates a DeviceInfo message from a plain object. Also converts values to their respective internal types.
5793
5889
  * @param object Plain object
5794
- * @returns Tensor
5890
+ * @returns DeviceInfo
5795
5891
  */
5796
- public static fromObject(object: { [k: string]: any }): synapse.Tensor;
5892
+ public static fromObject(object: { [k: string]: any }): synapse.DeviceInfo;
5797
5893
 
5798
5894
  /**
5799
- * Creates a plain object from a Tensor message. Also converts values to other types if specified.
5800
- * @param message Tensor
5895
+ * Creates a plain object from a DeviceInfo message. Also converts values to other types if specified.
5896
+ * @param message DeviceInfo
5801
5897
  * @param [options] Conversion options
5802
5898
  * @returns Plain object
5803
5899
  */
5804
- public static toObject(message: synapse.Tensor, options?: $protobuf.IConversionOptions): { [k: string]: any };
5900
+ public static toObject(message: synapse.DeviceInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
5805
5901
 
5806
5902
  /**
5807
- * Converts this Tensor to JSON.
5903
+ * Converts this DeviceInfo to JSON.
5808
5904
  * @returns JSON object
5809
5905
  */
5810
5906
  public toJSON(): { [k: string]: any };
5811
5907
 
5812
5908
  /**
5813
- * Gets the default type url for Tensor
5909
+ * Gets the default type url for DeviceInfo
5814
5910
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5815
5911
  * @returns The default type url
5816
5912
  */
5817
5913
  public static getTypeUrl(typeUrlPrefix?: string): string;
5818
5914
  }
5819
5915
 
5820
- namespace Tensor {
5821
-
5822
- /** DType enum. */
5823
- enum DType {
5824
- DT_INVALID = 0,
5825
- DT_FLOAT = 1,
5826
- DT_DOUBLE = 2,
5827
- DT_UINT8 = 3,
5828
- DT_UINT16 = 4,
5829
- DT_UINT32 = 5,
5830
- DT_UINT64 = 6,
5831
- DT_INT8 = 7,
5832
- DT_INT16 = 8,
5833
- DT_INT32 = 9,
5834
- DT_INT64 = 10,
5835
- DT_BOOL = 11
5836
- }
5837
-
5838
- /** Endianness enum. */
5839
- enum Endianness {
5840
- TENSOR_LITTLE_ENDIAN = 0,
5841
- TENSOR_BIG_ENDIAN = 1
5842
- }
5843
- }
5844
-
5845
- /** Properties of a BroadbandFrame. */
5846
- interface IBroadbandFrame {
5847
-
5848
- /** BroadbandFrame timestampNs */
5849
- timestampNs?: (Long|null);
5850
-
5851
- /** BroadbandFrame sequenceNumber */
5852
- sequenceNumber?: (Long|null);
5853
-
5854
- /** BroadbandFrame frameData */
5855
- frameData?: (number[]|null);
5856
-
5857
- /** BroadbandFrame sampleRateHz */
5858
- sampleRateHz?: (number|null);
5916
+ /** Properties of a DeviceConfiguration. */
5917
+ interface IDeviceConfiguration {
5859
5918
 
5860
- /** BroadbandFrame channelRanges */
5861
- channelRanges?: (synapse.IChannelRange[]|null);
5919
+ /** DeviceConfiguration nodes */
5920
+ nodes?: (synapse.INodeConfig[]|null);
5862
5921
 
5863
- /** BroadbandFrame unixTimestampNs */
5864
- unixTimestampNs?: (Long|null);
5922
+ /** DeviceConfiguration connections */
5923
+ connections?: (synapse.INodeConnection[]|null);
5865
5924
  }
5866
5925
 
5867
- /** Represents a BroadbandFrame. */
5868
- class BroadbandFrame implements IBroadbandFrame {
5926
+ /** Represents a DeviceConfiguration. */
5927
+ class DeviceConfiguration implements IDeviceConfiguration {
5869
5928
 
5870
5929
  /**
5871
- * Constructs a new BroadbandFrame.
5930
+ * Constructs a new DeviceConfiguration.
5872
5931
  * @param [properties] Properties to set
5873
5932
  */
5874
- constructor(properties?: synapse.IBroadbandFrame);
5875
-
5876
- /** BroadbandFrame timestampNs. */
5877
- public timestampNs: Long;
5878
-
5879
- /** BroadbandFrame sequenceNumber. */
5880
- public sequenceNumber: Long;
5881
-
5882
- /** BroadbandFrame frameData. */
5883
- public frameData: number[];
5884
-
5885
- /** BroadbandFrame sampleRateHz. */
5886
- public sampleRateHz: number;
5933
+ constructor(properties?: synapse.IDeviceConfiguration);
5887
5934
 
5888
- /** BroadbandFrame channelRanges. */
5889
- public channelRanges: synapse.IChannelRange[];
5935
+ /** DeviceConfiguration nodes. */
5936
+ public nodes: synapse.INodeConfig[];
5890
5937
 
5891
- /** BroadbandFrame unixTimestampNs. */
5892
- public unixTimestampNs: Long;
5938
+ /** DeviceConfiguration connections. */
5939
+ public connections: synapse.INodeConnection[];
5893
5940
 
5894
5941
  /**
5895
- * Creates a new BroadbandFrame instance using the specified properties.
5942
+ * Creates a new DeviceConfiguration instance using the specified properties.
5896
5943
  * @param [properties] Properties to set
5897
- * @returns BroadbandFrame instance
5944
+ * @returns DeviceConfiguration instance
5898
5945
  */
5899
- public static create(properties?: synapse.IBroadbandFrame): synapse.BroadbandFrame;
5946
+ public static create(properties?: synapse.IDeviceConfiguration): synapse.DeviceConfiguration;
5900
5947
 
5901
5948
  /**
5902
- * Encodes the specified BroadbandFrame message. Does not implicitly {@link synapse.BroadbandFrame.verify|verify} messages.
5903
- * @param message BroadbandFrame message or plain object to encode
5949
+ * Encodes the specified DeviceConfiguration message. Does not implicitly {@link synapse.DeviceConfiguration.verify|verify} messages.
5950
+ * @param message DeviceConfiguration message or plain object to encode
5904
5951
  * @param [writer] Writer to encode to
5905
5952
  * @returns Writer
5906
5953
  */
5907
- public static encode(message: synapse.IBroadbandFrame, writer?: $protobuf.Writer): $protobuf.Writer;
5954
+ public static encode(message: synapse.IDeviceConfiguration, writer?: $protobuf.Writer): $protobuf.Writer;
5908
5955
 
5909
5956
  /**
5910
- * Encodes the specified BroadbandFrame message, length delimited. Does not implicitly {@link synapse.BroadbandFrame.verify|verify} messages.
5911
- * @param message BroadbandFrame message or plain object to encode
5957
+ * Encodes the specified DeviceConfiguration message, length delimited. Does not implicitly {@link synapse.DeviceConfiguration.verify|verify} messages.
5958
+ * @param message DeviceConfiguration message or plain object to encode
5912
5959
  * @param [writer] Writer to encode to
5913
5960
  * @returns Writer
5914
5961
  */
5915
- public static encodeDelimited(message: synapse.IBroadbandFrame, writer?: $protobuf.Writer): $protobuf.Writer;
5962
+ public static encodeDelimited(message: synapse.IDeviceConfiguration, writer?: $protobuf.Writer): $protobuf.Writer;
5916
5963
 
5917
5964
  /**
5918
- * Decodes a BroadbandFrame message from the specified reader or buffer.
5965
+ * Decodes a DeviceConfiguration message from the specified reader or buffer.
5919
5966
  * @param reader Reader or buffer to decode from
5920
5967
  * @param [length] Message length if known beforehand
5921
- * @returns BroadbandFrame
5968
+ * @returns DeviceConfiguration
5922
5969
  * @throws {Error} If the payload is not a reader or valid buffer
5923
5970
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5924
5971
  */
5925
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.BroadbandFrame;
5972
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.DeviceConfiguration;
5926
5973
 
5927
5974
  /**
5928
- * Decodes a BroadbandFrame message from the specified reader or buffer, length delimited.
5975
+ * Decodes a DeviceConfiguration message from the specified reader or buffer, length delimited.
5929
5976
  * @param reader Reader or buffer to decode from
5930
- * @returns BroadbandFrame
5977
+ * @returns DeviceConfiguration
5931
5978
  * @throws {Error} If the payload is not a reader or valid buffer
5932
5979
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5933
5980
  */
5934
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.BroadbandFrame;
5981
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.DeviceConfiguration;
5935
5982
 
5936
5983
  /**
5937
- * Verifies a BroadbandFrame message.
5984
+ * Verifies a DeviceConfiguration message.
5938
5985
  * @param message Plain object to verify
5939
5986
  * @returns `null` if valid, otherwise the reason why it is not
5940
5987
  */
5941
5988
  public static verify(message: { [k: string]: any }): (string|null);
5942
5989
 
5943
5990
  /**
5944
- * Creates a BroadbandFrame message from a plain object. Also converts values to their respective internal types.
5991
+ * Creates a DeviceConfiguration message from a plain object. Also converts values to their respective internal types.
5945
5992
  * @param object Plain object
5946
- * @returns BroadbandFrame
5993
+ * @returns DeviceConfiguration
5947
5994
  */
5948
- public static fromObject(object: { [k: string]: any }): synapse.BroadbandFrame;
5995
+ public static fromObject(object: { [k: string]: any }): synapse.DeviceConfiguration;
5949
5996
 
5950
5997
  /**
5951
- * Creates a plain object from a BroadbandFrame message. Also converts values to other types if specified.
5952
- * @param message BroadbandFrame
5998
+ * Creates a plain object from a DeviceConfiguration message. Also converts values to other types if specified.
5999
+ * @param message DeviceConfiguration
5953
6000
  * @param [options] Conversion options
5954
6001
  * @returns Plain object
5955
6002
  */
5956
- public static toObject(message: synapse.BroadbandFrame, options?: $protobuf.IConversionOptions): { [k: string]: any };
6003
+ public static toObject(message: synapse.DeviceConfiguration, options?: $protobuf.IConversionOptions): { [k: string]: any };
5957
6004
 
5958
6005
  /**
5959
- * Converts this BroadbandFrame to JSON.
6006
+ * Converts this DeviceConfiguration to JSON.
5960
6007
  * @returns JSON object
5961
6008
  */
5962
6009
  public toJSON(): { [k: string]: any };
5963
6010
 
5964
6011
  /**
5965
- * Gets the default type url for BroadbandFrame
6012
+ * Gets the default type url for DeviceConfiguration
5966
6013
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5967
6014
  * @returns The default type url
5968
6015
  */
5969
6016
  public static getTypeUrl(typeUrlPrefix?: string): string;
5970
6017
  }
5971
6018
 
5972
- /** Properties of a Timeseries. */
5973
- interface ITimeseries {
5974
-
5975
- /** Timeseries id */
5976
- id?: (number|null);
6019
+ /** Properties of a DeviceSettings. */
6020
+ interface IDeviceSettings {
5977
6021
 
5978
- /** Timeseries datapoints */
5979
- datapoints?: (synapse.Timeseries.IDatapoint[]|null);
6022
+ /** DeviceSettings values */
6023
+ values?: (google.protobuf.IStruct|null);
5980
6024
  }
5981
6025
 
5982
- /** Represents a Timeseries. */
5983
- class Timeseries implements ITimeseries {
6026
+ /** Represents a DeviceSettings. */
6027
+ class DeviceSettings implements IDeviceSettings {
5984
6028
 
5985
6029
  /**
5986
- * Constructs a new Timeseries.
6030
+ * Constructs a new DeviceSettings.
5987
6031
  * @param [properties] Properties to set
5988
6032
  */
5989
- constructor(properties?: synapse.ITimeseries);
5990
-
5991
- /** Timeseries id. */
5992
- public id: number;
6033
+ constructor(properties?: synapse.IDeviceSettings);
5993
6034
 
5994
- /** Timeseries datapoints. */
5995
- public datapoints: synapse.Timeseries.IDatapoint[];
6035
+ /** DeviceSettings values. */
6036
+ public values?: (google.protobuf.IStruct|null);
5996
6037
 
5997
6038
  /**
5998
- * Creates a new Timeseries instance using the specified properties.
6039
+ * Creates a new DeviceSettings instance using the specified properties.
5999
6040
  * @param [properties] Properties to set
6000
- * @returns Timeseries instance
6041
+ * @returns DeviceSettings instance
6001
6042
  */
6002
- public static create(properties?: synapse.ITimeseries): synapse.Timeseries;
6043
+ public static create(properties?: synapse.IDeviceSettings): synapse.DeviceSettings;
6003
6044
 
6004
6045
  /**
6005
- * Encodes the specified Timeseries message. Does not implicitly {@link synapse.Timeseries.verify|verify} messages.
6006
- * @param message Timeseries message or plain object to encode
6046
+ * Encodes the specified DeviceSettings message. Does not implicitly {@link synapse.DeviceSettings.verify|verify} messages.
6047
+ * @param message DeviceSettings message or plain object to encode
6007
6048
  * @param [writer] Writer to encode to
6008
6049
  * @returns Writer
6009
6050
  */
6010
- public static encode(message: synapse.ITimeseries, writer?: $protobuf.Writer): $protobuf.Writer;
6051
+ public static encode(message: synapse.IDeviceSettings, writer?: $protobuf.Writer): $protobuf.Writer;
6011
6052
 
6012
6053
  /**
6013
- * Encodes the specified Timeseries message, length delimited. Does not implicitly {@link synapse.Timeseries.verify|verify} messages.
6014
- * @param message Timeseries message or plain object to encode
6054
+ * Encodes the specified DeviceSettings message, length delimited. Does not implicitly {@link synapse.DeviceSettings.verify|verify} messages.
6055
+ * @param message DeviceSettings message or plain object to encode
6015
6056
  * @param [writer] Writer to encode to
6016
6057
  * @returns Writer
6017
6058
  */
6018
- public static encodeDelimited(message: synapse.ITimeseries, writer?: $protobuf.Writer): $protobuf.Writer;
6059
+ public static encodeDelimited(message: synapse.IDeviceSettings, writer?: $protobuf.Writer): $protobuf.Writer;
6019
6060
 
6020
6061
  /**
6021
- * Decodes a Timeseries message from the specified reader or buffer.
6062
+ * Decodes a DeviceSettings message from the specified reader or buffer.
6022
6063
  * @param reader Reader or buffer to decode from
6023
6064
  * @param [length] Message length if known beforehand
6024
- * @returns Timeseries
6065
+ * @returns DeviceSettings
6025
6066
  * @throws {Error} If the payload is not a reader or valid buffer
6026
6067
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
6027
6068
  */
6028
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.Timeseries;
6069
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.DeviceSettings;
6029
6070
 
6030
6071
  /**
6031
- * Decodes a Timeseries message from the specified reader or buffer, length delimited.
6072
+ * Decodes a DeviceSettings message from the specified reader or buffer, length delimited.
6032
6073
  * @param reader Reader or buffer to decode from
6033
- * @returns Timeseries
6074
+ * @returns DeviceSettings
6034
6075
  * @throws {Error} If the payload is not a reader or valid buffer
6035
6076
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
6036
6077
  */
6037
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.Timeseries;
6078
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.DeviceSettings;
6038
6079
 
6039
6080
  /**
6040
- * Verifies a Timeseries message.
6081
+ * Verifies a DeviceSettings message.
6041
6082
  * @param message Plain object to verify
6042
6083
  * @returns `null` if valid, otherwise the reason why it is not
6043
6084
  */
6044
6085
  public static verify(message: { [k: string]: any }): (string|null);
6045
6086
 
6046
6087
  /**
6047
- * Creates a Timeseries message from a plain object. Also converts values to their respective internal types.
6088
+ * Creates a DeviceSettings message from a plain object. Also converts values to their respective internal types.
6048
6089
  * @param object Plain object
6049
- * @returns Timeseries
6090
+ * @returns DeviceSettings
6050
6091
  */
6051
- public static fromObject(object: { [k: string]: any }): synapse.Timeseries;
6092
+ public static fromObject(object: { [k: string]: any }): synapse.DeviceSettings;
6052
6093
 
6053
6094
  /**
6054
- * Creates a plain object from a Timeseries message. Also converts values to other types if specified.
6055
- * @param message Timeseries
6095
+ * Creates a plain object from a DeviceSettings message. Also converts values to other types if specified.
6096
+ * @param message DeviceSettings
6056
6097
  * @param [options] Conversion options
6057
6098
  * @returns Plain object
6058
6099
  */
6059
- public static toObject(message: synapse.Timeseries, options?: $protobuf.IConversionOptions): { [k: string]: any };
6100
+ public static toObject(message: synapse.DeviceSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
6060
6101
 
6061
6102
  /**
6062
- * Converts this Timeseries to JSON.
6103
+ * Converts this DeviceSettings to JSON.
6063
6104
  * @returns JSON object
6064
6105
  */
6065
6106
  public toJSON(): { [k: string]: any };
6066
6107
 
6067
6108
  /**
6068
- * Gets the default type url for Timeseries
6109
+ * Gets the default type url for DeviceSettings
6069
6110
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6070
6111
  * @returns The default type url
6071
6112
  */
6072
6113
  public static getTypeUrl(typeUrlPrefix?: string): string;
6073
6114
  }
6074
6115
 
6075
- namespace Timeseries {
6116
+ /** Properties of a SettingDescriptor. */
6117
+ interface ISettingDescriptor {
6076
6118
 
6077
- /** Properties of a Datapoint. */
6078
- interface IDatapoint {
6119
+ /** SettingDescriptor name */
6120
+ name?: (string|null);
6079
6121
 
6080
- /** Datapoint timestampNs */
6081
- timestampNs?: (Long|null);
6122
+ /** SettingDescriptor description */
6123
+ description?: (string|null);
6082
6124
 
6083
- /** Datapoint sample */
6084
- sample?: (number|null);
6125
+ /** SettingDescriptor kind */
6126
+ kind?: (synapse.SettingDescriptor.Kind|null);
6127
+
6128
+ /** SettingDescriptor defaultValue */
6129
+ defaultValue?: (google.protobuf.IValue|null);
6130
+
6131
+ /** SettingDescriptor allowedValues */
6132
+ allowedValues?: (google.protobuf.IValue[]|null);
6133
+ }
6134
+
6135
+ /** Represents a SettingDescriptor. */
6136
+ class SettingDescriptor implements ISettingDescriptor {
6137
+
6138
+ /**
6139
+ * Constructs a new SettingDescriptor.
6140
+ * @param [properties] Properties to set
6141
+ */
6142
+ constructor(properties?: synapse.ISettingDescriptor);
6143
+
6144
+ /** SettingDescriptor name. */
6145
+ public name: string;
6146
+
6147
+ /** SettingDescriptor description. */
6148
+ public description: string;
6149
+
6150
+ /** SettingDescriptor kind. */
6151
+ public kind: synapse.SettingDescriptor.Kind;
6152
+
6153
+ /** SettingDescriptor defaultValue. */
6154
+ public defaultValue?: (google.protobuf.IValue|null);
6155
+
6156
+ /** SettingDescriptor allowedValues. */
6157
+ public allowedValues: google.protobuf.IValue[];
6158
+
6159
+ /**
6160
+ * Creates a new SettingDescriptor instance using the specified properties.
6161
+ * @param [properties] Properties to set
6162
+ * @returns SettingDescriptor instance
6163
+ */
6164
+ public static create(properties?: synapse.ISettingDescriptor): synapse.SettingDescriptor;
6165
+
6166
+ /**
6167
+ * Encodes the specified SettingDescriptor message. Does not implicitly {@link synapse.SettingDescriptor.verify|verify} messages.
6168
+ * @param message SettingDescriptor message or plain object to encode
6169
+ * @param [writer] Writer to encode to
6170
+ * @returns Writer
6171
+ */
6172
+ public static encode(message: synapse.ISettingDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
6173
+
6174
+ /**
6175
+ * Encodes the specified SettingDescriptor message, length delimited. Does not implicitly {@link synapse.SettingDescriptor.verify|verify} messages.
6176
+ * @param message SettingDescriptor message or plain object to encode
6177
+ * @param [writer] Writer to encode to
6178
+ * @returns Writer
6179
+ */
6180
+ public static encodeDelimited(message: synapse.ISettingDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
6181
+
6182
+ /**
6183
+ * Decodes a SettingDescriptor message from the specified reader or buffer.
6184
+ * @param reader Reader or buffer to decode from
6185
+ * @param [length] Message length if known beforehand
6186
+ * @returns SettingDescriptor
6187
+ * @throws {Error} If the payload is not a reader or valid buffer
6188
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6189
+ */
6190
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.SettingDescriptor;
6191
+
6192
+ /**
6193
+ * Decodes a SettingDescriptor message from the specified reader or buffer, length delimited.
6194
+ * @param reader Reader or buffer to decode from
6195
+ * @returns SettingDescriptor
6196
+ * @throws {Error} If the payload is not a reader or valid buffer
6197
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6198
+ */
6199
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.SettingDescriptor;
6200
+
6201
+ /**
6202
+ * Verifies a SettingDescriptor message.
6203
+ * @param message Plain object to verify
6204
+ * @returns `null` if valid, otherwise the reason why it is not
6205
+ */
6206
+ public static verify(message: { [k: string]: any }): (string|null);
6207
+
6208
+ /**
6209
+ * Creates a SettingDescriptor message from a plain object. Also converts values to their respective internal types.
6210
+ * @param object Plain object
6211
+ * @returns SettingDescriptor
6212
+ */
6213
+ public static fromObject(object: { [k: string]: any }): synapse.SettingDescriptor;
6214
+
6215
+ /**
6216
+ * Creates a plain object from a SettingDescriptor message. Also converts values to other types if specified.
6217
+ * @param message SettingDescriptor
6218
+ * @param [options] Conversion options
6219
+ * @returns Plain object
6220
+ */
6221
+ public static toObject(message: synapse.SettingDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
6222
+
6223
+ /**
6224
+ * Converts this SettingDescriptor to JSON.
6225
+ * @returns JSON object
6226
+ */
6227
+ public toJSON(): { [k: string]: any };
6228
+
6229
+ /**
6230
+ * Gets the default type url for SettingDescriptor
6231
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6232
+ * @returns The default type url
6233
+ */
6234
+ public static getTypeUrl(typeUrlPrefix?: string): string;
6235
+ }
6236
+
6237
+ namespace SettingDescriptor {
6238
+
6239
+ /** Kind enum. */
6240
+ enum Kind {
6241
+ kKindUnknown = 0,
6242
+ kString = 1,
6243
+ kInt = 2,
6244
+ kDouble = 3,
6245
+ kBool = 4,
6246
+ kEnum = 5
6085
6247
  }
6248
+ }
6086
6249
 
6087
- /** Represents a Datapoint. */
6088
- class Datapoint implements IDatapoint {
6250
+ /** Properties of a GetSettingsQuery. */
6251
+ interface IGetSettingsQuery {
6252
+ }
6089
6253
 
6090
- /**
6091
- * Constructs a new Datapoint.
6092
- * @param [properties] Properties to set
6093
- */
6094
- constructor(properties?: synapse.Timeseries.IDatapoint);
6254
+ /** Represents a GetSettingsQuery. */
6255
+ class GetSettingsQuery implements IGetSettingsQuery {
6095
6256
 
6096
- /** Datapoint timestampNs. */
6097
- public timestampNs: Long;
6257
+ /**
6258
+ * Constructs a new GetSettingsQuery.
6259
+ * @param [properties] Properties to set
6260
+ */
6261
+ constructor(properties?: synapse.IGetSettingsQuery);
6098
6262
 
6099
- /** Datapoint sample. */
6100
- public sample: number;
6263
+ /**
6264
+ * Creates a new GetSettingsQuery instance using the specified properties.
6265
+ * @param [properties] Properties to set
6266
+ * @returns GetSettingsQuery instance
6267
+ */
6268
+ public static create(properties?: synapse.IGetSettingsQuery): synapse.GetSettingsQuery;
6101
6269
 
6102
- /**
6103
- * Creates a new Datapoint instance using the specified properties.
6104
- * @param [properties] Properties to set
6105
- * @returns Datapoint instance
6106
- */
6107
- public static create(properties?: synapse.Timeseries.IDatapoint): synapse.Timeseries.Datapoint;
6270
+ /**
6271
+ * Encodes the specified GetSettingsQuery message. Does not implicitly {@link synapse.GetSettingsQuery.verify|verify} messages.
6272
+ * @param message GetSettingsQuery message or plain object to encode
6273
+ * @param [writer] Writer to encode to
6274
+ * @returns Writer
6275
+ */
6276
+ public static encode(message: synapse.IGetSettingsQuery, writer?: $protobuf.Writer): $protobuf.Writer;
6108
6277
 
6109
- /**
6110
- * Encodes the specified Datapoint message. Does not implicitly {@link synapse.Timeseries.Datapoint.verify|verify} messages.
6111
- * @param message Datapoint message or plain object to encode
6112
- * @param [writer] Writer to encode to
6113
- * @returns Writer
6114
- */
6115
- public static encode(message: synapse.Timeseries.IDatapoint, writer?: $protobuf.Writer): $protobuf.Writer;
6278
+ /**
6279
+ * Encodes the specified GetSettingsQuery message, length delimited. Does not implicitly {@link synapse.GetSettingsQuery.verify|verify} messages.
6280
+ * @param message GetSettingsQuery message or plain object to encode
6281
+ * @param [writer] Writer to encode to
6282
+ * @returns Writer
6283
+ */
6284
+ public static encodeDelimited(message: synapse.IGetSettingsQuery, writer?: $protobuf.Writer): $protobuf.Writer;
6116
6285
 
6117
- /**
6118
- * Encodes the specified Datapoint message, length delimited. Does not implicitly {@link synapse.Timeseries.Datapoint.verify|verify} messages.
6119
- * @param message Datapoint message or plain object to encode
6120
- * @param [writer] Writer to encode to
6121
- * @returns Writer
6122
- */
6123
- public static encodeDelimited(message: synapse.Timeseries.IDatapoint, writer?: $protobuf.Writer): $protobuf.Writer;
6286
+ /**
6287
+ * Decodes a GetSettingsQuery message from the specified reader or buffer.
6288
+ * @param reader Reader or buffer to decode from
6289
+ * @param [length] Message length if known beforehand
6290
+ * @returns GetSettingsQuery
6291
+ * @throws {Error} If the payload is not a reader or valid buffer
6292
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6293
+ */
6294
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.GetSettingsQuery;
6124
6295
 
6125
- /**
6126
- * Decodes a Datapoint message from the specified reader or buffer.
6127
- * @param reader Reader or buffer to decode from
6128
- * @param [length] Message length if known beforehand
6129
- * @returns Datapoint
6130
- * @throws {Error} If the payload is not a reader or valid buffer
6131
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
6132
- */
6133
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.Timeseries.Datapoint;
6296
+ /**
6297
+ * Decodes a GetSettingsQuery message from the specified reader or buffer, length delimited.
6298
+ * @param reader Reader or buffer to decode from
6299
+ * @returns GetSettingsQuery
6300
+ * @throws {Error} If the payload is not a reader or valid buffer
6301
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6302
+ */
6303
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.GetSettingsQuery;
6134
6304
 
6135
- /**
6136
- * Decodes a Datapoint message from the specified reader or buffer, length delimited.
6137
- * @param reader Reader or buffer to decode from
6138
- * @returns Datapoint
6139
- * @throws {Error} If the payload is not a reader or valid buffer
6140
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
6141
- */
6142
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.Timeseries.Datapoint;
6305
+ /**
6306
+ * Verifies a GetSettingsQuery message.
6307
+ * @param message Plain object to verify
6308
+ * @returns `null` if valid, otherwise the reason why it is not
6309
+ */
6310
+ public static verify(message: { [k: string]: any }): (string|null);
6143
6311
 
6144
- /**
6145
- * Verifies a Datapoint message.
6146
- * @param message Plain object to verify
6147
- * @returns `null` if valid, otherwise the reason why it is not
6148
- */
6149
- public static verify(message: { [k: string]: any }): (string|null);
6312
+ /**
6313
+ * Creates a GetSettingsQuery message from a plain object. Also converts values to their respective internal types.
6314
+ * @param object Plain object
6315
+ * @returns GetSettingsQuery
6316
+ */
6317
+ public static fromObject(object: { [k: string]: any }): synapse.GetSettingsQuery;
6150
6318
 
6151
- /**
6152
- * Creates a Datapoint message from a plain object. Also converts values to their respective internal types.
6153
- * @param object Plain object
6154
- * @returns Datapoint
6155
- */
6156
- public static fromObject(object: { [k: string]: any }): synapse.Timeseries.Datapoint;
6319
+ /**
6320
+ * Creates a plain object from a GetSettingsQuery message. Also converts values to other types if specified.
6321
+ * @param message GetSettingsQuery
6322
+ * @param [options] Conversion options
6323
+ * @returns Plain object
6324
+ */
6325
+ public static toObject(message: synapse.GetSettingsQuery, options?: $protobuf.IConversionOptions): { [k: string]: any };
6157
6326
 
6158
- /**
6159
- * Creates a plain object from a Datapoint message. Also converts values to other types if specified.
6160
- * @param message Datapoint
6161
- * @param [options] Conversion options
6162
- * @returns Plain object
6163
- */
6164
- public static toObject(message: synapse.Timeseries.Datapoint, options?: $protobuf.IConversionOptions): { [k: string]: any };
6327
+ /**
6328
+ * Converts this GetSettingsQuery to JSON.
6329
+ * @returns JSON object
6330
+ */
6331
+ public toJSON(): { [k: string]: any };
6165
6332
 
6166
- /**
6167
- * Converts this Datapoint to JSON.
6168
- * @returns JSON object
6169
- */
6170
- public toJSON(): { [k: string]: any };
6333
+ /**
6334
+ * Gets the default type url for GetSettingsQuery
6335
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6336
+ * @returns The default type url
6337
+ */
6338
+ public static getTypeUrl(typeUrlPrefix?: string): string;
6339
+ }
6340
+
6341
+ /** Properties of a GetSettingsResponse. */
6342
+ interface IGetSettingsResponse {
6343
+
6344
+ /** GetSettingsResponse settings */
6345
+ settings?: (synapse.IDeviceSettings|null);
6346
+
6347
+ /** GetSettingsResponse schema */
6348
+ schema?: (synapse.ISettingDescriptor[]|null);
6349
+ }
6350
+
6351
+ /** Represents a GetSettingsResponse. */
6352
+ class GetSettingsResponse implements IGetSettingsResponse {
6353
+
6354
+ /**
6355
+ * Constructs a new GetSettingsResponse.
6356
+ * @param [properties] Properties to set
6357
+ */
6358
+ constructor(properties?: synapse.IGetSettingsResponse);
6359
+
6360
+ /** GetSettingsResponse settings. */
6361
+ public settings?: (synapse.IDeviceSettings|null);
6362
+
6363
+ /** GetSettingsResponse schema. */
6364
+ public schema: synapse.ISettingDescriptor[];
6365
+
6366
+ /**
6367
+ * Creates a new GetSettingsResponse instance using the specified properties.
6368
+ * @param [properties] Properties to set
6369
+ * @returns GetSettingsResponse instance
6370
+ */
6371
+ public static create(properties?: synapse.IGetSettingsResponse): synapse.GetSettingsResponse;
6372
+
6373
+ /**
6374
+ * Encodes the specified GetSettingsResponse message. Does not implicitly {@link synapse.GetSettingsResponse.verify|verify} messages.
6375
+ * @param message GetSettingsResponse message or plain object to encode
6376
+ * @param [writer] Writer to encode to
6377
+ * @returns Writer
6378
+ */
6379
+ public static encode(message: synapse.IGetSettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
6380
+
6381
+ /**
6382
+ * Encodes the specified GetSettingsResponse message, length delimited. Does not implicitly {@link synapse.GetSettingsResponse.verify|verify} messages.
6383
+ * @param message GetSettingsResponse message or plain object to encode
6384
+ * @param [writer] Writer to encode to
6385
+ * @returns Writer
6386
+ */
6387
+ public static encodeDelimited(message: synapse.IGetSettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
6388
+
6389
+ /**
6390
+ * Decodes a GetSettingsResponse message from the specified reader or buffer.
6391
+ * @param reader Reader or buffer to decode from
6392
+ * @param [length] Message length if known beforehand
6393
+ * @returns GetSettingsResponse
6394
+ * @throws {Error} If the payload is not a reader or valid buffer
6395
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6396
+ */
6397
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.GetSettingsResponse;
6398
+
6399
+ /**
6400
+ * Decodes a GetSettingsResponse message from the specified reader or buffer, length delimited.
6401
+ * @param reader Reader or buffer to decode from
6402
+ * @returns GetSettingsResponse
6403
+ * @throws {Error} If the payload is not a reader or valid buffer
6404
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6405
+ */
6406
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.GetSettingsResponse;
6407
+
6408
+ /**
6409
+ * Verifies a GetSettingsResponse message.
6410
+ * @param message Plain object to verify
6411
+ * @returns `null` if valid, otherwise the reason why it is not
6412
+ */
6413
+ public static verify(message: { [k: string]: any }): (string|null);
6414
+
6415
+ /**
6416
+ * Creates a GetSettingsResponse message from a plain object. Also converts values to their respective internal types.
6417
+ * @param object Plain object
6418
+ * @returns GetSettingsResponse
6419
+ */
6420
+ public static fromObject(object: { [k: string]: any }): synapse.GetSettingsResponse;
6421
+
6422
+ /**
6423
+ * Creates a plain object from a GetSettingsResponse message. Also converts values to other types if specified.
6424
+ * @param message GetSettingsResponse
6425
+ * @param [options] Conversion options
6426
+ * @returns Plain object
6427
+ */
6428
+ public static toObject(message: synapse.GetSettingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
6429
+
6430
+ /**
6431
+ * Converts this GetSettingsResponse to JSON.
6432
+ * @returns JSON object
6433
+ */
6434
+ public toJSON(): { [k: string]: any };
6435
+
6436
+ /**
6437
+ * Gets the default type url for GetSettingsResponse
6438
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6439
+ * @returns The default type url
6440
+ */
6441
+ public static getTypeUrl(typeUrlPrefix?: string): string;
6442
+ }
6443
+
6444
+ /** Properties of an UpdateDeviceSettingsRequest. */
6445
+ interface IUpdateDeviceSettingsRequest {
6446
+
6447
+ /** UpdateDeviceSettingsRequest settings */
6448
+ settings?: (synapse.IDeviceSettings|null);
6449
+ }
6450
+
6451
+ /** Represents an UpdateDeviceSettingsRequest. */
6452
+ class UpdateDeviceSettingsRequest implements IUpdateDeviceSettingsRequest {
6453
+
6454
+ /**
6455
+ * Constructs a new UpdateDeviceSettingsRequest.
6456
+ * @param [properties] Properties to set
6457
+ */
6458
+ constructor(properties?: synapse.IUpdateDeviceSettingsRequest);
6459
+
6460
+ /** UpdateDeviceSettingsRequest settings. */
6461
+ public settings?: (synapse.IDeviceSettings|null);
6462
+
6463
+ /**
6464
+ * Creates a new UpdateDeviceSettingsRequest instance using the specified properties.
6465
+ * @param [properties] Properties to set
6466
+ * @returns UpdateDeviceSettingsRequest instance
6467
+ */
6468
+ public static create(properties?: synapse.IUpdateDeviceSettingsRequest): synapse.UpdateDeviceSettingsRequest;
6469
+
6470
+ /**
6471
+ * Encodes the specified UpdateDeviceSettingsRequest message. Does not implicitly {@link synapse.UpdateDeviceSettingsRequest.verify|verify} messages.
6472
+ * @param message UpdateDeviceSettingsRequest message or plain object to encode
6473
+ * @param [writer] Writer to encode to
6474
+ * @returns Writer
6475
+ */
6476
+ public static encode(message: synapse.IUpdateDeviceSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6477
+
6478
+ /**
6479
+ * Encodes the specified UpdateDeviceSettingsRequest message, length delimited. Does not implicitly {@link synapse.UpdateDeviceSettingsRequest.verify|verify} messages.
6480
+ * @param message UpdateDeviceSettingsRequest message or plain object to encode
6481
+ * @param [writer] Writer to encode to
6482
+ * @returns Writer
6483
+ */
6484
+ public static encodeDelimited(message: synapse.IUpdateDeviceSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6485
+
6486
+ /**
6487
+ * Decodes an UpdateDeviceSettingsRequest message from the specified reader or buffer.
6488
+ * @param reader Reader or buffer to decode from
6489
+ * @param [length] Message length if known beforehand
6490
+ * @returns UpdateDeviceSettingsRequest
6491
+ * @throws {Error} If the payload is not a reader or valid buffer
6492
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6493
+ */
6494
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.UpdateDeviceSettingsRequest;
6495
+
6496
+ /**
6497
+ * Decodes an UpdateDeviceSettingsRequest message from the specified reader or buffer, length delimited.
6498
+ * @param reader Reader or buffer to decode from
6499
+ * @returns UpdateDeviceSettingsRequest
6500
+ * @throws {Error} If the payload is not a reader or valid buffer
6501
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6502
+ */
6503
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.UpdateDeviceSettingsRequest;
6504
+
6505
+ /**
6506
+ * Verifies an UpdateDeviceSettingsRequest message.
6507
+ * @param message Plain object to verify
6508
+ * @returns `null` if valid, otherwise the reason why it is not
6509
+ */
6510
+ public static verify(message: { [k: string]: any }): (string|null);
6511
+
6512
+ /**
6513
+ * Creates an UpdateDeviceSettingsRequest message from a plain object. Also converts values to their respective internal types.
6514
+ * @param object Plain object
6515
+ * @returns UpdateDeviceSettingsRequest
6516
+ */
6517
+ public static fromObject(object: { [k: string]: any }): synapse.UpdateDeviceSettingsRequest;
6518
+
6519
+ /**
6520
+ * Creates a plain object from an UpdateDeviceSettingsRequest message. Also converts values to other types if specified.
6521
+ * @param message UpdateDeviceSettingsRequest
6522
+ * @param [options] Conversion options
6523
+ * @returns Plain object
6524
+ */
6525
+ public static toObject(message: synapse.UpdateDeviceSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
6171
6526
 
6172
- /**
6173
- * Gets the default type url for Datapoint
6174
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6175
- * @returns The default type url
6176
- */
6177
- public static getTypeUrl(typeUrlPrefix?: string): string;
6178
- }
6527
+ /**
6528
+ * Converts this UpdateDeviceSettingsRequest to JSON.
6529
+ * @returns JSON object
6530
+ */
6531
+ public toJSON(): { [k: string]: any };
6532
+
6533
+ /**
6534
+ * Gets the default type url for UpdateDeviceSettingsRequest
6535
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6536
+ * @returns The default type url
6537
+ */
6538
+ public static getTypeUrl(typeUrlPrefix?: string): string;
6179
6539
  }
6180
6540
 
6181
- /** Properties of an AnnotatedTensor. */
6182
- interface IAnnotatedTensor {
6541
+ /** Properties of an UpdateDeviceSettingsResponse. */
6542
+ interface IUpdateDeviceSettingsResponse {
6183
6543
 
6184
- /** AnnotatedTensor tensor */
6185
- tensor?: (synapse.ITensor|null);
6544
+ /** UpdateDeviceSettingsResponse status */
6545
+ status?: (synapse.IStatus|null);
6186
6546
 
6187
- /** AnnotatedTensor metadata */
6188
- metadata?: ({ [k: string]: google.protobuf.IValue }|null);
6547
+ /** UpdateDeviceSettingsResponse updatedSettings */
6548
+ updatedSettings?: (synapse.IDeviceSettings|null);
6189
6549
  }
6190
6550
 
6191
- /** Represents an AnnotatedTensor. */
6192
- class AnnotatedTensor implements IAnnotatedTensor {
6551
+ /** Represents an UpdateDeviceSettingsResponse. */
6552
+ class UpdateDeviceSettingsResponse implements IUpdateDeviceSettingsResponse {
6193
6553
 
6194
6554
  /**
6195
- * Constructs a new AnnotatedTensor.
6555
+ * Constructs a new UpdateDeviceSettingsResponse.
6196
6556
  * @param [properties] Properties to set
6197
6557
  */
6198
- constructor(properties?: synapse.IAnnotatedTensor);
6558
+ constructor(properties?: synapse.IUpdateDeviceSettingsResponse);
6199
6559
 
6200
- /** AnnotatedTensor tensor. */
6201
- public tensor?: (synapse.ITensor|null);
6560
+ /** UpdateDeviceSettingsResponse status. */
6561
+ public status?: (synapse.IStatus|null);
6202
6562
 
6203
- /** AnnotatedTensor metadata. */
6204
- public metadata: { [k: string]: google.protobuf.IValue };
6563
+ /** UpdateDeviceSettingsResponse updatedSettings. */
6564
+ public updatedSettings?: (synapse.IDeviceSettings|null);
6205
6565
 
6206
6566
  /**
6207
- * Creates a new AnnotatedTensor instance using the specified properties.
6567
+ * Creates a new UpdateDeviceSettingsResponse instance using the specified properties.
6208
6568
  * @param [properties] Properties to set
6209
- * @returns AnnotatedTensor instance
6569
+ * @returns UpdateDeviceSettingsResponse instance
6210
6570
  */
6211
- public static create(properties?: synapse.IAnnotatedTensor): synapse.AnnotatedTensor;
6571
+ public static create(properties?: synapse.IUpdateDeviceSettingsResponse): synapse.UpdateDeviceSettingsResponse;
6212
6572
 
6213
6573
  /**
6214
- * Encodes the specified AnnotatedTensor message. Does not implicitly {@link synapse.AnnotatedTensor.verify|verify} messages.
6215
- * @param message AnnotatedTensor message or plain object to encode
6574
+ * Encodes the specified UpdateDeviceSettingsResponse message. Does not implicitly {@link synapse.UpdateDeviceSettingsResponse.verify|verify} messages.
6575
+ * @param message UpdateDeviceSettingsResponse message or plain object to encode
6216
6576
  * @param [writer] Writer to encode to
6217
6577
  * @returns Writer
6218
6578
  */
6219
- public static encode(message: synapse.IAnnotatedTensor, writer?: $protobuf.Writer): $protobuf.Writer;
6579
+ public static encode(message: synapse.IUpdateDeviceSettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
6220
6580
 
6221
6581
  /**
6222
- * Encodes the specified AnnotatedTensor message, length delimited. Does not implicitly {@link synapse.AnnotatedTensor.verify|verify} messages.
6223
- * @param message AnnotatedTensor message or plain object to encode
6582
+ * Encodes the specified UpdateDeviceSettingsResponse message, length delimited. Does not implicitly {@link synapse.UpdateDeviceSettingsResponse.verify|verify} messages.
6583
+ * @param message UpdateDeviceSettingsResponse message or plain object to encode
6224
6584
  * @param [writer] Writer to encode to
6225
6585
  * @returns Writer
6226
6586
  */
6227
- public static encodeDelimited(message: synapse.IAnnotatedTensor, writer?: $protobuf.Writer): $protobuf.Writer;
6587
+ public static encodeDelimited(message: synapse.IUpdateDeviceSettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
6228
6588
 
6229
6589
  /**
6230
- * Decodes an AnnotatedTensor message from the specified reader or buffer.
6590
+ * Decodes an UpdateDeviceSettingsResponse message from the specified reader or buffer.
6231
6591
  * @param reader Reader or buffer to decode from
6232
6592
  * @param [length] Message length if known beforehand
6233
- * @returns AnnotatedTensor
6593
+ * @returns UpdateDeviceSettingsResponse
6234
6594
  * @throws {Error} If the payload is not a reader or valid buffer
6235
6595
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
6236
6596
  */
6237
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.AnnotatedTensor;
6597
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.UpdateDeviceSettingsResponse;
6238
6598
 
6239
6599
  /**
6240
- * Decodes an AnnotatedTensor message from the specified reader or buffer, length delimited.
6600
+ * Decodes an UpdateDeviceSettingsResponse message from the specified reader or buffer, length delimited.
6241
6601
  * @param reader Reader or buffer to decode from
6242
- * @returns AnnotatedTensor
6602
+ * @returns UpdateDeviceSettingsResponse
6243
6603
  * @throws {Error} If the payload is not a reader or valid buffer
6244
6604
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
6245
6605
  */
6246
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.AnnotatedTensor;
6606
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.UpdateDeviceSettingsResponse;
6247
6607
 
6248
6608
  /**
6249
- * Verifies an AnnotatedTensor message.
6609
+ * Verifies an UpdateDeviceSettingsResponse message.
6250
6610
  * @param message Plain object to verify
6251
6611
  * @returns `null` if valid, otherwise the reason why it is not
6252
6612
  */
6253
6613
  public static verify(message: { [k: string]: any }): (string|null);
6254
6614
 
6255
6615
  /**
6256
- * Creates an AnnotatedTensor message from a plain object. Also converts values to their respective internal types.
6616
+ * Creates an UpdateDeviceSettingsResponse message from a plain object. Also converts values to their respective internal types.
6257
6617
  * @param object Plain object
6258
- * @returns AnnotatedTensor
6618
+ * @returns UpdateDeviceSettingsResponse
6259
6619
  */
6260
- public static fromObject(object: { [k: string]: any }): synapse.AnnotatedTensor;
6620
+ public static fromObject(object: { [k: string]: any }): synapse.UpdateDeviceSettingsResponse;
6261
6621
 
6262
6622
  /**
6263
- * Creates a plain object from an AnnotatedTensor message. Also converts values to other types if specified.
6264
- * @param message AnnotatedTensor
6623
+ * Creates a plain object from an UpdateDeviceSettingsResponse message. Also converts values to other types if specified.
6624
+ * @param message UpdateDeviceSettingsResponse
6265
6625
  * @param [options] Conversion options
6266
6626
  * @returns Plain object
6267
6627
  */
6268
- public static toObject(message: synapse.AnnotatedTensor, options?: $protobuf.IConversionOptions): { [k: string]: any };
6628
+ public static toObject(message: synapse.UpdateDeviceSettingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
6269
6629
 
6270
6630
  /**
6271
- * Converts this AnnotatedTensor to JSON.
6631
+ * Converts this UpdateDeviceSettingsResponse to JSON.
6272
6632
  * @returns JSON object
6273
6633
  */
6274
6634
  public toJSON(): { [k: string]: any };
6275
6635
 
6276
6636
  /**
6277
- * Gets the default type url for AnnotatedTensor
6637
+ * Gets the default type url for UpdateDeviceSettingsResponse
6278
6638
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6279
6639
  * @returns The default type url
6280
6640
  */
@@ -9417,6 +9777,164 @@ export namespace synapse {
9417
9777
  */
9418
9778
  type UpdateDeviceSettingsCallback = (error: (Error|null), response?: synapse.UpdateDeviceSettingsResponse) => void;
9419
9779
  }
9780
+
9781
+ /** Properties of a TimeSyncPacket. */
9782
+ interface ITimeSyncPacket {
9783
+
9784
+ /** TimeSyncPacket clientId */
9785
+ clientId?: (number|null);
9786
+
9787
+ /** TimeSyncPacket sequence */
9788
+ sequence?: (number|null);
9789
+
9790
+ /** TimeSyncPacket clientSendTimeNs */
9791
+ clientSendTimeNs?: (Long|null);
9792
+
9793
+ /** TimeSyncPacket serverReceiveTimeNs */
9794
+ serverReceiveTimeNs?: (Long|null);
9795
+
9796
+ /** TimeSyncPacket serverSendTimeNs */
9797
+ serverSendTimeNs?: (Long|null);
9798
+
9799
+ /** TimeSyncPacket clientReceiveTimeNs */
9800
+ clientReceiveTimeNs?: (Long|null);
9801
+ }
9802
+
9803
+ /**
9804
+ * Used for precise time synchronization over UDP between clients and a server
9805
+ * In most cases, the server is the Synapse device.enum
9806
+ *
9807
+ * How it works:
9808
+ * 1. Client generates a random client_id on first connection
9809
+ * 2. Client increments the sequence number on each packet (to detect drops)
9810
+ * 3. Client records the send time and sends the packet to the server over udp.
9811
+ * - The server port will be available through the Status message
9812
+ * - Try to timestamp the packet as close as possible to the send to minimize
9813
+ * the calculated offset error. Future improvements could support hardware timestamps
9814
+ * 4. Server records the receive time
9815
+ * 5. Server immediately echos it back to the client, recording the send time
9816
+ * 6. Client records the receive time when the packet returns
9817
+ *
9818
+ * With these times, the client can calculate
9819
+ * - Round Trip Time: (client_receive_time_ns - client_send_time_ns)
9820
+ * - Network Latency (assumes symmetric paths): rtt / 2
9821
+ * - Clock offset: https://en.wikipedia.org/wiki/Network_Time_Protocol#Clock_synchronization_algorithm
9822
+ *
9823
+ * Implementation notes:
9824
+ * - All timestamps are monotonic nanoseconds since Unix epoch
9825
+ * - The server acts as a passive reflector
9826
+ * - Multiple sync packets (8 or so) should be sent with a short period (200 ms) between
9827
+ */
9828
+ class TimeSyncPacket implements ITimeSyncPacket {
9829
+
9830
+ /**
9831
+ * Constructs a new TimeSyncPacket.
9832
+ * @param [properties] Properties to set
9833
+ */
9834
+ constructor(properties?: synapse.ITimeSyncPacket);
9835
+
9836
+ /** TimeSyncPacket clientId. */
9837
+ public clientId: number;
9838
+
9839
+ /** TimeSyncPacket sequence. */
9840
+ public sequence: number;
9841
+
9842
+ /** TimeSyncPacket clientSendTimeNs. */
9843
+ public clientSendTimeNs: Long;
9844
+
9845
+ /** TimeSyncPacket serverReceiveTimeNs. */
9846
+ public serverReceiveTimeNs: Long;
9847
+
9848
+ /** TimeSyncPacket serverSendTimeNs. */
9849
+ public serverSendTimeNs: Long;
9850
+
9851
+ /** TimeSyncPacket clientReceiveTimeNs. */
9852
+ public clientReceiveTimeNs: Long;
9853
+
9854
+ /**
9855
+ * Creates a new TimeSyncPacket instance using the specified properties.
9856
+ * @param [properties] Properties to set
9857
+ * @returns TimeSyncPacket instance
9858
+ */
9859
+ public static create(properties?: synapse.ITimeSyncPacket): synapse.TimeSyncPacket;
9860
+
9861
+ /**
9862
+ * Encodes the specified TimeSyncPacket message. Does not implicitly {@link synapse.TimeSyncPacket.verify|verify} messages.
9863
+ * @param message TimeSyncPacket message or plain object to encode
9864
+ * @param [writer] Writer to encode to
9865
+ * @returns Writer
9866
+ */
9867
+ public static encode(message: synapse.ITimeSyncPacket, writer?: $protobuf.Writer): $protobuf.Writer;
9868
+
9869
+ /**
9870
+ * Encodes the specified TimeSyncPacket message, length delimited. Does not implicitly {@link synapse.TimeSyncPacket.verify|verify} messages.
9871
+ * @param message TimeSyncPacket message or plain object to encode
9872
+ * @param [writer] Writer to encode to
9873
+ * @returns Writer
9874
+ */
9875
+ public static encodeDelimited(message: synapse.ITimeSyncPacket, writer?: $protobuf.Writer): $protobuf.Writer;
9876
+
9877
+ /**
9878
+ * Decodes a TimeSyncPacket message from the specified reader or buffer.
9879
+ * @param reader Reader or buffer to decode from
9880
+ * @param [length] Message length if known beforehand
9881
+ * @returns TimeSyncPacket
9882
+ * @throws {Error} If the payload is not a reader or valid buffer
9883
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9884
+ */
9885
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.TimeSyncPacket;
9886
+
9887
+ /**
9888
+ * Decodes a TimeSyncPacket message from the specified reader or buffer, length delimited.
9889
+ * @param reader Reader or buffer to decode from
9890
+ * @returns TimeSyncPacket
9891
+ * @throws {Error} If the payload is not a reader or valid buffer
9892
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9893
+ */
9894
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.TimeSyncPacket;
9895
+
9896
+ /**
9897
+ * Verifies a TimeSyncPacket message.
9898
+ * @param message Plain object to verify
9899
+ * @returns `null` if valid, otherwise the reason why it is not
9900
+ */
9901
+ public static verify(message: { [k: string]: any }): (string|null);
9902
+
9903
+ /**
9904
+ * Creates a TimeSyncPacket message from a plain object. Also converts values to their respective internal types.
9905
+ * @param object Plain object
9906
+ * @returns TimeSyncPacket
9907
+ */
9908
+ public static fromObject(object: { [k: string]: any }): synapse.TimeSyncPacket;
9909
+
9910
+ /**
9911
+ * Creates a plain object from a TimeSyncPacket message. Also converts values to other types if specified.
9912
+ * @param message TimeSyncPacket
9913
+ * @param [options] Conversion options
9914
+ * @returns Plain object
9915
+ */
9916
+ public static toObject(message: synapse.TimeSyncPacket, options?: $protobuf.IConversionOptions): { [k: string]: any };
9917
+
9918
+ /**
9919
+ * Converts this TimeSyncPacket to JSON.
9920
+ * @returns JSON object
9921
+ */
9922
+ public toJSON(): { [k: string]: any };
9923
+
9924
+ /**
9925
+ * Gets the default type url for TimeSyncPacket
9926
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9927
+ * @returns The default type url
9928
+ */
9929
+ public static getTypeUrl(typeUrlPrefix?: string): string;
9930
+ }
9931
+
9932
+ /** TimeSource enum. */
9933
+ enum TimeSource {
9934
+ TIME_SOURCE_UNKNOWN = 0,
9935
+ TIME_SOURCE_STEADY_CLOCK = 1,
9936
+ TIME_SOURCE_SAMPLE_COUNTER = 2
9937
+ }
9420
9938
  }
9421
9939
 
9422
9940
  /** Namespace google. */