@google-apps/chat 0.8.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 +7 -0
- package/README.md +1 -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 +414 -0
- package/build/protos/protos.js +1083 -11
- package/build/protos/protos.json +123 -0
- 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
|
@@ -30557,6 +30557,39 @@
|
|
|
30557
30557
|
* @variation 2
|
|
30558
30558
|
*/
|
|
30559
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
|
+
|
|
30560
30593
|
/**
|
|
30561
30594
|
* Callback as used by {@link google.chat.v1.ChatService|getSpace}.
|
|
30562
30595
|
* @memberof google.chat.v1.ChatService
|
|
@@ -31638,6 +31671,7 @@
|
|
|
31638
31671
|
* @interface ICreateMembershipRequest
|
|
31639
31672
|
* @property {string|null} [parent] CreateMembershipRequest parent
|
|
31640
31673
|
* @property {google.chat.v1.IMembership|null} [membership] CreateMembershipRequest membership
|
|
31674
|
+
* @property {boolean|null} [useAdminAccess] CreateMembershipRequest useAdminAccess
|
|
31641
31675
|
*/
|
|
31642
31676
|
|
|
31643
31677
|
/**
|
|
@@ -31671,6 +31705,14 @@
|
|
|
31671
31705
|
*/
|
|
31672
31706
|
CreateMembershipRequest.prototype.membership = null;
|
|
31673
31707
|
|
|
31708
|
+
/**
|
|
31709
|
+
* CreateMembershipRequest useAdminAccess.
|
|
31710
|
+
* @member {boolean} useAdminAccess
|
|
31711
|
+
* @memberof google.chat.v1.CreateMembershipRequest
|
|
31712
|
+
* @instance
|
|
31713
|
+
*/
|
|
31714
|
+
CreateMembershipRequest.prototype.useAdminAccess = false;
|
|
31715
|
+
|
|
31674
31716
|
/**
|
|
31675
31717
|
* Creates a new CreateMembershipRequest instance using the specified properties.
|
|
31676
31718
|
* @function create
|
|
@@ -31699,6 +31741,8 @@
|
|
|
31699
31741
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
|
|
31700
31742
|
if (message.membership != null && Object.hasOwnProperty.call(message, "membership"))
|
|
31701
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);
|
|
31702
31746
|
return writer;
|
|
31703
31747
|
};
|
|
31704
31748
|
|
|
@@ -31741,6 +31785,10 @@
|
|
|
31741
31785
|
message.membership = $root.google.chat.v1.Membership.decode(reader, reader.uint32());
|
|
31742
31786
|
break;
|
|
31743
31787
|
}
|
|
31788
|
+
case 5: {
|
|
31789
|
+
message.useAdminAccess = reader.bool();
|
|
31790
|
+
break;
|
|
31791
|
+
}
|
|
31744
31792
|
default:
|
|
31745
31793
|
reader.skipType(tag & 7);
|
|
31746
31794
|
break;
|
|
@@ -31784,6 +31832,9 @@
|
|
|
31784
31832
|
if (error)
|
|
31785
31833
|
return "membership." + error;
|
|
31786
31834
|
}
|
|
31835
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
31836
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
31837
|
+
return "useAdminAccess: boolean expected";
|
|
31787
31838
|
return null;
|
|
31788
31839
|
};
|
|
31789
31840
|
|
|
@@ -31806,6 +31857,8 @@
|
|
|
31806
31857
|
throw TypeError(".google.chat.v1.CreateMembershipRequest.membership: object expected");
|
|
31807
31858
|
message.membership = $root.google.chat.v1.Membership.fromObject(object.membership);
|
|
31808
31859
|
}
|
|
31860
|
+
if (object.useAdminAccess != null)
|
|
31861
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
31809
31862
|
return message;
|
|
31810
31863
|
};
|
|
31811
31864
|
|
|
@@ -31825,11 +31878,14 @@
|
|
|
31825
31878
|
if (options.defaults) {
|
|
31826
31879
|
object.parent = "";
|
|
31827
31880
|
object.membership = null;
|
|
31881
|
+
object.useAdminAccess = false;
|
|
31828
31882
|
}
|
|
31829
31883
|
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
31830
31884
|
object.parent = message.parent;
|
|
31831
31885
|
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
31832
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;
|
|
31833
31889
|
return object;
|
|
31834
31890
|
};
|
|
31835
31891
|
|
|
@@ -31870,6 +31926,7 @@
|
|
|
31870
31926
|
* @interface IUpdateMembershipRequest
|
|
31871
31927
|
* @property {google.chat.v1.IMembership|null} [membership] UpdateMembershipRequest membership
|
|
31872
31928
|
* @property {google.protobuf.IFieldMask|null} [updateMask] UpdateMembershipRequest updateMask
|
|
31929
|
+
* @property {boolean|null} [useAdminAccess] UpdateMembershipRequest useAdminAccess
|
|
31873
31930
|
*/
|
|
31874
31931
|
|
|
31875
31932
|
/**
|
|
@@ -31903,6 +31960,14 @@
|
|
|
31903
31960
|
*/
|
|
31904
31961
|
UpdateMembershipRequest.prototype.updateMask = null;
|
|
31905
31962
|
|
|
31963
|
+
/**
|
|
31964
|
+
* UpdateMembershipRequest useAdminAccess.
|
|
31965
|
+
* @member {boolean} useAdminAccess
|
|
31966
|
+
* @memberof google.chat.v1.UpdateMembershipRequest
|
|
31967
|
+
* @instance
|
|
31968
|
+
*/
|
|
31969
|
+
UpdateMembershipRequest.prototype.useAdminAccess = false;
|
|
31970
|
+
|
|
31906
31971
|
/**
|
|
31907
31972
|
* Creates a new UpdateMembershipRequest instance using the specified properties.
|
|
31908
31973
|
* @function create
|
|
@@ -31931,6 +31996,8 @@
|
|
|
31931
31996
|
$root.google.chat.v1.Membership.encode(message.membership, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
31932
31997
|
if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
|
|
31933
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);
|
|
31934
32001
|
return writer;
|
|
31935
32002
|
};
|
|
31936
32003
|
|
|
@@ -31973,6 +32040,10 @@
|
|
|
31973
32040
|
message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
|
|
31974
32041
|
break;
|
|
31975
32042
|
}
|
|
32043
|
+
case 3: {
|
|
32044
|
+
message.useAdminAccess = reader.bool();
|
|
32045
|
+
break;
|
|
32046
|
+
}
|
|
31976
32047
|
default:
|
|
31977
32048
|
reader.skipType(tag & 7);
|
|
31978
32049
|
break;
|
|
@@ -32018,6 +32089,9 @@
|
|
|
32018
32089
|
if (error)
|
|
32019
32090
|
return "updateMask." + error;
|
|
32020
32091
|
}
|
|
32092
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
32093
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
32094
|
+
return "useAdminAccess: boolean expected";
|
|
32021
32095
|
return null;
|
|
32022
32096
|
};
|
|
32023
32097
|
|
|
@@ -32043,6 +32117,8 @@
|
|
|
32043
32117
|
throw TypeError(".google.chat.v1.UpdateMembershipRequest.updateMask: object expected");
|
|
32044
32118
|
message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
|
|
32045
32119
|
}
|
|
32120
|
+
if (object.useAdminAccess != null)
|
|
32121
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
32046
32122
|
return message;
|
|
32047
32123
|
};
|
|
32048
32124
|
|
|
@@ -32062,11 +32138,14 @@
|
|
|
32062
32138
|
if (options.defaults) {
|
|
32063
32139
|
object.membership = null;
|
|
32064
32140
|
object.updateMask = null;
|
|
32141
|
+
object.useAdminAccess = false;
|
|
32065
32142
|
}
|
|
32066
32143
|
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
32067
32144
|
object.membership = $root.google.chat.v1.Membership.toObject(message.membership, options);
|
|
32068
32145
|
if (message.updateMask != null && message.hasOwnProperty("updateMask"))
|
|
32069
32146
|
object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
|
|
32147
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
32148
|
+
object.useAdminAccess = message.useAdminAccess;
|
|
32070
32149
|
return object;
|
|
32071
32150
|
};
|
|
32072
32151
|
|
|
@@ -32111,6 +32190,7 @@
|
|
|
32111
32190
|
* @property {string|null} [filter] ListMembershipsRequest filter
|
|
32112
32191
|
* @property {boolean|null} [showGroups] ListMembershipsRequest showGroups
|
|
32113
32192
|
* @property {boolean|null} [showInvited] ListMembershipsRequest showInvited
|
|
32193
|
+
* @property {boolean|null} [useAdminAccess] ListMembershipsRequest useAdminAccess
|
|
32114
32194
|
*/
|
|
32115
32195
|
|
|
32116
32196
|
/**
|
|
@@ -32176,6 +32256,14 @@
|
|
|
32176
32256
|
*/
|
|
32177
32257
|
ListMembershipsRequest.prototype.showInvited = false;
|
|
32178
32258
|
|
|
32259
|
+
/**
|
|
32260
|
+
* ListMembershipsRequest useAdminAccess.
|
|
32261
|
+
* @member {boolean} useAdminAccess
|
|
32262
|
+
* @memberof google.chat.v1.ListMembershipsRequest
|
|
32263
|
+
* @instance
|
|
32264
|
+
*/
|
|
32265
|
+
ListMembershipsRequest.prototype.useAdminAccess = false;
|
|
32266
|
+
|
|
32179
32267
|
/**
|
|
32180
32268
|
* Creates a new ListMembershipsRequest instance using the specified properties.
|
|
32181
32269
|
* @function create
|
|
@@ -32212,6 +32300,8 @@
|
|
|
32212
32300
|
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.showGroups);
|
|
32213
32301
|
if (message.showInvited != null && Object.hasOwnProperty.call(message, "showInvited"))
|
|
32214
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);
|
|
32215
32305
|
return writer;
|
|
32216
32306
|
};
|
|
32217
32307
|
|
|
@@ -32270,6 +32360,10 @@
|
|
|
32270
32360
|
message.showInvited = reader.bool();
|
|
32271
32361
|
break;
|
|
32272
32362
|
}
|
|
32363
|
+
case 8: {
|
|
32364
|
+
message.useAdminAccess = reader.bool();
|
|
32365
|
+
break;
|
|
32366
|
+
}
|
|
32273
32367
|
default:
|
|
32274
32368
|
reader.skipType(tag & 7);
|
|
32275
32369
|
break;
|
|
@@ -32323,6 +32417,9 @@
|
|
|
32323
32417
|
if (message.showInvited != null && message.hasOwnProperty("showInvited"))
|
|
32324
32418
|
if (typeof message.showInvited !== "boolean")
|
|
32325
32419
|
return "showInvited: boolean expected";
|
|
32420
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
32421
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
32422
|
+
return "useAdminAccess: boolean expected";
|
|
32326
32423
|
return null;
|
|
32327
32424
|
};
|
|
32328
32425
|
|
|
@@ -32350,6 +32447,8 @@
|
|
|
32350
32447
|
message.showGroups = Boolean(object.showGroups);
|
|
32351
32448
|
if (object.showInvited != null)
|
|
32352
32449
|
message.showInvited = Boolean(object.showInvited);
|
|
32450
|
+
if (object.useAdminAccess != null)
|
|
32451
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
32353
32452
|
return message;
|
|
32354
32453
|
};
|
|
32355
32454
|
|
|
@@ -32373,6 +32472,7 @@
|
|
|
32373
32472
|
object.filter = "";
|
|
32374
32473
|
object.showGroups = false;
|
|
32375
32474
|
object.showInvited = false;
|
|
32475
|
+
object.useAdminAccess = false;
|
|
32376
32476
|
}
|
|
32377
32477
|
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
32378
32478
|
object.parent = message.parent;
|
|
@@ -32386,6 +32486,8 @@
|
|
|
32386
32486
|
object.showGroups = message.showGroups;
|
|
32387
32487
|
if (message.showInvited != null && message.hasOwnProperty("showInvited"))
|
|
32388
32488
|
object.showInvited = message.showInvited;
|
|
32489
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
32490
|
+
object.useAdminAccess = message.useAdminAccess;
|
|
32389
32491
|
return object;
|
|
32390
32492
|
};
|
|
32391
32493
|
|
|
@@ -32673,6 +32775,7 @@
|
|
|
32673
32775
|
* @memberof google.chat.v1
|
|
32674
32776
|
* @interface IGetMembershipRequest
|
|
32675
32777
|
* @property {string|null} [name] GetMembershipRequest name
|
|
32778
|
+
* @property {boolean|null} [useAdminAccess] GetMembershipRequest useAdminAccess
|
|
32676
32779
|
*/
|
|
32677
32780
|
|
|
32678
32781
|
/**
|
|
@@ -32698,6 +32801,14 @@
|
|
|
32698
32801
|
*/
|
|
32699
32802
|
GetMembershipRequest.prototype.name = "";
|
|
32700
32803
|
|
|
32804
|
+
/**
|
|
32805
|
+
* GetMembershipRequest useAdminAccess.
|
|
32806
|
+
* @member {boolean} useAdminAccess
|
|
32807
|
+
* @memberof google.chat.v1.GetMembershipRequest
|
|
32808
|
+
* @instance
|
|
32809
|
+
*/
|
|
32810
|
+
GetMembershipRequest.prototype.useAdminAccess = false;
|
|
32811
|
+
|
|
32701
32812
|
/**
|
|
32702
32813
|
* Creates a new GetMembershipRequest instance using the specified properties.
|
|
32703
32814
|
* @function create
|
|
@@ -32724,6 +32835,8 @@
|
|
|
32724
32835
|
writer = $Writer.create();
|
|
32725
32836
|
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
32726
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);
|
|
32727
32840
|
return writer;
|
|
32728
32841
|
};
|
|
32729
32842
|
|
|
@@ -32762,6 +32875,10 @@
|
|
|
32762
32875
|
message.name = reader.string();
|
|
32763
32876
|
break;
|
|
32764
32877
|
}
|
|
32878
|
+
case 3: {
|
|
32879
|
+
message.useAdminAccess = reader.bool();
|
|
32880
|
+
break;
|
|
32881
|
+
}
|
|
32765
32882
|
default:
|
|
32766
32883
|
reader.skipType(tag & 7);
|
|
32767
32884
|
break;
|
|
@@ -32800,6 +32917,9 @@
|
|
|
32800
32917
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
32801
32918
|
if (!$util.isString(message.name))
|
|
32802
32919
|
return "name: string expected";
|
|
32920
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
32921
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
32922
|
+
return "useAdminAccess: boolean expected";
|
|
32803
32923
|
return null;
|
|
32804
32924
|
};
|
|
32805
32925
|
|
|
@@ -32817,6 +32937,8 @@
|
|
|
32817
32937
|
var message = new $root.google.chat.v1.GetMembershipRequest();
|
|
32818
32938
|
if (object.name != null)
|
|
32819
32939
|
message.name = String(object.name);
|
|
32940
|
+
if (object.useAdminAccess != null)
|
|
32941
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
32820
32942
|
return message;
|
|
32821
32943
|
};
|
|
32822
32944
|
|
|
@@ -32833,10 +32955,14 @@
|
|
|
32833
32955
|
if (!options)
|
|
32834
32956
|
options = {};
|
|
32835
32957
|
var object = {};
|
|
32836
|
-
if (options.defaults)
|
|
32958
|
+
if (options.defaults) {
|
|
32837
32959
|
object.name = "";
|
|
32960
|
+
object.useAdminAccess = false;
|
|
32961
|
+
}
|
|
32838
32962
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
32839
32963
|
object.name = message.name;
|
|
32964
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
32965
|
+
object.useAdminAccess = message.useAdminAccess;
|
|
32840
32966
|
return object;
|
|
32841
32967
|
};
|
|
32842
32968
|
|
|
@@ -32876,6 +33002,7 @@
|
|
|
32876
33002
|
* @memberof google.chat.v1
|
|
32877
33003
|
* @interface IDeleteMembershipRequest
|
|
32878
33004
|
* @property {string|null} [name] DeleteMembershipRequest name
|
|
33005
|
+
* @property {boolean|null} [useAdminAccess] DeleteMembershipRequest useAdminAccess
|
|
32879
33006
|
*/
|
|
32880
33007
|
|
|
32881
33008
|
/**
|
|
@@ -32901,6 +33028,14 @@
|
|
|
32901
33028
|
*/
|
|
32902
33029
|
DeleteMembershipRequest.prototype.name = "";
|
|
32903
33030
|
|
|
33031
|
+
/**
|
|
33032
|
+
* DeleteMembershipRequest useAdminAccess.
|
|
33033
|
+
* @member {boolean} useAdminAccess
|
|
33034
|
+
* @memberof google.chat.v1.DeleteMembershipRequest
|
|
33035
|
+
* @instance
|
|
33036
|
+
*/
|
|
33037
|
+
DeleteMembershipRequest.prototype.useAdminAccess = false;
|
|
33038
|
+
|
|
32904
33039
|
/**
|
|
32905
33040
|
* Creates a new DeleteMembershipRequest instance using the specified properties.
|
|
32906
33041
|
* @function create
|
|
@@ -32927,6 +33062,8 @@
|
|
|
32927
33062
|
writer = $Writer.create();
|
|
32928
33063
|
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
32929
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);
|
|
32930
33067
|
return writer;
|
|
32931
33068
|
};
|
|
32932
33069
|
|
|
@@ -32965,6 +33102,10 @@
|
|
|
32965
33102
|
message.name = reader.string();
|
|
32966
33103
|
break;
|
|
32967
33104
|
}
|
|
33105
|
+
case 2: {
|
|
33106
|
+
message.useAdminAccess = reader.bool();
|
|
33107
|
+
break;
|
|
33108
|
+
}
|
|
32968
33109
|
default:
|
|
32969
33110
|
reader.skipType(tag & 7);
|
|
32970
33111
|
break;
|
|
@@ -33003,6 +33144,9 @@
|
|
|
33003
33144
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
33004
33145
|
if (!$util.isString(message.name))
|
|
33005
33146
|
return "name: string expected";
|
|
33147
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
33148
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
33149
|
+
return "useAdminAccess: boolean expected";
|
|
33006
33150
|
return null;
|
|
33007
33151
|
};
|
|
33008
33152
|
|
|
@@ -33020,6 +33164,8 @@
|
|
|
33020
33164
|
var message = new $root.google.chat.v1.DeleteMembershipRequest();
|
|
33021
33165
|
if (object.name != null)
|
|
33022
33166
|
message.name = String(object.name);
|
|
33167
|
+
if (object.useAdminAccess != null)
|
|
33168
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
33023
33169
|
return message;
|
|
33024
33170
|
};
|
|
33025
33171
|
|
|
@@ -33036,10 +33182,14 @@
|
|
|
33036
33182
|
if (!options)
|
|
33037
33183
|
options = {};
|
|
33038
33184
|
var object = {};
|
|
33039
|
-
if (options.defaults)
|
|
33185
|
+
if (options.defaults) {
|
|
33040
33186
|
object.name = "";
|
|
33187
|
+
object.useAdminAccess = false;
|
|
33188
|
+
}
|
|
33041
33189
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
33042
33190
|
object.name = message.name;
|
|
33191
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
33192
|
+
object.useAdminAccess = message.useAdminAccess;
|
|
33043
33193
|
return object;
|
|
33044
33194
|
};
|
|
33045
33195
|
|
|
@@ -45572,7 +45722,9 @@
|
|
|
45572
45722
|
* @property {google.chat.v1.HistoryState|null} [spaceHistoryState] Space spaceHistoryState
|
|
45573
45723
|
* @property {boolean|null} [importMode] Space importMode
|
|
45574
45724
|
* @property {google.protobuf.ITimestamp|null} [createTime] Space createTime
|
|
45725
|
+
* @property {google.protobuf.ITimestamp|null} [lastActiveTime] Space lastActiveTime
|
|
45575
45726
|
* @property {boolean|null} [adminInstalled] Space adminInstalled
|
|
45727
|
+
* @property {google.chat.v1.Space.IMembershipCount|null} [membershipCount] Space membershipCount
|
|
45576
45728
|
* @property {google.chat.v1.Space.IAccessSettings|null} [accessSettings] Space accessSettings
|
|
45577
45729
|
* @property {string|null} [spaceUri] Space spaceUri
|
|
45578
45730
|
*/
|
|
@@ -45688,6 +45840,14 @@
|
|
|
45688
45840
|
*/
|
|
45689
45841
|
Space.prototype.createTime = null;
|
|
45690
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
|
+
|
|
45691
45851
|
/**
|
|
45692
45852
|
* Space adminInstalled.
|
|
45693
45853
|
* @member {boolean} adminInstalled
|
|
@@ -45696,6 +45856,14 @@
|
|
|
45696
45856
|
*/
|
|
45697
45857
|
Space.prototype.adminInstalled = false;
|
|
45698
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
|
+
|
|
45699
45867
|
/**
|
|
45700
45868
|
* Space accessSettings.
|
|
45701
45869
|
* @member {google.chat.v1.Space.IAccessSettings|null|undefined} accessSettings
|
|
@@ -45760,8 +45928,12 @@
|
|
|
45760
45928
|
writer.uint32(/* id 16, wireType 0 =*/128).bool(message.importMode);
|
|
45761
45929
|
if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
|
|
45762
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();
|
|
45763
45933
|
if (message.adminInstalled != null && Object.hasOwnProperty.call(message, "adminInstalled"))
|
|
45764
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();
|
|
45765
45937
|
if (message.accessSettings != null && Object.hasOwnProperty.call(message, "accessSettings"))
|
|
45766
45938
|
$root.google.chat.v1.Space.AccessSettings.encode(message.accessSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
|
|
45767
45939
|
if (message.spaceUri != null && Object.hasOwnProperty.call(message, "spaceUri"))
|
|
@@ -45848,10 +46020,18 @@
|
|
|
45848
46020
|
message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
45849
46021
|
break;
|
|
45850
46022
|
}
|
|
46023
|
+
case 18: {
|
|
46024
|
+
message.lastActiveTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
46025
|
+
break;
|
|
46026
|
+
}
|
|
45851
46027
|
case 19: {
|
|
45852
46028
|
message.adminInstalled = reader.bool();
|
|
45853
46029
|
break;
|
|
45854
46030
|
}
|
|
46031
|
+
case 20: {
|
|
46032
|
+
message.membershipCount = $root.google.chat.v1.Space.MembershipCount.decode(reader, reader.uint32());
|
|
46033
|
+
break;
|
|
46034
|
+
}
|
|
45855
46035
|
case 23: {
|
|
45856
46036
|
message.accessSettings = $root.google.chat.v1.Space.AccessSettings.decode(reader, reader.uint32());
|
|
45857
46037
|
break;
|
|
@@ -45961,9 +46141,19 @@
|
|
|
45961
46141
|
if (error)
|
|
45962
46142
|
return "createTime." + error;
|
|
45963
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
|
+
}
|
|
45964
46149
|
if (message.adminInstalled != null && message.hasOwnProperty("adminInstalled"))
|
|
45965
46150
|
if (typeof message.adminInstalled !== "boolean")
|
|
45966
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
|
+
}
|
|
45967
46157
|
if (message.accessSettings != null && message.hasOwnProperty("accessSettings")) {
|
|
45968
46158
|
var error = $root.google.chat.v1.Space.AccessSettings.verify(message.accessSettings);
|
|
45969
46159
|
if (error)
|
|
@@ -46097,8 +46287,18 @@
|
|
|
46097
46287
|
throw TypeError(".google.chat.v1.Space.createTime: object expected");
|
|
46098
46288
|
message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
|
|
46099
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
|
+
}
|
|
46100
46295
|
if (object.adminInstalled != null)
|
|
46101
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
|
+
}
|
|
46102
46302
|
if (object.accessSettings != null) {
|
|
46103
46303
|
if (typeof object.accessSettings !== "object")
|
|
46104
46304
|
throw TypeError(".google.chat.v1.Space.accessSettings: object expected");
|
|
@@ -46135,7 +46335,9 @@
|
|
|
46135
46335
|
object.spaceHistoryState = options.enums === String ? "HISTORY_STATE_UNSPECIFIED" : 0;
|
|
46136
46336
|
object.importMode = false;
|
|
46137
46337
|
object.createTime = null;
|
|
46338
|
+
object.lastActiveTime = null;
|
|
46138
46339
|
object.adminInstalled = false;
|
|
46340
|
+
object.membershipCount = null;
|
|
46139
46341
|
object.accessSettings = null;
|
|
46140
46342
|
object.spaceUri = "";
|
|
46141
46343
|
}
|
|
@@ -46163,8 +46365,12 @@
|
|
|
46163
46365
|
object.importMode = message.importMode;
|
|
46164
46366
|
if (message.createTime != null && message.hasOwnProperty("createTime"))
|
|
46165
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);
|
|
46166
46370
|
if (message.adminInstalled != null && message.hasOwnProperty("adminInstalled"))
|
|
46167
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);
|
|
46168
46374
|
if (message.accessSettings != null && message.hasOwnProperty("accessSettings"))
|
|
46169
46375
|
object.accessSettings = $root.google.chat.v1.Space.AccessSettings.toObject(message.accessSettings, options);
|
|
46170
46376
|
if (message.spaceUri != null && message.hasOwnProperty("spaceUri"))
|
|
@@ -46477,6 +46683,233 @@
|
|
|
46477
46683
|
return SpaceDetails;
|
|
46478
46684
|
})();
|
|
46479
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
|
+
|
|
46480
46913
|
Space.AccessSettings = (function() {
|
|
46481
46914
|
|
|
46482
46915
|
/**
|
|
@@ -47484,6 +47917,7 @@
|
|
|
47484
47917
|
* @memberof google.chat.v1
|
|
47485
47918
|
* @interface IGetSpaceRequest
|
|
47486
47919
|
* @property {string|null} [name] GetSpaceRequest name
|
|
47920
|
+
* @property {boolean|null} [useAdminAccess] GetSpaceRequest useAdminAccess
|
|
47487
47921
|
*/
|
|
47488
47922
|
|
|
47489
47923
|
/**
|
|
@@ -47509,6 +47943,14 @@
|
|
|
47509
47943
|
*/
|
|
47510
47944
|
GetSpaceRequest.prototype.name = "";
|
|
47511
47945
|
|
|
47946
|
+
/**
|
|
47947
|
+
* GetSpaceRequest useAdminAccess.
|
|
47948
|
+
* @member {boolean} useAdminAccess
|
|
47949
|
+
* @memberof google.chat.v1.GetSpaceRequest
|
|
47950
|
+
* @instance
|
|
47951
|
+
*/
|
|
47952
|
+
GetSpaceRequest.prototype.useAdminAccess = false;
|
|
47953
|
+
|
|
47512
47954
|
/**
|
|
47513
47955
|
* Creates a new GetSpaceRequest instance using the specified properties.
|
|
47514
47956
|
* @function create
|
|
@@ -47535,6 +47977,8 @@
|
|
|
47535
47977
|
writer = $Writer.create();
|
|
47536
47978
|
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
47537
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);
|
|
47538
47982
|
return writer;
|
|
47539
47983
|
};
|
|
47540
47984
|
|
|
@@ -47573,6 +48017,10 @@
|
|
|
47573
48017
|
message.name = reader.string();
|
|
47574
48018
|
break;
|
|
47575
48019
|
}
|
|
48020
|
+
case 2: {
|
|
48021
|
+
message.useAdminAccess = reader.bool();
|
|
48022
|
+
break;
|
|
48023
|
+
}
|
|
47576
48024
|
default:
|
|
47577
48025
|
reader.skipType(tag & 7);
|
|
47578
48026
|
break;
|
|
@@ -47611,6 +48059,9 @@
|
|
|
47611
48059
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
47612
48060
|
if (!$util.isString(message.name))
|
|
47613
48061
|
return "name: string expected";
|
|
48062
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
48063
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
48064
|
+
return "useAdminAccess: boolean expected";
|
|
47614
48065
|
return null;
|
|
47615
48066
|
};
|
|
47616
48067
|
|
|
@@ -47628,6 +48079,8 @@
|
|
|
47628
48079
|
var message = new $root.google.chat.v1.GetSpaceRequest();
|
|
47629
48080
|
if (object.name != null)
|
|
47630
48081
|
message.name = String(object.name);
|
|
48082
|
+
if (object.useAdminAccess != null)
|
|
48083
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
47631
48084
|
return message;
|
|
47632
48085
|
};
|
|
47633
48086
|
|
|
@@ -47644,10 +48097,14 @@
|
|
|
47644
48097
|
if (!options)
|
|
47645
48098
|
options = {};
|
|
47646
48099
|
var object = {};
|
|
47647
|
-
if (options.defaults)
|
|
48100
|
+
if (options.defaults) {
|
|
47648
48101
|
object.name = "";
|
|
48102
|
+
object.useAdminAccess = false;
|
|
48103
|
+
}
|
|
47649
48104
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
47650
48105
|
object.name = message.name;
|
|
48106
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
48107
|
+
object.useAdminAccess = message.useAdminAccess;
|
|
47651
48108
|
return object;
|
|
47652
48109
|
};
|
|
47653
48110
|
|
|
@@ -47891,6 +48348,7 @@
|
|
|
47891
48348
|
* @interface IUpdateSpaceRequest
|
|
47892
48349
|
* @property {google.chat.v1.ISpace|null} [space] UpdateSpaceRequest space
|
|
47893
48350
|
* @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSpaceRequest updateMask
|
|
48351
|
+
* @property {boolean|null} [useAdminAccess] UpdateSpaceRequest useAdminAccess
|
|
47894
48352
|
*/
|
|
47895
48353
|
|
|
47896
48354
|
/**
|
|
@@ -47924,6 +48382,14 @@
|
|
|
47924
48382
|
*/
|
|
47925
48383
|
UpdateSpaceRequest.prototype.updateMask = null;
|
|
47926
48384
|
|
|
48385
|
+
/**
|
|
48386
|
+
* UpdateSpaceRequest useAdminAccess.
|
|
48387
|
+
* @member {boolean} useAdminAccess
|
|
48388
|
+
* @memberof google.chat.v1.UpdateSpaceRequest
|
|
48389
|
+
* @instance
|
|
48390
|
+
*/
|
|
48391
|
+
UpdateSpaceRequest.prototype.useAdminAccess = false;
|
|
48392
|
+
|
|
47927
48393
|
/**
|
|
47928
48394
|
* Creates a new UpdateSpaceRequest instance using the specified properties.
|
|
47929
48395
|
* @function create
|
|
@@ -47952,6 +48418,8 @@
|
|
|
47952
48418
|
$root.google.chat.v1.Space.encode(message.space, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
47953
48419
|
if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
|
|
47954
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);
|
|
47955
48423
|
return writer;
|
|
47956
48424
|
};
|
|
47957
48425
|
|
|
@@ -47994,6 +48462,10 @@
|
|
|
47994
48462
|
message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
|
|
47995
48463
|
break;
|
|
47996
48464
|
}
|
|
48465
|
+
case 3: {
|
|
48466
|
+
message.useAdminAccess = reader.bool();
|
|
48467
|
+
break;
|
|
48468
|
+
}
|
|
47997
48469
|
default:
|
|
47998
48470
|
reader.skipType(tag & 7);
|
|
47999
48471
|
break;
|
|
@@ -48039,6 +48511,9 @@
|
|
|
48039
48511
|
if (error)
|
|
48040
48512
|
return "updateMask." + error;
|
|
48041
48513
|
}
|
|
48514
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
48515
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
48516
|
+
return "useAdminAccess: boolean expected";
|
|
48042
48517
|
return null;
|
|
48043
48518
|
};
|
|
48044
48519
|
|
|
@@ -48064,6 +48539,8 @@
|
|
|
48064
48539
|
throw TypeError(".google.chat.v1.UpdateSpaceRequest.updateMask: object expected");
|
|
48065
48540
|
message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
|
|
48066
48541
|
}
|
|
48542
|
+
if (object.useAdminAccess != null)
|
|
48543
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
48067
48544
|
return message;
|
|
48068
48545
|
};
|
|
48069
48546
|
|
|
@@ -48083,11 +48560,14 @@
|
|
|
48083
48560
|
if (options.defaults) {
|
|
48084
48561
|
object.space = null;
|
|
48085
48562
|
object.updateMask = null;
|
|
48563
|
+
object.useAdminAccess = false;
|
|
48086
48564
|
}
|
|
48087
48565
|
if (message.space != null && message.hasOwnProperty("space"))
|
|
48088
48566
|
object.space = $root.google.chat.v1.Space.toObject(message.space, options);
|
|
48089
48567
|
if (message.updateMask != null && message.hasOwnProperty("updateMask"))
|
|
48090
48568
|
object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
|
|
48569
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
48570
|
+
object.useAdminAccess = message.useAdminAccess;
|
|
48091
48571
|
return object;
|
|
48092
48572
|
};
|
|
48093
48573
|
|
|
@@ -48120,20 +48600,589 @@
|
|
|
48120
48600
|
return UpdateSpaceRequest;
|
|
48121
48601
|
})();
|
|
48122
48602
|
|
|
48123
|
-
v1.
|
|
48603
|
+
v1.SearchSpacesRequest = (function() {
|
|
48124
48604
|
|
|
48125
48605
|
/**
|
|
48126
|
-
* Properties of a
|
|
48606
|
+
* Properties of a SearchSpacesRequest.
|
|
48127
48607
|
* @memberof google.chat.v1
|
|
48128
|
-
* @interface
|
|
48129
|
-
* @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
|
|
48130
48614
|
*/
|
|
48131
48615
|
|
|
48132
48616
|
/**
|
|
48133
|
-
* Constructs a new
|
|
48617
|
+
* Constructs a new SearchSpacesRequest.
|
|
48134
48618
|
* @memberof google.chat.v1
|
|
48135
|
-
* @classdesc Represents a
|
|
48136
|
-
* @implements
|
|
48619
|
+
* @classdesc Represents a SearchSpacesRequest.
|
|
48620
|
+
* @implements ISearchSpacesRequest
|
|
48621
|
+
* @constructor
|
|
48622
|
+
* @param {google.chat.v1.ISearchSpacesRequest=} [properties] Properties to set
|
|
48623
|
+
*/
|
|
48624
|
+
function SearchSpacesRequest(properties) {
|
|
48625
|
+
if (properties)
|
|
48626
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
48627
|
+
if (properties[keys[i]] != null)
|
|
48628
|
+
this[keys[i]] = properties[keys[i]];
|
|
48629
|
+
}
|
|
48630
|
+
|
|
48631
|
+
/**
|
|
48632
|
+
* SearchSpacesRequest useAdminAccess.
|
|
48633
|
+
* @member {boolean} useAdminAccess
|
|
48634
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
48635
|
+
* @instance
|
|
48636
|
+
*/
|
|
48637
|
+
SearchSpacesRequest.prototype.useAdminAccess = false;
|
|
48638
|
+
|
|
48639
|
+
/**
|
|
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.
|
|
48673
|
+
* @function create
|
|
48674
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
48675
|
+
* @static
|
|
48676
|
+
* @param {google.chat.v1.ISearchSpacesRequest=} [properties] Properties to set
|
|
48677
|
+
* @returns {google.chat.v1.SearchSpacesRequest} SearchSpacesRequest instance
|
|
48678
|
+
*/
|
|
48679
|
+
SearchSpacesRequest.create = function create(properties) {
|
|
48680
|
+
return new SearchSpacesRequest(properties);
|
|
48681
|
+
};
|
|
48682
|
+
|
|
48683
|
+
/**
|
|
48684
|
+
* Encodes the specified SearchSpacesRequest message. Does not implicitly {@link google.chat.v1.SearchSpacesRequest.verify|verify} messages.
|
|
48685
|
+
* @function encode
|
|
48686
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
48687
|
+
* @static
|
|
48688
|
+
* @param {google.chat.v1.ISearchSpacesRequest} message SearchSpacesRequest message or plain object to encode
|
|
48689
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
48690
|
+
* @returns {$protobuf.Writer} Writer
|
|
48691
|
+
*/
|
|
48692
|
+
SearchSpacesRequest.encode = function encode(message, writer) {
|
|
48693
|
+
if (!writer)
|
|
48694
|
+
writer = $Writer.create();
|
|
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);
|
|
48705
|
+
return writer;
|
|
48706
|
+
};
|
|
48707
|
+
|
|
48708
|
+
/**
|
|
48709
|
+
* Encodes the specified SearchSpacesRequest message, length delimited. Does not implicitly {@link google.chat.v1.SearchSpacesRequest.verify|verify} messages.
|
|
48710
|
+
* @function encodeDelimited
|
|
48711
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
48712
|
+
* @static
|
|
48713
|
+
* @param {google.chat.v1.ISearchSpacesRequest} message SearchSpacesRequest message or plain object to encode
|
|
48714
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
48715
|
+
* @returns {$protobuf.Writer} Writer
|
|
48716
|
+
*/
|
|
48717
|
+
SearchSpacesRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
48718
|
+
return this.encode(message, writer).ldelim();
|
|
48719
|
+
};
|
|
48720
|
+
|
|
48721
|
+
/**
|
|
48722
|
+
* Decodes a SearchSpacesRequest message from the specified reader or buffer.
|
|
48723
|
+
* @function decode
|
|
48724
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
48725
|
+
* @static
|
|
48726
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
48727
|
+
* @param {number} [length] Message length if known beforehand
|
|
48728
|
+
* @returns {google.chat.v1.SearchSpacesRequest} SearchSpacesRequest
|
|
48729
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
48730
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
48731
|
+
*/
|
|
48732
|
+
SearchSpacesRequest.decode = function decode(reader, length) {
|
|
48733
|
+
if (!(reader instanceof $Reader))
|
|
48734
|
+
reader = $Reader.create(reader);
|
|
48735
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.SearchSpacesRequest();
|
|
48736
|
+
while (reader.pos < end) {
|
|
48737
|
+
var tag = reader.uint32();
|
|
48738
|
+
switch (tag >>> 3) {
|
|
48739
|
+
case 1: {
|
|
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();
|
|
48757
|
+
break;
|
|
48758
|
+
}
|
|
48759
|
+
default:
|
|
48760
|
+
reader.skipType(tag & 7);
|
|
48761
|
+
break;
|
|
48762
|
+
}
|
|
48763
|
+
}
|
|
48764
|
+
return message;
|
|
48765
|
+
};
|
|
48766
|
+
|
|
48767
|
+
/**
|
|
48768
|
+
* Decodes a SearchSpacesRequest message from the specified reader or buffer, length delimited.
|
|
48769
|
+
* @function decodeDelimited
|
|
48770
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
48771
|
+
* @static
|
|
48772
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
48773
|
+
* @returns {google.chat.v1.SearchSpacesRequest} SearchSpacesRequest
|
|
48774
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
48775
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
48776
|
+
*/
|
|
48777
|
+
SearchSpacesRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
48778
|
+
if (!(reader instanceof $Reader))
|
|
48779
|
+
reader = new $Reader(reader);
|
|
48780
|
+
return this.decode(reader, reader.uint32());
|
|
48781
|
+
};
|
|
48782
|
+
|
|
48783
|
+
/**
|
|
48784
|
+
* Verifies a SearchSpacesRequest message.
|
|
48785
|
+
* @function verify
|
|
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
|
|
48137
49186
|
* @constructor
|
|
48138
49187
|
* @param {google.chat.v1.IDeleteSpaceRequest=} [properties] Properties to set
|
|
48139
49188
|
*/
|
|
@@ -48152,6 +49201,14 @@
|
|
|
48152
49201
|
*/
|
|
48153
49202
|
DeleteSpaceRequest.prototype.name = "";
|
|
48154
49203
|
|
|
49204
|
+
/**
|
|
49205
|
+
* DeleteSpaceRequest useAdminAccess.
|
|
49206
|
+
* @member {boolean} useAdminAccess
|
|
49207
|
+
* @memberof google.chat.v1.DeleteSpaceRequest
|
|
49208
|
+
* @instance
|
|
49209
|
+
*/
|
|
49210
|
+
DeleteSpaceRequest.prototype.useAdminAccess = false;
|
|
49211
|
+
|
|
48155
49212
|
/**
|
|
48156
49213
|
* Creates a new DeleteSpaceRequest instance using the specified properties.
|
|
48157
49214
|
* @function create
|
|
@@ -48178,6 +49235,8 @@
|
|
|
48178
49235
|
writer = $Writer.create();
|
|
48179
49236
|
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
48180
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);
|
|
48181
49240
|
return writer;
|
|
48182
49241
|
};
|
|
48183
49242
|
|
|
@@ -48216,6 +49275,10 @@
|
|
|
48216
49275
|
message.name = reader.string();
|
|
48217
49276
|
break;
|
|
48218
49277
|
}
|
|
49278
|
+
case 2: {
|
|
49279
|
+
message.useAdminAccess = reader.bool();
|
|
49280
|
+
break;
|
|
49281
|
+
}
|
|
48219
49282
|
default:
|
|
48220
49283
|
reader.skipType(tag & 7);
|
|
48221
49284
|
break;
|
|
@@ -48254,6 +49317,9 @@
|
|
|
48254
49317
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
48255
49318
|
if (!$util.isString(message.name))
|
|
48256
49319
|
return "name: string expected";
|
|
49320
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
49321
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
49322
|
+
return "useAdminAccess: boolean expected";
|
|
48257
49323
|
return null;
|
|
48258
49324
|
};
|
|
48259
49325
|
|
|
@@ -48271,6 +49337,8 @@
|
|
|
48271
49337
|
var message = new $root.google.chat.v1.DeleteSpaceRequest();
|
|
48272
49338
|
if (object.name != null)
|
|
48273
49339
|
message.name = String(object.name);
|
|
49340
|
+
if (object.useAdminAccess != null)
|
|
49341
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
48274
49342
|
return message;
|
|
48275
49343
|
};
|
|
48276
49344
|
|
|
@@ -48287,10 +49355,14 @@
|
|
|
48287
49355
|
if (!options)
|
|
48288
49356
|
options = {};
|
|
48289
49357
|
var object = {};
|
|
48290
|
-
if (options.defaults)
|
|
49358
|
+
if (options.defaults) {
|
|
48291
49359
|
object.name = "";
|
|
49360
|
+
object.useAdminAccess = false;
|
|
49361
|
+
}
|
|
48292
49362
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
48293
49363
|
object.name = message.name;
|
|
49364
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
49365
|
+
object.useAdminAccess = message.useAdminAccess;
|
|
48294
49366
|
return object;
|
|
48295
49367
|
};
|
|
48296
49368
|
|