@google-apps/chat 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +1 -0
- package/build/protos/google/apps/card/v1/card.proto +242 -160
- package/build/protos/google/chat/v1/action_status.proto +1 -1
- package/build/protos/google/chat/v1/annotation.proto +2 -2
- package/build/protos/google/chat/v1/attachment.proto +9 -0
- package/build/protos/google/chat/v1/chat_service.proto +92 -80
- package/build/protos/google/chat/v1/contextual_addon.proto +1 -1
- package/build/protos/google/chat/v1/membership.proto +33 -11
- package/build/protos/google/chat/v1/message.proto +71 -113
- package/build/protos/google/chat/v1/reaction.proto +4 -2
- package/build/protos/google/chat/v1/slash_command.proto +3 -2
- package/build/protos/google/chat/v1/space.proto +28 -17
- package/build/protos/google/chat/v1/space_setup.proto +1 -0
- package/build/protos/google/chat/v1/user.proto +3 -2
- package/build/protos/google/chat/v1/widgets.proto +4 -4
- package/build/protos/protos.d.ts +320 -75
- package/build/protos/protos.js +826 -248
- package/build/protos/protos.json +73 -10
- package/build/src/v1/chat_service_client.d.ts +173 -134
- package/build/src/v1/chat_service_client.js +48 -24
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/build/src/v1/chat_service_client_config.json +5 -0
- package/package.json +1 -1
package/build/protos/protos.js
CHANGED
|
@@ -14141,25 +14141,25 @@
|
|
|
14141
14141
|
return Duration;
|
|
14142
14142
|
})();
|
|
14143
14143
|
|
|
14144
|
-
protobuf.
|
|
14144
|
+
protobuf.FieldMask = (function() {
|
|
14145
14145
|
|
|
14146
14146
|
/**
|
|
14147
|
-
* Properties of a
|
|
14147
|
+
* Properties of a FieldMask.
|
|
14148
14148
|
* @memberof google.protobuf
|
|
14149
|
-
* @interface
|
|
14150
|
-
* @property {
|
|
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
|
|
14154
|
+
* Constructs a new FieldMask.
|
|
14156
14155
|
* @memberof google.protobuf
|
|
14157
|
-
* @classdesc Represents a
|
|
14158
|
-
* @implements
|
|
14156
|
+
* @classdesc Represents a FieldMask.
|
|
14157
|
+
* @implements IFieldMask
|
|
14159
14158
|
* @constructor
|
|
14160
|
-
* @param {google.protobuf.
|
|
14159
|
+
* @param {google.protobuf.IFieldMask=} [properties] Properties to set
|
|
14161
14160
|
*/
|
|
14162
|
-
function
|
|
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
|
-
*
|
|
14171
|
-
* @member {
|
|
14172
|
-
* @memberof google.protobuf.
|
|
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
|
-
|
|
14175
|
+
FieldMask.prototype.paths = $util.emptyArray;
|
|
14184
14176
|
|
|
14185
14177
|
/**
|
|
14186
|
-
* Creates a new
|
|
14178
|
+
* Creates a new FieldMask instance using the specified properties.
|
|
14187
14179
|
* @function create
|
|
14188
|
-
* @memberof google.protobuf.
|
|
14180
|
+
* @memberof google.protobuf.FieldMask
|
|
14189
14181
|
* @static
|
|
14190
|
-
* @param {google.protobuf.
|
|
14191
|
-
* @returns {google.protobuf.
|
|
14182
|
+
* @param {google.protobuf.IFieldMask=} [properties] Properties to set
|
|
14183
|
+
* @returns {google.protobuf.FieldMask} FieldMask instance
|
|
14192
14184
|
*/
|
|
14193
|
-
|
|
14194
|
-
return new
|
|
14185
|
+
FieldMask.create = function create(properties) {
|
|
14186
|
+
return new FieldMask(properties);
|
|
14195
14187
|
};
|
|
14196
14188
|
|
|
14197
14189
|
/**
|
|
14198
|
-
* Encodes the specified
|
|
14190
|
+
* Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
|
|
14199
14191
|
* @function encode
|
|
14200
|
-
* @memberof google.protobuf.
|
|
14192
|
+
* @memberof google.protobuf.FieldMask
|
|
14201
14193
|
* @static
|
|
14202
|
-
* @param {google.protobuf.
|
|
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
|
-
|
|
14198
|
+
FieldMask.encode = function encode(message, writer) {
|
|
14207
14199
|
if (!writer)
|
|
14208
14200
|
writer = $Writer.create();
|
|
14209
|
-
if (message.
|
|
14210
|
-
|
|
14211
|
-
|
|
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
|
|
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.
|
|
14210
|
+
* @memberof google.protobuf.FieldMask
|
|
14220
14211
|
* @static
|
|
14221
|
-
* @param {google.protobuf.
|
|
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
|
-
|
|
14216
|
+
FieldMask.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14226
14217
|
return this.encode(message, writer).ldelim();
|
|
14227
14218
|
};
|
|
14228
14219
|
|
|
14229
14220
|
/**
|
|
14230
|
-
* Decodes a
|
|
14221
|
+
* Decodes a FieldMask message from the specified reader or buffer.
|
|
14231
14222
|
* @function decode
|
|
14232
|
-
* @memberof google.protobuf.
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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.
|
|
14249
|
-
|
|
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
|
|
14253
|
+
* Decodes a FieldMask message from the specified reader or buffer, length delimited.
|
|
14265
14254
|
* @function decodeDelimited
|
|
14266
|
-
* @memberof google.protobuf.
|
|
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.
|
|
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
|
-
|
|
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
|
|
14269
|
+
* Verifies a FieldMask message.
|
|
14281
14270
|
* @function verify
|
|
14282
|
-
* @memberof google.protobuf.
|
|
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
|
-
|
|
14276
|
+
FieldMask.verify = function verify(message) {
|
|
14288
14277
|
if (typeof message !== "object" || message === null)
|
|
14289
14278
|
return "object expected";
|
|
14290
|
-
if (message.
|
|
14291
|
-
if (
|
|
14292
|
-
return "
|
|
14293
|
-
|
|
14294
|
-
|
|
14295
|
-
|
|
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
|
|
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.
|
|
14292
|
+
* @memberof google.protobuf.FieldMask
|
|
14303
14293
|
* @static
|
|
14304
14294
|
* @param {Object.<string,*>} object Plain object
|
|
14305
|
-
* @returns {google.protobuf.
|
|
14295
|
+
* @returns {google.protobuf.FieldMask} FieldMask
|
|
14306
14296
|
*/
|
|
14307
|
-
|
|
14308
|
-
if (object instanceof $root.google.protobuf.
|
|
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.
|
|
14311
|
-
if (object.
|
|
14312
|
-
if (
|
|
14313
|
-
(
|
|
14314
|
-
|
|
14315
|
-
|
|
14316
|
-
|
|
14317
|
-
|
|
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
|
|
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.
|
|
14314
|
+
* @memberof google.protobuf.FieldMask
|
|
14329
14315
|
* @static
|
|
14330
|
-
* @param {google.protobuf.
|
|
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
|
-
|
|
14320
|
+
FieldMask.toObject = function toObject(message, options) {
|
|
14335
14321
|
if (!options)
|
|
14336
14322
|
options = {};
|
|
14337
14323
|
var object = {};
|
|
14338
|
-
if (options.defaults)
|
|
14339
|
-
|
|
14340
|
-
|
|
14341
|
-
|
|
14342
|
-
|
|
14343
|
-
object.
|
|
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
|
|
14335
|
+
* Converts this FieldMask to JSON.
|
|
14358
14336
|
* @function toJSON
|
|
14359
|
-
* @memberof google.protobuf.
|
|
14337
|
+
* @memberof google.protobuf.FieldMask
|
|
14360
14338
|
* @instance
|
|
14361
14339
|
* @returns {Object.<string,*>} JSON object
|
|
14362
14340
|
*/
|
|
14363
|
-
|
|
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
|
|
14346
|
+
* Gets the default type url for FieldMask
|
|
14369
14347
|
* @function getTypeUrl
|
|
14370
|
-
* @memberof google.protobuf.
|
|
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
|
-
|
|
14353
|
+
FieldMask.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
14376
14354
|
if (typeUrlPrefix === undefined) {
|
|
14377
14355
|
typeUrlPrefix = "type.googleapis.com";
|
|
14378
14356
|
}
|
|
14379
|
-
return typeUrlPrefix + "/google.protobuf.
|
|
14357
|
+
return typeUrlPrefix + "/google.protobuf.FieldMask";
|
|
14380
14358
|
};
|
|
14381
14359
|
|
|
14382
|
-
return
|
|
14360
|
+
return FieldMask;
|
|
14383
14361
|
})();
|
|
14384
14362
|
|
|
14385
|
-
protobuf.
|
|
14363
|
+
protobuf.Timestamp = (function() {
|
|
14386
14364
|
|
|
14387
14365
|
/**
|
|
14388
|
-
* Properties of a
|
|
14366
|
+
* Properties of a Timestamp.
|
|
14389
14367
|
* @memberof google.protobuf
|
|
14390
|
-
* @interface
|
|
14391
|
-
* @property {
|
|
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
|
|
14374
|
+
* Constructs a new Timestamp.
|
|
14396
14375
|
* @memberof google.protobuf
|
|
14397
|
-
* @classdesc Represents a
|
|
14398
|
-
* @implements
|
|
14376
|
+
* @classdesc Represents a Timestamp.
|
|
14377
|
+
* @implements ITimestamp
|
|
14399
14378
|
* @constructor
|
|
14400
|
-
* @param {google.protobuf.
|
|
14379
|
+
* @param {google.protobuf.ITimestamp=} [properties] Properties to set
|
|
14401
14380
|
*/
|
|
14402
|
-
function
|
|
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
|
-
*
|
|
14412
|
-
* @member {
|
|
14413
|
-
* @memberof google.protobuf.
|
|
14389
|
+
* Timestamp seconds.
|
|
14390
|
+
* @member {number|Long} seconds
|
|
14391
|
+
* @memberof google.protobuf.Timestamp
|
|
14414
14392
|
* @instance
|
|
14415
14393
|
*/
|
|
14416
|
-
|
|
14394
|
+
Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
14417
14395
|
|
|
14418
14396
|
/**
|
|
14419
|
-
*
|
|
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.
|
|
14407
|
+
* @memberof google.protobuf.Timestamp
|
|
14422
14408
|
* @static
|
|
14423
|
-
* @param {google.protobuf.
|
|
14424
|
-
* @returns {google.protobuf.
|
|
14409
|
+
* @param {google.protobuf.ITimestamp=} [properties] Properties to set
|
|
14410
|
+
* @returns {google.protobuf.Timestamp} Timestamp instance
|
|
14425
14411
|
*/
|
|
14426
|
-
|
|
14427
|
-
return new
|
|
14412
|
+
Timestamp.create = function create(properties) {
|
|
14413
|
+
return new Timestamp(properties);
|
|
14428
14414
|
};
|
|
14429
14415
|
|
|
14430
14416
|
/**
|
|
14431
|
-
* Encodes the specified
|
|
14417
|
+
* Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
|
|
14432
14418
|
* @function encode
|
|
14433
|
-
* @memberof google.protobuf.
|
|
14419
|
+
* @memberof google.protobuf.Timestamp
|
|
14434
14420
|
* @static
|
|
14435
|
-
* @param {google.protobuf.
|
|
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
|
-
|
|
14425
|
+
Timestamp.encode = function encode(message, writer) {
|
|
14440
14426
|
if (!writer)
|
|
14441
14427
|
writer = $Writer.create();
|
|
14442
|
-
if (message.
|
|
14443
|
-
|
|
14444
|
-
|
|
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
|
|
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.
|
|
14438
|
+
* @memberof google.protobuf.Timestamp
|
|
14452
14439
|
* @static
|
|
14453
|
-
* @param {google.protobuf.
|
|
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
|
-
|
|
14444
|
+
Timestamp.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14458
14445
|
return this.encode(message, writer).ldelim();
|
|
14459
14446
|
};
|
|
14460
14447
|
|
|
14461
14448
|
/**
|
|
14462
|
-
* Decodes a
|
|
14449
|
+
* Decodes a Timestamp message from the specified reader or buffer.
|
|
14463
14450
|
* @function decode
|
|
14464
|
-
* @memberof google.protobuf.
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
14481
|
-
|
|
14482
|
-
|
|
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
|
|
14483
|
+
* Decodes a Timestamp message from the specified reader or buffer, length delimited.
|
|
14495
14484
|
* @function decodeDelimited
|
|
14496
|
-
* @memberof google.protobuf.
|
|
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.
|
|
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
|
-
|
|
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
|
|
14499
|
+
* Verifies a Timestamp message.
|
|
14511
14500
|
* @function verify
|
|
14512
|
-
* @memberof google.protobuf.
|
|
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
|
-
|
|
14506
|
+
Timestamp.verify = function verify(message) {
|
|
14518
14507
|
if (typeof message !== "object" || message === null)
|
|
14519
14508
|
return "object expected";
|
|
14520
|
-
if (message.
|
|
14521
|
-
if (!
|
|
14522
|
-
return "
|
|
14523
|
-
|
|
14524
|
-
|
|
14525
|
-
|
|
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
|
|
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.
|
|
14521
|
+
* @memberof google.protobuf.Timestamp
|
|
14534
14522
|
* @static
|
|
14535
14523
|
* @param {Object.<string,*>} object Plain object
|
|
14536
|
-
* @returns {google.protobuf.
|
|
14524
|
+
* @returns {google.protobuf.Timestamp} Timestamp
|
|
14537
14525
|
*/
|
|
14538
|
-
|
|
14539
|
-
if (object instanceof $root.google.protobuf.
|
|
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.
|
|
14542
|
-
if (object.
|
|
14543
|
-
if (
|
|
14544
|
-
|
|
14545
|
-
|
|
14546
|
-
|
|
14547
|
-
|
|
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
|
|
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.
|
|
14547
|
+
* @memberof google.protobuf.Timestamp
|
|
14556
14548
|
* @static
|
|
14557
|
-
* @param {google.protobuf.
|
|
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
|
-
|
|
14553
|
+
Timestamp.toObject = function toObject(message, options) {
|
|
14562
14554
|
if (!options)
|
|
14563
14555
|
options = {};
|
|
14564
14556
|
var object = {};
|
|
14565
|
-
if (options.
|
|
14566
|
-
|
|
14567
|
-
|
|
14568
|
-
|
|
14569
|
-
|
|
14570
|
-
object.
|
|
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
|
|
14576
|
+
* Converts this Timestamp to JSON.
|
|
14577
14577
|
* @function toJSON
|
|
14578
|
-
* @memberof google.protobuf.
|
|
14578
|
+
* @memberof google.protobuf.Timestamp
|
|
14579
14579
|
* @instance
|
|
14580
14580
|
* @returns {Object.<string,*>} JSON object
|
|
14581
14581
|
*/
|
|
14582
|
-
|
|
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
|
|
14587
|
+
* Gets the default type url for Timestamp
|
|
14588
14588
|
* @function getTypeUrl
|
|
14589
|
-
* @memberof google.protobuf.
|
|
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
|
-
|
|
14594
|
+
Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
14595
14595
|
if (typeUrlPrefix === undefined) {
|
|
14596
14596
|
typeUrlPrefix = "type.googleapis.com";
|
|
14597
14597
|
}
|
|
14598
|
-
return typeUrlPrefix + "/google.protobuf.
|
|
14598
|
+
return typeUrlPrefix + "/google.protobuf.Timestamp";
|
|
14599
14599
|
};
|
|
14600
14600
|
|
|
14601
|
-
return
|
|
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";
|
|
@@ -21556,103 +21581,386 @@
|
|
|
21556
21581
|
};
|
|
21557
21582
|
|
|
21558
21583
|
/**
|
|
21559
|
-
* Creates an Icon message from a plain object. Also converts values to their respective internal types.
|
|
21584
|
+
* Creates an Icon message from a plain object. Also converts values to their respective internal types.
|
|
21585
|
+
* @function fromObject
|
|
21586
|
+
* @memberof google.apps.card.v1.Icon
|
|
21587
|
+
* @static
|
|
21588
|
+
* @param {Object.<string,*>} object Plain object
|
|
21589
|
+
* @returns {google.apps.card.v1.Icon} Icon
|
|
21590
|
+
*/
|
|
21591
|
+
Icon.fromObject = function fromObject(object) {
|
|
21592
|
+
if (object instanceof $root.google.apps.card.v1.Icon)
|
|
21593
|
+
return object;
|
|
21594
|
+
var message = new $root.google.apps.card.v1.Icon();
|
|
21595
|
+
if (object.knownIcon != null)
|
|
21596
|
+
message.knownIcon = String(object.knownIcon);
|
|
21597
|
+
if (object.iconUrl != null)
|
|
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
|
+
}
|
|
21604
|
+
if (object.altText != null)
|
|
21605
|
+
message.altText = String(object.altText);
|
|
21606
|
+
switch (object.imageType) {
|
|
21607
|
+
default:
|
|
21608
|
+
if (typeof object.imageType === "number") {
|
|
21609
|
+
message.imageType = object.imageType;
|
|
21610
|
+
break;
|
|
21611
|
+
}
|
|
21612
|
+
break;
|
|
21613
|
+
case "SQUARE":
|
|
21614
|
+
case 0:
|
|
21615
|
+
message.imageType = 0;
|
|
21616
|
+
break;
|
|
21617
|
+
case "CIRCLE":
|
|
21618
|
+
case 1:
|
|
21619
|
+
message.imageType = 1;
|
|
21620
|
+
break;
|
|
21621
|
+
}
|
|
21622
|
+
return message;
|
|
21623
|
+
};
|
|
21624
|
+
|
|
21625
|
+
/**
|
|
21626
|
+
* Creates a plain object from an Icon message. Also converts values to other types if specified.
|
|
21627
|
+
* @function toObject
|
|
21628
|
+
* @memberof google.apps.card.v1.Icon
|
|
21629
|
+
* @static
|
|
21630
|
+
* @param {google.apps.card.v1.Icon} message Icon
|
|
21631
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
21632
|
+
* @returns {Object.<string,*>} Plain object
|
|
21633
|
+
*/
|
|
21634
|
+
Icon.toObject = function toObject(message, options) {
|
|
21635
|
+
if (!options)
|
|
21636
|
+
options = {};
|
|
21637
|
+
var object = {};
|
|
21638
|
+
if (options.defaults) {
|
|
21639
|
+
object.altText = "";
|
|
21640
|
+
object.imageType = options.enums === String ? "SQUARE" : 0;
|
|
21641
|
+
}
|
|
21642
|
+
if (message.knownIcon != null && message.hasOwnProperty("knownIcon")) {
|
|
21643
|
+
object.knownIcon = message.knownIcon;
|
|
21644
|
+
if (options.oneofs)
|
|
21645
|
+
object.icons = "knownIcon";
|
|
21646
|
+
}
|
|
21647
|
+
if (message.iconUrl != null && message.hasOwnProperty("iconUrl")) {
|
|
21648
|
+
object.iconUrl = message.iconUrl;
|
|
21649
|
+
if (options.oneofs)
|
|
21650
|
+
object.icons = "iconUrl";
|
|
21651
|
+
}
|
|
21652
|
+
if (message.altText != null && message.hasOwnProperty("altText"))
|
|
21653
|
+
object.altText = message.altText;
|
|
21654
|
+
if (message.imageType != null && message.hasOwnProperty("imageType"))
|
|
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
|
+
}
|
|
21661
|
+
return object;
|
|
21662
|
+
};
|
|
21663
|
+
|
|
21664
|
+
/**
|
|
21665
|
+
* Converts this Icon to JSON.
|
|
21666
|
+
* @function toJSON
|
|
21667
|
+
* @memberof google.apps.card.v1.Icon
|
|
21668
|
+
* @instance
|
|
21669
|
+
* @returns {Object.<string,*>} JSON object
|
|
21670
|
+
*/
|
|
21671
|
+
Icon.prototype.toJSON = function toJSON() {
|
|
21672
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
21673
|
+
};
|
|
21674
|
+
|
|
21675
|
+
/**
|
|
21676
|
+
* Gets the default type url for Icon
|
|
21677
|
+
* @function getTypeUrl
|
|
21678
|
+
* @memberof google.apps.card.v1.Icon
|
|
21679
|
+
* @static
|
|
21680
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
21681
|
+
* @returns {string} The default type url
|
|
21682
|
+
*/
|
|
21683
|
+
Icon.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
21684
|
+
if (typeUrlPrefix === undefined) {
|
|
21685
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
21686
|
+
}
|
|
21687
|
+
return typeUrlPrefix + "/google.apps.card.v1.Icon";
|
|
21688
|
+
};
|
|
21689
|
+
|
|
21690
|
+
return Icon;
|
|
21691
|
+
})();
|
|
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.
|
|
21560
21886
|
* @function fromObject
|
|
21561
|
-
* @memberof google.apps.card.v1.
|
|
21887
|
+
* @memberof google.apps.card.v1.MaterialIcon
|
|
21562
21888
|
* @static
|
|
21563
21889
|
* @param {Object.<string,*>} object Plain object
|
|
21564
|
-
* @returns {google.apps.card.v1.
|
|
21890
|
+
* @returns {google.apps.card.v1.MaterialIcon} MaterialIcon
|
|
21565
21891
|
*/
|
|
21566
|
-
|
|
21567
|
-
if (object instanceof $root.google.apps.card.v1.
|
|
21892
|
+
MaterialIcon.fromObject = function fromObject(object) {
|
|
21893
|
+
if (object instanceof $root.google.apps.card.v1.MaterialIcon)
|
|
21568
21894
|
return object;
|
|
21569
|
-
var message = new $root.google.apps.card.v1.
|
|
21570
|
-
if (object.
|
|
21571
|
-
message.
|
|
21572
|
-
if (object.
|
|
21573
|
-
message.
|
|
21574
|
-
if (object.
|
|
21575
|
-
message.
|
|
21576
|
-
|
|
21577
|
-
|
|
21578
|
-
if (typeof object.imageType === "number") {
|
|
21579
|
-
message.imageType = object.imageType;
|
|
21580
|
-
break;
|
|
21581
|
-
}
|
|
21582
|
-
break;
|
|
21583
|
-
case "SQUARE":
|
|
21584
|
-
case 0:
|
|
21585
|
-
message.imageType = 0;
|
|
21586
|
-
break;
|
|
21587
|
-
case "CIRCLE":
|
|
21588
|
-
case 1:
|
|
21589
|
-
message.imageType = 1;
|
|
21590
|
-
break;
|
|
21591
|
-
}
|
|
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;
|
|
21592
21904
|
return message;
|
|
21593
21905
|
};
|
|
21594
21906
|
|
|
21595
21907
|
/**
|
|
21596
|
-
* Creates a plain object from
|
|
21908
|
+
* Creates a plain object from a MaterialIcon message. Also converts values to other types if specified.
|
|
21597
21909
|
* @function toObject
|
|
21598
|
-
* @memberof google.apps.card.v1.
|
|
21910
|
+
* @memberof google.apps.card.v1.MaterialIcon
|
|
21599
21911
|
* @static
|
|
21600
|
-
* @param {google.apps.card.v1.
|
|
21912
|
+
* @param {google.apps.card.v1.MaterialIcon} message MaterialIcon
|
|
21601
21913
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
21602
21914
|
* @returns {Object.<string,*>} Plain object
|
|
21603
21915
|
*/
|
|
21604
|
-
|
|
21916
|
+
MaterialIcon.toObject = function toObject(message, options) {
|
|
21605
21917
|
if (!options)
|
|
21606
21918
|
options = {};
|
|
21607
21919
|
var object = {};
|
|
21608
21920
|
if (options.defaults) {
|
|
21609
|
-
object.
|
|
21610
|
-
object.
|
|
21611
|
-
|
|
21612
|
-
|
|
21613
|
-
object.knownIcon = message.knownIcon;
|
|
21614
|
-
if (options.oneofs)
|
|
21615
|
-
object.icons = "knownIcon";
|
|
21616
|
-
}
|
|
21617
|
-
if (message.iconUrl != null && message.hasOwnProperty("iconUrl")) {
|
|
21618
|
-
object.iconUrl = message.iconUrl;
|
|
21619
|
-
if (options.oneofs)
|
|
21620
|
-
object.icons = "iconUrl";
|
|
21921
|
+
object.name = "";
|
|
21922
|
+
object.fill = false;
|
|
21923
|
+
object.weight = 0;
|
|
21924
|
+
object.grade = 0;
|
|
21621
21925
|
}
|
|
21622
|
-
if (message.
|
|
21623
|
-
object.
|
|
21624
|
-
if (message.
|
|
21625
|
-
object.
|
|
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;
|
|
21626
21934
|
return object;
|
|
21627
21935
|
};
|
|
21628
21936
|
|
|
21629
21937
|
/**
|
|
21630
|
-
* Converts this
|
|
21938
|
+
* Converts this MaterialIcon to JSON.
|
|
21631
21939
|
* @function toJSON
|
|
21632
|
-
* @memberof google.apps.card.v1.
|
|
21940
|
+
* @memberof google.apps.card.v1.MaterialIcon
|
|
21633
21941
|
* @instance
|
|
21634
21942
|
* @returns {Object.<string,*>} JSON object
|
|
21635
21943
|
*/
|
|
21636
|
-
|
|
21944
|
+
MaterialIcon.prototype.toJSON = function toJSON() {
|
|
21637
21945
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
21638
21946
|
};
|
|
21639
21947
|
|
|
21640
21948
|
/**
|
|
21641
|
-
* Gets the default type url for
|
|
21949
|
+
* Gets the default type url for MaterialIcon
|
|
21642
21950
|
* @function getTypeUrl
|
|
21643
|
-
* @memberof google.apps.card.v1.
|
|
21951
|
+
* @memberof google.apps.card.v1.MaterialIcon
|
|
21644
21952
|
* @static
|
|
21645
21953
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
21646
21954
|
* @returns {string} The default type url
|
|
21647
21955
|
*/
|
|
21648
|
-
|
|
21956
|
+
MaterialIcon.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
21649
21957
|
if (typeUrlPrefix === undefined) {
|
|
21650
21958
|
typeUrlPrefix = "type.googleapis.com";
|
|
21651
21959
|
}
|
|
21652
|
-
return typeUrlPrefix + "/google.apps.card.v1.
|
|
21960
|
+
return typeUrlPrefix + "/google.apps.card.v1.MaterialIcon";
|
|
21653
21961
|
};
|
|
21654
21962
|
|
|
21655
|
-
return
|
|
21963
|
+
return MaterialIcon;
|
|
21656
21964
|
})();
|
|
21657
21965
|
|
|
21658
21966
|
v1.ImageCropStyle = (function() {
|
|
@@ -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
|
|
@@ -31064,6 +31405,243 @@
|
|
|
31064
31405
|
return CreateMembershipRequest;
|
|
31065
31406
|
})();
|
|
31066
31407
|
|
|
31408
|
+
v1.UpdateMembershipRequest = (function() {
|
|
31409
|
+
|
|
31410
|
+
/**
|
|
31411
|
+
* Properties of an UpdateMembershipRequest.
|
|
31412
|
+
* @memberof google.chat.v1
|
|
31413
|
+
* @interface IUpdateMembershipRequest
|
|
31414
|
+
* @property {google.chat.v1.IMembership|null} [membership] UpdateMembershipRequest membership
|
|
31415
|
+
* @property {google.protobuf.IFieldMask|null} [updateMask] UpdateMembershipRequest updateMask
|
|
31416
|
+
*/
|
|
31417
|
+
|
|
31418
|
+
/**
|
|
31419
|
+
* Constructs a new UpdateMembershipRequest.
|
|
31420
|
+
* @memberof google.chat.v1
|
|
31421
|
+
* @classdesc Represents an UpdateMembershipRequest.
|
|
31422
|
+
* @implements IUpdateMembershipRequest
|
|
31423
|
+
* @constructor
|
|
31424
|
+
* @param {google.chat.v1.IUpdateMembershipRequest=} [properties] Properties to set
|
|
31425
|
+
*/
|
|
31426
|
+
function UpdateMembershipRequest(properties) {
|
|
31427
|
+
if (properties)
|
|
31428
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
31429
|
+
if (properties[keys[i]] != null)
|
|
31430
|
+
this[keys[i]] = properties[keys[i]];
|
|
31431
|
+
}
|
|
31432
|
+
|
|
31433
|
+
/**
|
|
31434
|
+
* UpdateMembershipRequest membership.
|
|
31435
|
+
* @member {google.chat.v1.IMembership|null|undefined} membership
|
|
31436
|
+
* @memberof google.chat.v1.UpdateMembershipRequest
|
|
31437
|
+
* @instance
|
|
31438
|
+
*/
|
|
31439
|
+
UpdateMembershipRequest.prototype.membership = null;
|
|
31440
|
+
|
|
31441
|
+
/**
|
|
31442
|
+
* UpdateMembershipRequest updateMask.
|
|
31443
|
+
* @member {google.protobuf.IFieldMask|null|undefined} updateMask
|
|
31444
|
+
* @memberof google.chat.v1.UpdateMembershipRequest
|
|
31445
|
+
* @instance
|
|
31446
|
+
*/
|
|
31447
|
+
UpdateMembershipRequest.prototype.updateMask = null;
|
|
31448
|
+
|
|
31449
|
+
/**
|
|
31450
|
+
* Creates a new UpdateMembershipRequest instance using the specified properties.
|
|
31451
|
+
* @function create
|
|
31452
|
+
* @memberof google.chat.v1.UpdateMembershipRequest
|
|
31453
|
+
* @static
|
|
31454
|
+
* @param {google.chat.v1.IUpdateMembershipRequest=} [properties] Properties to set
|
|
31455
|
+
* @returns {google.chat.v1.UpdateMembershipRequest} UpdateMembershipRequest instance
|
|
31456
|
+
*/
|
|
31457
|
+
UpdateMembershipRequest.create = function create(properties) {
|
|
31458
|
+
return new UpdateMembershipRequest(properties);
|
|
31459
|
+
};
|
|
31460
|
+
|
|
31461
|
+
/**
|
|
31462
|
+
* Encodes the specified UpdateMembershipRequest message. Does not implicitly {@link google.chat.v1.UpdateMembershipRequest.verify|verify} messages.
|
|
31463
|
+
* @function encode
|
|
31464
|
+
* @memberof google.chat.v1.UpdateMembershipRequest
|
|
31465
|
+
* @static
|
|
31466
|
+
* @param {google.chat.v1.IUpdateMembershipRequest} message UpdateMembershipRequest message or plain object to encode
|
|
31467
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
31468
|
+
* @returns {$protobuf.Writer} Writer
|
|
31469
|
+
*/
|
|
31470
|
+
UpdateMembershipRequest.encode = function encode(message, writer) {
|
|
31471
|
+
if (!writer)
|
|
31472
|
+
writer = $Writer.create();
|
|
31473
|
+
if (message.membership != null && Object.hasOwnProperty.call(message, "membership"))
|
|
31474
|
+
$root.google.chat.v1.Membership.encode(message.membership, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
31475
|
+
if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
|
|
31476
|
+
$root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
31477
|
+
return writer;
|
|
31478
|
+
};
|
|
31479
|
+
|
|
31480
|
+
/**
|
|
31481
|
+
* Encodes the specified UpdateMembershipRequest message, length delimited. Does not implicitly {@link google.chat.v1.UpdateMembershipRequest.verify|verify} messages.
|
|
31482
|
+
* @function encodeDelimited
|
|
31483
|
+
* @memberof google.chat.v1.UpdateMembershipRequest
|
|
31484
|
+
* @static
|
|
31485
|
+
* @param {google.chat.v1.IUpdateMembershipRequest} message UpdateMembershipRequest message or plain object to encode
|
|
31486
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
31487
|
+
* @returns {$protobuf.Writer} Writer
|
|
31488
|
+
*/
|
|
31489
|
+
UpdateMembershipRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
31490
|
+
return this.encode(message, writer).ldelim();
|
|
31491
|
+
};
|
|
31492
|
+
|
|
31493
|
+
/**
|
|
31494
|
+
* Decodes an UpdateMembershipRequest message from the specified reader or buffer.
|
|
31495
|
+
* @function decode
|
|
31496
|
+
* @memberof google.chat.v1.UpdateMembershipRequest
|
|
31497
|
+
* @static
|
|
31498
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
31499
|
+
* @param {number} [length] Message length if known beforehand
|
|
31500
|
+
* @returns {google.chat.v1.UpdateMembershipRequest} UpdateMembershipRequest
|
|
31501
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31502
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31503
|
+
*/
|
|
31504
|
+
UpdateMembershipRequest.decode = function decode(reader, length) {
|
|
31505
|
+
if (!(reader instanceof $Reader))
|
|
31506
|
+
reader = $Reader.create(reader);
|
|
31507
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.UpdateMembershipRequest();
|
|
31508
|
+
while (reader.pos < end) {
|
|
31509
|
+
var tag = reader.uint32();
|
|
31510
|
+
switch (tag >>> 3) {
|
|
31511
|
+
case 1: {
|
|
31512
|
+
message.membership = $root.google.chat.v1.Membership.decode(reader, reader.uint32());
|
|
31513
|
+
break;
|
|
31514
|
+
}
|
|
31515
|
+
case 2: {
|
|
31516
|
+
message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
|
|
31517
|
+
break;
|
|
31518
|
+
}
|
|
31519
|
+
default:
|
|
31520
|
+
reader.skipType(tag & 7);
|
|
31521
|
+
break;
|
|
31522
|
+
}
|
|
31523
|
+
}
|
|
31524
|
+
return message;
|
|
31525
|
+
};
|
|
31526
|
+
|
|
31527
|
+
/**
|
|
31528
|
+
* Decodes an UpdateMembershipRequest message from the specified reader or buffer, length delimited.
|
|
31529
|
+
* @function decodeDelimited
|
|
31530
|
+
* @memberof google.chat.v1.UpdateMembershipRequest
|
|
31531
|
+
* @static
|
|
31532
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
31533
|
+
* @returns {google.chat.v1.UpdateMembershipRequest} UpdateMembershipRequest
|
|
31534
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31535
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31536
|
+
*/
|
|
31537
|
+
UpdateMembershipRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
31538
|
+
if (!(reader instanceof $Reader))
|
|
31539
|
+
reader = new $Reader(reader);
|
|
31540
|
+
return this.decode(reader, reader.uint32());
|
|
31541
|
+
};
|
|
31542
|
+
|
|
31543
|
+
/**
|
|
31544
|
+
* Verifies an UpdateMembershipRequest message.
|
|
31545
|
+
* @function verify
|
|
31546
|
+
* @memberof google.chat.v1.UpdateMembershipRequest
|
|
31547
|
+
* @static
|
|
31548
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
31549
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
31550
|
+
*/
|
|
31551
|
+
UpdateMembershipRequest.verify = function verify(message) {
|
|
31552
|
+
if (typeof message !== "object" || message === null)
|
|
31553
|
+
return "object expected";
|
|
31554
|
+
if (message.membership != null && message.hasOwnProperty("membership")) {
|
|
31555
|
+
var error = $root.google.chat.v1.Membership.verify(message.membership);
|
|
31556
|
+
if (error)
|
|
31557
|
+
return "membership." + error;
|
|
31558
|
+
}
|
|
31559
|
+
if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
|
|
31560
|
+
var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
|
|
31561
|
+
if (error)
|
|
31562
|
+
return "updateMask." + error;
|
|
31563
|
+
}
|
|
31564
|
+
return null;
|
|
31565
|
+
};
|
|
31566
|
+
|
|
31567
|
+
/**
|
|
31568
|
+
* Creates an UpdateMembershipRequest message from a plain object. Also converts values to their respective internal types.
|
|
31569
|
+
* @function fromObject
|
|
31570
|
+
* @memberof google.chat.v1.UpdateMembershipRequest
|
|
31571
|
+
* @static
|
|
31572
|
+
* @param {Object.<string,*>} object Plain object
|
|
31573
|
+
* @returns {google.chat.v1.UpdateMembershipRequest} UpdateMembershipRequest
|
|
31574
|
+
*/
|
|
31575
|
+
UpdateMembershipRequest.fromObject = function fromObject(object) {
|
|
31576
|
+
if (object instanceof $root.google.chat.v1.UpdateMembershipRequest)
|
|
31577
|
+
return object;
|
|
31578
|
+
var message = new $root.google.chat.v1.UpdateMembershipRequest();
|
|
31579
|
+
if (object.membership != null) {
|
|
31580
|
+
if (typeof object.membership !== "object")
|
|
31581
|
+
throw TypeError(".google.chat.v1.UpdateMembershipRequest.membership: object expected");
|
|
31582
|
+
message.membership = $root.google.chat.v1.Membership.fromObject(object.membership);
|
|
31583
|
+
}
|
|
31584
|
+
if (object.updateMask != null) {
|
|
31585
|
+
if (typeof object.updateMask !== "object")
|
|
31586
|
+
throw TypeError(".google.chat.v1.UpdateMembershipRequest.updateMask: object expected");
|
|
31587
|
+
message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
|
|
31588
|
+
}
|
|
31589
|
+
return message;
|
|
31590
|
+
};
|
|
31591
|
+
|
|
31592
|
+
/**
|
|
31593
|
+
* Creates a plain object from an UpdateMembershipRequest message. Also converts values to other types if specified.
|
|
31594
|
+
* @function toObject
|
|
31595
|
+
* @memberof google.chat.v1.UpdateMembershipRequest
|
|
31596
|
+
* @static
|
|
31597
|
+
* @param {google.chat.v1.UpdateMembershipRequest} message UpdateMembershipRequest
|
|
31598
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
31599
|
+
* @returns {Object.<string,*>} Plain object
|
|
31600
|
+
*/
|
|
31601
|
+
UpdateMembershipRequest.toObject = function toObject(message, options) {
|
|
31602
|
+
if (!options)
|
|
31603
|
+
options = {};
|
|
31604
|
+
var object = {};
|
|
31605
|
+
if (options.defaults) {
|
|
31606
|
+
object.membership = null;
|
|
31607
|
+
object.updateMask = null;
|
|
31608
|
+
}
|
|
31609
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
31610
|
+
object.membership = $root.google.chat.v1.Membership.toObject(message.membership, options);
|
|
31611
|
+
if (message.updateMask != null && message.hasOwnProperty("updateMask"))
|
|
31612
|
+
object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
|
|
31613
|
+
return object;
|
|
31614
|
+
};
|
|
31615
|
+
|
|
31616
|
+
/**
|
|
31617
|
+
* Converts this UpdateMembershipRequest to JSON.
|
|
31618
|
+
* @function toJSON
|
|
31619
|
+
* @memberof google.chat.v1.UpdateMembershipRequest
|
|
31620
|
+
* @instance
|
|
31621
|
+
* @returns {Object.<string,*>} JSON object
|
|
31622
|
+
*/
|
|
31623
|
+
UpdateMembershipRequest.prototype.toJSON = function toJSON() {
|
|
31624
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
31625
|
+
};
|
|
31626
|
+
|
|
31627
|
+
/**
|
|
31628
|
+
* Gets the default type url for UpdateMembershipRequest
|
|
31629
|
+
* @function getTypeUrl
|
|
31630
|
+
* @memberof google.chat.v1.UpdateMembershipRequest
|
|
31631
|
+
* @static
|
|
31632
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
31633
|
+
* @returns {string} The default type url
|
|
31634
|
+
*/
|
|
31635
|
+
UpdateMembershipRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
31636
|
+
if (typeUrlPrefix === undefined) {
|
|
31637
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
31638
|
+
}
|
|
31639
|
+
return typeUrlPrefix + "/google.chat.v1.UpdateMembershipRequest";
|
|
31640
|
+
};
|
|
31641
|
+
|
|
31642
|
+
return UpdateMembershipRequest;
|
|
31643
|
+
})();
|
|
31644
|
+
|
|
31067
31645
|
v1.ListMembershipsRequest = (function() {
|
|
31068
31646
|
|
|
31069
31647
|
/**
|