@google-apps/chat 0.7.0 → 0.9.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 +14 -0
- package/README.md +1 -0
- package/build/protos/google/chat/v1/annotation.proto +29 -0
- package/build/protos/google/chat/v1/chat_service.proto +12 -0
- package/build/protos/google/chat/v1/membership.proto +69 -2
- package/build/protos/google/chat/v1/space.proto +201 -0
- package/build/protos/protos.d.ts +532 -2
- package/build/protos/protos.js +1412 -48
- package/build/protos/protos.json +156 -2
- package/build/src/v1/chat_service_client.d.ts +559 -6
- package/build/src/v1/chat_service_client.js +347 -4
- 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
|
@@ -27508,6 +27508,7 @@
|
|
|
27508
27508
|
* @property {string|null} [uri] RichLinkMetadata uri
|
|
27509
27509
|
* @property {google.chat.v1.RichLinkMetadata.RichLinkType|null} [richLinkType] RichLinkMetadata richLinkType
|
|
27510
27510
|
* @property {google.chat.v1.IDriveLinkData|null} [driveLinkData] RichLinkMetadata driveLinkData
|
|
27511
|
+
* @property {google.chat.v1.IChatSpaceLinkData|null} [chatSpaceLinkData] RichLinkMetadata chatSpaceLinkData
|
|
27511
27512
|
*/
|
|
27512
27513
|
|
|
27513
27514
|
/**
|
|
@@ -27549,17 +27550,25 @@
|
|
|
27549
27550
|
*/
|
|
27550
27551
|
RichLinkMetadata.prototype.driveLinkData = null;
|
|
27551
27552
|
|
|
27553
|
+
/**
|
|
27554
|
+
* RichLinkMetadata chatSpaceLinkData.
|
|
27555
|
+
* @member {google.chat.v1.IChatSpaceLinkData|null|undefined} chatSpaceLinkData
|
|
27556
|
+
* @memberof google.chat.v1.RichLinkMetadata
|
|
27557
|
+
* @instance
|
|
27558
|
+
*/
|
|
27559
|
+
RichLinkMetadata.prototype.chatSpaceLinkData = null;
|
|
27560
|
+
|
|
27552
27561
|
// OneOf field names bound to virtual getters and setters
|
|
27553
27562
|
var $oneOfFields;
|
|
27554
27563
|
|
|
27555
27564
|
/**
|
|
27556
27565
|
* RichLinkMetadata data.
|
|
27557
|
-
* @member {"driveLinkData"|undefined} data
|
|
27566
|
+
* @member {"driveLinkData"|"chatSpaceLinkData"|undefined} data
|
|
27558
27567
|
* @memberof google.chat.v1.RichLinkMetadata
|
|
27559
27568
|
* @instance
|
|
27560
27569
|
*/
|
|
27561
27570
|
Object.defineProperty(RichLinkMetadata.prototype, "data", {
|
|
27562
|
-
get: $util.oneOfGetter($oneOfFields = ["driveLinkData"]),
|
|
27571
|
+
get: $util.oneOfGetter($oneOfFields = ["driveLinkData", "chatSpaceLinkData"]),
|
|
27563
27572
|
set: $util.oneOfSetter($oneOfFields)
|
|
27564
27573
|
});
|
|
27565
27574
|
|
|
@@ -27593,6 +27602,8 @@
|
|
|
27593
27602
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.richLinkType);
|
|
27594
27603
|
if (message.driveLinkData != null && Object.hasOwnProperty.call(message, "driveLinkData"))
|
|
27595
27604
|
$root.google.chat.v1.DriveLinkData.encode(message.driveLinkData, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
27605
|
+
if (message.chatSpaceLinkData != null && Object.hasOwnProperty.call(message, "chatSpaceLinkData"))
|
|
27606
|
+
$root.google.chat.v1.ChatSpaceLinkData.encode(message.chatSpaceLinkData, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
27596
27607
|
return writer;
|
|
27597
27608
|
};
|
|
27598
27609
|
|
|
@@ -27639,6 +27650,10 @@
|
|
|
27639
27650
|
message.driveLinkData = $root.google.chat.v1.DriveLinkData.decode(reader, reader.uint32());
|
|
27640
27651
|
break;
|
|
27641
27652
|
}
|
|
27653
|
+
case 4: {
|
|
27654
|
+
message.chatSpaceLinkData = $root.google.chat.v1.ChatSpaceLinkData.decode(reader, reader.uint32());
|
|
27655
|
+
break;
|
|
27656
|
+
}
|
|
27642
27657
|
default:
|
|
27643
27658
|
reader.skipType(tag & 7);
|
|
27644
27659
|
break;
|
|
@@ -27684,6 +27699,7 @@
|
|
|
27684
27699
|
return "richLinkType: enum value expected";
|
|
27685
27700
|
case 0:
|
|
27686
27701
|
case 1:
|
|
27702
|
+
case 2:
|
|
27687
27703
|
break;
|
|
27688
27704
|
}
|
|
27689
27705
|
if (message.driveLinkData != null && message.hasOwnProperty("driveLinkData")) {
|
|
@@ -27694,6 +27710,16 @@
|
|
|
27694
27710
|
return "driveLinkData." + error;
|
|
27695
27711
|
}
|
|
27696
27712
|
}
|
|
27713
|
+
if (message.chatSpaceLinkData != null && message.hasOwnProperty("chatSpaceLinkData")) {
|
|
27714
|
+
if (properties.data === 1)
|
|
27715
|
+
return "data: multiple values";
|
|
27716
|
+
properties.data = 1;
|
|
27717
|
+
{
|
|
27718
|
+
var error = $root.google.chat.v1.ChatSpaceLinkData.verify(message.chatSpaceLinkData);
|
|
27719
|
+
if (error)
|
|
27720
|
+
return "chatSpaceLinkData." + error;
|
|
27721
|
+
}
|
|
27722
|
+
}
|
|
27697
27723
|
return null;
|
|
27698
27724
|
};
|
|
27699
27725
|
|
|
@@ -27726,12 +27752,21 @@
|
|
|
27726
27752
|
case 1:
|
|
27727
27753
|
message.richLinkType = 1;
|
|
27728
27754
|
break;
|
|
27755
|
+
case "CHAT_SPACE":
|
|
27756
|
+
case 2:
|
|
27757
|
+
message.richLinkType = 2;
|
|
27758
|
+
break;
|
|
27729
27759
|
}
|
|
27730
27760
|
if (object.driveLinkData != null) {
|
|
27731
27761
|
if (typeof object.driveLinkData !== "object")
|
|
27732
27762
|
throw TypeError(".google.chat.v1.RichLinkMetadata.driveLinkData: object expected");
|
|
27733
27763
|
message.driveLinkData = $root.google.chat.v1.DriveLinkData.fromObject(object.driveLinkData);
|
|
27734
27764
|
}
|
|
27765
|
+
if (object.chatSpaceLinkData != null) {
|
|
27766
|
+
if (typeof object.chatSpaceLinkData !== "object")
|
|
27767
|
+
throw TypeError(".google.chat.v1.RichLinkMetadata.chatSpaceLinkData: object expected");
|
|
27768
|
+
message.chatSpaceLinkData = $root.google.chat.v1.ChatSpaceLinkData.fromObject(object.chatSpaceLinkData);
|
|
27769
|
+
}
|
|
27735
27770
|
return message;
|
|
27736
27771
|
};
|
|
27737
27772
|
|
|
@@ -27761,6 +27796,11 @@
|
|
|
27761
27796
|
if (options.oneofs)
|
|
27762
27797
|
object.data = "driveLinkData";
|
|
27763
27798
|
}
|
|
27799
|
+
if (message.chatSpaceLinkData != null && message.hasOwnProperty("chatSpaceLinkData")) {
|
|
27800
|
+
object.chatSpaceLinkData = $root.google.chat.v1.ChatSpaceLinkData.toObject(message.chatSpaceLinkData, options);
|
|
27801
|
+
if (options.oneofs)
|
|
27802
|
+
object.data = "chatSpaceLinkData";
|
|
27803
|
+
}
|
|
27764
27804
|
return object;
|
|
27765
27805
|
};
|
|
27766
27806
|
|
|
@@ -27796,11 +27836,13 @@
|
|
|
27796
27836
|
* @enum {number}
|
|
27797
27837
|
* @property {number} RICH_LINK_TYPE_UNSPECIFIED=0 RICH_LINK_TYPE_UNSPECIFIED value
|
|
27798
27838
|
* @property {number} DRIVE_FILE=1 DRIVE_FILE value
|
|
27839
|
+
* @property {number} CHAT_SPACE=2 CHAT_SPACE value
|
|
27799
27840
|
*/
|
|
27800
27841
|
RichLinkMetadata.RichLinkType = (function() {
|
|
27801
27842
|
var valuesById = {}, values = Object.create(valuesById);
|
|
27802
27843
|
values[valuesById[0] = "RICH_LINK_TYPE_UNSPECIFIED"] = 0;
|
|
27803
27844
|
values[valuesById[1] = "DRIVE_FILE"] = 1;
|
|
27845
|
+
values[valuesById[2] = "CHAT_SPACE"] = 2;
|
|
27804
27846
|
return values;
|
|
27805
27847
|
})();
|
|
27806
27848
|
|
|
@@ -28039,6 +28081,256 @@
|
|
|
28039
28081
|
return DriveLinkData;
|
|
28040
28082
|
})();
|
|
28041
28083
|
|
|
28084
|
+
v1.ChatSpaceLinkData = (function() {
|
|
28085
|
+
|
|
28086
|
+
/**
|
|
28087
|
+
* Properties of a ChatSpaceLinkData.
|
|
28088
|
+
* @memberof google.chat.v1
|
|
28089
|
+
* @interface IChatSpaceLinkData
|
|
28090
|
+
* @property {string|null} [space] ChatSpaceLinkData space
|
|
28091
|
+
* @property {string|null} [thread] ChatSpaceLinkData thread
|
|
28092
|
+
* @property {string|null} [message] ChatSpaceLinkData message
|
|
28093
|
+
*/
|
|
28094
|
+
|
|
28095
|
+
/**
|
|
28096
|
+
* Constructs a new ChatSpaceLinkData.
|
|
28097
|
+
* @memberof google.chat.v1
|
|
28098
|
+
* @classdesc Represents a ChatSpaceLinkData.
|
|
28099
|
+
* @implements IChatSpaceLinkData
|
|
28100
|
+
* @constructor
|
|
28101
|
+
* @param {google.chat.v1.IChatSpaceLinkData=} [properties] Properties to set
|
|
28102
|
+
*/
|
|
28103
|
+
function ChatSpaceLinkData(properties) {
|
|
28104
|
+
if (properties)
|
|
28105
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
28106
|
+
if (properties[keys[i]] != null)
|
|
28107
|
+
this[keys[i]] = properties[keys[i]];
|
|
28108
|
+
}
|
|
28109
|
+
|
|
28110
|
+
/**
|
|
28111
|
+
* ChatSpaceLinkData space.
|
|
28112
|
+
* @member {string} space
|
|
28113
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28114
|
+
* @instance
|
|
28115
|
+
*/
|
|
28116
|
+
ChatSpaceLinkData.prototype.space = "";
|
|
28117
|
+
|
|
28118
|
+
/**
|
|
28119
|
+
* ChatSpaceLinkData thread.
|
|
28120
|
+
* @member {string} thread
|
|
28121
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28122
|
+
* @instance
|
|
28123
|
+
*/
|
|
28124
|
+
ChatSpaceLinkData.prototype.thread = "";
|
|
28125
|
+
|
|
28126
|
+
/**
|
|
28127
|
+
* ChatSpaceLinkData message.
|
|
28128
|
+
* @member {string} message
|
|
28129
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28130
|
+
* @instance
|
|
28131
|
+
*/
|
|
28132
|
+
ChatSpaceLinkData.prototype.message = "";
|
|
28133
|
+
|
|
28134
|
+
/**
|
|
28135
|
+
* Creates a new ChatSpaceLinkData instance using the specified properties.
|
|
28136
|
+
* @function create
|
|
28137
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28138
|
+
* @static
|
|
28139
|
+
* @param {google.chat.v1.IChatSpaceLinkData=} [properties] Properties to set
|
|
28140
|
+
* @returns {google.chat.v1.ChatSpaceLinkData} ChatSpaceLinkData instance
|
|
28141
|
+
*/
|
|
28142
|
+
ChatSpaceLinkData.create = function create(properties) {
|
|
28143
|
+
return new ChatSpaceLinkData(properties);
|
|
28144
|
+
};
|
|
28145
|
+
|
|
28146
|
+
/**
|
|
28147
|
+
* Encodes the specified ChatSpaceLinkData message. Does not implicitly {@link google.chat.v1.ChatSpaceLinkData.verify|verify} messages.
|
|
28148
|
+
* @function encode
|
|
28149
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28150
|
+
* @static
|
|
28151
|
+
* @param {google.chat.v1.IChatSpaceLinkData} message ChatSpaceLinkData message or plain object to encode
|
|
28152
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28153
|
+
* @returns {$protobuf.Writer} Writer
|
|
28154
|
+
*/
|
|
28155
|
+
ChatSpaceLinkData.encode = function encode(message, writer) {
|
|
28156
|
+
if (!writer)
|
|
28157
|
+
writer = $Writer.create();
|
|
28158
|
+
if (message.space != null && Object.hasOwnProperty.call(message, "space"))
|
|
28159
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.space);
|
|
28160
|
+
if (message.thread != null && Object.hasOwnProperty.call(message, "thread"))
|
|
28161
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.thread);
|
|
28162
|
+
if (message.message != null && Object.hasOwnProperty.call(message, "message"))
|
|
28163
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.message);
|
|
28164
|
+
return writer;
|
|
28165
|
+
};
|
|
28166
|
+
|
|
28167
|
+
/**
|
|
28168
|
+
* Encodes the specified ChatSpaceLinkData message, length delimited. Does not implicitly {@link google.chat.v1.ChatSpaceLinkData.verify|verify} messages.
|
|
28169
|
+
* @function encodeDelimited
|
|
28170
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28171
|
+
* @static
|
|
28172
|
+
* @param {google.chat.v1.IChatSpaceLinkData} message ChatSpaceLinkData message or plain object to encode
|
|
28173
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28174
|
+
* @returns {$protobuf.Writer} Writer
|
|
28175
|
+
*/
|
|
28176
|
+
ChatSpaceLinkData.encodeDelimited = function encodeDelimited(message, writer) {
|
|
28177
|
+
return this.encode(message, writer).ldelim();
|
|
28178
|
+
};
|
|
28179
|
+
|
|
28180
|
+
/**
|
|
28181
|
+
* Decodes a ChatSpaceLinkData message from the specified reader or buffer.
|
|
28182
|
+
* @function decode
|
|
28183
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28184
|
+
* @static
|
|
28185
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28186
|
+
* @param {number} [length] Message length if known beforehand
|
|
28187
|
+
* @returns {google.chat.v1.ChatSpaceLinkData} ChatSpaceLinkData
|
|
28188
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28189
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28190
|
+
*/
|
|
28191
|
+
ChatSpaceLinkData.decode = function decode(reader, length) {
|
|
28192
|
+
if (!(reader instanceof $Reader))
|
|
28193
|
+
reader = $Reader.create(reader);
|
|
28194
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.ChatSpaceLinkData();
|
|
28195
|
+
while (reader.pos < end) {
|
|
28196
|
+
var tag = reader.uint32();
|
|
28197
|
+
switch (tag >>> 3) {
|
|
28198
|
+
case 1: {
|
|
28199
|
+
message.space = reader.string();
|
|
28200
|
+
break;
|
|
28201
|
+
}
|
|
28202
|
+
case 2: {
|
|
28203
|
+
message.thread = reader.string();
|
|
28204
|
+
break;
|
|
28205
|
+
}
|
|
28206
|
+
case 3: {
|
|
28207
|
+
message.message = reader.string();
|
|
28208
|
+
break;
|
|
28209
|
+
}
|
|
28210
|
+
default:
|
|
28211
|
+
reader.skipType(tag & 7);
|
|
28212
|
+
break;
|
|
28213
|
+
}
|
|
28214
|
+
}
|
|
28215
|
+
return message;
|
|
28216
|
+
};
|
|
28217
|
+
|
|
28218
|
+
/**
|
|
28219
|
+
* Decodes a ChatSpaceLinkData message from the specified reader or buffer, length delimited.
|
|
28220
|
+
* @function decodeDelimited
|
|
28221
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28222
|
+
* @static
|
|
28223
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28224
|
+
* @returns {google.chat.v1.ChatSpaceLinkData} ChatSpaceLinkData
|
|
28225
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28226
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28227
|
+
*/
|
|
28228
|
+
ChatSpaceLinkData.decodeDelimited = function decodeDelimited(reader) {
|
|
28229
|
+
if (!(reader instanceof $Reader))
|
|
28230
|
+
reader = new $Reader(reader);
|
|
28231
|
+
return this.decode(reader, reader.uint32());
|
|
28232
|
+
};
|
|
28233
|
+
|
|
28234
|
+
/**
|
|
28235
|
+
* Verifies a ChatSpaceLinkData message.
|
|
28236
|
+
* @function verify
|
|
28237
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28238
|
+
* @static
|
|
28239
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
28240
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
28241
|
+
*/
|
|
28242
|
+
ChatSpaceLinkData.verify = function verify(message) {
|
|
28243
|
+
if (typeof message !== "object" || message === null)
|
|
28244
|
+
return "object expected";
|
|
28245
|
+
if (message.space != null && message.hasOwnProperty("space"))
|
|
28246
|
+
if (!$util.isString(message.space))
|
|
28247
|
+
return "space: string expected";
|
|
28248
|
+
if (message.thread != null && message.hasOwnProperty("thread"))
|
|
28249
|
+
if (!$util.isString(message.thread))
|
|
28250
|
+
return "thread: string expected";
|
|
28251
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
28252
|
+
if (!$util.isString(message.message))
|
|
28253
|
+
return "message: string expected";
|
|
28254
|
+
return null;
|
|
28255
|
+
};
|
|
28256
|
+
|
|
28257
|
+
/**
|
|
28258
|
+
* Creates a ChatSpaceLinkData message from a plain object. Also converts values to their respective internal types.
|
|
28259
|
+
* @function fromObject
|
|
28260
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28261
|
+
* @static
|
|
28262
|
+
* @param {Object.<string,*>} object Plain object
|
|
28263
|
+
* @returns {google.chat.v1.ChatSpaceLinkData} ChatSpaceLinkData
|
|
28264
|
+
*/
|
|
28265
|
+
ChatSpaceLinkData.fromObject = function fromObject(object) {
|
|
28266
|
+
if (object instanceof $root.google.chat.v1.ChatSpaceLinkData)
|
|
28267
|
+
return object;
|
|
28268
|
+
var message = new $root.google.chat.v1.ChatSpaceLinkData();
|
|
28269
|
+
if (object.space != null)
|
|
28270
|
+
message.space = String(object.space);
|
|
28271
|
+
if (object.thread != null)
|
|
28272
|
+
message.thread = String(object.thread);
|
|
28273
|
+
if (object.message != null)
|
|
28274
|
+
message.message = String(object.message);
|
|
28275
|
+
return message;
|
|
28276
|
+
};
|
|
28277
|
+
|
|
28278
|
+
/**
|
|
28279
|
+
* Creates a plain object from a ChatSpaceLinkData message. Also converts values to other types if specified.
|
|
28280
|
+
* @function toObject
|
|
28281
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28282
|
+
* @static
|
|
28283
|
+
* @param {google.chat.v1.ChatSpaceLinkData} message ChatSpaceLinkData
|
|
28284
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
28285
|
+
* @returns {Object.<string,*>} Plain object
|
|
28286
|
+
*/
|
|
28287
|
+
ChatSpaceLinkData.toObject = function toObject(message, options) {
|
|
28288
|
+
if (!options)
|
|
28289
|
+
options = {};
|
|
28290
|
+
var object = {};
|
|
28291
|
+
if (options.defaults) {
|
|
28292
|
+
object.space = "";
|
|
28293
|
+
object.thread = "";
|
|
28294
|
+
object.message = "";
|
|
28295
|
+
}
|
|
28296
|
+
if (message.space != null && message.hasOwnProperty("space"))
|
|
28297
|
+
object.space = message.space;
|
|
28298
|
+
if (message.thread != null && message.hasOwnProperty("thread"))
|
|
28299
|
+
object.thread = message.thread;
|
|
28300
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
28301
|
+
object.message = message.message;
|
|
28302
|
+
return object;
|
|
28303
|
+
};
|
|
28304
|
+
|
|
28305
|
+
/**
|
|
28306
|
+
* Converts this ChatSpaceLinkData to JSON.
|
|
28307
|
+
* @function toJSON
|
|
28308
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28309
|
+
* @instance
|
|
28310
|
+
* @returns {Object.<string,*>} JSON object
|
|
28311
|
+
*/
|
|
28312
|
+
ChatSpaceLinkData.prototype.toJSON = function toJSON() {
|
|
28313
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
28314
|
+
};
|
|
28315
|
+
|
|
28316
|
+
/**
|
|
28317
|
+
* Gets the default type url for ChatSpaceLinkData
|
|
28318
|
+
* @function getTypeUrl
|
|
28319
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28320
|
+
* @static
|
|
28321
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
28322
|
+
* @returns {string} The default type url
|
|
28323
|
+
*/
|
|
28324
|
+
ChatSpaceLinkData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
28325
|
+
if (typeUrlPrefix === undefined) {
|
|
28326
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
28327
|
+
}
|
|
28328
|
+
return typeUrlPrefix + "/google.chat.v1.ChatSpaceLinkData";
|
|
28329
|
+
};
|
|
28330
|
+
|
|
28331
|
+
return ChatSpaceLinkData;
|
|
28332
|
+
})();
|
|
28333
|
+
|
|
28042
28334
|
/**
|
|
28043
28335
|
* AnnotationType enum.
|
|
28044
28336
|
* @name google.chat.v1.AnnotationType
|
|
@@ -30265,6 +30557,39 @@
|
|
|
30265
30557
|
* @variation 2
|
|
30266
30558
|
*/
|
|
30267
30559
|
|
|
30560
|
+
/**
|
|
30561
|
+
* Callback as used by {@link google.chat.v1.ChatService|searchSpaces}.
|
|
30562
|
+
* @memberof google.chat.v1.ChatService
|
|
30563
|
+
* @typedef SearchSpacesCallback
|
|
30564
|
+
* @type {function}
|
|
30565
|
+
* @param {Error|null} error Error, if any
|
|
30566
|
+
* @param {google.chat.v1.SearchSpacesResponse} [response] SearchSpacesResponse
|
|
30567
|
+
*/
|
|
30568
|
+
|
|
30569
|
+
/**
|
|
30570
|
+
* Calls SearchSpaces.
|
|
30571
|
+
* @function searchSpaces
|
|
30572
|
+
* @memberof google.chat.v1.ChatService
|
|
30573
|
+
* @instance
|
|
30574
|
+
* @param {google.chat.v1.ISearchSpacesRequest} request SearchSpacesRequest message or plain object
|
|
30575
|
+
* @param {google.chat.v1.ChatService.SearchSpacesCallback} callback Node-style callback called with the error, if any, and SearchSpacesResponse
|
|
30576
|
+
* @returns {undefined}
|
|
30577
|
+
* @variation 1
|
|
30578
|
+
*/
|
|
30579
|
+
Object.defineProperty(ChatService.prototype.searchSpaces = function searchSpaces(request, callback) {
|
|
30580
|
+
return this.rpcCall(searchSpaces, $root.google.chat.v1.SearchSpacesRequest, $root.google.chat.v1.SearchSpacesResponse, request, callback);
|
|
30581
|
+
}, "name", { value: "SearchSpaces" });
|
|
30582
|
+
|
|
30583
|
+
/**
|
|
30584
|
+
* Calls SearchSpaces.
|
|
30585
|
+
* @function searchSpaces
|
|
30586
|
+
* @memberof google.chat.v1.ChatService
|
|
30587
|
+
* @instance
|
|
30588
|
+
* @param {google.chat.v1.ISearchSpacesRequest} request SearchSpacesRequest message or plain object
|
|
30589
|
+
* @returns {Promise<google.chat.v1.SearchSpacesResponse>} Promise
|
|
30590
|
+
* @variation 2
|
|
30591
|
+
*/
|
|
30592
|
+
|
|
30268
30593
|
/**
|
|
30269
30594
|
* Callback as used by {@link google.chat.v1.ChatService|getSpace}.
|
|
30270
30595
|
* @memberof google.chat.v1.ChatService
|
|
@@ -31346,6 +31671,7 @@
|
|
|
31346
31671
|
* @interface ICreateMembershipRequest
|
|
31347
31672
|
* @property {string|null} [parent] CreateMembershipRequest parent
|
|
31348
31673
|
* @property {google.chat.v1.IMembership|null} [membership] CreateMembershipRequest membership
|
|
31674
|
+
* @property {boolean|null} [useAdminAccess] CreateMembershipRequest useAdminAccess
|
|
31349
31675
|
*/
|
|
31350
31676
|
|
|
31351
31677
|
/**
|
|
@@ -31379,6 +31705,14 @@
|
|
|
31379
31705
|
*/
|
|
31380
31706
|
CreateMembershipRequest.prototype.membership = null;
|
|
31381
31707
|
|
|
31708
|
+
/**
|
|
31709
|
+
* CreateMembershipRequest useAdminAccess.
|
|
31710
|
+
* @member {boolean} useAdminAccess
|
|
31711
|
+
* @memberof google.chat.v1.CreateMembershipRequest
|
|
31712
|
+
* @instance
|
|
31713
|
+
*/
|
|
31714
|
+
CreateMembershipRequest.prototype.useAdminAccess = false;
|
|
31715
|
+
|
|
31382
31716
|
/**
|
|
31383
31717
|
* Creates a new CreateMembershipRequest instance using the specified properties.
|
|
31384
31718
|
* @function create
|
|
@@ -31407,6 +31741,8 @@
|
|
|
31407
31741
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
|
|
31408
31742
|
if (message.membership != null && Object.hasOwnProperty.call(message, "membership"))
|
|
31409
31743
|
$root.google.chat.v1.Membership.encode(message.membership, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
31744
|
+
if (message.useAdminAccess != null && Object.hasOwnProperty.call(message, "useAdminAccess"))
|
|
31745
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useAdminAccess);
|
|
31410
31746
|
return writer;
|
|
31411
31747
|
};
|
|
31412
31748
|
|
|
@@ -31449,6 +31785,10 @@
|
|
|
31449
31785
|
message.membership = $root.google.chat.v1.Membership.decode(reader, reader.uint32());
|
|
31450
31786
|
break;
|
|
31451
31787
|
}
|
|
31788
|
+
case 5: {
|
|
31789
|
+
message.useAdminAccess = reader.bool();
|
|
31790
|
+
break;
|
|
31791
|
+
}
|
|
31452
31792
|
default:
|
|
31453
31793
|
reader.skipType(tag & 7);
|
|
31454
31794
|
break;
|
|
@@ -31492,6 +31832,9 @@
|
|
|
31492
31832
|
if (error)
|
|
31493
31833
|
return "membership." + error;
|
|
31494
31834
|
}
|
|
31835
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
31836
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
31837
|
+
return "useAdminAccess: boolean expected";
|
|
31495
31838
|
return null;
|
|
31496
31839
|
};
|
|
31497
31840
|
|
|
@@ -31514,6 +31857,8 @@
|
|
|
31514
31857
|
throw TypeError(".google.chat.v1.CreateMembershipRequest.membership: object expected");
|
|
31515
31858
|
message.membership = $root.google.chat.v1.Membership.fromObject(object.membership);
|
|
31516
31859
|
}
|
|
31860
|
+
if (object.useAdminAccess != null)
|
|
31861
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
31517
31862
|
return message;
|
|
31518
31863
|
};
|
|
31519
31864
|
|
|
@@ -31533,11 +31878,14 @@
|
|
|
31533
31878
|
if (options.defaults) {
|
|
31534
31879
|
object.parent = "";
|
|
31535
31880
|
object.membership = null;
|
|
31881
|
+
object.useAdminAccess = false;
|
|
31536
31882
|
}
|
|
31537
31883
|
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
31538
31884
|
object.parent = message.parent;
|
|
31539
31885
|
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
31540
31886
|
object.membership = $root.google.chat.v1.Membership.toObject(message.membership, options);
|
|
31887
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
31888
|
+
object.useAdminAccess = message.useAdminAccess;
|
|
31541
31889
|
return object;
|
|
31542
31890
|
};
|
|
31543
31891
|
|
|
@@ -31578,6 +31926,7 @@
|
|
|
31578
31926
|
* @interface IUpdateMembershipRequest
|
|
31579
31927
|
* @property {google.chat.v1.IMembership|null} [membership] UpdateMembershipRequest membership
|
|
31580
31928
|
* @property {google.protobuf.IFieldMask|null} [updateMask] UpdateMembershipRequest updateMask
|
|
31929
|
+
* @property {boolean|null} [useAdminAccess] UpdateMembershipRequest useAdminAccess
|
|
31581
31930
|
*/
|
|
31582
31931
|
|
|
31583
31932
|
/**
|
|
@@ -31611,6 +31960,14 @@
|
|
|
31611
31960
|
*/
|
|
31612
31961
|
UpdateMembershipRequest.prototype.updateMask = null;
|
|
31613
31962
|
|
|
31963
|
+
/**
|
|
31964
|
+
* UpdateMembershipRequest useAdminAccess.
|
|
31965
|
+
* @member {boolean} useAdminAccess
|
|
31966
|
+
* @memberof google.chat.v1.UpdateMembershipRequest
|
|
31967
|
+
* @instance
|
|
31968
|
+
*/
|
|
31969
|
+
UpdateMembershipRequest.prototype.useAdminAccess = false;
|
|
31970
|
+
|
|
31614
31971
|
/**
|
|
31615
31972
|
* Creates a new UpdateMembershipRequest instance using the specified properties.
|
|
31616
31973
|
* @function create
|
|
@@ -31639,6 +31996,8 @@
|
|
|
31639
31996
|
$root.google.chat.v1.Membership.encode(message.membership, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
31640
31997
|
if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
|
|
31641
31998
|
$root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
31999
|
+
if (message.useAdminAccess != null && Object.hasOwnProperty.call(message, "useAdminAccess"))
|
|
32000
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.useAdminAccess);
|
|
31642
32001
|
return writer;
|
|
31643
32002
|
};
|
|
31644
32003
|
|
|
@@ -31681,6 +32040,10 @@
|
|
|
31681
32040
|
message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
|
|
31682
32041
|
break;
|
|
31683
32042
|
}
|
|
32043
|
+
case 3: {
|
|
32044
|
+
message.useAdminAccess = reader.bool();
|
|
32045
|
+
break;
|
|
32046
|
+
}
|
|
31684
32047
|
default:
|
|
31685
32048
|
reader.skipType(tag & 7);
|
|
31686
32049
|
break;
|
|
@@ -31726,6 +32089,9 @@
|
|
|
31726
32089
|
if (error)
|
|
31727
32090
|
return "updateMask." + error;
|
|
31728
32091
|
}
|
|
32092
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
32093
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
32094
|
+
return "useAdminAccess: boolean expected";
|
|
31729
32095
|
return null;
|
|
31730
32096
|
};
|
|
31731
32097
|
|
|
@@ -31751,6 +32117,8 @@
|
|
|
31751
32117
|
throw TypeError(".google.chat.v1.UpdateMembershipRequest.updateMask: object expected");
|
|
31752
32118
|
message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
|
|
31753
32119
|
}
|
|
32120
|
+
if (object.useAdminAccess != null)
|
|
32121
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
31754
32122
|
return message;
|
|
31755
32123
|
};
|
|
31756
32124
|
|
|
@@ -31770,11 +32138,14 @@
|
|
|
31770
32138
|
if (options.defaults) {
|
|
31771
32139
|
object.membership = null;
|
|
31772
32140
|
object.updateMask = null;
|
|
32141
|
+
object.useAdminAccess = false;
|
|
31773
32142
|
}
|
|
31774
32143
|
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
31775
32144
|
object.membership = $root.google.chat.v1.Membership.toObject(message.membership, options);
|
|
31776
32145
|
if (message.updateMask != null && message.hasOwnProperty("updateMask"))
|
|
31777
32146
|
object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
|
|
32147
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
32148
|
+
object.useAdminAccess = message.useAdminAccess;
|
|
31778
32149
|
return object;
|
|
31779
32150
|
};
|
|
31780
32151
|
|
|
@@ -31819,6 +32190,7 @@
|
|
|
31819
32190
|
* @property {string|null} [filter] ListMembershipsRequest filter
|
|
31820
32191
|
* @property {boolean|null} [showGroups] ListMembershipsRequest showGroups
|
|
31821
32192
|
* @property {boolean|null} [showInvited] ListMembershipsRequest showInvited
|
|
32193
|
+
* @property {boolean|null} [useAdminAccess] ListMembershipsRequest useAdminAccess
|
|
31822
32194
|
*/
|
|
31823
32195
|
|
|
31824
32196
|
/**
|
|
@@ -31884,6 +32256,14 @@
|
|
|
31884
32256
|
*/
|
|
31885
32257
|
ListMembershipsRequest.prototype.showInvited = false;
|
|
31886
32258
|
|
|
32259
|
+
/**
|
|
32260
|
+
* ListMembershipsRequest useAdminAccess.
|
|
32261
|
+
* @member {boolean} useAdminAccess
|
|
32262
|
+
* @memberof google.chat.v1.ListMembershipsRequest
|
|
32263
|
+
* @instance
|
|
32264
|
+
*/
|
|
32265
|
+
ListMembershipsRequest.prototype.useAdminAccess = false;
|
|
32266
|
+
|
|
31887
32267
|
/**
|
|
31888
32268
|
* Creates a new ListMembershipsRequest instance using the specified properties.
|
|
31889
32269
|
* @function create
|
|
@@ -31920,6 +32300,8 @@
|
|
|
31920
32300
|
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.showGroups);
|
|
31921
32301
|
if (message.showInvited != null && Object.hasOwnProperty.call(message, "showInvited"))
|
|
31922
32302
|
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.showInvited);
|
|
32303
|
+
if (message.useAdminAccess != null && Object.hasOwnProperty.call(message, "useAdminAccess"))
|
|
32304
|
+
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.useAdminAccess);
|
|
31923
32305
|
return writer;
|
|
31924
32306
|
};
|
|
31925
32307
|
|
|
@@ -31978,6 +32360,10 @@
|
|
|
31978
32360
|
message.showInvited = reader.bool();
|
|
31979
32361
|
break;
|
|
31980
32362
|
}
|
|
32363
|
+
case 8: {
|
|
32364
|
+
message.useAdminAccess = reader.bool();
|
|
32365
|
+
break;
|
|
32366
|
+
}
|
|
31981
32367
|
default:
|
|
31982
32368
|
reader.skipType(tag & 7);
|
|
31983
32369
|
break;
|
|
@@ -32031,6 +32417,9 @@
|
|
|
32031
32417
|
if (message.showInvited != null && message.hasOwnProperty("showInvited"))
|
|
32032
32418
|
if (typeof message.showInvited !== "boolean")
|
|
32033
32419
|
return "showInvited: boolean expected";
|
|
32420
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
32421
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
32422
|
+
return "useAdminAccess: boolean expected";
|
|
32034
32423
|
return null;
|
|
32035
32424
|
};
|
|
32036
32425
|
|
|
@@ -32058,6 +32447,8 @@
|
|
|
32058
32447
|
message.showGroups = Boolean(object.showGroups);
|
|
32059
32448
|
if (object.showInvited != null)
|
|
32060
32449
|
message.showInvited = Boolean(object.showInvited);
|
|
32450
|
+
if (object.useAdminAccess != null)
|
|
32451
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
32061
32452
|
return message;
|
|
32062
32453
|
};
|
|
32063
32454
|
|
|
@@ -32081,6 +32472,7 @@
|
|
|
32081
32472
|
object.filter = "";
|
|
32082
32473
|
object.showGroups = false;
|
|
32083
32474
|
object.showInvited = false;
|
|
32475
|
+
object.useAdminAccess = false;
|
|
32084
32476
|
}
|
|
32085
32477
|
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
32086
32478
|
object.parent = message.parent;
|
|
@@ -32094,6 +32486,8 @@
|
|
|
32094
32486
|
object.showGroups = message.showGroups;
|
|
32095
32487
|
if (message.showInvited != null && message.hasOwnProperty("showInvited"))
|
|
32096
32488
|
object.showInvited = message.showInvited;
|
|
32489
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
32490
|
+
object.useAdminAccess = message.useAdminAccess;
|
|
32097
32491
|
return object;
|
|
32098
32492
|
};
|
|
32099
32493
|
|
|
@@ -32381,6 +32775,7 @@
|
|
|
32381
32775
|
* @memberof google.chat.v1
|
|
32382
32776
|
* @interface IGetMembershipRequest
|
|
32383
32777
|
* @property {string|null} [name] GetMembershipRequest name
|
|
32778
|
+
* @property {boolean|null} [useAdminAccess] GetMembershipRequest useAdminAccess
|
|
32384
32779
|
*/
|
|
32385
32780
|
|
|
32386
32781
|
/**
|
|
@@ -32406,6 +32801,14 @@
|
|
|
32406
32801
|
*/
|
|
32407
32802
|
GetMembershipRequest.prototype.name = "";
|
|
32408
32803
|
|
|
32804
|
+
/**
|
|
32805
|
+
* GetMembershipRequest useAdminAccess.
|
|
32806
|
+
* @member {boolean} useAdminAccess
|
|
32807
|
+
* @memberof google.chat.v1.GetMembershipRequest
|
|
32808
|
+
* @instance
|
|
32809
|
+
*/
|
|
32810
|
+
GetMembershipRequest.prototype.useAdminAccess = false;
|
|
32811
|
+
|
|
32409
32812
|
/**
|
|
32410
32813
|
* Creates a new GetMembershipRequest instance using the specified properties.
|
|
32411
32814
|
* @function create
|
|
@@ -32432,6 +32835,8 @@
|
|
|
32432
32835
|
writer = $Writer.create();
|
|
32433
32836
|
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
32434
32837
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
32838
|
+
if (message.useAdminAccess != null && Object.hasOwnProperty.call(message, "useAdminAccess"))
|
|
32839
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.useAdminAccess);
|
|
32435
32840
|
return writer;
|
|
32436
32841
|
};
|
|
32437
32842
|
|
|
@@ -32470,6 +32875,10 @@
|
|
|
32470
32875
|
message.name = reader.string();
|
|
32471
32876
|
break;
|
|
32472
32877
|
}
|
|
32878
|
+
case 3: {
|
|
32879
|
+
message.useAdminAccess = reader.bool();
|
|
32880
|
+
break;
|
|
32881
|
+
}
|
|
32473
32882
|
default:
|
|
32474
32883
|
reader.skipType(tag & 7);
|
|
32475
32884
|
break;
|
|
@@ -32508,6 +32917,9 @@
|
|
|
32508
32917
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
32509
32918
|
if (!$util.isString(message.name))
|
|
32510
32919
|
return "name: string expected";
|
|
32920
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
32921
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
32922
|
+
return "useAdminAccess: boolean expected";
|
|
32511
32923
|
return null;
|
|
32512
32924
|
};
|
|
32513
32925
|
|
|
@@ -32525,6 +32937,8 @@
|
|
|
32525
32937
|
var message = new $root.google.chat.v1.GetMembershipRequest();
|
|
32526
32938
|
if (object.name != null)
|
|
32527
32939
|
message.name = String(object.name);
|
|
32940
|
+
if (object.useAdminAccess != null)
|
|
32941
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
32528
32942
|
return message;
|
|
32529
32943
|
};
|
|
32530
32944
|
|
|
@@ -32541,10 +32955,14 @@
|
|
|
32541
32955
|
if (!options)
|
|
32542
32956
|
options = {};
|
|
32543
32957
|
var object = {};
|
|
32544
|
-
if (options.defaults)
|
|
32958
|
+
if (options.defaults) {
|
|
32545
32959
|
object.name = "";
|
|
32960
|
+
object.useAdminAccess = false;
|
|
32961
|
+
}
|
|
32546
32962
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
32547
32963
|
object.name = message.name;
|
|
32964
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
32965
|
+
object.useAdminAccess = message.useAdminAccess;
|
|
32548
32966
|
return object;
|
|
32549
32967
|
};
|
|
32550
32968
|
|
|
@@ -32584,6 +33002,7 @@
|
|
|
32584
33002
|
* @memberof google.chat.v1
|
|
32585
33003
|
* @interface IDeleteMembershipRequest
|
|
32586
33004
|
* @property {string|null} [name] DeleteMembershipRequest name
|
|
33005
|
+
* @property {boolean|null} [useAdminAccess] DeleteMembershipRequest useAdminAccess
|
|
32587
33006
|
*/
|
|
32588
33007
|
|
|
32589
33008
|
/**
|
|
@@ -32609,6 +33028,14 @@
|
|
|
32609
33028
|
*/
|
|
32610
33029
|
DeleteMembershipRequest.prototype.name = "";
|
|
32611
33030
|
|
|
33031
|
+
/**
|
|
33032
|
+
* DeleteMembershipRequest useAdminAccess.
|
|
33033
|
+
* @member {boolean} useAdminAccess
|
|
33034
|
+
* @memberof google.chat.v1.DeleteMembershipRequest
|
|
33035
|
+
* @instance
|
|
33036
|
+
*/
|
|
33037
|
+
DeleteMembershipRequest.prototype.useAdminAccess = false;
|
|
33038
|
+
|
|
32612
33039
|
/**
|
|
32613
33040
|
* Creates a new DeleteMembershipRequest instance using the specified properties.
|
|
32614
33041
|
* @function create
|
|
@@ -32635,6 +33062,8 @@
|
|
|
32635
33062
|
writer = $Writer.create();
|
|
32636
33063
|
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
32637
33064
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
33065
|
+
if (message.useAdminAccess != null && Object.hasOwnProperty.call(message, "useAdminAccess"))
|
|
33066
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.useAdminAccess);
|
|
32638
33067
|
return writer;
|
|
32639
33068
|
};
|
|
32640
33069
|
|
|
@@ -32673,6 +33102,10 @@
|
|
|
32673
33102
|
message.name = reader.string();
|
|
32674
33103
|
break;
|
|
32675
33104
|
}
|
|
33105
|
+
case 2: {
|
|
33106
|
+
message.useAdminAccess = reader.bool();
|
|
33107
|
+
break;
|
|
33108
|
+
}
|
|
32676
33109
|
default:
|
|
32677
33110
|
reader.skipType(tag & 7);
|
|
32678
33111
|
break;
|
|
@@ -32711,6 +33144,9 @@
|
|
|
32711
33144
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
32712
33145
|
if (!$util.isString(message.name))
|
|
32713
33146
|
return "name: string expected";
|
|
33147
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
33148
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
33149
|
+
return "useAdminAccess: boolean expected";
|
|
32714
33150
|
return null;
|
|
32715
33151
|
};
|
|
32716
33152
|
|
|
@@ -32728,6 +33164,8 @@
|
|
|
32728
33164
|
var message = new $root.google.chat.v1.DeleteMembershipRequest();
|
|
32729
33165
|
if (object.name != null)
|
|
32730
33166
|
message.name = String(object.name);
|
|
33167
|
+
if (object.useAdminAccess != null)
|
|
33168
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
32731
33169
|
return message;
|
|
32732
33170
|
};
|
|
32733
33171
|
|
|
@@ -32744,10 +33182,14 @@
|
|
|
32744
33182
|
if (!options)
|
|
32745
33183
|
options = {};
|
|
32746
33184
|
var object = {};
|
|
32747
|
-
if (options.defaults)
|
|
33185
|
+
if (options.defaults) {
|
|
32748
33186
|
object.name = "";
|
|
33187
|
+
object.useAdminAccess = false;
|
|
33188
|
+
}
|
|
32749
33189
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
32750
33190
|
object.name = message.name;
|
|
33191
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
33192
|
+
object.useAdminAccess = message.useAdminAccess;
|
|
32751
33193
|
return object;
|
|
32752
33194
|
};
|
|
32753
33195
|
|
|
@@ -45280,7 +45722,9 @@
|
|
|
45280
45722
|
* @property {google.chat.v1.HistoryState|null} [spaceHistoryState] Space spaceHistoryState
|
|
45281
45723
|
* @property {boolean|null} [importMode] Space importMode
|
|
45282
45724
|
* @property {google.protobuf.ITimestamp|null} [createTime] Space createTime
|
|
45725
|
+
* @property {google.protobuf.ITimestamp|null} [lastActiveTime] Space lastActiveTime
|
|
45283
45726
|
* @property {boolean|null} [adminInstalled] Space adminInstalled
|
|
45727
|
+
* @property {google.chat.v1.Space.IMembershipCount|null} [membershipCount] Space membershipCount
|
|
45284
45728
|
* @property {google.chat.v1.Space.IAccessSettings|null} [accessSettings] Space accessSettings
|
|
45285
45729
|
* @property {string|null} [spaceUri] Space spaceUri
|
|
45286
45730
|
*/
|
|
@@ -45396,6 +45840,14 @@
|
|
|
45396
45840
|
*/
|
|
45397
45841
|
Space.prototype.createTime = null;
|
|
45398
45842
|
|
|
45843
|
+
/**
|
|
45844
|
+
* Space lastActiveTime.
|
|
45845
|
+
* @member {google.protobuf.ITimestamp|null|undefined} lastActiveTime
|
|
45846
|
+
* @memberof google.chat.v1.Space
|
|
45847
|
+
* @instance
|
|
45848
|
+
*/
|
|
45849
|
+
Space.prototype.lastActiveTime = null;
|
|
45850
|
+
|
|
45399
45851
|
/**
|
|
45400
45852
|
* Space adminInstalled.
|
|
45401
45853
|
* @member {boolean} adminInstalled
|
|
@@ -45404,6 +45856,14 @@
|
|
|
45404
45856
|
*/
|
|
45405
45857
|
Space.prototype.adminInstalled = false;
|
|
45406
45858
|
|
|
45859
|
+
/**
|
|
45860
|
+
* Space membershipCount.
|
|
45861
|
+
* @member {google.chat.v1.Space.IMembershipCount|null|undefined} membershipCount
|
|
45862
|
+
* @memberof google.chat.v1.Space
|
|
45863
|
+
* @instance
|
|
45864
|
+
*/
|
|
45865
|
+
Space.prototype.membershipCount = null;
|
|
45866
|
+
|
|
45407
45867
|
/**
|
|
45408
45868
|
* Space accessSettings.
|
|
45409
45869
|
* @member {google.chat.v1.Space.IAccessSettings|null|undefined} accessSettings
|
|
@@ -45468,8 +45928,12 @@
|
|
|
45468
45928
|
writer.uint32(/* id 16, wireType 0 =*/128).bool(message.importMode);
|
|
45469
45929
|
if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
|
|
45470
45930
|
$root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
45931
|
+
if (message.lastActiveTime != null && Object.hasOwnProperty.call(message, "lastActiveTime"))
|
|
45932
|
+
$root.google.protobuf.Timestamp.encode(message.lastActiveTime, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
45471
45933
|
if (message.adminInstalled != null && Object.hasOwnProperty.call(message, "adminInstalled"))
|
|
45472
45934
|
writer.uint32(/* id 19, wireType 0 =*/152).bool(message.adminInstalled);
|
|
45935
|
+
if (message.membershipCount != null && Object.hasOwnProperty.call(message, "membershipCount"))
|
|
45936
|
+
$root.google.chat.v1.Space.MembershipCount.encode(message.membershipCount, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
|
|
45473
45937
|
if (message.accessSettings != null && Object.hasOwnProperty.call(message, "accessSettings"))
|
|
45474
45938
|
$root.google.chat.v1.Space.AccessSettings.encode(message.accessSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
|
|
45475
45939
|
if (message.spaceUri != null && Object.hasOwnProperty.call(message, "spaceUri"))
|
|
@@ -45556,10 +46020,18 @@
|
|
|
45556
46020
|
message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
45557
46021
|
break;
|
|
45558
46022
|
}
|
|
45559
|
-
case
|
|
46023
|
+
case 18: {
|
|
46024
|
+
message.lastActiveTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
46025
|
+
break;
|
|
46026
|
+
}
|
|
46027
|
+
case 19: {
|
|
45560
46028
|
message.adminInstalled = reader.bool();
|
|
45561
46029
|
break;
|
|
45562
46030
|
}
|
|
46031
|
+
case 20: {
|
|
46032
|
+
message.membershipCount = $root.google.chat.v1.Space.MembershipCount.decode(reader, reader.uint32());
|
|
46033
|
+
break;
|
|
46034
|
+
}
|
|
45563
46035
|
case 23: {
|
|
45564
46036
|
message.accessSettings = $root.google.chat.v1.Space.AccessSettings.decode(reader, reader.uint32());
|
|
45565
46037
|
break;
|
|
@@ -45669,9 +46141,19 @@
|
|
|
45669
46141
|
if (error)
|
|
45670
46142
|
return "createTime." + error;
|
|
45671
46143
|
}
|
|
46144
|
+
if (message.lastActiveTime != null && message.hasOwnProperty("lastActiveTime")) {
|
|
46145
|
+
var error = $root.google.protobuf.Timestamp.verify(message.lastActiveTime);
|
|
46146
|
+
if (error)
|
|
46147
|
+
return "lastActiveTime." + error;
|
|
46148
|
+
}
|
|
45672
46149
|
if (message.adminInstalled != null && message.hasOwnProperty("adminInstalled"))
|
|
45673
46150
|
if (typeof message.adminInstalled !== "boolean")
|
|
45674
46151
|
return "adminInstalled: boolean expected";
|
|
46152
|
+
if (message.membershipCount != null && message.hasOwnProperty("membershipCount")) {
|
|
46153
|
+
var error = $root.google.chat.v1.Space.MembershipCount.verify(message.membershipCount);
|
|
46154
|
+
if (error)
|
|
46155
|
+
return "membershipCount." + error;
|
|
46156
|
+
}
|
|
45675
46157
|
if (message.accessSettings != null && message.hasOwnProperty("accessSettings")) {
|
|
45676
46158
|
var error = $root.google.chat.v1.Space.AccessSettings.verify(message.accessSettings);
|
|
45677
46159
|
if (error)
|
|
@@ -45805,8 +46287,18 @@
|
|
|
45805
46287
|
throw TypeError(".google.chat.v1.Space.createTime: object expected");
|
|
45806
46288
|
message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
|
|
45807
46289
|
}
|
|
46290
|
+
if (object.lastActiveTime != null) {
|
|
46291
|
+
if (typeof object.lastActiveTime !== "object")
|
|
46292
|
+
throw TypeError(".google.chat.v1.Space.lastActiveTime: object expected");
|
|
46293
|
+
message.lastActiveTime = $root.google.protobuf.Timestamp.fromObject(object.lastActiveTime);
|
|
46294
|
+
}
|
|
45808
46295
|
if (object.adminInstalled != null)
|
|
45809
46296
|
message.adminInstalled = Boolean(object.adminInstalled);
|
|
46297
|
+
if (object.membershipCount != null) {
|
|
46298
|
+
if (typeof object.membershipCount !== "object")
|
|
46299
|
+
throw TypeError(".google.chat.v1.Space.membershipCount: object expected");
|
|
46300
|
+
message.membershipCount = $root.google.chat.v1.Space.MembershipCount.fromObject(object.membershipCount);
|
|
46301
|
+
}
|
|
45810
46302
|
if (object.accessSettings != null) {
|
|
45811
46303
|
if (typeof object.accessSettings !== "object")
|
|
45812
46304
|
throw TypeError(".google.chat.v1.Space.accessSettings: object expected");
|
|
@@ -45843,7 +46335,9 @@
|
|
|
45843
46335
|
object.spaceHistoryState = options.enums === String ? "HISTORY_STATE_UNSPECIFIED" : 0;
|
|
45844
46336
|
object.importMode = false;
|
|
45845
46337
|
object.createTime = null;
|
|
46338
|
+
object.lastActiveTime = null;
|
|
45846
46339
|
object.adminInstalled = false;
|
|
46340
|
+
object.membershipCount = null;
|
|
45847
46341
|
object.accessSettings = null;
|
|
45848
46342
|
object.spaceUri = "";
|
|
45849
46343
|
}
|
|
@@ -45871,8 +46365,12 @@
|
|
|
45871
46365
|
object.importMode = message.importMode;
|
|
45872
46366
|
if (message.createTime != null && message.hasOwnProperty("createTime"))
|
|
45873
46367
|
object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
|
|
46368
|
+
if (message.lastActiveTime != null && message.hasOwnProperty("lastActiveTime"))
|
|
46369
|
+
object.lastActiveTime = $root.google.protobuf.Timestamp.toObject(message.lastActiveTime, options);
|
|
45874
46370
|
if (message.adminInstalled != null && message.hasOwnProperty("adminInstalled"))
|
|
45875
46371
|
object.adminInstalled = message.adminInstalled;
|
|
46372
|
+
if (message.membershipCount != null && message.hasOwnProperty("membershipCount"))
|
|
46373
|
+
object.membershipCount = $root.google.chat.v1.Space.MembershipCount.toObject(message.membershipCount, options);
|
|
45876
46374
|
if (message.accessSettings != null && message.hasOwnProperty("accessSettings"))
|
|
45877
46375
|
object.accessSettings = $root.google.chat.v1.Space.AccessSettings.toObject(message.accessSettings, options);
|
|
45878
46376
|
if (message.spaceUri != null && message.hasOwnProperty("spaceUri"))
|
|
@@ -46185,6 +46683,233 @@
|
|
|
46185
46683
|
return SpaceDetails;
|
|
46186
46684
|
})();
|
|
46187
46685
|
|
|
46686
|
+
Space.MembershipCount = (function() {
|
|
46687
|
+
|
|
46688
|
+
/**
|
|
46689
|
+
* Properties of a MembershipCount.
|
|
46690
|
+
* @memberof google.chat.v1.Space
|
|
46691
|
+
* @interface IMembershipCount
|
|
46692
|
+
* @property {number|null} [joinedDirectHumanUserCount] MembershipCount joinedDirectHumanUserCount
|
|
46693
|
+
* @property {number|null} [joinedGroupCount] MembershipCount joinedGroupCount
|
|
46694
|
+
*/
|
|
46695
|
+
|
|
46696
|
+
/**
|
|
46697
|
+
* Constructs a new MembershipCount.
|
|
46698
|
+
* @memberof google.chat.v1.Space
|
|
46699
|
+
* @classdesc Represents a MembershipCount.
|
|
46700
|
+
* @implements IMembershipCount
|
|
46701
|
+
* @constructor
|
|
46702
|
+
* @param {google.chat.v1.Space.IMembershipCount=} [properties] Properties to set
|
|
46703
|
+
*/
|
|
46704
|
+
function MembershipCount(properties) {
|
|
46705
|
+
if (properties)
|
|
46706
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
46707
|
+
if (properties[keys[i]] != null)
|
|
46708
|
+
this[keys[i]] = properties[keys[i]];
|
|
46709
|
+
}
|
|
46710
|
+
|
|
46711
|
+
/**
|
|
46712
|
+
* MembershipCount joinedDirectHumanUserCount.
|
|
46713
|
+
* @member {number} joinedDirectHumanUserCount
|
|
46714
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46715
|
+
* @instance
|
|
46716
|
+
*/
|
|
46717
|
+
MembershipCount.prototype.joinedDirectHumanUserCount = 0;
|
|
46718
|
+
|
|
46719
|
+
/**
|
|
46720
|
+
* MembershipCount joinedGroupCount.
|
|
46721
|
+
* @member {number} joinedGroupCount
|
|
46722
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46723
|
+
* @instance
|
|
46724
|
+
*/
|
|
46725
|
+
MembershipCount.prototype.joinedGroupCount = 0;
|
|
46726
|
+
|
|
46727
|
+
/**
|
|
46728
|
+
* Creates a new MembershipCount instance using the specified properties.
|
|
46729
|
+
* @function create
|
|
46730
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46731
|
+
* @static
|
|
46732
|
+
* @param {google.chat.v1.Space.IMembershipCount=} [properties] Properties to set
|
|
46733
|
+
* @returns {google.chat.v1.Space.MembershipCount} MembershipCount instance
|
|
46734
|
+
*/
|
|
46735
|
+
MembershipCount.create = function create(properties) {
|
|
46736
|
+
return new MembershipCount(properties);
|
|
46737
|
+
};
|
|
46738
|
+
|
|
46739
|
+
/**
|
|
46740
|
+
* Encodes the specified MembershipCount message. Does not implicitly {@link google.chat.v1.Space.MembershipCount.verify|verify} messages.
|
|
46741
|
+
* @function encode
|
|
46742
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46743
|
+
* @static
|
|
46744
|
+
* @param {google.chat.v1.Space.IMembershipCount} message MembershipCount message or plain object to encode
|
|
46745
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
46746
|
+
* @returns {$protobuf.Writer} Writer
|
|
46747
|
+
*/
|
|
46748
|
+
MembershipCount.encode = function encode(message, writer) {
|
|
46749
|
+
if (!writer)
|
|
46750
|
+
writer = $Writer.create();
|
|
46751
|
+
if (message.joinedDirectHumanUserCount != null && Object.hasOwnProperty.call(message, "joinedDirectHumanUserCount"))
|
|
46752
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.joinedDirectHumanUserCount);
|
|
46753
|
+
if (message.joinedGroupCount != null && Object.hasOwnProperty.call(message, "joinedGroupCount"))
|
|
46754
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.joinedGroupCount);
|
|
46755
|
+
return writer;
|
|
46756
|
+
};
|
|
46757
|
+
|
|
46758
|
+
/**
|
|
46759
|
+
* Encodes the specified MembershipCount message, length delimited. Does not implicitly {@link google.chat.v1.Space.MembershipCount.verify|verify} messages.
|
|
46760
|
+
* @function encodeDelimited
|
|
46761
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46762
|
+
* @static
|
|
46763
|
+
* @param {google.chat.v1.Space.IMembershipCount} message MembershipCount message or plain object to encode
|
|
46764
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
46765
|
+
* @returns {$protobuf.Writer} Writer
|
|
46766
|
+
*/
|
|
46767
|
+
MembershipCount.encodeDelimited = function encodeDelimited(message, writer) {
|
|
46768
|
+
return this.encode(message, writer).ldelim();
|
|
46769
|
+
};
|
|
46770
|
+
|
|
46771
|
+
/**
|
|
46772
|
+
* Decodes a MembershipCount message from the specified reader or buffer.
|
|
46773
|
+
* @function decode
|
|
46774
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46775
|
+
* @static
|
|
46776
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
46777
|
+
* @param {number} [length] Message length if known beforehand
|
|
46778
|
+
* @returns {google.chat.v1.Space.MembershipCount} MembershipCount
|
|
46779
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
46780
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
46781
|
+
*/
|
|
46782
|
+
MembershipCount.decode = function decode(reader, length) {
|
|
46783
|
+
if (!(reader instanceof $Reader))
|
|
46784
|
+
reader = $Reader.create(reader);
|
|
46785
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.Space.MembershipCount();
|
|
46786
|
+
while (reader.pos < end) {
|
|
46787
|
+
var tag = reader.uint32();
|
|
46788
|
+
switch (tag >>> 3) {
|
|
46789
|
+
case 4: {
|
|
46790
|
+
message.joinedDirectHumanUserCount = reader.int32();
|
|
46791
|
+
break;
|
|
46792
|
+
}
|
|
46793
|
+
case 5: {
|
|
46794
|
+
message.joinedGroupCount = reader.int32();
|
|
46795
|
+
break;
|
|
46796
|
+
}
|
|
46797
|
+
default:
|
|
46798
|
+
reader.skipType(tag & 7);
|
|
46799
|
+
break;
|
|
46800
|
+
}
|
|
46801
|
+
}
|
|
46802
|
+
return message;
|
|
46803
|
+
};
|
|
46804
|
+
|
|
46805
|
+
/**
|
|
46806
|
+
* Decodes a MembershipCount message from the specified reader or buffer, length delimited.
|
|
46807
|
+
* @function decodeDelimited
|
|
46808
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46809
|
+
* @static
|
|
46810
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
46811
|
+
* @returns {google.chat.v1.Space.MembershipCount} MembershipCount
|
|
46812
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
46813
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
46814
|
+
*/
|
|
46815
|
+
MembershipCount.decodeDelimited = function decodeDelimited(reader) {
|
|
46816
|
+
if (!(reader instanceof $Reader))
|
|
46817
|
+
reader = new $Reader(reader);
|
|
46818
|
+
return this.decode(reader, reader.uint32());
|
|
46819
|
+
};
|
|
46820
|
+
|
|
46821
|
+
/**
|
|
46822
|
+
* Verifies a MembershipCount message.
|
|
46823
|
+
* @function verify
|
|
46824
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46825
|
+
* @static
|
|
46826
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
46827
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
46828
|
+
*/
|
|
46829
|
+
MembershipCount.verify = function verify(message) {
|
|
46830
|
+
if (typeof message !== "object" || message === null)
|
|
46831
|
+
return "object expected";
|
|
46832
|
+
if (message.joinedDirectHumanUserCount != null && message.hasOwnProperty("joinedDirectHumanUserCount"))
|
|
46833
|
+
if (!$util.isInteger(message.joinedDirectHumanUserCount))
|
|
46834
|
+
return "joinedDirectHumanUserCount: integer expected";
|
|
46835
|
+
if (message.joinedGroupCount != null && message.hasOwnProperty("joinedGroupCount"))
|
|
46836
|
+
if (!$util.isInteger(message.joinedGroupCount))
|
|
46837
|
+
return "joinedGroupCount: integer expected";
|
|
46838
|
+
return null;
|
|
46839
|
+
};
|
|
46840
|
+
|
|
46841
|
+
/**
|
|
46842
|
+
* Creates a MembershipCount message from a plain object. Also converts values to their respective internal types.
|
|
46843
|
+
* @function fromObject
|
|
46844
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46845
|
+
* @static
|
|
46846
|
+
* @param {Object.<string,*>} object Plain object
|
|
46847
|
+
* @returns {google.chat.v1.Space.MembershipCount} MembershipCount
|
|
46848
|
+
*/
|
|
46849
|
+
MembershipCount.fromObject = function fromObject(object) {
|
|
46850
|
+
if (object instanceof $root.google.chat.v1.Space.MembershipCount)
|
|
46851
|
+
return object;
|
|
46852
|
+
var message = new $root.google.chat.v1.Space.MembershipCount();
|
|
46853
|
+
if (object.joinedDirectHumanUserCount != null)
|
|
46854
|
+
message.joinedDirectHumanUserCount = object.joinedDirectHumanUserCount | 0;
|
|
46855
|
+
if (object.joinedGroupCount != null)
|
|
46856
|
+
message.joinedGroupCount = object.joinedGroupCount | 0;
|
|
46857
|
+
return message;
|
|
46858
|
+
};
|
|
46859
|
+
|
|
46860
|
+
/**
|
|
46861
|
+
* Creates a plain object from a MembershipCount message. Also converts values to other types if specified.
|
|
46862
|
+
* @function toObject
|
|
46863
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46864
|
+
* @static
|
|
46865
|
+
* @param {google.chat.v1.Space.MembershipCount} message MembershipCount
|
|
46866
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
46867
|
+
* @returns {Object.<string,*>} Plain object
|
|
46868
|
+
*/
|
|
46869
|
+
MembershipCount.toObject = function toObject(message, options) {
|
|
46870
|
+
if (!options)
|
|
46871
|
+
options = {};
|
|
46872
|
+
var object = {};
|
|
46873
|
+
if (options.defaults) {
|
|
46874
|
+
object.joinedDirectHumanUserCount = 0;
|
|
46875
|
+
object.joinedGroupCount = 0;
|
|
46876
|
+
}
|
|
46877
|
+
if (message.joinedDirectHumanUserCount != null && message.hasOwnProperty("joinedDirectHumanUserCount"))
|
|
46878
|
+
object.joinedDirectHumanUserCount = message.joinedDirectHumanUserCount;
|
|
46879
|
+
if (message.joinedGroupCount != null && message.hasOwnProperty("joinedGroupCount"))
|
|
46880
|
+
object.joinedGroupCount = message.joinedGroupCount;
|
|
46881
|
+
return object;
|
|
46882
|
+
};
|
|
46883
|
+
|
|
46884
|
+
/**
|
|
46885
|
+
* Converts this MembershipCount to JSON.
|
|
46886
|
+
* @function toJSON
|
|
46887
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46888
|
+
* @instance
|
|
46889
|
+
* @returns {Object.<string,*>} JSON object
|
|
46890
|
+
*/
|
|
46891
|
+
MembershipCount.prototype.toJSON = function toJSON() {
|
|
46892
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
46893
|
+
};
|
|
46894
|
+
|
|
46895
|
+
/**
|
|
46896
|
+
* Gets the default type url for MembershipCount
|
|
46897
|
+
* @function getTypeUrl
|
|
46898
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46899
|
+
* @static
|
|
46900
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
46901
|
+
* @returns {string} The default type url
|
|
46902
|
+
*/
|
|
46903
|
+
MembershipCount.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
46904
|
+
if (typeUrlPrefix === undefined) {
|
|
46905
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
46906
|
+
}
|
|
46907
|
+
return typeUrlPrefix + "/google.chat.v1.Space.MembershipCount";
|
|
46908
|
+
};
|
|
46909
|
+
|
|
46910
|
+
return MembershipCount;
|
|
46911
|
+
})();
|
|
46912
|
+
|
|
46188
46913
|
Space.AccessSettings = (function() {
|
|
46189
46914
|
|
|
46190
46915
|
/**
|
|
@@ -47192,6 +47917,7 @@
|
|
|
47192
47917
|
* @memberof google.chat.v1
|
|
47193
47918
|
* @interface IGetSpaceRequest
|
|
47194
47919
|
* @property {string|null} [name] GetSpaceRequest name
|
|
47920
|
+
* @property {boolean|null} [useAdminAccess] GetSpaceRequest useAdminAccess
|
|
47195
47921
|
*/
|
|
47196
47922
|
|
|
47197
47923
|
/**
|
|
@@ -47217,6 +47943,14 @@
|
|
|
47217
47943
|
*/
|
|
47218
47944
|
GetSpaceRequest.prototype.name = "";
|
|
47219
47945
|
|
|
47946
|
+
/**
|
|
47947
|
+
* GetSpaceRequest useAdminAccess.
|
|
47948
|
+
* @member {boolean} useAdminAccess
|
|
47949
|
+
* @memberof google.chat.v1.GetSpaceRequest
|
|
47950
|
+
* @instance
|
|
47951
|
+
*/
|
|
47952
|
+
GetSpaceRequest.prototype.useAdminAccess = false;
|
|
47953
|
+
|
|
47220
47954
|
/**
|
|
47221
47955
|
* Creates a new GetSpaceRequest instance using the specified properties.
|
|
47222
47956
|
* @function create
|
|
@@ -47243,6 +47977,8 @@
|
|
|
47243
47977
|
writer = $Writer.create();
|
|
47244
47978
|
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
47245
47979
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
47980
|
+
if (message.useAdminAccess != null && Object.hasOwnProperty.call(message, "useAdminAccess"))
|
|
47981
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.useAdminAccess);
|
|
47246
47982
|
return writer;
|
|
47247
47983
|
};
|
|
47248
47984
|
|
|
@@ -47281,6 +48017,10 @@
|
|
|
47281
48017
|
message.name = reader.string();
|
|
47282
48018
|
break;
|
|
47283
48019
|
}
|
|
48020
|
+
case 2: {
|
|
48021
|
+
message.useAdminAccess = reader.bool();
|
|
48022
|
+
break;
|
|
48023
|
+
}
|
|
47284
48024
|
default:
|
|
47285
48025
|
reader.skipType(tag & 7);
|
|
47286
48026
|
break;
|
|
@@ -47319,6 +48059,9 @@
|
|
|
47319
48059
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
47320
48060
|
if (!$util.isString(message.name))
|
|
47321
48061
|
return "name: string expected";
|
|
48062
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
48063
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
48064
|
+
return "useAdminAccess: boolean expected";
|
|
47322
48065
|
return null;
|
|
47323
48066
|
};
|
|
47324
48067
|
|
|
@@ -47336,6 +48079,8 @@
|
|
|
47336
48079
|
var message = new $root.google.chat.v1.GetSpaceRequest();
|
|
47337
48080
|
if (object.name != null)
|
|
47338
48081
|
message.name = String(object.name);
|
|
48082
|
+
if (object.useAdminAccess != null)
|
|
48083
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
47339
48084
|
return message;
|
|
47340
48085
|
};
|
|
47341
48086
|
|
|
@@ -47352,10 +48097,14 @@
|
|
|
47352
48097
|
if (!options)
|
|
47353
48098
|
options = {};
|
|
47354
48099
|
var object = {};
|
|
47355
|
-
if (options.defaults)
|
|
48100
|
+
if (options.defaults) {
|
|
47356
48101
|
object.name = "";
|
|
48102
|
+
object.useAdminAccess = false;
|
|
48103
|
+
}
|
|
47357
48104
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
47358
48105
|
object.name = message.name;
|
|
48106
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
48107
|
+
object.useAdminAccess = message.useAdminAccess;
|
|
47359
48108
|
return object;
|
|
47360
48109
|
};
|
|
47361
48110
|
|
|
@@ -47599,6 +48348,7 @@
|
|
|
47599
48348
|
* @interface IUpdateSpaceRequest
|
|
47600
48349
|
* @property {google.chat.v1.ISpace|null} [space] UpdateSpaceRequest space
|
|
47601
48350
|
* @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSpaceRequest updateMask
|
|
48351
|
+
* @property {boolean|null} [useAdminAccess] UpdateSpaceRequest useAdminAccess
|
|
47602
48352
|
*/
|
|
47603
48353
|
|
|
47604
48354
|
/**
|
|
@@ -47632,6 +48382,14 @@
|
|
|
47632
48382
|
*/
|
|
47633
48383
|
UpdateSpaceRequest.prototype.updateMask = null;
|
|
47634
48384
|
|
|
48385
|
+
/**
|
|
48386
|
+
* UpdateSpaceRequest useAdminAccess.
|
|
48387
|
+
* @member {boolean} useAdminAccess
|
|
48388
|
+
* @memberof google.chat.v1.UpdateSpaceRequest
|
|
48389
|
+
* @instance
|
|
48390
|
+
*/
|
|
48391
|
+
UpdateSpaceRequest.prototype.useAdminAccess = false;
|
|
48392
|
+
|
|
47635
48393
|
/**
|
|
47636
48394
|
* Creates a new UpdateSpaceRequest instance using the specified properties.
|
|
47637
48395
|
* @function create
|
|
@@ -47660,6 +48418,8 @@
|
|
|
47660
48418
|
$root.google.chat.v1.Space.encode(message.space, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
47661
48419
|
if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
|
|
47662
48420
|
$root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
48421
|
+
if (message.useAdminAccess != null && Object.hasOwnProperty.call(message, "useAdminAccess"))
|
|
48422
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.useAdminAccess);
|
|
47663
48423
|
return writer;
|
|
47664
48424
|
};
|
|
47665
48425
|
|
|
@@ -47702,6 +48462,10 @@
|
|
|
47702
48462
|
message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
|
|
47703
48463
|
break;
|
|
47704
48464
|
}
|
|
48465
|
+
case 3: {
|
|
48466
|
+
message.useAdminAccess = reader.bool();
|
|
48467
|
+
break;
|
|
48468
|
+
}
|
|
47705
48469
|
default:
|
|
47706
48470
|
reader.skipType(tag & 7);
|
|
47707
48471
|
break;
|
|
@@ -47747,6 +48511,9 @@
|
|
|
47747
48511
|
if (error)
|
|
47748
48512
|
return "updateMask." + error;
|
|
47749
48513
|
}
|
|
48514
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
48515
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
48516
|
+
return "useAdminAccess: boolean expected";
|
|
47750
48517
|
return null;
|
|
47751
48518
|
};
|
|
47752
48519
|
|
|
@@ -47772,6 +48539,8 @@
|
|
|
47772
48539
|
throw TypeError(".google.chat.v1.UpdateSpaceRequest.updateMask: object expected");
|
|
47773
48540
|
message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
|
|
47774
48541
|
}
|
|
48542
|
+
if (object.useAdminAccess != null)
|
|
48543
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
47775
48544
|
return message;
|
|
47776
48545
|
};
|
|
47777
48546
|
|
|
@@ -47791,11 +48560,14 @@
|
|
|
47791
48560
|
if (options.defaults) {
|
|
47792
48561
|
object.space = null;
|
|
47793
48562
|
object.updateMask = null;
|
|
48563
|
+
object.useAdminAccess = false;
|
|
47794
48564
|
}
|
|
47795
48565
|
if (message.space != null && message.hasOwnProperty("space"))
|
|
47796
48566
|
object.space = $root.google.chat.v1.Space.toObject(message.space, options);
|
|
47797
48567
|
if (message.updateMask != null && message.hasOwnProperty("updateMask"))
|
|
47798
48568
|
object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
|
|
48569
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
48570
|
+
object.useAdminAccess = message.useAdminAccess;
|
|
47799
48571
|
return object;
|
|
47800
48572
|
};
|
|
47801
48573
|
|
|
@@ -47828,24 +48600,28 @@
|
|
|
47828
48600
|
return UpdateSpaceRequest;
|
|
47829
48601
|
})();
|
|
47830
48602
|
|
|
47831
|
-
v1.
|
|
48603
|
+
v1.SearchSpacesRequest = (function() {
|
|
47832
48604
|
|
|
47833
48605
|
/**
|
|
47834
|
-
* Properties of a
|
|
48606
|
+
* Properties of a SearchSpacesRequest.
|
|
47835
48607
|
* @memberof google.chat.v1
|
|
47836
|
-
* @interface
|
|
47837
|
-
* @property {
|
|
48608
|
+
* @interface ISearchSpacesRequest
|
|
48609
|
+
* @property {boolean|null} [useAdminAccess] SearchSpacesRequest useAdminAccess
|
|
48610
|
+
* @property {number|null} [pageSize] SearchSpacesRequest pageSize
|
|
48611
|
+
* @property {string|null} [pageToken] SearchSpacesRequest pageToken
|
|
48612
|
+
* @property {string|null} [query] SearchSpacesRequest query
|
|
48613
|
+
* @property {string|null} [orderBy] SearchSpacesRequest orderBy
|
|
47838
48614
|
*/
|
|
47839
48615
|
|
|
47840
48616
|
/**
|
|
47841
|
-
* Constructs a new
|
|
48617
|
+
* Constructs a new SearchSpacesRequest.
|
|
47842
48618
|
* @memberof google.chat.v1
|
|
47843
|
-
* @classdesc Represents a
|
|
47844
|
-
* @implements
|
|
48619
|
+
* @classdesc Represents a SearchSpacesRequest.
|
|
48620
|
+
* @implements ISearchSpacesRequest
|
|
47845
48621
|
* @constructor
|
|
47846
|
-
* @param {google.chat.v1.
|
|
48622
|
+
* @param {google.chat.v1.ISearchSpacesRequest=} [properties] Properties to set
|
|
47847
48623
|
*/
|
|
47848
|
-
function
|
|
48624
|
+
function SearchSpacesRequest(properties) {
|
|
47849
48625
|
if (properties)
|
|
47850
48626
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47851
48627
|
if (properties[keys[i]] != null)
|
|
@@ -47853,75 +48629,131 @@
|
|
|
47853
48629
|
}
|
|
47854
48630
|
|
|
47855
48631
|
/**
|
|
47856
|
-
*
|
|
47857
|
-
* @member {
|
|
47858
|
-
* @memberof google.chat.v1.
|
|
48632
|
+
* SearchSpacesRequest useAdminAccess.
|
|
48633
|
+
* @member {boolean} useAdminAccess
|
|
48634
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
47859
48635
|
* @instance
|
|
47860
48636
|
*/
|
|
47861
|
-
|
|
48637
|
+
SearchSpacesRequest.prototype.useAdminAccess = false;
|
|
47862
48638
|
|
|
47863
48639
|
/**
|
|
47864
|
-
*
|
|
48640
|
+
* SearchSpacesRequest pageSize.
|
|
48641
|
+
* @member {number} pageSize
|
|
48642
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
48643
|
+
* @instance
|
|
48644
|
+
*/
|
|
48645
|
+
SearchSpacesRequest.prototype.pageSize = 0;
|
|
48646
|
+
|
|
48647
|
+
/**
|
|
48648
|
+
* SearchSpacesRequest pageToken.
|
|
48649
|
+
* @member {string} pageToken
|
|
48650
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
48651
|
+
* @instance
|
|
48652
|
+
*/
|
|
48653
|
+
SearchSpacesRequest.prototype.pageToken = "";
|
|
48654
|
+
|
|
48655
|
+
/**
|
|
48656
|
+
* SearchSpacesRequest query.
|
|
48657
|
+
* @member {string} query
|
|
48658
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
48659
|
+
* @instance
|
|
48660
|
+
*/
|
|
48661
|
+
SearchSpacesRequest.prototype.query = "";
|
|
48662
|
+
|
|
48663
|
+
/**
|
|
48664
|
+
* SearchSpacesRequest orderBy.
|
|
48665
|
+
* @member {string} orderBy
|
|
48666
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
48667
|
+
* @instance
|
|
48668
|
+
*/
|
|
48669
|
+
SearchSpacesRequest.prototype.orderBy = "";
|
|
48670
|
+
|
|
48671
|
+
/**
|
|
48672
|
+
* Creates a new SearchSpacesRequest instance using the specified properties.
|
|
47865
48673
|
* @function create
|
|
47866
|
-
* @memberof google.chat.v1.
|
|
48674
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
47867
48675
|
* @static
|
|
47868
|
-
* @param {google.chat.v1.
|
|
47869
|
-
* @returns {google.chat.v1.
|
|
48676
|
+
* @param {google.chat.v1.ISearchSpacesRequest=} [properties] Properties to set
|
|
48677
|
+
* @returns {google.chat.v1.SearchSpacesRequest} SearchSpacesRequest instance
|
|
47870
48678
|
*/
|
|
47871
|
-
|
|
47872
|
-
return new
|
|
48679
|
+
SearchSpacesRequest.create = function create(properties) {
|
|
48680
|
+
return new SearchSpacesRequest(properties);
|
|
47873
48681
|
};
|
|
47874
48682
|
|
|
47875
48683
|
/**
|
|
47876
|
-
* Encodes the specified
|
|
48684
|
+
* Encodes the specified SearchSpacesRequest message. Does not implicitly {@link google.chat.v1.SearchSpacesRequest.verify|verify} messages.
|
|
47877
48685
|
* @function encode
|
|
47878
|
-
* @memberof google.chat.v1.
|
|
48686
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
47879
48687
|
* @static
|
|
47880
|
-
* @param {google.chat.v1.
|
|
48688
|
+
* @param {google.chat.v1.ISearchSpacesRequest} message SearchSpacesRequest message or plain object to encode
|
|
47881
48689
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47882
48690
|
* @returns {$protobuf.Writer} Writer
|
|
47883
48691
|
*/
|
|
47884
|
-
|
|
48692
|
+
SearchSpacesRequest.encode = function encode(message, writer) {
|
|
47885
48693
|
if (!writer)
|
|
47886
48694
|
writer = $Writer.create();
|
|
47887
|
-
if (message.
|
|
47888
|
-
writer.uint32(/* id 1, wireType
|
|
48695
|
+
if (message.useAdminAccess != null && Object.hasOwnProperty.call(message, "useAdminAccess"))
|
|
48696
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useAdminAccess);
|
|
48697
|
+
if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
|
|
48698
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
|
|
48699
|
+
if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
|
|
48700
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
|
|
48701
|
+
if (message.query != null && Object.hasOwnProperty.call(message, "query"))
|
|
48702
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.query);
|
|
48703
|
+
if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
|
|
48704
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy);
|
|
47889
48705
|
return writer;
|
|
47890
48706
|
};
|
|
47891
48707
|
|
|
47892
48708
|
/**
|
|
47893
|
-
* Encodes the specified
|
|
48709
|
+
* Encodes the specified SearchSpacesRequest message, length delimited. Does not implicitly {@link google.chat.v1.SearchSpacesRequest.verify|verify} messages.
|
|
47894
48710
|
* @function encodeDelimited
|
|
47895
|
-
* @memberof google.chat.v1.
|
|
48711
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
47896
48712
|
* @static
|
|
47897
|
-
* @param {google.chat.v1.
|
|
48713
|
+
* @param {google.chat.v1.ISearchSpacesRequest} message SearchSpacesRequest message or plain object to encode
|
|
47898
48714
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47899
48715
|
* @returns {$protobuf.Writer} Writer
|
|
47900
48716
|
*/
|
|
47901
|
-
|
|
48717
|
+
SearchSpacesRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
47902
48718
|
return this.encode(message, writer).ldelim();
|
|
47903
48719
|
};
|
|
47904
48720
|
|
|
47905
48721
|
/**
|
|
47906
|
-
* Decodes a
|
|
48722
|
+
* Decodes a SearchSpacesRequest message from the specified reader or buffer.
|
|
47907
48723
|
* @function decode
|
|
47908
|
-
* @memberof google.chat.v1.
|
|
48724
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
47909
48725
|
* @static
|
|
47910
48726
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47911
48727
|
* @param {number} [length] Message length if known beforehand
|
|
47912
|
-
* @returns {google.chat.v1.
|
|
48728
|
+
* @returns {google.chat.v1.SearchSpacesRequest} SearchSpacesRequest
|
|
47913
48729
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47914
48730
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47915
48731
|
*/
|
|
47916
|
-
|
|
48732
|
+
SearchSpacesRequest.decode = function decode(reader, length) {
|
|
47917
48733
|
if (!(reader instanceof $Reader))
|
|
47918
48734
|
reader = $Reader.create(reader);
|
|
47919
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.
|
|
48735
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.SearchSpacesRequest();
|
|
47920
48736
|
while (reader.pos < end) {
|
|
47921
48737
|
var tag = reader.uint32();
|
|
47922
48738
|
switch (tag >>> 3) {
|
|
47923
48739
|
case 1: {
|
|
47924
|
-
message.
|
|
48740
|
+
message.useAdminAccess = reader.bool();
|
|
48741
|
+
break;
|
|
48742
|
+
}
|
|
48743
|
+
case 2: {
|
|
48744
|
+
message.pageSize = reader.int32();
|
|
48745
|
+
break;
|
|
48746
|
+
}
|
|
48747
|
+
case 3: {
|
|
48748
|
+
message.pageToken = reader.string();
|
|
48749
|
+
break;
|
|
48750
|
+
}
|
|
48751
|
+
case 4: {
|
|
48752
|
+
message.query = reader.string();
|
|
48753
|
+
break;
|
|
48754
|
+
}
|
|
48755
|
+
case 5: {
|
|
48756
|
+
message.orderBy = reader.string();
|
|
47925
48757
|
break;
|
|
47926
48758
|
}
|
|
47927
48759
|
default:
|
|
@@ -47933,25 +48765,548 @@
|
|
|
47933
48765
|
};
|
|
47934
48766
|
|
|
47935
48767
|
/**
|
|
47936
|
-
* Decodes a
|
|
48768
|
+
* Decodes a SearchSpacesRequest message from the specified reader or buffer, length delimited.
|
|
47937
48769
|
* @function decodeDelimited
|
|
47938
|
-
* @memberof google.chat.v1.
|
|
48770
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
47939
48771
|
* @static
|
|
47940
48772
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47941
|
-
* @returns {google.chat.v1.
|
|
48773
|
+
* @returns {google.chat.v1.SearchSpacesRequest} SearchSpacesRequest
|
|
47942
48774
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47943
48775
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47944
48776
|
*/
|
|
47945
|
-
|
|
48777
|
+
SearchSpacesRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
47946
48778
|
if (!(reader instanceof $Reader))
|
|
47947
48779
|
reader = new $Reader(reader);
|
|
47948
48780
|
return this.decode(reader, reader.uint32());
|
|
47949
48781
|
};
|
|
47950
48782
|
|
|
47951
48783
|
/**
|
|
47952
|
-
* Verifies a
|
|
48784
|
+
* Verifies a SearchSpacesRequest message.
|
|
47953
48785
|
* @function verify
|
|
47954
|
-
* @memberof google.chat.v1.
|
|
48786
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
48787
|
+
* @static
|
|
48788
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
48789
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
48790
|
+
*/
|
|
48791
|
+
SearchSpacesRequest.verify = function verify(message) {
|
|
48792
|
+
if (typeof message !== "object" || message === null)
|
|
48793
|
+
return "object expected";
|
|
48794
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
48795
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
48796
|
+
return "useAdminAccess: boolean expected";
|
|
48797
|
+
if (message.pageSize != null && message.hasOwnProperty("pageSize"))
|
|
48798
|
+
if (!$util.isInteger(message.pageSize))
|
|
48799
|
+
return "pageSize: integer expected";
|
|
48800
|
+
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
48801
|
+
if (!$util.isString(message.pageToken))
|
|
48802
|
+
return "pageToken: string expected";
|
|
48803
|
+
if (message.query != null && message.hasOwnProperty("query"))
|
|
48804
|
+
if (!$util.isString(message.query))
|
|
48805
|
+
return "query: string expected";
|
|
48806
|
+
if (message.orderBy != null && message.hasOwnProperty("orderBy"))
|
|
48807
|
+
if (!$util.isString(message.orderBy))
|
|
48808
|
+
return "orderBy: string expected";
|
|
48809
|
+
return null;
|
|
48810
|
+
};
|
|
48811
|
+
|
|
48812
|
+
/**
|
|
48813
|
+
* Creates a SearchSpacesRequest message from a plain object. Also converts values to their respective internal types.
|
|
48814
|
+
* @function fromObject
|
|
48815
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
48816
|
+
* @static
|
|
48817
|
+
* @param {Object.<string,*>} object Plain object
|
|
48818
|
+
* @returns {google.chat.v1.SearchSpacesRequest} SearchSpacesRequest
|
|
48819
|
+
*/
|
|
48820
|
+
SearchSpacesRequest.fromObject = function fromObject(object) {
|
|
48821
|
+
if (object instanceof $root.google.chat.v1.SearchSpacesRequest)
|
|
48822
|
+
return object;
|
|
48823
|
+
var message = new $root.google.chat.v1.SearchSpacesRequest();
|
|
48824
|
+
if (object.useAdminAccess != null)
|
|
48825
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
48826
|
+
if (object.pageSize != null)
|
|
48827
|
+
message.pageSize = object.pageSize | 0;
|
|
48828
|
+
if (object.pageToken != null)
|
|
48829
|
+
message.pageToken = String(object.pageToken);
|
|
48830
|
+
if (object.query != null)
|
|
48831
|
+
message.query = String(object.query);
|
|
48832
|
+
if (object.orderBy != null)
|
|
48833
|
+
message.orderBy = String(object.orderBy);
|
|
48834
|
+
return message;
|
|
48835
|
+
};
|
|
48836
|
+
|
|
48837
|
+
/**
|
|
48838
|
+
* Creates a plain object from a SearchSpacesRequest message. Also converts values to other types if specified.
|
|
48839
|
+
* @function toObject
|
|
48840
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
48841
|
+
* @static
|
|
48842
|
+
* @param {google.chat.v1.SearchSpacesRequest} message SearchSpacesRequest
|
|
48843
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
48844
|
+
* @returns {Object.<string,*>} Plain object
|
|
48845
|
+
*/
|
|
48846
|
+
SearchSpacesRequest.toObject = function toObject(message, options) {
|
|
48847
|
+
if (!options)
|
|
48848
|
+
options = {};
|
|
48849
|
+
var object = {};
|
|
48850
|
+
if (options.defaults) {
|
|
48851
|
+
object.useAdminAccess = false;
|
|
48852
|
+
object.pageSize = 0;
|
|
48853
|
+
object.pageToken = "";
|
|
48854
|
+
object.query = "";
|
|
48855
|
+
object.orderBy = "";
|
|
48856
|
+
}
|
|
48857
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
48858
|
+
object.useAdminAccess = message.useAdminAccess;
|
|
48859
|
+
if (message.pageSize != null && message.hasOwnProperty("pageSize"))
|
|
48860
|
+
object.pageSize = message.pageSize;
|
|
48861
|
+
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
48862
|
+
object.pageToken = message.pageToken;
|
|
48863
|
+
if (message.query != null && message.hasOwnProperty("query"))
|
|
48864
|
+
object.query = message.query;
|
|
48865
|
+
if (message.orderBy != null && message.hasOwnProperty("orderBy"))
|
|
48866
|
+
object.orderBy = message.orderBy;
|
|
48867
|
+
return object;
|
|
48868
|
+
};
|
|
48869
|
+
|
|
48870
|
+
/**
|
|
48871
|
+
* Converts this SearchSpacesRequest to JSON.
|
|
48872
|
+
* @function toJSON
|
|
48873
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
48874
|
+
* @instance
|
|
48875
|
+
* @returns {Object.<string,*>} JSON object
|
|
48876
|
+
*/
|
|
48877
|
+
SearchSpacesRequest.prototype.toJSON = function toJSON() {
|
|
48878
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
48879
|
+
};
|
|
48880
|
+
|
|
48881
|
+
/**
|
|
48882
|
+
* Gets the default type url for SearchSpacesRequest
|
|
48883
|
+
* @function getTypeUrl
|
|
48884
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
48885
|
+
* @static
|
|
48886
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
48887
|
+
* @returns {string} The default type url
|
|
48888
|
+
*/
|
|
48889
|
+
SearchSpacesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
48890
|
+
if (typeUrlPrefix === undefined) {
|
|
48891
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
48892
|
+
}
|
|
48893
|
+
return typeUrlPrefix + "/google.chat.v1.SearchSpacesRequest";
|
|
48894
|
+
};
|
|
48895
|
+
|
|
48896
|
+
return SearchSpacesRequest;
|
|
48897
|
+
})();
|
|
48898
|
+
|
|
48899
|
+
v1.SearchSpacesResponse = (function() {
|
|
48900
|
+
|
|
48901
|
+
/**
|
|
48902
|
+
* Properties of a SearchSpacesResponse.
|
|
48903
|
+
* @memberof google.chat.v1
|
|
48904
|
+
* @interface ISearchSpacesResponse
|
|
48905
|
+
* @property {Array.<google.chat.v1.ISpace>|null} [spaces] SearchSpacesResponse spaces
|
|
48906
|
+
* @property {string|null} [nextPageToken] SearchSpacesResponse nextPageToken
|
|
48907
|
+
* @property {number|null} [totalSize] SearchSpacesResponse totalSize
|
|
48908
|
+
*/
|
|
48909
|
+
|
|
48910
|
+
/**
|
|
48911
|
+
* Constructs a new SearchSpacesResponse.
|
|
48912
|
+
* @memberof google.chat.v1
|
|
48913
|
+
* @classdesc Represents a SearchSpacesResponse.
|
|
48914
|
+
* @implements ISearchSpacesResponse
|
|
48915
|
+
* @constructor
|
|
48916
|
+
* @param {google.chat.v1.ISearchSpacesResponse=} [properties] Properties to set
|
|
48917
|
+
*/
|
|
48918
|
+
function SearchSpacesResponse(properties) {
|
|
48919
|
+
this.spaces = [];
|
|
48920
|
+
if (properties)
|
|
48921
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
48922
|
+
if (properties[keys[i]] != null)
|
|
48923
|
+
this[keys[i]] = properties[keys[i]];
|
|
48924
|
+
}
|
|
48925
|
+
|
|
48926
|
+
/**
|
|
48927
|
+
* SearchSpacesResponse spaces.
|
|
48928
|
+
* @member {Array.<google.chat.v1.ISpace>} spaces
|
|
48929
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
48930
|
+
* @instance
|
|
48931
|
+
*/
|
|
48932
|
+
SearchSpacesResponse.prototype.spaces = $util.emptyArray;
|
|
48933
|
+
|
|
48934
|
+
/**
|
|
48935
|
+
* SearchSpacesResponse nextPageToken.
|
|
48936
|
+
* @member {string} nextPageToken
|
|
48937
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
48938
|
+
* @instance
|
|
48939
|
+
*/
|
|
48940
|
+
SearchSpacesResponse.prototype.nextPageToken = "";
|
|
48941
|
+
|
|
48942
|
+
/**
|
|
48943
|
+
* SearchSpacesResponse totalSize.
|
|
48944
|
+
* @member {number} totalSize
|
|
48945
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
48946
|
+
* @instance
|
|
48947
|
+
*/
|
|
48948
|
+
SearchSpacesResponse.prototype.totalSize = 0;
|
|
48949
|
+
|
|
48950
|
+
/**
|
|
48951
|
+
* Creates a new SearchSpacesResponse instance using the specified properties.
|
|
48952
|
+
* @function create
|
|
48953
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
48954
|
+
* @static
|
|
48955
|
+
* @param {google.chat.v1.ISearchSpacesResponse=} [properties] Properties to set
|
|
48956
|
+
* @returns {google.chat.v1.SearchSpacesResponse} SearchSpacesResponse instance
|
|
48957
|
+
*/
|
|
48958
|
+
SearchSpacesResponse.create = function create(properties) {
|
|
48959
|
+
return new SearchSpacesResponse(properties);
|
|
48960
|
+
};
|
|
48961
|
+
|
|
48962
|
+
/**
|
|
48963
|
+
* Encodes the specified SearchSpacesResponse message. Does not implicitly {@link google.chat.v1.SearchSpacesResponse.verify|verify} messages.
|
|
48964
|
+
* @function encode
|
|
48965
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
48966
|
+
* @static
|
|
48967
|
+
* @param {google.chat.v1.ISearchSpacesResponse} message SearchSpacesResponse message or plain object to encode
|
|
48968
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
48969
|
+
* @returns {$protobuf.Writer} Writer
|
|
48970
|
+
*/
|
|
48971
|
+
SearchSpacesResponse.encode = function encode(message, writer) {
|
|
48972
|
+
if (!writer)
|
|
48973
|
+
writer = $Writer.create();
|
|
48974
|
+
if (message.spaces != null && message.spaces.length)
|
|
48975
|
+
for (var i = 0; i < message.spaces.length; ++i)
|
|
48976
|
+
$root.google.chat.v1.Space.encode(message.spaces[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
48977
|
+
if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
|
|
48978
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
|
|
48979
|
+
if (message.totalSize != null && Object.hasOwnProperty.call(message, "totalSize"))
|
|
48980
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.totalSize);
|
|
48981
|
+
return writer;
|
|
48982
|
+
};
|
|
48983
|
+
|
|
48984
|
+
/**
|
|
48985
|
+
* Encodes the specified SearchSpacesResponse message, length delimited. Does not implicitly {@link google.chat.v1.SearchSpacesResponse.verify|verify} messages.
|
|
48986
|
+
* @function encodeDelimited
|
|
48987
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
48988
|
+
* @static
|
|
48989
|
+
* @param {google.chat.v1.ISearchSpacesResponse} message SearchSpacesResponse message or plain object to encode
|
|
48990
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
48991
|
+
* @returns {$protobuf.Writer} Writer
|
|
48992
|
+
*/
|
|
48993
|
+
SearchSpacesResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
48994
|
+
return this.encode(message, writer).ldelim();
|
|
48995
|
+
};
|
|
48996
|
+
|
|
48997
|
+
/**
|
|
48998
|
+
* Decodes a SearchSpacesResponse message from the specified reader or buffer.
|
|
48999
|
+
* @function decode
|
|
49000
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
49001
|
+
* @static
|
|
49002
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49003
|
+
* @param {number} [length] Message length if known beforehand
|
|
49004
|
+
* @returns {google.chat.v1.SearchSpacesResponse} SearchSpacesResponse
|
|
49005
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49006
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49007
|
+
*/
|
|
49008
|
+
SearchSpacesResponse.decode = function decode(reader, length) {
|
|
49009
|
+
if (!(reader instanceof $Reader))
|
|
49010
|
+
reader = $Reader.create(reader);
|
|
49011
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.SearchSpacesResponse();
|
|
49012
|
+
while (reader.pos < end) {
|
|
49013
|
+
var tag = reader.uint32();
|
|
49014
|
+
switch (tag >>> 3) {
|
|
49015
|
+
case 1: {
|
|
49016
|
+
if (!(message.spaces && message.spaces.length))
|
|
49017
|
+
message.spaces = [];
|
|
49018
|
+
message.spaces.push($root.google.chat.v1.Space.decode(reader, reader.uint32()));
|
|
49019
|
+
break;
|
|
49020
|
+
}
|
|
49021
|
+
case 2: {
|
|
49022
|
+
message.nextPageToken = reader.string();
|
|
49023
|
+
break;
|
|
49024
|
+
}
|
|
49025
|
+
case 3: {
|
|
49026
|
+
message.totalSize = reader.int32();
|
|
49027
|
+
break;
|
|
49028
|
+
}
|
|
49029
|
+
default:
|
|
49030
|
+
reader.skipType(tag & 7);
|
|
49031
|
+
break;
|
|
49032
|
+
}
|
|
49033
|
+
}
|
|
49034
|
+
return message;
|
|
49035
|
+
};
|
|
49036
|
+
|
|
49037
|
+
/**
|
|
49038
|
+
* Decodes a SearchSpacesResponse message from the specified reader or buffer, length delimited.
|
|
49039
|
+
* @function decodeDelimited
|
|
49040
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
49041
|
+
* @static
|
|
49042
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49043
|
+
* @returns {google.chat.v1.SearchSpacesResponse} SearchSpacesResponse
|
|
49044
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49045
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49046
|
+
*/
|
|
49047
|
+
SearchSpacesResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
49048
|
+
if (!(reader instanceof $Reader))
|
|
49049
|
+
reader = new $Reader(reader);
|
|
49050
|
+
return this.decode(reader, reader.uint32());
|
|
49051
|
+
};
|
|
49052
|
+
|
|
49053
|
+
/**
|
|
49054
|
+
* Verifies a SearchSpacesResponse message.
|
|
49055
|
+
* @function verify
|
|
49056
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
49057
|
+
* @static
|
|
49058
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
49059
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
49060
|
+
*/
|
|
49061
|
+
SearchSpacesResponse.verify = function verify(message) {
|
|
49062
|
+
if (typeof message !== "object" || message === null)
|
|
49063
|
+
return "object expected";
|
|
49064
|
+
if (message.spaces != null && message.hasOwnProperty("spaces")) {
|
|
49065
|
+
if (!Array.isArray(message.spaces))
|
|
49066
|
+
return "spaces: array expected";
|
|
49067
|
+
for (var i = 0; i < message.spaces.length; ++i) {
|
|
49068
|
+
var error = $root.google.chat.v1.Space.verify(message.spaces[i]);
|
|
49069
|
+
if (error)
|
|
49070
|
+
return "spaces." + error;
|
|
49071
|
+
}
|
|
49072
|
+
}
|
|
49073
|
+
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
|
|
49074
|
+
if (!$util.isString(message.nextPageToken))
|
|
49075
|
+
return "nextPageToken: string expected";
|
|
49076
|
+
if (message.totalSize != null && message.hasOwnProperty("totalSize"))
|
|
49077
|
+
if (!$util.isInteger(message.totalSize))
|
|
49078
|
+
return "totalSize: integer expected";
|
|
49079
|
+
return null;
|
|
49080
|
+
};
|
|
49081
|
+
|
|
49082
|
+
/**
|
|
49083
|
+
* Creates a SearchSpacesResponse message from a plain object. Also converts values to their respective internal types.
|
|
49084
|
+
* @function fromObject
|
|
49085
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
49086
|
+
* @static
|
|
49087
|
+
* @param {Object.<string,*>} object Plain object
|
|
49088
|
+
* @returns {google.chat.v1.SearchSpacesResponse} SearchSpacesResponse
|
|
49089
|
+
*/
|
|
49090
|
+
SearchSpacesResponse.fromObject = function fromObject(object) {
|
|
49091
|
+
if (object instanceof $root.google.chat.v1.SearchSpacesResponse)
|
|
49092
|
+
return object;
|
|
49093
|
+
var message = new $root.google.chat.v1.SearchSpacesResponse();
|
|
49094
|
+
if (object.spaces) {
|
|
49095
|
+
if (!Array.isArray(object.spaces))
|
|
49096
|
+
throw TypeError(".google.chat.v1.SearchSpacesResponse.spaces: array expected");
|
|
49097
|
+
message.spaces = [];
|
|
49098
|
+
for (var i = 0; i < object.spaces.length; ++i) {
|
|
49099
|
+
if (typeof object.spaces[i] !== "object")
|
|
49100
|
+
throw TypeError(".google.chat.v1.SearchSpacesResponse.spaces: object expected");
|
|
49101
|
+
message.spaces[i] = $root.google.chat.v1.Space.fromObject(object.spaces[i]);
|
|
49102
|
+
}
|
|
49103
|
+
}
|
|
49104
|
+
if (object.nextPageToken != null)
|
|
49105
|
+
message.nextPageToken = String(object.nextPageToken);
|
|
49106
|
+
if (object.totalSize != null)
|
|
49107
|
+
message.totalSize = object.totalSize | 0;
|
|
49108
|
+
return message;
|
|
49109
|
+
};
|
|
49110
|
+
|
|
49111
|
+
/**
|
|
49112
|
+
* Creates a plain object from a SearchSpacesResponse message. Also converts values to other types if specified.
|
|
49113
|
+
* @function toObject
|
|
49114
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
49115
|
+
* @static
|
|
49116
|
+
* @param {google.chat.v1.SearchSpacesResponse} message SearchSpacesResponse
|
|
49117
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
49118
|
+
* @returns {Object.<string,*>} Plain object
|
|
49119
|
+
*/
|
|
49120
|
+
SearchSpacesResponse.toObject = function toObject(message, options) {
|
|
49121
|
+
if (!options)
|
|
49122
|
+
options = {};
|
|
49123
|
+
var object = {};
|
|
49124
|
+
if (options.arrays || options.defaults)
|
|
49125
|
+
object.spaces = [];
|
|
49126
|
+
if (options.defaults) {
|
|
49127
|
+
object.nextPageToken = "";
|
|
49128
|
+
object.totalSize = 0;
|
|
49129
|
+
}
|
|
49130
|
+
if (message.spaces && message.spaces.length) {
|
|
49131
|
+
object.spaces = [];
|
|
49132
|
+
for (var j = 0; j < message.spaces.length; ++j)
|
|
49133
|
+
object.spaces[j] = $root.google.chat.v1.Space.toObject(message.spaces[j], options);
|
|
49134
|
+
}
|
|
49135
|
+
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
|
|
49136
|
+
object.nextPageToken = message.nextPageToken;
|
|
49137
|
+
if (message.totalSize != null && message.hasOwnProperty("totalSize"))
|
|
49138
|
+
object.totalSize = message.totalSize;
|
|
49139
|
+
return object;
|
|
49140
|
+
};
|
|
49141
|
+
|
|
49142
|
+
/**
|
|
49143
|
+
* Converts this SearchSpacesResponse to JSON.
|
|
49144
|
+
* @function toJSON
|
|
49145
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
49146
|
+
* @instance
|
|
49147
|
+
* @returns {Object.<string,*>} JSON object
|
|
49148
|
+
*/
|
|
49149
|
+
SearchSpacesResponse.prototype.toJSON = function toJSON() {
|
|
49150
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
49151
|
+
};
|
|
49152
|
+
|
|
49153
|
+
/**
|
|
49154
|
+
* Gets the default type url for SearchSpacesResponse
|
|
49155
|
+
* @function getTypeUrl
|
|
49156
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
49157
|
+
* @static
|
|
49158
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
49159
|
+
* @returns {string} The default type url
|
|
49160
|
+
*/
|
|
49161
|
+
SearchSpacesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
49162
|
+
if (typeUrlPrefix === undefined) {
|
|
49163
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
49164
|
+
}
|
|
49165
|
+
return typeUrlPrefix + "/google.chat.v1.SearchSpacesResponse";
|
|
49166
|
+
};
|
|
49167
|
+
|
|
49168
|
+
return SearchSpacesResponse;
|
|
49169
|
+
})();
|
|
49170
|
+
|
|
49171
|
+
v1.DeleteSpaceRequest = (function() {
|
|
49172
|
+
|
|
49173
|
+
/**
|
|
49174
|
+
* Properties of a DeleteSpaceRequest.
|
|
49175
|
+
* @memberof google.chat.v1
|
|
49176
|
+
* @interface IDeleteSpaceRequest
|
|
49177
|
+
* @property {string|null} [name] DeleteSpaceRequest name
|
|
49178
|
+
* @property {boolean|null} [useAdminAccess] DeleteSpaceRequest useAdminAccess
|
|
49179
|
+
*/
|
|
49180
|
+
|
|
49181
|
+
/**
|
|
49182
|
+
* Constructs a new DeleteSpaceRequest.
|
|
49183
|
+
* @memberof google.chat.v1
|
|
49184
|
+
* @classdesc Represents a DeleteSpaceRequest.
|
|
49185
|
+
* @implements IDeleteSpaceRequest
|
|
49186
|
+
* @constructor
|
|
49187
|
+
* @param {google.chat.v1.IDeleteSpaceRequest=} [properties] Properties to set
|
|
49188
|
+
*/
|
|
49189
|
+
function DeleteSpaceRequest(properties) {
|
|
49190
|
+
if (properties)
|
|
49191
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
49192
|
+
if (properties[keys[i]] != null)
|
|
49193
|
+
this[keys[i]] = properties[keys[i]];
|
|
49194
|
+
}
|
|
49195
|
+
|
|
49196
|
+
/**
|
|
49197
|
+
* DeleteSpaceRequest name.
|
|
49198
|
+
* @member {string} name
|
|
49199
|
+
* @memberof google.chat.v1.DeleteSpaceRequest
|
|
49200
|
+
* @instance
|
|
49201
|
+
*/
|
|
49202
|
+
DeleteSpaceRequest.prototype.name = "";
|
|
49203
|
+
|
|
49204
|
+
/**
|
|
49205
|
+
* DeleteSpaceRequest useAdminAccess.
|
|
49206
|
+
* @member {boolean} useAdminAccess
|
|
49207
|
+
* @memberof google.chat.v1.DeleteSpaceRequest
|
|
49208
|
+
* @instance
|
|
49209
|
+
*/
|
|
49210
|
+
DeleteSpaceRequest.prototype.useAdminAccess = false;
|
|
49211
|
+
|
|
49212
|
+
/**
|
|
49213
|
+
* Creates a new DeleteSpaceRequest instance using the specified properties.
|
|
49214
|
+
* @function create
|
|
49215
|
+
* @memberof google.chat.v1.DeleteSpaceRequest
|
|
49216
|
+
* @static
|
|
49217
|
+
* @param {google.chat.v1.IDeleteSpaceRequest=} [properties] Properties to set
|
|
49218
|
+
* @returns {google.chat.v1.DeleteSpaceRequest} DeleteSpaceRequest instance
|
|
49219
|
+
*/
|
|
49220
|
+
DeleteSpaceRequest.create = function create(properties) {
|
|
49221
|
+
return new DeleteSpaceRequest(properties);
|
|
49222
|
+
};
|
|
49223
|
+
|
|
49224
|
+
/**
|
|
49225
|
+
* Encodes the specified DeleteSpaceRequest message. Does not implicitly {@link google.chat.v1.DeleteSpaceRequest.verify|verify} messages.
|
|
49226
|
+
* @function encode
|
|
49227
|
+
* @memberof google.chat.v1.DeleteSpaceRequest
|
|
49228
|
+
* @static
|
|
49229
|
+
* @param {google.chat.v1.IDeleteSpaceRequest} message DeleteSpaceRequest message or plain object to encode
|
|
49230
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49231
|
+
* @returns {$protobuf.Writer} Writer
|
|
49232
|
+
*/
|
|
49233
|
+
DeleteSpaceRequest.encode = function encode(message, writer) {
|
|
49234
|
+
if (!writer)
|
|
49235
|
+
writer = $Writer.create();
|
|
49236
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
49237
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
49238
|
+
if (message.useAdminAccess != null && Object.hasOwnProperty.call(message, "useAdminAccess"))
|
|
49239
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.useAdminAccess);
|
|
49240
|
+
return writer;
|
|
49241
|
+
};
|
|
49242
|
+
|
|
49243
|
+
/**
|
|
49244
|
+
* Encodes the specified DeleteSpaceRequest message, length delimited. Does not implicitly {@link google.chat.v1.DeleteSpaceRequest.verify|verify} messages.
|
|
49245
|
+
* @function encodeDelimited
|
|
49246
|
+
* @memberof google.chat.v1.DeleteSpaceRequest
|
|
49247
|
+
* @static
|
|
49248
|
+
* @param {google.chat.v1.IDeleteSpaceRequest} message DeleteSpaceRequest message or plain object to encode
|
|
49249
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49250
|
+
* @returns {$protobuf.Writer} Writer
|
|
49251
|
+
*/
|
|
49252
|
+
DeleteSpaceRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
49253
|
+
return this.encode(message, writer).ldelim();
|
|
49254
|
+
};
|
|
49255
|
+
|
|
49256
|
+
/**
|
|
49257
|
+
* Decodes a DeleteSpaceRequest message from the specified reader or buffer.
|
|
49258
|
+
* @function decode
|
|
49259
|
+
* @memberof google.chat.v1.DeleteSpaceRequest
|
|
49260
|
+
* @static
|
|
49261
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49262
|
+
* @param {number} [length] Message length if known beforehand
|
|
49263
|
+
* @returns {google.chat.v1.DeleteSpaceRequest} DeleteSpaceRequest
|
|
49264
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49265
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49266
|
+
*/
|
|
49267
|
+
DeleteSpaceRequest.decode = function decode(reader, length) {
|
|
49268
|
+
if (!(reader instanceof $Reader))
|
|
49269
|
+
reader = $Reader.create(reader);
|
|
49270
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.DeleteSpaceRequest();
|
|
49271
|
+
while (reader.pos < end) {
|
|
49272
|
+
var tag = reader.uint32();
|
|
49273
|
+
switch (tag >>> 3) {
|
|
49274
|
+
case 1: {
|
|
49275
|
+
message.name = reader.string();
|
|
49276
|
+
break;
|
|
49277
|
+
}
|
|
49278
|
+
case 2: {
|
|
49279
|
+
message.useAdminAccess = reader.bool();
|
|
49280
|
+
break;
|
|
49281
|
+
}
|
|
49282
|
+
default:
|
|
49283
|
+
reader.skipType(tag & 7);
|
|
49284
|
+
break;
|
|
49285
|
+
}
|
|
49286
|
+
}
|
|
49287
|
+
return message;
|
|
49288
|
+
};
|
|
49289
|
+
|
|
49290
|
+
/**
|
|
49291
|
+
* Decodes a DeleteSpaceRequest message from the specified reader or buffer, length delimited.
|
|
49292
|
+
* @function decodeDelimited
|
|
49293
|
+
* @memberof google.chat.v1.DeleteSpaceRequest
|
|
49294
|
+
* @static
|
|
49295
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49296
|
+
* @returns {google.chat.v1.DeleteSpaceRequest} DeleteSpaceRequest
|
|
49297
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49298
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49299
|
+
*/
|
|
49300
|
+
DeleteSpaceRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
49301
|
+
if (!(reader instanceof $Reader))
|
|
49302
|
+
reader = new $Reader(reader);
|
|
49303
|
+
return this.decode(reader, reader.uint32());
|
|
49304
|
+
};
|
|
49305
|
+
|
|
49306
|
+
/**
|
|
49307
|
+
* Verifies a DeleteSpaceRequest message.
|
|
49308
|
+
* @function verify
|
|
49309
|
+
* @memberof google.chat.v1.DeleteSpaceRequest
|
|
47955
49310
|
* @static
|
|
47956
49311
|
* @param {Object.<string,*>} message Plain object to verify
|
|
47957
49312
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
@@ -47962,6 +49317,9 @@
|
|
|
47962
49317
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
47963
49318
|
if (!$util.isString(message.name))
|
|
47964
49319
|
return "name: string expected";
|
|
49320
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
49321
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
49322
|
+
return "useAdminAccess: boolean expected";
|
|
47965
49323
|
return null;
|
|
47966
49324
|
};
|
|
47967
49325
|
|
|
@@ -47979,6 +49337,8 @@
|
|
|
47979
49337
|
var message = new $root.google.chat.v1.DeleteSpaceRequest();
|
|
47980
49338
|
if (object.name != null)
|
|
47981
49339
|
message.name = String(object.name);
|
|
49340
|
+
if (object.useAdminAccess != null)
|
|
49341
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
47982
49342
|
return message;
|
|
47983
49343
|
};
|
|
47984
49344
|
|
|
@@ -47995,10 +49355,14 @@
|
|
|
47995
49355
|
if (!options)
|
|
47996
49356
|
options = {};
|
|
47997
49357
|
var object = {};
|
|
47998
|
-
if (options.defaults)
|
|
49358
|
+
if (options.defaults) {
|
|
47999
49359
|
object.name = "";
|
|
49360
|
+
object.useAdminAccess = false;
|
|
49361
|
+
}
|
|
48000
49362
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
48001
49363
|
object.name = message.name;
|
|
49364
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
49365
|
+
object.useAdminAccess = message.useAdminAccess;
|
|
48002
49366
|
return object;
|
|
48003
49367
|
};
|
|
48004
49368
|
|