@aceplus/smartace-api 3.2.0-alpha.3 → 3.2.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/meta.spic_alert_pb.d.ts +230 -0
- package/meta.spic_alert_pb.js +1615 -0
- package/meta.spic_alert_pb_service.d.ts +121 -0
- package/meta.spic_alert_pb_service.js +182 -0
- package/meta.spic_config_pb.d.ts +0 -29
- package/meta.spic_config_pb.js +0 -226
- package/meta.spic_config_pb_service.d.ts +11 -31
- package/meta.spic_config_pb_service.js +19 -60
- package/meta.spic_pb.d.ts +36 -0
- package/meta.spic_pb.js +254 -0
- package/meta.spic_pb_service.d.ts +64 -0
- package/meta.spic_pb_service.js +62 -0
- package/package.json +1 -1
|
@@ -0,0 +1,121 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,182 @@
|
|
|
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_config_pb.d.ts
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
import * as jspb from "google-protobuf";
|
|
5
5
|
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
6
6
|
import * as platform_pagination_pb from "./platform.pagination_pb";
|
|
7
|
-
import * as spic_cabinet_pb from "./spic.cabinet_pb";
|
|
8
7
|
import * as google_api_annotations_pb from "./google/api/annotations_pb";
|
|
9
8
|
|
|
10
9
|
export class TemperatureConfigurationProto extends jspb.Message {
|
|
@@ -154,31 +153,3 @@ export namespace TemperatureConfigurationProto {
|
|
|
154
153
|
}
|
|
155
154
|
}
|
|
156
155
|
|
|
157
|
-
export class CabinetLocationMeta extends jspb.Message {
|
|
158
|
-
hasCabinetLocation(): boolean;
|
|
159
|
-
clearCabinetLocation(): void;
|
|
160
|
-
getCabinetLocation(): spic_cabinet_pb.CabinetWithLocation | undefined;
|
|
161
|
-
setCabinetLocation(value?: spic_cabinet_pb.CabinetWithLocation): void;
|
|
162
|
-
|
|
163
|
-
hasTemperatureConfiguration(): boolean;
|
|
164
|
-
clearTemperatureConfiguration(): void;
|
|
165
|
-
getTemperatureConfiguration(): TemperatureConfigurationProto | undefined;
|
|
166
|
-
setTemperatureConfiguration(value?: TemperatureConfigurationProto): void;
|
|
167
|
-
|
|
168
|
-
serializeBinary(): Uint8Array;
|
|
169
|
-
toObject(includeInstance?: boolean): CabinetLocationMeta.AsObject;
|
|
170
|
-
static toObject(includeInstance: boolean, msg: CabinetLocationMeta): CabinetLocationMeta.AsObject;
|
|
171
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
172
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
173
|
-
static serializeBinaryToWriter(message: CabinetLocationMeta, writer: jspb.BinaryWriter): void;
|
|
174
|
-
static deserializeBinary(bytes: Uint8Array): CabinetLocationMeta;
|
|
175
|
-
static deserializeBinaryFromReader(message: CabinetLocationMeta, reader: jspb.BinaryReader): CabinetLocationMeta;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export namespace CabinetLocationMeta {
|
|
179
|
-
export type AsObject = {
|
|
180
|
-
cabinetLocation?: spic_cabinet_pb.CabinetWithLocation.AsObject,
|
|
181
|
-
temperatureConfiguration?: TemperatureConfigurationProto.AsObject,
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
package/meta.spic_config_pb.js
CHANGED
|
@@ -25,11 +25,8 @@ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb
|
|
|
25
25
|
goog.object.extend(proto, google_protobuf_empty_pb);
|
|
26
26
|
var platform_pagination_pb = require('./platform.pagination_pb.js');
|
|
27
27
|
goog.object.extend(proto, platform_pagination_pb);
|
|
28
|
-
var spic_cabinet_pb = require('./spic.cabinet_pb.js');
|
|
29
|
-
goog.object.extend(proto, spic_cabinet_pb);
|
|
30
28
|
var google_api_annotations_pb = require('./google/api/annotations_pb.js');
|
|
31
29
|
goog.object.extend(proto, google_api_annotations_pb);
|
|
32
|
-
goog.exportSymbol('proto.Meta.CabinetLocationMeta', null, global);
|
|
33
30
|
goog.exportSymbol('proto.Meta.TemperatureConfigurationProto', null, global);
|
|
34
31
|
goog.exportSymbol('proto.Meta.TemperatureConfigurationProto.CreateTemplateRequest', null, global);
|
|
35
32
|
goog.exportSymbol('proto.Meta.TemperatureConfigurationProto.SearchTemplateReply', null, global);
|
|
@@ -141,27 +138,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
141
138
|
*/
|
|
142
139
|
proto.Meta.TemperatureConfigurationProto.SearchTemplateReply.displayName = 'proto.Meta.TemperatureConfigurationProto.SearchTemplateReply';
|
|
143
140
|
}
|
|
144
|
-
/**
|
|
145
|
-
* Generated by JsPbCodeGenerator.
|
|
146
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
147
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
148
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
149
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
150
|
-
* valid.
|
|
151
|
-
* @extends {jspb.Message}
|
|
152
|
-
* @constructor
|
|
153
|
-
*/
|
|
154
|
-
proto.Meta.CabinetLocationMeta = function(opt_data) {
|
|
155
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
156
|
-
};
|
|
157
|
-
goog.inherits(proto.Meta.CabinetLocationMeta, jspb.Message);
|
|
158
|
-
if (goog.DEBUG && !COMPILED) {
|
|
159
|
-
/**
|
|
160
|
-
* @public
|
|
161
|
-
* @override
|
|
162
|
-
*/
|
|
163
|
-
proto.Meta.CabinetLocationMeta.displayName = 'proto.Meta.CabinetLocationMeta';
|
|
164
|
-
}
|
|
165
141
|
|
|
166
142
|
|
|
167
143
|
|
|
@@ -1177,206 +1153,4 @@ proto.Meta.TemperatureConfigurationProto.prototype.setCriticalClear = function(v
|
|
|
1177
1153
|
};
|
|
1178
1154
|
|
|
1179
1155
|
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1184
|
-
/**
|
|
1185
|
-
* Creates an object representation of this proto.
|
|
1186
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1187
|
-
* Optional fields that are not set will be set to undefined.
|
|
1188
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1189
|
-
* For the list of reserved names please see:
|
|
1190
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1191
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1192
|
-
* JSPB instance for transitional soy proto support:
|
|
1193
|
-
* http://goto/soy-param-migration
|
|
1194
|
-
* @return {!Object}
|
|
1195
|
-
*/
|
|
1196
|
-
proto.Meta.CabinetLocationMeta.prototype.toObject = function(opt_includeInstance) {
|
|
1197
|
-
return proto.Meta.CabinetLocationMeta.toObject(opt_includeInstance, this);
|
|
1198
|
-
};
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
/**
|
|
1202
|
-
* Static version of the {@see toObject} method.
|
|
1203
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1204
|
-
* the JSPB instance for transitional soy proto support:
|
|
1205
|
-
* http://goto/soy-param-migration
|
|
1206
|
-
* @param {!proto.Meta.CabinetLocationMeta} msg The msg instance to transform.
|
|
1207
|
-
* @return {!Object}
|
|
1208
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1209
|
-
*/
|
|
1210
|
-
proto.Meta.CabinetLocationMeta.toObject = function(includeInstance, msg) {
|
|
1211
|
-
var f, obj = {
|
|
1212
|
-
cabinetLocation: (f = msg.getCabinetLocation()) && spic_cabinet_pb.CabinetWithLocation.toObject(includeInstance, f),
|
|
1213
|
-
temperatureConfiguration: (f = msg.getTemperatureConfiguration()) && proto.Meta.TemperatureConfigurationProto.toObject(includeInstance, f)
|
|
1214
|
-
};
|
|
1215
|
-
|
|
1216
|
-
if (includeInstance) {
|
|
1217
|
-
obj.$jspbMessageInstance = msg;
|
|
1218
|
-
}
|
|
1219
|
-
return obj;
|
|
1220
|
-
};
|
|
1221
|
-
}
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
/**
|
|
1225
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1226
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1227
|
-
* @return {!proto.Meta.CabinetLocationMeta}
|
|
1228
|
-
*/
|
|
1229
|
-
proto.Meta.CabinetLocationMeta.deserializeBinary = function(bytes) {
|
|
1230
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1231
|
-
var msg = new proto.Meta.CabinetLocationMeta;
|
|
1232
|
-
return proto.Meta.CabinetLocationMeta.deserializeBinaryFromReader(msg, reader);
|
|
1233
|
-
};
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
/**
|
|
1237
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1238
|
-
* given reader into the given message object.
|
|
1239
|
-
* @param {!proto.Meta.CabinetLocationMeta} msg The message object to deserialize into.
|
|
1240
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1241
|
-
* @return {!proto.Meta.CabinetLocationMeta}
|
|
1242
|
-
*/
|
|
1243
|
-
proto.Meta.CabinetLocationMeta.deserializeBinaryFromReader = function(msg, reader) {
|
|
1244
|
-
while (reader.nextField()) {
|
|
1245
|
-
if (reader.isEndGroup()) {
|
|
1246
|
-
break;
|
|
1247
|
-
}
|
|
1248
|
-
var field = reader.getFieldNumber();
|
|
1249
|
-
switch (field) {
|
|
1250
|
-
case 1:
|
|
1251
|
-
var value = new spic_cabinet_pb.CabinetWithLocation;
|
|
1252
|
-
reader.readMessage(value,spic_cabinet_pb.CabinetWithLocation.deserializeBinaryFromReader);
|
|
1253
|
-
msg.setCabinetLocation(value);
|
|
1254
|
-
break;
|
|
1255
|
-
case 2:
|
|
1256
|
-
var value = new proto.Meta.TemperatureConfigurationProto;
|
|
1257
|
-
reader.readMessage(value,proto.Meta.TemperatureConfigurationProto.deserializeBinaryFromReader);
|
|
1258
|
-
msg.setTemperatureConfiguration(value);
|
|
1259
|
-
break;
|
|
1260
|
-
default:
|
|
1261
|
-
reader.skipField();
|
|
1262
|
-
break;
|
|
1263
|
-
}
|
|
1264
|
-
}
|
|
1265
|
-
return msg;
|
|
1266
|
-
};
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
/**
|
|
1270
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1271
|
-
* @return {!Uint8Array}
|
|
1272
|
-
*/
|
|
1273
|
-
proto.Meta.CabinetLocationMeta.prototype.serializeBinary = function() {
|
|
1274
|
-
var writer = new jspb.BinaryWriter();
|
|
1275
|
-
proto.Meta.CabinetLocationMeta.serializeBinaryToWriter(this, writer);
|
|
1276
|
-
return writer.getResultBuffer();
|
|
1277
|
-
};
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
/**
|
|
1281
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1282
|
-
* format), writing to the given BinaryWriter.
|
|
1283
|
-
* @param {!proto.Meta.CabinetLocationMeta} message
|
|
1284
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1285
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1286
|
-
*/
|
|
1287
|
-
proto.Meta.CabinetLocationMeta.serializeBinaryToWriter = function(message, writer) {
|
|
1288
|
-
var f = undefined;
|
|
1289
|
-
f = message.getCabinetLocation();
|
|
1290
|
-
if (f != null) {
|
|
1291
|
-
writer.writeMessage(
|
|
1292
|
-
1,
|
|
1293
|
-
f,
|
|
1294
|
-
spic_cabinet_pb.CabinetWithLocation.serializeBinaryToWriter
|
|
1295
|
-
);
|
|
1296
|
-
}
|
|
1297
|
-
f = message.getTemperatureConfiguration();
|
|
1298
|
-
if (f != null) {
|
|
1299
|
-
writer.writeMessage(
|
|
1300
|
-
2,
|
|
1301
|
-
f,
|
|
1302
|
-
proto.Meta.TemperatureConfigurationProto.serializeBinaryToWriter
|
|
1303
|
-
);
|
|
1304
|
-
}
|
|
1305
|
-
};
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
/**
|
|
1309
|
-
* optional Spic.CabinetWithLocation cabinet_location = 1;
|
|
1310
|
-
* @return {?proto.Spic.CabinetWithLocation}
|
|
1311
|
-
*/
|
|
1312
|
-
proto.Meta.CabinetLocationMeta.prototype.getCabinetLocation = function() {
|
|
1313
|
-
return /** @type{?proto.Spic.CabinetWithLocation} */ (
|
|
1314
|
-
jspb.Message.getWrapperField(this, spic_cabinet_pb.CabinetWithLocation, 1));
|
|
1315
|
-
};
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
/**
|
|
1319
|
-
* @param {?proto.Spic.CabinetWithLocation|undefined} value
|
|
1320
|
-
* @return {!proto.Meta.CabinetLocationMeta} returns this
|
|
1321
|
-
*/
|
|
1322
|
-
proto.Meta.CabinetLocationMeta.prototype.setCabinetLocation = function(value) {
|
|
1323
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
1324
|
-
};
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
/**
|
|
1328
|
-
* Clears the message field making it undefined.
|
|
1329
|
-
* @return {!proto.Meta.CabinetLocationMeta} returns this
|
|
1330
|
-
*/
|
|
1331
|
-
proto.Meta.CabinetLocationMeta.prototype.clearCabinetLocation = function() {
|
|
1332
|
-
return this.setCabinetLocation(undefined);
|
|
1333
|
-
};
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
/**
|
|
1337
|
-
* Returns whether this field is set.
|
|
1338
|
-
* @return {boolean}
|
|
1339
|
-
*/
|
|
1340
|
-
proto.Meta.CabinetLocationMeta.prototype.hasCabinetLocation = function() {
|
|
1341
|
-
return jspb.Message.getField(this, 1) != null;
|
|
1342
|
-
};
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
/**
|
|
1346
|
-
* optional TemperatureConfigurationProto temperature_configuration = 2;
|
|
1347
|
-
* @return {?proto.Meta.TemperatureConfigurationProto}
|
|
1348
|
-
*/
|
|
1349
|
-
proto.Meta.CabinetLocationMeta.prototype.getTemperatureConfiguration = function() {
|
|
1350
|
-
return /** @type{?proto.Meta.TemperatureConfigurationProto} */ (
|
|
1351
|
-
jspb.Message.getWrapperField(this, proto.Meta.TemperatureConfigurationProto, 2));
|
|
1352
|
-
};
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
/**
|
|
1356
|
-
* @param {?proto.Meta.TemperatureConfigurationProto|undefined} value
|
|
1357
|
-
* @return {!proto.Meta.CabinetLocationMeta} returns this
|
|
1358
|
-
*/
|
|
1359
|
-
proto.Meta.CabinetLocationMeta.prototype.setTemperatureConfiguration = function(value) {
|
|
1360
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
1361
|
-
};
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
/**
|
|
1365
|
-
* Clears the message field making it undefined.
|
|
1366
|
-
* @return {!proto.Meta.CabinetLocationMeta} returns this
|
|
1367
|
-
*/
|
|
1368
|
-
proto.Meta.CabinetLocationMeta.prototype.clearTemperatureConfiguration = function() {
|
|
1369
|
-
return this.setTemperatureConfiguration(undefined);
|
|
1370
|
-
};
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
/**
|
|
1374
|
-
* Returns whether this field is set.
|
|
1375
|
-
* @return {boolean}
|
|
1376
|
-
*/
|
|
1377
|
-
proto.Meta.CabinetLocationMeta.prototype.hasTemperatureConfiguration = function() {
|
|
1378
|
-
return jspb.Message.getField(this, 2) != null;
|
|
1379
|
-
};
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
1156
|
goog.object.extend(exports, proto.Meta);
|
|
@@ -3,51 +3,40 @@
|
|
|
3
3
|
|
|
4
4
|
import * as meta_spic_config_pb from "./meta.spic_config_pb";
|
|
5
5
|
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
6
|
-
import * as spic_cabinet_pb from "./spic.cabinet_pb";
|
|
7
6
|
import {grpc} from "@improbable-eng/grpc-web";
|
|
8
7
|
|
|
9
|
-
type
|
|
8
|
+
type MetaSpicConfigGRPCSetTemperatureConfiguration = {
|
|
10
9
|
readonly methodName: string;
|
|
11
|
-
readonly service: typeof
|
|
12
|
-
readonly requestStream: false;
|
|
13
|
-
readonly responseStream: false;
|
|
14
|
-
readonly requestType: typeof spic_cabinet_pb.CabinetProto.RetrieveRequest;
|
|
15
|
-
readonly responseType: typeof meta_spic_config_pb.CabinetLocationMeta;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
type CabinetMetaGRPCSetTemperatureConfiguration = {
|
|
19
|
-
readonly methodName: string;
|
|
20
|
-
readonly service: typeof CabinetMetaGRPC;
|
|
10
|
+
readonly service: typeof MetaSpicConfigGRPC;
|
|
21
11
|
readonly requestStream: false;
|
|
22
12
|
readonly responseStream: false;
|
|
23
13
|
readonly requestType: typeof meta_spic_config_pb.TemperatureConfigurationProto.SetConfigurationRequest;
|
|
24
14
|
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
25
15
|
};
|
|
26
16
|
|
|
27
|
-
type
|
|
17
|
+
type MetaSpicConfigGRPCCreateTemperatureConfigurationTemplate = {
|
|
28
18
|
readonly methodName: string;
|
|
29
|
-
readonly service: typeof
|
|
19
|
+
readonly service: typeof MetaSpicConfigGRPC;
|
|
30
20
|
readonly requestStream: false;
|
|
31
21
|
readonly responseStream: false;
|
|
32
22
|
readonly requestType: typeof meta_spic_config_pb.TemperatureConfigurationProto.CreateTemplateRequest;
|
|
33
23
|
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
34
24
|
};
|
|
35
25
|
|
|
36
|
-
type
|
|
26
|
+
type MetaSpicConfigGRPCSearchTemperatureConfigurationTemplate = {
|
|
37
27
|
readonly methodName: string;
|
|
38
|
-
readonly service: typeof
|
|
28
|
+
readonly service: typeof MetaSpicConfigGRPC;
|
|
39
29
|
readonly requestStream: false;
|
|
40
30
|
readonly responseStream: false;
|
|
41
31
|
readonly requestType: typeof meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateRequest;
|
|
42
32
|
readonly responseType: typeof meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateReply;
|
|
43
33
|
};
|
|
44
34
|
|
|
45
|
-
export class
|
|
35
|
+
export class MetaSpicConfigGRPC {
|
|
46
36
|
static readonly serviceName: string;
|
|
47
|
-
static readonly
|
|
48
|
-
static readonly
|
|
49
|
-
static readonly
|
|
50
|
-
static readonly SearchTemperatureConfigurationTemplate: CabinetMetaGRPCSearchTemperatureConfigurationTemplate;
|
|
37
|
+
static readonly SetTemperatureConfiguration: MetaSpicConfigGRPCSetTemperatureConfiguration;
|
|
38
|
+
static readonly CreateTemperatureConfigurationTemplate: MetaSpicConfigGRPCCreateTemperatureConfigurationTemplate;
|
|
39
|
+
static readonly SearchTemperatureConfigurationTemplate: MetaSpicConfigGRPCSearchTemperatureConfigurationTemplate;
|
|
51
40
|
}
|
|
52
41
|
|
|
53
42
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -78,19 +67,10 @@ interface BidirectionalStream<ReqT, ResT> {
|
|
|
78
67
|
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
79
68
|
}
|
|
80
69
|
|
|
81
|
-
export class
|
|
70
|
+
export class MetaSpicConfigGRPCClient {
|
|
82
71
|
readonly serviceHost: string;
|
|
83
72
|
|
|
84
73
|
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
85
|
-
retrieve(
|
|
86
|
-
requestMessage: spic_cabinet_pb.CabinetProto.RetrieveRequest,
|
|
87
|
-
metadata: grpc.Metadata,
|
|
88
|
-
callback: (error: ServiceError|null, responseMessage: meta_spic_config_pb.CabinetLocationMeta|null) => void
|
|
89
|
-
): UnaryResponse;
|
|
90
|
-
retrieve(
|
|
91
|
-
requestMessage: spic_cabinet_pb.CabinetProto.RetrieveRequest,
|
|
92
|
-
callback: (error: ServiceError|null, responseMessage: meta_spic_config_pb.CabinetLocationMeta|null) => void
|
|
93
|
-
): UnaryResponse;
|
|
94
74
|
setTemperatureConfiguration(
|
|
95
75
|
requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.SetConfigurationRequest,
|
|
96
76
|
metadata: grpc.Metadata,
|