@aceplus/smartace-api 3.6.0-alpha.18 → 3.6.0-alpha.19

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.
@@ -32,6 +32,10 @@ goog.object.extend(proto, google_api_annotations_pb);
32
32
  goog.exportSymbol('proto.Spic.CabinetProto', null, global);
33
33
  goog.exportSymbol('proto.Spic.CabinetProto.AlarmType', null, global);
34
34
  goog.exportSymbol('proto.Spic.CabinetProto.BatteryStatus', null, global);
35
+ goog.exportSymbol('proto.Spic.CabinetProto.Event', null, global);
36
+ goog.exportSymbol('proto.Spic.CabinetProto.Event.EventType', null, global);
37
+ goog.exportSymbol('proto.Spic.CabinetProto.Event.SearchReply', null, global);
38
+ goog.exportSymbol('proto.Spic.CabinetProto.Event.SearchRequest', null, global);
35
39
  goog.exportSymbol('proto.Spic.CabinetProto.LocationSearchReply', null, global);
36
40
  goog.exportSymbol('proto.Spic.CabinetProto.LocationSearchRequest', null, global);
37
41
  goog.exportSymbol('proto.Spic.CabinetProto.OpenRequest', null, global);
@@ -281,6 +285,69 @@ if (goog.DEBUG && !COMPILED) {
281
285
  */
282
286
  proto.Spic.CabinetProto.State.ExcelReportReply.displayName = 'proto.Spic.CabinetProto.State.ExcelReportReply';
283
287
  }
288
+ /**
289
+ * Generated by JsPbCodeGenerator.
290
+ * @param {Array=} opt_data Optional initial data array, typically from a
291
+ * server response, or constructed directly in Javascript. The array is used
292
+ * in place and becomes part of the constructed object. It is not cloned.
293
+ * If no data is provided, the constructed object will be empty, but still
294
+ * valid.
295
+ * @extends {jspb.Message}
296
+ * @constructor
297
+ */
298
+ proto.Spic.CabinetProto.Event = function(opt_data) {
299
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
300
+ };
301
+ goog.inherits(proto.Spic.CabinetProto.Event, jspb.Message);
302
+ if (goog.DEBUG && !COMPILED) {
303
+ /**
304
+ * @public
305
+ * @override
306
+ */
307
+ proto.Spic.CabinetProto.Event.displayName = 'proto.Spic.CabinetProto.Event';
308
+ }
309
+ /**
310
+ * Generated by JsPbCodeGenerator.
311
+ * @param {Array=} opt_data Optional initial data array, typically from a
312
+ * server response, or constructed directly in Javascript. The array is used
313
+ * in place and becomes part of the constructed object. It is not cloned.
314
+ * If no data is provided, the constructed object will be empty, but still
315
+ * valid.
316
+ * @extends {jspb.Message}
317
+ * @constructor
318
+ */
319
+ proto.Spic.CabinetProto.Event.SearchRequest = function(opt_data) {
320
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Spic.CabinetProto.Event.SearchRequest.repeatedFields_, null);
321
+ };
322
+ goog.inherits(proto.Spic.CabinetProto.Event.SearchRequest, jspb.Message);
323
+ if (goog.DEBUG && !COMPILED) {
324
+ /**
325
+ * @public
326
+ * @override
327
+ */
328
+ proto.Spic.CabinetProto.Event.SearchRequest.displayName = 'proto.Spic.CabinetProto.Event.SearchRequest';
329
+ }
330
+ /**
331
+ * Generated by JsPbCodeGenerator.
332
+ * @param {Array=} opt_data Optional initial data array, typically from a
333
+ * server response, or constructed directly in Javascript. The array is used
334
+ * in place and becomes part of the constructed object. It is not cloned.
335
+ * If no data is provided, the constructed object will be empty, but still
336
+ * valid.
337
+ * @extends {jspb.Message}
338
+ * @constructor
339
+ */
340
+ proto.Spic.CabinetProto.Event.SearchReply = function(opt_data) {
341
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Spic.CabinetProto.Event.SearchReply.repeatedFields_, null);
342
+ };
343
+ goog.inherits(proto.Spic.CabinetProto.Event.SearchReply, jspb.Message);
344
+ if (goog.DEBUG && !COMPILED) {
345
+ /**
346
+ * @public
347
+ * @override
348
+ */
349
+ proto.Spic.CabinetProto.Event.SearchReply.displayName = 'proto.Spic.CabinetProto.Event.SearchReply';
350
+ }
284
351
  /**
285
352
  * Generated by JsPbCodeGenerator.
286
353
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -478,7 +545,7 @@ proto.Spic.CabinetProto.deserializeBinaryFromReader = function(msg, reader) {
478
545
  msg.setUid(value);
479
546
  break;
480
547
  case 5:
481
- var value = /** @type {number} */ (reader.readInt32());
548
+ var value = /** @type {!proto.Spic.CabinetProto.StatusType} */ (reader.readEnum());
482
549
  msg.setStatus(value);
483
550
  break;
484
551
  case 6:
@@ -608,8 +675,8 @@ proto.Spic.CabinetProto.serializeBinaryToWriter = function(message, writer) {
608
675
  );
609
676
  }
610
677
  f = message.getStatus();
611
- if (f !== 0) {
612
- writer.writeInt32(
678
+ if (f !== 0.0) {
679
+ writer.writeEnum(
613
680
  5,
614
681
  f
615
682
  );
@@ -3966,8 +4033,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
3966
4033
  * http://goto/soy-param-migration
3967
4034
  * @return {!Object}
3968
4035
  */
3969
- proto.Spic.CabinetProto.OpenRequest.prototype.toObject = function(opt_includeInstance) {
3970
- return proto.Spic.CabinetProto.OpenRequest.toObject(opt_includeInstance, this);
4036
+ proto.Spic.CabinetProto.Event.prototype.toObject = function(opt_includeInstance) {
4037
+ return proto.Spic.CabinetProto.Event.toObject(opt_includeInstance, this);
3971
4038
  };
3972
4039
 
3973
4040
 
@@ -3976,22 +4043,20 @@ proto.Spic.CabinetProto.OpenRequest.prototype.toObject = function(opt_includeIns
3976
4043
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3977
4044
  * the JSPB instance for transitional soy proto support:
3978
4045
  * http://goto/soy-param-migration
3979
- * @param {!proto.Spic.CabinetProto.OpenRequest} msg The msg instance to transform.
4046
+ * @param {!proto.Spic.CabinetProto.Event} msg The msg instance to transform.
3980
4047
  * @return {!Object}
3981
4048
  * @suppress {unusedLocalVariables} f is only used for nested messages
3982
4049
  */
3983
- proto.Spic.CabinetProto.OpenRequest.toObject = function(includeInstance, msg) {
4050
+ proto.Spic.CabinetProto.Event.toObject = function(includeInstance, msg) {
3984
4051
  var f, obj = {
3985
4052
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
3986
- cabinetId: jspb.Message.getFieldWithDefault(msg, 2, 0),
3987
- requesterId: jspb.Message.getFieldWithDefault(msg, 3, 0),
3988
- active: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
3989
- requestTime: (f = msg.getRequestTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
3990
- validUntil: (f = msg.getValidUntil()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
3991
- type: jspb.Message.getFieldWithDefault(msg, 7, 0),
3992
- contractor: jspb.Message.getFieldWithDefault(msg, 8, ""),
3993
- deactivateafteropening: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
3994
- devicepacketnumber: jspb.Message.getFieldWithDefault(msg, 10, 0)
4053
+ startDate: (f = msg.getStartDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
4054
+ endDate: (f = msg.getEndDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
4055
+ cabinetId: jspb.Message.getFieldWithDefault(msg, 4, 0),
4056
+ eventType: jspb.Message.getFieldWithDefault(msg, 5, 0),
4057
+ notificationSent: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
4058
+ openRequest: (f = msg.getOpenRequest()) && proto.Spic.CabinetProto.OpenRequest.toObject(includeInstance, f),
4059
+ detail: jspb.Message.getFieldWithDefault(msg, 8, "")
3995
4060
  };
3996
4061
 
3997
4062
  if (includeInstance) {
@@ -4005,23 +4070,23 @@ proto.Spic.CabinetProto.OpenRequest.toObject = function(includeInstance, msg) {
4005
4070
  /**
4006
4071
  * Deserializes binary data (in protobuf wire format).
4007
4072
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
4008
- * @return {!proto.Spic.CabinetProto.OpenRequest}
4073
+ * @return {!proto.Spic.CabinetProto.Event}
4009
4074
  */
4010
- proto.Spic.CabinetProto.OpenRequest.deserializeBinary = function(bytes) {
4075
+ proto.Spic.CabinetProto.Event.deserializeBinary = function(bytes) {
4011
4076
  var reader = new jspb.BinaryReader(bytes);
4012
- var msg = new proto.Spic.CabinetProto.OpenRequest;
4013
- return proto.Spic.CabinetProto.OpenRequest.deserializeBinaryFromReader(msg, reader);
4077
+ var msg = new proto.Spic.CabinetProto.Event;
4078
+ return proto.Spic.CabinetProto.Event.deserializeBinaryFromReader(msg, reader);
4014
4079
  };
4015
4080
 
4016
4081
 
4017
4082
  /**
4018
4083
  * Deserializes binary data (in protobuf wire format) from the
4019
4084
  * given reader into the given message object.
4020
- * @param {!proto.Spic.CabinetProto.OpenRequest} msg The message object to deserialize into.
4085
+ * @param {!proto.Spic.CabinetProto.Event} msg The message object to deserialize into.
4021
4086
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4022
- * @return {!proto.Spic.CabinetProto.OpenRequest}
4087
+ * @return {!proto.Spic.CabinetProto.Event}
4023
4088
  */
4024
- proto.Spic.CabinetProto.OpenRequest.deserializeBinaryFromReader = function(msg, reader) {
4089
+ proto.Spic.CabinetProto.Event.deserializeBinaryFromReader = function(msg, reader) {
4025
4090
  while (reader.nextField()) {
4026
4091
  if (reader.isEndGroup()) {
4027
4092
  break;
@@ -4033,42 +4098,35 @@ proto.Spic.CabinetProto.OpenRequest.deserializeBinaryFromReader = function(msg,
4033
4098
  msg.setId(value);
4034
4099
  break;
4035
4100
  case 2:
4036
- var value = /** @type {number} */ (reader.readInt64());
4037
- msg.setCabinetId(value);
4101
+ var value = new google_protobuf_timestamp_pb.Timestamp;
4102
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
4103
+ msg.setStartDate(value);
4038
4104
  break;
4039
4105
  case 3:
4040
- var value = /** @type {number} */ (reader.readInt64());
4041
- msg.setRequesterId(value);
4106
+ var value = new google_protobuf_timestamp_pb.Timestamp;
4107
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
4108
+ msg.setEndDate(value);
4042
4109
  break;
4043
4110
  case 4:
4044
- var value = /** @type {boolean} */ (reader.readBool());
4045
- msg.setActive(value);
4111
+ var value = /** @type {number} */ (reader.readInt64());
4112
+ msg.setCabinetId(value);
4046
4113
  break;
4047
4114
  case 5:
4048
- var value = new google_protobuf_timestamp_pb.Timestamp;
4049
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
4050
- msg.setRequestTime(value);
4115
+ var value = /** @type {!proto.Spic.CabinetProto.Event.EventType} */ (reader.readEnum());
4116
+ msg.setEventType(value);
4051
4117
  break;
4052
4118
  case 6:
4053
- var value = new google_protobuf_timestamp_pb.Timestamp;
4054
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
4055
- msg.setValidUntil(value);
4119
+ var value = /** @type {boolean} */ (reader.readBool());
4120
+ msg.setNotificationSent(value);
4056
4121
  break;
4057
4122
  case 7:
4058
- var value = /** @type {!proto.Spic.CabinetProto.OpenRequest.OpenRequestType} */ (reader.readEnum());
4059
- msg.setType(value);
4123
+ var value = new proto.Spic.CabinetProto.OpenRequest;
4124
+ reader.readMessage(value,proto.Spic.CabinetProto.OpenRequest.deserializeBinaryFromReader);
4125
+ msg.setOpenRequest(value);
4060
4126
  break;
4061
4127
  case 8:
4062
4128
  var value = /** @type {string} */ (reader.readString());
4063
- msg.setContractor(value);
4064
- break;
4065
- case 9:
4066
- var value = /** @type {boolean} */ (reader.readBool());
4067
- msg.setDeactivateafteropening(value);
4068
- break;
4069
- case 10:
4070
- var value = /** @type {number} */ (reader.readInt32());
4071
- msg.setDevicepacketnumber(value);
4129
+ msg.setDetail(value);
4072
4130
  break;
4073
4131
  default:
4074
4132
  reader.skipField();
@@ -4083,9 +4141,9 @@ proto.Spic.CabinetProto.OpenRequest.deserializeBinaryFromReader = function(msg,
4083
4141
  * Serializes the message to binary data (in protobuf wire format).
4084
4142
  * @return {!Uint8Array}
4085
4143
  */
4086
- proto.Spic.CabinetProto.OpenRequest.prototype.serializeBinary = function() {
4144
+ proto.Spic.CabinetProto.Event.prototype.serializeBinary = function() {
4087
4145
  var writer = new jspb.BinaryWriter();
4088
- proto.Spic.CabinetProto.OpenRequest.serializeBinaryToWriter(this, writer);
4146
+ proto.Spic.CabinetProto.Event.serializeBinaryToWriter(this, writer);
4089
4147
  return writer.getResultBuffer();
4090
4148
  };
4091
4149
 
@@ -4093,11 +4151,11 @@ proto.Spic.CabinetProto.OpenRequest.prototype.serializeBinary = function() {
4093
4151
  /**
4094
4152
  * Serializes the given message to binary data (in protobuf wire
4095
4153
  * format), writing to the given BinaryWriter.
4096
- * @param {!proto.Spic.CabinetProto.OpenRequest} message
4154
+ * @param {!proto.Spic.CabinetProto.Event} message
4097
4155
  * @param {!jspb.BinaryWriter} writer
4098
4156
  * @suppress {unusedLocalVariables} f is only used for nested messages
4099
4157
  */
4100
- proto.Spic.CabinetProto.OpenRequest.serializeBinaryToWriter = function(message, writer) {
4158
+ proto.Spic.CabinetProto.Event.serializeBinaryToWriter = function(message, writer) {
4101
4159
  var f = undefined;
4102
4160
  f = message.getId();
4103
4161
  if (f !== 0) {
@@ -4106,68 +4164,55 @@ proto.Spic.CabinetProto.OpenRequest.serializeBinaryToWriter = function(message,
4106
4164
  f
4107
4165
  );
4108
4166
  }
4109
- f = message.getCabinetId();
4110
- if (f !== 0) {
4111
- writer.writeInt64(
4112
- 2,
4113
- f
4114
- );
4115
- }
4116
- f = message.getRequesterId();
4117
- if (f !== 0) {
4118
- writer.writeInt64(
4119
- 3,
4120
- f
4121
- );
4122
- }
4123
- f = message.getActive();
4124
- if (f) {
4125
- writer.writeBool(
4126
- 4,
4127
- f
4128
- );
4129
- }
4130
- f = message.getRequestTime();
4167
+ f = message.getStartDate();
4131
4168
  if (f != null) {
4132
4169
  writer.writeMessage(
4133
- 5,
4170
+ 2,
4134
4171
  f,
4135
4172
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
4136
4173
  );
4137
4174
  }
4138
- f = message.getValidUntil();
4175
+ f = message.getEndDate();
4139
4176
  if (f != null) {
4140
4177
  writer.writeMessage(
4141
- 6,
4178
+ 3,
4142
4179
  f,
4143
4180
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
4144
4181
  );
4145
4182
  }
4146
- f = message.getType();
4147
- if (f !== 0.0) {
4148
- writer.writeEnum(
4149
- 7,
4183
+ f = message.getCabinetId();
4184
+ if (f !== 0) {
4185
+ writer.writeInt64(
4186
+ 4,
4150
4187
  f
4151
4188
  );
4152
4189
  }
4153
- f = message.getContractor();
4154
- if (f.length > 0) {
4155
- writer.writeString(
4156
- 8,
4190
+ f = message.getEventType();
4191
+ if (f !== 0.0) {
4192
+ writer.writeEnum(
4193
+ 5,
4157
4194
  f
4158
4195
  );
4159
4196
  }
4160
- f = message.getDeactivateafteropening();
4197
+ f = message.getNotificationSent();
4161
4198
  if (f) {
4162
4199
  writer.writeBool(
4163
- 9,
4200
+ 6,
4164
4201
  f
4165
4202
  );
4166
4203
  }
4167
- f = message.getDevicepacketnumber();
4168
- if (f !== 0) {
4169
- writer.writeInt32(
4170
- 10,
4204
+ f = message.getOpenRequest();
4205
+ if (f != null) {
4206
+ writer.writeMessage(
4207
+ 7,
4208
+ f,
4209
+ proto.Spic.CabinetProto.OpenRequest.serializeBinaryToWriter
4210
+ );
4211
+ }
4212
+ f = message.getDetail();
4213
+ if (f.length > 0) {
4214
+ writer.writeString(
4215
+ 8,
4171
4216
  f
4172
4217
  );
4173
4218
  }
@@ -4177,12 +4222,32 @@ proto.Spic.CabinetProto.OpenRequest.serializeBinaryToWriter = function(message,
4177
4222
  /**
4178
4223
  * @enum {number}
4179
4224
  */
4180
- proto.Spic.CabinetProto.OpenRequest.OpenRequestType = {
4181
- APP_OPENING: 0,
4182
- ADMIN_OPENING: 1
4225
+ proto.Spic.CabinetProto.Event.EventType = {
4226
+ NO_ALARM: 0,
4227
+ INACTIVE_CABINET: 1,
4228
+ TILT: 2,
4229
+ BATTERY: 3,
4230
+ UNAUTHORIZED_ACCESS: 4,
4231
+ EXCEEDED_TIME: 5,
4232
+ UNLOCKED_CABINET: 6,
4233
+ LOCK_ERROR: 7,
4234
+ OPENING: 8,
4235
+ INSTALLATION: 9,
4236
+ MAINTENANCE: 10,
4237
+ EXTERNAL_IO_ERROR: 11,
4238
+ HIGH_TEMP: 12,
4239
+ CRIT_TEMP: 13,
4240
+ PENDING_AUTHORIZATION_OPENING: 14
4183
4241
  };
4184
4242
 
4185
4243
 
4244
+ /**
4245
+ * List of repeated fields within this message type.
4246
+ * @private {!Array<number>}
4247
+ * @const
4248
+ */
4249
+ proto.Spic.CabinetProto.Event.SearchRequest.repeatedFields_ = [3];
4250
+
4186
4251
 
4187
4252
 
4188
4253
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -4198,8 +4263,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
4198
4263
  * http://goto/soy-param-migration
4199
4264
  * @return {!Object}
4200
4265
  */
4201
- proto.Spic.CabinetProto.OpenRequest.CreateRequest.prototype.toObject = function(opt_includeInstance) {
4202
- return proto.Spic.CabinetProto.OpenRequest.CreateRequest.toObject(opt_includeInstance, this);
4266
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.toObject = function(opt_includeInstance) {
4267
+ return proto.Spic.CabinetProto.Event.SearchRequest.toObject(opt_includeInstance, this);
4203
4268
  };
4204
4269
 
4205
4270
 
@@ -4208,20 +4273,20 @@ proto.Spic.CabinetProto.OpenRequest.CreateRequest.prototype.toObject = function(
4208
4273
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4209
4274
  * the JSPB instance for transitional soy proto support:
4210
4275
  * http://goto/soy-param-migration
4211
- * @param {!proto.Spic.CabinetProto.OpenRequest.CreateRequest} msg The msg instance to transform.
4276
+ * @param {!proto.Spic.CabinetProto.Event.SearchRequest} msg The msg instance to transform.
4212
4277
  * @return {!Object}
4213
4278
  * @suppress {unusedLocalVariables} f is only used for nested messages
4214
4279
  */
4215
- proto.Spic.CabinetProto.OpenRequest.CreateRequest.toObject = function(includeInstance, msg) {
4280
+ proto.Spic.CabinetProto.Event.SearchRequest.toObject = function(includeInstance, msg) {
4216
4281
  var f, obj = {
4217
4282
  cabinetId: jspb.Message.getFieldWithDefault(msg, 1, 0),
4218
- requestTime: (f = msg.getRequestTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
4219
- validUntil: (f = msg.getValidUntil()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
4220
- longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
4221
- latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
4222
- type: jspb.Message.getFieldWithDefault(msg, 7, 0),
4223
- contractor: jspb.Message.getFieldWithDefault(msg, 8, ""),
4224
- deactivateafteropening: jspb.Message.getBooleanFieldWithDefault(msg, 9, false)
4283
+ active: jspb.Message.getFieldWithDefault(msg, 2, 0),
4284
+ eventTypeList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
4285
+ page: jspb.Message.getFieldWithDefault(msg, 4, 0),
4286
+ count: jspb.Message.getFieldWithDefault(msg, 5, 0),
4287
+ descorder: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
4288
+ dateFrom: (f = msg.getDateFrom()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
4289
+ dateTo: (f = msg.getDateTo()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
4225
4290
  };
4226
4291
 
4227
4292
  if (includeInstance) {
@@ -4235,23 +4300,23 @@ proto.Spic.CabinetProto.OpenRequest.CreateRequest.toObject = function(includeIns
4235
4300
  /**
4236
4301
  * Deserializes binary data (in protobuf wire format).
4237
4302
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
4238
- * @return {!proto.Spic.CabinetProto.OpenRequest.CreateRequest}
4303
+ * @return {!proto.Spic.CabinetProto.Event.SearchRequest}
4239
4304
  */
4240
- proto.Spic.CabinetProto.OpenRequest.CreateRequest.deserializeBinary = function(bytes) {
4305
+ proto.Spic.CabinetProto.Event.SearchRequest.deserializeBinary = function(bytes) {
4241
4306
  var reader = new jspb.BinaryReader(bytes);
4242
- var msg = new proto.Spic.CabinetProto.OpenRequest.CreateRequest;
4243
- return proto.Spic.CabinetProto.OpenRequest.CreateRequest.deserializeBinaryFromReader(msg, reader);
4307
+ var msg = new proto.Spic.CabinetProto.Event.SearchRequest;
4308
+ return proto.Spic.CabinetProto.Event.SearchRequest.deserializeBinaryFromReader(msg, reader);
4244
4309
  };
4245
4310
 
4246
4311
 
4247
4312
  /**
4248
4313
  * Deserializes binary data (in protobuf wire format) from the
4249
4314
  * given reader into the given message object.
4250
- * @param {!proto.Spic.CabinetProto.OpenRequest.CreateRequest} msg The message object to deserialize into.
4315
+ * @param {!proto.Spic.CabinetProto.Event.SearchRequest} msg The message object to deserialize into.
4251
4316
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4252
- * @return {!proto.Spic.CabinetProto.OpenRequest.CreateRequest}
4317
+ * @return {!proto.Spic.CabinetProto.Event.SearchRequest}
4253
4318
  */
4254
- proto.Spic.CabinetProto.OpenRequest.CreateRequest.deserializeBinaryFromReader = function(msg, reader) {
4319
+ proto.Spic.CabinetProto.Event.SearchRequest.deserializeBinaryFromReader = function(msg, reader) {
4255
4320
  while (reader.nextField()) {
4256
4321
  if (reader.isEndGroup()) {
4257
4322
  break;
@@ -4262,35 +4327,37 @@ proto.Spic.CabinetProto.OpenRequest.CreateRequest.deserializeBinaryFromReader =
4262
4327
  var value = /** @type {number} */ (reader.readInt64());
4263
4328
  msg.setCabinetId(value);
4264
4329
  break;
4330
+ case 2:
4331
+ var value = /** @type {!proto.Platform.BooleanFilterType} */ (reader.readEnum());
4332
+ msg.setActive(value);
4333
+ break;
4265
4334
  case 3:
4266
- var value = new google_protobuf_timestamp_pb.Timestamp;
4267
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
4268
- msg.setRequestTime(value);
4335
+ var values = /** @type {!Array<!proto.Spic.CabinetProto.Event.EventType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
4336
+ for (var i = 0; i < values.length; i++) {
4337
+ msg.addEventType(values[i]);
4338
+ }
4269
4339
  break;
4270
4340
  case 4:
4271
- var value = new google_protobuf_timestamp_pb.Timestamp;
4272
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
4273
- msg.setValidUntil(value);
4341
+ var value = /** @type {number} */ (reader.readInt32());
4342
+ msg.setPage(value);
4274
4343
  break;
4275
4344
  case 5:
4276
- var value = /** @type {number} */ (reader.readDouble());
4277
- msg.setLongitude(value);
4345
+ var value = /** @type {number} */ (reader.readInt32());
4346
+ msg.setCount(value);
4278
4347
  break;
4279
4348
  case 6:
4280
- var value = /** @type {number} */ (reader.readDouble());
4281
- msg.setLatitude(value);
4349
+ var value = /** @type {boolean} */ (reader.readBool());
4350
+ msg.setDescorder(value);
4282
4351
  break;
4283
4352
  case 7:
4284
- var value = /** @type {!proto.Spic.CabinetProto.OpenRequest.OpenRequestType} */ (reader.readEnum());
4285
- msg.setType(value);
4353
+ var value = new google_protobuf_timestamp_pb.Timestamp;
4354
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
4355
+ msg.setDateFrom(value);
4286
4356
  break;
4287
4357
  case 8:
4288
- var value = /** @type {string} */ (reader.readString());
4289
- msg.setContractor(value);
4290
- break;
4291
- case 9:
4292
- var value = /** @type {boolean} */ (reader.readBool());
4293
- msg.setDeactivateafteropening(value);
4358
+ var value = new google_protobuf_timestamp_pb.Timestamp;
4359
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
4360
+ msg.setDateTo(value);
4294
4361
  break;
4295
4362
  default:
4296
4363
  reader.skipField();
@@ -4305,9 +4372,9 @@ proto.Spic.CabinetProto.OpenRequest.CreateRequest.deserializeBinaryFromReader =
4305
4372
  * Serializes the message to binary data (in protobuf wire format).
4306
4373
  * @return {!Uint8Array}
4307
4374
  */
4308
- proto.Spic.CabinetProto.OpenRequest.CreateRequest.prototype.serializeBinary = function() {
4375
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.serializeBinary = function() {
4309
4376
  var writer = new jspb.BinaryWriter();
4310
- proto.Spic.CabinetProto.OpenRequest.CreateRequest.serializeBinaryToWriter(this, writer);
4377
+ proto.Spic.CabinetProto.Event.SearchRequest.serializeBinaryToWriter(this, writer);
4311
4378
  return writer.getResultBuffer();
4312
4379
  };
4313
4380
 
@@ -4315,11 +4382,11 @@ proto.Spic.CabinetProto.OpenRequest.CreateRequest.prototype.serializeBinary = fu
4315
4382
  /**
4316
4383
  * Serializes the given message to binary data (in protobuf wire
4317
4384
  * format), writing to the given BinaryWriter.
4318
- * @param {!proto.Spic.CabinetProto.OpenRequest.CreateRequest} message
4385
+ * @param {!proto.Spic.CabinetProto.Event.SearchRequest} message
4319
4386
  * @param {!jspb.BinaryWriter} writer
4320
4387
  * @suppress {unusedLocalVariables} f is only used for nested messages
4321
4388
  */
4322
- proto.Spic.CabinetProto.OpenRequest.CreateRequest.serializeBinaryToWriter = function(message, writer) {
4389
+ proto.Spic.CabinetProto.Event.SearchRequest.serializeBinaryToWriter = function(message, writer) {
4323
4390
  var f = undefined;
4324
4391
  f = message.getCabinetId();
4325
4392
  if (f !== 0) {
@@ -4328,18 +4395,1075 @@ proto.Spic.CabinetProto.OpenRequest.CreateRequest.serializeBinaryToWriter = func
4328
4395
  f
4329
4396
  );
4330
4397
  }
4331
- f = message.getRequestTime();
4332
- if (f != null) {
4333
- writer.writeMessage(
4398
+ f = message.getActive();
4399
+ if (f !== 0.0) {
4400
+ writer.writeEnum(
4401
+ 2,
4402
+ f
4403
+ );
4404
+ }
4405
+ f = message.getEventTypeList();
4406
+ if (f.length > 0) {
4407
+ writer.writePackedEnum(
4334
4408
  3,
4335
- f,
4336
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
4409
+ f
4337
4410
  );
4338
4411
  }
4339
- f = message.getValidUntil();
4340
- if (f != null) {
4341
- writer.writeMessage(
4342
- 4,
4412
+ f = message.getPage();
4413
+ if (f !== 0) {
4414
+ writer.writeInt32(
4415
+ 4,
4416
+ f
4417
+ );
4418
+ }
4419
+ f = message.getCount();
4420
+ if (f !== 0) {
4421
+ writer.writeInt32(
4422
+ 5,
4423
+ f
4424
+ );
4425
+ }
4426
+ f = message.getDescorder();
4427
+ if (f) {
4428
+ writer.writeBool(
4429
+ 6,
4430
+ f
4431
+ );
4432
+ }
4433
+ f = message.getDateFrom();
4434
+ if (f != null) {
4435
+ writer.writeMessage(
4436
+ 7,
4437
+ f,
4438
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
4439
+ );
4440
+ }
4441
+ f = message.getDateTo();
4442
+ if (f != null) {
4443
+ writer.writeMessage(
4444
+ 8,
4445
+ f,
4446
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
4447
+ );
4448
+ }
4449
+ };
4450
+
4451
+
4452
+ /**
4453
+ * optional int64 cabinet_id = 1;
4454
+ * @return {number}
4455
+ */
4456
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.getCabinetId = function() {
4457
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4458
+ };
4459
+
4460
+
4461
+ /**
4462
+ * @param {number} value
4463
+ * @return {!proto.Spic.CabinetProto.Event.SearchRequest} returns this
4464
+ */
4465
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.setCabinetId = function(value) {
4466
+ return jspb.Message.setProto3IntField(this, 1, value);
4467
+ };
4468
+
4469
+
4470
+ /**
4471
+ * optional Platform.BooleanFilterType active = 2;
4472
+ * @return {!proto.Platform.BooleanFilterType}
4473
+ */
4474
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.getActive = function() {
4475
+ return /** @type {!proto.Platform.BooleanFilterType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
4476
+ };
4477
+
4478
+
4479
+ /**
4480
+ * @param {!proto.Platform.BooleanFilterType} value
4481
+ * @return {!proto.Spic.CabinetProto.Event.SearchRequest} returns this
4482
+ */
4483
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.setActive = function(value) {
4484
+ return jspb.Message.setProto3EnumField(this, 2, value);
4485
+ };
4486
+
4487
+
4488
+ /**
4489
+ * repeated EventType event_type = 3;
4490
+ * @return {!Array<!proto.Spic.CabinetProto.Event.EventType>}
4491
+ */
4492
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.getEventTypeList = function() {
4493
+ return /** @type {!Array<!proto.Spic.CabinetProto.Event.EventType>} */ (jspb.Message.getRepeatedField(this, 3));
4494
+ };
4495
+
4496
+
4497
+ /**
4498
+ * @param {!Array<!proto.Spic.CabinetProto.Event.EventType>} value
4499
+ * @return {!proto.Spic.CabinetProto.Event.SearchRequest} returns this
4500
+ */
4501
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.setEventTypeList = function(value) {
4502
+ return jspb.Message.setField(this, 3, value || []);
4503
+ };
4504
+
4505
+
4506
+ /**
4507
+ * @param {!proto.Spic.CabinetProto.Event.EventType} value
4508
+ * @param {number=} opt_index
4509
+ * @return {!proto.Spic.CabinetProto.Event.SearchRequest} returns this
4510
+ */
4511
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.addEventType = function(value, opt_index) {
4512
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
4513
+ };
4514
+
4515
+
4516
+ /**
4517
+ * Clears the list making it empty but non-null.
4518
+ * @return {!proto.Spic.CabinetProto.Event.SearchRequest} returns this
4519
+ */
4520
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.clearEventTypeList = function() {
4521
+ return this.setEventTypeList([]);
4522
+ };
4523
+
4524
+
4525
+ /**
4526
+ * optional int32 page = 4;
4527
+ * @return {number}
4528
+ */
4529
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.getPage = function() {
4530
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
4531
+ };
4532
+
4533
+
4534
+ /**
4535
+ * @param {number} value
4536
+ * @return {!proto.Spic.CabinetProto.Event.SearchRequest} returns this
4537
+ */
4538
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.setPage = function(value) {
4539
+ return jspb.Message.setProto3IntField(this, 4, value);
4540
+ };
4541
+
4542
+
4543
+ /**
4544
+ * optional int32 count = 5;
4545
+ * @return {number}
4546
+ */
4547
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.getCount = function() {
4548
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
4549
+ };
4550
+
4551
+
4552
+ /**
4553
+ * @param {number} value
4554
+ * @return {!proto.Spic.CabinetProto.Event.SearchRequest} returns this
4555
+ */
4556
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.setCount = function(value) {
4557
+ return jspb.Message.setProto3IntField(this, 5, value);
4558
+ };
4559
+
4560
+
4561
+ /**
4562
+ * optional bool descOrder = 6;
4563
+ * @return {boolean}
4564
+ */
4565
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.getDescorder = function() {
4566
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
4567
+ };
4568
+
4569
+
4570
+ /**
4571
+ * @param {boolean} value
4572
+ * @return {!proto.Spic.CabinetProto.Event.SearchRequest} returns this
4573
+ */
4574
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.setDescorder = function(value) {
4575
+ return jspb.Message.setProto3BooleanField(this, 6, value);
4576
+ };
4577
+
4578
+
4579
+ /**
4580
+ * optional google.protobuf.Timestamp date_from = 7;
4581
+ * @return {?proto.google.protobuf.Timestamp}
4582
+ */
4583
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.getDateFrom = function() {
4584
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
4585
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
4586
+ };
4587
+
4588
+
4589
+ /**
4590
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
4591
+ * @return {!proto.Spic.CabinetProto.Event.SearchRequest} returns this
4592
+ */
4593
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.setDateFrom = function(value) {
4594
+ return jspb.Message.setWrapperField(this, 7, value);
4595
+ };
4596
+
4597
+
4598
+ /**
4599
+ * Clears the message field making it undefined.
4600
+ * @return {!proto.Spic.CabinetProto.Event.SearchRequest} returns this
4601
+ */
4602
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.clearDateFrom = function() {
4603
+ return this.setDateFrom(undefined);
4604
+ };
4605
+
4606
+
4607
+ /**
4608
+ * Returns whether this field is set.
4609
+ * @return {boolean}
4610
+ */
4611
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.hasDateFrom = function() {
4612
+ return jspb.Message.getField(this, 7) != null;
4613
+ };
4614
+
4615
+
4616
+ /**
4617
+ * optional google.protobuf.Timestamp date_to = 8;
4618
+ * @return {?proto.google.protobuf.Timestamp}
4619
+ */
4620
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.getDateTo = function() {
4621
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
4622
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
4623
+ };
4624
+
4625
+
4626
+ /**
4627
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
4628
+ * @return {!proto.Spic.CabinetProto.Event.SearchRequest} returns this
4629
+ */
4630
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.setDateTo = function(value) {
4631
+ return jspb.Message.setWrapperField(this, 8, value);
4632
+ };
4633
+
4634
+
4635
+ /**
4636
+ * Clears the message field making it undefined.
4637
+ * @return {!proto.Spic.CabinetProto.Event.SearchRequest} returns this
4638
+ */
4639
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.clearDateTo = function() {
4640
+ return this.setDateTo(undefined);
4641
+ };
4642
+
4643
+
4644
+ /**
4645
+ * Returns whether this field is set.
4646
+ * @return {boolean}
4647
+ */
4648
+ proto.Spic.CabinetProto.Event.SearchRequest.prototype.hasDateTo = function() {
4649
+ return jspb.Message.getField(this, 8) != null;
4650
+ };
4651
+
4652
+
4653
+
4654
+ /**
4655
+ * List of repeated fields within this message type.
4656
+ * @private {!Array<number>}
4657
+ * @const
4658
+ */
4659
+ proto.Spic.CabinetProto.Event.SearchReply.repeatedFields_ = [1];
4660
+
4661
+
4662
+
4663
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4664
+ /**
4665
+ * Creates an object representation of this proto.
4666
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4667
+ * Optional fields that are not set will be set to undefined.
4668
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4669
+ * For the list of reserved names please see:
4670
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4671
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4672
+ * JSPB instance for transitional soy proto support:
4673
+ * http://goto/soy-param-migration
4674
+ * @return {!Object}
4675
+ */
4676
+ proto.Spic.CabinetProto.Event.SearchReply.prototype.toObject = function(opt_includeInstance) {
4677
+ return proto.Spic.CabinetProto.Event.SearchReply.toObject(opt_includeInstance, this);
4678
+ };
4679
+
4680
+
4681
+ /**
4682
+ * Static version of the {@see toObject} method.
4683
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4684
+ * the JSPB instance for transitional soy proto support:
4685
+ * http://goto/soy-param-migration
4686
+ * @param {!proto.Spic.CabinetProto.Event.SearchReply} msg The msg instance to transform.
4687
+ * @return {!Object}
4688
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4689
+ */
4690
+ proto.Spic.CabinetProto.Event.SearchReply.toObject = function(includeInstance, msg) {
4691
+ var f, obj = {
4692
+ eventsList: jspb.Message.toObjectList(msg.getEventsList(),
4693
+ proto.Spic.CabinetProto.Event.toObject, includeInstance),
4694
+ pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f)
4695
+ };
4696
+
4697
+ if (includeInstance) {
4698
+ obj.$jspbMessageInstance = msg;
4699
+ }
4700
+ return obj;
4701
+ };
4702
+ }
4703
+
4704
+
4705
+ /**
4706
+ * Deserializes binary data (in protobuf wire format).
4707
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4708
+ * @return {!proto.Spic.CabinetProto.Event.SearchReply}
4709
+ */
4710
+ proto.Spic.CabinetProto.Event.SearchReply.deserializeBinary = function(bytes) {
4711
+ var reader = new jspb.BinaryReader(bytes);
4712
+ var msg = new proto.Spic.CabinetProto.Event.SearchReply;
4713
+ return proto.Spic.CabinetProto.Event.SearchReply.deserializeBinaryFromReader(msg, reader);
4714
+ };
4715
+
4716
+
4717
+ /**
4718
+ * Deserializes binary data (in protobuf wire format) from the
4719
+ * given reader into the given message object.
4720
+ * @param {!proto.Spic.CabinetProto.Event.SearchReply} msg The message object to deserialize into.
4721
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4722
+ * @return {!proto.Spic.CabinetProto.Event.SearchReply}
4723
+ */
4724
+ proto.Spic.CabinetProto.Event.SearchReply.deserializeBinaryFromReader = function(msg, reader) {
4725
+ while (reader.nextField()) {
4726
+ if (reader.isEndGroup()) {
4727
+ break;
4728
+ }
4729
+ var field = reader.getFieldNumber();
4730
+ switch (field) {
4731
+ case 1:
4732
+ var value = new proto.Spic.CabinetProto.Event;
4733
+ reader.readMessage(value,proto.Spic.CabinetProto.Event.deserializeBinaryFromReader);
4734
+ msg.addEvents(value);
4735
+ break;
4736
+ case 2:
4737
+ var value = new platform_pagination_pb.PaginationProto;
4738
+ reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
4739
+ msg.setPagination(value);
4740
+ break;
4741
+ default:
4742
+ reader.skipField();
4743
+ break;
4744
+ }
4745
+ }
4746
+ return msg;
4747
+ };
4748
+
4749
+
4750
+ /**
4751
+ * Serializes the message to binary data (in protobuf wire format).
4752
+ * @return {!Uint8Array}
4753
+ */
4754
+ proto.Spic.CabinetProto.Event.SearchReply.prototype.serializeBinary = function() {
4755
+ var writer = new jspb.BinaryWriter();
4756
+ proto.Spic.CabinetProto.Event.SearchReply.serializeBinaryToWriter(this, writer);
4757
+ return writer.getResultBuffer();
4758
+ };
4759
+
4760
+
4761
+ /**
4762
+ * Serializes the given message to binary data (in protobuf wire
4763
+ * format), writing to the given BinaryWriter.
4764
+ * @param {!proto.Spic.CabinetProto.Event.SearchReply} message
4765
+ * @param {!jspb.BinaryWriter} writer
4766
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4767
+ */
4768
+ proto.Spic.CabinetProto.Event.SearchReply.serializeBinaryToWriter = function(message, writer) {
4769
+ var f = undefined;
4770
+ f = message.getEventsList();
4771
+ if (f.length > 0) {
4772
+ writer.writeRepeatedMessage(
4773
+ 1,
4774
+ f,
4775
+ proto.Spic.CabinetProto.Event.serializeBinaryToWriter
4776
+ );
4777
+ }
4778
+ f = message.getPagination();
4779
+ if (f != null) {
4780
+ writer.writeMessage(
4781
+ 2,
4782
+ f,
4783
+ platform_pagination_pb.PaginationProto.serializeBinaryToWriter
4784
+ );
4785
+ }
4786
+ };
4787
+
4788
+
4789
+ /**
4790
+ * repeated Event events = 1;
4791
+ * @return {!Array<!proto.Spic.CabinetProto.Event>}
4792
+ */
4793
+ proto.Spic.CabinetProto.Event.SearchReply.prototype.getEventsList = function() {
4794
+ return /** @type{!Array<!proto.Spic.CabinetProto.Event>} */ (
4795
+ jspb.Message.getRepeatedWrapperField(this, proto.Spic.CabinetProto.Event, 1));
4796
+ };
4797
+
4798
+
4799
+ /**
4800
+ * @param {!Array<!proto.Spic.CabinetProto.Event>} value
4801
+ * @return {!proto.Spic.CabinetProto.Event.SearchReply} returns this
4802
+ */
4803
+ proto.Spic.CabinetProto.Event.SearchReply.prototype.setEventsList = function(value) {
4804
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
4805
+ };
4806
+
4807
+
4808
+ /**
4809
+ * @param {!proto.Spic.CabinetProto.Event=} opt_value
4810
+ * @param {number=} opt_index
4811
+ * @return {!proto.Spic.CabinetProto.Event}
4812
+ */
4813
+ proto.Spic.CabinetProto.Event.SearchReply.prototype.addEvents = function(opt_value, opt_index) {
4814
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Spic.CabinetProto.Event, opt_index);
4815
+ };
4816
+
4817
+
4818
+ /**
4819
+ * Clears the list making it empty but non-null.
4820
+ * @return {!proto.Spic.CabinetProto.Event.SearchReply} returns this
4821
+ */
4822
+ proto.Spic.CabinetProto.Event.SearchReply.prototype.clearEventsList = function() {
4823
+ return this.setEventsList([]);
4824
+ };
4825
+
4826
+
4827
+ /**
4828
+ * optional Platform.PaginationProto pagination = 2;
4829
+ * @return {?proto.Platform.PaginationProto}
4830
+ */
4831
+ proto.Spic.CabinetProto.Event.SearchReply.prototype.getPagination = function() {
4832
+ return /** @type{?proto.Platform.PaginationProto} */ (
4833
+ jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 2));
4834
+ };
4835
+
4836
+
4837
+ /**
4838
+ * @param {?proto.Platform.PaginationProto|undefined} value
4839
+ * @return {!proto.Spic.CabinetProto.Event.SearchReply} returns this
4840
+ */
4841
+ proto.Spic.CabinetProto.Event.SearchReply.prototype.setPagination = function(value) {
4842
+ return jspb.Message.setWrapperField(this, 2, value);
4843
+ };
4844
+
4845
+
4846
+ /**
4847
+ * Clears the message field making it undefined.
4848
+ * @return {!proto.Spic.CabinetProto.Event.SearchReply} returns this
4849
+ */
4850
+ proto.Spic.CabinetProto.Event.SearchReply.prototype.clearPagination = function() {
4851
+ return this.setPagination(undefined);
4852
+ };
4853
+
4854
+
4855
+ /**
4856
+ * Returns whether this field is set.
4857
+ * @return {boolean}
4858
+ */
4859
+ proto.Spic.CabinetProto.Event.SearchReply.prototype.hasPagination = function() {
4860
+ return jspb.Message.getField(this, 2) != null;
4861
+ };
4862
+
4863
+
4864
+ /**
4865
+ * optional int64 id = 1;
4866
+ * @return {number}
4867
+ */
4868
+ proto.Spic.CabinetProto.Event.prototype.getId = function() {
4869
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4870
+ };
4871
+
4872
+
4873
+ /**
4874
+ * @param {number} value
4875
+ * @return {!proto.Spic.CabinetProto.Event} returns this
4876
+ */
4877
+ proto.Spic.CabinetProto.Event.prototype.setId = function(value) {
4878
+ return jspb.Message.setProto3IntField(this, 1, value);
4879
+ };
4880
+
4881
+
4882
+ /**
4883
+ * optional google.protobuf.Timestamp start_date = 2;
4884
+ * @return {?proto.google.protobuf.Timestamp}
4885
+ */
4886
+ proto.Spic.CabinetProto.Event.prototype.getStartDate = function() {
4887
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
4888
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
4889
+ };
4890
+
4891
+
4892
+ /**
4893
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
4894
+ * @return {!proto.Spic.CabinetProto.Event} returns this
4895
+ */
4896
+ proto.Spic.CabinetProto.Event.prototype.setStartDate = function(value) {
4897
+ return jspb.Message.setWrapperField(this, 2, value);
4898
+ };
4899
+
4900
+
4901
+ /**
4902
+ * Clears the message field making it undefined.
4903
+ * @return {!proto.Spic.CabinetProto.Event} returns this
4904
+ */
4905
+ proto.Spic.CabinetProto.Event.prototype.clearStartDate = function() {
4906
+ return this.setStartDate(undefined);
4907
+ };
4908
+
4909
+
4910
+ /**
4911
+ * Returns whether this field is set.
4912
+ * @return {boolean}
4913
+ */
4914
+ proto.Spic.CabinetProto.Event.prototype.hasStartDate = function() {
4915
+ return jspb.Message.getField(this, 2) != null;
4916
+ };
4917
+
4918
+
4919
+ /**
4920
+ * optional google.protobuf.Timestamp end_date = 3;
4921
+ * @return {?proto.google.protobuf.Timestamp}
4922
+ */
4923
+ proto.Spic.CabinetProto.Event.prototype.getEndDate = function() {
4924
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
4925
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
4926
+ };
4927
+
4928
+
4929
+ /**
4930
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
4931
+ * @return {!proto.Spic.CabinetProto.Event} returns this
4932
+ */
4933
+ proto.Spic.CabinetProto.Event.prototype.setEndDate = function(value) {
4934
+ return jspb.Message.setWrapperField(this, 3, value);
4935
+ };
4936
+
4937
+
4938
+ /**
4939
+ * Clears the message field making it undefined.
4940
+ * @return {!proto.Spic.CabinetProto.Event} returns this
4941
+ */
4942
+ proto.Spic.CabinetProto.Event.prototype.clearEndDate = function() {
4943
+ return this.setEndDate(undefined);
4944
+ };
4945
+
4946
+
4947
+ /**
4948
+ * Returns whether this field is set.
4949
+ * @return {boolean}
4950
+ */
4951
+ proto.Spic.CabinetProto.Event.prototype.hasEndDate = function() {
4952
+ return jspb.Message.getField(this, 3) != null;
4953
+ };
4954
+
4955
+
4956
+ /**
4957
+ * optional int64 cabinet_id = 4;
4958
+ * @return {number}
4959
+ */
4960
+ proto.Spic.CabinetProto.Event.prototype.getCabinetId = function() {
4961
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
4962
+ };
4963
+
4964
+
4965
+ /**
4966
+ * @param {number} value
4967
+ * @return {!proto.Spic.CabinetProto.Event} returns this
4968
+ */
4969
+ proto.Spic.CabinetProto.Event.prototype.setCabinetId = function(value) {
4970
+ return jspb.Message.setProto3IntField(this, 4, value);
4971
+ };
4972
+
4973
+
4974
+ /**
4975
+ * optional EventType event_type = 5;
4976
+ * @return {!proto.Spic.CabinetProto.Event.EventType}
4977
+ */
4978
+ proto.Spic.CabinetProto.Event.prototype.getEventType = function() {
4979
+ return /** @type {!proto.Spic.CabinetProto.Event.EventType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
4980
+ };
4981
+
4982
+
4983
+ /**
4984
+ * @param {!proto.Spic.CabinetProto.Event.EventType} value
4985
+ * @return {!proto.Spic.CabinetProto.Event} returns this
4986
+ */
4987
+ proto.Spic.CabinetProto.Event.prototype.setEventType = function(value) {
4988
+ return jspb.Message.setProto3EnumField(this, 5, value);
4989
+ };
4990
+
4991
+
4992
+ /**
4993
+ * optional bool notification_sent = 6;
4994
+ * @return {boolean}
4995
+ */
4996
+ proto.Spic.CabinetProto.Event.prototype.getNotificationSent = function() {
4997
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
4998
+ };
4999
+
5000
+
5001
+ /**
5002
+ * @param {boolean} value
5003
+ * @return {!proto.Spic.CabinetProto.Event} returns this
5004
+ */
5005
+ proto.Spic.CabinetProto.Event.prototype.setNotificationSent = function(value) {
5006
+ return jspb.Message.setProto3BooleanField(this, 6, value);
5007
+ };
5008
+
5009
+
5010
+ /**
5011
+ * optional OpenRequest open_request = 7;
5012
+ * @return {?proto.Spic.CabinetProto.OpenRequest}
5013
+ */
5014
+ proto.Spic.CabinetProto.Event.prototype.getOpenRequest = function() {
5015
+ return /** @type{?proto.Spic.CabinetProto.OpenRequest} */ (
5016
+ jspb.Message.getWrapperField(this, proto.Spic.CabinetProto.OpenRequest, 7));
5017
+ };
5018
+
5019
+
5020
+ /**
5021
+ * @param {?proto.Spic.CabinetProto.OpenRequest|undefined} value
5022
+ * @return {!proto.Spic.CabinetProto.Event} returns this
5023
+ */
5024
+ proto.Spic.CabinetProto.Event.prototype.setOpenRequest = function(value) {
5025
+ return jspb.Message.setWrapperField(this, 7, value);
5026
+ };
5027
+
5028
+
5029
+ /**
5030
+ * Clears the message field making it undefined.
5031
+ * @return {!proto.Spic.CabinetProto.Event} returns this
5032
+ */
5033
+ proto.Spic.CabinetProto.Event.prototype.clearOpenRequest = function() {
5034
+ return this.setOpenRequest(undefined);
5035
+ };
5036
+
5037
+
5038
+ /**
5039
+ * Returns whether this field is set.
5040
+ * @return {boolean}
5041
+ */
5042
+ proto.Spic.CabinetProto.Event.prototype.hasOpenRequest = function() {
5043
+ return jspb.Message.getField(this, 7) != null;
5044
+ };
5045
+
5046
+
5047
+ /**
5048
+ * optional string detail = 8;
5049
+ * @return {string}
5050
+ */
5051
+ proto.Spic.CabinetProto.Event.prototype.getDetail = function() {
5052
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
5053
+ };
5054
+
5055
+
5056
+ /**
5057
+ * @param {string} value
5058
+ * @return {!proto.Spic.CabinetProto.Event} returns this
5059
+ */
5060
+ proto.Spic.CabinetProto.Event.prototype.setDetail = function(value) {
5061
+ return jspb.Message.setProto3StringField(this, 8, value);
5062
+ };
5063
+
5064
+
5065
+
5066
+
5067
+
5068
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5069
+ /**
5070
+ * Creates an object representation of this proto.
5071
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5072
+ * Optional fields that are not set will be set to undefined.
5073
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5074
+ * For the list of reserved names please see:
5075
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5076
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5077
+ * JSPB instance for transitional soy proto support:
5078
+ * http://goto/soy-param-migration
5079
+ * @return {!Object}
5080
+ */
5081
+ proto.Spic.CabinetProto.OpenRequest.prototype.toObject = function(opt_includeInstance) {
5082
+ return proto.Spic.CabinetProto.OpenRequest.toObject(opt_includeInstance, this);
5083
+ };
5084
+
5085
+
5086
+ /**
5087
+ * Static version of the {@see toObject} method.
5088
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5089
+ * the JSPB instance for transitional soy proto support:
5090
+ * http://goto/soy-param-migration
5091
+ * @param {!proto.Spic.CabinetProto.OpenRequest} msg The msg instance to transform.
5092
+ * @return {!Object}
5093
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5094
+ */
5095
+ proto.Spic.CabinetProto.OpenRequest.toObject = function(includeInstance, msg) {
5096
+ var f, obj = {
5097
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
5098
+ cabinetId: jspb.Message.getFieldWithDefault(msg, 2, 0),
5099
+ requesterId: jspb.Message.getFieldWithDefault(msg, 3, 0),
5100
+ active: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
5101
+ requestTime: (f = msg.getRequestTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
5102
+ validUntil: (f = msg.getValidUntil()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
5103
+ type: jspb.Message.getFieldWithDefault(msg, 7, 0),
5104
+ contractor: jspb.Message.getFieldWithDefault(msg, 8, ""),
5105
+ deactivateafteropening: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
5106
+ devicepacketnumber: jspb.Message.getFieldWithDefault(msg, 10, 0)
5107
+ };
5108
+
5109
+ if (includeInstance) {
5110
+ obj.$jspbMessageInstance = msg;
5111
+ }
5112
+ return obj;
5113
+ };
5114
+ }
5115
+
5116
+
5117
+ /**
5118
+ * Deserializes binary data (in protobuf wire format).
5119
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5120
+ * @return {!proto.Spic.CabinetProto.OpenRequest}
5121
+ */
5122
+ proto.Spic.CabinetProto.OpenRequest.deserializeBinary = function(bytes) {
5123
+ var reader = new jspb.BinaryReader(bytes);
5124
+ var msg = new proto.Spic.CabinetProto.OpenRequest;
5125
+ return proto.Spic.CabinetProto.OpenRequest.deserializeBinaryFromReader(msg, reader);
5126
+ };
5127
+
5128
+
5129
+ /**
5130
+ * Deserializes binary data (in protobuf wire format) from the
5131
+ * given reader into the given message object.
5132
+ * @param {!proto.Spic.CabinetProto.OpenRequest} msg The message object to deserialize into.
5133
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5134
+ * @return {!proto.Spic.CabinetProto.OpenRequest}
5135
+ */
5136
+ proto.Spic.CabinetProto.OpenRequest.deserializeBinaryFromReader = function(msg, reader) {
5137
+ while (reader.nextField()) {
5138
+ if (reader.isEndGroup()) {
5139
+ break;
5140
+ }
5141
+ var field = reader.getFieldNumber();
5142
+ switch (field) {
5143
+ case 1:
5144
+ var value = /** @type {number} */ (reader.readInt64());
5145
+ msg.setId(value);
5146
+ break;
5147
+ case 2:
5148
+ var value = /** @type {number} */ (reader.readInt64());
5149
+ msg.setCabinetId(value);
5150
+ break;
5151
+ case 3:
5152
+ var value = /** @type {number} */ (reader.readInt64());
5153
+ msg.setRequesterId(value);
5154
+ break;
5155
+ case 4:
5156
+ var value = /** @type {boolean} */ (reader.readBool());
5157
+ msg.setActive(value);
5158
+ break;
5159
+ case 5:
5160
+ var value = new google_protobuf_timestamp_pb.Timestamp;
5161
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
5162
+ msg.setRequestTime(value);
5163
+ break;
5164
+ case 6:
5165
+ var value = new google_protobuf_timestamp_pb.Timestamp;
5166
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
5167
+ msg.setValidUntil(value);
5168
+ break;
5169
+ case 7:
5170
+ var value = /** @type {!proto.Spic.CabinetProto.OpenRequest.OpenRequestType} */ (reader.readEnum());
5171
+ msg.setType(value);
5172
+ break;
5173
+ case 8:
5174
+ var value = /** @type {string} */ (reader.readString());
5175
+ msg.setContractor(value);
5176
+ break;
5177
+ case 9:
5178
+ var value = /** @type {boolean} */ (reader.readBool());
5179
+ msg.setDeactivateafteropening(value);
5180
+ break;
5181
+ case 10:
5182
+ var value = /** @type {number} */ (reader.readInt32());
5183
+ msg.setDevicepacketnumber(value);
5184
+ break;
5185
+ default:
5186
+ reader.skipField();
5187
+ break;
5188
+ }
5189
+ }
5190
+ return msg;
5191
+ };
5192
+
5193
+
5194
+ /**
5195
+ * Serializes the message to binary data (in protobuf wire format).
5196
+ * @return {!Uint8Array}
5197
+ */
5198
+ proto.Spic.CabinetProto.OpenRequest.prototype.serializeBinary = function() {
5199
+ var writer = new jspb.BinaryWriter();
5200
+ proto.Spic.CabinetProto.OpenRequest.serializeBinaryToWriter(this, writer);
5201
+ return writer.getResultBuffer();
5202
+ };
5203
+
5204
+
5205
+ /**
5206
+ * Serializes the given message to binary data (in protobuf wire
5207
+ * format), writing to the given BinaryWriter.
5208
+ * @param {!proto.Spic.CabinetProto.OpenRequest} message
5209
+ * @param {!jspb.BinaryWriter} writer
5210
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5211
+ */
5212
+ proto.Spic.CabinetProto.OpenRequest.serializeBinaryToWriter = function(message, writer) {
5213
+ var f = undefined;
5214
+ f = message.getId();
5215
+ if (f !== 0) {
5216
+ writer.writeInt64(
5217
+ 1,
5218
+ f
5219
+ );
5220
+ }
5221
+ f = message.getCabinetId();
5222
+ if (f !== 0) {
5223
+ writer.writeInt64(
5224
+ 2,
5225
+ f
5226
+ );
5227
+ }
5228
+ f = message.getRequesterId();
5229
+ if (f !== 0) {
5230
+ writer.writeInt64(
5231
+ 3,
5232
+ f
5233
+ );
5234
+ }
5235
+ f = message.getActive();
5236
+ if (f) {
5237
+ writer.writeBool(
5238
+ 4,
5239
+ f
5240
+ );
5241
+ }
5242
+ f = message.getRequestTime();
5243
+ if (f != null) {
5244
+ writer.writeMessage(
5245
+ 5,
5246
+ f,
5247
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
5248
+ );
5249
+ }
5250
+ f = message.getValidUntil();
5251
+ if (f != null) {
5252
+ writer.writeMessage(
5253
+ 6,
5254
+ f,
5255
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
5256
+ );
5257
+ }
5258
+ f = message.getType();
5259
+ if (f !== 0.0) {
5260
+ writer.writeEnum(
5261
+ 7,
5262
+ f
5263
+ );
5264
+ }
5265
+ f = message.getContractor();
5266
+ if (f.length > 0) {
5267
+ writer.writeString(
5268
+ 8,
5269
+ f
5270
+ );
5271
+ }
5272
+ f = message.getDeactivateafteropening();
5273
+ if (f) {
5274
+ writer.writeBool(
5275
+ 9,
5276
+ f
5277
+ );
5278
+ }
5279
+ f = message.getDevicepacketnumber();
5280
+ if (f !== 0) {
5281
+ writer.writeInt32(
5282
+ 10,
5283
+ f
5284
+ );
5285
+ }
5286
+ };
5287
+
5288
+
5289
+ /**
5290
+ * @enum {number}
5291
+ */
5292
+ proto.Spic.CabinetProto.OpenRequest.OpenRequestType = {
5293
+ APP_OPENING: 0,
5294
+ ADMIN_OPENING: 1
5295
+ };
5296
+
5297
+
5298
+
5299
+
5300
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5301
+ /**
5302
+ * Creates an object representation of this proto.
5303
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5304
+ * Optional fields that are not set will be set to undefined.
5305
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5306
+ * For the list of reserved names please see:
5307
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5308
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5309
+ * JSPB instance for transitional soy proto support:
5310
+ * http://goto/soy-param-migration
5311
+ * @return {!Object}
5312
+ */
5313
+ proto.Spic.CabinetProto.OpenRequest.CreateRequest.prototype.toObject = function(opt_includeInstance) {
5314
+ return proto.Spic.CabinetProto.OpenRequest.CreateRequest.toObject(opt_includeInstance, this);
5315
+ };
5316
+
5317
+
5318
+ /**
5319
+ * Static version of the {@see toObject} method.
5320
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5321
+ * the JSPB instance for transitional soy proto support:
5322
+ * http://goto/soy-param-migration
5323
+ * @param {!proto.Spic.CabinetProto.OpenRequest.CreateRequest} msg The msg instance to transform.
5324
+ * @return {!Object}
5325
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5326
+ */
5327
+ proto.Spic.CabinetProto.OpenRequest.CreateRequest.toObject = function(includeInstance, msg) {
5328
+ var f, obj = {
5329
+ cabinetId: jspb.Message.getFieldWithDefault(msg, 1, 0),
5330
+ requesterId: jspb.Message.getFieldWithDefault(msg, 2, 0),
5331
+ requestTime: (f = msg.getRequestTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
5332
+ validUntil: (f = msg.getValidUntil()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
5333
+ longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
5334
+ latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
5335
+ type: jspb.Message.getFieldWithDefault(msg, 7, 0),
5336
+ contractor: jspb.Message.getFieldWithDefault(msg, 8, ""),
5337
+ deactivateafteropening: jspb.Message.getBooleanFieldWithDefault(msg, 9, false)
5338
+ };
5339
+
5340
+ if (includeInstance) {
5341
+ obj.$jspbMessageInstance = msg;
5342
+ }
5343
+ return obj;
5344
+ };
5345
+ }
5346
+
5347
+
5348
+ /**
5349
+ * Deserializes binary data (in protobuf wire format).
5350
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5351
+ * @return {!proto.Spic.CabinetProto.OpenRequest.CreateRequest}
5352
+ */
5353
+ proto.Spic.CabinetProto.OpenRequest.CreateRequest.deserializeBinary = function(bytes) {
5354
+ var reader = new jspb.BinaryReader(bytes);
5355
+ var msg = new proto.Spic.CabinetProto.OpenRequest.CreateRequest;
5356
+ return proto.Spic.CabinetProto.OpenRequest.CreateRequest.deserializeBinaryFromReader(msg, reader);
5357
+ };
5358
+
5359
+
5360
+ /**
5361
+ * Deserializes binary data (in protobuf wire format) from the
5362
+ * given reader into the given message object.
5363
+ * @param {!proto.Spic.CabinetProto.OpenRequest.CreateRequest} msg The message object to deserialize into.
5364
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5365
+ * @return {!proto.Spic.CabinetProto.OpenRequest.CreateRequest}
5366
+ */
5367
+ proto.Spic.CabinetProto.OpenRequest.CreateRequest.deserializeBinaryFromReader = function(msg, reader) {
5368
+ while (reader.nextField()) {
5369
+ if (reader.isEndGroup()) {
5370
+ break;
5371
+ }
5372
+ var field = reader.getFieldNumber();
5373
+ switch (field) {
5374
+ case 1:
5375
+ var value = /** @type {number} */ (reader.readInt64());
5376
+ msg.setCabinetId(value);
5377
+ break;
5378
+ case 2:
5379
+ var value = /** @type {number} */ (reader.readInt64());
5380
+ msg.setRequesterId(value);
5381
+ break;
5382
+ case 3:
5383
+ var value = new google_protobuf_timestamp_pb.Timestamp;
5384
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
5385
+ msg.setRequestTime(value);
5386
+ break;
5387
+ case 4:
5388
+ var value = new google_protobuf_timestamp_pb.Timestamp;
5389
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
5390
+ msg.setValidUntil(value);
5391
+ break;
5392
+ case 5:
5393
+ var value = /** @type {number} */ (reader.readDouble());
5394
+ msg.setLongitude(value);
5395
+ break;
5396
+ case 6:
5397
+ var value = /** @type {number} */ (reader.readDouble());
5398
+ msg.setLatitude(value);
5399
+ break;
5400
+ case 7:
5401
+ var value = /** @type {!proto.Spic.CabinetProto.OpenRequest.OpenRequestType} */ (reader.readEnum());
5402
+ msg.setType(value);
5403
+ break;
5404
+ case 8:
5405
+ var value = /** @type {string} */ (reader.readString());
5406
+ msg.setContractor(value);
5407
+ break;
5408
+ case 9:
5409
+ var value = /** @type {boolean} */ (reader.readBool());
5410
+ msg.setDeactivateafteropening(value);
5411
+ break;
5412
+ default:
5413
+ reader.skipField();
5414
+ break;
5415
+ }
5416
+ }
5417
+ return msg;
5418
+ };
5419
+
5420
+
5421
+ /**
5422
+ * Serializes the message to binary data (in protobuf wire format).
5423
+ * @return {!Uint8Array}
5424
+ */
5425
+ proto.Spic.CabinetProto.OpenRequest.CreateRequest.prototype.serializeBinary = function() {
5426
+ var writer = new jspb.BinaryWriter();
5427
+ proto.Spic.CabinetProto.OpenRequest.CreateRequest.serializeBinaryToWriter(this, writer);
5428
+ return writer.getResultBuffer();
5429
+ };
5430
+
5431
+
5432
+ /**
5433
+ * Serializes the given message to binary data (in protobuf wire
5434
+ * format), writing to the given BinaryWriter.
5435
+ * @param {!proto.Spic.CabinetProto.OpenRequest.CreateRequest} message
5436
+ * @param {!jspb.BinaryWriter} writer
5437
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5438
+ */
5439
+ proto.Spic.CabinetProto.OpenRequest.CreateRequest.serializeBinaryToWriter = function(message, writer) {
5440
+ var f = undefined;
5441
+ f = message.getCabinetId();
5442
+ if (f !== 0) {
5443
+ writer.writeInt64(
5444
+ 1,
5445
+ f
5446
+ );
5447
+ }
5448
+ f = message.getRequesterId();
5449
+ if (f !== 0) {
5450
+ writer.writeInt64(
5451
+ 2,
5452
+ f
5453
+ );
5454
+ }
5455
+ f = message.getRequestTime();
5456
+ if (f != null) {
5457
+ writer.writeMessage(
5458
+ 3,
5459
+ f,
5460
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
5461
+ );
5462
+ }
5463
+ f = message.getValidUntil();
5464
+ if (f != null) {
5465
+ writer.writeMessage(
5466
+ 4,
4343
5467
  f,
4344
5468
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
4345
5469
  );
@@ -4400,6 +5524,24 @@ proto.Spic.CabinetProto.OpenRequest.CreateRequest.prototype.setCabinetId = funct
4400
5524
  };
4401
5525
 
4402
5526
 
5527
+ /**
5528
+ * optional int64 requester_id = 2;
5529
+ * @return {number}
5530
+ */
5531
+ proto.Spic.CabinetProto.OpenRequest.CreateRequest.prototype.getRequesterId = function() {
5532
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
5533
+ };
5534
+
5535
+
5536
+ /**
5537
+ * @param {number} value
5538
+ * @return {!proto.Spic.CabinetProto.OpenRequest.CreateRequest} returns this
5539
+ */
5540
+ proto.Spic.CabinetProto.OpenRequest.CreateRequest.prototype.setRequesterId = function(value) {
5541
+ return jspb.Message.setProto3IntField(this, 2, value);
5542
+ };
5543
+
5544
+
4403
5545
  /**
4404
5546
  * optional google.protobuf.Timestamp request_time = 3;
4405
5547
  * @return {?proto.google.protobuf.Timestamp}
@@ -4855,20 +5997,20 @@ proto.Spic.CabinetProto.prototype.setUid = function(value) {
4855
5997
 
4856
5998
 
4857
5999
  /**
4858
- * optional int32 status = 5;
4859
- * @return {number}
6000
+ * optional StatusType status = 5;
6001
+ * @return {!proto.Spic.CabinetProto.StatusType}
4860
6002
  */
4861
6003
  proto.Spic.CabinetProto.prototype.getStatus = function() {
4862
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
6004
+ return /** @type {!proto.Spic.CabinetProto.StatusType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
4863
6005
  };
4864
6006
 
4865
6007
 
4866
6008
  /**
4867
- * @param {number} value
6009
+ * @param {!proto.Spic.CabinetProto.StatusType} value
4868
6010
  * @return {!proto.Spic.CabinetProto} returns this
4869
6011
  */
4870
6012
  proto.Spic.CabinetProto.prototype.setStatus = function(value) {
4871
- return jspb.Message.setProto3IntField(this, 5, value);
6013
+ return jspb.Message.setProto3EnumField(this, 5, value);
4872
6014
  };
4873
6015
 
4874
6016