@science-corporation/synapse 0.13.0 → 2.0.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/README.md +4 -2
- package/dist/api/api.d.ts +711 -71
- package/dist/api/api.js +5532 -4083
- package/dist/api/api.js.map +1 -1
- package/dist/api/proto.json +122 -32
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +4 -2
- package/dist/config.js.map +1 -1
- package/dist/demo.js +125 -32
- package/dist/demo.js.map +1 -1
- package/dist/device.d.ts +6 -0
- package/dist/device.d.ts.map +1 -1
- package/dist/device.js +25 -0
- package/dist/device.js.map +1 -1
- package/dist/nodes/index.d.ts +2 -1
- package/dist/nodes/index.d.ts.map +1 -1
- package/dist/nodes/index.js +5 -3
- package/dist/nodes/index.js.map +1 -1
- package/dist/nodes/spike_binner.d.ts +11 -0
- package/dist/nodes/{spike_detect.d.ts.map → spike_binner.d.ts.map} +1 -1
- package/dist/nodes/spike_binner.js +28 -0
- package/dist/nodes/{spike_detect.js.map → spike_binner.js.map} +1 -1
- package/dist/nodes/spike_detector.d.ts +11 -0
- package/dist/nodes/spike_detector.d.ts.map +1 -0
- package/dist/nodes/{spike_detect.js → spike_detector.js} +9 -9
- package/dist/nodes/spike_detector.js.map +1 -0
- package/dist/nodes/stream_out.d.ts +12 -5
- package/dist/nodes/stream_out.d.ts.map +1 -1
- package/dist/nodes/stream_out.js +58 -40
- package/dist/nodes/stream_out.js.map +1 -1
- package/dist/utils/ip.d.ts +2 -0
- package/dist/utils/ip.d.ts.map +1 -0
- package/dist/utils/ip.js +52 -0
- package/dist/utils/ip.js.map +1 -0
- package/package.json +6 -5
- package/scripts/postinstall.sh +50 -10
- package/src/api/api.d.ts +711 -71
- package/src/api/api.js +5671 -4121
- package/src/api/proto.json +122 -32
- package/src/config.ts +4 -2
- package/src/demo.ts +20 -8
- package/src/device.ts +34 -1
- package/src/nodes/index.ts +2 -1
- package/src/nodes/spike_binner.ts +30 -0
- package/src/nodes/spike_detector.ts +30 -0
- package/src/nodes/stream_out.ts +67 -50
- package/src/utils/ip.ts +35 -0
- package/synapse-api/.github/pull_request_template.md +10 -0
- package/synapse-api/README.md +1 -1
- package/synapse-api/api/datatype.proto +1 -0
- package/synapse-api/api/node.proto +6 -3
- package/synapse-api/api/nodes/spike_binner.proto +7 -0
- package/synapse-api/api/nodes/spike_detector.proto +19 -0
- package/synapse-api/api/nodes/stream_out.proto +31 -1
- package/synapse-api/api/query.proto +19 -1
- package/synapse-api/api/synapse.proto +1 -0
- package/dist/api-science-device/api.d.ts +0 -3
- package/dist/api-science-device/api.d.ts.map +0 -1
- package/dist/api-science-device/api.js +0 -3822
- package/dist/api-science-device/api.js.map +0 -1
- package/dist/api-science-device/proto.json +0 -258
- package/dist/nodejs.d.ts +0 -8
- package/dist/nodejs.d.ts.map +0 -1
- package/dist/nodejs.js +0 -32
- package/dist/nodejs.js.map +0 -1
- package/dist/nodes/spike_detect.d.ts +0 -11
- package/dist/science-device-api/api.d.ts +0 -3
- package/dist/science-device-api/api.d.ts.map +0 -1
- package/dist/science-device-api/api.js +0 -3822
- package/dist/science-device-api/api.js.map +0 -1
- package/dist/types/index.d.ts +0 -3
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -19
- package/dist/types/index.js.map +0 -1
- package/dist/types.d.ts +0 -5
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -19
- package/dist/types.js.map +0 -1
- package/dist/utils/device-management.d.ts +0 -37
- package/dist/utils/device-management.d.ts.map +0 -1
- package/dist/utils/device-management.js +0 -126
- package/dist/utils/device-management.js.map +0 -1
- package/dist/utils/ndtp.d.ts +0 -40
- package/dist/utils/ndtp.d.ts.map +0 -1
- package/dist/utils/ndtp.js +0 -140
- package/dist/utils/ndtp.js.map +0 -1
- package/src/nodes/spike_detect.ts +0 -30
- package/synapse-api/api/nodes/spike_detect.proto +0 -16
package/dist/api/api.d.ts
CHANGED
|
@@ -887,135 +887,407 @@ export namespace synapse {
|
|
|
887
887
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
-
/** Properties of a
|
|
891
|
-
interface
|
|
890
|
+
/** Properties of a SpikeBinnerConfig. */
|
|
891
|
+
interface ISpikeBinnerConfig {
|
|
892
892
|
|
|
893
|
-
/**
|
|
894
|
-
|
|
893
|
+
/** SpikeBinnerConfig binSizeMs */
|
|
894
|
+
binSizeMs?: (number|null);
|
|
895
|
+
}
|
|
895
896
|
|
|
896
|
-
|
|
897
|
-
|
|
897
|
+
/** Represents a SpikeBinnerConfig. */
|
|
898
|
+
class SpikeBinnerConfig implements ISpikeBinnerConfig {
|
|
898
899
|
|
|
899
|
-
/**
|
|
900
|
-
|
|
900
|
+
/**
|
|
901
|
+
* Constructs a new SpikeBinnerConfig.
|
|
902
|
+
* @param [properties] Properties to set
|
|
903
|
+
*/
|
|
904
|
+
constructor(properties?: synapse.ISpikeBinnerConfig);
|
|
901
905
|
|
|
902
|
-
/**
|
|
903
|
-
|
|
906
|
+
/** SpikeBinnerConfig binSizeMs. */
|
|
907
|
+
public binSizeMs: number;
|
|
904
908
|
|
|
905
|
-
/**
|
|
906
|
-
|
|
909
|
+
/**
|
|
910
|
+
* Creates a new SpikeBinnerConfig instance using the specified properties.
|
|
911
|
+
* @param [properties] Properties to set
|
|
912
|
+
* @returns SpikeBinnerConfig instance
|
|
913
|
+
*/
|
|
914
|
+
public static create(properties?: synapse.ISpikeBinnerConfig): synapse.SpikeBinnerConfig;
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* Encodes the specified SpikeBinnerConfig message. Does not implicitly {@link synapse.SpikeBinnerConfig.verify|verify} messages.
|
|
918
|
+
* @param message SpikeBinnerConfig message or plain object to encode
|
|
919
|
+
* @param [writer] Writer to encode to
|
|
920
|
+
* @returns Writer
|
|
921
|
+
*/
|
|
922
|
+
public static encode(message: synapse.ISpikeBinnerConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* Encodes the specified SpikeBinnerConfig message, length delimited. Does not implicitly {@link synapse.SpikeBinnerConfig.verify|verify} messages.
|
|
926
|
+
* @param message SpikeBinnerConfig message or plain object to encode
|
|
927
|
+
* @param [writer] Writer to encode to
|
|
928
|
+
* @returns Writer
|
|
929
|
+
*/
|
|
930
|
+
public static encodeDelimited(message: synapse.ISpikeBinnerConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* Decodes a SpikeBinnerConfig message from the specified reader or buffer.
|
|
934
|
+
* @param reader Reader or buffer to decode from
|
|
935
|
+
* @param [length] Message length if known beforehand
|
|
936
|
+
* @returns SpikeBinnerConfig
|
|
937
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
938
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
939
|
+
*/
|
|
940
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.SpikeBinnerConfig;
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* Decodes a SpikeBinnerConfig message from the specified reader or buffer, length delimited.
|
|
944
|
+
* @param reader Reader or buffer to decode from
|
|
945
|
+
* @returns SpikeBinnerConfig
|
|
946
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
947
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
948
|
+
*/
|
|
949
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.SpikeBinnerConfig;
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* Verifies a SpikeBinnerConfig message.
|
|
953
|
+
* @param message Plain object to verify
|
|
954
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
955
|
+
*/
|
|
956
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* Creates a SpikeBinnerConfig message from a plain object. Also converts values to their respective internal types.
|
|
960
|
+
* @param object Plain object
|
|
961
|
+
* @returns SpikeBinnerConfig
|
|
962
|
+
*/
|
|
963
|
+
public static fromObject(object: { [k: string]: any }): synapse.SpikeBinnerConfig;
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* Creates a plain object from a SpikeBinnerConfig message. Also converts values to other types if specified.
|
|
967
|
+
* @param message SpikeBinnerConfig
|
|
968
|
+
* @param [options] Conversion options
|
|
969
|
+
* @returns Plain object
|
|
970
|
+
*/
|
|
971
|
+
public static toObject(message: synapse.SpikeBinnerConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* Converts this SpikeBinnerConfig to JSON.
|
|
975
|
+
* @returns JSON object
|
|
976
|
+
*/
|
|
977
|
+
public toJSON(): { [k: string]: any };
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* Gets the default type url for SpikeBinnerConfig
|
|
981
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
982
|
+
* @returns The default type url
|
|
983
|
+
*/
|
|
984
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
/** Properties of a TemplateMatcher. */
|
|
988
|
+
interface ITemplateMatcher {
|
|
989
|
+
|
|
990
|
+
/** TemplateMatcher templateUV */
|
|
991
|
+
templateUV?: (number[]|null);
|
|
907
992
|
}
|
|
908
993
|
|
|
909
|
-
/** Represents a
|
|
910
|
-
class
|
|
994
|
+
/** Represents a TemplateMatcher. */
|
|
995
|
+
class TemplateMatcher implements ITemplateMatcher {
|
|
911
996
|
|
|
912
997
|
/**
|
|
913
|
-
* Constructs a new
|
|
998
|
+
* Constructs a new TemplateMatcher.
|
|
914
999
|
* @param [properties] Properties to set
|
|
915
1000
|
*/
|
|
916
|
-
constructor(properties?: synapse.
|
|
1001
|
+
constructor(properties?: synapse.ITemplateMatcher);
|
|
1002
|
+
|
|
1003
|
+
/** TemplateMatcher templateUV. */
|
|
1004
|
+
public templateUV: number[];
|
|
917
1005
|
|
|
918
|
-
/**
|
|
919
|
-
|
|
1006
|
+
/**
|
|
1007
|
+
* Creates a new TemplateMatcher instance using the specified properties.
|
|
1008
|
+
* @param [properties] Properties to set
|
|
1009
|
+
* @returns TemplateMatcher instance
|
|
1010
|
+
*/
|
|
1011
|
+
public static create(properties?: synapse.ITemplateMatcher): synapse.TemplateMatcher;
|
|
920
1012
|
|
|
921
|
-
/**
|
|
922
|
-
|
|
1013
|
+
/**
|
|
1014
|
+
* Encodes the specified TemplateMatcher message. Does not implicitly {@link synapse.TemplateMatcher.verify|verify} messages.
|
|
1015
|
+
* @param message TemplateMatcher message or plain object to encode
|
|
1016
|
+
* @param [writer] Writer to encode to
|
|
1017
|
+
* @returns Writer
|
|
1018
|
+
*/
|
|
1019
|
+
public static encode(message: synapse.ITemplateMatcher, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
923
1020
|
|
|
924
|
-
/**
|
|
925
|
-
|
|
1021
|
+
/**
|
|
1022
|
+
* Encodes the specified TemplateMatcher message, length delimited. Does not implicitly {@link synapse.TemplateMatcher.verify|verify} messages.
|
|
1023
|
+
* @param message TemplateMatcher message or plain object to encode
|
|
1024
|
+
* @param [writer] Writer to encode to
|
|
1025
|
+
* @returns Writer
|
|
1026
|
+
*/
|
|
1027
|
+
public static encodeDelimited(message: synapse.ITemplateMatcher, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
926
1028
|
|
|
927
|
-
/**
|
|
928
|
-
|
|
1029
|
+
/**
|
|
1030
|
+
* Decodes a TemplateMatcher message from the specified reader or buffer.
|
|
1031
|
+
* @param reader Reader or buffer to decode from
|
|
1032
|
+
* @param [length] Message length if known beforehand
|
|
1033
|
+
* @returns TemplateMatcher
|
|
1034
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1035
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1036
|
+
*/
|
|
1037
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.TemplateMatcher;
|
|
929
1038
|
|
|
930
|
-
/**
|
|
931
|
-
|
|
1039
|
+
/**
|
|
1040
|
+
* Decodes a TemplateMatcher message from the specified reader or buffer, length delimited.
|
|
1041
|
+
* @param reader Reader or buffer to decode from
|
|
1042
|
+
* @returns TemplateMatcher
|
|
1043
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1044
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1045
|
+
*/
|
|
1046
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.TemplateMatcher;
|
|
932
1047
|
|
|
933
1048
|
/**
|
|
934
|
-
*
|
|
1049
|
+
* Verifies a TemplateMatcher message.
|
|
1050
|
+
* @param message Plain object to verify
|
|
1051
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1052
|
+
*/
|
|
1053
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* Creates a TemplateMatcher message from a plain object. Also converts values to their respective internal types.
|
|
1057
|
+
* @param object Plain object
|
|
1058
|
+
* @returns TemplateMatcher
|
|
1059
|
+
*/
|
|
1060
|
+
public static fromObject(object: { [k: string]: any }): synapse.TemplateMatcher;
|
|
1061
|
+
|
|
1062
|
+
/**
|
|
1063
|
+
* Creates a plain object from a TemplateMatcher message. Also converts values to other types if specified.
|
|
1064
|
+
* @param message TemplateMatcher
|
|
1065
|
+
* @param [options] Conversion options
|
|
1066
|
+
* @returns Plain object
|
|
1067
|
+
*/
|
|
1068
|
+
public static toObject(message: synapse.TemplateMatcher, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* Converts this TemplateMatcher to JSON.
|
|
1072
|
+
* @returns JSON object
|
|
1073
|
+
*/
|
|
1074
|
+
public toJSON(): { [k: string]: any };
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* Gets the default type url for TemplateMatcher
|
|
1078
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1079
|
+
* @returns The default type url
|
|
1080
|
+
*/
|
|
1081
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
/** Properties of a Thresholder. */
|
|
1085
|
+
interface IThresholder {
|
|
1086
|
+
|
|
1087
|
+
/** Thresholder thresholdUV */
|
|
1088
|
+
thresholdUV?: (number|null);
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
/** Represents a Thresholder. */
|
|
1092
|
+
class Thresholder implements IThresholder {
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
* Constructs a new Thresholder.
|
|
935
1096
|
* @param [properties] Properties to set
|
|
936
|
-
* @returns SpikeDetectConfig instance
|
|
937
1097
|
*/
|
|
938
|
-
|
|
1098
|
+
constructor(properties?: synapse.IThresholder);
|
|
1099
|
+
|
|
1100
|
+
/** Thresholder thresholdUV. */
|
|
1101
|
+
public thresholdUV: number;
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* Creates a new Thresholder instance using the specified properties.
|
|
1105
|
+
* @param [properties] Properties to set
|
|
1106
|
+
* @returns Thresholder instance
|
|
1107
|
+
*/
|
|
1108
|
+
public static create(properties?: synapse.IThresholder): synapse.Thresholder;
|
|
939
1109
|
|
|
940
1110
|
/**
|
|
941
|
-
* Encodes the specified
|
|
942
|
-
* @param message
|
|
1111
|
+
* Encodes the specified Thresholder message. Does not implicitly {@link synapse.Thresholder.verify|verify} messages.
|
|
1112
|
+
* @param message Thresholder message or plain object to encode
|
|
943
1113
|
* @param [writer] Writer to encode to
|
|
944
1114
|
* @returns Writer
|
|
945
1115
|
*/
|
|
946
|
-
public static encode(message: synapse.
|
|
1116
|
+
public static encode(message: synapse.IThresholder, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
947
1117
|
|
|
948
1118
|
/**
|
|
949
|
-
* Encodes the specified
|
|
950
|
-
* @param message
|
|
1119
|
+
* Encodes the specified Thresholder message, length delimited. Does not implicitly {@link synapse.Thresholder.verify|verify} messages.
|
|
1120
|
+
* @param message Thresholder message or plain object to encode
|
|
951
1121
|
* @param [writer] Writer to encode to
|
|
952
1122
|
* @returns Writer
|
|
953
1123
|
*/
|
|
954
|
-
public static encodeDelimited(message: synapse.
|
|
1124
|
+
public static encodeDelimited(message: synapse.IThresholder, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
955
1125
|
|
|
956
1126
|
/**
|
|
957
|
-
* Decodes a
|
|
1127
|
+
* Decodes a Thresholder message from the specified reader or buffer.
|
|
958
1128
|
* @param reader Reader or buffer to decode from
|
|
959
1129
|
* @param [length] Message length if known beforehand
|
|
960
|
-
* @returns
|
|
1130
|
+
* @returns Thresholder
|
|
961
1131
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
962
1132
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
963
1133
|
*/
|
|
964
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.
|
|
1134
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.Thresholder;
|
|
965
1135
|
|
|
966
1136
|
/**
|
|
967
|
-
* Decodes a
|
|
1137
|
+
* Decodes a Thresholder message from the specified reader or buffer, length delimited.
|
|
968
1138
|
* @param reader Reader or buffer to decode from
|
|
969
|
-
* @returns
|
|
1139
|
+
* @returns Thresholder
|
|
970
1140
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
971
1141
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
972
1142
|
*/
|
|
973
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.
|
|
1143
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.Thresholder;
|
|
974
1144
|
|
|
975
1145
|
/**
|
|
976
|
-
* Verifies a
|
|
1146
|
+
* Verifies a Thresholder message.
|
|
977
1147
|
* @param message Plain object to verify
|
|
978
1148
|
* @returns `null` if valid, otherwise the reason why it is not
|
|
979
1149
|
*/
|
|
980
1150
|
public static verify(message: { [k: string]: any }): (string|null);
|
|
981
1151
|
|
|
982
1152
|
/**
|
|
983
|
-
* Creates a
|
|
1153
|
+
* Creates a Thresholder message from a plain object. Also converts values to their respective internal types.
|
|
984
1154
|
* @param object Plain object
|
|
985
|
-
* @returns
|
|
1155
|
+
* @returns Thresholder
|
|
986
1156
|
*/
|
|
987
|
-
public static fromObject(object: { [k: string]: any }): synapse.
|
|
1157
|
+
public static fromObject(object: { [k: string]: any }): synapse.Thresholder;
|
|
988
1158
|
|
|
989
1159
|
/**
|
|
990
|
-
* Creates a plain object from a
|
|
991
|
-
* @param message
|
|
1160
|
+
* Creates a plain object from a Thresholder message. Also converts values to other types if specified.
|
|
1161
|
+
* @param message Thresholder
|
|
992
1162
|
* @param [options] Conversion options
|
|
993
1163
|
* @returns Plain object
|
|
994
1164
|
*/
|
|
995
|
-
public static toObject(message: synapse.
|
|
1165
|
+
public static toObject(message: synapse.Thresholder, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
996
1166
|
|
|
997
1167
|
/**
|
|
998
|
-
* Converts this
|
|
1168
|
+
* Converts this Thresholder to JSON.
|
|
999
1169
|
* @returns JSON object
|
|
1000
1170
|
*/
|
|
1001
1171
|
public toJSON(): { [k: string]: any };
|
|
1002
1172
|
|
|
1003
1173
|
/**
|
|
1004
|
-
* Gets the default type url for
|
|
1174
|
+
* Gets the default type url for Thresholder
|
|
1005
1175
|
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1006
1176
|
* @returns The default type url
|
|
1007
1177
|
*/
|
|
1008
1178
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1009
1179
|
}
|
|
1010
1180
|
|
|
1011
|
-
|
|
1181
|
+
/** Properties of a SpikeDetectorConfig. */
|
|
1182
|
+
interface ISpikeDetectorConfig {
|
|
1012
1183
|
|
|
1013
|
-
/**
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1184
|
+
/** SpikeDetectorConfig thresholder */
|
|
1185
|
+
thresholder?: (synapse.IThresholder|null);
|
|
1186
|
+
|
|
1187
|
+
/** SpikeDetectorConfig templateMatcher */
|
|
1188
|
+
templateMatcher?: (synapse.ITemplateMatcher|null);
|
|
1189
|
+
|
|
1190
|
+
/** SpikeDetectorConfig samplesPerSpike */
|
|
1191
|
+
samplesPerSpike?: (number|null);
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
/** Represents a SpikeDetectorConfig. */
|
|
1195
|
+
class SpikeDetectorConfig implements ISpikeDetectorConfig {
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
* Constructs a new SpikeDetectorConfig.
|
|
1199
|
+
* @param [properties] Properties to set
|
|
1200
|
+
*/
|
|
1201
|
+
constructor(properties?: synapse.ISpikeDetectorConfig);
|
|
1202
|
+
|
|
1203
|
+
/** SpikeDetectorConfig thresholder. */
|
|
1204
|
+
public thresholder?: (synapse.IThresholder|null);
|
|
1205
|
+
|
|
1206
|
+
/** SpikeDetectorConfig templateMatcher. */
|
|
1207
|
+
public templateMatcher?: (synapse.ITemplateMatcher|null);
|
|
1208
|
+
|
|
1209
|
+
/** SpikeDetectorConfig samplesPerSpike. */
|
|
1210
|
+
public samplesPerSpike: number;
|
|
1211
|
+
|
|
1212
|
+
/** SpikeDetectorConfig config. */
|
|
1213
|
+
public config?: ("thresholder"|"templateMatcher");
|
|
1214
|
+
|
|
1215
|
+
/**
|
|
1216
|
+
* Creates a new SpikeDetectorConfig instance using the specified properties.
|
|
1217
|
+
* @param [properties] Properties to set
|
|
1218
|
+
* @returns SpikeDetectorConfig instance
|
|
1219
|
+
*/
|
|
1220
|
+
public static create(properties?: synapse.ISpikeDetectorConfig): synapse.SpikeDetectorConfig;
|
|
1221
|
+
|
|
1222
|
+
/**
|
|
1223
|
+
* Encodes the specified SpikeDetectorConfig message. Does not implicitly {@link synapse.SpikeDetectorConfig.verify|verify} messages.
|
|
1224
|
+
* @param message SpikeDetectorConfig message or plain object to encode
|
|
1225
|
+
* @param [writer] Writer to encode to
|
|
1226
|
+
* @returns Writer
|
|
1227
|
+
*/
|
|
1228
|
+
public static encode(message: synapse.ISpikeDetectorConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* Encodes the specified SpikeDetectorConfig message, length delimited. Does not implicitly {@link synapse.SpikeDetectorConfig.verify|verify} messages.
|
|
1232
|
+
* @param message SpikeDetectorConfig message or plain object to encode
|
|
1233
|
+
* @param [writer] Writer to encode to
|
|
1234
|
+
* @returns Writer
|
|
1235
|
+
*/
|
|
1236
|
+
public static encodeDelimited(message: synapse.ISpikeDetectorConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* Decodes a SpikeDetectorConfig message from the specified reader or buffer.
|
|
1240
|
+
* @param reader Reader or buffer to decode from
|
|
1241
|
+
* @param [length] Message length if known beforehand
|
|
1242
|
+
* @returns SpikeDetectorConfig
|
|
1243
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1244
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1245
|
+
*/
|
|
1246
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.SpikeDetectorConfig;
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* Decodes a SpikeDetectorConfig message from the specified reader or buffer, length delimited.
|
|
1250
|
+
* @param reader Reader or buffer to decode from
|
|
1251
|
+
* @returns SpikeDetectorConfig
|
|
1252
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1253
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1254
|
+
*/
|
|
1255
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.SpikeDetectorConfig;
|
|
1256
|
+
|
|
1257
|
+
/**
|
|
1258
|
+
* Verifies a SpikeDetectorConfig message.
|
|
1259
|
+
* @param message Plain object to verify
|
|
1260
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1261
|
+
*/
|
|
1262
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1263
|
+
|
|
1264
|
+
/**
|
|
1265
|
+
* Creates a SpikeDetectorConfig message from a plain object. Also converts values to their respective internal types.
|
|
1266
|
+
* @param object Plain object
|
|
1267
|
+
* @returns SpikeDetectorConfig
|
|
1268
|
+
*/
|
|
1269
|
+
public static fromObject(object: { [k: string]: any }): synapse.SpikeDetectorConfig;
|
|
1270
|
+
|
|
1271
|
+
/**
|
|
1272
|
+
* Creates a plain object from a SpikeDetectorConfig message. Also converts values to other types if specified.
|
|
1273
|
+
* @param message SpikeDetectorConfig
|
|
1274
|
+
* @param [options] Conversion options
|
|
1275
|
+
* @returns Plain object
|
|
1276
|
+
*/
|
|
1277
|
+
public static toObject(message: synapse.SpikeDetectorConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1278
|
+
|
|
1279
|
+
/**
|
|
1280
|
+
* Converts this SpikeDetectorConfig to JSON.
|
|
1281
|
+
* @returns JSON object
|
|
1282
|
+
*/
|
|
1283
|
+
public toJSON(): { [k: string]: any };
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* Gets the default type url for SpikeDetectorConfig
|
|
1287
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1288
|
+
* @returns The default type url
|
|
1289
|
+
*/
|
|
1290
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1019
1291
|
}
|
|
1020
1292
|
|
|
1021
1293
|
/** Properties of a StreamInConfig. */
|
|
@@ -1225,7 +1497,8 @@ export namespace synapse {
|
|
|
1225
1497
|
kBroadband = 2,
|
|
1226
1498
|
kSpiketrain = 3,
|
|
1227
1499
|
kTimestamps = 4,
|
|
1228
|
-
kImage = 5
|
|
1500
|
+
kImage = 5,
|
|
1501
|
+
kWaveforms = 6
|
|
1229
1502
|
}
|
|
1230
1503
|
|
|
1231
1504
|
/** Properties of a DiskWriterConfig. */
|
|
@@ -1325,17 +1598,123 @@ export namespace synapse {
|
|
|
1325
1598
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1326
1599
|
}
|
|
1327
1600
|
|
|
1601
|
+
/** Properties of a UDPUnicastConfig. */
|
|
1602
|
+
interface IUDPUnicastConfig {
|
|
1603
|
+
|
|
1604
|
+
/** UDPUnicastConfig destinationAddress */
|
|
1605
|
+
destinationAddress?: (string|null);
|
|
1606
|
+
|
|
1607
|
+
/** UDPUnicastConfig destinationPort */
|
|
1608
|
+
destinationPort?: (number|null);
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
/** UDPUnicastConfig defines the configuration parameters for UDP unicast transport. */
|
|
1612
|
+
class UDPUnicastConfig implements IUDPUnicastConfig {
|
|
1613
|
+
|
|
1614
|
+
/**
|
|
1615
|
+
* Constructs a new UDPUnicastConfig.
|
|
1616
|
+
* @param [properties] Properties to set
|
|
1617
|
+
*/
|
|
1618
|
+
constructor(properties?: synapse.IUDPUnicastConfig);
|
|
1619
|
+
|
|
1620
|
+
/** UDPUnicastConfig destinationAddress. */
|
|
1621
|
+
public destinationAddress: string;
|
|
1622
|
+
|
|
1623
|
+
/** UDPUnicastConfig destinationPort. */
|
|
1624
|
+
public destinationPort: number;
|
|
1625
|
+
|
|
1626
|
+
/**
|
|
1627
|
+
* Creates a new UDPUnicastConfig instance using the specified properties.
|
|
1628
|
+
* @param [properties] Properties to set
|
|
1629
|
+
* @returns UDPUnicastConfig instance
|
|
1630
|
+
*/
|
|
1631
|
+
public static create(properties?: synapse.IUDPUnicastConfig): synapse.UDPUnicastConfig;
|
|
1632
|
+
|
|
1633
|
+
/**
|
|
1634
|
+
* Encodes the specified UDPUnicastConfig message. Does not implicitly {@link synapse.UDPUnicastConfig.verify|verify} messages.
|
|
1635
|
+
* @param message UDPUnicastConfig message or plain object to encode
|
|
1636
|
+
* @param [writer] Writer to encode to
|
|
1637
|
+
* @returns Writer
|
|
1638
|
+
*/
|
|
1639
|
+
public static encode(message: synapse.IUDPUnicastConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1640
|
+
|
|
1641
|
+
/**
|
|
1642
|
+
* Encodes the specified UDPUnicastConfig message, length delimited. Does not implicitly {@link synapse.UDPUnicastConfig.verify|verify} messages.
|
|
1643
|
+
* @param message UDPUnicastConfig message or plain object to encode
|
|
1644
|
+
* @param [writer] Writer to encode to
|
|
1645
|
+
* @returns Writer
|
|
1646
|
+
*/
|
|
1647
|
+
public static encodeDelimited(message: synapse.IUDPUnicastConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1648
|
+
|
|
1649
|
+
/**
|
|
1650
|
+
* Decodes a UDPUnicastConfig message from the specified reader or buffer.
|
|
1651
|
+
* @param reader Reader or buffer to decode from
|
|
1652
|
+
* @param [length] Message length if known beforehand
|
|
1653
|
+
* @returns UDPUnicastConfig
|
|
1654
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1655
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1656
|
+
*/
|
|
1657
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.UDPUnicastConfig;
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Decodes a UDPUnicastConfig message from the specified reader or buffer, length delimited.
|
|
1661
|
+
* @param reader Reader or buffer to decode from
|
|
1662
|
+
* @returns UDPUnicastConfig
|
|
1663
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1664
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1665
|
+
*/
|
|
1666
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.UDPUnicastConfig;
|
|
1667
|
+
|
|
1668
|
+
/**
|
|
1669
|
+
* Verifies a UDPUnicastConfig message.
|
|
1670
|
+
* @param message Plain object to verify
|
|
1671
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1672
|
+
*/
|
|
1673
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1674
|
+
|
|
1675
|
+
/**
|
|
1676
|
+
* Creates a UDPUnicastConfig message from a plain object. Also converts values to their respective internal types.
|
|
1677
|
+
* @param object Plain object
|
|
1678
|
+
* @returns UDPUnicastConfig
|
|
1679
|
+
*/
|
|
1680
|
+
public static fromObject(object: { [k: string]: any }): synapse.UDPUnicastConfig;
|
|
1681
|
+
|
|
1682
|
+
/**
|
|
1683
|
+
* Creates a plain object from a UDPUnicastConfig message. Also converts values to other types if specified.
|
|
1684
|
+
* @param message UDPUnicastConfig
|
|
1685
|
+
* @param [options] Conversion options
|
|
1686
|
+
* @returns Plain object
|
|
1687
|
+
*/
|
|
1688
|
+
public static toObject(message: synapse.UDPUnicastConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1689
|
+
|
|
1690
|
+
/**
|
|
1691
|
+
* Converts this UDPUnicastConfig to JSON.
|
|
1692
|
+
* @returns JSON object
|
|
1693
|
+
*/
|
|
1694
|
+
public toJSON(): { [k: string]: any };
|
|
1695
|
+
|
|
1696
|
+
/**
|
|
1697
|
+
* Gets the default type url for UDPUnicastConfig
|
|
1698
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1699
|
+
* @returns The default type url
|
|
1700
|
+
*/
|
|
1701
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1328
1704
|
/** Properties of a StreamOutConfig. */
|
|
1329
1705
|
interface IStreamOutConfig {
|
|
1330
1706
|
|
|
1331
1707
|
/** StreamOutConfig label */
|
|
1332
1708
|
label?: (string|null);
|
|
1333
1709
|
|
|
1334
|
-
/** StreamOutConfig
|
|
1335
|
-
|
|
1710
|
+
/** StreamOutConfig udpUnicast */
|
|
1711
|
+
udpUnicast?: (synapse.IUDPUnicastConfig|null);
|
|
1336
1712
|
}
|
|
1337
1713
|
|
|
1338
|
-
/**
|
|
1714
|
+
/**
|
|
1715
|
+
* StreamOutConfig defines the configuration for an outbound data stream.
|
|
1716
|
+
* Clients can request to create a new outbound stream by providing a transport
|
|
1717
|
+
*/
|
|
1339
1718
|
class StreamOutConfig implements IStreamOutConfig {
|
|
1340
1719
|
|
|
1341
1720
|
/**
|
|
@@ -1347,8 +1726,11 @@ export namespace synapse {
|
|
|
1347
1726
|
/** StreamOutConfig label. */
|
|
1348
1727
|
public label: string;
|
|
1349
1728
|
|
|
1350
|
-
/** StreamOutConfig
|
|
1351
|
-
public
|
|
1729
|
+
/** StreamOutConfig udpUnicast. */
|
|
1730
|
+
public udpUnicast?: (synapse.IUDPUnicastConfig|null);
|
|
1731
|
+
|
|
1732
|
+
/** StreamOutConfig transport. */
|
|
1733
|
+
public transport?: "udpUnicast";
|
|
1352
1734
|
|
|
1353
1735
|
/**
|
|
1354
1736
|
* Creates a new StreamOutConfig instance using the specified properties.
|
|
@@ -1433,9 +1815,15 @@ export namespace synapse {
|
|
|
1433
1815
|
|
|
1434
1816
|
/** StreamOutStatus throughputMbps */
|
|
1435
1817
|
throughputMbps?: (number|null);
|
|
1818
|
+
|
|
1819
|
+
/** StreamOutStatus failedSendCount */
|
|
1820
|
+
failedSendCount?: (Long|null);
|
|
1436
1821
|
}
|
|
1437
1822
|
|
|
1438
|
-
/**
|
|
1823
|
+
/**
|
|
1824
|
+
* StreamOutStatus provides status information for an outbound stream.
|
|
1825
|
+
* It contains data about the instantaneous performance of the stream
|
|
1826
|
+
*/
|
|
1439
1827
|
class StreamOutStatus implements IStreamOutStatus {
|
|
1440
1828
|
|
|
1441
1829
|
/**
|
|
@@ -1447,6 +1835,9 @@ export namespace synapse {
|
|
|
1447
1835
|
/** StreamOutStatus throughputMbps. */
|
|
1448
1836
|
public throughputMbps: number;
|
|
1449
1837
|
|
|
1838
|
+
/** StreamOutStatus failedSendCount. */
|
|
1839
|
+
public failedSendCount: Long;
|
|
1840
|
+
|
|
1450
1841
|
/**
|
|
1451
1842
|
* Creates a new StreamOutStatus instance using the specified properties.
|
|
1452
1843
|
* @param [properties] Properties to set
|
|
@@ -2617,6 +3008,20 @@ export namespace synapse {
|
|
|
2617
3008
|
*/
|
|
2618
3009
|
public query(request: synapse.IQueryRequest): Promise<synapse.QueryResponse>;
|
|
2619
3010
|
|
|
3011
|
+
/**
|
|
3012
|
+
* Calls StreamQuery.
|
|
3013
|
+
* @param request StreamQueryRequest message or plain object
|
|
3014
|
+
* @param callback Node-style callback called with the error, if any, and StreamQueryResponse
|
|
3015
|
+
*/
|
|
3016
|
+
public streamQuery(request: synapse.IStreamQueryRequest, callback: synapse.SynapseDevice.StreamQueryCallback): void;
|
|
3017
|
+
|
|
3018
|
+
/**
|
|
3019
|
+
* Calls StreamQuery.
|
|
3020
|
+
* @param request StreamQueryRequest message or plain object
|
|
3021
|
+
* @returns Promise
|
|
3022
|
+
*/
|
|
3023
|
+
public streamQuery(request: synapse.IStreamQueryRequest): Promise<synapse.StreamQueryResponse>;
|
|
3024
|
+
|
|
2620
3025
|
/**
|
|
2621
3026
|
* Calls ListFiles.
|
|
2622
3027
|
* @param request Empty message or plain object
|
|
@@ -2739,6 +3144,13 @@ export namespace synapse {
|
|
|
2739
3144
|
*/
|
|
2740
3145
|
type QueryCallback = (error: (Error|null), response?: synapse.QueryResponse) => void;
|
|
2741
3146
|
|
|
3147
|
+
/**
|
|
3148
|
+
* Callback as used by {@link synapse.SynapseDevice#streamQuery}.
|
|
3149
|
+
* @param error Error, if any
|
|
3150
|
+
* @param [response] StreamQueryResponse
|
|
3151
|
+
*/
|
|
3152
|
+
type StreamQueryCallback = (error: (Error|null), response?: synapse.StreamQueryResponse) => void;
|
|
3153
|
+
|
|
2742
3154
|
/**
|
|
2743
3155
|
* Callback as used by {@link synapse.SynapseDevice#listFiles}.
|
|
2744
3156
|
* @param error Error, if any
|
|
@@ -2790,10 +3202,11 @@ export namespace synapse {
|
|
|
2790
3202
|
kBroadbandSource = 3,
|
|
2791
3203
|
kElectricalStimulation = 4,
|
|
2792
3204
|
kOpticalStimulation = 5,
|
|
2793
|
-
|
|
3205
|
+
kSpikeDetector = 6,
|
|
2794
3206
|
kSpikeSource = 7,
|
|
2795
3207
|
kSpectralFilter = 8,
|
|
2796
|
-
kDiskWriter = 9
|
|
3208
|
+
kDiskWriter = 9,
|
|
3209
|
+
kSpikeBinner = 10
|
|
2797
3210
|
}
|
|
2798
3211
|
|
|
2799
3212
|
/** Properties of a NodeConfig. */
|
|
@@ -2820,8 +3233,8 @@ export namespace synapse {
|
|
|
2820
3233
|
/** NodeConfig opticalStimulation */
|
|
2821
3234
|
opticalStimulation?: (synapse.IOpticalStimulationConfig|null);
|
|
2822
3235
|
|
|
2823
|
-
/** NodeConfig
|
|
2824
|
-
|
|
3236
|
+
/** NodeConfig spikeDetector */
|
|
3237
|
+
spikeDetector?: (synapse.ISpikeDetectorConfig|null);
|
|
2825
3238
|
|
|
2826
3239
|
/** NodeConfig spectralFilter */
|
|
2827
3240
|
spectralFilter?: (synapse.ISpectralFilterConfig|null);
|
|
@@ -2831,6 +3244,9 @@ export namespace synapse {
|
|
|
2831
3244
|
|
|
2832
3245
|
/** NodeConfig spikeSource */
|
|
2833
3246
|
spikeSource?: (synapse.ISpikeSourceConfig|null);
|
|
3247
|
+
|
|
3248
|
+
/** NodeConfig spikeBinner */
|
|
3249
|
+
spikeBinner?: (synapse.ISpikeBinnerConfig|null);
|
|
2834
3250
|
}
|
|
2835
3251
|
|
|
2836
3252
|
/** Represents a NodeConfig. */
|
|
@@ -2863,8 +3279,8 @@ export namespace synapse {
|
|
|
2863
3279
|
/** NodeConfig opticalStimulation. */
|
|
2864
3280
|
public opticalStimulation?: (synapse.IOpticalStimulationConfig|null);
|
|
2865
3281
|
|
|
2866
|
-
/** NodeConfig
|
|
2867
|
-
public
|
|
3282
|
+
/** NodeConfig spikeDetector. */
|
|
3283
|
+
public spikeDetector?: (synapse.ISpikeDetectorConfig|null);
|
|
2868
3284
|
|
|
2869
3285
|
/** NodeConfig spectralFilter. */
|
|
2870
3286
|
public spectralFilter?: (synapse.ISpectralFilterConfig|null);
|
|
@@ -2875,8 +3291,11 @@ export namespace synapse {
|
|
|
2875
3291
|
/** NodeConfig spikeSource. */
|
|
2876
3292
|
public spikeSource?: (synapse.ISpikeSourceConfig|null);
|
|
2877
3293
|
|
|
3294
|
+
/** NodeConfig spikeBinner. */
|
|
3295
|
+
public spikeBinner?: (synapse.ISpikeBinnerConfig|null);
|
|
3296
|
+
|
|
2878
3297
|
/** NodeConfig config. */
|
|
2879
|
-
public config?: ("streamOut"|"streamIn"|"broadbandSource"|"electricalStimulation"|"opticalStimulation"|"
|
|
3298
|
+
public config?: ("streamOut"|"streamIn"|"broadbandSource"|"electricalStimulation"|"opticalStimulation"|"spikeDetector"|"spectralFilter"|"diskWriter"|"spikeSource"|"spikeBinner");
|
|
2880
3299
|
|
|
2881
3300
|
/**
|
|
2882
3301
|
* Creates a new NodeConfig instance using the specified properties.
|
|
@@ -4166,6 +4585,103 @@ export namespace synapse {
|
|
|
4166
4585
|
}
|
|
4167
4586
|
}
|
|
4168
4587
|
|
|
4588
|
+
/** Properties of a StreamQueryRequest. */
|
|
4589
|
+
interface IStreamQueryRequest {
|
|
4590
|
+
|
|
4591
|
+
/** StreamQueryRequest request */
|
|
4592
|
+
request?: (synapse.IQueryRequest|null);
|
|
4593
|
+
}
|
|
4594
|
+
|
|
4595
|
+
/** Represents a StreamQueryRequest. */
|
|
4596
|
+
class StreamQueryRequest implements IStreamQueryRequest {
|
|
4597
|
+
|
|
4598
|
+
/**
|
|
4599
|
+
* Constructs a new StreamQueryRequest.
|
|
4600
|
+
* @param [properties] Properties to set
|
|
4601
|
+
*/
|
|
4602
|
+
constructor(properties?: synapse.IStreamQueryRequest);
|
|
4603
|
+
|
|
4604
|
+
/** StreamQueryRequest request. */
|
|
4605
|
+
public request?: (synapse.IQueryRequest|null);
|
|
4606
|
+
|
|
4607
|
+
/**
|
|
4608
|
+
* Creates a new StreamQueryRequest instance using the specified properties.
|
|
4609
|
+
* @param [properties] Properties to set
|
|
4610
|
+
* @returns StreamQueryRequest instance
|
|
4611
|
+
*/
|
|
4612
|
+
public static create(properties?: synapse.IStreamQueryRequest): synapse.StreamQueryRequest;
|
|
4613
|
+
|
|
4614
|
+
/**
|
|
4615
|
+
* Encodes the specified StreamQueryRequest message. Does not implicitly {@link synapse.StreamQueryRequest.verify|verify} messages.
|
|
4616
|
+
* @param message StreamQueryRequest message or plain object to encode
|
|
4617
|
+
* @param [writer] Writer to encode to
|
|
4618
|
+
* @returns Writer
|
|
4619
|
+
*/
|
|
4620
|
+
public static encode(message: synapse.IStreamQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4621
|
+
|
|
4622
|
+
/**
|
|
4623
|
+
* Encodes the specified StreamQueryRequest message, length delimited. Does not implicitly {@link synapse.StreamQueryRequest.verify|verify} messages.
|
|
4624
|
+
* @param message StreamQueryRequest message or plain object to encode
|
|
4625
|
+
* @param [writer] Writer to encode to
|
|
4626
|
+
* @returns Writer
|
|
4627
|
+
*/
|
|
4628
|
+
public static encodeDelimited(message: synapse.IStreamQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4629
|
+
|
|
4630
|
+
/**
|
|
4631
|
+
* Decodes a StreamQueryRequest message from the specified reader or buffer.
|
|
4632
|
+
* @param reader Reader or buffer to decode from
|
|
4633
|
+
* @param [length] Message length if known beforehand
|
|
4634
|
+
* @returns StreamQueryRequest
|
|
4635
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4636
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4637
|
+
*/
|
|
4638
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.StreamQueryRequest;
|
|
4639
|
+
|
|
4640
|
+
/**
|
|
4641
|
+
* Decodes a StreamQueryRequest message from the specified reader or buffer, length delimited.
|
|
4642
|
+
* @param reader Reader or buffer to decode from
|
|
4643
|
+
* @returns StreamQueryRequest
|
|
4644
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4645
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4646
|
+
*/
|
|
4647
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.StreamQueryRequest;
|
|
4648
|
+
|
|
4649
|
+
/**
|
|
4650
|
+
* Verifies a StreamQueryRequest message.
|
|
4651
|
+
* @param message Plain object to verify
|
|
4652
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
4653
|
+
*/
|
|
4654
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
4655
|
+
|
|
4656
|
+
/**
|
|
4657
|
+
* Creates a StreamQueryRequest message from a plain object. Also converts values to their respective internal types.
|
|
4658
|
+
* @param object Plain object
|
|
4659
|
+
* @returns StreamQueryRequest
|
|
4660
|
+
*/
|
|
4661
|
+
public static fromObject(object: { [k: string]: any }): synapse.StreamQueryRequest;
|
|
4662
|
+
|
|
4663
|
+
/**
|
|
4664
|
+
* Creates a plain object from a StreamQueryRequest message. Also converts values to other types if specified.
|
|
4665
|
+
* @param message StreamQueryRequest
|
|
4666
|
+
* @param [options] Conversion options
|
|
4667
|
+
* @returns Plain object
|
|
4668
|
+
*/
|
|
4669
|
+
public static toObject(message: synapse.StreamQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
4670
|
+
|
|
4671
|
+
/**
|
|
4672
|
+
* Converts this StreamQueryRequest to JSON.
|
|
4673
|
+
* @returns JSON object
|
|
4674
|
+
*/
|
|
4675
|
+
public toJSON(): { [k: string]: any };
|
|
4676
|
+
|
|
4677
|
+
/**
|
|
4678
|
+
* Gets the default type url for StreamQueryRequest
|
|
4679
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
4680
|
+
* @returns The default type url
|
|
4681
|
+
*/
|
|
4682
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
4683
|
+
}
|
|
4684
|
+
|
|
4169
4685
|
/** Properties of a QueryResponse. */
|
|
4170
4686
|
interface IQueryResponse {
|
|
4171
4687
|
|
|
@@ -4284,6 +4800,130 @@ export namespace synapse {
|
|
|
4284
4800
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
4285
4801
|
}
|
|
4286
4802
|
|
|
4803
|
+
/** Properties of a StreamQueryResponse. */
|
|
4804
|
+
interface IStreamQueryResponse {
|
|
4805
|
+
|
|
4806
|
+
/** StreamQueryResponse code */
|
|
4807
|
+
code?: (synapse.StatusCode|null);
|
|
4808
|
+
|
|
4809
|
+
/** StreamQueryResponse message */
|
|
4810
|
+
message?: (string|null);
|
|
4811
|
+
|
|
4812
|
+
/** StreamQueryResponse timestampNs */
|
|
4813
|
+
timestampNs?: (Long|null);
|
|
4814
|
+
|
|
4815
|
+
/** StreamQueryResponse impedance */
|
|
4816
|
+
impedance?: (synapse.IImpedanceResponse|null);
|
|
4817
|
+
|
|
4818
|
+
/** StreamQueryResponse selfTest */
|
|
4819
|
+
selfTest?: (synapse.ISelfTestResponse|null);
|
|
4820
|
+
}
|
|
4821
|
+
|
|
4822
|
+
/** Represents a StreamQueryResponse. */
|
|
4823
|
+
class StreamQueryResponse implements IStreamQueryResponse {
|
|
4824
|
+
|
|
4825
|
+
/**
|
|
4826
|
+
* Constructs a new StreamQueryResponse.
|
|
4827
|
+
* @param [properties] Properties to set
|
|
4828
|
+
*/
|
|
4829
|
+
constructor(properties?: synapse.IStreamQueryResponse);
|
|
4830
|
+
|
|
4831
|
+
/** StreamQueryResponse code. */
|
|
4832
|
+
public code: synapse.StatusCode;
|
|
4833
|
+
|
|
4834
|
+
/** StreamQueryResponse message. */
|
|
4835
|
+
public message: string;
|
|
4836
|
+
|
|
4837
|
+
/** StreamQueryResponse timestampNs. */
|
|
4838
|
+
public timestampNs: Long;
|
|
4839
|
+
|
|
4840
|
+
/** StreamQueryResponse impedance. */
|
|
4841
|
+
public impedance?: (synapse.IImpedanceResponse|null);
|
|
4842
|
+
|
|
4843
|
+
/** StreamQueryResponse selfTest. */
|
|
4844
|
+
public selfTest?: (synapse.ISelfTestResponse|null);
|
|
4845
|
+
|
|
4846
|
+
/** StreamQueryResponse response. */
|
|
4847
|
+
public response?: ("impedance"|"selfTest");
|
|
4848
|
+
|
|
4849
|
+
/**
|
|
4850
|
+
* Creates a new StreamQueryResponse instance using the specified properties.
|
|
4851
|
+
* @param [properties] Properties to set
|
|
4852
|
+
* @returns StreamQueryResponse instance
|
|
4853
|
+
*/
|
|
4854
|
+
public static create(properties?: synapse.IStreamQueryResponse): synapse.StreamQueryResponse;
|
|
4855
|
+
|
|
4856
|
+
/**
|
|
4857
|
+
* Encodes the specified StreamQueryResponse message. Does not implicitly {@link synapse.StreamQueryResponse.verify|verify} messages.
|
|
4858
|
+
* @param message StreamQueryResponse message or plain object to encode
|
|
4859
|
+
* @param [writer] Writer to encode to
|
|
4860
|
+
* @returns Writer
|
|
4861
|
+
*/
|
|
4862
|
+
public static encode(message: synapse.IStreamQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4863
|
+
|
|
4864
|
+
/**
|
|
4865
|
+
* Encodes the specified StreamQueryResponse message, length delimited. Does not implicitly {@link synapse.StreamQueryResponse.verify|verify} messages.
|
|
4866
|
+
* @param message StreamQueryResponse message or plain object to encode
|
|
4867
|
+
* @param [writer] Writer to encode to
|
|
4868
|
+
* @returns Writer
|
|
4869
|
+
*/
|
|
4870
|
+
public static encodeDelimited(message: synapse.IStreamQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4871
|
+
|
|
4872
|
+
/**
|
|
4873
|
+
* Decodes a StreamQueryResponse message from the specified reader or buffer.
|
|
4874
|
+
* @param reader Reader or buffer to decode from
|
|
4875
|
+
* @param [length] Message length if known beforehand
|
|
4876
|
+
* @returns StreamQueryResponse
|
|
4877
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4878
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4879
|
+
*/
|
|
4880
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.StreamQueryResponse;
|
|
4881
|
+
|
|
4882
|
+
/**
|
|
4883
|
+
* Decodes a StreamQueryResponse message from the specified reader or buffer, length delimited.
|
|
4884
|
+
* @param reader Reader or buffer to decode from
|
|
4885
|
+
* @returns StreamQueryResponse
|
|
4886
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4887
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4888
|
+
*/
|
|
4889
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.StreamQueryResponse;
|
|
4890
|
+
|
|
4891
|
+
/**
|
|
4892
|
+
* Verifies a StreamQueryResponse message.
|
|
4893
|
+
* @param message Plain object to verify
|
|
4894
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
4895
|
+
*/
|
|
4896
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
4897
|
+
|
|
4898
|
+
/**
|
|
4899
|
+
* Creates a StreamQueryResponse message from a plain object. Also converts values to their respective internal types.
|
|
4900
|
+
* @param object Plain object
|
|
4901
|
+
* @returns StreamQueryResponse
|
|
4902
|
+
*/
|
|
4903
|
+
public static fromObject(object: { [k: string]: any }): synapse.StreamQueryResponse;
|
|
4904
|
+
|
|
4905
|
+
/**
|
|
4906
|
+
* Creates a plain object from a StreamQueryResponse message. Also converts values to other types if specified.
|
|
4907
|
+
* @param message StreamQueryResponse
|
|
4908
|
+
* @param [options] Conversion options
|
|
4909
|
+
* @returns Plain object
|
|
4910
|
+
*/
|
|
4911
|
+
public static toObject(message: synapse.StreamQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
4912
|
+
|
|
4913
|
+
/**
|
|
4914
|
+
* Converts this StreamQueryResponse to JSON.
|
|
4915
|
+
* @returns JSON object
|
|
4916
|
+
*/
|
|
4917
|
+
public toJSON(): { [k: string]: any };
|
|
4918
|
+
|
|
4919
|
+
/**
|
|
4920
|
+
* Gets the default type url for StreamQueryResponse
|
|
4921
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
4922
|
+
* @returns The default type url
|
|
4923
|
+
*/
|
|
4924
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
4925
|
+
}
|
|
4926
|
+
|
|
4287
4927
|
/** StatusCode enum. */
|
|
4288
4928
|
enum StatusCode {
|
|
4289
4929
|
kOk = 0,
|