@aceplus/smartace-api 3.4.0-alpha.1 → 3.4.0-alpha.11

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.
@@ -1,121 +0,0 @@
1
- // package: Meta
2
- // file: meta.spic_alert.proto
3
-
4
- import * as meta_spic_alert_pb from "./meta.spic_alert_pb";
5
- import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
6
- import {grpc} from "@improbable-eng/grpc-web";
7
-
8
- type MetaSpicAlertGRPCRetrieveAlerts = {
9
- readonly methodName: string;
10
- readonly service: typeof MetaSpicAlertGRPC;
11
- readonly requestStream: false;
12
- readonly responseStream: false;
13
- readonly requestType: typeof meta_spic_alert_pb.SpicAlertsProto.RetrieveAlertsRequest;
14
- readonly responseType: typeof meta_spic_alert_pb.SpicAlertsProto;
15
- };
16
-
17
- type MetaSpicAlertGRPCAddAlert = {
18
- readonly methodName: string;
19
- readonly service: typeof MetaSpicAlertGRPC;
20
- readonly requestStream: false;
21
- readonly responseStream: false;
22
- readonly requestType: typeof meta_spic_alert_pb.SpicAlertsProto.AddAlertRequest;
23
- readonly responseType: typeof google_protobuf_empty_pb.Empty;
24
- };
25
-
26
- type MetaSpicAlertGRPCUpdateAlert = {
27
- readonly methodName: string;
28
- readonly service: typeof MetaSpicAlertGRPC;
29
- readonly requestStream: false;
30
- readonly responseStream: false;
31
- readonly requestType: typeof meta_spic_alert_pb.SpicAlertsProto.UpdateAlertRequest;
32
- readonly responseType: typeof google_protobuf_empty_pb.Empty;
33
- };
34
-
35
- type MetaSpicAlertGRPCRemoveAlert = {
36
- readonly methodName: string;
37
- readonly service: typeof MetaSpicAlertGRPC;
38
- readonly requestStream: false;
39
- readonly responseStream: false;
40
- readonly requestType: typeof meta_spic_alert_pb.SpicAlertsProto.RemoveAlertRequest;
41
- readonly responseType: typeof google_protobuf_empty_pb.Empty;
42
- };
43
-
44
- export class MetaSpicAlertGRPC {
45
- static readonly serviceName: string;
46
- static readonly RetrieveAlerts: MetaSpicAlertGRPCRetrieveAlerts;
47
- static readonly AddAlert: MetaSpicAlertGRPCAddAlert;
48
- static readonly UpdateAlert: MetaSpicAlertGRPCUpdateAlert;
49
- static readonly RemoveAlert: MetaSpicAlertGRPCRemoveAlert;
50
- }
51
-
52
- export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
53
- export type Status = { details: string, code: number; metadata: grpc.Metadata }
54
-
55
- interface UnaryResponse {
56
- cancel(): void;
57
- }
58
- interface ResponseStream<T> {
59
- cancel(): void;
60
- on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
61
- on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
62
- on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
63
- }
64
- interface RequestStream<T> {
65
- write(message: T): RequestStream<T>;
66
- end(): void;
67
- cancel(): void;
68
- on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
69
- on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
70
- }
71
- interface BidirectionalStream<ReqT, ResT> {
72
- write(message: ReqT): BidirectionalStream<ReqT, ResT>;
73
- end(): void;
74
- cancel(): void;
75
- on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
76
- on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
77
- on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
78
- }
79
-
80
- export class MetaSpicAlertGRPCClient {
81
- readonly serviceHost: string;
82
-
83
- constructor(serviceHost: string, options?: grpc.RpcOptions);
84
- retrieveAlerts(
85
- requestMessage: meta_spic_alert_pb.SpicAlertsProto.RetrieveAlertsRequest,
86
- metadata: grpc.Metadata,
87
- callback: (error: ServiceError|null, responseMessage: meta_spic_alert_pb.SpicAlertsProto|null) => void
88
- ): UnaryResponse;
89
- retrieveAlerts(
90
- requestMessage: meta_spic_alert_pb.SpicAlertsProto.RetrieveAlertsRequest,
91
- callback: (error: ServiceError|null, responseMessage: meta_spic_alert_pb.SpicAlertsProto|null) => void
92
- ): UnaryResponse;
93
- addAlert(
94
- requestMessage: meta_spic_alert_pb.SpicAlertsProto.AddAlertRequest,
95
- metadata: grpc.Metadata,
96
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
97
- ): UnaryResponse;
98
- addAlert(
99
- requestMessage: meta_spic_alert_pb.SpicAlertsProto.AddAlertRequest,
100
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
101
- ): UnaryResponse;
102
- updateAlert(
103
- requestMessage: meta_spic_alert_pb.SpicAlertsProto.UpdateAlertRequest,
104
- metadata: grpc.Metadata,
105
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
106
- ): UnaryResponse;
107
- updateAlert(
108
- requestMessage: meta_spic_alert_pb.SpicAlertsProto.UpdateAlertRequest,
109
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
110
- ): UnaryResponse;
111
- removeAlert(
112
- requestMessage: meta_spic_alert_pb.SpicAlertsProto.RemoveAlertRequest,
113
- metadata: grpc.Metadata,
114
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
115
- ): UnaryResponse;
116
- removeAlert(
117
- requestMessage: meta_spic_alert_pb.SpicAlertsProto.RemoveAlertRequest,
118
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
119
- ): UnaryResponse;
120
- }
121
-
@@ -1,182 +0,0 @@
1
- // package: Meta
2
- // file: meta.spic_alert.proto
3
-
4
- var meta_spic_alert_pb = require("./meta.spic_alert_pb");
5
- var google_protobuf_empty_pb = require("google-protobuf/google/protobuf/empty_pb");
6
- var grpc = require("@improbable-eng/grpc-web").grpc;
7
-
8
- var MetaSpicAlertGRPC = (function () {
9
- function MetaSpicAlertGRPC() {}
10
- MetaSpicAlertGRPC.serviceName = "Meta.MetaSpicAlertGRPC";
11
- return MetaSpicAlertGRPC;
12
- }());
13
-
14
- MetaSpicAlertGRPC.RetrieveAlerts = {
15
- methodName: "RetrieveAlerts",
16
- service: MetaSpicAlertGRPC,
17
- requestStream: false,
18
- responseStream: false,
19
- requestType: meta_spic_alert_pb.SpicAlertsProto.RetrieveAlertsRequest,
20
- responseType: meta_spic_alert_pb.SpicAlertsProto
21
- };
22
-
23
- MetaSpicAlertGRPC.AddAlert = {
24
- methodName: "AddAlert",
25
- service: MetaSpicAlertGRPC,
26
- requestStream: false,
27
- responseStream: false,
28
- requestType: meta_spic_alert_pb.SpicAlertsProto.AddAlertRequest,
29
- responseType: google_protobuf_empty_pb.Empty
30
- };
31
-
32
- MetaSpicAlertGRPC.UpdateAlert = {
33
- methodName: "UpdateAlert",
34
- service: MetaSpicAlertGRPC,
35
- requestStream: false,
36
- responseStream: false,
37
- requestType: meta_spic_alert_pb.SpicAlertsProto.UpdateAlertRequest,
38
- responseType: google_protobuf_empty_pb.Empty
39
- };
40
-
41
- MetaSpicAlertGRPC.RemoveAlert = {
42
- methodName: "RemoveAlert",
43
- service: MetaSpicAlertGRPC,
44
- requestStream: false,
45
- responseStream: false,
46
- requestType: meta_spic_alert_pb.SpicAlertsProto.RemoveAlertRequest,
47
- responseType: google_protobuf_empty_pb.Empty
48
- };
49
-
50
- exports.MetaSpicAlertGRPC = MetaSpicAlertGRPC;
51
-
52
- function MetaSpicAlertGRPCClient(serviceHost, options) {
53
- this.serviceHost = serviceHost;
54
- this.options = options || {};
55
- }
56
-
57
- MetaSpicAlertGRPCClient.prototype.retrieveAlerts = function retrieveAlerts(requestMessage, metadata, callback) {
58
- if (arguments.length === 2) {
59
- callback = arguments[1];
60
- }
61
- var client = grpc.unary(MetaSpicAlertGRPC.RetrieveAlerts, {
62
- request: requestMessage,
63
- host: this.serviceHost,
64
- metadata: metadata,
65
- transport: this.options.transport,
66
- debug: this.options.debug,
67
- onEnd: function (response) {
68
- if (callback) {
69
- if (response.status !== grpc.Code.OK) {
70
- var err = new Error(response.statusMessage);
71
- err.code = response.status;
72
- err.metadata = response.trailers;
73
- callback(err, null);
74
- } else {
75
- callback(null, response.message);
76
- }
77
- }
78
- }
79
- });
80
- return {
81
- cancel: function () {
82
- callback = null;
83
- client.close();
84
- }
85
- };
86
- };
87
-
88
- MetaSpicAlertGRPCClient.prototype.addAlert = function addAlert(requestMessage, metadata, callback) {
89
- if (arguments.length === 2) {
90
- callback = arguments[1];
91
- }
92
- var client = grpc.unary(MetaSpicAlertGRPC.AddAlert, {
93
- request: requestMessage,
94
- host: this.serviceHost,
95
- metadata: metadata,
96
- transport: this.options.transport,
97
- debug: this.options.debug,
98
- onEnd: function (response) {
99
- if (callback) {
100
- if (response.status !== grpc.Code.OK) {
101
- var err = new Error(response.statusMessage);
102
- err.code = response.status;
103
- err.metadata = response.trailers;
104
- callback(err, null);
105
- } else {
106
- callback(null, response.message);
107
- }
108
- }
109
- }
110
- });
111
- return {
112
- cancel: function () {
113
- callback = null;
114
- client.close();
115
- }
116
- };
117
- };
118
-
119
- MetaSpicAlertGRPCClient.prototype.updateAlert = function updateAlert(requestMessage, metadata, callback) {
120
- if (arguments.length === 2) {
121
- callback = arguments[1];
122
- }
123
- var client = grpc.unary(MetaSpicAlertGRPC.UpdateAlert, {
124
- request: requestMessage,
125
- host: this.serviceHost,
126
- metadata: metadata,
127
- transport: this.options.transport,
128
- debug: this.options.debug,
129
- onEnd: function (response) {
130
- if (callback) {
131
- if (response.status !== grpc.Code.OK) {
132
- var err = new Error(response.statusMessage);
133
- err.code = response.status;
134
- err.metadata = response.trailers;
135
- callback(err, null);
136
- } else {
137
- callback(null, response.message);
138
- }
139
- }
140
- }
141
- });
142
- return {
143
- cancel: function () {
144
- callback = null;
145
- client.close();
146
- }
147
- };
148
- };
149
-
150
- MetaSpicAlertGRPCClient.prototype.removeAlert = function removeAlert(requestMessage, metadata, callback) {
151
- if (arguments.length === 2) {
152
- callback = arguments[1];
153
- }
154
- var client = grpc.unary(MetaSpicAlertGRPC.RemoveAlert, {
155
- request: requestMessage,
156
- host: this.serviceHost,
157
- metadata: metadata,
158
- transport: this.options.transport,
159
- debug: this.options.debug,
160
- onEnd: function (response) {
161
- if (callback) {
162
- if (response.status !== grpc.Code.OK) {
163
- var err = new Error(response.statusMessage);
164
- err.code = response.status;
165
- err.metadata = response.trailers;
166
- callback(err, null);
167
- } else {
168
- callback(null, response.message);
169
- }
170
- }
171
- }
172
- });
173
- return {
174
- cancel: function () {
175
- callback = null;
176
- client.close();
177
- }
178
- };
179
- };
180
-
181
- exports.MetaSpicAlertGRPCClient = MetaSpicAlertGRPCClient;
182
-
package/meta.spic_pb.d.ts DELETED
@@ -1,36 +0,0 @@
1
- // package: Meta
2
- // file: meta.spic.proto
3
-
4
- import * as jspb from "google-protobuf";
5
- import * as spic_cabinet_pb from "./spic.cabinet_pb";
6
- import * as google_api_annotations_pb from "./google/api/annotations_pb";
7
- import * as meta_spic_config_pb from "./meta.spic_config_pb";
8
-
9
- export class CabinetLocationMeta extends jspb.Message {
10
- hasCabinetLocation(): boolean;
11
- clearCabinetLocation(): void;
12
- getCabinetLocation(): spic_cabinet_pb.CabinetWithLocation | undefined;
13
- setCabinetLocation(value?: spic_cabinet_pb.CabinetWithLocation): void;
14
-
15
- hasTemperatureConfiguration(): boolean;
16
- clearTemperatureConfiguration(): void;
17
- getTemperatureConfiguration(): meta_spic_config_pb.TemperatureConfigurationProto | undefined;
18
- setTemperatureConfiguration(value?: meta_spic_config_pb.TemperatureConfigurationProto): void;
19
-
20
- serializeBinary(): Uint8Array;
21
- toObject(includeInstance?: boolean): CabinetLocationMeta.AsObject;
22
- static toObject(includeInstance: boolean, msg: CabinetLocationMeta): CabinetLocationMeta.AsObject;
23
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
24
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
25
- static serializeBinaryToWriter(message: CabinetLocationMeta, writer: jspb.BinaryWriter): void;
26
- static deserializeBinary(bytes: Uint8Array): CabinetLocationMeta;
27
- static deserializeBinaryFromReader(message: CabinetLocationMeta, reader: jspb.BinaryReader): CabinetLocationMeta;
28
- }
29
-
30
- export namespace CabinetLocationMeta {
31
- export type AsObject = {
32
- cabinetLocation?: spic_cabinet_pb.CabinetWithLocation.AsObject,
33
- temperatureConfiguration?: meta_spic_config_pb.TemperatureConfigurationProto.AsObject,
34
- }
35
- }
36
-
package/meta.spic_pb.js DELETED
@@ -1,254 +0,0 @@
1
- // source: meta.spic.proto
2
- /**
3
- * @fileoverview
4
- * @enhanceable
5
- * @suppress {missingRequire} reports error on implicit type usages.
6
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
- * field starts with 'MSG_' and isn't a translatable message.
8
- * @public
9
- */
10
- // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
- // @ts-nocheck
13
-
14
- var jspb = require('google-protobuf');
15
- var goog = jspb;
16
- var global =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
23
-
24
- var spic_cabinet_pb = require('./spic.cabinet_pb.js');
25
- goog.object.extend(proto, spic_cabinet_pb);
26
- var google_api_annotations_pb = require('./google/api/annotations_pb.js');
27
- goog.object.extend(proto, google_api_annotations_pb);
28
- var meta_spic_config_pb = require('./meta.spic_config_pb.js');
29
- goog.object.extend(proto, meta_spic_config_pb);
30
- goog.exportSymbol('proto.Meta.CabinetLocationMeta', null, global);
31
- /**
32
- * Generated by JsPbCodeGenerator.
33
- * @param {Array=} opt_data Optional initial data array, typically from a
34
- * server response, or constructed directly in Javascript. The array is used
35
- * in place and becomes part of the constructed object. It is not cloned.
36
- * If no data is provided, the constructed object will be empty, but still
37
- * valid.
38
- * @extends {jspb.Message}
39
- * @constructor
40
- */
41
- proto.Meta.CabinetLocationMeta = function(opt_data) {
42
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
43
- };
44
- goog.inherits(proto.Meta.CabinetLocationMeta, jspb.Message);
45
- if (goog.DEBUG && !COMPILED) {
46
- /**
47
- * @public
48
- * @override
49
- */
50
- proto.Meta.CabinetLocationMeta.displayName = 'proto.Meta.CabinetLocationMeta';
51
- }
52
-
53
-
54
-
55
- if (jspb.Message.GENERATE_TO_OBJECT) {
56
- /**
57
- * Creates an object representation of this proto.
58
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
59
- * Optional fields that are not set will be set to undefined.
60
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
61
- * For the list of reserved names please see:
62
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
63
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
64
- * JSPB instance for transitional soy proto support:
65
- * http://goto/soy-param-migration
66
- * @return {!Object}
67
- */
68
- proto.Meta.CabinetLocationMeta.prototype.toObject = function(opt_includeInstance) {
69
- return proto.Meta.CabinetLocationMeta.toObject(opt_includeInstance, this);
70
- };
71
-
72
-
73
- /**
74
- * Static version of the {@see toObject} method.
75
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
76
- * the JSPB instance for transitional soy proto support:
77
- * http://goto/soy-param-migration
78
- * @param {!proto.Meta.CabinetLocationMeta} msg The msg instance to transform.
79
- * @return {!Object}
80
- * @suppress {unusedLocalVariables} f is only used for nested messages
81
- */
82
- proto.Meta.CabinetLocationMeta.toObject = function(includeInstance, msg) {
83
- var f, obj = {
84
- cabinetLocation: (f = msg.getCabinetLocation()) && spic_cabinet_pb.CabinetWithLocation.toObject(includeInstance, f),
85
- temperatureConfiguration: (f = msg.getTemperatureConfiguration()) && meta_spic_config_pb.TemperatureConfigurationProto.toObject(includeInstance, f)
86
- };
87
-
88
- if (includeInstance) {
89
- obj.$jspbMessageInstance = msg;
90
- }
91
- return obj;
92
- };
93
- }
94
-
95
-
96
- /**
97
- * Deserializes binary data (in protobuf wire format).
98
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
99
- * @return {!proto.Meta.CabinetLocationMeta}
100
- */
101
- proto.Meta.CabinetLocationMeta.deserializeBinary = function(bytes) {
102
- var reader = new jspb.BinaryReader(bytes);
103
- var msg = new proto.Meta.CabinetLocationMeta;
104
- return proto.Meta.CabinetLocationMeta.deserializeBinaryFromReader(msg, reader);
105
- };
106
-
107
-
108
- /**
109
- * Deserializes binary data (in protobuf wire format) from the
110
- * given reader into the given message object.
111
- * @param {!proto.Meta.CabinetLocationMeta} msg The message object to deserialize into.
112
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
113
- * @return {!proto.Meta.CabinetLocationMeta}
114
- */
115
- proto.Meta.CabinetLocationMeta.deserializeBinaryFromReader = function(msg, reader) {
116
- while (reader.nextField()) {
117
- if (reader.isEndGroup()) {
118
- break;
119
- }
120
- var field = reader.getFieldNumber();
121
- switch (field) {
122
- case 1:
123
- var value = new spic_cabinet_pb.CabinetWithLocation;
124
- reader.readMessage(value,spic_cabinet_pb.CabinetWithLocation.deserializeBinaryFromReader);
125
- msg.setCabinetLocation(value);
126
- break;
127
- case 2:
128
- var value = new meta_spic_config_pb.TemperatureConfigurationProto;
129
- reader.readMessage(value,meta_spic_config_pb.TemperatureConfigurationProto.deserializeBinaryFromReader);
130
- msg.setTemperatureConfiguration(value);
131
- break;
132
- default:
133
- reader.skipField();
134
- break;
135
- }
136
- }
137
- return msg;
138
- };
139
-
140
-
141
- /**
142
- * Serializes the message to binary data (in protobuf wire format).
143
- * @return {!Uint8Array}
144
- */
145
- proto.Meta.CabinetLocationMeta.prototype.serializeBinary = function() {
146
- var writer = new jspb.BinaryWriter();
147
- proto.Meta.CabinetLocationMeta.serializeBinaryToWriter(this, writer);
148
- return writer.getResultBuffer();
149
- };
150
-
151
-
152
- /**
153
- * Serializes the given message to binary data (in protobuf wire
154
- * format), writing to the given BinaryWriter.
155
- * @param {!proto.Meta.CabinetLocationMeta} message
156
- * @param {!jspb.BinaryWriter} writer
157
- * @suppress {unusedLocalVariables} f is only used for nested messages
158
- */
159
- proto.Meta.CabinetLocationMeta.serializeBinaryToWriter = function(message, writer) {
160
- var f = undefined;
161
- f = message.getCabinetLocation();
162
- if (f != null) {
163
- writer.writeMessage(
164
- 1,
165
- f,
166
- spic_cabinet_pb.CabinetWithLocation.serializeBinaryToWriter
167
- );
168
- }
169
- f = message.getTemperatureConfiguration();
170
- if (f != null) {
171
- writer.writeMessage(
172
- 2,
173
- f,
174
- meta_spic_config_pb.TemperatureConfigurationProto.serializeBinaryToWriter
175
- );
176
- }
177
- };
178
-
179
-
180
- /**
181
- * optional Spic.CabinetWithLocation cabinet_location = 1;
182
- * @return {?proto.Spic.CabinetWithLocation}
183
- */
184
- proto.Meta.CabinetLocationMeta.prototype.getCabinetLocation = function() {
185
- return /** @type{?proto.Spic.CabinetWithLocation} */ (
186
- jspb.Message.getWrapperField(this, spic_cabinet_pb.CabinetWithLocation, 1));
187
- };
188
-
189
-
190
- /**
191
- * @param {?proto.Spic.CabinetWithLocation|undefined} value
192
- * @return {!proto.Meta.CabinetLocationMeta} returns this
193
- */
194
- proto.Meta.CabinetLocationMeta.prototype.setCabinetLocation = function(value) {
195
- return jspb.Message.setWrapperField(this, 1, value);
196
- };
197
-
198
-
199
- /**
200
- * Clears the message field making it undefined.
201
- * @return {!proto.Meta.CabinetLocationMeta} returns this
202
- */
203
- proto.Meta.CabinetLocationMeta.prototype.clearCabinetLocation = function() {
204
- return this.setCabinetLocation(undefined);
205
- };
206
-
207
-
208
- /**
209
- * Returns whether this field is set.
210
- * @return {boolean}
211
- */
212
- proto.Meta.CabinetLocationMeta.prototype.hasCabinetLocation = function() {
213
- return jspb.Message.getField(this, 1) != null;
214
- };
215
-
216
-
217
- /**
218
- * optional TemperatureConfigurationProto temperature_configuration = 2;
219
- * @return {?proto.Meta.TemperatureConfigurationProto}
220
- */
221
- proto.Meta.CabinetLocationMeta.prototype.getTemperatureConfiguration = function() {
222
- return /** @type{?proto.Meta.TemperatureConfigurationProto} */ (
223
- jspb.Message.getWrapperField(this, meta_spic_config_pb.TemperatureConfigurationProto, 2));
224
- };
225
-
226
-
227
- /**
228
- * @param {?proto.Meta.TemperatureConfigurationProto|undefined} value
229
- * @return {!proto.Meta.CabinetLocationMeta} returns this
230
- */
231
- proto.Meta.CabinetLocationMeta.prototype.setTemperatureConfiguration = function(value) {
232
- return jspb.Message.setWrapperField(this, 2, value);
233
- };
234
-
235
-
236
- /**
237
- * Clears the message field making it undefined.
238
- * @return {!proto.Meta.CabinetLocationMeta} returns this
239
- */
240
- proto.Meta.CabinetLocationMeta.prototype.clearTemperatureConfiguration = function() {
241
- return this.setTemperatureConfiguration(undefined);
242
- };
243
-
244
-
245
- /**
246
- * Returns whether this field is set.
247
- * @return {boolean}
248
- */
249
- proto.Meta.CabinetLocationMeta.prototype.hasTemperatureConfiguration = function() {
250
- return jspb.Message.getField(this, 2) != null;
251
- };
252
-
253
-
254
- goog.object.extend(exports, proto.Meta);
@@ -1,64 +0,0 @@
1
- // package: Meta
2
- // file: meta.spic.proto
3
-
4
- import * as meta_spic_pb from "./meta.spic_pb";
5
- import * as spic_cabinet_pb from "./spic.cabinet_pb";
6
- import {grpc} from "@improbable-eng/grpc-web";
7
-
8
- type MetaSpicGRPCRetrieve = {
9
- readonly methodName: string;
10
- readonly service: typeof MetaSpicGRPC;
11
- readonly requestStream: false;
12
- readonly responseStream: false;
13
- readonly requestType: typeof spic_cabinet_pb.CabinetProto.RetrieveRequest;
14
- readonly responseType: typeof meta_spic_pb.CabinetLocationMeta;
15
- };
16
-
17
- export class MetaSpicGRPC {
18
- static readonly serviceName: string;
19
- static readonly Retrieve: MetaSpicGRPCRetrieve;
20
- }
21
-
22
- export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
23
- export type Status = { details: string, code: number; metadata: grpc.Metadata }
24
-
25
- interface UnaryResponse {
26
- cancel(): void;
27
- }
28
- interface ResponseStream<T> {
29
- cancel(): void;
30
- on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
31
- on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
32
- on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
33
- }
34
- interface RequestStream<T> {
35
- write(message: T): RequestStream<T>;
36
- end(): void;
37
- cancel(): void;
38
- on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
39
- on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
40
- }
41
- interface BidirectionalStream<ReqT, ResT> {
42
- write(message: ReqT): BidirectionalStream<ReqT, ResT>;
43
- end(): void;
44
- cancel(): void;
45
- on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
46
- on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
47
- on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
48
- }
49
-
50
- export class MetaSpicGRPCClient {
51
- readonly serviceHost: string;
52
-
53
- constructor(serviceHost: string, options?: grpc.RpcOptions);
54
- retrieve(
55
- requestMessage: spic_cabinet_pb.CabinetProto.RetrieveRequest,
56
- metadata: grpc.Metadata,
57
- callback: (error: ServiceError|null, responseMessage: meta_spic_pb.CabinetLocationMeta|null) => void
58
- ): UnaryResponse;
59
- retrieve(
60
- requestMessage: spic_cabinet_pb.CabinetProto.RetrieveRequest,
61
- callback: (error: ServiceError|null, responseMessage: meta_spic_pb.CabinetLocationMeta|null) => void
62
- ): UnaryResponse;
63
- }
64
-