@google-apps/chat 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14141,25 +14141,25 @@
14141
14141
  return Duration;
14142
14142
  })();
14143
14143
 
14144
- protobuf.Timestamp = (function() {
14144
+ protobuf.FieldMask = (function() {
14145
14145
 
14146
14146
  /**
14147
- * Properties of a Timestamp.
14147
+ * Properties of a FieldMask.
14148
14148
  * @memberof google.protobuf
14149
- * @interface ITimestamp
14150
- * @property {number|Long|null} [seconds] Timestamp seconds
14151
- * @property {number|null} [nanos] Timestamp nanos
14149
+ * @interface IFieldMask
14150
+ * @property {Array.<string>|null} [paths] FieldMask paths
14152
14151
  */
14153
14152
 
14154
14153
  /**
14155
- * Constructs a new Timestamp.
14154
+ * Constructs a new FieldMask.
14156
14155
  * @memberof google.protobuf
14157
- * @classdesc Represents a Timestamp.
14158
- * @implements ITimestamp
14156
+ * @classdesc Represents a FieldMask.
14157
+ * @implements IFieldMask
14159
14158
  * @constructor
14160
- * @param {google.protobuf.ITimestamp=} [properties] Properties to set
14159
+ * @param {google.protobuf.IFieldMask=} [properties] Properties to set
14161
14160
  */
14162
- function Timestamp(properties) {
14161
+ function FieldMask(properties) {
14162
+ this.paths = [];
14163
14163
  if (properties)
14164
14164
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14165
14165
  if (properties[keys[i]] != null)
@@ -14167,89 +14167,78 @@
14167
14167
  }
14168
14168
 
14169
14169
  /**
14170
- * Timestamp seconds.
14171
- * @member {number|Long} seconds
14172
- * @memberof google.protobuf.Timestamp
14173
- * @instance
14174
- */
14175
- Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
14176
-
14177
- /**
14178
- * Timestamp nanos.
14179
- * @member {number} nanos
14180
- * @memberof google.protobuf.Timestamp
14170
+ * FieldMask paths.
14171
+ * @member {Array.<string>} paths
14172
+ * @memberof google.protobuf.FieldMask
14181
14173
  * @instance
14182
14174
  */
14183
- Timestamp.prototype.nanos = 0;
14175
+ FieldMask.prototype.paths = $util.emptyArray;
14184
14176
 
14185
14177
  /**
14186
- * Creates a new Timestamp instance using the specified properties.
14178
+ * Creates a new FieldMask instance using the specified properties.
14187
14179
  * @function create
14188
- * @memberof google.protobuf.Timestamp
14180
+ * @memberof google.protobuf.FieldMask
14189
14181
  * @static
14190
- * @param {google.protobuf.ITimestamp=} [properties] Properties to set
14191
- * @returns {google.protobuf.Timestamp} Timestamp instance
14182
+ * @param {google.protobuf.IFieldMask=} [properties] Properties to set
14183
+ * @returns {google.protobuf.FieldMask} FieldMask instance
14192
14184
  */
14193
- Timestamp.create = function create(properties) {
14194
- return new Timestamp(properties);
14185
+ FieldMask.create = function create(properties) {
14186
+ return new FieldMask(properties);
14195
14187
  };
14196
14188
 
14197
14189
  /**
14198
- * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
14190
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
14199
14191
  * @function encode
14200
- * @memberof google.protobuf.Timestamp
14192
+ * @memberof google.protobuf.FieldMask
14201
14193
  * @static
14202
- * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode
14194
+ * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode
14203
14195
  * @param {$protobuf.Writer} [writer] Writer to encode to
14204
14196
  * @returns {$protobuf.Writer} Writer
14205
14197
  */
14206
- Timestamp.encode = function encode(message, writer) {
14198
+ FieldMask.encode = function encode(message, writer) {
14207
14199
  if (!writer)
14208
14200
  writer = $Writer.create();
14209
- if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds"))
14210
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds);
14211
- if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos"))
14212
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos);
14201
+ if (message.paths != null && message.paths.length)
14202
+ for (var i = 0; i < message.paths.length; ++i)
14203
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]);
14213
14204
  return writer;
14214
14205
  };
14215
14206
 
14216
14207
  /**
14217
- * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
14208
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
14218
14209
  * @function encodeDelimited
14219
- * @memberof google.protobuf.Timestamp
14210
+ * @memberof google.protobuf.FieldMask
14220
14211
  * @static
14221
- * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode
14212
+ * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode
14222
14213
  * @param {$protobuf.Writer} [writer] Writer to encode to
14223
14214
  * @returns {$protobuf.Writer} Writer
14224
14215
  */
14225
- Timestamp.encodeDelimited = function encodeDelimited(message, writer) {
14216
+ FieldMask.encodeDelimited = function encodeDelimited(message, writer) {
14226
14217
  return this.encode(message, writer).ldelim();
14227
14218
  };
14228
14219
 
14229
14220
  /**
14230
- * Decodes a Timestamp message from the specified reader or buffer.
14221
+ * Decodes a FieldMask message from the specified reader or buffer.
14231
14222
  * @function decode
14232
- * @memberof google.protobuf.Timestamp
14223
+ * @memberof google.protobuf.FieldMask
14233
14224
  * @static
14234
14225
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14235
14226
  * @param {number} [length] Message length if known beforehand
14236
- * @returns {google.protobuf.Timestamp} Timestamp
14227
+ * @returns {google.protobuf.FieldMask} FieldMask
14237
14228
  * @throws {Error} If the payload is not a reader or valid buffer
14238
14229
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
14239
14230
  */
14240
- Timestamp.decode = function decode(reader, length) {
14231
+ FieldMask.decode = function decode(reader, length) {
14241
14232
  if (!(reader instanceof $Reader))
14242
14233
  reader = $Reader.create(reader);
14243
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp();
14234
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldMask();
14244
14235
  while (reader.pos < end) {
14245
14236
  var tag = reader.uint32();
14246
14237
  switch (tag >>> 3) {
14247
14238
  case 1: {
14248
- message.seconds = reader.int64();
14249
- break;
14250
- }
14251
- case 2: {
14252
- message.nanos = reader.int32();
14239
+ if (!(message.paths && message.paths.length))
14240
+ message.paths = [];
14241
+ message.paths.push(reader.string());
14253
14242
  break;
14254
14243
  }
14255
14244
  default:
@@ -14261,146 +14250,135 @@
14261
14250
  };
14262
14251
 
14263
14252
  /**
14264
- * Decodes a Timestamp message from the specified reader or buffer, length delimited.
14253
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
14265
14254
  * @function decodeDelimited
14266
- * @memberof google.protobuf.Timestamp
14255
+ * @memberof google.protobuf.FieldMask
14267
14256
  * @static
14268
14257
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14269
- * @returns {google.protobuf.Timestamp} Timestamp
14258
+ * @returns {google.protobuf.FieldMask} FieldMask
14270
14259
  * @throws {Error} If the payload is not a reader or valid buffer
14271
14260
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
14272
14261
  */
14273
- Timestamp.decodeDelimited = function decodeDelimited(reader) {
14262
+ FieldMask.decodeDelimited = function decodeDelimited(reader) {
14274
14263
  if (!(reader instanceof $Reader))
14275
14264
  reader = new $Reader(reader);
14276
14265
  return this.decode(reader, reader.uint32());
14277
14266
  };
14278
14267
 
14279
14268
  /**
14280
- * Verifies a Timestamp message.
14269
+ * Verifies a FieldMask message.
14281
14270
  * @function verify
14282
- * @memberof google.protobuf.Timestamp
14271
+ * @memberof google.protobuf.FieldMask
14283
14272
  * @static
14284
14273
  * @param {Object.<string,*>} message Plain object to verify
14285
14274
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
14286
14275
  */
14287
- Timestamp.verify = function verify(message) {
14276
+ FieldMask.verify = function verify(message) {
14288
14277
  if (typeof message !== "object" || message === null)
14289
14278
  return "object expected";
14290
- if (message.seconds != null && message.hasOwnProperty("seconds"))
14291
- if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high)))
14292
- return "seconds: integer|Long expected";
14293
- if (message.nanos != null && message.hasOwnProperty("nanos"))
14294
- if (!$util.isInteger(message.nanos))
14295
- return "nanos: integer expected";
14279
+ if (message.paths != null && message.hasOwnProperty("paths")) {
14280
+ if (!Array.isArray(message.paths))
14281
+ return "paths: array expected";
14282
+ for (var i = 0; i < message.paths.length; ++i)
14283
+ if (!$util.isString(message.paths[i]))
14284
+ return "paths: string[] expected";
14285
+ }
14296
14286
  return null;
14297
14287
  };
14298
14288
 
14299
14289
  /**
14300
- * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
14290
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
14301
14291
  * @function fromObject
14302
- * @memberof google.protobuf.Timestamp
14292
+ * @memberof google.protobuf.FieldMask
14303
14293
  * @static
14304
14294
  * @param {Object.<string,*>} object Plain object
14305
- * @returns {google.protobuf.Timestamp} Timestamp
14295
+ * @returns {google.protobuf.FieldMask} FieldMask
14306
14296
  */
14307
- Timestamp.fromObject = function fromObject(object) {
14308
- if (object instanceof $root.google.protobuf.Timestamp)
14297
+ FieldMask.fromObject = function fromObject(object) {
14298
+ if (object instanceof $root.google.protobuf.FieldMask)
14309
14299
  return object;
14310
- var message = new $root.google.protobuf.Timestamp();
14311
- if (object.seconds != null)
14312
- if ($util.Long)
14313
- (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false;
14314
- else if (typeof object.seconds === "string")
14315
- message.seconds = parseInt(object.seconds, 10);
14316
- else if (typeof object.seconds === "number")
14317
- message.seconds = object.seconds;
14318
- else if (typeof object.seconds === "object")
14319
- message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber();
14320
- if (object.nanos != null)
14321
- message.nanos = object.nanos | 0;
14300
+ var message = new $root.google.protobuf.FieldMask();
14301
+ if (object.paths) {
14302
+ if (!Array.isArray(object.paths))
14303
+ throw TypeError(".google.protobuf.FieldMask.paths: array expected");
14304
+ message.paths = [];
14305
+ for (var i = 0; i < object.paths.length; ++i)
14306
+ message.paths[i] = String(object.paths[i]);
14307
+ }
14322
14308
  return message;
14323
14309
  };
14324
14310
 
14325
14311
  /**
14326
- * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
14312
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
14327
14313
  * @function toObject
14328
- * @memberof google.protobuf.Timestamp
14314
+ * @memberof google.protobuf.FieldMask
14329
14315
  * @static
14330
- * @param {google.protobuf.Timestamp} message Timestamp
14316
+ * @param {google.protobuf.FieldMask} message FieldMask
14331
14317
  * @param {$protobuf.IConversionOptions} [options] Conversion options
14332
14318
  * @returns {Object.<string,*>} Plain object
14333
14319
  */
14334
- Timestamp.toObject = function toObject(message, options) {
14320
+ FieldMask.toObject = function toObject(message, options) {
14335
14321
  if (!options)
14336
14322
  options = {};
14337
14323
  var object = {};
14338
- if (options.defaults) {
14339
- if ($util.Long) {
14340
- var long = new $util.Long(0, 0, false);
14341
- object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
14342
- } else
14343
- object.seconds = options.longs === String ? "0" : 0;
14344
- object.nanos = 0;
14324
+ if (options.arrays || options.defaults)
14325
+ object.paths = [];
14326
+ if (message.paths && message.paths.length) {
14327
+ object.paths = [];
14328
+ for (var j = 0; j < message.paths.length; ++j)
14329
+ object.paths[j] = message.paths[j];
14345
14330
  }
14346
- if (message.seconds != null && message.hasOwnProperty("seconds"))
14347
- if (typeof message.seconds === "number")
14348
- object.seconds = options.longs === String ? String(message.seconds) : message.seconds;
14349
- else
14350
- object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds;
14351
- if (message.nanos != null && message.hasOwnProperty("nanos"))
14352
- object.nanos = message.nanos;
14353
14331
  return object;
14354
14332
  };
14355
14333
 
14356
14334
  /**
14357
- * Converts this Timestamp to JSON.
14335
+ * Converts this FieldMask to JSON.
14358
14336
  * @function toJSON
14359
- * @memberof google.protobuf.Timestamp
14337
+ * @memberof google.protobuf.FieldMask
14360
14338
  * @instance
14361
14339
  * @returns {Object.<string,*>} JSON object
14362
14340
  */
14363
- Timestamp.prototype.toJSON = function toJSON() {
14341
+ FieldMask.prototype.toJSON = function toJSON() {
14364
14342
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14365
14343
  };
14366
14344
 
14367
14345
  /**
14368
- * Gets the default type url for Timestamp
14346
+ * Gets the default type url for FieldMask
14369
14347
  * @function getTypeUrl
14370
- * @memberof google.protobuf.Timestamp
14348
+ * @memberof google.protobuf.FieldMask
14371
14349
  * @static
14372
14350
  * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
14373
14351
  * @returns {string} The default type url
14374
14352
  */
14375
- Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14353
+ FieldMask.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14376
14354
  if (typeUrlPrefix === undefined) {
14377
14355
  typeUrlPrefix = "type.googleapis.com";
14378
14356
  }
14379
- return typeUrlPrefix + "/google.protobuf.Timestamp";
14357
+ return typeUrlPrefix + "/google.protobuf.FieldMask";
14380
14358
  };
14381
14359
 
14382
- return Timestamp;
14360
+ return FieldMask;
14383
14361
  })();
14384
14362
 
14385
- protobuf.FieldMask = (function() {
14363
+ protobuf.Timestamp = (function() {
14386
14364
 
14387
14365
  /**
14388
- * Properties of a FieldMask.
14366
+ * Properties of a Timestamp.
14389
14367
  * @memberof google.protobuf
14390
- * @interface IFieldMask
14391
- * @property {Array.<string>|null} [paths] FieldMask paths
14368
+ * @interface ITimestamp
14369
+ * @property {number|Long|null} [seconds] Timestamp seconds
14370
+ * @property {number|null} [nanos] Timestamp nanos
14392
14371
  */
14393
14372
 
14394
14373
  /**
14395
- * Constructs a new FieldMask.
14374
+ * Constructs a new Timestamp.
14396
14375
  * @memberof google.protobuf
14397
- * @classdesc Represents a FieldMask.
14398
- * @implements IFieldMask
14376
+ * @classdesc Represents a Timestamp.
14377
+ * @implements ITimestamp
14399
14378
  * @constructor
14400
- * @param {google.protobuf.IFieldMask=} [properties] Properties to set
14379
+ * @param {google.protobuf.ITimestamp=} [properties] Properties to set
14401
14380
  */
14402
- function FieldMask(properties) {
14403
- this.paths = [];
14381
+ function Timestamp(properties) {
14404
14382
  if (properties)
14405
14383
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14406
14384
  if (properties[keys[i]] != null)
@@ -14408,78 +14386,89 @@
14408
14386
  }
14409
14387
 
14410
14388
  /**
14411
- * FieldMask paths.
14412
- * @member {Array.<string>} paths
14413
- * @memberof google.protobuf.FieldMask
14389
+ * Timestamp seconds.
14390
+ * @member {number|Long} seconds
14391
+ * @memberof google.protobuf.Timestamp
14414
14392
  * @instance
14415
14393
  */
14416
- FieldMask.prototype.paths = $util.emptyArray;
14394
+ Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
14417
14395
 
14418
14396
  /**
14419
- * Creates a new FieldMask instance using the specified properties.
14397
+ * Timestamp nanos.
14398
+ * @member {number} nanos
14399
+ * @memberof google.protobuf.Timestamp
14400
+ * @instance
14401
+ */
14402
+ Timestamp.prototype.nanos = 0;
14403
+
14404
+ /**
14405
+ * Creates a new Timestamp instance using the specified properties.
14420
14406
  * @function create
14421
- * @memberof google.protobuf.FieldMask
14407
+ * @memberof google.protobuf.Timestamp
14422
14408
  * @static
14423
- * @param {google.protobuf.IFieldMask=} [properties] Properties to set
14424
- * @returns {google.protobuf.FieldMask} FieldMask instance
14409
+ * @param {google.protobuf.ITimestamp=} [properties] Properties to set
14410
+ * @returns {google.protobuf.Timestamp} Timestamp instance
14425
14411
  */
14426
- FieldMask.create = function create(properties) {
14427
- return new FieldMask(properties);
14412
+ Timestamp.create = function create(properties) {
14413
+ return new Timestamp(properties);
14428
14414
  };
14429
14415
 
14430
14416
  /**
14431
- * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
14417
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
14432
14418
  * @function encode
14433
- * @memberof google.protobuf.FieldMask
14419
+ * @memberof google.protobuf.Timestamp
14434
14420
  * @static
14435
- * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode
14421
+ * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode
14436
14422
  * @param {$protobuf.Writer} [writer] Writer to encode to
14437
14423
  * @returns {$protobuf.Writer} Writer
14438
14424
  */
14439
- FieldMask.encode = function encode(message, writer) {
14425
+ Timestamp.encode = function encode(message, writer) {
14440
14426
  if (!writer)
14441
14427
  writer = $Writer.create();
14442
- if (message.paths != null && message.paths.length)
14443
- for (var i = 0; i < message.paths.length; ++i)
14444
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]);
14428
+ if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds"))
14429
+ writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds);
14430
+ if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos"))
14431
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos);
14445
14432
  return writer;
14446
14433
  };
14447
14434
 
14448
14435
  /**
14449
- * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
14436
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
14450
14437
  * @function encodeDelimited
14451
- * @memberof google.protobuf.FieldMask
14438
+ * @memberof google.protobuf.Timestamp
14452
14439
  * @static
14453
- * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode
14440
+ * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode
14454
14441
  * @param {$protobuf.Writer} [writer] Writer to encode to
14455
14442
  * @returns {$protobuf.Writer} Writer
14456
14443
  */
14457
- FieldMask.encodeDelimited = function encodeDelimited(message, writer) {
14444
+ Timestamp.encodeDelimited = function encodeDelimited(message, writer) {
14458
14445
  return this.encode(message, writer).ldelim();
14459
14446
  };
14460
14447
 
14461
14448
  /**
14462
- * Decodes a FieldMask message from the specified reader or buffer.
14449
+ * Decodes a Timestamp message from the specified reader or buffer.
14463
14450
  * @function decode
14464
- * @memberof google.protobuf.FieldMask
14451
+ * @memberof google.protobuf.Timestamp
14465
14452
  * @static
14466
14453
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14467
14454
  * @param {number} [length] Message length if known beforehand
14468
- * @returns {google.protobuf.FieldMask} FieldMask
14455
+ * @returns {google.protobuf.Timestamp} Timestamp
14469
14456
  * @throws {Error} If the payload is not a reader or valid buffer
14470
14457
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
14471
14458
  */
14472
- FieldMask.decode = function decode(reader, length) {
14459
+ Timestamp.decode = function decode(reader, length) {
14473
14460
  if (!(reader instanceof $Reader))
14474
14461
  reader = $Reader.create(reader);
14475
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldMask();
14462
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp();
14476
14463
  while (reader.pos < end) {
14477
14464
  var tag = reader.uint32();
14478
14465
  switch (tag >>> 3) {
14479
14466
  case 1: {
14480
- if (!(message.paths && message.paths.length))
14481
- message.paths = [];
14482
- message.paths.push(reader.string());
14467
+ message.seconds = reader.int64();
14468
+ break;
14469
+ }
14470
+ case 2: {
14471
+ message.nanos = reader.int32();
14483
14472
  break;
14484
14473
  }
14485
14474
  default:
@@ -14491,114 +14480,125 @@
14491
14480
  };
14492
14481
 
14493
14482
  /**
14494
- * Decodes a FieldMask message from the specified reader or buffer, length delimited.
14483
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
14495
14484
  * @function decodeDelimited
14496
- * @memberof google.protobuf.FieldMask
14485
+ * @memberof google.protobuf.Timestamp
14497
14486
  * @static
14498
14487
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14499
- * @returns {google.protobuf.FieldMask} FieldMask
14488
+ * @returns {google.protobuf.Timestamp} Timestamp
14500
14489
  * @throws {Error} If the payload is not a reader or valid buffer
14501
14490
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
14502
14491
  */
14503
- FieldMask.decodeDelimited = function decodeDelimited(reader) {
14492
+ Timestamp.decodeDelimited = function decodeDelimited(reader) {
14504
14493
  if (!(reader instanceof $Reader))
14505
14494
  reader = new $Reader(reader);
14506
14495
  return this.decode(reader, reader.uint32());
14507
14496
  };
14508
14497
 
14509
14498
  /**
14510
- * Verifies a FieldMask message.
14499
+ * Verifies a Timestamp message.
14511
14500
  * @function verify
14512
- * @memberof google.protobuf.FieldMask
14501
+ * @memberof google.protobuf.Timestamp
14513
14502
  * @static
14514
14503
  * @param {Object.<string,*>} message Plain object to verify
14515
14504
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
14516
14505
  */
14517
- FieldMask.verify = function verify(message) {
14506
+ Timestamp.verify = function verify(message) {
14518
14507
  if (typeof message !== "object" || message === null)
14519
14508
  return "object expected";
14520
- if (message.paths != null && message.hasOwnProperty("paths")) {
14521
- if (!Array.isArray(message.paths))
14522
- return "paths: array expected";
14523
- for (var i = 0; i < message.paths.length; ++i)
14524
- if (!$util.isString(message.paths[i]))
14525
- return "paths: string[] expected";
14526
- }
14509
+ if (message.seconds != null && message.hasOwnProperty("seconds"))
14510
+ if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high)))
14511
+ return "seconds: integer|Long expected";
14512
+ if (message.nanos != null && message.hasOwnProperty("nanos"))
14513
+ if (!$util.isInteger(message.nanos))
14514
+ return "nanos: integer expected";
14527
14515
  return null;
14528
14516
  };
14529
14517
 
14530
14518
  /**
14531
- * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
14519
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
14532
14520
  * @function fromObject
14533
- * @memberof google.protobuf.FieldMask
14521
+ * @memberof google.protobuf.Timestamp
14534
14522
  * @static
14535
14523
  * @param {Object.<string,*>} object Plain object
14536
- * @returns {google.protobuf.FieldMask} FieldMask
14524
+ * @returns {google.protobuf.Timestamp} Timestamp
14537
14525
  */
14538
- FieldMask.fromObject = function fromObject(object) {
14539
- if (object instanceof $root.google.protobuf.FieldMask)
14526
+ Timestamp.fromObject = function fromObject(object) {
14527
+ if (object instanceof $root.google.protobuf.Timestamp)
14540
14528
  return object;
14541
- var message = new $root.google.protobuf.FieldMask();
14542
- if (object.paths) {
14543
- if (!Array.isArray(object.paths))
14544
- throw TypeError(".google.protobuf.FieldMask.paths: array expected");
14545
- message.paths = [];
14546
- for (var i = 0; i < object.paths.length; ++i)
14547
- message.paths[i] = String(object.paths[i]);
14548
- }
14529
+ var message = new $root.google.protobuf.Timestamp();
14530
+ if (object.seconds != null)
14531
+ if ($util.Long)
14532
+ (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false;
14533
+ else if (typeof object.seconds === "string")
14534
+ message.seconds = parseInt(object.seconds, 10);
14535
+ else if (typeof object.seconds === "number")
14536
+ message.seconds = object.seconds;
14537
+ else if (typeof object.seconds === "object")
14538
+ message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber();
14539
+ if (object.nanos != null)
14540
+ message.nanos = object.nanos | 0;
14549
14541
  return message;
14550
14542
  };
14551
14543
 
14552
14544
  /**
14553
- * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
14545
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
14554
14546
  * @function toObject
14555
- * @memberof google.protobuf.FieldMask
14547
+ * @memberof google.protobuf.Timestamp
14556
14548
  * @static
14557
- * @param {google.protobuf.FieldMask} message FieldMask
14549
+ * @param {google.protobuf.Timestamp} message Timestamp
14558
14550
  * @param {$protobuf.IConversionOptions} [options] Conversion options
14559
14551
  * @returns {Object.<string,*>} Plain object
14560
14552
  */
14561
- FieldMask.toObject = function toObject(message, options) {
14553
+ Timestamp.toObject = function toObject(message, options) {
14562
14554
  if (!options)
14563
14555
  options = {};
14564
14556
  var object = {};
14565
- if (options.arrays || options.defaults)
14566
- object.paths = [];
14567
- if (message.paths && message.paths.length) {
14568
- object.paths = [];
14569
- for (var j = 0; j < message.paths.length; ++j)
14570
- object.paths[j] = message.paths[j];
14557
+ if (options.defaults) {
14558
+ if ($util.Long) {
14559
+ var long = new $util.Long(0, 0, false);
14560
+ object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
14561
+ } else
14562
+ object.seconds = options.longs === String ? "0" : 0;
14563
+ object.nanos = 0;
14571
14564
  }
14565
+ if (message.seconds != null && message.hasOwnProperty("seconds"))
14566
+ if (typeof message.seconds === "number")
14567
+ object.seconds = options.longs === String ? String(message.seconds) : message.seconds;
14568
+ else
14569
+ object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds;
14570
+ if (message.nanos != null && message.hasOwnProperty("nanos"))
14571
+ object.nanos = message.nanos;
14572
14572
  return object;
14573
14573
  };
14574
14574
 
14575
14575
  /**
14576
- * Converts this FieldMask to JSON.
14576
+ * Converts this Timestamp to JSON.
14577
14577
  * @function toJSON
14578
- * @memberof google.protobuf.FieldMask
14578
+ * @memberof google.protobuf.Timestamp
14579
14579
  * @instance
14580
14580
  * @returns {Object.<string,*>} JSON object
14581
14581
  */
14582
- FieldMask.prototype.toJSON = function toJSON() {
14582
+ Timestamp.prototype.toJSON = function toJSON() {
14583
14583
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14584
14584
  };
14585
14585
 
14586
14586
  /**
14587
- * Gets the default type url for FieldMask
14587
+ * Gets the default type url for Timestamp
14588
14588
  * @function getTypeUrl
14589
- * @memberof google.protobuf.FieldMask
14589
+ * @memberof google.protobuf.Timestamp
14590
14590
  * @static
14591
14591
  * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
14592
14592
  * @returns {string} The default type url
14593
14593
  */
14594
- FieldMask.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14594
+ Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14595
14595
  if (typeUrlPrefix === undefined) {
14596
14596
  typeUrlPrefix = "type.googleapis.com";
14597
14597
  }
14598
- return typeUrlPrefix + "/google.protobuf.FieldMask";
14598
+ return typeUrlPrefix + "/google.protobuf.Timestamp";
14599
14599
  };
14600
14600
 
14601
- return FieldMask;
14601
+ return Timestamp;
14602
14602
  })();
14603
14603
 
14604
14604
  protobuf.Empty = (function() {
@@ -21346,6 +21346,7 @@
21346
21346
  * @interface IIcon
21347
21347
  * @property {string|null} [knownIcon] Icon knownIcon
21348
21348
  * @property {string|null} [iconUrl] Icon iconUrl
21349
+ * @property {google.apps.card.v1.IMaterialIcon|null} [materialIcon] Icon materialIcon
21349
21350
  * @property {string|null} [altText] Icon altText
21350
21351
  * @property {google.apps.card.v1.Widget.ImageType|null} [imageType] Icon imageType
21351
21352
  */
@@ -21381,6 +21382,14 @@
21381
21382
  */
21382
21383
  Icon.prototype.iconUrl = null;
21383
21384
 
21385
+ /**
21386
+ * Icon materialIcon.
21387
+ * @member {google.apps.card.v1.IMaterialIcon|null|undefined} materialIcon
21388
+ * @memberof google.apps.card.v1.Icon
21389
+ * @instance
21390
+ */
21391
+ Icon.prototype.materialIcon = null;
21392
+
21384
21393
  /**
21385
21394
  * Icon altText.
21386
21395
  * @member {string} altText
@@ -21402,12 +21411,12 @@
21402
21411
 
21403
21412
  /**
21404
21413
  * Icon icons.
21405
- * @member {"knownIcon"|"iconUrl"|undefined} icons
21414
+ * @member {"knownIcon"|"iconUrl"|"materialIcon"|undefined} icons
21406
21415
  * @memberof google.apps.card.v1.Icon
21407
21416
  * @instance
21408
21417
  */
21409
21418
  Object.defineProperty(Icon.prototype, "icons", {
21410
- get: $util.oneOfGetter($oneOfFields = ["knownIcon", "iconUrl"]),
21419
+ get: $util.oneOfGetter($oneOfFields = ["knownIcon", "iconUrl", "materialIcon"]),
21411
21420
  set: $util.oneOfSetter($oneOfFields)
21412
21421
  });
21413
21422
 
@@ -21443,6 +21452,8 @@
21443
21452
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.altText);
21444
21453
  if (message.imageType != null && Object.hasOwnProperty.call(message, "imageType"))
21445
21454
  writer.uint32(/* id 4, wireType 0 =*/32).int32(message.imageType);
21455
+ if (message.materialIcon != null && Object.hasOwnProperty.call(message, "materialIcon"))
21456
+ $root.google.apps.card.v1.MaterialIcon.encode(message.materialIcon, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
21446
21457
  return writer;
21447
21458
  };
21448
21459
 
@@ -21485,6 +21496,10 @@
21485
21496
  message.iconUrl = reader.string();
21486
21497
  break;
21487
21498
  }
21499
+ case 5: {
21500
+ message.materialIcon = $root.google.apps.card.v1.MaterialIcon.decode(reader, reader.uint32());
21501
+ break;
21502
+ }
21488
21503
  case 3: {
21489
21504
  message.altText = reader.string();
21490
21505
  break;
@@ -21541,6 +21556,16 @@
21541
21556
  if (!$util.isString(message.iconUrl))
21542
21557
  return "iconUrl: string expected";
21543
21558
  }
21559
+ if (message.materialIcon != null && message.hasOwnProperty("materialIcon")) {
21560
+ if (properties.icons === 1)
21561
+ return "icons: multiple values";
21562
+ properties.icons = 1;
21563
+ {
21564
+ var error = $root.google.apps.card.v1.MaterialIcon.verify(message.materialIcon);
21565
+ if (error)
21566
+ return "materialIcon." + error;
21567
+ }
21568
+ }
21544
21569
  if (message.altText != null && message.hasOwnProperty("altText"))
21545
21570
  if (!$util.isString(message.altText))
21546
21571
  return "altText: string expected";
@@ -21571,6 +21596,11 @@
21571
21596
  message.knownIcon = String(object.knownIcon);
21572
21597
  if (object.iconUrl != null)
21573
21598
  message.iconUrl = String(object.iconUrl);
21599
+ if (object.materialIcon != null) {
21600
+ if (typeof object.materialIcon !== "object")
21601
+ throw TypeError(".google.apps.card.v1.Icon.materialIcon: object expected");
21602
+ message.materialIcon = $root.google.apps.card.v1.MaterialIcon.fromObject(object.materialIcon);
21603
+ }
21574
21604
  if (object.altText != null)
21575
21605
  message.altText = String(object.altText);
21576
21606
  switch (object.imageType) {
@@ -21623,6 +21653,11 @@
21623
21653
  object.altText = message.altText;
21624
21654
  if (message.imageType != null && message.hasOwnProperty("imageType"))
21625
21655
  object.imageType = options.enums === String ? $root.google.apps.card.v1.Widget.ImageType[message.imageType] === undefined ? message.imageType : $root.google.apps.card.v1.Widget.ImageType[message.imageType] : message.imageType;
21656
+ if (message.materialIcon != null && message.hasOwnProperty("materialIcon")) {
21657
+ object.materialIcon = $root.google.apps.card.v1.MaterialIcon.toObject(message.materialIcon, options);
21658
+ if (options.oneofs)
21659
+ object.icons = "materialIcon";
21660
+ }
21626
21661
  return object;
21627
21662
  };
21628
21663
 
@@ -21655,6 +21690,279 @@
21655
21690
  return Icon;
21656
21691
  })();
21657
21692
 
21693
+ v1.MaterialIcon = (function() {
21694
+
21695
+ /**
21696
+ * Properties of a MaterialIcon.
21697
+ * @memberof google.apps.card.v1
21698
+ * @interface IMaterialIcon
21699
+ * @property {string|null} [name] MaterialIcon name
21700
+ * @property {boolean|null} [fill] MaterialIcon fill
21701
+ * @property {number|null} [weight] MaterialIcon weight
21702
+ * @property {number|null} [grade] MaterialIcon grade
21703
+ */
21704
+
21705
+ /**
21706
+ * Constructs a new MaterialIcon.
21707
+ * @memberof google.apps.card.v1
21708
+ * @classdesc Represents a MaterialIcon.
21709
+ * @implements IMaterialIcon
21710
+ * @constructor
21711
+ * @param {google.apps.card.v1.IMaterialIcon=} [properties] Properties to set
21712
+ */
21713
+ function MaterialIcon(properties) {
21714
+ if (properties)
21715
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
21716
+ if (properties[keys[i]] != null)
21717
+ this[keys[i]] = properties[keys[i]];
21718
+ }
21719
+
21720
+ /**
21721
+ * MaterialIcon name.
21722
+ * @member {string} name
21723
+ * @memberof google.apps.card.v1.MaterialIcon
21724
+ * @instance
21725
+ */
21726
+ MaterialIcon.prototype.name = "";
21727
+
21728
+ /**
21729
+ * MaterialIcon fill.
21730
+ * @member {boolean} fill
21731
+ * @memberof google.apps.card.v1.MaterialIcon
21732
+ * @instance
21733
+ */
21734
+ MaterialIcon.prototype.fill = false;
21735
+
21736
+ /**
21737
+ * MaterialIcon weight.
21738
+ * @member {number} weight
21739
+ * @memberof google.apps.card.v1.MaterialIcon
21740
+ * @instance
21741
+ */
21742
+ MaterialIcon.prototype.weight = 0;
21743
+
21744
+ /**
21745
+ * MaterialIcon grade.
21746
+ * @member {number} grade
21747
+ * @memberof google.apps.card.v1.MaterialIcon
21748
+ * @instance
21749
+ */
21750
+ MaterialIcon.prototype.grade = 0;
21751
+
21752
+ /**
21753
+ * Creates a new MaterialIcon instance using the specified properties.
21754
+ * @function create
21755
+ * @memberof google.apps.card.v1.MaterialIcon
21756
+ * @static
21757
+ * @param {google.apps.card.v1.IMaterialIcon=} [properties] Properties to set
21758
+ * @returns {google.apps.card.v1.MaterialIcon} MaterialIcon instance
21759
+ */
21760
+ MaterialIcon.create = function create(properties) {
21761
+ return new MaterialIcon(properties);
21762
+ };
21763
+
21764
+ /**
21765
+ * Encodes the specified MaterialIcon message. Does not implicitly {@link google.apps.card.v1.MaterialIcon.verify|verify} messages.
21766
+ * @function encode
21767
+ * @memberof google.apps.card.v1.MaterialIcon
21768
+ * @static
21769
+ * @param {google.apps.card.v1.IMaterialIcon} message MaterialIcon message or plain object to encode
21770
+ * @param {$protobuf.Writer} [writer] Writer to encode to
21771
+ * @returns {$protobuf.Writer} Writer
21772
+ */
21773
+ MaterialIcon.encode = function encode(message, writer) {
21774
+ if (!writer)
21775
+ writer = $Writer.create();
21776
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
21777
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
21778
+ if (message.fill != null && Object.hasOwnProperty.call(message, "fill"))
21779
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fill);
21780
+ if (message.weight != null && Object.hasOwnProperty.call(message, "weight"))
21781
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.weight);
21782
+ if (message.grade != null && Object.hasOwnProperty.call(message, "grade"))
21783
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.grade);
21784
+ return writer;
21785
+ };
21786
+
21787
+ /**
21788
+ * Encodes the specified MaterialIcon message, length delimited. Does not implicitly {@link google.apps.card.v1.MaterialIcon.verify|verify} messages.
21789
+ * @function encodeDelimited
21790
+ * @memberof google.apps.card.v1.MaterialIcon
21791
+ * @static
21792
+ * @param {google.apps.card.v1.IMaterialIcon} message MaterialIcon message or plain object to encode
21793
+ * @param {$protobuf.Writer} [writer] Writer to encode to
21794
+ * @returns {$protobuf.Writer} Writer
21795
+ */
21796
+ MaterialIcon.encodeDelimited = function encodeDelimited(message, writer) {
21797
+ return this.encode(message, writer).ldelim();
21798
+ };
21799
+
21800
+ /**
21801
+ * Decodes a MaterialIcon message from the specified reader or buffer.
21802
+ * @function decode
21803
+ * @memberof google.apps.card.v1.MaterialIcon
21804
+ * @static
21805
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
21806
+ * @param {number} [length] Message length if known beforehand
21807
+ * @returns {google.apps.card.v1.MaterialIcon} MaterialIcon
21808
+ * @throws {Error} If the payload is not a reader or valid buffer
21809
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
21810
+ */
21811
+ MaterialIcon.decode = function decode(reader, length) {
21812
+ if (!(reader instanceof $Reader))
21813
+ reader = $Reader.create(reader);
21814
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.card.v1.MaterialIcon();
21815
+ while (reader.pos < end) {
21816
+ var tag = reader.uint32();
21817
+ switch (tag >>> 3) {
21818
+ case 1: {
21819
+ message.name = reader.string();
21820
+ break;
21821
+ }
21822
+ case 2: {
21823
+ message.fill = reader.bool();
21824
+ break;
21825
+ }
21826
+ case 3: {
21827
+ message.weight = reader.int32();
21828
+ break;
21829
+ }
21830
+ case 4: {
21831
+ message.grade = reader.int32();
21832
+ break;
21833
+ }
21834
+ default:
21835
+ reader.skipType(tag & 7);
21836
+ break;
21837
+ }
21838
+ }
21839
+ return message;
21840
+ };
21841
+
21842
+ /**
21843
+ * Decodes a MaterialIcon message from the specified reader or buffer, length delimited.
21844
+ * @function decodeDelimited
21845
+ * @memberof google.apps.card.v1.MaterialIcon
21846
+ * @static
21847
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
21848
+ * @returns {google.apps.card.v1.MaterialIcon} MaterialIcon
21849
+ * @throws {Error} If the payload is not a reader or valid buffer
21850
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
21851
+ */
21852
+ MaterialIcon.decodeDelimited = function decodeDelimited(reader) {
21853
+ if (!(reader instanceof $Reader))
21854
+ reader = new $Reader(reader);
21855
+ return this.decode(reader, reader.uint32());
21856
+ };
21857
+
21858
+ /**
21859
+ * Verifies a MaterialIcon message.
21860
+ * @function verify
21861
+ * @memberof google.apps.card.v1.MaterialIcon
21862
+ * @static
21863
+ * @param {Object.<string,*>} message Plain object to verify
21864
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
21865
+ */
21866
+ MaterialIcon.verify = function verify(message) {
21867
+ if (typeof message !== "object" || message === null)
21868
+ return "object expected";
21869
+ if (message.name != null && message.hasOwnProperty("name"))
21870
+ if (!$util.isString(message.name))
21871
+ return "name: string expected";
21872
+ if (message.fill != null && message.hasOwnProperty("fill"))
21873
+ if (typeof message.fill !== "boolean")
21874
+ return "fill: boolean expected";
21875
+ if (message.weight != null && message.hasOwnProperty("weight"))
21876
+ if (!$util.isInteger(message.weight))
21877
+ return "weight: integer expected";
21878
+ if (message.grade != null && message.hasOwnProperty("grade"))
21879
+ if (!$util.isInteger(message.grade))
21880
+ return "grade: integer expected";
21881
+ return null;
21882
+ };
21883
+
21884
+ /**
21885
+ * Creates a MaterialIcon message from a plain object. Also converts values to their respective internal types.
21886
+ * @function fromObject
21887
+ * @memberof google.apps.card.v1.MaterialIcon
21888
+ * @static
21889
+ * @param {Object.<string,*>} object Plain object
21890
+ * @returns {google.apps.card.v1.MaterialIcon} MaterialIcon
21891
+ */
21892
+ MaterialIcon.fromObject = function fromObject(object) {
21893
+ if (object instanceof $root.google.apps.card.v1.MaterialIcon)
21894
+ return object;
21895
+ var message = new $root.google.apps.card.v1.MaterialIcon();
21896
+ if (object.name != null)
21897
+ message.name = String(object.name);
21898
+ if (object.fill != null)
21899
+ message.fill = Boolean(object.fill);
21900
+ if (object.weight != null)
21901
+ message.weight = object.weight | 0;
21902
+ if (object.grade != null)
21903
+ message.grade = object.grade | 0;
21904
+ return message;
21905
+ };
21906
+
21907
+ /**
21908
+ * Creates a plain object from a MaterialIcon message. Also converts values to other types if specified.
21909
+ * @function toObject
21910
+ * @memberof google.apps.card.v1.MaterialIcon
21911
+ * @static
21912
+ * @param {google.apps.card.v1.MaterialIcon} message MaterialIcon
21913
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
21914
+ * @returns {Object.<string,*>} Plain object
21915
+ */
21916
+ MaterialIcon.toObject = function toObject(message, options) {
21917
+ if (!options)
21918
+ options = {};
21919
+ var object = {};
21920
+ if (options.defaults) {
21921
+ object.name = "";
21922
+ object.fill = false;
21923
+ object.weight = 0;
21924
+ object.grade = 0;
21925
+ }
21926
+ if (message.name != null && message.hasOwnProperty("name"))
21927
+ object.name = message.name;
21928
+ if (message.fill != null && message.hasOwnProperty("fill"))
21929
+ object.fill = message.fill;
21930
+ if (message.weight != null && message.hasOwnProperty("weight"))
21931
+ object.weight = message.weight;
21932
+ if (message.grade != null && message.hasOwnProperty("grade"))
21933
+ object.grade = message.grade;
21934
+ return object;
21935
+ };
21936
+
21937
+ /**
21938
+ * Converts this MaterialIcon to JSON.
21939
+ * @function toJSON
21940
+ * @memberof google.apps.card.v1.MaterialIcon
21941
+ * @instance
21942
+ * @returns {Object.<string,*>} JSON object
21943
+ */
21944
+ MaterialIcon.prototype.toJSON = function toJSON() {
21945
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
21946
+ };
21947
+
21948
+ /**
21949
+ * Gets the default type url for MaterialIcon
21950
+ * @function getTypeUrl
21951
+ * @memberof google.apps.card.v1.MaterialIcon
21952
+ * @static
21953
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
21954
+ * @returns {string} The default type url
21955
+ */
21956
+ MaterialIcon.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
21957
+ if (typeUrlPrefix === undefined) {
21958
+ typeUrlPrefix = "type.googleapis.com";
21959
+ }
21960
+ return typeUrlPrefix + "/google.apps.card.v1.MaterialIcon";
21961
+ };
21962
+
21963
+ return MaterialIcon;
21964
+ })();
21965
+
21658
21966
  v1.ImageCropStyle = (function() {
21659
21967
 
21660
21968
  /**
@@ -30221,6 +30529,39 @@
30221
30529
  * @variation 2
30222
30530
  */
30223
30531
 
30532
+ /**
30533
+ * Callback as used by {@link google.chat.v1.ChatService|updateMembership}.
30534
+ * @memberof google.chat.v1.ChatService
30535
+ * @typedef UpdateMembershipCallback
30536
+ * @type {function}
30537
+ * @param {Error|null} error Error, if any
30538
+ * @param {google.chat.v1.Membership} [response] Membership
30539
+ */
30540
+
30541
+ /**
30542
+ * Calls UpdateMembership.
30543
+ * @function updateMembership
30544
+ * @memberof google.chat.v1.ChatService
30545
+ * @instance
30546
+ * @param {google.chat.v1.IUpdateMembershipRequest} request UpdateMembershipRequest message or plain object
30547
+ * @param {google.chat.v1.ChatService.UpdateMembershipCallback} callback Node-style callback called with the error, if any, and Membership
30548
+ * @returns {undefined}
30549
+ * @variation 1
30550
+ */
30551
+ Object.defineProperty(ChatService.prototype.updateMembership = function updateMembership(request, callback) {
30552
+ return this.rpcCall(updateMembership, $root.google.chat.v1.UpdateMembershipRequest, $root.google.chat.v1.Membership, request, callback);
30553
+ }, "name", { value: "UpdateMembership" });
30554
+
30555
+ /**
30556
+ * Calls UpdateMembership.
30557
+ * @function updateMembership
30558
+ * @memberof google.chat.v1.ChatService
30559
+ * @instance
30560
+ * @param {google.chat.v1.IUpdateMembershipRequest} request UpdateMembershipRequest message or plain object
30561
+ * @returns {Promise<google.chat.v1.Membership>} Promise
30562
+ * @variation 2
30563
+ */
30564
+
30224
30565
  /**
30225
30566
  * Callback as used by {@link google.chat.v1.ChatService|deleteMembership}.
30226
30567
  * @memberof google.chat.v1.ChatService
@@ -30353,6 +30694,105 @@
30353
30694
  * @variation 2
30354
30695
  */
30355
30696
 
30697
+ /**
30698
+ * Callback as used by {@link google.chat.v1.ChatService|getSpaceReadState}.
30699
+ * @memberof google.chat.v1.ChatService
30700
+ * @typedef GetSpaceReadStateCallback
30701
+ * @type {function}
30702
+ * @param {Error|null} error Error, if any
30703
+ * @param {google.chat.v1.SpaceReadState} [response] SpaceReadState
30704
+ */
30705
+
30706
+ /**
30707
+ * Calls GetSpaceReadState.
30708
+ * @function getSpaceReadState
30709
+ * @memberof google.chat.v1.ChatService
30710
+ * @instance
30711
+ * @param {google.chat.v1.IGetSpaceReadStateRequest} request GetSpaceReadStateRequest message or plain object
30712
+ * @param {google.chat.v1.ChatService.GetSpaceReadStateCallback} callback Node-style callback called with the error, if any, and SpaceReadState
30713
+ * @returns {undefined}
30714
+ * @variation 1
30715
+ */
30716
+ Object.defineProperty(ChatService.prototype.getSpaceReadState = function getSpaceReadState(request, callback) {
30717
+ return this.rpcCall(getSpaceReadState, $root.google.chat.v1.GetSpaceReadStateRequest, $root.google.chat.v1.SpaceReadState, request, callback);
30718
+ }, "name", { value: "GetSpaceReadState" });
30719
+
30720
+ /**
30721
+ * Calls GetSpaceReadState.
30722
+ * @function getSpaceReadState
30723
+ * @memberof google.chat.v1.ChatService
30724
+ * @instance
30725
+ * @param {google.chat.v1.IGetSpaceReadStateRequest} request GetSpaceReadStateRequest message or plain object
30726
+ * @returns {Promise<google.chat.v1.SpaceReadState>} Promise
30727
+ * @variation 2
30728
+ */
30729
+
30730
+ /**
30731
+ * Callback as used by {@link google.chat.v1.ChatService|updateSpaceReadState}.
30732
+ * @memberof google.chat.v1.ChatService
30733
+ * @typedef UpdateSpaceReadStateCallback
30734
+ * @type {function}
30735
+ * @param {Error|null} error Error, if any
30736
+ * @param {google.chat.v1.SpaceReadState} [response] SpaceReadState
30737
+ */
30738
+
30739
+ /**
30740
+ * Calls UpdateSpaceReadState.
30741
+ * @function updateSpaceReadState
30742
+ * @memberof google.chat.v1.ChatService
30743
+ * @instance
30744
+ * @param {google.chat.v1.IUpdateSpaceReadStateRequest} request UpdateSpaceReadStateRequest message or plain object
30745
+ * @param {google.chat.v1.ChatService.UpdateSpaceReadStateCallback} callback Node-style callback called with the error, if any, and SpaceReadState
30746
+ * @returns {undefined}
30747
+ * @variation 1
30748
+ */
30749
+ Object.defineProperty(ChatService.prototype.updateSpaceReadState = function updateSpaceReadState(request, callback) {
30750
+ return this.rpcCall(updateSpaceReadState, $root.google.chat.v1.UpdateSpaceReadStateRequest, $root.google.chat.v1.SpaceReadState, request, callback);
30751
+ }, "name", { value: "UpdateSpaceReadState" });
30752
+
30753
+ /**
30754
+ * Calls UpdateSpaceReadState.
30755
+ * @function updateSpaceReadState
30756
+ * @memberof google.chat.v1.ChatService
30757
+ * @instance
30758
+ * @param {google.chat.v1.IUpdateSpaceReadStateRequest} request UpdateSpaceReadStateRequest message or plain object
30759
+ * @returns {Promise<google.chat.v1.SpaceReadState>} Promise
30760
+ * @variation 2
30761
+ */
30762
+
30763
+ /**
30764
+ * Callback as used by {@link google.chat.v1.ChatService|getThreadReadState}.
30765
+ * @memberof google.chat.v1.ChatService
30766
+ * @typedef GetThreadReadStateCallback
30767
+ * @type {function}
30768
+ * @param {Error|null} error Error, if any
30769
+ * @param {google.chat.v1.ThreadReadState} [response] ThreadReadState
30770
+ */
30771
+
30772
+ /**
30773
+ * Calls GetThreadReadState.
30774
+ * @function getThreadReadState
30775
+ * @memberof google.chat.v1.ChatService
30776
+ * @instance
30777
+ * @param {google.chat.v1.IGetThreadReadStateRequest} request GetThreadReadStateRequest message or plain object
30778
+ * @param {google.chat.v1.ChatService.GetThreadReadStateCallback} callback Node-style callback called with the error, if any, and ThreadReadState
30779
+ * @returns {undefined}
30780
+ * @variation 1
30781
+ */
30782
+ Object.defineProperty(ChatService.prototype.getThreadReadState = function getThreadReadState(request, callback) {
30783
+ return this.rpcCall(getThreadReadState, $root.google.chat.v1.GetThreadReadStateRequest, $root.google.chat.v1.ThreadReadState, request, callback);
30784
+ }, "name", { value: "GetThreadReadState" });
30785
+
30786
+ /**
30787
+ * Calls GetThreadReadState.
30788
+ * @function getThreadReadState
30789
+ * @memberof google.chat.v1.ChatService
30790
+ * @instance
30791
+ * @param {google.chat.v1.IGetThreadReadStateRequest} request GetThreadReadStateRequest message or plain object
30792
+ * @returns {Promise<google.chat.v1.ThreadReadState>} Promise
30793
+ * @variation 2
30794
+ */
30795
+
30356
30796
  return ChatService;
30357
30797
  })();
30358
30798
 
@@ -31064,6 +31504,243 @@
31064
31504
  return CreateMembershipRequest;
31065
31505
  })();
31066
31506
 
31507
+ v1.UpdateMembershipRequest = (function() {
31508
+
31509
+ /**
31510
+ * Properties of an UpdateMembershipRequest.
31511
+ * @memberof google.chat.v1
31512
+ * @interface IUpdateMembershipRequest
31513
+ * @property {google.chat.v1.IMembership|null} [membership] UpdateMembershipRequest membership
31514
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateMembershipRequest updateMask
31515
+ */
31516
+
31517
+ /**
31518
+ * Constructs a new UpdateMembershipRequest.
31519
+ * @memberof google.chat.v1
31520
+ * @classdesc Represents an UpdateMembershipRequest.
31521
+ * @implements IUpdateMembershipRequest
31522
+ * @constructor
31523
+ * @param {google.chat.v1.IUpdateMembershipRequest=} [properties] Properties to set
31524
+ */
31525
+ function UpdateMembershipRequest(properties) {
31526
+ if (properties)
31527
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
31528
+ if (properties[keys[i]] != null)
31529
+ this[keys[i]] = properties[keys[i]];
31530
+ }
31531
+
31532
+ /**
31533
+ * UpdateMembershipRequest membership.
31534
+ * @member {google.chat.v1.IMembership|null|undefined} membership
31535
+ * @memberof google.chat.v1.UpdateMembershipRequest
31536
+ * @instance
31537
+ */
31538
+ UpdateMembershipRequest.prototype.membership = null;
31539
+
31540
+ /**
31541
+ * UpdateMembershipRequest updateMask.
31542
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
31543
+ * @memberof google.chat.v1.UpdateMembershipRequest
31544
+ * @instance
31545
+ */
31546
+ UpdateMembershipRequest.prototype.updateMask = null;
31547
+
31548
+ /**
31549
+ * Creates a new UpdateMembershipRequest instance using the specified properties.
31550
+ * @function create
31551
+ * @memberof google.chat.v1.UpdateMembershipRequest
31552
+ * @static
31553
+ * @param {google.chat.v1.IUpdateMembershipRequest=} [properties] Properties to set
31554
+ * @returns {google.chat.v1.UpdateMembershipRequest} UpdateMembershipRequest instance
31555
+ */
31556
+ UpdateMembershipRequest.create = function create(properties) {
31557
+ return new UpdateMembershipRequest(properties);
31558
+ };
31559
+
31560
+ /**
31561
+ * Encodes the specified UpdateMembershipRequest message. Does not implicitly {@link google.chat.v1.UpdateMembershipRequest.verify|verify} messages.
31562
+ * @function encode
31563
+ * @memberof google.chat.v1.UpdateMembershipRequest
31564
+ * @static
31565
+ * @param {google.chat.v1.IUpdateMembershipRequest} message UpdateMembershipRequest message or plain object to encode
31566
+ * @param {$protobuf.Writer} [writer] Writer to encode to
31567
+ * @returns {$protobuf.Writer} Writer
31568
+ */
31569
+ UpdateMembershipRequest.encode = function encode(message, writer) {
31570
+ if (!writer)
31571
+ writer = $Writer.create();
31572
+ if (message.membership != null && Object.hasOwnProperty.call(message, "membership"))
31573
+ $root.google.chat.v1.Membership.encode(message.membership, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
31574
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
31575
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
31576
+ return writer;
31577
+ };
31578
+
31579
+ /**
31580
+ * Encodes the specified UpdateMembershipRequest message, length delimited. Does not implicitly {@link google.chat.v1.UpdateMembershipRequest.verify|verify} messages.
31581
+ * @function encodeDelimited
31582
+ * @memberof google.chat.v1.UpdateMembershipRequest
31583
+ * @static
31584
+ * @param {google.chat.v1.IUpdateMembershipRequest} message UpdateMembershipRequest message or plain object to encode
31585
+ * @param {$protobuf.Writer} [writer] Writer to encode to
31586
+ * @returns {$protobuf.Writer} Writer
31587
+ */
31588
+ UpdateMembershipRequest.encodeDelimited = function encodeDelimited(message, writer) {
31589
+ return this.encode(message, writer).ldelim();
31590
+ };
31591
+
31592
+ /**
31593
+ * Decodes an UpdateMembershipRequest message from the specified reader or buffer.
31594
+ * @function decode
31595
+ * @memberof google.chat.v1.UpdateMembershipRequest
31596
+ * @static
31597
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
31598
+ * @param {number} [length] Message length if known beforehand
31599
+ * @returns {google.chat.v1.UpdateMembershipRequest} UpdateMembershipRequest
31600
+ * @throws {Error} If the payload is not a reader or valid buffer
31601
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31602
+ */
31603
+ UpdateMembershipRequest.decode = function decode(reader, length) {
31604
+ if (!(reader instanceof $Reader))
31605
+ reader = $Reader.create(reader);
31606
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.UpdateMembershipRequest();
31607
+ while (reader.pos < end) {
31608
+ var tag = reader.uint32();
31609
+ switch (tag >>> 3) {
31610
+ case 1: {
31611
+ message.membership = $root.google.chat.v1.Membership.decode(reader, reader.uint32());
31612
+ break;
31613
+ }
31614
+ case 2: {
31615
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
31616
+ break;
31617
+ }
31618
+ default:
31619
+ reader.skipType(tag & 7);
31620
+ break;
31621
+ }
31622
+ }
31623
+ return message;
31624
+ };
31625
+
31626
+ /**
31627
+ * Decodes an UpdateMembershipRequest message from the specified reader or buffer, length delimited.
31628
+ * @function decodeDelimited
31629
+ * @memberof google.chat.v1.UpdateMembershipRequest
31630
+ * @static
31631
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
31632
+ * @returns {google.chat.v1.UpdateMembershipRequest} UpdateMembershipRequest
31633
+ * @throws {Error} If the payload is not a reader or valid buffer
31634
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31635
+ */
31636
+ UpdateMembershipRequest.decodeDelimited = function decodeDelimited(reader) {
31637
+ if (!(reader instanceof $Reader))
31638
+ reader = new $Reader(reader);
31639
+ return this.decode(reader, reader.uint32());
31640
+ };
31641
+
31642
+ /**
31643
+ * Verifies an UpdateMembershipRequest message.
31644
+ * @function verify
31645
+ * @memberof google.chat.v1.UpdateMembershipRequest
31646
+ * @static
31647
+ * @param {Object.<string,*>} message Plain object to verify
31648
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
31649
+ */
31650
+ UpdateMembershipRequest.verify = function verify(message) {
31651
+ if (typeof message !== "object" || message === null)
31652
+ return "object expected";
31653
+ if (message.membership != null && message.hasOwnProperty("membership")) {
31654
+ var error = $root.google.chat.v1.Membership.verify(message.membership);
31655
+ if (error)
31656
+ return "membership." + error;
31657
+ }
31658
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
31659
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
31660
+ if (error)
31661
+ return "updateMask." + error;
31662
+ }
31663
+ return null;
31664
+ };
31665
+
31666
+ /**
31667
+ * Creates an UpdateMembershipRequest message from a plain object. Also converts values to their respective internal types.
31668
+ * @function fromObject
31669
+ * @memberof google.chat.v1.UpdateMembershipRequest
31670
+ * @static
31671
+ * @param {Object.<string,*>} object Plain object
31672
+ * @returns {google.chat.v1.UpdateMembershipRequest} UpdateMembershipRequest
31673
+ */
31674
+ UpdateMembershipRequest.fromObject = function fromObject(object) {
31675
+ if (object instanceof $root.google.chat.v1.UpdateMembershipRequest)
31676
+ return object;
31677
+ var message = new $root.google.chat.v1.UpdateMembershipRequest();
31678
+ if (object.membership != null) {
31679
+ if (typeof object.membership !== "object")
31680
+ throw TypeError(".google.chat.v1.UpdateMembershipRequest.membership: object expected");
31681
+ message.membership = $root.google.chat.v1.Membership.fromObject(object.membership);
31682
+ }
31683
+ if (object.updateMask != null) {
31684
+ if (typeof object.updateMask !== "object")
31685
+ throw TypeError(".google.chat.v1.UpdateMembershipRequest.updateMask: object expected");
31686
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
31687
+ }
31688
+ return message;
31689
+ };
31690
+
31691
+ /**
31692
+ * Creates a plain object from an UpdateMembershipRequest message. Also converts values to other types if specified.
31693
+ * @function toObject
31694
+ * @memberof google.chat.v1.UpdateMembershipRequest
31695
+ * @static
31696
+ * @param {google.chat.v1.UpdateMembershipRequest} message UpdateMembershipRequest
31697
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
31698
+ * @returns {Object.<string,*>} Plain object
31699
+ */
31700
+ UpdateMembershipRequest.toObject = function toObject(message, options) {
31701
+ if (!options)
31702
+ options = {};
31703
+ var object = {};
31704
+ if (options.defaults) {
31705
+ object.membership = null;
31706
+ object.updateMask = null;
31707
+ }
31708
+ if (message.membership != null && message.hasOwnProperty("membership"))
31709
+ object.membership = $root.google.chat.v1.Membership.toObject(message.membership, options);
31710
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
31711
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
31712
+ return object;
31713
+ };
31714
+
31715
+ /**
31716
+ * Converts this UpdateMembershipRequest to JSON.
31717
+ * @function toJSON
31718
+ * @memberof google.chat.v1.UpdateMembershipRequest
31719
+ * @instance
31720
+ * @returns {Object.<string,*>} JSON object
31721
+ */
31722
+ UpdateMembershipRequest.prototype.toJSON = function toJSON() {
31723
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
31724
+ };
31725
+
31726
+ /**
31727
+ * Gets the default type url for UpdateMembershipRequest
31728
+ * @function getTypeUrl
31729
+ * @memberof google.chat.v1.UpdateMembershipRequest
31730
+ * @static
31731
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
31732
+ * @returns {string} The default type url
31733
+ */
31734
+ UpdateMembershipRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
31735
+ if (typeUrlPrefix === undefined) {
31736
+ typeUrlPrefix = "type.googleapis.com";
31737
+ }
31738
+ return typeUrlPrefix + "/google.chat.v1.UpdateMembershipRequest";
31739
+ };
31740
+
31741
+ return UpdateMembershipRequest;
31742
+ })();
31743
+
31067
31744
  v1.ListMembershipsRequest = (function() {
31068
31745
 
31069
31746
  /**
@@ -47397,6 +48074,678 @@
47397
48074
  return values;
47398
48075
  })();
47399
48076
 
48077
+ v1.SpaceReadState = (function() {
48078
+
48079
+ /**
48080
+ * Properties of a SpaceReadState.
48081
+ * @memberof google.chat.v1
48082
+ * @interface ISpaceReadState
48083
+ * @property {string|null} [name] SpaceReadState name
48084
+ * @property {google.protobuf.ITimestamp|null} [lastReadTime] SpaceReadState lastReadTime
48085
+ */
48086
+
48087
+ /**
48088
+ * Constructs a new SpaceReadState.
48089
+ * @memberof google.chat.v1
48090
+ * @classdesc Represents a SpaceReadState.
48091
+ * @implements ISpaceReadState
48092
+ * @constructor
48093
+ * @param {google.chat.v1.ISpaceReadState=} [properties] Properties to set
48094
+ */
48095
+ function SpaceReadState(properties) {
48096
+ if (properties)
48097
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
48098
+ if (properties[keys[i]] != null)
48099
+ this[keys[i]] = properties[keys[i]];
48100
+ }
48101
+
48102
+ /**
48103
+ * SpaceReadState name.
48104
+ * @member {string} name
48105
+ * @memberof google.chat.v1.SpaceReadState
48106
+ * @instance
48107
+ */
48108
+ SpaceReadState.prototype.name = "";
48109
+
48110
+ /**
48111
+ * SpaceReadState lastReadTime.
48112
+ * @member {google.protobuf.ITimestamp|null|undefined} lastReadTime
48113
+ * @memberof google.chat.v1.SpaceReadState
48114
+ * @instance
48115
+ */
48116
+ SpaceReadState.prototype.lastReadTime = null;
48117
+
48118
+ /**
48119
+ * Creates a new SpaceReadState instance using the specified properties.
48120
+ * @function create
48121
+ * @memberof google.chat.v1.SpaceReadState
48122
+ * @static
48123
+ * @param {google.chat.v1.ISpaceReadState=} [properties] Properties to set
48124
+ * @returns {google.chat.v1.SpaceReadState} SpaceReadState instance
48125
+ */
48126
+ SpaceReadState.create = function create(properties) {
48127
+ return new SpaceReadState(properties);
48128
+ };
48129
+
48130
+ /**
48131
+ * Encodes the specified SpaceReadState message. Does not implicitly {@link google.chat.v1.SpaceReadState.verify|verify} messages.
48132
+ * @function encode
48133
+ * @memberof google.chat.v1.SpaceReadState
48134
+ * @static
48135
+ * @param {google.chat.v1.ISpaceReadState} message SpaceReadState message or plain object to encode
48136
+ * @param {$protobuf.Writer} [writer] Writer to encode to
48137
+ * @returns {$protobuf.Writer} Writer
48138
+ */
48139
+ SpaceReadState.encode = function encode(message, writer) {
48140
+ if (!writer)
48141
+ writer = $Writer.create();
48142
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
48143
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
48144
+ if (message.lastReadTime != null && Object.hasOwnProperty.call(message, "lastReadTime"))
48145
+ $root.google.protobuf.Timestamp.encode(message.lastReadTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
48146
+ return writer;
48147
+ };
48148
+
48149
+ /**
48150
+ * Encodes the specified SpaceReadState message, length delimited. Does not implicitly {@link google.chat.v1.SpaceReadState.verify|verify} messages.
48151
+ * @function encodeDelimited
48152
+ * @memberof google.chat.v1.SpaceReadState
48153
+ * @static
48154
+ * @param {google.chat.v1.ISpaceReadState} message SpaceReadState message or plain object to encode
48155
+ * @param {$protobuf.Writer} [writer] Writer to encode to
48156
+ * @returns {$protobuf.Writer} Writer
48157
+ */
48158
+ SpaceReadState.encodeDelimited = function encodeDelimited(message, writer) {
48159
+ return this.encode(message, writer).ldelim();
48160
+ };
48161
+
48162
+ /**
48163
+ * Decodes a SpaceReadState message from the specified reader or buffer.
48164
+ * @function decode
48165
+ * @memberof google.chat.v1.SpaceReadState
48166
+ * @static
48167
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
48168
+ * @param {number} [length] Message length if known beforehand
48169
+ * @returns {google.chat.v1.SpaceReadState} SpaceReadState
48170
+ * @throws {Error} If the payload is not a reader or valid buffer
48171
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48172
+ */
48173
+ SpaceReadState.decode = function decode(reader, length) {
48174
+ if (!(reader instanceof $Reader))
48175
+ reader = $Reader.create(reader);
48176
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.SpaceReadState();
48177
+ while (reader.pos < end) {
48178
+ var tag = reader.uint32();
48179
+ switch (tag >>> 3) {
48180
+ case 1: {
48181
+ message.name = reader.string();
48182
+ break;
48183
+ }
48184
+ case 2: {
48185
+ message.lastReadTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
48186
+ break;
48187
+ }
48188
+ default:
48189
+ reader.skipType(tag & 7);
48190
+ break;
48191
+ }
48192
+ }
48193
+ return message;
48194
+ };
48195
+
48196
+ /**
48197
+ * Decodes a SpaceReadState message from the specified reader or buffer, length delimited.
48198
+ * @function decodeDelimited
48199
+ * @memberof google.chat.v1.SpaceReadState
48200
+ * @static
48201
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
48202
+ * @returns {google.chat.v1.SpaceReadState} SpaceReadState
48203
+ * @throws {Error} If the payload is not a reader or valid buffer
48204
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48205
+ */
48206
+ SpaceReadState.decodeDelimited = function decodeDelimited(reader) {
48207
+ if (!(reader instanceof $Reader))
48208
+ reader = new $Reader(reader);
48209
+ return this.decode(reader, reader.uint32());
48210
+ };
48211
+
48212
+ /**
48213
+ * Verifies a SpaceReadState message.
48214
+ * @function verify
48215
+ * @memberof google.chat.v1.SpaceReadState
48216
+ * @static
48217
+ * @param {Object.<string,*>} message Plain object to verify
48218
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
48219
+ */
48220
+ SpaceReadState.verify = function verify(message) {
48221
+ if (typeof message !== "object" || message === null)
48222
+ return "object expected";
48223
+ if (message.name != null && message.hasOwnProperty("name"))
48224
+ if (!$util.isString(message.name))
48225
+ return "name: string expected";
48226
+ if (message.lastReadTime != null && message.hasOwnProperty("lastReadTime")) {
48227
+ var error = $root.google.protobuf.Timestamp.verify(message.lastReadTime);
48228
+ if (error)
48229
+ return "lastReadTime." + error;
48230
+ }
48231
+ return null;
48232
+ };
48233
+
48234
+ /**
48235
+ * Creates a SpaceReadState message from a plain object. Also converts values to their respective internal types.
48236
+ * @function fromObject
48237
+ * @memberof google.chat.v1.SpaceReadState
48238
+ * @static
48239
+ * @param {Object.<string,*>} object Plain object
48240
+ * @returns {google.chat.v1.SpaceReadState} SpaceReadState
48241
+ */
48242
+ SpaceReadState.fromObject = function fromObject(object) {
48243
+ if (object instanceof $root.google.chat.v1.SpaceReadState)
48244
+ return object;
48245
+ var message = new $root.google.chat.v1.SpaceReadState();
48246
+ if (object.name != null)
48247
+ message.name = String(object.name);
48248
+ if (object.lastReadTime != null) {
48249
+ if (typeof object.lastReadTime !== "object")
48250
+ throw TypeError(".google.chat.v1.SpaceReadState.lastReadTime: object expected");
48251
+ message.lastReadTime = $root.google.protobuf.Timestamp.fromObject(object.lastReadTime);
48252
+ }
48253
+ return message;
48254
+ };
48255
+
48256
+ /**
48257
+ * Creates a plain object from a SpaceReadState message. Also converts values to other types if specified.
48258
+ * @function toObject
48259
+ * @memberof google.chat.v1.SpaceReadState
48260
+ * @static
48261
+ * @param {google.chat.v1.SpaceReadState} message SpaceReadState
48262
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
48263
+ * @returns {Object.<string,*>} Plain object
48264
+ */
48265
+ SpaceReadState.toObject = function toObject(message, options) {
48266
+ if (!options)
48267
+ options = {};
48268
+ var object = {};
48269
+ if (options.defaults) {
48270
+ object.name = "";
48271
+ object.lastReadTime = null;
48272
+ }
48273
+ if (message.name != null && message.hasOwnProperty("name"))
48274
+ object.name = message.name;
48275
+ if (message.lastReadTime != null && message.hasOwnProperty("lastReadTime"))
48276
+ object.lastReadTime = $root.google.protobuf.Timestamp.toObject(message.lastReadTime, options);
48277
+ return object;
48278
+ };
48279
+
48280
+ /**
48281
+ * Converts this SpaceReadState to JSON.
48282
+ * @function toJSON
48283
+ * @memberof google.chat.v1.SpaceReadState
48284
+ * @instance
48285
+ * @returns {Object.<string,*>} JSON object
48286
+ */
48287
+ SpaceReadState.prototype.toJSON = function toJSON() {
48288
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
48289
+ };
48290
+
48291
+ /**
48292
+ * Gets the default type url for SpaceReadState
48293
+ * @function getTypeUrl
48294
+ * @memberof google.chat.v1.SpaceReadState
48295
+ * @static
48296
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
48297
+ * @returns {string} The default type url
48298
+ */
48299
+ SpaceReadState.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
48300
+ if (typeUrlPrefix === undefined) {
48301
+ typeUrlPrefix = "type.googleapis.com";
48302
+ }
48303
+ return typeUrlPrefix + "/google.chat.v1.SpaceReadState";
48304
+ };
48305
+
48306
+ return SpaceReadState;
48307
+ })();
48308
+
48309
+ v1.GetSpaceReadStateRequest = (function() {
48310
+
48311
+ /**
48312
+ * Properties of a GetSpaceReadStateRequest.
48313
+ * @memberof google.chat.v1
48314
+ * @interface IGetSpaceReadStateRequest
48315
+ * @property {string|null} [name] GetSpaceReadStateRequest name
48316
+ */
48317
+
48318
+ /**
48319
+ * Constructs a new GetSpaceReadStateRequest.
48320
+ * @memberof google.chat.v1
48321
+ * @classdesc Represents a GetSpaceReadStateRequest.
48322
+ * @implements IGetSpaceReadStateRequest
48323
+ * @constructor
48324
+ * @param {google.chat.v1.IGetSpaceReadStateRequest=} [properties] Properties to set
48325
+ */
48326
+ function GetSpaceReadStateRequest(properties) {
48327
+ if (properties)
48328
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
48329
+ if (properties[keys[i]] != null)
48330
+ this[keys[i]] = properties[keys[i]];
48331
+ }
48332
+
48333
+ /**
48334
+ * GetSpaceReadStateRequest name.
48335
+ * @member {string} name
48336
+ * @memberof google.chat.v1.GetSpaceReadStateRequest
48337
+ * @instance
48338
+ */
48339
+ GetSpaceReadStateRequest.prototype.name = "";
48340
+
48341
+ /**
48342
+ * Creates a new GetSpaceReadStateRequest instance using the specified properties.
48343
+ * @function create
48344
+ * @memberof google.chat.v1.GetSpaceReadStateRequest
48345
+ * @static
48346
+ * @param {google.chat.v1.IGetSpaceReadStateRequest=} [properties] Properties to set
48347
+ * @returns {google.chat.v1.GetSpaceReadStateRequest} GetSpaceReadStateRequest instance
48348
+ */
48349
+ GetSpaceReadStateRequest.create = function create(properties) {
48350
+ return new GetSpaceReadStateRequest(properties);
48351
+ };
48352
+
48353
+ /**
48354
+ * Encodes the specified GetSpaceReadStateRequest message. Does not implicitly {@link google.chat.v1.GetSpaceReadStateRequest.verify|verify} messages.
48355
+ * @function encode
48356
+ * @memberof google.chat.v1.GetSpaceReadStateRequest
48357
+ * @static
48358
+ * @param {google.chat.v1.IGetSpaceReadStateRequest} message GetSpaceReadStateRequest message or plain object to encode
48359
+ * @param {$protobuf.Writer} [writer] Writer to encode to
48360
+ * @returns {$protobuf.Writer} Writer
48361
+ */
48362
+ GetSpaceReadStateRequest.encode = function encode(message, writer) {
48363
+ if (!writer)
48364
+ writer = $Writer.create();
48365
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
48366
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
48367
+ return writer;
48368
+ };
48369
+
48370
+ /**
48371
+ * Encodes the specified GetSpaceReadStateRequest message, length delimited. Does not implicitly {@link google.chat.v1.GetSpaceReadStateRequest.verify|verify} messages.
48372
+ * @function encodeDelimited
48373
+ * @memberof google.chat.v1.GetSpaceReadStateRequest
48374
+ * @static
48375
+ * @param {google.chat.v1.IGetSpaceReadStateRequest} message GetSpaceReadStateRequest message or plain object to encode
48376
+ * @param {$protobuf.Writer} [writer] Writer to encode to
48377
+ * @returns {$protobuf.Writer} Writer
48378
+ */
48379
+ GetSpaceReadStateRequest.encodeDelimited = function encodeDelimited(message, writer) {
48380
+ return this.encode(message, writer).ldelim();
48381
+ };
48382
+
48383
+ /**
48384
+ * Decodes a GetSpaceReadStateRequest message from the specified reader or buffer.
48385
+ * @function decode
48386
+ * @memberof google.chat.v1.GetSpaceReadStateRequest
48387
+ * @static
48388
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
48389
+ * @param {number} [length] Message length if known beforehand
48390
+ * @returns {google.chat.v1.GetSpaceReadStateRequest} GetSpaceReadStateRequest
48391
+ * @throws {Error} If the payload is not a reader or valid buffer
48392
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48393
+ */
48394
+ GetSpaceReadStateRequest.decode = function decode(reader, length) {
48395
+ if (!(reader instanceof $Reader))
48396
+ reader = $Reader.create(reader);
48397
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.GetSpaceReadStateRequest();
48398
+ while (reader.pos < end) {
48399
+ var tag = reader.uint32();
48400
+ switch (tag >>> 3) {
48401
+ case 1: {
48402
+ message.name = reader.string();
48403
+ break;
48404
+ }
48405
+ default:
48406
+ reader.skipType(tag & 7);
48407
+ break;
48408
+ }
48409
+ }
48410
+ return message;
48411
+ };
48412
+
48413
+ /**
48414
+ * Decodes a GetSpaceReadStateRequest message from the specified reader or buffer, length delimited.
48415
+ * @function decodeDelimited
48416
+ * @memberof google.chat.v1.GetSpaceReadStateRequest
48417
+ * @static
48418
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
48419
+ * @returns {google.chat.v1.GetSpaceReadStateRequest} GetSpaceReadStateRequest
48420
+ * @throws {Error} If the payload is not a reader or valid buffer
48421
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48422
+ */
48423
+ GetSpaceReadStateRequest.decodeDelimited = function decodeDelimited(reader) {
48424
+ if (!(reader instanceof $Reader))
48425
+ reader = new $Reader(reader);
48426
+ return this.decode(reader, reader.uint32());
48427
+ };
48428
+
48429
+ /**
48430
+ * Verifies a GetSpaceReadStateRequest message.
48431
+ * @function verify
48432
+ * @memberof google.chat.v1.GetSpaceReadStateRequest
48433
+ * @static
48434
+ * @param {Object.<string,*>} message Plain object to verify
48435
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
48436
+ */
48437
+ GetSpaceReadStateRequest.verify = function verify(message) {
48438
+ if (typeof message !== "object" || message === null)
48439
+ return "object expected";
48440
+ if (message.name != null && message.hasOwnProperty("name"))
48441
+ if (!$util.isString(message.name))
48442
+ return "name: string expected";
48443
+ return null;
48444
+ };
48445
+
48446
+ /**
48447
+ * Creates a GetSpaceReadStateRequest message from a plain object. Also converts values to their respective internal types.
48448
+ * @function fromObject
48449
+ * @memberof google.chat.v1.GetSpaceReadStateRequest
48450
+ * @static
48451
+ * @param {Object.<string,*>} object Plain object
48452
+ * @returns {google.chat.v1.GetSpaceReadStateRequest} GetSpaceReadStateRequest
48453
+ */
48454
+ GetSpaceReadStateRequest.fromObject = function fromObject(object) {
48455
+ if (object instanceof $root.google.chat.v1.GetSpaceReadStateRequest)
48456
+ return object;
48457
+ var message = new $root.google.chat.v1.GetSpaceReadStateRequest();
48458
+ if (object.name != null)
48459
+ message.name = String(object.name);
48460
+ return message;
48461
+ };
48462
+
48463
+ /**
48464
+ * Creates a plain object from a GetSpaceReadStateRequest message. Also converts values to other types if specified.
48465
+ * @function toObject
48466
+ * @memberof google.chat.v1.GetSpaceReadStateRequest
48467
+ * @static
48468
+ * @param {google.chat.v1.GetSpaceReadStateRequest} message GetSpaceReadStateRequest
48469
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
48470
+ * @returns {Object.<string,*>} Plain object
48471
+ */
48472
+ GetSpaceReadStateRequest.toObject = function toObject(message, options) {
48473
+ if (!options)
48474
+ options = {};
48475
+ var object = {};
48476
+ if (options.defaults)
48477
+ object.name = "";
48478
+ if (message.name != null && message.hasOwnProperty("name"))
48479
+ object.name = message.name;
48480
+ return object;
48481
+ };
48482
+
48483
+ /**
48484
+ * Converts this GetSpaceReadStateRequest to JSON.
48485
+ * @function toJSON
48486
+ * @memberof google.chat.v1.GetSpaceReadStateRequest
48487
+ * @instance
48488
+ * @returns {Object.<string,*>} JSON object
48489
+ */
48490
+ GetSpaceReadStateRequest.prototype.toJSON = function toJSON() {
48491
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
48492
+ };
48493
+
48494
+ /**
48495
+ * Gets the default type url for GetSpaceReadStateRequest
48496
+ * @function getTypeUrl
48497
+ * @memberof google.chat.v1.GetSpaceReadStateRequest
48498
+ * @static
48499
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
48500
+ * @returns {string} The default type url
48501
+ */
48502
+ GetSpaceReadStateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
48503
+ if (typeUrlPrefix === undefined) {
48504
+ typeUrlPrefix = "type.googleapis.com";
48505
+ }
48506
+ return typeUrlPrefix + "/google.chat.v1.GetSpaceReadStateRequest";
48507
+ };
48508
+
48509
+ return GetSpaceReadStateRequest;
48510
+ })();
48511
+
48512
+ v1.UpdateSpaceReadStateRequest = (function() {
48513
+
48514
+ /**
48515
+ * Properties of an UpdateSpaceReadStateRequest.
48516
+ * @memberof google.chat.v1
48517
+ * @interface IUpdateSpaceReadStateRequest
48518
+ * @property {google.chat.v1.ISpaceReadState|null} [spaceReadState] UpdateSpaceReadStateRequest spaceReadState
48519
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSpaceReadStateRequest updateMask
48520
+ */
48521
+
48522
+ /**
48523
+ * Constructs a new UpdateSpaceReadStateRequest.
48524
+ * @memberof google.chat.v1
48525
+ * @classdesc Represents an UpdateSpaceReadStateRequest.
48526
+ * @implements IUpdateSpaceReadStateRequest
48527
+ * @constructor
48528
+ * @param {google.chat.v1.IUpdateSpaceReadStateRequest=} [properties] Properties to set
48529
+ */
48530
+ function UpdateSpaceReadStateRequest(properties) {
48531
+ if (properties)
48532
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
48533
+ if (properties[keys[i]] != null)
48534
+ this[keys[i]] = properties[keys[i]];
48535
+ }
48536
+
48537
+ /**
48538
+ * UpdateSpaceReadStateRequest spaceReadState.
48539
+ * @member {google.chat.v1.ISpaceReadState|null|undefined} spaceReadState
48540
+ * @memberof google.chat.v1.UpdateSpaceReadStateRequest
48541
+ * @instance
48542
+ */
48543
+ UpdateSpaceReadStateRequest.prototype.spaceReadState = null;
48544
+
48545
+ /**
48546
+ * UpdateSpaceReadStateRequest updateMask.
48547
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
48548
+ * @memberof google.chat.v1.UpdateSpaceReadStateRequest
48549
+ * @instance
48550
+ */
48551
+ UpdateSpaceReadStateRequest.prototype.updateMask = null;
48552
+
48553
+ /**
48554
+ * Creates a new UpdateSpaceReadStateRequest instance using the specified properties.
48555
+ * @function create
48556
+ * @memberof google.chat.v1.UpdateSpaceReadStateRequest
48557
+ * @static
48558
+ * @param {google.chat.v1.IUpdateSpaceReadStateRequest=} [properties] Properties to set
48559
+ * @returns {google.chat.v1.UpdateSpaceReadStateRequest} UpdateSpaceReadStateRequest instance
48560
+ */
48561
+ UpdateSpaceReadStateRequest.create = function create(properties) {
48562
+ return new UpdateSpaceReadStateRequest(properties);
48563
+ };
48564
+
48565
+ /**
48566
+ * Encodes the specified UpdateSpaceReadStateRequest message. Does not implicitly {@link google.chat.v1.UpdateSpaceReadStateRequest.verify|verify} messages.
48567
+ * @function encode
48568
+ * @memberof google.chat.v1.UpdateSpaceReadStateRequest
48569
+ * @static
48570
+ * @param {google.chat.v1.IUpdateSpaceReadStateRequest} message UpdateSpaceReadStateRequest message or plain object to encode
48571
+ * @param {$protobuf.Writer} [writer] Writer to encode to
48572
+ * @returns {$protobuf.Writer} Writer
48573
+ */
48574
+ UpdateSpaceReadStateRequest.encode = function encode(message, writer) {
48575
+ if (!writer)
48576
+ writer = $Writer.create();
48577
+ if (message.spaceReadState != null && Object.hasOwnProperty.call(message, "spaceReadState"))
48578
+ $root.google.chat.v1.SpaceReadState.encode(message.spaceReadState, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
48579
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
48580
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
48581
+ return writer;
48582
+ };
48583
+
48584
+ /**
48585
+ * Encodes the specified UpdateSpaceReadStateRequest message, length delimited. Does not implicitly {@link google.chat.v1.UpdateSpaceReadStateRequest.verify|verify} messages.
48586
+ * @function encodeDelimited
48587
+ * @memberof google.chat.v1.UpdateSpaceReadStateRequest
48588
+ * @static
48589
+ * @param {google.chat.v1.IUpdateSpaceReadStateRequest} message UpdateSpaceReadStateRequest message or plain object to encode
48590
+ * @param {$protobuf.Writer} [writer] Writer to encode to
48591
+ * @returns {$protobuf.Writer} Writer
48592
+ */
48593
+ UpdateSpaceReadStateRequest.encodeDelimited = function encodeDelimited(message, writer) {
48594
+ return this.encode(message, writer).ldelim();
48595
+ };
48596
+
48597
+ /**
48598
+ * Decodes an UpdateSpaceReadStateRequest message from the specified reader or buffer.
48599
+ * @function decode
48600
+ * @memberof google.chat.v1.UpdateSpaceReadStateRequest
48601
+ * @static
48602
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
48603
+ * @param {number} [length] Message length if known beforehand
48604
+ * @returns {google.chat.v1.UpdateSpaceReadStateRequest} UpdateSpaceReadStateRequest
48605
+ * @throws {Error} If the payload is not a reader or valid buffer
48606
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48607
+ */
48608
+ UpdateSpaceReadStateRequest.decode = function decode(reader, length) {
48609
+ if (!(reader instanceof $Reader))
48610
+ reader = $Reader.create(reader);
48611
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.UpdateSpaceReadStateRequest();
48612
+ while (reader.pos < end) {
48613
+ var tag = reader.uint32();
48614
+ switch (tag >>> 3) {
48615
+ case 1: {
48616
+ message.spaceReadState = $root.google.chat.v1.SpaceReadState.decode(reader, reader.uint32());
48617
+ break;
48618
+ }
48619
+ case 2: {
48620
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
48621
+ break;
48622
+ }
48623
+ default:
48624
+ reader.skipType(tag & 7);
48625
+ break;
48626
+ }
48627
+ }
48628
+ return message;
48629
+ };
48630
+
48631
+ /**
48632
+ * Decodes an UpdateSpaceReadStateRequest message from the specified reader or buffer, length delimited.
48633
+ * @function decodeDelimited
48634
+ * @memberof google.chat.v1.UpdateSpaceReadStateRequest
48635
+ * @static
48636
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
48637
+ * @returns {google.chat.v1.UpdateSpaceReadStateRequest} UpdateSpaceReadStateRequest
48638
+ * @throws {Error} If the payload is not a reader or valid buffer
48639
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48640
+ */
48641
+ UpdateSpaceReadStateRequest.decodeDelimited = function decodeDelimited(reader) {
48642
+ if (!(reader instanceof $Reader))
48643
+ reader = new $Reader(reader);
48644
+ return this.decode(reader, reader.uint32());
48645
+ };
48646
+
48647
+ /**
48648
+ * Verifies an UpdateSpaceReadStateRequest message.
48649
+ * @function verify
48650
+ * @memberof google.chat.v1.UpdateSpaceReadStateRequest
48651
+ * @static
48652
+ * @param {Object.<string,*>} message Plain object to verify
48653
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
48654
+ */
48655
+ UpdateSpaceReadStateRequest.verify = function verify(message) {
48656
+ if (typeof message !== "object" || message === null)
48657
+ return "object expected";
48658
+ if (message.spaceReadState != null && message.hasOwnProperty("spaceReadState")) {
48659
+ var error = $root.google.chat.v1.SpaceReadState.verify(message.spaceReadState);
48660
+ if (error)
48661
+ return "spaceReadState." + error;
48662
+ }
48663
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
48664
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
48665
+ if (error)
48666
+ return "updateMask." + error;
48667
+ }
48668
+ return null;
48669
+ };
48670
+
48671
+ /**
48672
+ * Creates an UpdateSpaceReadStateRequest message from a plain object. Also converts values to their respective internal types.
48673
+ * @function fromObject
48674
+ * @memberof google.chat.v1.UpdateSpaceReadStateRequest
48675
+ * @static
48676
+ * @param {Object.<string,*>} object Plain object
48677
+ * @returns {google.chat.v1.UpdateSpaceReadStateRequest} UpdateSpaceReadStateRequest
48678
+ */
48679
+ UpdateSpaceReadStateRequest.fromObject = function fromObject(object) {
48680
+ if (object instanceof $root.google.chat.v1.UpdateSpaceReadStateRequest)
48681
+ return object;
48682
+ var message = new $root.google.chat.v1.UpdateSpaceReadStateRequest();
48683
+ if (object.spaceReadState != null) {
48684
+ if (typeof object.spaceReadState !== "object")
48685
+ throw TypeError(".google.chat.v1.UpdateSpaceReadStateRequest.spaceReadState: object expected");
48686
+ message.spaceReadState = $root.google.chat.v1.SpaceReadState.fromObject(object.spaceReadState);
48687
+ }
48688
+ if (object.updateMask != null) {
48689
+ if (typeof object.updateMask !== "object")
48690
+ throw TypeError(".google.chat.v1.UpdateSpaceReadStateRequest.updateMask: object expected");
48691
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
48692
+ }
48693
+ return message;
48694
+ };
48695
+
48696
+ /**
48697
+ * Creates a plain object from an UpdateSpaceReadStateRequest message. Also converts values to other types if specified.
48698
+ * @function toObject
48699
+ * @memberof google.chat.v1.UpdateSpaceReadStateRequest
48700
+ * @static
48701
+ * @param {google.chat.v1.UpdateSpaceReadStateRequest} message UpdateSpaceReadStateRequest
48702
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
48703
+ * @returns {Object.<string,*>} Plain object
48704
+ */
48705
+ UpdateSpaceReadStateRequest.toObject = function toObject(message, options) {
48706
+ if (!options)
48707
+ options = {};
48708
+ var object = {};
48709
+ if (options.defaults) {
48710
+ object.spaceReadState = null;
48711
+ object.updateMask = null;
48712
+ }
48713
+ if (message.spaceReadState != null && message.hasOwnProperty("spaceReadState"))
48714
+ object.spaceReadState = $root.google.chat.v1.SpaceReadState.toObject(message.spaceReadState, options);
48715
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
48716
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
48717
+ return object;
48718
+ };
48719
+
48720
+ /**
48721
+ * Converts this UpdateSpaceReadStateRequest to JSON.
48722
+ * @function toJSON
48723
+ * @memberof google.chat.v1.UpdateSpaceReadStateRequest
48724
+ * @instance
48725
+ * @returns {Object.<string,*>} JSON object
48726
+ */
48727
+ UpdateSpaceReadStateRequest.prototype.toJSON = function toJSON() {
48728
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
48729
+ };
48730
+
48731
+ /**
48732
+ * Gets the default type url for UpdateSpaceReadStateRequest
48733
+ * @function getTypeUrl
48734
+ * @memberof google.chat.v1.UpdateSpaceReadStateRequest
48735
+ * @static
48736
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
48737
+ * @returns {string} The default type url
48738
+ */
48739
+ UpdateSpaceReadStateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
48740
+ if (typeUrlPrefix === undefined) {
48741
+ typeUrlPrefix = "type.googleapis.com";
48742
+ }
48743
+ return typeUrlPrefix + "/google.chat.v1.UpdateSpaceReadStateRequest";
48744
+ };
48745
+
48746
+ return UpdateSpaceReadStateRequest;
48747
+ })();
48748
+
47400
48749
  v1.SetUpSpaceRequest = (function() {
47401
48750
 
47402
48751
  /**
@@ -47674,6 +49023,441 @@
47674
49023
  return SetUpSpaceRequest;
47675
49024
  })();
47676
49025
 
49026
+ v1.ThreadReadState = (function() {
49027
+
49028
+ /**
49029
+ * Properties of a ThreadReadState.
49030
+ * @memberof google.chat.v1
49031
+ * @interface IThreadReadState
49032
+ * @property {string|null} [name] ThreadReadState name
49033
+ * @property {google.protobuf.ITimestamp|null} [lastReadTime] ThreadReadState lastReadTime
49034
+ */
49035
+
49036
+ /**
49037
+ * Constructs a new ThreadReadState.
49038
+ * @memberof google.chat.v1
49039
+ * @classdesc Represents a ThreadReadState.
49040
+ * @implements IThreadReadState
49041
+ * @constructor
49042
+ * @param {google.chat.v1.IThreadReadState=} [properties] Properties to set
49043
+ */
49044
+ function ThreadReadState(properties) {
49045
+ if (properties)
49046
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
49047
+ if (properties[keys[i]] != null)
49048
+ this[keys[i]] = properties[keys[i]];
49049
+ }
49050
+
49051
+ /**
49052
+ * ThreadReadState name.
49053
+ * @member {string} name
49054
+ * @memberof google.chat.v1.ThreadReadState
49055
+ * @instance
49056
+ */
49057
+ ThreadReadState.prototype.name = "";
49058
+
49059
+ /**
49060
+ * ThreadReadState lastReadTime.
49061
+ * @member {google.protobuf.ITimestamp|null|undefined} lastReadTime
49062
+ * @memberof google.chat.v1.ThreadReadState
49063
+ * @instance
49064
+ */
49065
+ ThreadReadState.prototype.lastReadTime = null;
49066
+
49067
+ /**
49068
+ * Creates a new ThreadReadState instance using the specified properties.
49069
+ * @function create
49070
+ * @memberof google.chat.v1.ThreadReadState
49071
+ * @static
49072
+ * @param {google.chat.v1.IThreadReadState=} [properties] Properties to set
49073
+ * @returns {google.chat.v1.ThreadReadState} ThreadReadState instance
49074
+ */
49075
+ ThreadReadState.create = function create(properties) {
49076
+ return new ThreadReadState(properties);
49077
+ };
49078
+
49079
+ /**
49080
+ * Encodes the specified ThreadReadState message. Does not implicitly {@link google.chat.v1.ThreadReadState.verify|verify} messages.
49081
+ * @function encode
49082
+ * @memberof google.chat.v1.ThreadReadState
49083
+ * @static
49084
+ * @param {google.chat.v1.IThreadReadState} message ThreadReadState message or plain object to encode
49085
+ * @param {$protobuf.Writer} [writer] Writer to encode to
49086
+ * @returns {$protobuf.Writer} Writer
49087
+ */
49088
+ ThreadReadState.encode = function encode(message, writer) {
49089
+ if (!writer)
49090
+ writer = $Writer.create();
49091
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
49092
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
49093
+ if (message.lastReadTime != null && Object.hasOwnProperty.call(message, "lastReadTime"))
49094
+ $root.google.protobuf.Timestamp.encode(message.lastReadTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
49095
+ return writer;
49096
+ };
49097
+
49098
+ /**
49099
+ * Encodes the specified ThreadReadState message, length delimited. Does not implicitly {@link google.chat.v1.ThreadReadState.verify|verify} messages.
49100
+ * @function encodeDelimited
49101
+ * @memberof google.chat.v1.ThreadReadState
49102
+ * @static
49103
+ * @param {google.chat.v1.IThreadReadState} message ThreadReadState message or plain object to encode
49104
+ * @param {$protobuf.Writer} [writer] Writer to encode to
49105
+ * @returns {$protobuf.Writer} Writer
49106
+ */
49107
+ ThreadReadState.encodeDelimited = function encodeDelimited(message, writer) {
49108
+ return this.encode(message, writer).ldelim();
49109
+ };
49110
+
49111
+ /**
49112
+ * Decodes a ThreadReadState message from the specified reader or buffer.
49113
+ * @function decode
49114
+ * @memberof google.chat.v1.ThreadReadState
49115
+ * @static
49116
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
49117
+ * @param {number} [length] Message length if known beforehand
49118
+ * @returns {google.chat.v1.ThreadReadState} ThreadReadState
49119
+ * @throws {Error} If the payload is not a reader or valid buffer
49120
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
49121
+ */
49122
+ ThreadReadState.decode = function decode(reader, length) {
49123
+ if (!(reader instanceof $Reader))
49124
+ reader = $Reader.create(reader);
49125
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.ThreadReadState();
49126
+ while (reader.pos < end) {
49127
+ var tag = reader.uint32();
49128
+ switch (tag >>> 3) {
49129
+ case 1: {
49130
+ message.name = reader.string();
49131
+ break;
49132
+ }
49133
+ case 2: {
49134
+ message.lastReadTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
49135
+ break;
49136
+ }
49137
+ default:
49138
+ reader.skipType(tag & 7);
49139
+ break;
49140
+ }
49141
+ }
49142
+ return message;
49143
+ };
49144
+
49145
+ /**
49146
+ * Decodes a ThreadReadState message from the specified reader or buffer, length delimited.
49147
+ * @function decodeDelimited
49148
+ * @memberof google.chat.v1.ThreadReadState
49149
+ * @static
49150
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
49151
+ * @returns {google.chat.v1.ThreadReadState} ThreadReadState
49152
+ * @throws {Error} If the payload is not a reader or valid buffer
49153
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
49154
+ */
49155
+ ThreadReadState.decodeDelimited = function decodeDelimited(reader) {
49156
+ if (!(reader instanceof $Reader))
49157
+ reader = new $Reader(reader);
49158
+ return this.decode(reader, reader.uint32());
49159
+ };
49160
+
49161
+ /**
49162
+ * Verifies a ThreadReadState message.
49163
+ * @function verify
49164
+ * @memberof google.chat.v1.ThreadReadState
49165
+ * @static
49166
+ * @param {Object.<string,*>} message Plain object to verify
49167
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
49168
+ */
49169
+ ThreadReadState.verify = function verify(message) {
49170
+ if (typeof message !== "object" || message === null)
49171
+ return "object expected";
49172
+ if (message.name != null && message.hasOwnProperty("name"))
49173
+ if (!$util.isString(message.name))
49174
+ return "name: string expected";
49175
+ if (message.lastReadTime != null && message.hasOwnProperty("lastReadTime")) {
49176
+ var error = $root.google.protobuf.Timestamp.verify(message.lastReadTime);
49177
+ if (error)
49178
+ return "lastReadTime." + error;
49179
+ }
49180
+ return null;
49181
+ };
49182
+
49183
+ /**
49184
+ * Creates a ThreadReadState message from a plain object. Also converts values to their respective internal types.
49185
+ * @function fromObject
49186
+ * @memberof google.chat.v1.ThreadReadState
49187
+ * @static
49188
+ * @param {Object.<string,*>} object Plain object
49189
+ * @returns {google.chat.v1.ThreadReadState} ThreadReadState
49190
+ */
49191
+ ThreadReadState.fromObject = function fromObject(object) {
49192
+ if (object instanceof $root.google.chat.v1.ThreadReadState)
49193
+ return object;
49194
+ var message = new $root.google.chat.v1.ThreadReadState();
49195
+ if (object.name != null)
49196
+ message.name = String(object.name);
49197
+ if (object.lastReadTime != null) {
49198
+ if (typeof object.lastReadTime !== "object")
49199
+ throw TypeError(".google.chat.v1.ThreadReadState.lastReadTime: object expected");
49200
+ message.lastReadTime = $root.google.protobuf.Timestamp.fromObject(object.lastReadTime);
49201
+ }
49202
+ return message;
49203
+ };
49204
+
49205
+ /**
49206
+ * Creates a plain object from a ThreadReadState message. Also converts values to other types if specified.
49207
+ * @function toObject
49208
+ * @memberof google.chat.v1.ThreadReadState
49209
+ * @static
49210
+ * @param {google.chat.v1.ThreadReadState} message ThreadReadState
49211
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
49212
+ * @returns {Object.<string,*>} Plain object
49213
+ */
49214
+ ThreadReadState.toObject = function toObject(message, options) {
49215
+ if (!options)
49216
+ options = {};
49217
+ var object = {};
49218
+ if (options.defaults) {
49219
+ object.name = "";
49220
+ object.lastReadTime = null;
49221
+ }
49222
+ if (message.name != null && message.hasOwnProperty("name"))
49223
+ object.name = message.name;
49224
+ if (message.lastReadTime != null && message.hasOwnProperty("lastReadTime"))
49225
+ object.lastReadTime = $root.google.protobuf.Timestamp.toObject(message.lastReadTime, options);
49226
+ return object;
49227
+ };
49228
+
49229
+ /**
49230
+ * Converts this ThreadReadState to JSON.
49231
+ * @function toJSON
49232
+ * @memberof google.chat.v1.ThreadReadState
49233
+ * @instance
49234
+ * @returns {Object.<string,*>} JSON object
49235
+ */
49236
+ ThreadReadState.prototype.toJSON = function toJSON() {
49237
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
49238
+ };
49239
+
49240
+ /**
49241
+ * Gets the default type url for ThreadReadState
49242
+ * @function getTypeUrl
49243
+ * @memberof google.chat.v1.ThreadReadState
49244
+ * @static
49245
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
49246
+ * @returns {string} The default type url
49247
+ */
49248
+ ThreadReadState.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
49249
+ if (typeUrlPrefix === undefined) {
49250
+ typeUrlPrefix = "type.googleapis.com";
49251
+ }
49252
+ return typeUrlPrefix + "/google.chat.v1.ThreadReadState";
49253
+ };
49254
+
49255
+ return ThreadReadState;
49256
+ })();
49257
+
49258
+ v1.GetThreadReadStateRequest = (function() {
49259
+
49260
+ /**
49261
+ * Properties of a GetThreadReadStateRequest.
49262
+ * @memberof google.chat.v1
49263
+ * @interface IGetThreadReadStateRequest
49264
+ * @property {string|null} [name] GetThreadReadStateRequest name
49265
+ */
49266
+
49267
+ /**
49268
+ * Constructs a new GetThreadReadStateRequest.
49269
+ * @memberof google.chat.v1
49270
+ * @classdesc Represents a GetThreadReadStateRequest.
49271
+ * @implements IGetThreadReadStateRequest
49272
+ * @constructor
49273
+ * @param {google.chat.v1.IGetThreadReadStateRequest=} [properties] Properties to set
49274
+ */
49275
+ function GetThreadReadStateRequest(properties) {
49276
+ if (properties)
49277
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
49278
+ if (properties[keys[i]] != null)
49279
+ this[keys[i]] = properties[keys[i]];
49280
+ }
49281
+
49282
+ /**
49283
+ * GetThreadReadStateRequest name.
49284
+ * @member {string} name
49285
+ * @memberof google.chat.v1.GetThreadReadStateRequest
49286
+ * @instance
49287
+ */
49288
+ GetThreadReadStateRequest.prototype.name = "";
49289
+
49290
+ /**
49291
+ * Creates a new GetThreadReadStateRequest instance using the specified properties.
49292
+ * @function create
49293
+ * @memberof google.chat.v1.GetThreadReadStateRequest
49294
+ * @static
49295
+ * @param {google.chat.v1.IGetThreadReadStateRequest=} [properties] Properties to set
49296
+ * @returns {google.chat.v1.GetThreadReadStateRequest} GetThreadReadStateRequest instance
49297
+ */
49298
+ GetThreadReadStateRequest.create = function create(properties) {
49299
+ return new GetThreadReadStateRequest(properties);
49300
+ };
49301
+
49302
+ /**
49303
+ * Encodes the specified GetThreadReadStateRequest message. Does not implicitly {@link google.chat.v1.GetThreadReadStateRequest.verify|verify} messages.
49304
+ * @function encode
49305
+ * @memberof google.chat.v1.GetThreadReadStateRequest
49306
+ * @static
49307
+ * @param {google.chat.v1.IGetThreadReadStateRequest} message GetThreadReadStateRequest message or plain object to encode
49308
+ * @param {$protobuf.Writer} [writer] Writer to encode to
49309
+ * @returns {$protobuf.Writer} Writer
49310
+ */
49311
+ GetThreadReadStateRequest.encode = function encode(message, writer) {
49312
+ if (!writer)
49313
+ writer = $Writer.create();
49314
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
49315
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
49316
+ return writer;
49317
+ };
49318
+
49319
+ /**
49320
+ * Encodes the specified GetThreadReadStateRequest message, length delimited. Does not implicitly {@link google.chat.v1.GetThreadReadStateRequest.verify|verify} messages.
49321
+ * @function encodeDelimited
49322
+ * @memberof google.chat.v1.GetThreadReadStateRequest
49323
+ * @static
49324
+ * @param {google.chat.v1.IGetThreadReadStateRequest} message GetThreadReadStateRequest message or plain object to encode
49325
+ * @param {$protobuf.Writer} [writer] Writer to encode to
49326
+ * @returns {$protobuf.Writer} Writer
49327
+ */
49328
+ GetThreadReadStateRequest.encodeDelimited = function encodeDelimited(message, writer) {
49329
+ return this.encode(message, writer).ldelim();
49330
+ };
49331
+
49332
+ /**
49333
+ * Decodes a GetThreadReadStateRequest message from the specified reader or buffer.
49334
+ * @function decode
49335
+ * @memberof google.chat.v1.GetThreadReadStateRequest
49336
+ * @static
49337
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
49338
+ * @param {number} [length] Message length if known beforehand
49339
+ * @returns {google.chat.v1.GetThreadReadStateRequest} GetThreadReadStateRequest
49340
+ * @throws {Error} If the payload is not a reader or valid buffer
49341
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
49342
+ */
49343
+ GetThreadReadStateRequest.decode = function decode(reader, length) {
49344
+ if (!(reader instanceof $Reader))
49345
+ reader = $Reader.create(reader);
49346
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.GetThreadReadStateRequest();
49347
+ while (reader.pos < end) {
49348
+ var tag = reader.uint32();
49349
+ switch (tag >>> 3) {
49350
+ case 1: {
49351
+ message.name = reader.string();
49352
+ break;
49353
+ }
49354
+ default:
49355
+ reader.skipType(tag & 7);
49356
+ break;
49357
+ }
49358
+ }
49359
+ return message;
49360
+ };
49361
+
49362
+ /**
49363
+ * Decodes a GetThreadReadStateRequest message from the specified reader or buffer, length delimited.
49364
+ * @function decodeDelimited
49365
+ * @memberof google.chat.v1.GetThreadReadStateRequest
49366
+ * @static
49367
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
49368
+ * @returns {google.chat.v1.GetThreadReadStateRequest} GetThreadReadStateRequest
49369
+ * @throws {Error} If the payload is not a reader or valid buffer
49370
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
49371
+ */
49372
+ GetThreadReadStateRequest.decodeDelimited = function decodeDelimited(reader) {
49373
+ if (!(reader instanceof $Reader))
49374
+ reader = new $Reader(reader);
49375
+ return this.decode(reader, reader.uint32());
49376
+ };
49377
+
49378
+ /**
49379
+ * Verifies a GetThreadReadStateRequest message.
49380
+ * @function verify
49381
+ * @memberof google.chat.v1.GetThreadReadStateRequest
49382
+ * @static
49383
+ * @param {Object.<string,*>} message Plain object to verify
49384
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
49385
+ */
49386
+ GetThreadReadStateRequest.verify = function verify(message) {
49387
+ if (typeof message !== "object" || message === null)
49388
+ return "object expected";
49389
+ if (message.name != null && message.hasOwnProperty("name"))
49390
+ if (!$util.isString(message.name))
49391
+ return "name: string expected";
49392
+ return null;
49393
+ };
49394
+
49395
+ /**
49396
+ * Creates a GetThreadReadStateRequest message from a plain object. Also converts values to their respective internal types.
49397
+ * @function fromObject
49398
+ * @memberof google.chat.v1.GetThreadReadStateRequest
49399
+ * @static
49400
+ * @param {Object.<string,*>} object Plain object
49401
+ * @returns {google.chat.v1.GetThreadReadStateRequest} GetThreadReadStateRequest
49402
+ */
49403
+ GetThreadReadStateRequest.fromObject = function fromObject(object) {
49404
+ if (object instanceof $root.google.chat.v1.GetThreadReadStateRequest)
49405
+ return object;
49406
+ var message = new $root.google.chat.v1.GetThreadReadStateRequest();
49407
+ if (object.name != null)
49408
+ message.name = String(object.name);
49409
+ return message;
49410
+ };
49411
+
49412
+ /**
49413
+ * Creates a plain object from a GetThreadReadStateRequest message. Also converts values to other types if specified.
49414
+ * @function toObject
49415
+ * @memberof google.chat.v1.GetThreadReadStateRequest
49416
+ * @static
49417
+ * @param {google.chat.v1.GetThreadReadStateRequest} message GetThreadReadStateRequest
49418
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
49419
+ * @returns {Object.<string,*>} Plain object
49420
+ */
49421
+ GetThreadReadStateRequest.toObject = function toObject(message, options) {
49422
+ if (!options)
49423
+ options = {};
49424
+ var object = {};
49425
+ if (options.defaults)
49426
+ object.name = "";
49427
+ if (message.name != null && message.hasOwnProperty("name"))
49428
+ object.name = message.name;
49429
+ return object;
49430
+ };
49431
+
49432
+ /**
49433
+ * Converts this GetThreadReadStateRequest to JSON.
49434
+ * @function toJSON
49435
+ * @memberof google.chat.v1.GetThreadReadStateRequest
49436
+ * @instance
49437
+ * @returns {Object.<string,*>} JSON object
49438
+ */
49439
+ GetThreadReadStateRequest.prototype.toJSON = function toJSON() {
49440
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
49441
+ };
49442
+
49443
+ /**
49444
+ * Gets the default type url for GetThreadReadStateRequest
49445
+ * @function getTypeUrl
49446
+ * @memberof google.chat.v1.GetThreadReadStateRequest
49447
+ * @static
49448
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
49449
+ * @returns {string} The default type url
49450
+ */
49451
+ GetThreadReadStateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
49452
+ if (typeUrlPrefix === undefined) {
49453
+ typeUrlPrefix = "type.googleapis.com";
49454
+ }
49455
+ return typeUrlPrefix + "/google.chat.v1.GetThreadReadStateRequest";
49456
+ };
49457
+
49458
+ return GetThreadReadStateRequest;
49459
+ })();
49460
+
47677
49461
  return v1;
47678
49462
  })();
47679
49463