@aneoconsultingfr/armonik.api.angular 3.16.0-edge.33.3616eee → 3.16.0-edge.41.0cb3902

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.
@@ -13482,6 +13482,9 @@ var SessionStatus;
13482
13482
  SessionStatus[SessionStatus["SESSION_STATUS_UNSPECIFIED"] = 0] = "SESSION_STATUS_UNSPECIFIED";
13483
13483
  SessionStatus[SessionStatus["SESSION_STATUS_RUNNING"] = 1] = "SESSION_STATUS_RUNNING";
13484
13484
  SessionStatus[SessionStatus["SESSION_STATUS_CANCELLED"] = 2] = "SESSION_STATUS_CANCELLED";
13485
+ SessionStatus[SessionStatus["SESSION_STATUS_PAUSED"] = 3] = "SESSION_STATUS_PAUSED";
13486
+ SessionStatus[SessionStatus["SESSION_STATUS_CLOSED"] = 4] = "SESSION_STATUS_CLOSED";
13487
+ SessionStatus[SessionStatus["SESSION_STATUS_DELETED"] = 5] = "SESSION_STATUS_DELETED";
13485
13488
  })(SessionStatus || (SessionStatus = {}));
13486
13489
 
13487
13490
  var SessionRawEnumField;
@@ -15902,6 +15905,818 @@ class CreateSessionReply {
15902
15905
  };
15903
15906
  }
15904
15907
  }
15908
+ /**
15909
+ * Message implementation for armonik.api.grpc.v1.sessions.PauseSessionRequest
15910
+ */
15911
+ class PauseSessionRequest {
15912
+ static { this.id = 'armonik.api.grpc.v1.sessions.PauseSessionRequest'; }
15913
+ /**
15914
+ * Deserialize binary data to message
15915
+ * @param instance message instance
15916
+ */
15917
+ static deserializeBinary(bytes) {
15918
+ const instance = new PauseSessionRequest();
15919
+ PauseSessionRequest.deserializeBinaryFromReader(instance, new BinaryReader(bytes));
15920
+ return instance;
15921
+ }
15922
+ /**
15923
+ * Check all the properties and set default protobuf values if necessary
15924
+ * @param _instance message instance
15925
+ */
15926
+ static refineValues(_instance) {
15927
+ _instance.sessionId = _instance.sessionId || '';
15928
+ }
15929
+ /**
15930
+ * Deserializes / reads binary message into message instance using provided binary reader
15931
+ * @param _instance message instance
15932
+ * @param _reader binary reader instance
15933
+ */
15934
+ static deserializeBinaryFromReader(_instance, _reader) {
15935
+ while (_reader.nextField()) {
15936
+ if (_reader.isEndGroup())
15937
+ break;
15938
+ switch (_reader.getFieldNumber()) {
15939
+ case 1:
15940
+ _instance.sessionId = _reader.readString();
15941
+ break;
15942
+ default:
15943
+ _reader.skipField();
15944
+ }
15945
+ }
15946
+ PauseSessionRequest.refineValues(_instance);
15947
+ }
15948
+ /**
15949
+ * Serializes a message to binary format using provided binary reader
15950
+ * @param _instance message instance
15951
+ * @param _writer binary writer instance
15952
+ */
15953
+ static serializeBinaryToWriter(_instance, _writer) {
15954
+ if (_instance.sessionId) {
15955
+ _writer.writeString(1, _instance.sessionId);
15956
+ }
15957
+ }
15958
+ /**
15959
+ * Message constructor. Initializes the properties and applies default Protobuf values if necessary
15960
+ * @param _value initial values object or instance of PauseSessionRequest to deeply clone from
15961
+ */
15962
+ constructor(_value) {
15963
+ _value = _value || {};
15964
+ this.sessionId = _value.sessionId;
15965
+ PauseSessionRequest.refineValues(this);
15966
+ }
15967
+ get sessionId() {
15968
+ return this._sessionId;
15969
+ }
15970
+ set sessionId(value) {
15971
+ this._sessionId = value;
15972
+ }
15973
+ /**
15974
+ * Serialize message to binary data
15975
+ * @param instance message instance
15976
+ */
15977
+ serializeBinary() {
15978
+ const writer = new BinaryWriter();
15979
+ PauseSessionRequest.serializeBinaryToWriter(this, writer);
15980
+ return writer.getResultBuffer();
15981
+ }
15982
+ /**
15983
+ * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)
15984
+ */
15985
+ toObject() {
15986
+ return {
15987
+ sessionId: this.sessionId
15988
+ };
15989
+ }
15990
+ /**
15991
+ * Convenience method to support JSON.stringify(message), replicates the structure of toObject()
15992
+ */
15993
+ toJSON() {
15994
+ return this.toObject();
15995
+ }
15996
+ /**
15997
+ * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json
15998
+ * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.
15999
+ * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required
16000
+ */
16001
+ toProtobufJSON(
16002
+ // @ts-ignore
16003
+ options) {
16004
+ return {
16005
+ sessionId: this.sessionId
16006
+ };
16007
+ }
16008
+ }
16009
+ /**
16010
+ * Message implementation for armonik.api.grpc.v1.sessions.PauseSessionResponse
16011
+ */
16012
+ class PauseSessionResponse {
16013
+ static { this.id = 'armonik.api.grpc.v1.sessions.PauseSessionResponse'; }
16014
+ /**
16015
+ * Deserialize binary data to message
16016
+ * @param instance message instance
16017
+ */
16018
+ static deserializeBinary(bytes) {
16019
+ const instance = new PauseSessionResponse();
16020
+ PauseSessionResponse.deserializeBinaryFromReader(instance, new BinaryReader(bytes));
16021
+ return instance;
16022
+ }
16023
+ /**
16024
+ * Check all the properties and set default protobuf values if necessary
16025
+ * @param _instance message instance
16026
+ */
16027
+ static refineValues(_instance) {
16028
+ _instance.session = _instance.session || undefined;
16029
+ }
16030
+ /**
16031
+ * Deserializes / reads binary message into message instance using provided binary reader
16032
+ * @param _instance message instance
16033
+ * @param _reader binary reader instance
16034
+ */
16035
+ static deserializeBinaryFromReader(_instance, _reader) {
16036
+ while (_reader.nextField()) {
16037
+ if (_reader.isEndGroup())
16038
+ break;
16039
+ switch (_reader.getFieldNumber()) {
16040
+ case 1:
16041
+ _instance.session = new SessionRaw();
16042
+ _reader.readMessage(_instance.session, SessionRaw.deserializeBinaryFromReader);
16043
+ break;
16044
+ default:
16045
+ _reader.skipField();
16046
+ }
16047
+ }
16048
+ PauseSessionResponse.refineValues(_instance);
16049
+ }
16050
+ /**
16051
+ * Serializes a message to binary format using provided binary reader
16052
+ * @param _instance message instance
16053
+ * @param _writer binary writer instance
16054
+ */
16055
+ static serializeBinaryToWriter(_instance, _writer) {
16056
+ if (_instance.session) {
16057
+ _writer.writeMessage(1, _instance.session, SessionRaw.serializeBinaryToWriter);
16058
+ }
16059
+ }
16060
+ /**
16061
+ * Message constructor. Initializes the properties and applies default Protobuf values if necessary
16062
+ * @param _value initial values object or instance of PauseSessionResponse to deeply clone from
16063
+ */
16064
+ constructor(_value) {
16065
+ _value = _value || {};
16066
+ this.session = _value.session ? new SessionRaw(_value.session) : undefined;
16067
+ PauseSessionResponse.refineValues(this);
16068
+ }
16069
+ get session() {
16070
+ return this._session;
16071
+ }
16072
+ set session(value) {
16073
+ this._session = value;
16074
+ }
16075
+ /**
16076
+ * Serialize message to binary data
16077
+ * @param instance message instance
16078
+ */
16079
+ serializeBinary() {
16080
+ const writer = new BinaryWriter();
16081
+ PauseSessionResponse.serializeBinaryToWriter(this, writer);
16082
+ return writer.getResultBuffer();
16083
+ }
16084
+ /**
16085
+ * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)
16086
+ */
16087
+ toObject() {
16088
+ return {
16089
+ session: this.session ? this.session.toObject() : undefined
16090
+ };
16091
+ }
16092
+ /**
16093
+ * Convenience method to support JSON.stringify(message), replicates the structure of toObject()
16094
+ */
16095
+ toJSON() {
16096
+ return this.toObject();
16097
+ }
16098
+ /**
16099
+ * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json
16100
+ * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.
16101
+ * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required
16102
+ */
16103
+ toProtobufJSON(
16104
+ // @ts-ignore
16105
+ options) {
16106
+ return {
16107
+ session: this.session ? this.session.toProtobufJSON(options) : null
16108
+ };
16109
+ }
16110
+ }
16111
+ /**
16112
+ * Message implementation for armonik.api.grpc.v1.sessions.ResumeSessionRequest
16113
+ */
16114
+ class ResumeSessionRequest {
16115
+ static { this.id = 'armonik.api.grpc.v1.sessions.ResumeSessionRequest'; }
16116
+ /**
16117
+ * Deserialize binary data to message
16118
+ * @param instance message instance
16119
+ */
16120
+ static deserializeBinary(bytes) {
16121
+ const instance = new ResumeSessionRequest();
16122
+ ResumeSessionRequest.deserializeBinaryFromReader(instance, new BinaryReader(bytes));
16123
+ return instance;
16124
+ }
16125
+ /**
16126
+ * Check all the properties and set default protobuf values if necessary
16127
+ * @param _instance message instance
16128
+ */
16129
+ static refineValues(_instance) {
16130
+ _instance.sessionId = _instance.sessionId || '';
16131
+ }
16132
+ /**
16133
+ * Deserializes / reads binary message into message instance using provided binary reader
16134
+ * @param _instance message instance
16135
+ * @param _reader binary reader instance
16136
+ */
16137
+ static deserializeBinaryFromReader(_instance, _reader) {
16138
+ while (_reader.nextField()) {
16139
+ if (_reader.isEndGroup())
16140
+ break;
16141
+ switch (_reader.getFieldNumber()) {
16142
+ case 1:
16143
+ _instance.sessionId = _reader.readString();
16144
+ break;
16145
+ default:
16146
+ _reader.skipField();
16147
+ }
16148
+ }
16149
+ ResumeSessionRequest.refineValues(_instance);
16150
+ }
16151
+ /**
16152
+ * Serializes a message to binary format using provided binary reader
16153
+ * @param _instance message instance
16154
+ * @param _writer binary writer instance
16155
+ */
16156
+ static serializeBinaryToWriter(_instance, _writer) {
16157
+ if (_instance.sessionId) {
16158
+ _writer.writeString(1, _instance.sessionId);
16159
+ }
16160
+ }
16161
+ /**
16162
+ * Message constructor. Initializes the properties and applies default Protobuf values if necessary
16163
+ * @param _value initial values object or instance of ResumeSessionRequest to deeply clone from
16164
+ */
16165
+ constructor(_value) {
16166
+ _value = _value || {};
16167
+ this.sessionId = _value.sessionId;
16168
+ ResumeSessionRequest.refineValues(this);
16169
+ }
16170
+ get sessionId() {
16171
+ return this._sessionId;
16172
+ }
16173
+ set sessionId(value) {
16174
+ this._sessionId = value;
16175
+ }
16176
+ /**
16177
+ * Serialize message to binary data
16178
+ * @param instance message instance
16179
+ */
16180
+ serializeBinary() {
16181
+ const writer = new BinaryWriter();
16182
+ ResumeSessionRequest.serializeBinaryToWriter(this, writer);
16183
+ return writer.getResultBuffer();
16184
+ }
16185
+ /**
16186
+ * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)
16187
+ */
16188
+ toObject() {
16189
+ return {
16190
+ sessionId: this.sessionId
16191
+ };
16192
+ }
16193
+ /**
16194
+ * Convenience method to support JSON.stringify(message), replicates the structure of toObject()
16195
+ */
16196
+ toJSON() {
16197
+ return this.toObject();
16198
+ }
16199
+ /**
16200
+ * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json
16201
+ * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.
16202
+ * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required
16203
+ */
16204
+ toProtobufJSON(
16205
+ // @ts-ignore
16206
+ options) {
16207
+ return {
16208
+ sessionId: this.sessionId
16209
+ };
16210
+ }
16211
+ }
16212
+ /**
16213
+ * Message implementation for armonik.api.grpc.v1.sessions.ResumeSessionResponse
16214
+ */
16215
+ class ResumeSessionResponse {
16216
+ static { this.id = 'armonik.api.grpc.v1.sessions.ResumeSessionResponse'; }
16217
+ /**
16218
+ * Deserialize binary data to message
16219
+ * @param instance message instance
16220
+ */
16221
+ static deserializeBinary(bytes) {
16222
+ const instance = new ResumeSessionResponse();
16223
+ ResumeSessionResponse.deserializeBinaryFromReader(instance, new BinaryReader(bytes));
16224
+ return instance;
16225
+ }
16226
+ /**
16227
+ * Check all the properties and set default protobuf values if necessary
16228
+ * @param _instance message instance
16229
+ */
16230
+ static refineValues(_instance) {
16231
+ _instance.session = _instance.session || undefined;
16232
+ }
16233
+ /**
16234
+ * Deserializes / reads binary message into message instance using provided binary reader
16235
+ * @param _instance message instance
16236
+ * @param _reader binary reader instance
16237
+ */
16238
+ static deserializeBinaryFromReader(_instance, _reader) {
16239
+ while (_reader.nextField()) {
16240
+ if (_reader.isEndGroup())
16241
+ break;
16242
+ switch (_reader.getFieldNumber()) {
16243
+ case 1:
16244
+ _instance.session = new SessionRaw();
16245
+ _reader.readMessage(_instance.session, SessionRaw.deserializeBinaryFromReader);
16246
+ break;
16247
+ default:
16248
+ _reader.skipField();
16249
+ }
16250
+ }
16251
+ ResumeSessionResponse.refineValues(_instance);
16252
+ }
16253
+ /**
16254
+ * Serializes a message to binary format using provided binary reader
16255
+ * @param _instance message instance
16256
+ * @param _writer binary writer instance
16257
+ */
16258
+ static serializeBinaryToWriter(_instance, _writer) {
16259
+ if (_instance.session) {
16260
+ _writer.writeMessage(1, _instance.session, SessionRaw.serializeBinaryToWriter);
16261
+ }
16262
+ }
16263
+ /**
16264
+ * Message constructor. Initializes the properties and applies default Protobuf values if necessary
16265
+ * @param _value initial values object or instance of ResumeSessionResponse to deeply clone from
16266
+ */
16267
+ constructor(_value) {
16268
+ _value = _value || {};
16269
+ this.session = _value.session ? new SessionRaw(_value.session) : undefined;
16270
+ ResumeSessionResponse.refineValues(this);
16271
+ }
16272
+ get session() {
16273
+ return this._session;
16274
+ }
16275
+ set session(value) {
16276
+ this._session = value;
16277
+ }
16278
+ /**
16279
+ * Serialize message to binary data
16280
+ * @param instance message instance
16281
+ */
16282
+ serializeBinary() {
16283
+ const writer = new BinaryWriter();
16284
+ ResumeSessionResponse.serializeBinaryToWriter(this, writer);
16285
+ return writer.getResultBuffer();
16286
+ }
16287
+ /**
16288
+ * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)
16289
+ */
16290
+ toObject() {
16291
+ return {
16292
+ session: this.session ? this.session.toObject() : undefined
16293
+ };
16294
+ }
16295
+ /**
16296
+ * Convenience method to support JSON.stringify(message), replicates the structure of toObject()
16297
+ */
16298
+ toJSON() {
16299
+ return this.toObject();
16300
+ }
16301
+ /**
16302
+ * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json
16303
+ * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.
16304
+ * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required
16305
+ */
16306
+ toProtobufJSON(
16307
+ // @ts-ignore
16308
+ options) {
16309
+ return {
16310
+ session: this.session ? this.session.toProtobufJSON(options) : null
16311
+ };
16312
+ }
16313
+ }
16314
+ /**
16315
+ * Message implementation for armonik.api.grpc.v1.sessions.CloseSessionRequest
16316
+ */
16317
+ class CloseSessionRequest {
16318
+ static { this.id = 'armonik.api.grpc.v1.sessions.CloseSessionRequest'; }
16319
+ /**
16320
+ * Deserialize binary data to message
16321
+ * @param instance message instance
16322
+ */
16323
+ static deserializeBinary(bytes) {
16324
+ const instance = new CloseSessionRequest();
16325
+ CloseSessionRequest.deserializeBinaryFromReader(instance, new BinaryReader(bytes));
16326
+ return instance;
16327
+ }
16328
+ /**
16329
+ * Check all the properties and set default protobuf values if necessary
16330
+ * @param _instance message instance
16331
+ */
16332
+ static refineValues(_instance) {
16333
+ _instance.sessionId = _instance.sessionId || '';
16334
+ }
16335
+ /**
16336
+ * Deserializes / reads binary message into message instance using provided binary reader
16337
+ * @param _instance message instance
16338
+ * @param _reader binary reader instance
16339
+ */
16340
+ static deserializeBinaryFromReader(_instance, _reader) {
16341
+ while (_reader.nextField()) {
16342
+ if (_reader.isEndGroup())
16343
+ break;
16344
+ switch (_reader.getFieldNumber()) {
16345
+ case 1:
16346
+ _instance.sessionId = _reader.readString();
16347
+ break;
16348
+ default:
16349
+ _reader.skipField();
16350
+ }
16351
+ }
16352
+ CloseSessionRequest.refineValues(_instance);
16353
+ }
16354
+ /**
16355
+ * Serializes a message to binary format using provided binary reader
16356
+ * @param _instance message instance
16357
+ * @param _writer binary writer instance
16358
+ */
16359
+ static serializeBinaryToWriter(_instance, _writer) {
16360
+ if (_instance.sessionId) {
16361
+ _writer.writeString(1, _instance.sessionId);
16362
+ }
16363
+ }
16364
+ /**
16365
+ * Message constructor. Initializes the properties and applies default Protobuf values if necessary
16366
+ * @param _value initial values object or instance of CloseSessionRequest to deeply clone from
16367
+ */
16368
+ constructor(_value) {
16369
+ _value = _value || {};
16370
+ this.sessionId = _value.sessionId;
16371
+ CloseSessionRequest.refineValues(this);
16372
+ }
16373
+ get sessionId() {
16374
+ return this._sessionId;
16375
+ }
16376
+ set sessionId(value) {
16377
+ this._sessionId = value;
16378
+ }
16379
+ /**
16380
+ * Serialize message to binary data
16381
+ * @param instance message instance
16382
+ */
16383
+ serializeBinary() {
16384
+ const writer = new BinaryWriter();
16385
+ CloseSessionRequest.serializeBinaryToWriter(this, writer);
16386
+ return writer.getResultBuffer();
16387
+ }
16388
+ /**
16389
+ * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)
16390
+ */
16391
+ toObject() {
16392
+ return {
16393
+ sessionId: this.sessionId
16394
+ };
16395
+ }
16396
+ /**
16397
+ * Convenience method to support JSON.stringify(message), replicates the structure of toObject()
16398
+ */
16399
+ toJSON() {
16400
+ return this.toObject();
16401
+ }
16402
+ /**
16403
+ * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json
16404
+ * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.
16405
+ * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required
16406
+ */
16407
+ toProtobufJSON(
16408
+ // @ts-ignore
16409
+ options) {
16410
+ return {
16411
+ sessionId: this.sessionId
16412
+ };
16413
+ }
16414
+ }
16415
+ /**
16416
+ * Message implementation for armonik.api.grpc.v1.sessions.CloseSessionResponse
16417
+ */
16418
+ class CloseSessionResponse {
16419
+ static { this.id = 'armonik.api.grpc.v1.sessions.CloseSessionResponse'; }
16420
+ /**
16421
+ * Deserialize binary data to message
16422
+ * @param instance message instance
16423
+ */
16424
+ static deserializeBinary(bytes) {
16425
+ const instance = new CloseSessionResponse();
16426
+ CloseSessionResponse.deserializeBinaryFromReader(instance, new BinaryReader(bytes));
16427
+ return instance;
16428
+ }
16429
+ /**
16430
+ * Check all the properties and set default protobuf values if necessary
16431
+ * @param _instance message instance
16432
+ */
16433
+ static refineValues(_instance) {
16434
+ _instance.session = _instance.session || undefined;
16435
+ }
16436
+ /**
16437
+ * Deserializes / reads binary message into message instance using provided binary reader
16438
+ * @param _instance message instance
16439
+ * @param _reader binary reader instance
16440
+ */
16441
+ static deserializeBinaryFromReader(_instance, _reader) {
16442
+ while (_reader.nextField()) {
16443
+ if (_reader.isEndGroup())
16444
+ break;
16445
+ switch (_reader.getFieldNumber()) {
16446
+ case 1:
16447
+ _instance.session = new SessionRaw();
16448
+ _reader.readMessage(_instance.session, SessionRaw.deserializeBinaryFromReader);
16449
+ break;
16450
+ default:
16451
+ _reader.skipField();
16452
+ }
16453
+ }
16454
+ CloseSessionResponse.refineValues(_instance);
16455
+ }
16456
+ /**
16457
+ * Serializes a message to binary format using provided binary reader
16458
+ * @param _instance message instance
16459
+ * @param _writer binary writer instance
16460
+ */
16461
+ static serializeBinaryToWriter(_instance, _writer) {
16462
+ if (_instance.session) {
16463
+ _writer.writeMessage(1, _instance.session, SessionRaw.serializeBinaryToWriter);
16464
+ }
16465
+ }
16466
+ /**
16467
+ * Message constructor. Initializes the properties and applies default Protobuf values if necessary
16468
+ * @param _value initial values object or instance of CloseSessionResponse to deeply clone from
16469
+ */
16470
+ constructor(_value) {
16471
+ _value = _value || {};
16472
+ this.session = _value.session ? new SessionRaw(_value.session) : undefined;
16473
+ CloseSessionResponse.refineValues(this);
16474
+ }
16475
+ get session() {
16476
+ return this._session;
16477
+ }
16478
+ set session(value) {
16479
+ this._session = value;
16480
+ }
16481
+ /**
16482
+ * Serialize message to binary data
16483
+ * @param instance message instance
16484
+ */
16485
+ serializeBinary() {
16486
+ const writer = new BinaryWriter();
16487
+ CloseSessionResponse.serializeBinaryToWriter(this, writer);
16488
+ return writer.getResultBuffer();
16489
+ }
16490
+ /**
16491
+ * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)
16492
+ */
16493
+ toObject() {
16494
+ return {
16495
+ session: this.session ? this.session.toObject() : undefined
16496
+ };
16497
+ }
16498
+ /**
16499
+ * Convenience method to support JSON.stringify(message), replicates the structure of toObject()
16500
+ */
16501
+ toJSON() {
16502
+ return this.toObject();
16503
+ }
16504
+ /**
16505
+ * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json
16506
+ * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.
16507
+ * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required
16508
+ */
16509
+ toProtobufJSON(
16510
+ // @ts-ignore
16511
+ options) {
16512
+ return {
16513
+ session: this.session ? this.session.toProtobufJSON(options) : null
16514
+ };
16515
+ }
16516
+ }
16517
+ /**
16518
+ * Message implementation for armonik.api.grpc.v1.sessions.DeleteSessionRequest
16519
+ */
16520
+ class DeleteSessionRequest {
16521
+ static { this.id = 'armonik.api.grpc.v1.sessions.DeleteSessionRequest'; }
16522
+ /**
16523
+ * Deserialize binary data to message
16524
+ * @param instance message instance
16525
+ */
16526
+ static deserializeBinary(bytes) {
16527
+ const instance = new DeleteSessionRequest();
16528
+ DeleteSessionRequest.deserializeBinaryFromReader(instance, new BinaryReader(bytes));
16529
+ return instance;
16530
+ }
16531
+ /**
16532
+ * Check all the properties and set default protobuf values if necessary
16533
+ * @param _instance message instance
16534
+ */
16535
+ static refineValues(_instance) {
16536
+ _instance.sessionId = _instance.sessionId || '';
16537
+ }
16538
+ /**
16539
+ * Deserializes / reads binary message into message instance using provided binary reader
16540
+ * @param _instance message instance
16541
+ * @param _reader binary reader instance
16542
+ */
16543
+ static deserializeBinaryFromReader(_instance, _reader) {
16544
+ while (_reader.nextField()) {
16545
+ if (_reader.isEndGroup())
16546
+ break;
16547
+ switch (_reader.getFieldNumber()) {
16548
+ case 1:
16549
+ _instance.sessionId = _reader.readString();
16550
+ break;
16551
+ default:
16552
+ _reader.skipField();
16553
+ }
16554
+ }
16555
+ DeleteSessionRequest.refineValues(_instance);
16556
+ }
16557
+ /**
16558
+ * Serializes a message to binary format using provided binary reader
16559
+ * @param _instance message instance
16560
+ * @param _writer binary writer instance
16561
+ */
16562
+ static serializeBinaryToWriter(_instance, _writer) {
16563
+ if (_instance.sessionId) {
16564
+ _writer.writeString(1, _instance.sessionId);
16565
+ }
16566
+ }
16567
+ /**
16568
+ * Message constructor. Initializes the properties and applies default Protobuf values if necessary
16569
+ * @param _value initial values object or instance of DeleteSessionRequest to deeply clone from
16570
+ */
16571
+ constructor(_value) {
16572
+ _value = _value || {};
16573
+ this.sessionId = _value.sessionId;
16574
+ DeleteSessionRequest.refineValues(this);
16575
+ }
16576
+ get sessionId() {
16577
+ return this._sessionId;
16578
+ }
16579
+ set sessionId(value) {
16580
+ this._sessionId = value;
16581
+ }
16582
+ /**
16583
+ * Serialize message to binary data
16584
+ * @param instance message instance
16585
+ */
16586
+ serializeBinary() {
16587
+ const writer = new BinaryWriter();
16588
+ DeleteSessionRequest.serializeBinaryToWriter(this, writer);
16589
+ return writer.getResultBuffer();
16590
+ }
16591
+ /**
16592
+ * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)
16593
+ */
16594
+ toObject() {
16595
+ return {
16596
+ sessionId: this.sessionId
16597
+ };
16598
+ }
16599
+ /**
16600
+ * Convenience method to support JSON.stringify(message), replicates the structure of toObject()
16601
+ */
16602
+ toJSON() {
16603
+ return this.toObject();
16604
+ }
16605
+ /**
16606
+ * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json
16607
+ * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.
16608
+ * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required
16609
+ */
16610
+ toProtobufJSON(
16611
+ // @ts-ignore
16612
+ options) {
16613
+ return {
16614
+ sessionId: this.sessionId
16615
+ };
16616
+ }
16617
+ }
16618
+ /**
16619
+ * Message implementation for armonik.api.grpc.v1.sessions.DeleteSessionResponse
16620
+ */
16621
+ class DeleteSessionResponse {
16622
+ static { this.id = 'armonik.api.grpc.v1.sessions.DeleteSessionResponse'; }
16623
+ /**
16624
+ * Deserialize binary data to message
16625
+ * @param instance message instance
16626
+ */
16627
+ static deserializeBinary(bytes) {
16628
+ const instance = new DeleteSessionResponse();
16629
+ DeleteSessionResponse.deserializeBinaryFromReader(instance, new BinaryReader(bytes));
16630
+ return instance;
16631
+ }
16632
+ /**
16633
+ * Check all the properties and set default protobuf values if necessary
16634
+ * @param _instance message instance
16635
+ */
16636
+ static refineValues(_instance) {
16637
+ _instance.session = _instance.session || undefined;
16638
+ }
16639
+ /**
16640
+ * Deserializes / reads binary message into message instance using provided binary reader
16641
+ * @param _instance message instance
16642
+ * @param _reader binary reader instance
16643
+ */
16644
+ static deserializeBinaryFromReader(_instance, _reader) {
16645
+ while (_reader.nextField()) {
16646
+ if (_reader.isEndGroup())
16647
+ break;
16648
+ switch (_reader.getFieldNumber()) {
16649
+ case 1:
16650
+ _instance.session = new SessionRaw();
16651
+ _reader.readMessage(_instance.session, SessionRaw.deserializeBinaryFromReader);
16652
+ break;
16653
+ default:
16654
+ _reader.skipField();
16655
+ }
16656
+ }
16657
+ DeleteSessionResponse.refineValues(_instance);
16658
+ }
16659
+ /**
16660
+ * Serializes a message to binary format using provided binary reader
16661
+ * @param _instance message instance
16662
+ * @param _writer binary writer instance
16663
+ */
16664
+ static serializeBinaryToWriter(_instance, _writer) {
16665
+ if (_instance.session) {
16666
+ _writer.writeMessage(1, _instance.session, SessionRaw.serializeBinaryToWriter);
16667
+ }
16668
+ }
16669
+ /**
16670
+ * Message constructor. Initializes the properties and applies default Protobuf values if necessary
16671
+ * @param _value initial values object or instance of DeleteSessionResponse to deeply clone from
16672
+ */
16673
+ constructor(_value) {
16674
+ _value = _value || {};
16675
+ this.session = _value.session ? new SessionRaw(_value.session) : undefined;
16676
+ DeleteSessionResponse.refineValues(this);
16677
+ }
16678
+ get session() {
16679
+ return this._session;
16680
+ }
16681
+ set session(value) {
16682
+ this._session = value;
16683
+ }
16684
+ /**
16685
+ * Serialize message to binary data
16686
+ * @param instance message instance
16687
+ */
16688
+ serializeBinary() {
16689
+ const writer = new BinaryWriter();
16690
+ DeleteSessionResponse.serializeBinaryToWriter(this, writer);
16691
+ return writer.getResultBuffer();
16692
+ }
16693
+ /**
16694
+ * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)
16695
+ */
16696
+ toObject() {
16697
+ return {
16698
+ session: this.session ? this.session.toObject() : undefined
16699
+ };
16700
+ }
16701
+ /**
16702
+ * Convenience method to support JSON.stringify(message), replicates the structure of toObject()
16703
+ */
16704
+ toJSON() {
16705
+ return this.toObject();
16706
+ }
16707
+ /**
16708
+ * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json
16709
+ * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.
16710
+ * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required
16711
+ */
16712
+ toProtobufJSON(
16713
+ // @ts-ignore
16714
+ options) {
16715
+ return {
16716
+ session: this.session ? this.session.toProtobufJSON(options) : null
16717
+ };
16718
+ }
16719
+ }
15905
16720
 
15906
16721
  /* tslint:disable */
15907
16722
  /* eslint-disable */
@@ -16004,6 +16819,78 @@ class SessionsClient {
16004
16819
  requestClass: CreateSessionRequest,
16005
16820
  responseClass: CreateSessionReply
16006
16821
  });
16822
+ },
16823
+ /**
16824
+ * Unary call: /armonik.api.grpc.v1.sessions.Sessions/PauseSession
16825
+ *
16826
+ * @param requestMessage Request message
16827
+ * @param requestMetadata Request metadata
16828
+ * @returns Observable<GrpcEvent<armonikApiGrpcV1Sessions007.PauseSessionResponse>>
16829
+ */
16830
+ pauseSession: (requestData, requestMetadata = new GrpcMetadata()) => {
16831
+ return this.handler.handle({
16832
+ type: GrpcCallType.unary,
16833
+ client: this.client,
16834
+ path: '/armonik.api.grpc.v1.sessions.Sessions/PauseSession',
16835
+ requestData,
16836
+ requestMetadata,
16837
+ requestClass: PauseSessionRequest,
16838
+ responseClass: PauseSessionResponse
16839
+ });
16840
+ },
16841
+ /**
16842
+ * Unary call: /armonik.api.grpc.v1.sessions.Sessions/ResumeSession
16843
+ *
16844
+ * @param requestMessage Request message
16845
+ * @param requestMetadata Request metadata
16846
+ * @returns Observable<GrpcEvent<armonikApiGrpcV1Sessions007.ResumeSessionResponse>>
16847
+ */
16848
+ resumeSession: (requestData, requestMetadata = new GrpcMetadata()) => {
16849
+ return this.handler.handle({
16850
+ type: GrpcCallType.unary,
16851
+ client: this.client,
16852
+ path: '/armonik.api.grpc.v1.sessions.Sessions/ResumeSession',
16853
+ requestData,
16854
+ requestMetadata,
16855
+ requestClass: ResumeSessionRequest,
16856
+ responseClass: ResumeSessionResponse
16857
+ });
16858
+ },
16859
+ /**
16860
+ * Unary call: /armonik.api.grpc.v1.sessions.Sessions/CloseSession
16861
+ *
16862
+ * @param requestMessage Request message
16863
+ * @param requestMetadata Request metadata
16864
+ * @returns Observable<GrpcEvent<armonikApiGrpcV1Sessions007.CloseSessionResponse>>
16865
+ */
16866
+ closeSession: (requestData, requestMetadata = new GrpcMetadata()) => {
16867
+ return this.handler.handle({
16868
+ type: GrpcCallType.unary,
16869
+ client: this.client,
16870
+ path: '/armonik.api.grpc.v1.sessions.Sessions/CloseSession',
16871
+ requestData,
16872
+ requestMetadata,
16873
+ requestClass: CloseSessionRequest,
16874
+ responseClass: CloseSessionResponse
16875
+ });
16876
+ },
16877
+ /**
16878
+ * Unary call: /armonik.api.grpc.v1.sessions.Sessions/DeleteSession
16879
+ *
16880
+ * @param requestMessage Request message
16881
+ * @param requestMetadata Request metadata
16882
+ * @returns Observable<GrpcEvent<armonikApiGrpcV1Sessions007.DeleteSessionResponse>>
16883
+ */
16884
+ deleteSession: (requestData, requestMetadata = new GrpcMetadata()) => {
16885
+ return this.handler.handle({
16886
+ type: GrpcCallType.unary,
16887
+ client: this.client,
16888
+ path: '/armonik.api.grpc.v1.sessions.Sessions/DeleteSession',
16889
+ requestData,
16890
+ requestMetadata,
16891
+ requestClass: DeleteSessionRequest,
16892
+ responseClass: DeleteSessionResponse
16893
+ });
16007
16894
  }
16008
16895
  };
16009
16896
  this.client = clientFactory.createClient('armonik.api.grpc.v1.sessions.Sessions', settings);
@@ -16056,6 +16943,54 @@ class SessionsClient {
16056
16943
  .createSession(requestData, requestMetadata)
16057
16944
  .pipe(throwStatusErrors(), takeMessages());
16058
16945
  }
16946
+ /**
16947
+ * Unary call @/armonik.api.grpc.v1.sessions.Sessions/PauseSession
16948
+ *
16949
+ * @param requestMessage Request message
16950
+ * @param requestMetadata Request metadata
16951
+ * @returns Observable<armonikApiGrpcV1Sessions007.PauseSessionResponse>
16952
+ */
16953
+ pauseSession(requestData, requestMetadata = new GrpcMetadata()) {
16954
+ return this.$raw
16955
+ .pauseSession(requestData, requestMetadata)
16956
+ .pipe(throwStatusErrors(), takeMessages());
16957
+ }
16958
+ /**
16959
+ * Unary call @/armonik.api.grpc.v1.sessions.Sessions/ResumeSession
16960
+ *
16961
+ * @param requestMessage Request message
16962
+ * @param requestMetadata Request metadata
16963
+ * @returns Observable<armonikApiGrpcV1Sessions007.ResumeSessionResponse>
16964
+ */
16965
+ resumeSession(requestData, requestMetadata = new GrpcMetadata()) {
16966
+ return this.$raw
16967
+ .resumeSession(requestData, requestMetadata)
16968
+ .pipe(throwStatusErrors(), takeMessages());
16969
+ }
16970
+ /**
16971
+ * Unary call @/armonik.api.grpc.v1.sessions.Sessions/CloseSession
16972
+ *
16973
+ * @param requestMessage Request message
16974
+ * @param requestMetadata Request metadata
16975
+ * @returns Observable<armonikApiGrpcV1Sessions007.CloseSessionResponse>
16976
+ */
16977
+ closeSession(requestData, requestMetadata = new GrpcMetadata()) {
16978
+ return this.$raw
16979
+ .closeSession(requestData, requestMetadata)
16980
+ .pipe(throwStatusErrors(), takeMessages());
16981
+ }
16982
+ /**
16983
+ * Unary call @/armonik.api.grpc.v1.sessions.Sessions/DeleteSession
16984
+ *
16985
+ * @param requestMessage Request message
16986
+ * @param requestMetadata Request metadata
16987
+ * @returns Observable<armonikApiGrpcV1Sessions007.DeleteSessionResponse>
16988
+ */
16989
+ deleteSession(requestData, requestMetadata = new GrpcMetadata()) {
16990
+ return this.$raw
16991
+ .deleteSession(requestData, requestMetadata)
16992
+ .pipe(throwStatusErrors(), takeMessages());
16993
+ }
16059
16994
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SessionsClient, deps: [{ token: GRPC_SESSIONS_CLIENT_SETTINGS, optional: true }, { token: GRPC_CLIENT_FACTORY }, { token: i1.GrpcHandler }], target: i0.ɵɵFactoryTarget.Injectable }); }
16060
16995
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SessionsClient, providedIn: 'any' }); }
16061
16996
  }