@google-apps/chat 0.8.0 → 0.10.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 +3 -2
- package/build/protos/google/chat/v1/chat_service.proto +63 -42
- package/build/protos/google/chat/v1/membership.proto +69 -2
- package/build/protos/google/chat/v1/message.proto +14 -13
- package/build/protos/google/chat/v1/space.proto +361 -59
- package/build/protos/google/chat/v1/space_event.proto +2 -0
- package/build/protos/protos.d.ts +702 -0
- package/build/protos/protos.js +2604 -653
- package/build/protos/protos.json +270 -0
- package/build/src/v1/chat_service_client.d.ts +662 -86
- 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,9 +45722,13 @@
|
|
|
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
|
|
45730
|
+
* @property {google.chat.v1.Space.PredefinedPermissionSettings|null} [predefinedPermissionSettings] Space predefinedPermissionSettings
|
|
45731
|
+
* @property {google.chat.v1.Space.IPermissionSettings|null} [permissionSettings] Space permissionSettings
|
|
45578
45732
|
*/
|
|
45579
45733
|
|
|
45580
45734
|
/**
|
|
@@ -45688,6 +45842,14 @@
|
|
|
45688
45842
|
*/
|
|
45689
45843
|
Space.prototype.createTime = null;
|
|
45690
45844
|
|
|
45845
|
+
/**
|
|
45846
|
+
* Space lastActiveTime.
|
|
45847
|
+
* @member {google.protobuf.ITimestamp|null|undefined} lastActiveTime
|
|
45848
|
+
* @memberof google.chat.v1.Space
|
|
45849
|
+
* @instance
|
|
45850
|
+
*/
|
|
45851
|
+
Space.prototype.lastActiveTime = null;
|
|
45852
|
+
|
|
45691
45853
|
/**
|
|
45692
45854
|
* Space adminInstalled.
|
|
45693
45855
|
* @member {boolean} adminInstalled
|
|
@@ -45696,6 +45858,14 @@
|
|
|
45696
45858
|
*/
|
|
45697
45859
|
Space.prototype.adminInstalled = false;
|
|
45698
45860
|
|
|
45861
|
+
/**
|
|
45862
|
+
* Space membershipCount.
|
|
45863
|
+
* @member {google.chat.v1.Space.IMembershipCount|null|undefined} membershipCount
|
|
45864
|
+
* @memberof google.chat.v1.Space
|
|
45865
|
+
* @instance
|
|
45866
|
+
*/
|
|
45867
|
+
Space.prototype.membershipCount = null;
|
|
45868
|
+
|
|
45699
45869
|
/**
|
|
45700
45870
|
* Space accessSettings.
|
|
45701
45871
|
* @member {google.chat.v1.Space.IAccessSettings|null|undefined} accessSettings
|
|
@@ -45712,6 +45882,36 @@
|
|
|
45712
45882
|
*/
|
|
45713
45883
|
Space.prototype.spaceUri = "";
|
|
45714
45884
|
|
|
45885
|
+
/**
|
|
45886
|
+
* Space predefinedPermissionSettings.
|
|
45887
|
+
* @member {google.chat.v1.Space.PredefinedPermissionSettings|null|undefined} predefinedPermissionSettings
|
|
45888
|
+
* @memberof google.chat.v1.Space
|
|
45889
|
+
* @instance
|
|
45890
|
+
*/
|
|
45891
|
+
Space.prototype.predefinedPermissionSettings = null;
|
|
45892
|
+
|
|
45893
|
+
/**
|
|
45894
|
+
* Space permissionSettings.
|
|
45895
|
+
* @member {google.chat.v1.Space.IPermissionSettings|null|undefined} permissionSettings
|
|
45896
|
+
* @memberof google.chat.v1.Space
|
|
45897
|
+
* @instance
|
|
45898
|
+
*/
|
|
45899
|
+
Space.prototype.permissionSettings = null;
|
|
45900
|
+
|
|
45901
|
+
// OneOf field names bound to virtual getters and setters
|
|
45902
|
+
var $oneOfFields;
|
|
45903
|
+
|
|
45904
|
+
/**
|
|
45905
|
+
* Space spacePermissionSettings.
|
|
45906
|
+
* @member {"predefinedPermissionSettings"|"permissionSettings"|undefined} spacePermissionSettings
|
|
45907
|
+
* @memberof google.chat.v1.Space
|
|
45908
|
+
* @instance
|
|
45909
|
+
*/
|
|
45910
|
+
Object.defineProperty(Space.prototype, "spacePermissionSettings", {
|
|
45911
|
+
get: $util.oneOfGetter($oneOfFields = ["predefinedPermissionSettings", "permissionSettings"]),
|
|
45912
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
45913
|
+
});
|
|
45914
|
+
|
|
45715
45915
|
/**
|
|
45716
45916
|
* Creates a new Space instance using the specified properties.
|
|
45717
45917
|
* @function create
|
|
@@ -45760,12 +45960,20 @@
|
|
|
45760
45960
|
writer.uint32(/* id 16, wireType 0 =*/128).bool(message.importMode);
|
|
45761
45961
|
if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
|
|
45762
45962
|
$root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
45963
|
+
if (message.lastActiveTime != null && Object.hasOwnProperty.call(message, "lastActiveTime"))
|
|
45964
|
+
$root.google.protobuf.Timestamp.encode(message.lastActiveTime, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
45763
45965
|
if (message.adminInstalled != null && Object.hasOwnProperty.call(message, "adminInstalled"))
|
|
45764
45966
|
writer.uint32(/* id 19, wireType 0 =*/152).bool(message.adminInstalled);
|
|
45967
|
+
if (message.membershipCount != null && Object.hasOwnProperty.call(message, "membershipCount"))
|
|
45968
|
+
$root.google.chat.v1.Space.MembershipCount.encode(message.membershipCount, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
|
|
45765
45969
|
if (message.accessSettings != null && Object.hasOwnProperty.call(message, "accessSettings"))
|
|
45766
45970
|
$root.google.chat.v1.Space.AccessSettings.encode(message.accessSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
|
|
45767
45971
|
if (message.spaceUri != null && Object.hasOwnProperty.call(message, "spaceUri"))
|
|
45768
45972
|
writer.uint32(/* id 25, wireType 2 =*/202).string(message.spaceUri);
|
|
45973
|
+
if (message.predefinedPermissionSettings != null && Object.hasOwnProperty.call(message, "predefinedPermissionSettings"))
|
|
45974
|
+
writer.uint32(/* id 26, wireType 0 =*/208).int32(message.predefinedPermissionSettings);
|
|
45975
|
+
if (message.permissionSettings != null && Object.hasOwnProperty.call(message, "permissionSettings"))
|
|
45976
|
+
$root.google.chat.v1.Space.PermissionSettings.encode(message.permissionSettings, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
|
|
45769
45977
|
return writer;
|
|
45770
45978
|
};
|
|
45771
45979
|
|
|
@@ -45848,10 +46056,18 @@
|
|
|
45848
46056
|
message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
45849
46057
|
break;
|
|
45850
46058
|
}
|
|
46059
|
+
case 18: {
|
|
46060
|
+
message.lastActiveTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
46061
|
+
break;
|
|
46062
|
+
}
|
|
45851
46063
|
case 19: {
|
|
45852
46064
|
message.adminInstalled = reader.bool();
|
|
45853
46065
|
break;
|
|
45854
46066
|
}
|
|
46067
|
+
case 20: {
|
|
46068
|
+
message.membershipCount = $root.google.chat.v1.Space.MembershipCount.decode(reader, reader.uint32());
|
|
46069
|
+
break;
|
|
46070
|
+
}
|
|
45855
46071
|
case 23: {
|
|
45856
46072
|
message.accessSettings = $root.google.chat.v1.Space.AccessSettings.decode(reader, reader.uint32());
|
|
45857
46073
|
break;
|
|
@@ -45860,6 +46076,14 @@
|
|
|
45860
46076
|
message.spaceUri = reader.string();
|
|
45861
46077
|
break;
|
|
45862
46078
|
}
|
|
46079
|
+
case 26: {
|
|
46080
|
+
message.predefinedPermissionSettings = reader.int32();
|
|
46081
|
+
break;
|
|
46082
|
+
}
|
|
46083
|
+
case 27: {
|
|
46084
|
+
message.permissionSettings = $root.google.chat.v1.Space.PermissionSettings.decode(reader, reader.uint32());
|
|
46085
|
+
break;
|
|
46086
|
+
}
|
|
45863
46087
|
default:
|
|
45864
46088
|
reader.skipType(tag & 7);
|
|
45865
46089
|
break;
|
|
@@ -45895,6 +46119,7 @@
|
|
|
45895
46119
|
Space.verify = function verify(message) {
|
|
45896
46120
|
if (typeof message !== "object" || message === null)
|
|
45897
46121
|
return "object expected";
|
|
46122
|
+
var properties = {};
|
|
45898
46123
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
45899
46124
|
if (!$util.isString(message.name))
|
|
45900
46125
|
return "name: string expected";
|
|
@@ -45961,9 +46186,19 @@
|
|
|
45961
46186
|
if (error)
|
|
45962
46187
|
return "createTime." + error;
|
|
45963
46188
|
}
|
|
46189
|
+
if (message.lastActiveTime != null && message.hasOwnProperty("lastActiveTime")) {
|
|
46190
|
+
var error = $root.google.protobuf.Timestamp.verify(message.lastActiveTime);
|
|
46191
|
+
if (error)
|
|
46192
|
+
return "lastActiveTime." + error;
|
|
46193
|
+
}
|
|
45964
46194
|
if (message.adminInstalled != null && message.hasOwnProperty("adminInstalled"))
|
|
45965
46195
|
if (typeof message.adminInstalled !== "boolean")
|
|
45966
46196
|
return "adminInstalled: boolean expected";
|
|
46197
|
+
if (message.membershipCount != null && message.hasOwnProperty("membershipCount")) {
|
|
46198
|
+
var error = $root.google.chat.v1.Space.MembershipCount.verify(message.membershipCount);
|
|
46199
|
+
if (error)
|
|
46200
|
+
return "membershipCount." + error;
|
|
46201
|
+
}
|
|
45967
46202
|
if (message.accessSettings != null && message.hasOwnProperty("accessSettings")) {
|
|
45968
46203
|
var error = $root.google.chat.v1.Space.AccessSettings.verify(message.accessSettings);
|
|
45969
46204
|
if (error)
|
|
@@ -45972,6 +46207,27 @@
|
|
|
45972
46207
|
if (message.spaceUri != null && message.hasOwnProperty("spaceUri"))
|
|
45973
46208
|
if (!$util.isString(message.spaceUri))
|
|
45974
46209
|
return "spaceUri: string expected";
|
|
46210
|
+
if (message.predefinedPermissionSettings != null && message.hasOwnProperty("predefinedPermissionSettings")) {
|
|
46211
|
+
properties.spacePermissionSettings = 1;
|
|
46212
|
+
switch (message.predefinedPermissionSettings) {
|
|
46213
|
+
default:
|
|
46214
|
+
return "predefinedPermissionSettings: enum value expected";
|
|
46215
|
+
case 0:
|
|
46216
|
+
case 1:
|
|
46217
|
+
case 2:
|
|
46218
|
+
break;
|
|
46219
|
+
}
|
|
46220
|
+
}
|
|
46221
|
+
if (message.permissionSettings != null && message.hasOwnProperty("permissionSettings")) {
|
|
46222
|
+
if (properties.spacePermissionSettings === 1)
|
|
46223
|
+
return "spacePermissionSettings: multiple values";
|
|
46224
|
+
properties.spacePermissionSettings = 1;
|
|
46225
|
+
{
|
|
46226
|
+
var error = $root.google.chat.v1.Space.PermissionSettings.verify(message.permissionSettings);
|
|
46227
|
+
if (error)
|
|
46228
|
+
return "permissionSettings." + error;
|
|
46229
|
+
}
|
|
46230
|
+
}
|
|
45975
46231
|
return null;
|
|
45976
46232
|
};
|
|
45977
46233
|
|
|
@@ -46097,8 +46353,18 @@
|
|
|
46097
46353
|
throw TypeError(".google.chat.v1.Space.createTime: object expected");
|
|
46098
46354
|
message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
|
|
46099
46355
|
}
|
|
46356
|
+
if (object.lastActiveTime != null) {
|
|
46357
|
+
if (typeof object.lastActiveTime !== "object")
|
|
46358
|
+
throw TypeError(".google.chat.v1.Space.lastActiveTime: object expected");
|
|
46359
|
+
message.lastActiveTime = $root.google.protobuf.Timestamp.fromObject(object.lastActiveTime);
|
|
46360
|
+
}
|
|
46100
46361
|
if (object.adminInstalled != null)
|
|
46101
46362
|
message.adminInstalled = Boolean(object.adminInstalled);
|
|
46363
|
+
if (object.membershipCount != null) {
|
|
46364
|
+
if (typeof object.membershipCount !== "object")
|
|
46365
|
+
throw TypeError(".google.chat.v1.Space.membershipCount: object expected");
|
|
46366
|
+
message.membershipCount = $root.google.chat.v1.Space.MembershipCount.fromObject(object.membershipCount);
|
|
46367
|
+
}
|
|
46102
46368
|
if (object.accessSettings != null) {
|
|
46103
46369
|
if (typeof object.accessSettings !== "object")
|
|
46104
46370
|
throw TypeError(".google.chat.v1.Space.accessSettings: object expected");
|
|
@@ -46106,6 +46372,31 @@
|
|
|
46106
46372
|
}
|
|
46107
46373
|
if (object.spaceUri != null)
|
|
46108
46374
|
message.spaceUri = String(object.spaceUri);
|
|
46375
|
+
switch (object.predefinedPermissionSettings) {
|
|
46376
|
+
default:
|
|
46377
|
+
if (typeof object.predefinedPermissionSettings === "number") {
|
|
46378
|
+
message.predefinedPermissionSettings = object.predefinedPermissionSettings;
|
|
46379
|
+
break;
|
|
46380
|
+
}
|
|
46381
|
+
break;
|
|
46382
|
+
case "PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED":
|
|
46383
|
+
case 0:
|
|
46384
|
+
message.predefinedPermissionSettings = 0;
|
|
46385
|
+
break;
|
|
46386
|
+
case "COLLABORATION_SPACE":
|
|
46387
|
+
case 1:
|
|
46388
|
+
message.predefinedPermissionSettings = 1;
|
|
46389
|
+
break;
|
|
46390
|
+
case "ANNOUNCEMENT_SPACE":
|
|
46391
|
+
case 2:
|
|
46392
|
+
message.predefinedPermissionSettings = 2;
|
|
46393
|
+
break;
|
|
46394
|
+
}
|
|
46395
|
+
if (object.permissionSettings != null) {
|
|
46396
|
+
if (typeof object.permissionSettings !== "object")
|
|
46397
|
+
throw TypeError(".google.chat.v1.Space.permissionSettings: object expected");
|
|
46398
|
+
message.permissionSettings = $root.google.chat.v1.Space.PermissionSettings.fromObject(object.permissionSettings);
|
|
46399
|
+
}
|
|
46109
46400
|
return message;
|
|
46110
46401
|
};
|
|
46111
46402
|
|
|
@@ -46135,7 +46426,9 @@
|
|
|
46135
46426
|
object.spaceHistoryState = options.enums === String ? "HISTORY_STATE_UNSPECIFIED" : 0;
|
|
46136
46427
|
object.importMode = false;
|
|
46137
46428
|
object.createTime = null;
|
|
46429
|
+
object.lastActiveTime = null;
|
|
46138
46430
|
object.adminInstalled = false;
|
|
46431
|
+
object.membershipCount = null;
|
|
46139
46432
|
object.accessSettings = null;
|
|
46140
46433
|
object.spaceUri = "";
|
|
46141
46434
|
}
|
|
@@ -46163,12 +46456,26 @@
|
|
|
46163
46456
|
object.importMode = message.importMode;
|
|
46164
46457
|
if (message.createTime != null && message.hasOwnProperty("createTime"))
|
|
46165
46458
|
object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
|
|
46459
|
+
if (message.lastActiveTime != null && message.hasOwnProperty("lastActiveTime"))
|
|
46460
|
+
object.lastActiveTime = $root.google.protobuf.Timestamp.toObject(message.lastActiveTime, options);
|
|
46166
46461
|
if (message.adminInstalled != null && message.hasOwnProperty("adminInstalled"))
|
|
46167
46462
|
object.adminInstalled = message.adminInstalled;
|
|
46463
|
+
if (message.membershipCount != null && message.hasOwnProperty("membershipCount"))
|
|
46464
|
+
object.membershipCount = $root.google.chat.v1.Space.MembershipCount.toObject(message.membershipCount, options);
|
|
46168
46465
|
if (message.accessSettings != null && message.hasOwnProperty("accessSettings"))
|
|
46169
46466
|
object.accessSettings = $root.google.chat.v1.Space.AccessSettings.toObject(message.accessSettings, options);
|
|
46170
46467
|
if (message.spaceUri != null && message.hasOwnProperty("spaceUri"))
|
|
46171
46468
|
object.spaceUri = message.spaceUri;
|
|
46469
|
+
if (message.predefinedPermissionSettings != null && message.hasOwnProperty("predefinedPermissionSettings")) {
|
|
46470
|
+
object.predefinedPermissionSettings = options.enums === String ? $root.google.chat.v1.Space.PredefinedPermissionSettings[message.predefinedPermissionSettings] === undefined ? message.predefinedPermissionSettings : $root.google.chat.v1.Space.PredefinedPermissionSettings[message.predefinedPermissionSettings] : message.predefinedPermissionSettings;
|
|
46471
|
+
if (options.oneofs)
|
|
46472
|
+
object.spacePermissionSettings = "predefinedPermissionSettings";
|
|
46473
|
+
}
|
|
46474
|
+
if (message.permissionSettings != null && message.hasOwnProperty("permissionSettings")) {
|
|
46475
|
+
object.permissionSettings = $root.google.chat.v1.Space.PermissionSettings.toObject(message.permissionSettings, options);
|
|
46476
|
+
if (options.oneofs)
|
|
46477
|
+
object.spacePermissionSettings = "permissionSettings";
|
|
46478
|
+
}
|
|
46172
46479
|
return object;
|
|
46173
46480
|
};
|
|
46174
46481
|
|
|
@@ -46477,25 +46784,25 @@
|
|
|
46477
46784
|
return SpaceDetails;
|
|
46478
46785
|
})();
|
|
46479
46786
|
|
|
46480
|
-
Space.
|
|
46787
|
+
Space.MembershipCount = (function() {
|
|
46481
46788
|
|
|
46482
46789
|
/**
|
|
46483
|
-
* Properties of
|
|
46790
|
+
* Properties of a MembershipCount.
|
|
46484
46791
|
* @memberof google.chat.v1.Space
|
|
46485
|
-
* @interface
|
|
46486
|
-
* @property {
|
|
46487
|
-
* @property {
|
|
46792
|
+
* @interface IMembershipCount
|
|
46793
|
+
* @property {number|null} [joinedDirectHumanUserCount] MembershipCount joinedDirectHumanUserCount
|
|
46794
|
+
* @property {number|null} [joinedGroupCount] MembershipCount joinedGroupCount
|
|
46488
46795
|
*/
|
|
46489
46796
|
|
|
46490
46797
|
/**
|
|
46491
|
-
* Constructs a new
|
|
46798
|
+
* Constructs a new MembershipCount.
|
|
46492
46799
|
* @memberof google.chat.v1.Space
|
|
46493
|
-
* @classdesc Represents
|
|
46494
|
-
* @implements
|
|
46800
|
+
* @classdesc Represents a MembershipCount.
|
|
46801
|
+
* @implements IMembershipCount
|
|
46495
46802
|
* @constructor
|
|
46496
|
-
* @param {google.chat.v1.Space.
|
|
46803
|
+
* @param {google.chat.v1.Space.IMembershipCount=} [properties] Properties to set
|
|
46497
46804
|
*/
|
|
46498
|
-
function
|
|
46805
|
+
function MembershipCount(properties) {
|
|
46499
46806
|
if (properties)
|
|
46500
46807
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
46501
46808
|
if (properties[keys[i]] != null)
|
|
@@ -46503,89 +46810,89 @@
|
|
|
46503
46810
|
}
|
|
46504
46811
|
|
|
46505
46812
|
/**
|
|
46506
|
-
*
|
|
46507
|
-
* @member {
|
|
46508
|
-
* @memberof google.chat.v1.Space.
|
|
46813
|
+
* MembershipCount joinedDirectHumanUserCount.
|
|
46814
|
+
* @member {number} joinedDirectHumanUserCount
|
|
46815
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46509
46816
|
* @instance
|
|
46510
46817
|
*/
|
|
46511
|
-
|
|
46818
|
+
MembershipCount.prototype.joinedDirectHumanUserCount = 0;
|
|
46512
46819
|
|
|
46513
46820
|
/**
|
|
46514
|
-
*
|
|
46515
|
-
* @member {
|
|
46516
|
-
* @memberof google.chat.v1.Space.
|
|
46821
|
+
* MembershipCount joinedGroupCount.
|
|
46822
|
+
* @member {number} joinedGroupCount
|
|
46823
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46517
46824
|
* @instance
|
|
46518
46825
|
*/
|
|
46519
|
-
|
|
46826
|
+
MembershipCount.prototype.joinedGroupCount = 0;
|
|
46520
46827
|
|
|
46521
46828
|
/**
|
|
46522
|
-
* Creates a new
|
|
46829
|
+
* Creates a new MembershipCount instance using the specified properties.
|
|
46523
46830
|
* @function create
|
|
46524
|
-
* @memberof google.chat.v1.Space.
|
|
46831
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46525
46832
|
* @static
|
|
46526
|
-
* @param {google.chat.v1.Space.
|
|
46527
|
-
* @returns {google.chat.v1.Space.
|
|
46833
|
+
* @param {google.chat.v1.Space.IMembershipCount=} [properties] Properties to set
|
|
46834
|
+
* @returns {google.chat.v1.Space.MembershipCount} MembershipCount instance
|
|
46528
46835
|
*/
|
|
46529
|
-
|
|
46530
|
-
return new
|
|
46836
|
+
MembershipCount.create = function create(properties) {
|
|
46837
|
+
return new MembershipCount(properties);
|
|
46531
46838
|
};
|
|
46532
46839
|
|
|
46533
46840
|
/**
|
|
46534
|
-
* Encodes the specified
|
|
46841
|
+
* Encodes the specified MembershipCount message. Does not implicitly {@link google.chat.v1.Space.MembershipCount.verify|verify} messages.
|
|
46535
46842
|
* @function encode
|
|
46536
|
-
* @memberof google.chat.v1.Space.
|
|
46843
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46537
46844
|
* @static
|
|
46538
|
-
* @param {google.chat.v1.Space.
|
|
46845
|
+
* @param {google.chat.v1.Space.IMembershipCount} message MembershipCount message or plain object to encode
|
|
46539
46846
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
46540
46847
|
* @returns {$protobuf.Writer} Writer
|
|
46541
46848
|
*/
|
|
46542
|
-
|
|
46849
|
+
MembershipCount.encode = function encode(message, writer) {
|
|
46543
46850
|
if (!writer)
|
|
46544
46851
|
writer = $Writer.create();
|
|
46545
|
-
if (message.
|
|
46546
|
-
writer.uint32(/* id
|
|
46547
|
-
if (message.
|
|
46548
|
-
writer.uint32(/* id
|
|
46852
|
+
if (message.joinedDirectHumanUserCount != null && Object.hasOwnProperty.call(message, "joinedDirectHumanUserCount"))
|
|
46853
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.joinedDirectHumanUserCount);
|
|
46854
|
+
if (message.joinedGroupCount != null && Object.hasOwnProperty.call(message, "joinedGroupCount"))
|
|
46855
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.joinedGroupCount);
|
|
46549
46856
|
return writer;
|
|
46550
46857
|
};
|
|
46551
46858
|
|
|
46552
46859
|
/**
|
|
46553
|
-
* Encodes the specified
|
|
46860
|
+
* Encodes the specified MembershipCount message, length delimited. Does not implicitly {@link google.chat.v1.Space.MembershipCount.verify|verify} messages.
|
|
46554
46861
|
* @function encodeDelimited
|
|
46555
|
-
* @memberof google.chat.v1.Space.
|
|
46862
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46556
46863
|
* @static
|
|
46557
|
-
* @param {google.chat.v1.Space.
|
|
46864
|
+
* @param {google.chat.v1.Space.IMembershipCount} message MembershipCount message or plain object to encode
|
|
46558
46865
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
46559
46866
|
* @returns {$protobuf.Writer} Writer
|
|
46560
46867
|
*/
|
|
46561
|
-
|
|
46868
|
+
MembershipCount.encodeDelimited = function encodeDelimited(message, writer) {
|
|
46562
46869
|
return this.encode(message, writer).ldelim();
|
|
46563
46870
|
};
|
|
46564
46871
|
|
|
46565
46872
|
/**
|
|
46566
|
-
* Decodes
|
|
46873
|
+
* Decodes a MembershipCount message from the specified reader or buffer.
|
|
46567
46874
|
* @function decode
|
|
46568
|
-
* @memberof google.chat.v1.Space.
|
|
46875
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46569
46876
|
* @static
|
|
46570
46877
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
46571
46878
|
* @param {number} [length] Message length if known beforehand
|
|
46572
|
-
* @returns {google.chat.v1.Space.
|
|
46879
|
+
* @returns {google.chat.v1.Space.MembershipCount} MembershipCount
|
|
46573
46880
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
46574
46881
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
46575
46882
|
*/
|
|
46576
|
-
|
|
46883
|
+
MembershipCount.decode = function decode(reader, length) {
|
|
46577
46884
|
if (!(reader instanceof $Reader))
|
|
46578
46885
|
reader = $Reader.create(reader);
|
|
46579
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.Space.
|
|
46886
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.Space.MembershipCount();
|
|
46580
46887
|
while (reader.pos < end) {
|
|
46581
46888
|
var tag = reader.uint32();
|
|
46582
46889
|
switch (tag >>> 3) {
|
|
46583
|
-
case
|
|
46584
|
-
message.
|
|
46890
|
+
case 4: {
|
|
46891
|
+
message.joinedDirectHumanUserCount = reader.int32();
|
|
46585
46892
|
break;
|
|
46586
46893
|
}
|
|
46587
|
-
case
|
|
46588
|
-
message.
|
|
46894
|
+
case 5: {
|
|
46895
|
+
message.joinedGroupCount = reader.int32();
|
|
46589
46896
|
break;
|
|
46590
46897
|
}
|
|
46591
46898
|
default:
|
|
@@ -46597,132 +46904,359 @@
|
|
|
46597
46904
|
};
|
|
46598
46905
|
|
|
46599
46906
|
/**
|
|
46600
|
-
* Decodes
|
|
46907
|
+
* Decodes a MembershipCount message from the specified reader or buffer, length delimited.
|
|
46601
46908
|
* @function decodeDelimited
|
|
46602
|
-
* @memberof google.chat.v1.Space.
|
|
46909
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46603
46910
|
* @static
|
|
46604
46911
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
46605
|
-
* @returns {google.chat.v1.Space.
|
|
46912
|
+
* @returns {google.chat.v1.Space.MembershipCount} MembershipCount
|
|
46606
46913
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
46607
46914
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
46608
46915
|
*/
|
|
46609
|
-
|
|
46916
|
+
MembershipCount.decodeDelimited = function decodeDelimited(reader) {
|
|
46610
46917
|
if (!(reader instanceof $Reader))
|
|
46611
46918
|
reader = new $Reader(reader);
|
|
46612
46919
|
return this.decode(reader, reader.uint32());
|
|
46613
46920
|
};
|
|
46614
46921
|
|
|
46615
46922
|
/**
|
|
46616
|
-
* Verifies
|
|
46923
|
+
* Verifies a MembershipCount message.
|
|
46617
46924
|
* @function verify
|
|
46618
|
-
* @memberof google.chat.v1.Space.
|
|
46925
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46619
46926
|
* @static
|
|
46620
46927
|
* @param {Object.<string,*>} message Plain object to verify
|
|
46621
46928
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
46622
46929
|
*/
|
|
46623
|
-
|
|
46930
|
+
MembershipCount.verify = function verify(message) {
|
|
46624
46931
|
if (typeof message !== "object" || message === null)
|
|
46625
46932
|
return "object expected";
|
|
46626
|
-
if (message.
|
|
46627
|
-
|
|
46628
|
-
|
|
46629
|
-
|
|
46630
|
-
|
|
46631
|
-
|
|
46632
|
-
case 2:
|
|
46633
|
-
break;
|
|
46634
|
-
}
|
|
46635
|
-
if (message.audience != null && message.hasOwnProperty("audience"))
|
|
46636
|
-
if (!$util.isString(message.audience))
|
|
46637
|
-
return "audience: string expected";
|
|
46933
|
+
if (message.joinedDirectHumanUserCount != null && message.hasOwnProperty("joinedDirectHumanUserCount"))
|
|
46934
|
+
if (!$util.isInteger(message.joinedDirectHumanUserCount))
|
|
46935
|
+
return "joinedDirectHumanUserCount: integer expected";
|
|
46936
|
+
if (message.joinedGroupCount != null && message.hasOwnProperty("joinedGroupCount"))
|
|
46937
|
+
if (!$util.isInteger(message.joinedGroupCount))
|
|
46938
|
+
return "joinedGroupCount: integer expected";
|
|
46638
46939
|
return null;
|
|
46639
46940
|
};
|
|
46640
46941
|
|
|
46641
46942
|
/**
|
|
46642
|
-
* Creates
|
|
46943
|
+
* Creates a MembershipCount message from a plain object. Also converts values to their respective internal types.
|
|
46643
46944
|
* @function fromObject
|
|
46644
|
-
* @memberof google.chat.v1.Space.
|
|
46945
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46645
46946
|
* @static
|
|
46646
46947
|
* @param {Object.<string,*>} object Plain object
|
|
46647
|
-
* @returns {google.chat.v1.Space.
|
|
46948
|
+
* @returns {google.chat.v1.Space.MembershipCount} MembershipCount
|
|
46648
46949
|
*/
|
|
46649
|
-
|
|
46650
|
-
if (object instanceof $root.google.chat.v1.Space.
|
|
46950
|
+
MembershipCount.fromObject = function fromObject(object) {
|
|
46951
|
+
if (object instanceof $root.google.chat.v1.Space.MembershipCount)
|
|
46651
46952
|
return object;
|
|
46652
|
-
var message = new $root.google.chat.v1.Space.
|
|
46653
|
-
|
|
46654
|
-
|
|
46655
|
-
|
|
46656
|
-
|
|
46657
|
-
break;
|
|
46658
|
-
}
|
|
46659
|
-
break;
|
|
46660
|
-
case "ACCESS_STATE_UNSPECIFIED":
|
|
46661
|
-
case 0:
|
|
46662
|
-
message.accessState = 0;
|
|
46663
|
-
break;
|
|
46664
|
-
case "PRIVATE":
|
|
46665
|
-
case 1:
|
|
46666
|
-
message.accessState = 1;
|
|
46667
|
-
break;
|
|
46668
|
-
case "DISCOVERABLE":
|
|
46669
|
-
case 2:
|
|
46670
|
-
message.accessState = 2;
|
|
46671
|
-
break;
|
|
46672
|
-
}
|
|
46673
|
-
if (object.audience != null)
|
|
46674
|
-
message.audience = String(object.audience);
|
|
46953
|
+
var message = new $root.google.chat.v1.Space.MembershipCount();
|
|
46954
|
+
if (object.joinedDirectHumanUserCount != null)
|
|
46955
|
+
message.joinedDirectHumanUserCount = object.joinedDirectHumanUserCount | 0;
|
|
46956
|
+
if (object.joinedGroupCount != null)
|
|
46957
|
+
message.joinedGroupCount = object.joinedGroupCount | 0;
|
|
46675
46958
|
return message;
|
|
46676
46959
|
};
|
|
46677
46960
|
|
|
46678
46961
|
/**
|
|
46679
|
-
* Creates a plain object from
|
|
46962
|
+
* Creates a plain object from a MembershipCount message. Also converts values to other types if specified.
|
|
46680
46963
|
* @function toObject
|
|
46681
|
-
* @memberof google.chat.v1.Space.
|
|
46964
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46682
46965
|
* @static
|
|
46683
|
-
* @param {google.chat.v1.Space.
|
|
46966
|
+
* @param {google.chat.v1.Space.MembershipCount} message MembershipCount
|
|
46684
46967
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
46685
46968
|
* @returns {Object.<string,*>} Plain object
|
|
46686
46969
|
*/
|
|
46687
|
-
|
|
46970
|
+
MembershipCount.toObject = function toObject(message, options) {
|
|
46688
46971
|
if (!options)
|
|
46689
46972
|
options = {};
|
|
46690
46973
|
var object = {};
|
|
46691
46974
|
if (options.defaults) {
|
|
46692
|
-
object.
|
|
46693
|
-
object.
|
|
46975
|
+
object.joinedDirectHumanUserCount = 0;
|
|
46976
|
+
object.joinedGroupCount = 0;
|
|
46694
46977
|
}
|
|
46695
|
-
if (message.
|
|
46696
|
-
object.
|
|
46697
|
-
if (message.
|
|
46698
|
-
object.
|
|
46978
|
+
if (message.joinedDirectHumanUserCount != null && message.hasOwnProperty("joinedDirectHumanUserCount"))
|
|
46979
|
+
object.joinedDirectHumanUserCount = message.joinedDirectHumanUserCount;
|
|
46980
|
+
if (message.joinedGroupCount != null && message.hasOwnProperty("joinedGroupCount"))
|
|
46981
|
+
object.joinedGroupCount = message.joinedGroupCount;
|
|
46699
46982
|
return object;
|
|
46700
46983
|
};
|
|
46701
46984
|
|
|
46702
46985
|
/**
|
|
46703
|
-
* Converts this
|
|
46986
|
+
* Converts this MembershipCount to JSON.
|
|
46704
46987
|
* @function toJSON
|
|
46705
|
-
* @memberof google.chat.v1.Space.
|
|
46988
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46706
46989
|
* @instance
|
|
46707
46990
|
* @returns {Object.<string,*>} JSON object
|
|
46708
46991
|
*/
|
|
46709
|
-
|
|
46992
|
+
MembershipCount.prototype.toJSON = function toJSON() {
|
|
46710
46993
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
46711
46994
|
};
|
|
46712
46995
|
|
|
46713
46996
|
/**
|
|
46714
|
-
* Gets the default type url for
|
|
46997
|
+
* Gets the default type url for MembershipCount
|
|
46715
46998
|
* @function getTypeUrl
|
|
46716
|
-
* @memberof google.chat.v1.Space.
|
|
46999
|
+
* @memberof google.chat.v1.Space.MembershipCount
|
|
46717
47000
|
* @static
|
|
46718
47001
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
46719
47002
|
* @returns {string} The default type url
|
|
46720
47003
|
*/
|
|
46721
|
-
|
|
47004
|
+
MembershipCount.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
46722
47005
|
if (typeUrlPrefix === undefined) {
|
|
46723
47006
|
typeUrlPrefix = "type.googleapis.com";
|
|
46724
47007
|
}
|
|
46725
|
-
return typeUrlPrefix + "/google.chat.v1.Space.
|
|
47008
|
+
return typeUrlPrefix + "/google.chat.v1.Space.MembershipCount";
|
|
47009
|
+
};
|
|
47010
|
+
|
|
47011
|
+
return MembershipCount;
|
|
47012
|
+
})();
|
|
47013
|
+
|
|
47014
|
+
Space.AccessSettings = (function() {
|
|
47015
|
+
|
|
47016
|
+
/**
|
|
47017
|
+
* Properties of an AccessSettings.
|
|
47018
|
+
* @memberof google.chat.v1.Space
|
|
47019
|
+
* @interface IAccessSettings
|
|
47020
|
+
* @property {google.chat.v1.Space.AccessSettings.AccessState|null} [accessState] AccessSettings accessState
|
|
47021
|
+
* @property {string|null} [audience] AccessSettings audience
|
|
47022
|
+
*/
|
|
47023
|
+
|
|
47024
|
+
/**
|
|
47025
|
+
* Constructs a new AccessSettings.
|
|
47026
|
+
* @memberof google.chat.v1.Space
|
|
47027
|
+
* @classdesc Represents an AccessSettings.
|
|
47028
|
+
* @implements IAccessSettings
|
|
47029
|
+
* @constructor
|
|
47030
|
+
* @param {google.chat.v1.Space.IAccessSettings=} [properties] Properties to set
|
|
47031
|
+
*/
|
|
47032
|
+
function AccessSettings(properties) {
|
|
47033
|
+
if (properties)
|
|
47034
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47035
|
+
if (properties[keys[i]] != null)
|
|
47036
|
+
this[keys[i]] = properties[keys[i]];
|
|
47037
|
+
}
|
|
47038
|
+
|
|
47039
|
+
/**
|
|
47040
|
+
* AccessSettings accessState.
|
|
47041
|
+
* @member {google.chat.v1.Space.AccessSettings.AccessState} accessState
|
|
47042
|
+
* @memberof google.chat.v1.Space.AccessSettings
|
|
47043
|
+
* @instance
|
|
47044
|
+
*/
|
|
47045
|
+
AccessSettings.prototype.accessState = 0;
|
|
47046
|
+
|
|
47047
|
+
/**
|
|
47048
|
+
* AccessSettings audience.
|
|
47049
|
+
* @member {string} audience
|
|
47050
|
+
* @memberof google.chat.v1.Space.AccessSettings
|
|
47051
|
+
* @instance
|
|
47052
|
+
*/
|
|
47053
|
+
AccessSettings.prototype.audience = "";
|
|
47054
|
+
|
|
47055
|
+
/**
|
|
47056
|
+
* Creates a new AccessSettings instance using the specified properties.
|
|
47057
|
+
* @function create
|
|
47058
|
+
* @memberof google.chat.v1.Space.AccessSettings
|
|
47059
|
+
* @static
|
|
47060
|
+
* @param {google.chat.v1.Space.IAccessSettings=} [properties] Properties to set
|
|
47061
|
+
* @returns {google.chat.v1.Space.AccessSettings} AccessSettings instance
|
|
47062
|
+
*/
|
|
47063
|
+
AccessSettings.create = function create(properties) {
|
|
47064
|
+
return new AccessSettings(properties);
|
|
47065
|
+
};
|
|
47066
|
+
|
|
47067
|
+
/**
|
|
47068
|
+
* Encodes the specified AccessSettings message. Does not implicitly {@link google.chat.v1.Space.AccessSettings.verify|verify} messages.
|
|
47069
|
+
* @function encode
|
|
47070
|
+
* @memberof google.chat.v1.Space.AccessSettings
|
|
47071
|
+
* @static
|
|
47072
|
+
* @param {google.chat.v1.Space.IAccessSettings} message AccessSettings message or plain object to encode
|
|
47073
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47074
|
+
* @returns {$protobuf.Writer} Writer
|
|
47075
|
+
*/
|
|
47076
|
+
AccessSettings.encode = function encode(message, writer) {
|
|
47077
|
+
if (!writer)
|
|
47078
|
+
writer = $Writer.create();
|
|
47079
|
+
if (message.accessState != null && Object.hasOwnProperty.call(message, "accessState"))
|
|
47080
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.accessState);
|
|
47081
|
+
if (message.audience != null && Object.hasOwnProperty.call(message, "audience"))
|
|
47082
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.audience);
|
|
47083
|
+
return writer;
|
|
47084
|
+
};
|
|
47085
|
+
|
|
47086
|
+
/**
|
|
47087
|
+
* Encodes the specified AccessSettings message, length delimited. Does not implicitly {@link google.chat.v1.Space.AccessSettings.verify|verify} messages.
|
|
47088
|
+
* @function encodeDelimited
|
|
47089
|
+
* @memberof google.chat.v1.Space.AccessSettings
|
|
47090
|
+
* @static
|
|
47091
|
+
* @param {google.chat.v1.Space.IAccessSettings} message AccessSettings message or plain object to encode
|
|
47092
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47093
|
+
* @returns {$protobuf.Writer} Writer
|
|
47094
|
+
*/
|
|
47095
|
+
AccessSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
47096
|
+
return this.encode(message, writer).ldelim();
|
|
47097
|
+
};
|
|
47098
|
+
|
|
47099
|
+
/**
|
|
47100
|
+
* Decodes an AccessSettings message from the specified reader or buffer.
|
|
47101
|
+
* @function decode
|
|
47102
|
+
* @memberof google.chat.v1.Space.AccessSettings
|
|
47103
|
+
* @static
|
|
47104
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47105
|
+
* @param {number} [length] Message length if known beforehand
|
|
47106
|
+
* @returns {google.chat.v1.Space.AccessSettings} AccessSettings
|
|
47107
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47108
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47109
|
+
*/
|
|
47110
|
+
AccessSettings.decode = function decode(reader, length) {
|
|
47111
|
+
if (!(reader instanceof $Reader))
|
|
47112
|
+
reader = $Reader.create(reader);
|
|
47113
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.Space.AccessSettings();
|
|
47114
|
+
while (reader.pos < end) {
|
|
47115
|
+
var tag = reader.uint32();
|
|
47116
|
+
switch (tag >>> 3) {
|
|
47117
|
+
case 1: {
|
|
47118
|
+
message.accessState = reader.int32();
|
|
47119
|
+
break;
|
|
47120
|
+
}
|
|
47121
|
+
case 3: {
|
|
47122
|
+
message.audience = reader.string();
|
|
47123
|
+
break;
|
|
47124
|
+
}
|
|
47125
|
+
default:
|
|
47126
|
+
reader.skipType(tag & 7);
|
|
47127
|
+
break;
|
|
47128
|
+
}
|
|
47129
|
+
}
|
|
47130
|
+
return message;
|
|
47131
|
+
};
|
|
47132
|
+
|
|
47133
|
+
/**
|
|
47134
|
+
* Decodes an AccessSettings message from the specified reader or buffer, length delimited.
|
|
47135
|
+
* @function decodeDelimited
|
|
47136
|
+
* @memberof google.chat.v1.Space.AccessSettings
|
|
47137
|
+
* @static
|
|
47138
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47139
|
+
* @returns {google.chat.v1.Space.AccessSettings} AccessSettings
|
|
47140
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47141
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47142
|
+
*/
|
|
47143
|
+
AccessSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
47144
|
+
if (!(reader instanceof $Reader))
|
|
47145
|
+
reader = new $Reader(reader);
|
|
47146
|
+
return this.decode(reader, reader.uint32());
|
|
47147
|
+
};
|
|
47148
|
+
|
|
47149
|
+
/**
|
|
47150
|
+
* Verifies an AccessSettings message.
|
|
47151
|
+
* @function verify
|
|
47152
|
+
* @memberof google.chat.v1.Space.AccessSettings
|
|
47153
|
+
* @static
|
|
47154
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
47155
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
47156
|
+
*/
|
|
47157
|
+
AccessSettings.verify = function verify(message) {
|
|
47158
|
+
if (typeof message !== "object" || message === null)
|
|
47159
|
+
return "object expected";
|
|
47160
|
+
if (message.accessState != null && message.hasOwnProperty("accessState"))
|
|
47161
|
+
switch (message.accessState) {
|
|
47162
|
+
default:
|
|
47163
|
+
return "accessState: enum value expected";
|
|
47164
|
+
case 0:
|
|
47165
|
+
case 1:
|
|
47166
|
+
case 2:
|
|
47167
|
+
break;
|
|
47168
|
+
}
|
|
47169
|
+
if (message.audience != null && message.hasOwnProperty("audience"))
|
|
47170
|
+
if (!$util.isString(message.audience))
|
|
47171
|
+
return "audience: string expected";
|
|
47172
|
+
return null;
|
|
47173
|
+
};
|
|
47174
|
+
|
|
47175
|
+
/**
|
|
47176
|
+
* Creates an AccessSettings message from a plain object. Also converts values to their respective internal types.
|
|
47177
|
+
* @function fromObject
|
|
47178
|
+
* @memberof google.chat.v1.Space.AccessSettings
|
|
47179
|
+
* @static
|
|
47180
|
+
* @param {Object.<string,*>} object Plain object
|
|
47181
|
+
* @returns {google.chat.v1.Space.AccessSettings} AccessSettings
|
|
47182
|
+
*/
|
|
47183
|
+
AccessSettings.fromObject = function fromObject(object) {
|
|
47184
|
+
if (object instanceof $root.google.chat.v1.Space.AccessSettings)
|
|
47185
|
+
return object;
|
|
47186
|
+
var message = new $root.google.chat.v1.Space.AccessSettings();
|
|
47187
|
+
switch (object.accessState) {
|
|
47188
|
+
default:
|
|
47189
|
+
if (typeof object.accessState === "number") {
|
|
47190
|
+
message.accessState = object.accessState;
|
|
47191
|
+
break;
|
|
47192
|
+
}
|
|
47193
|
+
break;
|
|
47194
|
+
case "ACCESS_STATE_UNSPECIFIED":
|
|
47195
|
+
case 0:
|
|
47196
|
+
message.accessState = 0;
|
|
47197
|
+
break;
|
|
47198
|
+
case "PRIVATE":
|
|
47199
|
+
case 1:
|
|
47200
|
+
message.accessState = 1;
|
|
47201
|
+
break;
|
|
47202
|
+
case "DISCOVERABLE":
|
|
47203
|
+
case 2:
|
|
47204
|
+
message.accessState = 2;
|
|
47205
|
+
break;
|
|
47206
|
+
}
|
|
47207
|
+
if (object.audience != null)
|
|
47208
|
+
message.audience = String(object.audience);
|
|
47209
|
+
return message;
|
|
47210
|
+
};
|
|
47211
|
+
|
|
47212
|
+
/**
|
|
47213
|
+
* Creates a plain object from an AccessSettings message. Also converts values to other types if specified.
|
|
47214
|
+
* @function toObject
|
|
47215
|
+
* @memberof google.chat.v1.Space.AccessSettings
|
|
47216
|
+
* @static
|
|
47217
|
+
* @param {google.chat.v1.Space.AccessSettings} message AccessSettings
|
|
47218
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
47219
|
+
* @returns {Object.<string,*>} Plain object
|
|
47220
|
+
*/
|
|
47221
|
+
AccessSettings.toObject = function toObject(message, options) {
|
|
47222
|
+
if (!options)
|
|
47223
|
+
options = {};
|
|
47224
|
+
var object = {};
|
|
47225
|
+
if (options.defaults) {
|
|
47226
|
+
object.accessState = options.enums === String ? "ACCESS_STATE_UNSPECIFIED" : 0;
|
|
47227
|
+
object.audience = "";
|
|
47228
|
+
}
|
|
47229
|
+
if (message.accessState != null && message.hasOwnProperty("accessState"))
|
|
47230
|
+
object.accessState = options.enums === String ? $root.google.chat.v1.Space.AccessSettings.AccessState[message.accessState] === undefined ? message.accessState : $root.google.chat.v1.Space.AccessSettings.AccessState[message.accessState] : message.accessState;
|
|
47231
|
+
if (message.audience != null && message.hasOwnProperty("audience"))
|
|
47232
|
+
object.audience = message.audience;
|
|
47233
|
+
return object;
|
|
47234
|
+
};
|
|
47235
|
+
|
|
47236
|
+
/**
|
|
47237
|
+
* Converts this AccessSettings to JSON.
|
|
47238
|
+
* @function toJSON
|
|
47239
|
+
* @memberof google.chat.v1.Space.AccessSettings
|
|
47240
|
+
* @instance
|
|
47241
|
+
* @returns {Object.<string,*>} JSON object
|
|
47242
|
+
*/
|
|
47243
|
+
AccessSettings.prototype.toJSON = function toJSON() {
|
|
47244
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
47245
|
+
};
|
|
47246
|
+
|
|
47247
|
+
/**
|
|
47248
|
+
* Gets the default type url for AccessSettings
|
|
47249
|
+
* @function getTypeUrl
|
|
47250
|
+
* @memberof google.chat.v1.Space.AccessSettings
|
|
47251
|
+
* @static
|
|
47252
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
47253
|
+
* @returns {string} The default type url
|
|
47254
|
+
*/
|
|
47255
|
+
AccessSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
47256
|
+
if (typeUrlPrefix === undefined) {
|
|
47257
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
47258
|
+
}
|
|
47259
|
+
return typeUrlPrefix + "/google.chat.v1.Space.AccessSettings";
|
|
46726
47260
|
};
|
|
46727
47261
|
|
|
46728
47262
|
/**
|
|
@@ -46744,28 +47278,1289 @@
|
|
|
46744
47278
|
return AccessSettings;
|
|
46745
47279
|
})();
|
|
46746
47280
|
|
|
46747
|
-
|
|
47281
|
+
/**
|
|
47282
|
+
* PredefinedPermissionSettings enum.
|
|
47283
|
+
* @name google.chat.v1.Space.PredefinedPermissionSettings
|
|
47284
|
+
* @enum {number}
|
|
47285
|
+
* @property {number} PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED=0 PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED value
|
|
47286
|
+
* @property {number} COLLABORATION_SPACE=1 COLLABORATION_SPACE value
|
|
47287
|
+
* @property {number} ANNOUNCEMENT_SPACE=2 ANNOUNCEMENT_SPACE value
|
|
47288
|
+
*/
|
|
47289
|
+
Space.PredefinedPermissionSettings = (function() {
|
|
47290
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
47291
|
+
values[valuesById[0] = "PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED"] = 0;
|
|
47292
|
+
values[valuesById[1] = "COLLABORATION_SPACE"] = 1;
|
|
47293
|
+
values[valuesById[2] = "ANNOUNCEMENT_SPACE"] = 2;
|
|
47294
|
+
return values;
|
|
47295
|
+
})();
|
|
47296
|
+
|
|
47297
|
+
Space.PermissionSettings = (function() {
|
|
47298
|
+
|
|
47299
|
+
/**
|
|
47300
|
+
* Properties of a PermissionSettings.
|
|
47301
|
+
* @memberof google.chat.v1.Space
|
|
47302
|
+
* @interface IPermissionSettings
|
|
47303
|
+
* @property {google.chat.v1.Space.IPermissionSetting|null} [manageMembersAndGroups] PermissionSettings manageMembersAndGroups
|
|
47304
|
+
* @property {google.chat.v1.Space.IPermissionSetting|null} [modifySpaceDetails] PermissionSettings modifySpaceDetails
|
|
47305
|
+
* @property {google.chat.v1.Space.IPermissionSetting|null} [toggleHistory] PermissionSettings toggleHistory
|
|
47306
|
+
* @property {google.chat.v1.Space.IPermissionSetting|null} [useAtMentionAll] PermissionSettings useAtMentionAll
|
|
47307
|
+
* @property {google.chat.v1.Space.IPermissionSetting|null} [manageApps] PermissionSettings manageApps
|
|
47308
|
+
* @property {google.chat.v1.Space.IPermissionSetting|null} [manageWebhooks] PermissionSettings manageWebhooks
|
|
47309
|
+
* @property {google.chat.v1.Space.IPermissionSetting|null} [postMessages] PermissionSettings postMessages
|
|
47310
|
+
* @property {google.chat.v1.Space.IPermissionSetting|null} [replyMessages] PermissionSettings replyMessages
|
|
47311
|
+
*/
|
|
47312
|
+
|
|
47313
|
+
/**
|
|
47314
|
+
* Constructs a new PermissionSettings.
|
|
47315
|
+
* @memberof google.chat.v1.Space
|
|
47316
|
+
* @classdesc Represents a PermissionSettings.
|
|
47317
|
+
* @implements IPermissionSettings
|
|
47318
|
+
* @constructor
|
|
47319
|
+
* @param {google.chat.v1.Space.IPermissionSettings=} [properties] Properties to set
|
|
47320
|
+
*/
|
|
47321
|
+
function PermissionSettings(properties) {
|
|
47322
|
+
if (properties)
|
|
47323
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47324
|
+
if (properties[keys[i]] != null)
|
|
47325
|
+
this[keys[i]] = properties[keys[i]];
|
|
47326
|
+
}
|
|
47327
|
+
|
|
47328
|
+
/**
|
|
47329
|
+
* PermissionSettings manageMembersAndGroups.
|
|
47330
|
+
* @member {google.chat.v1.Space.IPermissionSetting|null|undefined} manageMembersAndGroups
|
|
47331
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47332
|
+
* @instance
|
|
47333
|
+
*/
|
|
47334
|
+
PermissionSettings.prototype.manageMembersAndGroups = null;
|
|
47335
|
+
|
|
47336
|
+
/**
|
|
47337
|
+
* PermissionSettings modifySpaceDetails.
|
|
47338
|
+
* @member {google.chat.v1.Space.IPermissionSetting|null|undefined} modifySpaceDetails
|
|
47339
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47340
|
+
* @instance
|
|
47341
|
+
*/
|
|
47342
|
+
PermissionSettings.prototype.modifySpaceDetails = null;
|
|
47343
|
+
|
|
47344
|
+
/**
|
|
47345
|
+
* PermissionSettings toggleHistory.
|
|
47346
|
+
* @member {google.chat.v1.Space.IPermissionSetting|null|undefined} toggleHistory
|
|
47347
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47348
|
+
* @instance
|
|
47349
|
+
*/
|
|
47350
|
+
PermissionSettings.prototype.toggleHistory = null;
|
|
47351
|
+
|
|
47352
|
+
/**
|
|
47353
|
+
* PermissionSettings useAtMentionAll.
|
|
47354
|
+
* @member {google.chat.v1.Space.IPermissionSetting|null|undefined} useAtMentionAll
|
|
47355
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47356
|
+
* @instance
|
|
47357
|
+
*/
|
|
47358
|
+
PermissionSettings.prototype.useAtMentionAll = null;
|
|
47359
|
+
|
|
47360
|
+
/**
|
|
47361
|
+
* PermissionSettings manageApps.
|
|
47362
|
+
* @member {google.chat.v1.Space.IPermissionSetting|null|undefined} manageApps
|
|
47363
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47364
|
+
* @instance
|
|
47365
|
+
*/
|
|
47366
|
+
PermissionSettings.prototype.manageApps = null;
|
|
47367
|
+
|
|
47368
|
+
/**
|
|
47369
|
+
* PermissionSettings manageWebhooks.
|
|
47370
|
+
* @member {google.chat.v1.Space.IPermissionSetting|null|undefined} manageWebhooks
|
|
47371
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47372
|
+
* @instance
|
|
47373
|
+
*/
|
|
47374
|
+
PermissionSettings.prototype.manageWebhooks = null;
|
|
47375
|
+
|
|
47376
|
+
/**
|
|
47377
|
+
* PermissionSettings postMessages.
|
|
47378
|
+
* @member {google.chat.v1.Space.IPermissionSetting|null|undefined} postMessages
|
|
47379
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47380
|
+
* @instance
|
|
47381
|
+
*/
|
|
47382
|
+
PermissionSettings.prototype.postMessages = null;
|
|
47383
|
+
|
|
47384
|
+
/**
|
|
47385
|
+
* PermissionSettings replyMessages.
|
|
47386
|
+
* @member {google.chat.v1.Space.IPermissionSetting|null|undefined} replyMessages
|
|
47387
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47388
|
+
* @instance
|
|
47389
|
+
*/
|
|
47390
|
+
PermissionSettings.prototype.replyMessages = null;
|
|
47391
|
+
|
|
47392
|
+
// OneOf field names bound to virtual getters and setters
|
|
47393
|
+
var $oneOfFields;
|
|
47394
|
+
|
|
47395
|
+
/**
|
|
47396
|
+
* PermissionSettings _manageMembersAndGroups.
|
|
47397
|
+
* @member {"manageMembersAndGroups"|undefined} _manageMembersAndGroups
|
|
47398
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47399
|
+
* @instance
|
|
47400
|
+
*/
|
|
47401
|
+
Object.defineProperty(PermissionSettings.prototype, "_manageMembersAndGroups", {
|
|
47402
|
+
get: $util.oneOfGetter($oneOfFields = ["manageMembersAndGroups"]),
|
|
47403
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
47404
|
+
});
|
|
47405
|
+
|
|
47406
|
+
/**
|
|
47407
|
+
* PermissionSettings _modifySpaceDetails.
|
|
47408
|
+
* @member {"modifySpaceDetails"|undefined} _modifySpaceDetails
|
|
47409
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47410
|
+
* @instance
|
|
47411
|
+
*/
|
|
47412
|
+
Object.defineProperty(PermissionSettings.prototype, "_modifySpaceDetails", {
|
|
47413
|
+
get: $util.oneOfGetter($oneOfFields = ["modifySpaceDetails"]),
|
|
47414
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
47415
|
+
});
|
|
47416
|
+
|
|
47417
|
+
/**
|
|
47418
|
+
* PermissionSettings _toggleHistory.
|
|
47419
|
+
* @member {"toggleHistory"|undefined} _toggleHistory
|
|
47420
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47421
|
+
* @instance
|
|
47422
|
+
*/
|
|
47423
|
+
Object.defineProperty(PermissionSettings.prototype, "_toggleHistory", {
|
|
47424
|
+
get: $util.oneOfGetter($oneOfFields = ["toggleHistory"]),
|
|
47425
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
47426
|
+
});
|
|
47427
|
+
|
|
47428
|
+
/**
|
|
47429
|
+
* PermissionSettings _useAtMentionAll.
|
|
47430
|
+
* @member {"useAtMentionAll"|undefined} _useAtMentionAll
|
|
47431
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47432
|
+
* @instance
|
|
47433
|
+
*/
|
|
47434
|
+
Object.defineProperty(PermissionSettings.prototype, "_useAtMentionAll", {
|
|
47435
|
+
get: $util.oneOfGetter($oneOfFields = ["useAtMentionAll"]),
|
|
47436
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
47437
|
+
});
|
|
47438
|
+
|
|
47439
|
+
/**
|
|
47440
|
+
* PermissionSettings _manageApps.
|
|
47441
|
+
* @member {"manageApps"|undefined} _manageApps
|
|
47442
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47443
|
+
* @instance
|
|
47444
|
+
*/
|
|
47445
|
+
Object.defineProperty(PermissionSettings.prototype, "_manageApps", {
|
|
47446
|
+
get: $util.oneOfGetter($oneOfFields = ["manageApps"]),
|
|
47447
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
47448
|
+
});
|
|
47449
|
+
|
|
47450
|
+
/**
|
|
47451
|
+
* PermissionSettings _manageWebhooks.
|
|
47452
|
+
* @member {"manageWebhooks"|undefined} _manageWebhooks
|
|
47453
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47454
|
+
* @instance
|
|
47455
|
+
*/
|
|
47456
|
+
Object.defineProperty(PermissionSettings.prototype, "_manageWebhooks", {
|
|
47457
|
+
get: $util.oneOfGetter($oneOfFields = ["manageWebhooks"]),
|
|
47458
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
47459
|
+
});
|
|
47460
|
+
|
|
47461
|
+
/**
|
|
47462
|
+
* PermissionSettings _postMessages.
|
|
47463
|
+
* @member {"postMessages"|undefined} _postMessages
|
|
47464
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47465
|
+
* @instance
|
|
47466
|
+
*/
|
|
47467
|
+
Object.defineProperty(PermissionSettings.prototype, "_postMessages", {
|
|
47468
|
+
get: $util.oneOfGetter($oneOfFields = ["postMessages"]),
|
|
47469
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
47470
|
+
});
|
|
47471
|
+
|
|
47472
|
+
/**
|
|
47473
|
+
* PermissionSettings _replyMessages.
|
|
47474
|
+
* @member {"replyMessages"|undefined} _replyMessages
|
|
47475
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47476
|
+
* @instance
|
|
47477
|
+
*/
|
|
47478
|
+
Object.defineProperty(PermissionSettings.prototype, "_replyMessages", {
|
|
47479
|
+
get: $util.oneOfGetter($oneOfFields = ["replyMessages"]),
|
|
47480
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
47481
|
+
});
|
|
47482
|
+
|
|
47483
|
+
/**
|
|
47484
|
+
* Creates a new PermissionSettings instance using the specified properties.
|
|
47485
|
+
* @function create
|
|
47486
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47487
|
+
* @static
|
|
47488
|
+
* @param {google.chat.v1.Space.IPermissionSettings=} [properties] Properties to set
|
|
47489
|
+
* @returns {google.chat.v1.Space.PermissionSettings} PermissionSettings instance
|
|
47490
|
+
*/
|
|
47491
|
+
PermissionSettings.create = function create(properties) {
|
|
47492
|
+
return new PermissionSettings(properties);
|
|
47493
|
+
};
|
|
47494
|
+
|
|
47495
|
+
/**
|
|
47496
|
+
* Encodes the specified PermissionSettings message. Does not implicitly {@link google.chat.v1.Space.PermissionSettings.verify|verify} messages.
|
|
47497
|
+
* @function encode
|
|
47498
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47499
|
+
* @static
|
|
47500
|
+
* @param {google.chat.v1.Space.IPermissionSettings} message PermissionSettings message or plain object to encode
|
|
47501
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47502
|
+
* @returns {$protobuf.Writer} Writer
|
|
47503
|
+
*/
|
|
47504
|
+
PermissionSettings.encode = function encode(message, writer) {
|
|
47505
|
+
if (!writer)
|
|
47506
|
+
writer = $Writer.create();
|
|
47507
|
+
if (message.manageMembersAndGroups != null && Object.hasOwnProperty.call(message, "manageMembersAndGroups"))
|
|
47508
|
+
$root.google.chat.v1.Space.PermissionSetting.encode(message.manageMembersAndGroups, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
47509
|
+
if (message.modifySpaceDetails != null && Object.hasOwnProperty.call(message, "modifySpaceDetails"))
|
|
47510
|
+
$root.google.chat.v1.Space.PermissionSetting.encode(message.modifySpaceDetails, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
47511
|
+
if (message.toggleHistory != null && Object.hasOwnProperty.call(message, "toggleHistory"))
|
|
47512
|
+
$root.google.chat.v1.Space.PermissionSetting.encode(message.toggleHistory, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
47513
|
+
if (message.useAtMentionAll != null && Object.hasOwnProperty.call(message, "useAtMentionAll"))
|
|
47514
|
+
$root.google.chat.v1.Space.PermissionSetting.encode(message.useAtMentionAll, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
47515
|
+
if (message.manageApps != null && Object.hasOwnProperty.call(message, "manageApps"))
|
|
47516
|
+
$root.google.chat.v1.Space.PermissionSetting.encode(message.manageApps, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
47517
|
+
if (message.manageWebhooks != null && Object.hasOwnProperty.call(message, "manageWebhooks"))
|
|
47518
|
+
$root.google.chat.v1.Space.PermissionSetting.encode(message.manageWebhooks, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
47519
|
+
if (message.postMessages != null && Object.hasOwnProperty.call(message, "postMessages"))
|
|
47520
|
+
$root.google.chat.v1.Space.PermissionSetting.encode(message.postMessages, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
47521
|
+
if (message.replyMessages != null && Object.hasOwnProperty.call(message, "replyMessages"))
|
|
47522
|
+
$root.google.chat.v1.Space.PermissionSetting.encode(message.replyMessages, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
47523
|
+
return writer;
|
|
47524
|
+
};
|
|
47525
|
+
|
|
47526
|
+
/**
|
|
47527
|
+
* Encodes the specified PermissionSettings message, length delimited. Does not implicitly {@link google.chat.v1.Space.PermissionSettings.verify|verify} messages.
|
|
47528
|
+
* @function encodeDelimited
|
|
47529
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47530
|
+
* @static
|
|
47531
|
+
* @param {google.chat.v1.Space.IPermissionSettings} message PermissionSettings message or plain object to encode
|
|
47532
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47533
|
+
* @returns {$protobuf.Writer} Writer
|
|
47534
|
+
*/
|
|
47535
|
+
PermissionSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
47536
|
+
return this.encode(message, writer).ldelim();
|
|
47537
|
+
};
|
|
47538
|
+
|
|
47539
|
+
/**
|
|
47540
|
+
* Decodes a PermissionSettings message from the specified reader or buffer.
|
|
47541
|
+
* @function decode
|
|
47542
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47543
|
+
* @static
|
|
47544
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47545
|
+
* @param {number} [length] Message length if known beforehand
|
|
47546
|
+
* @returns {google.chat.v1.Space.PermissionSettings} PermissionSettings
|
|
47547
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47548
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47549
|
+
*/
|
|
47550
|
+
PermissionSettings.decode = function decode(reader, length) {
|
|
47551
|
+
if (!(reader instanceof $Reader))
|
|
47552
|
+
reader = $Reader.create(reader);
|
|
47553
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.Space.PermissionSettings();
|
|
47554
|
+
while (reader.pos < end) {
|
|
47555
|
+
var tag = reader.uint32();
|
|
47556
|
+
switch (tag >>> 3) {
|
|
47557
|
+
case 1: {
|
|
47558
|
+
message.manageMembersAndGroups = $root.google.chat.v1.Space.PermissionSetting.decode(reader, reader.uint32());
|
|
47559
|
+
break;
|
|
47560
|
+
}
|
|
47561
|
+
case 2: {
|
|
47562
|
+
message.modifySpaceDetails = $root.google.chat.v1.Space.PermissionSetting.decode(reader, reader.uint32());
|
|
47563
|
+
break;
|
|
47564
|
+
}
|
|
47565
|
+
case 3: {
|
|
47566
|
+
message.toggleHistory = $root.google.chat.v1.Space.PermissionSetting.decode(reader, reader.uint32());
|
|
47567
|
+
break;
|
|
47568
|
+
}
|
|
47569
|
+
case 4: {
|
|
47570
|
+
message.useAtMentionAll = $root.google.chat.v1.Space.PermissionSetting.decode(reader, reader.uint32());
|
|
47571
|
+
break;
|
|
47572
|
+
}
|
|
47573
|
+
case 5: {
|
|
47574
|
+
message.manageApps = $root.google.chat.v1.Space.PermissionSetting.decode(reader, reader.uint32());
|
|
47575
|
+
break;
|
|
47576
|
+
}
|
|
47577
|
+
case 6: {
|
|
47578
|
+
message.manageWebhooks = $root.google.chat.v1.Space.PermissionSetting.decode(reader, reader.uint32());
|
|
47579
|
+
break;
|
|
47580
|
+
}
|
|
47581
|
+
case 7: {
|
|
47582
|
+
message.postMessages = $root.google.chat.v1.Space.PermissionSetting.decode(reader, reader.uint32());
|
|
47583
|
+
break;
|
|
47584
|
+
}
|
|
47585
|
+
case 8: {
|
|
47586
|
+
message.replyMessages = $root.google.chat.v1.Space.PermissionSetting.decode(reader, reader.uint32());
|
|
47587
|
+
break;
|
|
47588
|
+
}
|
|
47589
|
+
default:
|
|
47590
|
+
reader.skipType(tag & 7);
|
|
47591
|
+
break;
|
|
47592
|
+
}
|
|
47593
|
+
}
|
|
47594
|
+
return message;
|
|
47595
|
+
};
|
|
47596
|
+
|
|
47597
|
+
/**
|
|
47598
|
+
* Decodes a PermissionSettings message from the specified reader or buffer, length delimited.
|
|
47599
|
+
* @function decodeDelimited
|
|
47600
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47601
|
+
* @static
|
|
47602
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47603
|
+
* @returns {google.chat.v1.Space.PermissionSettings} PermissionSettings
|
|
47604
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47605
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47606
|
+
*/
|
|
47607
|
+
PermissionSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
47608
|
+
if (!(reader instanceof $Reader))
|
|
47609
|
+
reader = new $Reader(reader);
|
|
47610
|
+
return this.decode(reader, reader.uint32());
|
|
47611
|
+
};
|
|
47612
|
+
|
|
47613
|
+
/**
|
|
47614
|
+
* Verifies a PermissionSettings message.
|
|
47615
|
+
* @function verify
|
|
47616
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47617
|
+
* @static
|
|
47618
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
47619
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
47620
|
+
*/
|
|
47621
|
+
PermissionSettings.verify = function verify(message) {
|
|
47622
|
+
if (typeof message !== "object" || message === null)
|
|
47623
|
+
return "object expected";
|
|
47624
|
+
var properties = {};
|
|
47625
|
+
if (message.manageMembersAndGroups != null && message.hasOwnProperty("manageMembersAndGroups")) {
|
|
47626
|
+
properties._manageMembersAndGroups = 1;
|
|
47627
|
+
{
|
|
47628
|
+
var error = $root.google.chat.v1.Space.PermissionSetting.verify(message.manageMembersAndGroups);
|
|
47629
|
+
if (error)
|
|
47630
|
+
return "manageMembersAndGroups." + error;
|
|
47631
|
+
}
|
|
47632
|
+
}
|
|
47633
|
+
if (message.modifySpaceDetails != null && message.hasOwnProperty("modifySpaceDetails")) {
|
|
47634
|
+
properties._modifySpaceDetails = 1;
|
|
47635
|
+
{
|
|
47636
|
+
var error = $root.google.chat.v1.Space.PermissionSetting.verify(message.modifySpaceDetails);
|
|
47637
|
+
if (error)
|
|
47638
|
+
return "modifySpaceDetails." + error;
|
|
47639
|
+
}
|
|
47640
|
+
}
|
|
47641
|
+
if (message.toggleHistory != null && message.hasOwnProperty("toggleHistory")) {
|
|
47642
|
+
properties._toggleHistory = 1;
|
|
47643
|
+
{
|
|
47644
|
+
var error = $root.google.chat.v1.Space.PermissionSetting.verify(message.toggleHistory);
|
|
47645
|
+
if (error)
|
|
47646
|
+
return "toggleHistory." + error;
|
|
47647
|
+
}
|
|
47648
|
+
}
|
|
47649
|
+
if (message.useAtMentionAll != null && message.hasOwnProperty("useAtMentionAll")) {
|
|
47650
|
+
properties._useAtMentionAll = 1;
|
|
47651
|
+
{
|
|
47652
|
+
var error = $root.google.chat.v1.Space.PermissionSetting.verify(message.useAtMentionAll);
|
|
47653
|
+
if (error)
|
|
47654
|
+
return "useAtMentionAll." + error;
|
|
47655
|
+
}
|
|
47656
|
+
}
|
|
47657
|
+
if (message.manageApps != null && message.hasOwnProperty("manageApps")) {
|
|
47658
|
+
properties._manageApps = 1;
|
|
47659
|
+
{
|
|
47660
|
+
var error = $root.google.chat.v1.Space.PermissionSetting.verify(message.manageApps);
|
|
47661
|
+
if (error)
|
|
47662
|
+
return "manageApps." + error;
|
|
47663
|
+
}
|
|
47664
|
+
}
|
|
47665
|
+
if (message.manageWebhooks != null && message.hasOwnProperty("manageWebhooks")) {
|
|
47666
|
+
properties._manageWebhooks = 1;
|
|
47667
|
+
{
|
|
47668
|
+
var error = $root.google.chat.v1.Space.PermissionSetting.verify(message.manageWebhooks);
|
|
47669
|
+
if (error)
|
|
47670
|
+
return "manageWebhooks." + error;
|
|
47671
|
+
}
|
|
47672
|
+
}
|
|
47673
|
+
if (message.postMessages != null && message.hasOwnProperty("postMessages")) {
|
|
47674
|
+
properties._postMessages = 1;
|
|
47675
|
+
{
|
|
47676
|
+
var error = $root.google.chat.v1.Space.PermissionSetting.verify(message.postMessages);
|
|
47677
|
+
if (error)
|
|
47678
|
+
return "postMessages." + error;
|
|
47679
|
+
}
|
|
47680
|
+
}
|
|
47681
|
+
if (message.replyMessages != null && message.hasOwnProperty("replyMessages")) {
|
|
47682
|
+
properties._replyMessages = 1;
|
|
47683
|
+
{
|
|
47684
|
+
var error = $root.google.chat.v1.Space.PermissionSetting.verify(message.replyMessages);
|
|
47685
|
+
if (error)
|
|
47686
|
+
return "replyMessages." + error;
|
|
47687
|
+
}
|
|
47688
|
+
}
|
|
47689
|
+
return null;
|
|
47690
|
+
};
|
|
47691
|
+
|
|
47692
|
+
/**
|
|
47693
|
+
* Creates a PermissionSettings message from a plain object. Also converts values to their respective internal types.
|
|
47694
|
+
* @function fromObject
|
|
47695
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47696
|
+
* @static
|
|
47697
|
+
* @param {Object.<string,*>} object Plain object
|
|
47698
|
+
* @returns {google.chat.v1.Space.PermissionSettings} PermissionSettings
|
|
47699
|
+
*/
|
|
47700
|
+
PermissionSettings.fromObject = function fromObject(object) {
|
|
47701
|
+
if (object instanceof $root.google.chat.v1.Space.PermissionSettings)
|
|
47702
|
+
return object;
|
|
47703
|
+
var message = new $root.google.chat.v1.Space.PermissionSettings();
|
|
47704
|
+
if (object.manageMembersAndGroups != null) {
|
|
47705
|
+
if (typeof object.manageMembersAndGroups !== "object")
|
|
47706
|
+
throw TypeError(".google.chat.v1.Space.PermissionSettings.manageMembersAndGroups: object expected");
|
|
47707
|
+
message.manageMembersAndGroups = $root.google.chat.v1.Space.PermissionSetting.fromObject(object.manageMembersAndGroups);
|
|
47708
|
+
}
|
|
47709
|
+
if (object.modifySpaceDetails != null) {
|
|
47710
|
+
if (typeof object.modifySpaceDetails !== "object")
|
|
47711
|
+
throw TypeError(".google.chat.v1.Space.PermissionSettings.modifySpaceDetails: object expected");
|
|
47712
|
+
message.modifySpaceDetails = $root.google.chat.v1.Space.PermissionSetting.fromObject(object.modifySpaceDetails);
|
|
47713
|
+
}
|
|
47714
|
+
if (object.toggleHistory != null) {
|
|
47715
|
+
if (typeof object.toggleHistory !== "object")
|
|
47716
|
+
throw TypeError(".google.chat.v1.Space.PermissionSettings.toggleHistory: object expected");
|
|
47717
|
+
message.toggleHistory = $root.google.chat.v1.Space.PermissionSetting.fromObject(object.toggleHistory);
|
|
47718
|
+
}
|
|
47719
|
+
if (object.useAtMentionAll != null) {
|
|
47720
|
+
if (typeof object.useAtMentionAll !== "object")
|
|
47721
|
+
throw TypeError(".google.chat.v1.Space.PermissionSettings.useAtMentionAll: object expected");
|
|
47722
|
+
message.useAtMentionAll = $root.google.chat.v1.Space.PermissionSetting.fromObject(object.useAtMentionAll);
|
|
47723
|
+
}
|
|
47724
|
+
if (object.manageApps != null) {
|
|
47725
|
+
if (typeof object.manageApps !== "object")
|
|
47726
|
+
throw TypeError(".google.chat.v1.Space.PermissionSettings.manageApps: object expected");
|
|
47727
|
+
message.manageApps = $root.google.chat.v1.Space.PermissionSetting.fromObject(object.manageApps);
|
|
47728
|
+
}
|
|
47729
|
+
if (object.manageWebhooks != null) {
|
|
47730
|
+
if (typeof object.manageWebhooks !== "object")
|
|
47731
|
+
throw TypeError(".google.chat.v1.Space.PermissionSettings.manageWebhooks: object expected");
|
|
47732
|
+
message.manageWebhooks = $root.google.chat.v1.Space.PermissionSetting.fromObject(object.manageWebhooks);
|
|
47733
|
+
}
|
|
47734
|
+
if (object.postMessages != null) {
|
|
47735
|
+
if (typeof object.postMessages !== "object")
|
|
47736
|
+
throw TypeError(".google.chat.v1.Space.PermissionSettings.postMessages: object expected");
|
|
47737
|
+
message.postMessages = $root.google.chat.v1.Space.PermissionSetting.fromObject(object.postMessages);
|
|
47738
|
+
}
|
|
47739
|
+
if (object.replyMessages != null) {
|
|
47740
|
+
if (typeof object.replyMessages !== "object")
|
|
47741
|
+
throw TypeError(".google.chat.v1.Space.PermissionSettings.replyMessages: object expected");
|
|
47742
|
+
message.replyMessages = $root.google.chat.v1.Space.PermissionSetting.fromObject(object.replyMessages);
|
|
47743
|
+
}
|
|
47744
|
+
return message;
|
|
47745
|
+
};
|
|
47746
|
+
|
|
47747
|
+
/**
|
|
47748
|
+
* Creates a plain object from a PermissionSettings message. Also converts values to other types if specified.
|
|
47749
|
+
* @function toObject
|
|
47750
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47751
|
+
* @static
|
|
47752
|
+
* @param {google.chat.v1.Space.PermissionSettings} message PermissionSettings
|
|
47753
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
47754
|
+
* @returns {Object.<string,*>} Plain object
|
|
47755
|
+
*/
|
|
47756
|
+
PermissionSettings.toObject = function toObject(message, options) {
|
|
47757
|
+
if (!options)
|
|
47758
|
+
options = {};
|
|
47759
|
+
var object = {};
|
|
47760
|
+
if (message.manageMembersAndGroups != null && message.hasOwnProperty("manageMembersAndGroups")) {
|
|
47761
|
+
object.manageMembersAndGroups = $root.google.chat.v1.Space.PermissionSetting.toObject(message.manageMembersAndGroups, options);
|
|
47762
|
+
if (options.oneofs)
|
|
47763
|
+
object._manageMembersAndGroups = "manageMembersAndGroups";
|
|
47764
|
+
}
|
|
47765
|
+
if (message.modifySpaceDetails != null && message.hasOwnProperty("modifySpaceDetails")) {
|
|
47766
|
+
object.modifySpaceDetails = $root.google.chat.v1.Space.PermissionSetting.toObject(message.modifySpaceDetails, options);
|
|
47767
|
+
if (options.oneofs)
|
|
47768
|
+
object._modifySpaceDetails = "modifySpaceDetails";
|
|
47769
|
+
}
|
|
47770
|
+
if (message.toggleHistory != null && message.hasOwnProperty("toggleHistory")) {
|
|
47771
|
+
object.toggleHistory = $root.google.chat.v1.Space.PermissionSetting.toObject(message.toggleHistory, options);
|
|
47772
|
+
if (options.oneofs)
|
|
47773
|
+
object._toggleHistory = "toggleHistory";
|
|
47774
|
+
}
|
|
47775
|
+
if (message.useAtMentionAll != null && message.hasOwnProperty("useAtMentionAll")) {
|
|
47776
|
+
object.useAtMentionAll = $root.google.chat.v1.Space.PermissionSetting.toObject(message.useAtMentionAll, options);
|
|
47777
|
+
if (options.oneofs)
|
|
47778
|
+
object._useAtMentionAll = "useAtMentionAll";
|
|
47779
|
+
}
|
|
47780
|
+
if (message.manageApps != null && message.hasOwnProperty("manageApps")) {
|
|
47781
|
+
object.manageApps = $root.google.chat.v1.Space.PermissionSetting.toObject(message.manageApps, options);
|
|
47782
|
+
if (options.oneofs)
|
|
47783
|
+
object._manageApps = "manageApps";
|
|
47784
|
+
}
|
|
47785
|
+
if (message.manageWebhooks != null && message.hasOwnProperty("manageWebhooks")) {
|
|
47786
|
+
object.manageWebhooks = $root.google.chat.v1.Space.PermissionSetting.toObject(message.manageWebhooks, options);
|
|
47787
|
+
if (options.oneofs)
|
|
47788
|
+
object._manageWebhooks = "manageWebhooks";
|
|
47789
|
+
}
|
|
47790
|
+
if (message.postMessages != null && message.hasOwnProperty("postMessages")) {
|
|
47791
|
+
object.postMessages = $root.google.chat.v1.Space.PermissionSetting.toObject(message.postMessages, options);
|
|
47792
|
+
if (options.oneofs)
|
|
47793
|
+
object._postMessages = "postMessages";
|
|
47794
|
+
}
|
|
47795
|
+
if (message.replyMessages != null && message.hasOwnProperty("replyMessages")) {
|
|
47796
|
+
object.replyMessages = $root.google.chat.v1.Space.PermissionSetting.toObject(message.replyMessages, options);
|
|
47797
|
+
if (options.oneofs)
|
|
47798
|
+
object._replyMessages = "replyMessages";
|
|
47799
|
+
}
|
|
47800
|
+
return object;
|
|
47801
|
+
};
|
|
47802
|
+
|
|
47803
|
+
/**
|
|
47804
|
+
* Converts this PermissionSettings to JSON.
|
|
47805
|
+
* @function toJSON
|
|
47806
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47807
|
+
* @instance
|
|
47808
|
+
* @returns {Object.<string,*>} JSON object
|
|
47809
|
+
*/
|
|
47810
|
+
PermissionSettings.prototype.toJSON = function toJSON() {
|
|
47811
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
47812
|
+
};
|
|
47813
|
+
|
|
47814
|
+
/**
|
|
47815
|
+
* Gets the default type url for PermissionSettings
|
|
47816
|
+
* @function getTypeUrl
|
|
47817
|
+
* @memberof google.chat.v1.Space.PermissionSettings
|
|
47818
|
+
* @static
|
|
47819
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
47820
|
+
* @returns {string} The default type url
|
|
47821
|
+
*/
|
|
47822
|
+
PermissionSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
47823
|
+
if (typeUrlPrefix === undefined) {
|
|
47824
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
47825
|
+
}
|
|
47826
|
+
return typeUrlPrefix + "/google.chat.v1.Space.PermissionSettings";
|
|
47827
|
+
};
|
|
47828
|
+
|
|
47829
|
+
return PermissionSettings;
|
|
47830
|
+
})();
|
|
47831
|
+
|
|
47832
|
+
Space.PermissionSetting = (function() {
|
|
47833
|
+
|
|
47834
|
+
/**
|
|
47835
|
+
* Properties of a PermissionSetting.
|
|
47836
|
+
* @memberof google.chat.v1.Space
|
|
47837
|
+
* @interface IPermissionSetting
|
|
47838
|
+
* @property {boolean|null} [managersAllowed] PermissionSetting managersAllowed
|
|
47839
|
+
* @property {boolean|null} [membersAllowed] PermissionSetting membersAllowed
|
|
47840
|
+
*/
|
|
47841
|
+
|
|
47842
|
+
/**
|
|
47843
|
+
* Constructs a new PermissionSetting.
|
|
47844
|
+
* @memberof google.chat.v1.Space
|
|
47845
|
+
* @classdesc Represents a PermissionSetting.
|
|
47846
|
+
* @implements IPermissionSetting
|
|
47847
|
+
* @constructor
|
|
47848
|
+
* @param {google.chat.v1.Space.IPermissionSetting=} [properties] Properties to set
|
|
47849
|
+
*/
|
|
47850
|
+
function PermissionSetting(properties) {
|
|
47851
|
+
if (properties)
|
|
47852
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47853
|
+
if (properties[keys[i]] != null)
|
|
47854
|
+
this[keys[i]] = properties[keys[i]];
|
|
47855
|
+
}
|
|
47856
|
+
|
|
47857
|
+
/**
|
|
47858
|
+
* PermissionSetting managersAllowed.
|
|
47859
|
+
* @member {boolean} managersAllowed
|
|
47860
|
+
* @memberof google.chat.v1.Space.PermissionSetting
|
|
47861
|
+
* @instance
|
|
47862
|
+
*/
|
|
47863
|
+
PermissionSetting.prototype.managersAllowed = false;
|
|
47864
|
+
|
|
47865
|
+
/**
|
|
47866
|
+
* PermissionSetting membersAllowed.
|
|
47867
|
+
* @member {boolean} membersAllowed
|
|
47868
|
+
* @memberof google.chat.v1.Space.PermissionSetting
|
|
47869
|
+
* @instance
|
|
47870
|
+
*/
|
|
47871
|
+
PermissionSetting.prototype.membersAllowed = false;
|
|
47872
|
+
|
|
47873
|
+
/**
|
|
47874
|
+
* Creates a new PermissionSetting instance using the specified properties.
|
|
47875
|
+
* @function create
|
|
47876
|
+
* @memberof google.chat.v1.Space.PermissionSetting
|
|
47877
|
+
* @static
|
|
47878
|
+
* @param {google.chat.v1.Space.IPermissionSetting=} [properties] Properties to set
|
|
47879
|
+
* @returns {google.chat.v1.Space.PermissionSetting} PermissionSetting instance
|
|
47880
|
+
*/
|
|
47881
|
+
PermissionSetting.create = function create(properties) {
|
|
47882
|
+
return new PermissionSetting(properties);
|
|
47883
|
+
};
|
|
47884
|
+
|
|
47885
|
+
/**
|
|
47886
|
+
* Encodes the specified PermissionSetting message. Does not implicitly {@link google.chat.v1.Space.PermissionSetting.verify|verify} messages.
|
|
47887
|
+
* @function encode
|
|
47888
|
+
* @memberof google.chat.v1.Space.PermissionSetting
|
|
47889
|
+
* @static
|
|
47890
|
+
* @param {google.chat.v1.Space.IPermissionSetting} message PermissionSetting message or plain object to encode
|
|
47891
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47892
|
+
* @returns {$protobuf.Writer} Writer
|
|
47893
|
+
*/
|
|
47894
|
+
PermissionSetting.encode = function encode(message, writer) {
|
|
47895
|
+
if (!writer)
|
|
47896
|
+
writer = $Writer.create();
|
|
47897
|
+
if (message.managersAllowed != null && Object.hasOwnProperty.call(message, "managersAllowed"))
|
|
47898
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.managersAllowed);
|
|
47899
|
+
if (message.membersAllowed != null && Object.hasOwnProperty.call(message, "membersAllowed"))
|
|
47900
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.membersAllowed);
|
|
47901
|
+
return writer;
|
|
47902
|
+
};
|
|
47903
|
+
|
|
47904
|
+
/**
|
|
47905
|
+
* Encodes the specified PermissionSetting message, length delimited. Does not implicitly {@link google.chat.v1.Space.PermissionSetting.verify|verify} messages.
|
|
47906
|
+
* @function encodeDelimited
|
|
47907
|
+
* @memberof google.chat.v1.Space.PermissionSetting
|
|
47908
|
+
* @static
|
|
47909
|
+
* @param {google.chat.v1.Space.IPermissionSetting} message PermissionSetting message or plain object to encode
|
|
47910
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47911
|
+
* @returns {$protobuf.Writer} Writer
|
|
47912
|
+
*/
|
|
47913
|
+
PermissionSetting.encodeDelimited = function encodeDelimited(message, writer) {
|
|
47914
|
+
return this.encode(message, writer).ldelim();
|
|
47915
|
+
};
|
|
47916
|
+
|
|
47917
|
+
/**
|
|
47918
|
+
* Decodes a PermissionSetting message from the specified reader or buffer.
|
|
47919
|
+
* @function decode
|
|
47920
|
+
* @memberof google.chat.v1.Space.PermissionSetting
|
|
47921
|
+
* @static
|
|
47922
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47923
|
+
* @param {number} [length] Message length if known beforehand
|
|
47924
|
+
* @returns {google.chat.v1.Space.PermissionSetting} PermissionSetting
|
|
47925
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47926
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47927
|
+
*/
|
|
47928
|
+
PermissionSetting.decode = function decode(reader, length) {
|
|
47929
|
+
if (!(reader instanceof $Reader))
|
|
47930
|
+
reader = $Reader.create(reader);
|
|
47931
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.Space.PermissionSetting();
|
|
47932
|
+
while (reader.pos < end) {
|
|
47933
|
+
var tag = reader.uint32();
|
|
47934
|
+
switch (tag >>> 3) {
|
|
47935
|
+
case 1: {
|
|
47936
|
+
message.managersAllowed = reader.bool();
|
|
47937
|
+
break;
|
|
47938
|
+
}
|
|
47939
|
+
case 2: {
|
|
47940
|
+
message.membersAllowed = reader.bool();
|
|
47941
|
+
break;
|
|
47942
|
+
}
|
|
47943
|
+
default:
|
|
47944
|
+
reader.skipType(tag & 7);
|
|
47945
|
+
break;
|
|
47946
|
+
}
|
|
47947
|
+
}
|
|
47948
|
+
return message;
|
|
47949
|
+
};
|
|
47950
|
+
|
|
47951
|
+
/**
|
|
47952
|
+
* Decodes a PermissionSetting message from the specified reader or buffer, length delimited.
|
|
47953
|
+
* @function decodeDelimited
|
|
47954
|
+
* @memberof google.chat.v1.Space.PermissionSetting
|
|
47955
|
+
* @static
|
|
47956
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47957
|
+
* @returns {google.chat.v1.Space.PermissionSetting} PermissionSetting
|
|
47958
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47959
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47960
|
+
*/
|
|
47961
|
+
PermissionSetting.decodeDelimited = function decodeDelimited(reader) {
|
|
47962
|
+
if (!(reader instanceof $Reader))
|
|
47963
|
+
reader = new $Reader(reader);
|
|
47964
|
+
return this.decode(reader, reader.uint32());
|
|
47965
|
+
};
|
|
47966
|
+
|
|
47967
|
+
/**
|
|
47968
|
+
* Verifies a PermissionSetting message.
|
|
47969
|
+
* @function verify
|
|
47970
|
+
* @memberof google.chat.v1.Space.PermissionSetting
|
|
47971
|
+
* @static
|
|
47972
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
47973
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
47974
|
+
*/
|
|
47975
|
+
PermissionSetting.verify = function verify(message) {
|
|
47976
|
+
if (typeof message !== "object" || message === null)
|
|
47977
|
+
return "object expected";
|
|
47978
|
+
if (message.managersAllowed != null && message.hasOwnProperty("managersAllowed"))
|
|
47979
|
+
if (typeof message.managersAllowed !== "boolean")
|
|
47980
|
+
return "managersAllowed: boolean expected";
|
|
47981
|
+
if (message.membersAllowed != null && message.hasOwnProperty("membersAllowed"))
|
|
47982
|
+
if (typeof message.membersAllowed !== "boolean")
|
|
47983
|
+
return "membersAllowed: boolean expected";
|
|
47984
|
+
return null;
|
|
47985
|
+
};
|
|
47986
|
+
|
|
47987
|
+
/**
|
|
47988
|
+
* Creates a PermissionSetting message from a plain object. Also converts values to their respective internal types.
|
|
47989
|
+
* @function fromObject
|
|
47990
|
+
* @memberof google.chat.v1.Space.PermissionSetting
|
|
47991
|
+
* @static
|
|
47992
|
+
* @param {Object.<string,*>} object Plain object
|
|
47993
|
+
* @returns {google.chat.v1.Space.PermissionSetting} PermissionSetting
|
|
47994
|
+
*/
|
|
47995
|
+
PermissionSetting.fromObject = function fromObject(object) {
|
|
47996
|
+
if (object instanceof $root.google.chat.v1.Space.PermissionSetting)
|
|
47997
|
+
return object;
|
|
47998
|
+
var message = new $root.google.chat.v1.Space.PermissionSetting();
|
|
47999
|
+
if (object.managersAllowed != null)
|
|
48000
|
+
message.managersAllowed = Boolean(object.managersAllowed);
|
|
48001
|
+
if (object.membersAllowed != null)
|
|
48002
|
+
message.membersAllowed = Boolean(object.membersAllowed);
|
|
48003
|
+
return message;
|
|
48004
|
+
};
|
|
48005
|
+
|
|
48006
|
+
/**
|
|
48007
|
+
* Creates a plain object from a PermissionSetting message. Also converts values to other types if specified.
|
|
48008
|
+
* @function toObject
|
|
48009
|
+
* @memberof google.chat.v1.Space.PermissionSetting
|
|
48010
|
+
* @static
|
|
48011
|
+
* @param {google.chat.v1.Space.PermissionSetting} message PermissionSetting
|
|
48012
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
48013
|
+
* @returns {Object.<string,*>} Plain object
|
|
48014
|
+
*/
|
|
48015
|
+
PermissionSetting.toObject = function toObject(message, options) {
|
|
48016
|
+
if (!options)
|
|
48017
|
+
options = {};
|
|
48018
|
+
var object = {};
|
|
48019
|
+
if (options.defaults) {
|
|
48020
|
+
object.managersAllowed = false;
|
|
48021
|
+
object.membersAllowed = false;
|
|
48022
|
+
}
|
|
48023
|
+
if (message.managersAllowed != null && message.hasOwnProperty("managersAllowed"))
|
|
48024
|
+
object.managersAllowed = message.managersAllowed;
|
|
48025
|
+
if (message.membersAllowed != null && message.hasOwnProperty("membersAllowed"))
|
|
48026
|
+
object.membersAllowed = message.membersAllowed;
|
|
48027
|
+
return object;
|
|
48028
|
+
};
|
|
48029
|
+
|
|
48030
|
+
/**
|
|
48031
|
+
* Converts this PermissionSetting to JSON.
|
|
48032
|
+
* @function toJSON
|
|
48033
|
+
* @memberof google.chat.v1.Space.PermissionSetting
|
|
48034
|
+
* @instance
|
|
48035
|
+
* @returns {Object.<string,*>} JSON object
|
|
48036
|
+
*/
|
|
48037
|
+
PermissionSetting.prototype.toJSON = function toJSON() {
|
|
48038
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
48039
|
+
};
|
|
48040
|
+
|
|
48041
|
+
/**
|
|
48042
|
+
* Gets the default type url for PermissionSetting
|
|
48043
|
+
* @function getTypeUrl
|
|
48044
|
+
* @memberof google.chat.v1.Space.PermissionSetting
|
|
48045
|
+
* @static
|
|
48046
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
48047
|
+
* @returns {string} The default type url
|
|
48048
|
+
*/
|
|
48049
|
+
PermissionSetting.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
48050
|
+
if (typeUrlPrefix === undefined) {
|
|
48051
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
48052
|
+
}
|
|
48053
|
+
return typeUrlPrefix + "/google.chat.v1.Space.PermissionSetting";
|
|
48054
|
+
};
|
|
48055
|
+
|
|
48056
|
+
return PermissionSetting;
|
|
48057
|
+
})();
|
|
48058
|
+
|
|
48059
|
+
return Space;
|
|
48060
|
+
})();
|
|
48061
|
+
|
|
48062
|
+
v1.CreateSpaceRequest = (function() {
|
|
48063
|
+
|
|
48064
|
+
/**
|
|
48065
|
+
* Properties of a CreateSpaceRequest.
|
|
48066
|
+
* @memberof google.chat.v1
|
|
48067
|
+
* @interface ICreateSpaceRequest
|
|
48068
|
+
* @property {google.chat.v1.ISpace|null} [space] CreateSpaceRequest space
|
|
48069
|
+
* @property {string|null} [requestId] CreateSpaceRequest requestId
|
|
48070
|
+
*/
|
|
48071
|
+
|
|
48072
|
+
/**
|
|
48073
|
+
* Constructs a new CreateSpaceRequest.
|
|
48074
|
+
* @memberof google.chat.v1
|
|
48075
|
+
* @classdesc Represents a CreateSpaceRequest.
|
|
48076
|
+
* @implements ICreateSpaceRequest
|
|
48077
|
+
* @constructor
|
|
48078
|
+
* @param {google.chat.v1.ICreateSpaceRequest=} [properties] Properties to set
|
|
48079
|
+
*/
|
|
48080
|
+
function CreateSpaceRequest(properties) {
|
|
48081
|
+
if (properties)
|
|
48082
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
48083
|
+
if (properties[keys[i]] != null)
|
|
48084
|
+
this[keys[i]] = properties[keys[i]];
|
|
48085
|
+
}
|
|
48086
|
+
|
|
48087
|
+
/**
|
|
48088
|
+
* CreateSpaceRequest space.
|
|
48089
|
+
* @member {google.chat.v1.ISpace|null|undefined} space
|
|
48090
|
+
* @memberof google.chat.v1.CreateSpaceRequest
|
|
48091
|
+
* @instance
|
|
48092
|
+
*/
|
|
48093
|
+
CreateSpaceRequest.prototype.space = null;
|
|
48094
|
+
|
|
48095
|
+
/**
|
|
48096
|
+
* CreateSpaceRequest requestId.
|
|
48097
|
+
* @member {string} requestId
|
|
48098
|
+
* @memberof google.chat.v1.CreateSpaceRequest
|
|
48099
|
+
* @instance
|
|
48100
|
+
*/
|
|
48101
|
+
CreateSpaceRequest.prototype.requestId = "";
|
|
48102
|
+
|
|
48103
|
+
/**
|
|
48104
|
+
* Creates a new CreateSpaceRequest instance using the specified properties.
|
|
48105
|
+
* @function create
|
|
48106
|
+
* @memberof google.chat.v1.CreateSpaceRequest
|
|
48107
|
+
* @static
|
|
48108
|
+
* @param {google.chat.v1.ICreateSpaceRequest=} [properties] Properties to set
|
|
48109
|
+
* @returns {google.chat.v1.CreateSpaceRequest} CreateSpaceRequest instance
|
|
48110
|
+
*/
|
|
48111
|
+
CreateSpaceRequest.create = function create(properties) {
|
|
48112
|
+
return new CreateSpaceRequest(properties);
|
|
48113
|
+
};
|
|
48114
|
+
|
|
48115
|
+
/**
|
|
48116
|
+
* Encodes the specified CreateSpaceRequest message. Does not implicitly {@link google.chat.v1.CreateSpaceRequest.verify|verify} messages.
|
|
48117
|
+
* @function encode
|
|
48118
|
+
* @memberof google.chat.v1.CreateSpaceRequest
|
|
48119
|
+
* @static
|
|
48120
|
+
* @param {google.chat.v1.ICreateSpaceRequest} message CreateSpaceRequest message or plain object to encode
|
|
48121
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
48122
|
+
* @returns {$protobuf.Writer} Writer
|
|
48123
|
+
*/
|
|
48124
|
+
CreateSpaceRequest.encode = function encode(message, writer) {
|
|
48125
|
+
if (!writer)
|
|
48126
|
+
writer = $Writer.create();
|
|
48127
|
+
if (message.space != null && Object.hasOwnProperty.call(message, "space"))
|
|
48128
|
+
$root.google.chat.v1.Space.encode(message.space, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
48129
|
+
if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
|
|
48130
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId);
|
|
48131
|
+
return writer;
|
|
48132
|
+
};
|
|
48133
|
+
|
|
48134
|
+
/**
|
|
48135
|
+
* Encodes the specified CreateSpaceRequest message, length delimited. Does not implicitly {@link google.chat.v1.CreateSpaceRequest.verify|verify} messages.
|
|
48136
|
+
* @function encodeDelimited
|
|
48137
|
+
* @memberof google.chat.v1.CreateSpaceRequest
|
|
48138
|
+
* @static
|
|
48139
|
+
* @param {google.chat.v1.ICreateSpaceRequest} message CreateSpaceRequest message or plain object to encode
|
|
48140
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
48141
|
+
* @returns {$protobuf.Writer} Writer
|
|
48142
|
+
*/
|
|
48143
|
+
CreateSpaceRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
48144
|
+
return this.encode(message, writer).ldelim();
|
|
48145
|
+
};
|
|
48146
|
+
|
|
48147
|
+
/**
|
|
48148
|
+
* Decodes a CreateSpaceRequest message from the specified reader or buffer.
|
|
48149
|
+
* @function decode
|
|
48150
|
+
* @memberof google.chat.v1.CreateSpaceRequest
|
|
48151
|
+
* @static
|
|
48152
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
48153
|
+
* @param {number} [length] Message length if known beforehand
|
|
48154
|
+
* @returns {google.chat.v1.CreateSpaceRequest} CreateSpaceRequest
|
|
48155
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
48156
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
48157
|
+
*/
|
|
48158
|
+
CreateSpaceRequest.decode = function decode(reader, length) {
|
|
48159
|
+
if (!(reader instanceof $Reader))
|
|
48160
|
+
reader = $Reader.create(reader);
|
|
48161
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.CreateSpaceRequest();
|
|
48162
|
+
while (reader.pos < end) {
|
|
48163
|
+
var tag = reader.uint32();
|
|
48164
|
+
switch (tag >>> 3) {
|
|
48165
|
+
case 1: {
|
|
48166
|
+
message.space = $root.google.chat.v1.Space.decode(reader, reader.uint32());
|
|
48167
|
+
break;
|
|
48168
|
+
}
|
|
48169
|
+
case 2: {
|
|
48170
|
+
message.requestId = reader.string();
|
|
48171
|
+
break;
|
|
48172
|
+
}
|
|
48173
|
+
default:
|
|
48174
|
+
reader.skipType(tag & 7);
|
|
48175
|
+
break;
|
|
48176
|
+
}
|
|
48177
|
+
}
|
|
48178
|
+
return message;
|
|
48179
|
+
};
|
|
48180
|
+
|
|
48181
|
+
/**
|
|
48182
|
+
* Decodes a CreateSpaceRequest message from the specified reader or buffer, length delimited.
|
|
48183
|
+
* @function decodeDelimited
|
|
48184
|
+
* @memberof google.chat.v1.CreateSpaceRequest
|
|
48185
|
+
* @static
|
|
48186
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
48187
|
+
* @returns {google.chat.v1.CreateSpaceRequest} CreateSpaceRequest
|
|
48188
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
48189
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
48190
|
+
*/
|
|
48191
|
+
CreateSpaceRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
48192
|
+
if (!(reader instanceof $Reader))
|
|
48193
|
+
reader = new $Reader(reader);
|
|
48194
|
+
return this.decode(reader, reader.uint32());
|
|
48195
|
+
};
|
|
48196
|
+
|
|
48197
|
+
/**
|
|
48198
|
+
* Verifies a CreateSpaceRequest message.
|
|
48199
|
+
* @function verify
|
|
48200
|
+
* @memberof google.chat.v1.CreateSpaceRequest
|
|
48201
|
+
* @static
|
|
48202
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
48203
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
48204
|
+
*/
|
|
48205
|
+
CreateSpaceRequest.verify = function verify(message) {
|
|
48206
|
+
if (typeof message !== "object" || message === null)
|
|
48207
|
+
return "object expected";
|
|
48208
|
+
if (message.space != null && message.hasOwnProperty("space")) {
|
|
48209
|
+
var error = $root.google.chat.v1.Space.verify(message.space);
|
|
48210
|
+
if (error)
|
|
48211
|
+
return "space." + error;
|
|
48212
|
+
}
|
|
48213
|
+
if (message.requestId != null && message.hasOwnProperty("requestId"))
|
|
48214
|
+
if (!$util.isString(message.requestId))
|
|
48215
|
+
return "requestId: string expected";
|
|
48216
|
+
return null;
|
|
48217
|
+
};
|
|
48218
|
+
|
|
48219
|
+
/**
|
|
48220
|
+
* Creates a CreateSpaceRequest message from a plain object. Also converts values to their respective internal types.
|
|
48221
|
+
* @function fromObject
|
|
48222
|
+
* @memberof google.chat.v1.CreateSpaceRequest
|
|
48223
|
+
* @static
|
|
48224
|
+
* @param {Object.<string,*>} object Plain object
|
|
48225
|
+
* @returns {google.chat.v1.CreateSpaceRequest} CreateSpaceRequest
|
|
48226
|
+
*/
|
|
48227
|
+
CreateSpaceRequest.fromObject = function fromObject(object) {
|
|
48228
|
+
if (object instanceof $root.google.chat.v1.CreateSpaceRequest)
|
|
48229
|
+
return object;
|
|
48230
|
+
var message = new $root.google.chat.v1.CreateSpaceRequest();
|
|
48231
|
+
if (object.space != null) {
|
|
48232
|
+
if (typeof object.space !== "object")
|
|
48233
|
+
throw TypeError(".google.chat.v1.CreateSpaceRequest.space: object expected");
|
|
48234
|
+
message.space = $root.google.chat.v1.Space.fromObject(object.space);
|
|
48235
|
+
}
|
|
48236
|
+
if (object.requestId != null)
|
|
48237
|
+
message.requestId = String(object.requestId);
|
|
48238
|
+
return message;
|
|
48239
|
+
};
|
|
48240
|
+
|
|
48241
|
+
/**
|
|
48242
|
+
* Creates a plain object from a CreateSpaceRequest message. Also converts values to other types if specified.
|
|
48243
|
+
* @function toObject
|
|
48244
|
+
* @memberof google.chat.v1.CreateSpaceRequest
|
|
48245
|
+
* @static
|
|
48246
|
+
* @param {google.chat.v1.CreateSpaceRequest} message CreateSpaceRequest
|
|
48247
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
48248
|
+
* @returns {Object.<string,*>} Plain object
|
|
48249
|
+
*/
|
|
48250
|
+
CreateSpaceRequest.toObject = function toObject(message, options) {
|
|
48251
|
+
if (!options)
|
|
48252
|
+
options = {};
|
|
48253
|
+
var object = {};
|
|
48254
|
+
if (options.defaults) {
|
|
48255
|
+
object.space = null;
|
|
48256
|
+
object.requestId = "";
|
|
48257
|
+
}
|
|
48258
|
+
if (message.space != null && message.hasOwnProperty("space"))
|
|
48259
|
+
object.space = $root.google.chat.v1.Space.toObject(message.space, options);
|
|
48260
|
+
if (message.requestId != null && message.hasOwnProperty("requestId"))
|
|
48261
|
+
object.requestId = message.requestId;
|
|
48262
|
+
return object;
|
|
48263
|
+
};
|
|
48264
|
+
|
|
48265
|
+
/**
|
|
48266
|
+
* Converts this CreateSpaceRequest to JSON.
|
|
48267
|
+
* @function toJSON
|
|
48268
|
+
* @memberof google.chat.v1.CreateSpaceRequest
|
|
48269
|
+
* @instance
|
|
48270
|
+
* @returns {Object.<string,*>} JSON object
|
|
48271
|
+
*/
|
|
48272
|
+
CreateSpaceRequest.prototype.toJSON = function toJSON() {
|
|
48273
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
48274
|
+
};
|
|
48275
|
+
|
|
48276
|
+
/**
|
|
48277
|
+
* Gets the default type url for CreateSpaceRequest
|
|
48278
|
+
* @function getTypeUrl
|
|
48279
|
+
* @memberof google.chat.v1.CreateSpaceRequest
|
|
48280
|
+
* @static
|
|
48281
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
48282
|
+
* @returns {string} The default type url
|
|
48283
|
+
*/
|
|
48284
|
+
CreateSpaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
48285
|
+
if (typeUrlPrefix === undefined) {
|
|
48286
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
48287
|
+
}
|
|
48288
|
+
return typeUrlPrefix + "/google.chat.v1.CreateSpaceRequest";
|
|
48289
|
+
};
|
|
48290
|
+
|
|
48291
|
+
return CreateSpaceRequest;
|
|
48292
|
+
})();
|
|
48293
|
+
|
|
48294
|
+
v1.ListSpacesRequest = (function() {
|
|
48295
|
+
|
|
48296
|
+
/**
|
|
48297
|
+
* Properties of a ListSpacesRequest.
|
|
48298
|
+
* @memberof google.chat.v1
|
|
48299
|
+
* @interface IListSpacesRequest
|
|
48300
|
+
* @property {number|null} [pageSize] ListSpacesRequest pageSize
|
|
48301
|
+
* @property {string|null} [pageToken] ListSpacesRequest pageToken
|
|
48302
|
+
* @property {string|null} [filter] ListSpacesRequest filter
|
|
48303
|
+
*/
|
|
48304
|
+
|
|
48305
|
+
/**
|
|
48306
|
+
* Constructs a new ListSpacesRequest.
|
|
48307
|
+
* @memberof google.chat.v1
|
|
48308
|
+
* @classdesc Represents a ListSpacesRequest.
|
|
48309
|
+
* @implements IListSpacesRequest
|
|
48310
|
+
* @constructor
|
|
48311
|
+
* @param {google.chat.v1.IListSpacesRequest=} [properties] Properties to set
|
|
48312
|
+
*/
|
|
48313
|
+
function ListSpacesRequest(properties) {
|
|
48314
|
+
if (properties)
|
|
48315
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
48316
|
+
if (properties[keys[i]] != null)
|
|
48317
|
+
this[keys[i]] = properties[keys[i]];
|
|
48318
|
+
}
|
|
48319
|
+
|
|
48320
|
+
/**
|
|
48321
|
+
* ListSpacesRequest pageSize.
|
|
48322
|
+
* @member {number} pageSize
|
|
48323
|
+
* @memberof google.chat.v1.ListSpacesRequest
|
|
48324
|
+
* @instance
|
|
48325
|
+
*/
|
|
48326
|
+
ListSpacesRequest.prototype.pageSize = 0;
|
|
48327
|
+
|
|
48328
|
+
/**
|
|
48329
|
+
* ListSpacesRequest pageToken.
|
|
48330
|
+
* @member {string} pageToken
|
|
48331
|
+
* @memberof google.chat.v1.ListSpacesRequest
|
|
48332
|
+
* @instance
|
|
48333
|
+
*/
|
|
48334
|
+
ListSpacesRequest.prototype.pageToken = "";
|
|
48335
|
+
|
|
48336
|
+
/**
|
|
48337
|
+
* ListSpacesRequest filter.
|
|
48338
|
+
* @member {string} filter
|
|
48339
|
+
* @memberof google.chat.v1.ListSpacesRequest
|
|
48340
|
+
* @instance
|
|
48341
|
+
*/
|
|
48342
|
+
ListSpacesRequest.prototype.filter = "";
|
|
48343
|
+
|
|
48344
|
+
/**
|
|
48345
|
+
* Creates a new ListSpacesRequest instance using the specified properties.
|
|
48346
|
+
* @function create
|
|
48347
|
+
* @memberof google.chat.v1.ListSpacesRequest
|
|
48348
|
+
* @static
|
|
48349
|
+
* @param {google.chat.v1.IListSpacesRequest=} [properties] Properties to set
|
|
48350
|
+
* @returns {google.chat.v1.ListSpacesRequest} ListSpacesRequest instance
|
|
48351
|
+
*/
|
|
48352
|
+
ListSpacesRequest.create = function create(properties) {
|
|
48353
|
+
return new ListSpacesRequest(properties);
|
|
48354
|
+
};
|
|
48355
|
+
|
|
48356
|
+
/**
|
|
48357
|
+
* Encodes the specified ListSpacesRequest message. Does not implicitly {@link google.chat.v1.ListSpacesRequest.verify|verify} messages.
|
|
48358
|
+
* @function encode
|
|
48359
|
+
* @memberof google.chat.v1.ListSpacesRequest
|
|
48360
|
+
* @static
|
|
48361
|
+
* @param {google.chat.v1.IListSpacesRequest} message ListSpacesRequest message or plain object to encode
|
|
48362
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
48363
|
+
* @returns {$protobuf.Writer} Writer
|
|
48364
|
+
*/
|
|
48365
|
+
ListSpacesRequest.encode = function encode(message, writer) {
|
|
48366
|
+
if (!writer)
|
|
48367
|
+
writer = $Writer.create();
|
|
48368
|
+
if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
|
|
48369
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.pageSize);
|
|
48370
|
+
if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
|
|
48371
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.pageToken);
|
|
48372
|
+
if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
|
|
48373
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.filter);
|
|
48374
|
+
return writer;
|
|
48375
|
+
};
|
|
48376
|
+
|
|
48377
|
+
/**
|
|
48378
|
+
* Encodes the specified ListSpacesRequest message, length delimited. Does not implicitly {@link google.chat.v1.ListSpacesRequest.verify|verify} messages.
|
|
48379
|
+
* @function encodeDelimited
|
|
48380
|
+
* @memberof google.chat.v1.ListSpacesRequest
|
|
48381
|
+
* @static
|
|
48382
|
+
* @param {google.chat.v1.IListSpacesRequest} message ListSpacesRequest message or plain object to encode
|
|
48383
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
48384
|
+
* @returns {$protobuf.Writer} Writer
|
|
48385
|
+
*/
|
|
48386
|
+
ListSpacesRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
48387
|
+
return this.encode(message, writer).ldelim();
|
|
48388
|
+
};
|
|
48389
|
+
|
|
48390
|
+
/**
|
|
48391
|
+
* Decodes a ListSpacesRequest message from the specified reader or buffer.
|
|
48392
|
+
* @function decode
|
|
48393
|
+
* @memberof google.chat.v1.ListSpacesRequest
|
|
48394
|
+
* @static
|
|
48395
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
48396
|
+
* @param {number} [length] Message length if known beforehand
|
|
48397
|
+
* @returns {google.chat.v1.ListSpacesRequest} ListSpacesRequest
|
|
48398
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
48399
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
48400
|
+
*/
|
|
48401
|
+
ListSpacesRequest.decode = function decode(reader, length) {
|
|
48402
|
+
if (!(reader instanceof $Reader))
|
|
48403
|
+
reader = $Reader.create(reader);
|
|
48404
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.ListSpacesRequest();
|
|
48405
|
+
while (reader.pos < end) {
|
|
48406
|
+
var tag = reader.uint32();
|
|
48407
|
+
switch (tag >>> 3) {
|
|
48408
|
+
case 1: {
|
|
48409
|
+
message.pageSize = reader.int32();
|
|
48410
|
+
break;
|
|
48411
|
+
}
|
|
48412
|
+
case 2: {
|
|
48413
|
+
message.pageToken = reader.string();
|
|
48414
|
+
break;
|
|
48415
|
+
}
|
|
48416
|
+
case 3: {
|
|
48417
|
+
message.filter = reader.string();
|
|
48418
|
+
break;
|
|
48419
|
+
}
|
|
48420
|
+
default:
|
|
48421
|
+
reader.skipType(tag & 7);
|
|
48422
|
+
break;
|
|
48423
|
+
}
|
|
48424
|
+
}
|
|
48425
|
+
return message;
|
|
48426
|
+
};
|
|
48427
|
+
|
|
48428
|
+
/**
|
|
48429
|
+
* Decodes a ListSpacesRequest message from the specified reader or buffer, length delimited.
|
|
48430
|
+
* @function decodeDelimited
|
|
48431
|
+
* @memberof google.chat.v1.ListSpacesRequest
|
|
48432
|
+
* @static
|
|
48433
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
48434
|
+
* @returns {google.chat.v1.ListSpacesRequest} ListSpacesRequest
|
|
48435
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
48436
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
48437
|
+
*/
|
|
48438
|
+
ListSpacesRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
48439
|
+
if (!(reader instanceof $Reader))
|
|
48440
|
+
reader = new $Reader(reader);
|
|
48441
|
+
return this.decode(reader, reader.uint32());
|
|
48442
|
+
};
|
|
48443
|
+
|
|
48444
|
+
/**
|
|
48445
|
+
* Verifies a ListSpacesRequest message.
|
|
48446
|
+
* @function verify
|
|
48447
|
+
* @memberof google.chat.v1.ListSpacesRequest
|
|
48448
|
+
* @static
|
|
48449
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
48450
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
48451
|
+
*/
|
|
48452
|
+
ListSpacesRequest.verify = function verify(message) {
|
|
48453
|
+
if (typeof message !== "object" || message === null)
|
|
48454
|
+
return "object expected";
|
|
48455
|
+
if (message.pageSize != null && message.hasOwnProperty("pageSize"))
|
|
48456
|
+
if (!$util.isInteger(message.pageSize))
|
|
48457
|
+
return "pageSize: integer expected";
|
|
48458
|
+
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
48459
|
+
if (!$util.isString(message.pageToken))
|
|
48460
|
+
return "pageToken: string expected";
|
|
48461
|
+
if (message.filter != null && message.hasOwnProperty("filter"))
|
|
48462
|
+
if (!$util.isString(message.filter))
|
|
48463
|
+
return "filter: string expected";
|
|
48464
|
+
return null;
|
|
48465
|
+
};
|
|
48466
|
+
|
|
48467
|
+
/**
|
|
48468
|
+
* Creates a ListSpacesRequest message from a plain object. Also converts values to their respective internal types.
|
|
48469
|
+
* @function fromObject
|
|
48470
|
+
* @memberof google.chat.v1.ListSpacesRequest
|
|
48471
|
+
* @static
|
|
48472
|
+
* @param {Object.<string,*>} object Plain object
|
|
48473
|
+
* @returns {google.chat.v1.ListSpacesRequest} ListSpacesRequest
|
|
48474
|
+
*/
|
|
48475
|
+
ListSpacesRequest.fromObject = function fromObject(object) {
|
|
48476
|
+
if (object instanceof $root.google.chat.v1.ListSpacesRequest)
|
|
48477
|
+
return object;
|
|
48478
|
+
var message = new $root.google.chat.v1.ListSpacesRequest();
|
|
48479
|
+
if (object.pageSize != null)
|
|
48480
|
+
message.pageSize = object.pageSize | 0;
|
|
48481
|
+
if (object.pageToken != null)
|
|
48482
|
+
message.pageToken = String(object.pageToken);
|
|
48483
|
+
if (object.filter != null)
|
|
48484
|
+
message.filter = String(object.filter);
|
|
48485
|
+
return message;
|
|
48486
|
+
};
|
|
48487
|
+
|
|
48488
|
+
/**
|
|
48489
|
+
* Creates a plain object from a ListSpacesRequest message. Also converts values to other types if specified.
|
|
48490
|
+
* @function toObject
|
|
48491
|
+
* @memberof google.chat.v1.ListSpacesRequest
|
|
48492
|
+
* @static
|
|
48493
|
+
* @param {google.chat.v1.ListSpacesRequest} message ListSpacesRequest
|
|
48494
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
48495
|
+
* @returns {Object.<string,*>} Plain object
|
|
48496
|
+
*/
|
|
48497
|
+
ListSpacesRequest.toObject = function toObject(message, options) {
|
|
48498
|
+
if (!options)
|
|
48499
|
+
options = {};
|
|
48500
|
+
var object = {};
|
|
48501
|
+
if (options.defaults) {
|
|
48502
|
+
object.pageSize = 0;
|
|
48503
|
+
object.pageToken = "";
|
|
48504
|
+
object.filter = "";
|
|
48505
|
+
}
|
|
48506
|
+
if (message.pageSize != null && message.hasOwnProperty("pageSize"))
|
|
48507
|
+
object.pageSize = message.pageSize;
|
|
48508
|
+
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
48509
|
+
object.pageToken = message.pageToken;
|
|
48510
|
+
if (message.filter != null && message.hasOwnProperty("filter"))
|
|
48511
|
+
object.filter = message.filter;
|
|
48512
|
+
return object;
|
|
48513
|
+
};
|
|
48514
|
+
|
|
48515
|
+
/**
|
|
48516
|
+
* Converts this ListSpacesRequest to JSON.
|
|
48517
|
+
* @function toJSON
|
|
48518
|
+
* @memberof google.chat.v1.ListSpacesRequest
|
|
48519
|
+
* @instance
|
|
48520
|
+
* @returns {Object.<string,*>} JSON object
|
|
48521
|
+
*/
|
|
48522
|
+
ListSpacesRequest.prototype.toJSON = function toJSON() {
|
|
48523
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
48524
|
+
};
|
|
48525
|
+
|
|
48526
|
+
/**
|
|
48527
|
+
* Gets the default type url for ListSpacesRequest
|
|
48528
|
+
* @function getTypeUrl
|
|
48529
|
+
* @memberof google.chat.v1.ListSpacesRequest
|
|
48530
|
+
* @static
|
|
48531
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
48532
|
+
* @returns {string} The default type url
|
|
48533
|
+
*/
|
|
48534
|
+
ListSpacesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
48535
|
+
if (typeUrlPrefix === undefined) {
|
|
48536
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
48537
|
+
}
|
|
48538
|
+
return typeUrlPrefix + "/google.chat.v1.ListSpacesRequest";
|
|
48539
|
+
};
|
|
48540
|
+
|
|
48541
|
+
return ListSpacesRequest;
|
|
46748
48542
|
})();
|
|
46749
48543
|
|
|
46750
|
-
v1.
|
|
48544
|
+
v1.ListSpacesResponse = (function() {
|
|
46751
48545
|
|
|
46752
48546
|
/**
|
|
46753
|
-
* Properties of a
|
|
48547
|
+
* Properties of a ListSpacesResponse.
|
|
46754
48548
|
* @memberof google.chat.v1
|
|
46755
|
-
* @interface
|
|
46756
|
-
* @property {google.chat.v1.ISpace
|
|
46757
|
-
* @property {string|null} [
|
|
48549
|
+
* @interface IListSpacesResponse
|
|
48550
|
+
* @property {Array.<google.chat.v1.ISpace>|null} [spaces] ListSpacesResponse spaces
|
|
48551
|
+
* @property {string|null} [nextPageToken] ListSpacesResponse nextPageToken
|
|
46758
48552
|
*/
|
|
46759
48553
|
|
|
46760
48554
|
/**
|
|
46761
|
-
* Constructs a new
|
|
48555
|
+
* Constructs a new ListSpacesResponse.
|
|
46762
48556
|
* @memberof google.chat.v1
|
|
46763
|
-
* @classdesc Represents a
|
|
46764
|
-
* @implements
|
|
48557
|
+
* @classdesc Represents a ListSpacesResponse.
|
|
48558
|
+
* @implements IListSpacesResponse
|
|
46765
48559
|
* @constructor
|
|
46766
|
-
* @param {google.chat.v1.
|
|
48560
|
+
* @param {google.chat.v1.IListSpacesResponse=} [properties] Properties to set
|
|
46767
48561
|
*/
|
|
46768
|
-
function
|
|
48562
|
+
function ListSpacesResponse(properties) {
|
|
48563
|
+
this.spaces = [];
|
|
46769
48564
|
if (properties)
|
|
46770
48565
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
46771
48566
|
if (properties[keys[i]] != null)
|
|
@@ -46773,89 +48568,92 @@
|
|
|
46773
48568
|
}
|
|
46774
48569
|
|
|
46775
48570
|
/**
|
|
46776
|
-
*
|
|
46777
|
-
* @member {google.chat.v1.ISpace
|
|
46778
|
-
* @memberof google.chat.v1.
|
|
48571
|
+
* ListSpacesResponse spaces.
|
|
48572
|
+
* @member {Array.<google.chat.v1.ISpace>} spaces
|
|
48573
|
+
* @memberof google.chat.v1.ListSpacesResponse
|
|
46779
48574
|
* @instance
|
|
46780
48575
|
*/
|
|
46781
|
-
|
|
48576
|
+
ListSpacesResponse.prototype.spaces = $util.emptyArray;
|
|
46782
48577
|
|
|
46783
48578
|
/**
|
|
46784
|
-
*
|
|
46785
|
-
* @member {string}
|
|
46786
|
-
* @memberof google.chat.v1.
|
|
48579
|
+
* ListSpacesResponse nextPageToken.
|
|
48580
|
+
* @member {string} nextPageToken
|
|
48581
|
+
* @memberof google.chat.v1.ListSpacesResponse
|
|
46787
48582
|
* @instance
|
|
46788
48583
|
*/
|
|
46789
|
-
|
|
48584
|
+
ListSpacesResponse.prototype.nextPageToken = "";
|
|
46790
48585
|
|
|
46791
48586
|
/**
|
|
46792
|
-
* Creates a new
|
|
48587
|
+
* Creates a new ListSpacesResponse instance using the specified properties.
|
|
46793
48588
|
* @function create
|
|
46794
|
-
* @memberof google.chat.v1.
|
|
48589
|
+
* @memberof google.chat.v1.ListSpacesResponse
|
|
46795
48590
|
* @static
|
|
46796
|
-
* @param {google.chat.v1.
|
|
46797
|
-
* @returns {google.chat.v1.
|
|
48591
|
+
* @param {google.chat.v1.IListSpacesResponse=} [properties] Properties to set
|
|
48592
|
+
* @returns {google.chat.v1.ListSpacesResponse} ListSpacesResponse instance
|
|
46798
48593
|
*/
|
|
46799
|
-
|
|
46800
|
-
return new
|
|
48594
|
+
ListSpacesResponse.create = function create(properties) {
|
|
48595
|
+
return new ListSpacesResponse(properties);
|
|
46801
48596
|
};
|
|
46802
48597
|
|
|
46803
48598
|
/**
|
|
46804
|
-
* Encodes the specified
|
|
48599
|
+
* Encodes the specified ListSpacesResponse message. Does not implicitly {@link google.chat.v1.ListSpacesResponse.verify|verify} messages.
|
|
46805
48600
|
* @function encode
|
|
46806
|
-
* @memberof google.chat.v1.
|
|
48601
|
+
* @memberof google.chat.v1.ListSpacesResponse
|
|
46807
48602
|
* @static
|
|
46808
|
-
* @param {google.chat.v1.
|
|
48603
|
+
* @param {google.chat.v1.IListSpacesResponse} message ListSpacesResponse message or plain object to encode
|
|
46809
48604
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
46810
48605
|
* @returns {$protobuf.Writer} Writer
|
|
46811
48606
|
*/
|
|
46812
|
-
|
|
48607
|
+
ListSpacesResponse.encode = function encode(message, writer) {
|
|
46813
48608
|
if (!writer)
|
|
46814
48609
|
writer = $Writer.create();
|
|
46815
|
-
if (message.
|
|
46816
|
-
|
|
46817
|
-
|
|
46818
|
-
|
|
48610
|
+
if (message.spaces != null && message.spaces.length)
|
|
48611
|
+
for (var i = 0; i < message.spaces.length; ++i)
|
|
48612
|
+
$root.google.chat.v1.Space.encode(message.spaces[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
48613
|
+
if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
|
|
48614
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
|
|
46819
48615
|
return writer;
|
|
46820
48616
|
};
|
|
46821
48617
|
|
|
46822
48618
|
/**
|
|
46823
|
-
* Encodes the specified
|
|
48619
|
+
* Encodes the specified ListSpacesResponse message, length delimited. Does not implicitly {@link google.chat.v1.ListSpacesResponse.verify|verify} messages.
|
|
46824
48620
|
* @function encodeDelimited
|
|
46825
|
-
* @memberof google.chat.v1.
|
|
48621
|
+
* @memberof google.chat.v1.ListSpacesResponse
|
|
46826
48622
|
* @static
|
|
46827
|
-
* @param {google.chat.v1.
|
|
48623
|
+
* @param {google.chat.v1.IListSpacesResponse} message ListSpacesResponse message or plain object to encode
|
|
46828
48624
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
46829
48625
|
* @returns {$protobuf.Writer} Writer
|
|
46830
48626
|
*/
|
|
46831
|
-
|
|
48627
|
+
ListSpacesResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
46832
48628
|
return this.encode(message, writer).ldelim();
|
|
46833
48629
|
};
|
|
46834
48630
|
|
|
46835
48631
|
/**
|
|
46836
|
-
* Decodes a
|
|
48632
|
+
* Decodes a ListSpacesResponse message from the specified reader or buffer.
|
|
46837
48633
|
* @function decode
|
|
46838
|
-
* @memberof google.chat.v1.
|
|
48634
|
+
* @memberof google.chat.v1.ListSpacesResponse
|
|
46839
48635
|
* @static
|
|
46840
48636
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
46841
48637
|
* @param {number} [length] Message length if known beforehand
|
|
46842
|
-
* @returns {google.chat.v1.
|
|
48638
|
+
* @returns {google.chat.v1.ListSpacesResponse} ListSpacesResponse
|
|
46843
48639
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
46844
48640
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
46845
48641
|
*/
|
|
46846
|
-
|
|
48642
|
+
ListSpacesResponse.decode = function decode(reader, length) {
|
|
46847
48643
|
if (!(reader instanceof $Reader))
|
|
46848
48644
|
reader = $Reader.create(reader);
|
|
46849
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.
|
|
48645
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.ListSpacesResponse();
|
|
46850
48646
|
while (reader.pos < end) {
|
|
46851
48647
|
var tag = reader.uint32();
|
|
46852
48648
|
switch (tag >>> 3) {
|
|
46853
48649
|
case 1: {
|
|
46854
|
-
message.
|
|
48650
|
+
if (!(message.spaces && message.spaces.length))
|
|
48651
|
+
message.spaces = [];
|
|
48652
|
+
message.spaces.push($root.google.chat.v1.Space.decode(reader, reader.uint32()));
|
|
46855
48653
|
break;
|
|
46856
48654
|
}
|
|
46857
48655
|
case 2: {
|
|
46858
|
-
message.
|
|
48656
|
+
message.nextPageToken = reader.string();
|
|
46859
48657
|
break;
|
|
46860
48658
|
}
|
|
46861
48659
|
default:
|
|
@@ -46867,138 +48665,149 @@
|
|
|
46867
48665
|
};
|
|
46868
48666
|
|
|
46869
48667
|
/**
|
|
46870
|
-
* Decodes a
|
|
48668
|
+
* Decodes a ListSpacesResponse message from the specified reader or buffer, length delimited.
|
|
46871
48669
|
* @function decodeDelimited
|
|
46872
|
-
* @memberof google.chat.v1.
|
|
48670
|
+
* @memberof google.chat.v1.ListSpacesResponse
|
|
46873
48671
|
* @static
|
|
46874
48672
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
46875
|
-
* @returns {google.chat.v1.
|
|
48673
|
+
* @returns {google.chat.v1.ListSpacesResponse} ListSpacesResponse
|
|
46876
48674
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
46877
48675
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
46878
48676
|
*/
|
|
46879
|
-
|
|
48677
|
+
ListSpacesResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
46880
48678
|
if (!(reader instanceof $Reader))
|
|
46881
48679
|
reader = new $Reader(reader);
|
|
46882
48680
|
return this.decode(reader, reader.uint32());
|
|
46883
48681
|
};
|
|
46884
48682
|
|
|
46885
48683
|
/**
|
|
46886
|
-
* Verifies a
|
|
48684
|
+
* Verifies a ListSpacesResponse message.
|
|
46887
48685
|
* @function verify
|
|
46888
|
-
* @memberof google.chat.v1.
|
|
48686
|
+
* @memberof google.chat.v1.ListSpacesResponse
|
|
46889
48687
|
* @static
|
|
46890
48688
|
* @param {Object.<string,*>} message Plain object to verify
|
|
46891
48689
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
46892
48690
|
*/
|
|
46893
|
-
|
|
48691
|
+
ListSpacesResponse.verify = function verify(message) {
|
|
46894
48692
|
if (typeof message !== "object" || message === null)
|
|
46895
48693
|
return "object expected";
|
|
46896
|
-
if (message.
|
|
46897
|
-
|
|
46898
|
-
|
|
46899
|
-
|
|
48694
|
+
if (message.spaces != null && message.hasOwnProperty("spaces")) {
|
|
48695
|
+
if (!Array.isArray(message.spaces))
|
|
48696
|
+
return "spaces: array expected";
|
|
48697
|
+
for (var i = 0; i < message.spaces.length; ++i) {
|
|
48698
|
+
var error = $root.google.chat.v1.Space.verify(message.spaces[i]);
|
|
48699
|
+
if (error)
|
|
48700
|
+
return "spaces." + error;
|
|
48701
|
+
}
|
|
46900
48702
|
}
|
|
46901
|
-
if (message.
|
|
46902
|
-
if (!$util.isString(message.
|
|
46903
|
-
return "
|
|
48703
|
+
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
|
|
48704
|
+
if (!$util.isString(message.nextPageToken))
|
|
48705
|
+
return "nextPageToken: string expected";
|
|
46904
48706
|
return null;
|
|
46905
48707
|
};
|
|
46906
48708
|
|
|
46907
48709
|
/**
|
|
46908
|
-
* Creates a
|
|
48710
|
+
* Creates a ListSpacesResponse message from a plain object. Also converts values to their respective internal types.
|
|
46909
48711
|
* @function fromObject
|
|
46910
|
-
* @memberof google.chat.v1.
|
|
48712
|
+
* @memberof google.chat.v1.ListSpacesResponse
|
|
46911
48713
|
* @static
|
|
46912
48714
|
* @param {Object.<string,*>} object Plain object
|
|
46913
|
-
* @returns {google.chat.v1.
|
|
48715
|
+
* @returns {google.chat.v1.ListSpacesResponse} ListSpacesResponse
|
|
46914
48716
|
*/
|
|
46915
|
-
|
|
46916
|
-
if (object instanceof $root.google.chat.v1.
|
|
48717
|
+
ListSpacesResponse.fromObject = function fromObject(object) {
|
|
48718
|
+
if (object instanceof $root.google.chat.v1.ListSpacesResponse)
|
|
46917
48719
|
return object;
|
|
46918
|
-
var message = new $root.google.chat.v1.
|
|
46919
|
-
if (object.
|
|
46920
|
-
if (
|
|
46921
|
-
throw TypeError(".google.chat.v1.
|
|
46922
|
-
message.
|
|
48720
|
+
var message = new $root.google.chat.v1.ListSpacesResponse();
|
|
48721
|
+
if (object.spaces) {
|
|
48722
|
+
if (!Array.isArray(object.spaces))
|
|
48723
|
+
throw TypeError(".google.chat.v1.ListSpacesResponse.spaces: array expected");
|
|
48724
|
+
message.spaces = [];
|
|
48725
|
+
for (var i = 0; i < object.spaces.length; ++i) {
|
|
48726
|
+
if (typeof object.spaces[i] !== "object")
|
|
48727
|
+
throw TypeError(".google.chat.v1.ListSpacesResponse.spaces: object expected");
|
|
48728
|
+
message.spaces[i] = $root.google.chat.v1.Space.fromObject(object.spaces[i]);
|
|
48729
|
+
}
|
|
46923
48730
|
}
|
|
46924
|
-
if (object.
|
|
46925
|
-
message.
|
|
48731
|
+
if (object.nextPageToken != null)
|
|
48732
|
+
message.nextPageToken = String(object.nextPageToken);
|
|
46926
48733
|
return message;
|
|
46927
48734
|
};
|
|
46928
48735
|
|
|
46929
48736
|
/**
|
|
46930
|
-
* Creates a plain object from a
|
|
48737
|
+
* Creates a plain object from a ListSpacesResponse message. Also converts values to other types if specified.
|
|
46931
48738
|
* @function toObject
|
|
46932
|
-
* @memberof google.chat.v1.
|
|
48739
|
+
* @memberof google.chat.v1.ListSpacesResponse
|
|
46933
48740
|
* @static
|
|
46934
|
-
* @param {google.chat.v1.
|
|
48741
|
+
* @param {google.chat.v1.ListSpacesResponse} message ListSpacesResponse
|
|
46935
48742
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
46936
48743
|
* @returns {Object.<string,*>} Plain object
|
|
46937
48744
|
*/
|
|
46938
|
-
|
|
48745
|
+
ListSpacesResponse.toObject = function toObject(message, options) {
|
|
46939
48746
|
if (!options)
|
|
46940
48747
|
options = {};
|
|
46941
48748
|
var object = {};
|
|
46942
|
-
if (options.defaults)
|
|
46943
|
-
object.
|
|
46944
|
-
|
|
48749
|
+
if (options.arrays || options.defaults)
|
|
48750
|
+
object.spaces = [];
|
|
48751
|
+
if (options.defaults)
|
|
48752
|
+
object.nextPageToken = "";
|
|
48753
|
+
if (message.spaces && message.spaces.length) {
|
|
48754
|
+
object.spaces = [];
|
|
48755
|
+
for (var j = 0; j < message.spaces.length; ++j)
|
|
48756
|
+
object.spaces[j] = $root.google.chat.v1.Space.toObject(message.spaces[j], options);
|
|
46945
48757
|
}
|
|
46946
|
-
if (message.
|
|
46947
|
-
object.
|
|
46948
|
-
if (message.requestId != null && message.hasOwnProperty("requestId"))
|
|
46949
|
-
object.requestId = message.requestId;
|
|
48758
|
+
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
|
|
48759
|
+
object.nextPageToken = message.nextPageToken;
|
|
46950
48760
|
return object;
|
|
46951
48761
|
};
|
|
46952
48762
|
|
|
46953
48763
|
/**
|
|
46954
|
-
* Converts this
|
|
48764
|
+
* Converts this ListSpacesResponse to JSON.
|
|
46955
48765
|
* @function toJSON
|
|
46956
|
-
* @memberof google.chat.v1.
|
|
48766
|
+
* @memberof google.chat.v1.ListSpacesResponse
|
|
46957
48767
|
* @instance
|
|
46958
48768
|
* @returns {Object.<string,*>} JSON object
|
|
46959
48769
|
*/
|
|
46960
|
-
|
|
48770
|
+
ListSpacesResponse.prototype.toJSON = function toJSON() {
|
|
46961
48771
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
46962
48772
|
};
|
|
46963
48773
|
|
|
46964
48774
|
/**
|
|
46965
|
-
* Gets the default type url for
|
|
48775
|
+
* Gets the default type url for ListSpacesResponse
|
|
46966
48776
|
* @function getTypeUrl
|
|
46967
|
-
* @memberof google.chat.v1.
|
|
48777
|
+
* @memberof google.chat.v1.ListSpacesResponse
|
|
46968
48778
|
* @static
|
|
46969
48779
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
46970
48780
|
* @returns {string} The default type url
|
|
46971
48781
|
*/
|
|
46972
|
-
|
|
48782
|
+
ListSpacesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
46973
48783
|
if (typeUrlPrefix === undefined) {
|
|
46974
48784
|
typeUrlPrefix = "type.googleapis.com";
|
|
46975
48785
|
}
|
|
46976
|
-
return typeUrlPrefix + "/google.chat.v1.
|
|
48786
|
+
return typeUrlPrefix + "/google.chat.v1.ListSpacesResponse";
|
|
46977
48787
|
};
|
|
46978
48788
|
|
|
46979
|
-
return
|
|
48789
|
+
return ListSpacesResponse;
|
|
46980
48790
|
})();
|
|
46981
48791
|
|
|
46982
|
-
v1.
|
|
48792
|
+
v1.GetSpaceRequest = (function() {
|
|
46983
48793
|
|
|
46984
48794
|
/**
|
|
46985
|
-
* Properties of a
|
|
48795
|
+
* Properties of a GetSpaceRequest.
|
|
46986
48796
|
* @memberof google.chat.v1
|
|
46987
|
-
* @interface
|
|
46988
|
-
* @property {
|
|
46989
|
-
* @property {
|
|
46990
|
-
* @property {string|null} [filter] ListSpacesRequest filter
|
|
48797
|
+
* @interface IGetSpaceRequest
|
|
48798
|
+
* @property {string|null} [name] GetSpaceRequest name
|
|
48799
|
+
* @property {boolean|null} [useAdminAccess] GetSpaceRequest useAdminAccess
|
|
46991
48800
|
*/
|
|
46992
48801
|
|
|
46993
48802
|
/**
|
|
46994
|
-
* Constructs a new
|
|
48803
|
+
* Constructs a new GetSpaceRequest.
|
|
46995
48804
|
* @memberof google.chat.v1
|
|
46996
|
-
* @classdesc Represents a
|
|
46997
|
-
* @implements
|
|
48805
|
+
* @classdesc Represents a GetSpaceRequest.
|
|
48806
|
+
* @implements IGetSpaceRequest
|
|
46998
48807
|
* @constructor
|
|
46999
|
-
* @param {google.chat.v1.
|
|
48808
|
+
* @param {google.chat.v1.IGetSpaceRequest=} [properties] Properties to set
|
|
47000
48809
|
*/
|
|
47001
|
-
function
|
|
48810
|
+
function GetSpaceRequest(properties) {
|
|
47002
48811
|
if (properties)
|
|
47003
48812
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47004
48813
|
if (properties[keys[i]] != null)
|
|
@@ -47006,103 +48815,89 @@
|
|
|
47006
48815
|
}
|
|
47007
48816
|
|
|
47008
48817
|
/**
|
|
47009
|
-
*
|
|
47010
|
-
* @member {
|
|
47011
|
-
* @memberof google.chat.v1.
|
|
47012
|
-
* @instance
|
|
47013
|
-
*/
|
|
47014
|
-
ListSpacesRequest.prototype.pageSize = 0;
|
|
47015
|
-
|
|
47016
|
-
/**
|
|
47017
|
-
* ListSpacesRequest pageToken.
|
|
47018
|
-
* @member {string} pageToken
|
|
47019
|
-
* @memberof google.chat.v1.ListSpacesRequest
|
|
48818
|
+
* GetSpaceRequest name.
|
|
48819
|
+
* @member {string} name
|
|
48820
|
+
* @memberof google.chat.v1.GetSpaceRequest
|
|
47020
48821
|
* @instance
|
|
47021
48822
|
*/
|
|
47022
|
-
|
|
48823
|
+
GetSpaceRequest.prototype.name = "";
|
|
47023
48824
|
|
|
47024
48825
|
/**
|
|
47025
|
-
*
|
|
47026
|
-
* @member {
|
|
47027
|
-
* @memberof google.chat.v1.
|
|
48826
|
+
* GetSpaceRequest useAdminAccess.
|
|
48827
|
+
* @member {boolean} useAdminAccess
|
|
48828
|
+
* @memberof google.chat.v1.GetSpaceRequest
|
|
47028
48829
|
* @instance
|
|
47029
48830
|
*/
|
|
47030
|
-
|
|
48831
|
+
GetSpaceRequest.prototype.useAdminAccess = false;
|
|
47031
48832
|
|
|
47032
48833
|
/**
|
|
47033
|
-
* Creates a new
|
|
48834
|
+
* Creates a new GetSpaceRequest instance using the specified properties.
|
|
47034
48835
|
* @function create
|
|
47035
|
-
* @memberof google.chat.v1.
|
|
48836
|
+
* @memberof google.chat.v1.GetSpaceRequest
|
|
47036
48837
|
* @static
|
|
47037
|
-
* @param {google.chat.v1.
|
|
47038
|
-
* @returns {google.chat.v1.
|
|
48838
|
+
* @param {google.chat.v1.IGetSpaceRequest=} [properties] Properties to set
|
|
48839
|
+
* @returns {google.chat.v1.GetSpaceRequest} GetSpaceRequest instance
|
|
47039
48840
|
*/
|
|
47040
|
-
|
|
47041
|
-
return new
|
|
48841
|
+
GetSpaceRequest.create = function create(properties) {
|
|
48842
|
+
return new GetSpaceRequest(properties);
|
|
47042
48843
|
};
|
|
47043
48844
|
|
|
47044
48845
|
/**
|
|
47045
|
-
* Encodes the specified
|
|
48846
|
+
* Encodes the specified GetSpaceRequest message. Does not implicitly {@link google.chat.v1.GetSpaceRequest.verify|verify} messages.
|
|
47046
48847
|
* @function encode
|
|
47047
|
-
* @memberof google.chat.v1.
|
|
48848
|
+
* @memberof google.chat.v1.GetSpaceRequest
|
|
47048
48849
|
* @static
|
|
47049
|
-
* @param {google.chat.v1.
|
|
48850
|
+
* @param {google.chat.v1.IGetSpaceRequest} message GetSpaceRequest message or plain object to encode
|
|
47050
48851
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47051
48852
|
* @returns {$protobuf.Writer} Writer
|
|
47052
48853
|
*/
|
|
47053
|
-
|
|
48854
|
+
GetSpaceRequest.encode = function encode(message, writer) {
|
|
47054
48855
|
if (!writer)
|
|
47055
48856
|
writer = $Writer.create();
|
|
47056
|
-
if (message.
|
|
47057
|
-
writer.uint32(/* id 1, wireType
|
|
47058
|
-
if (message.
|
|
47059
|
-
writer.uint32(/* id 2, wireType
|
|
47060
|
-
if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
|
|
47061
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.filter);
|
|
48857
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
48858
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
48859
|
+
if (message.useAdminAccess != null && Object.hasOwnProperty.call(message, "useAdminAccess"))
|
|
48860
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.useAdminAccess);
|
|
47062
48861
|
return writer;
|
|
47063
48862
|
};
|
|
47064
48863
|
|
|
47065
48864
|
/**
|
|
47066
|
-
* Encodes the specified
|
|
48865
|
+
* Encodes the specified GetSpaceRequest message, length delimited. Does not implicitly {@link google.chat.v1.GetSpaceRequest.verify|verify} messages.
|
|
47067
48866
|
* @function encodeDelimited
|
|
47068
|
-
* @memberof google.chat.v1.
|
|
48867
|
+
* @memberof google.chat.v1.GetSpaceRequest
|
|
47069
48868
|
* @static
|
|
47070
|
-
* @param {google.chat.v1.
|
|
48869
|
+
* @param {google.chat.v1.IGetSpaceRequest} message GetSpaceRequest message or plain object to encode
|
|
47071
48870
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47072
48871
|
* @returns {$protobuf.Writer} Writer
|
|
47073
48872
|
*/
|
|
47074
|
-
|
|
48873
|
+
GetSpaceRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
47075
48874
|
return this.encode(message, writer).ldelim();
|
|
47076
48875
|
};
|
|
47077
48876
|
|
|
47078
48877
|
/**
|
|
47079
|
-
* Decodes a
|
|
48878
|
+
* Decodes a GetSpaceRequest message from the specified reader or buffer.
|
|
47080
48879
|
* @function decode
|
|
47081
|
-
* @memberof google.chat.v1.
|
|
48880
|
+
* @memberof google.chat.v1.GetSpaceRequest
|
|
47082
48881
|
* @static
|
|
47083
48882
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47084
48883
|
* @param {number} [length] Message length if known beforehand
|
|
47085
|
-
* @returns {google.chat.v1.
|
|
48884
|
+
* @returns {google.chat.v1.GetSpaceRequest} GetSpaceRequest
|
|
47086
48885
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47087
48886
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47088
48887
|
*/
|
|
47089
|
-
|
|
48888
|
+
GetSpaceRequest.decode = function decode(reader, length) {
|
|
47090
48889
|
if (!(reader instanceof $Reader))
|
|
47091
48890
|
reader = $Reader.create(reader);
|
|
47092
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.
|
|
48891
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.GetSpaceRequest();
|
|
47093
48892
|
while (reader.pos < end) {
|
|
47094
48893
|
var tag = reader.uint32();
|
|
47095
48894
|
switch (tag >>> 3) {
|
|
47096
48895
|
case 1: {
|
|
47097
|
-
message.
|
|
48896
|
+
message.name = reader.string();
|
|
47098
48897
|
break;
|
|
47099
48898
|
}
|
|
47100
48899
|
case 2: {
|
|
47101
|
-
message.
|
|
47102
|
-
break;
|
|
47103
|
-
}
|
|
47104
|
-
case 3: {
|
|
47105
|
-
message.filter = reader.string();
|
|
48900
|
+
message.useAdminAccess = reader.bool();
|
|
47106
48901
|
break;
|
|
47107
48902
|
}
|
|
47108
48903
|
default:
|
|
@@ -47114,141 +48909,131 @@
|
|
|
47114
48909
|
};
|
|
47115
48910
|
|
|
47116
48911
|
/**
|
|
47117
|
-
* Decodes a
|
|
48912
|
+
* Decodes a GetSpaceRequest message from the specified reader or buffer, length delimited.
|
|
47118
48913
|
* @function decodeDelimited
|
|
47119
|
-
* @memberof google.chat.v1.
|
|
48914
|
+
* @memberof google.chat.v1.GetSpaceRequest
|
|
47120
48915
|
* @static
|
|
47121
48916
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47122
|
-
* @returns {google.chat.v1.
|
|
48917
|
+
* @returns {google.chat.v1.GetSpaceRequest} GetSpaceRequest
|
|
47123
48918
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47124
48919
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47125
48920
|
*/
|
|
47126
|
-
|
|
48921
|
+
GetSpaceRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
47127
48922
|
if (!(reader instanceof $Reader))
|
|
47128
48923
|
reader = new $Reader(reader);
|
|
47129
48924
|
return this.decode(reader, reader.uint32());
|
|
47130
48925
|
};
|
|
47131
48926
|
|
|
47132
48927
|
/**
|
|
47133
|
-
* Verifies a
|
|
48928
|
+
* Verifies a GetSpaceRequest message.
|
|
47134
48929
|
* @function verify
|
|
47135
|
-
* @memberof google.chat.v1.
|
|
48930
|
+
* @memberof google.chat.v1.GetSpaceRequest
|
|
47136
48931
|
* @static
|
|
47137
48932
|
* @param {Object.<string,*>} message Plain object to verify
|
|
47138
48933
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
47139
48934
|
*/
|
|
47140
|
-
|
|
48935
|
+
GetSpaceRequest.verify = function verify(message) {
|
|
47141
48936
|
if (typeof message !== "object" || message === null)
|
|
47142
48937
|
return "object expected";
|
|
47143
|
-
if (message.
|
|
47144
|
-
if (!$util.
|
|
47145
|
-
return "
|
|
47146
|
-
if (message.
|
|
47147
|
-
if (
|
|
47148
|
-
return "
|
|
47149
|
-
if (message.filter != null && message.hasOwnProperty("filter"))
|
|
47150
|
-
if (!$util.isString(message.filter))
|
|
47151
|
-
return "filter: string expected";
|
|
48938
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
48939
|
+
if (!$util.isString(message.name))
|
|
48940
|
+
return "name: string expected";
|
|
48941
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
48942
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
48943
|
+
return "useAdminAccess: boolean expected";
|
|
47152
48944
|
return null;
|
|
47153
48945
|
};
|
|
47154
48946
|
|
|
47155
48947
|
/**
|
|
47156
|
-
* Creates a
|
|
48948
|
+
* Creates a GetSpaceRequest message from a plain object. Also converts values to their respective internal types.
|
|
47157
48949
|
* @function fromObject
|
|
47158
|
-
* @memberof google.chat.v1.
|
|
48950
|
+
* @memberof google.chat.v1.GetSpaceRequest
|
|
47159
48951
|
* @static
|
|
47160
48952
|
* @param {Object.<string,*>} object Plain object
|
|
47161
|
-
* @returns {google.chat.v1.
|
|
48953
|
+
* @returns {google.chat.v1.GetSpaceRequest} GetSpaceRequest
|
|
47162
48954
|
*/
|
|
47163
|
-
|
|
47164
|
-
if (object instanceof $root.google.chat.v1.
|
|
48955
|
+
GetSpaceRequest.fromObject = function fromObject(object) {
|
|
48956
|
+
if (object instanceof $root.google.chat.v1.GetSpaceRequest)
|
|
47165
48957
|
return object;
|
|
47166
|
-
var message = new $root.google.chat.v1.
|
|
47167
|
-
if (object.
|
|
47168
|
-
message.
|
|
47169
|
-
if (object.
|
|
47170
|
-
message.
|
|
47171
|
-
if (object.filter != null)
|
|
47172
|
-
message.filter = String(object.filter);
|
|
48958
|
+
var message = new $root.google.chat.v1.GetSpaceRequest();
|
|
48959
|
+
if (object.name != null)
|
|
48960
|
+
message.name = String(object.name);
|
|
48961
|
+
if (object.useAdminAccess != null)
|
|
48962
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
47173
48963
|
return message;
|
|
47174
48964
|
};
|
|
47175
48965
|
|
|
47176
48966
|
/**
|
|
47177
|
-
* Creates a plain object from a
|
|
48967
|
+
* Creates a plain object from a GetSpaceRequest message. Also converts values to other types if specified.
|
|
47178
48968
|
* @function toObject
|
|
47179
|
-
* @memberof google.chat.v1.
|
|
48969
|
+
* @memberof google.chat.v1.GetSpaceRequest
|
|
47180
48970
|
* @static
|
|
47181
|
-
* @param {google.chat.v1.
|
|
48971
|
+
* @param {google.chat.v1.GetSpaceRequest} message GetSpaceRequest
|
|
47182
48972
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
47183
48973
|
* @returns {Object.<string,*>} Plain object
|
|
47184
48974
|
*/
|
|
47185
|
-
|
|
48975
|
+
GetSpaceRequest.toObject = function toObject(message, options) {
|
|
47186
48976
|
if (!options)
|
|
47187
48977
|
options = {};
|
|
47188
48978
|
var object = {};
|
|
47189
48979
|
if (options.defaults) {
|
|
47190
|
-
object.
|
|
47191
|
-
object.
|
|
47192
|
-
object.filter = "";
|
|
48980
|
+
object.name = "";
|
|
48981
|
+
object.useAdminAccess = false;
|
|
47193
48982
|
}
|
|
47194
|
-
if (message.
|
|
47195
|
-
object.
|
|
47196
|
-
if (message.
|
|
47197
|
-
object.
|
|
47198
|
-
if (message.filter != null && message.hasOwnProperty("filter"))
|
|
47199
|
-
object.filter = message.filter;
|
|
48983
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
48984
|
+
object.name = message.name;
|
|
48985
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
48986
|
+
object.useAdminAccess = message.useAdminAccess;
|
|
47200
48987
|
return object;
|
|
47201
48988
|
};
|
|
47202
48989
|
|
|
47203
48990
|
/**
|
|
47204
|
-
* Converts this
|
|
48991
|
+
* Converts this GetSpaceRequest to JSON.
|
|
47205
48992
|
* @function toJSON
|
|
47206
|
-
* @memberof google.chat.v1.
|
|
48993
|
+
* @memberof google.chat.v1.GetSpaceRequest
|
|
47207
48994
|
* @instance
|
|
47208
48995
|
* @returns {Object.<string,*>} JSON object
|
|
47209
48996
|
*/
|
|
47210
|
-
|
|
48997
|
+
GetSpaceRequest.prototype.toJSON = function toJSON() {
|
|
47211
48998
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
47212
48999
|
};
|
|
47213
49000
|
|
|
47214
49001
|
/**
|
|
47215
|
-
* Gets the default type url for
|
|
49002
|
+
* Gets the default type url for GetSpaceRequest
|
|
47216
49003
|
* @function getTypeUrl
|
|
47217
|
-
* @memberof google.chat.v1.
|
|
49004
|
+
* @memberof google.chat.v1.GetSpaceRequest
|
|
47218
49005
|
* @static
|
|
47219
49006
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
47220
49007
|
* @returns {string} The default type url
|
|
47221
49008
|
*/
|
|
47222
|
-
|
|
49009
|
+
GetSpaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
47223
49010
|
if (typeUrlPrefix === undefined) {
|
|
47224
49011
|
typeUrlPrefix = "type.googleapis.com";
|
|
47225
49012
|
}
|
|
47226
|
-
return typeUrlPrefix + "/google.chat.v1.
|
|
49013
|
+
return typeUrlPrefix + "/google.chat.v1.GetSpaceRequest";
|
|
47227
49014
|
};
|
|
47228
49015
|
|
|
47229
|
-
return
|
|
49016
|
+
return GetSpaceRequest;
|
|
47230
49017
|
})();
|
|
47231
49018
|
|
|
47232
|
-
v1.
|
|
49019
|
+
v1.FindDirectMessageRequest = (function() {
|
|
47233
49020
|
|
|
47234
49021
|
/**
|
|
47235
|
-
* Properties of a
|
|
49022
|
+
* Properties of a FindDirectMessageRequest.
|
|
47236
49023
|
* @memberof google.chat.v1
|
|
47237
|
-
* @interface
|
|
47238
|
-
* @property {
|
|
47239
|
-
* @property {string|null} [nextPageToken] ListSpacesResponse nextPageToken
|
|
49024
|
+
* @interface IFindDirectMessageRequest
|
|
49025
|
+
* @property {string|null} [name] FindDirectMessageRequest name
|
|
47240
49026
|
*/
|
|
47241
49027
|
|
|
47242
49028
|
/**
|
|
47243
|
-
* Constructs a new
|
|
49029
|
+
* Constructs a new FindDirectMessageRequest.
|
|
47244
49030
|
* @memberof google.chat.v1
|
|
47245
|
-
* @classdesc Represents a
|
|
47246
|
-
* @implements
|
|
49031
|
+
* @classdesc Represents a FindDirectMessageRequest.
|
|
49032
|
+
* @implements IFindDirectMessageRequest
|
|
47247
49033
|
* @constructor
|
|
47248
|
-
* @param {google.chat.v1.
|
|
49034
|
+
* @param {google.chat.v1.IFindDirectMessageRequest=} [properties] Properties to set
|
|
47249
49035
|
*/
|
|
47250
|
-
function
|
|
47251
|
-
this.spaces = [];
|
|
49036
|
+
function FindDirectMessageRequest(properties) {
|
|
47252
49037
|
if (properties)
|
|
47253
49038
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47254
49039
|
if (properties[keys[i]] != null)
|
|
@@ -47256,92 +49041,75 @@
|
|
|
47256
49041
|
}
|
|
47257
49042
|
|
|
47258
49043
|
/**
|
|
47259
|
-
*
|
|
47260
|
-
* @member {
|
|
47261
|
-
* @memberof google.chat.v1.
|
|
47262
|
-
* @instance
|
|
47263
|
-
*/
|
|
47264
|
-
ListSpacesResponse.prototype.spaces = $util.emptyArray;
|
|
47265
|
-
|
|
47266
|
-
/**
|
|
47267
|
-
* ListSpacesResponse nextPageToken.
|
|
47268
|
-
* @member {string} nextPageToken
|
|
47269
|
-
* @memberof google.chat.v1.ListSpacesResponse
|
|
49044
|
+
* FindDirectMessageRequest name.
|
|
49045
|
+
* @member {string} name
|
|
49046
|
+
* @memberof google.chat.v1.FindDirectMessageRequest
|
|
47270
49047
|
* @instance
|
|
47271
49048
|
*/
|
|
47272
|
-
|
|
49049
|
+
FindDirectMessageRequest.prototype.name = "";
|
|
47273
49050
|
|
|
47274
49051
|
/**
|
|
47275
|
-
* Creates a new
|
|
49052
|
+
* Creates a new FindDirectMessageRequest instance using the specified properties.
|
|
47276
49053
|
* @function create
|
|
47277
|
-
* @memberof google.chat.v1.
|
|
49054
|
+
* @memberof google.chat.v1.FindDirectMessageRequest
|
|
47278
49055
|
* @static
|
|
47279
|
-
* @param {google.chat.v1.
|
|
47280
|
-
* @returns {google.chat.v1.
|
|
49056
|
+
* @param {google.chat.v1.IFindDirectMessageRequest=} [properties] Properties to set
|
|
49057
|
+
* @returns {google.chat.v1.FindDirectMessageRequest} FindDirectMessageRequest instance
|
|
47281
49058
|
*/
|
|
47282
|
-
|
|
47283
|
-
return new
|
|
49059
|
+
FindDirectMessageRequest.create = function create(properties) {
|
|
49060
|
+
return new FindDirectMessageRequest(properties);
|
|
47284
49061
|
};
|
|
47285
49062
|
|
|
47286
49063
|
/**
|
|
47287
|
-
* Encodes the specified
|
|
49064
|
+
* Encodes the specified FindDirectMessageRequest message. Does not implicitly {@link google.chat.v1.FindDirectMessageRequest.verify|verify} messages.
|
|
47288
49065
|
* @function encode
|
|
47289
|
-
* @memberof google.chat.v1.
|
|
49066
|
+
* @memberof google.chat.v1.FindDirectMessageRequest
|
|
47290
49067
|
* @static
|
|
47291
|
-
* @param {google.chat.v1.
|
|
49068
|
+
* @param {google.chat.v1.IFindDirectMessageRequest} message FindDirectMessageRequest message or plain object to encode
|
|
47292
49069
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47293
49070
|
* @returns {$protobuf.Writer} Writer
|
|
47294
49071
|
*/
|
|
47295
|
-
|
|
49072
|
+
FindDirectMessageRequest.encode = function encode(message, writer) {
|
|
47296
49073
|
if (!writer)
|
|
47297
49074
|
writer = $Writer.create();
|
|
47298
|
-
if (message.
|
|
47299
|
-
|
|
47300
|
-
$root.google.chat.v1.Space.encode(message.spaces[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
47301
|
-
if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
|
|
47302
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
|
|
49075
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
49076
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
47303
49077
|
return writer;
|
|
47304
49078
|
};
|
|
47305
49079
|
|
|
47306
49080
|
/**
|
|
47307
|
-
* Encodes the specified
|
|
49081
|
+
* Encodes the specified FindDirectMessageRequest message, length delimited. Does not implicitly {@link google.chat.v1.FindDirectMessageRequest.verify|verify} messages.
|
|
47308
49082
|
* @function encodeDelimited
|
|
47309
|
-
* @memberof google.chat.v1.
|
|
49083
|
+
* @memberof google.chat.v1.FindDirectMessageRequest
|
|
47310
49084
|
* @static
|
|
47311
|
-
* @param {google.chat.v1.
|
|
49085
|
+
* @param {google.chat.v1.IFindDirectMessageRequest} message FindDirectMessageRequest message or plain object to encode
|
|
47312
49086
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47313
49087
|
* @returns {$protobuf.Writer} Writer
|
|
47314
49088
|
*/
|
|
47315
|
-
|
|
49089
|
+
FindDirectMessageRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
47316
49090
|
return this.encode(message, writer).ldelim();
|
|
47317
49091
|
};
|
|
47318
49092
|
|
|
47319
49093
|
/**
|
|
47320
|
-
* Decodes a
|
|
49094
|
+
* Decodes a FindDirectMessageRequest message from the specified reader or buffer.
|
|
47321
49095
|
* @function decode
|
|
47322
|
-
* @memberof google.chat.v1.
|
|
49096
|
+
* @memberof google.chat.v1.FindDirectMessageRequest
|
|
47323
49097
|
* @static
|
|
47324
49098
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47325
49099
|
* @param {number} [length] Message length if known beforehand
|
|
47326
|
-
* @returns {google.chat.v1.
|
|
49100
|
+
* @returns {google.chat.v1.FindDirectMessageRequest} FindDirectMessageRequest
|
|
47327
49101
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47328
49102
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47329
49103
|
*/
|
|
47330
|
-
|
|
49104
|
+
FindDirectMessageRequest.decode = function decode(reader, length) {
|
|
47331
49105
|
if (!(reader instanceof $Reader))
|
|
47332
49106
|
reader = $Reader.create(reader);
|
|
47333
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.
|
|
49107
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.FindDirectMessageRequest();
|
|
47334
49108
|
while (reader.pos < end) {
|
|
47335
49109
|
var tag = reader.uint32();
|
|
47336
49110
|
switch (tag >>> 3) {
|
|
47337
49111
|
case 1: {
|
|
47338
|
-
|
|
47339
|
-
message.spaces = [];
|
|
47340
|
-
message.spaces.push($root.google.chat.v1.Space.decode(reader, reader.uint32()));
|
|
47341
|
-
break;
|
|
47342
|
-
}
|
|
47343
|
-
case 2: {
|
|
47344
|
-
message.nextPageToken = reader.string();
|
|
49112
|
+
message.name = reader.string();
|
|
47345
49113
|
break;
|
|
47346
49114
|
}
|
|
47347
49115
|
default:
|
|
@@ -47353,148 +49121,124 @@
|
|
|
47353
49121
|
};
|
|
47354
49122
|
|
|
47355
49123
|
/**
|
|
47356
|
-
* Decodes a
|
|
49124
|
+
* Decodes a FindDirectMessageRequest message from the specified reader or buffer, length delimited.
|
|
47357
49125
|
* @function decodeDelimited
|
|
47358
|
-
* @memberof google.chat.v1.
|
|
49126
|
+
* @memberof google.chat.v1.FindDirectMessageRequest
|
|
47359
49127
|
* @static
|
|
47360
49128
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47361
|
-
* @returns {google.chat.v1.
|
|
49129
|
+
* @returns {google.chat.v1.FindDirectMessageRequest} FindDirectMessageRequest
|
|
47362
49130
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47363
49131
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47364
49132
|
*/
|
|
47365
|
-
|
|
49133
|
+
FindDirectMessageRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
47366
49134
|
if (!(reader instanceof $Reader))
|
|
47367
49135
|
reader = new $Reader(reader);
|
|
47368
49136
|
return this.decode(reader, reader.uint32());
|
|
47369
49137
|
};
|
|
47370
49138
|
|
|
47371
49139
|
/**
|
|
47372
|
-
* Verifies a
|
|
49140
|
+
* Verifies a FindDirectMessageRequest message.
|
|
47373
49141
|
* @function verify
|
|
47374
|
-
* @memberof google.chat.v1.
|
|
49142
|
+
* @memberof google.chat.v1.FindDirectMessageRequest
|
|
47375
49143
|
* @static
|
|
47376
49144
|
* @param {Object.<string,*>} message Plain object to verify
|
|
47377
49145
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
47378
49146
|
*/
|
|
47379
|
-
|
|
49147
|
+
FindDirectMessageRequest.verify = function verify(message) {
|
|
47380
49148
|
if (typeof message !== "object" || message === null)
|
|
47381
49149
|
return "object expected";
|
|
47382
|
-
if (message.
|
|
47383
|
-
if (
|
|
47384
|
-
return "
|
|
47385
|
-
for (var i = 0; i < message.spaces.length; ++i) {
|
|
47386
|
-
var error = $root.google.chat.v1.Space.verify(message.spaces[i]);
|
|
47387
|
-
if (error)
|
|
47388
|
-
return "spaces." + error;
|
|
47389
|
-
}
|
|
47390
|
-
}
|
|
47391
|
-
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
|
|
47392
|
-
if (!$util.isString(message.nextPageToken))
|
|
47393
|
-
return "nextPageToken: string expected";
|
|
49150
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
49151
|
+
if (!$util.isString(message.name))
|
|
49152
|
+
return "name: string expected";
|
|
47394
49153
|
return null;
|
|
47395
49154
|
};
|
|
47396
49155
|
|
|
47397
49156
|
/**
|
|
47398
|
-
* Creates a
|
|
49157
|
+
* Creates a FindDirectMessageRequest message from a plain object. Also converts values to their respective internal types.
|
|
47399
49158
|
* @function fromObject
|
|
47400
|
-
* @memberof google.chat.v1.
|
|
49159
|
+
* @memberof google.chat.v1.FindDirectMessageRequest
|
|
47401
49160
|
* @static
|
|
47402
49161
|
* @param {Object.<string,*>} object Plain object
|
|
47403
|
-
* @returns {google.chat.v1.
|
|
47404
|
-
*/
|
|
47405
|
-
|
|
47406
|
-
if (object instanceof $root.google.chat.v1.
|
|
47407
|
-
return object;
|
|
47408
|
-
var message = new $root.google.chat.v1.
|
|
47409
|
-
if (object.
|
|
47410
|
-
|
|
47411
|
-
throw TypeError(".google.chat.v1.ListSpacesResponse.spaces: array expected");
|
|
47412
|
-
message.spaces = [];
|
|
47413
|
-
for (var i = 0; i < object.spaces.length; ++i) {
|
|
47414
|
-
if (typeof object.spaces[i] !== "object")
|
|
47415
|
-
throw TypeError(".google.chat.v1.ListSpacesResponse.spaces: object expected");
|
|
47416
|
-
message.spaces[i] = $root.google.chat.v1.Space.fromObject(object.spaces[i]);
|
|
47417
|
-
}
|
|
47418
|
-
}
|
|
47419
|
-
if (object.nextPageToken != null)
|
|
47420
|
-
message.nextPageToken = String(object.nextPageToken);
|
|
49162
|
+
* @returns {google.chat.v1.FindDirectMessageRequest} FindDirectMessageRequest
|
|
49163
|
+
*/
|
|
49164
|
+
FindDirectMessageRequest.fromObject = function fromObject(object) {
|
|
49165
|
+
if (object instanceof $root.google.chat.v1.FindDirectMessageRequest)
|
|
49166
|
+
return object;
|
|
49167
|
+
var message = new $root.google.chat.v1.FindDirectMessageRequest();
|
|
49168
|
+
if (object.name != null)
|
|
49169
|
+
message.name = String(object.name);
|
|
47421
49170
|
return message;
|
|
47422
49171
|
};
|
|
47423
49172
|
|
|
47424
49173
|
/**
|
|
47425
|
-
* Creates a plain object from a
|
|
49174
|
+
* Creates a plain object from a FindDirectMessageRequest message. Also converts values to other types if specified.
|
|
47426
49175
|
* @function toObject
|
|
47427
|
-
* @memberof google.chat.v1.
|
|
49176
|
+
* @memberof google.chat.v1.FindDirectMessageRequest
|
|
47428
49177
|
* @static
|
|
47429
|
-
* @param {google.chat.v1.
|
|
49178
|
+
* @param {google.chat.v1.FindDirectMessageRequest} message FindDirectMessageRequest
|
|
47430
49179
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
47431
49180
|
* @returns {Object.<string,*>} Plain object
|
|
47432
49181
|
*/
|
|
47433
|
-
|
|
49182
|
+
FindDirectMessageRequest.toObject = function toObject(message, options) {
|
|
47434
49183
|
if (!options)
|
|
47435
49184
|
options = {};
|
|
47436
49185
|
var object = {};
|
|
47437
|
-
if (options.arrays || options.defaults)
|
|
47438
|
-
object.spaces = [];
|
|
47439
49186
|
if (options.defaults)
|
|
47440
|
-
object.
|
|
47441
|
-
if (message.
|
|
47442
|
-
object.
|
|
47443
|
-
for (var j = 0; j < message.spaces.length; ++j)
|
|
47444
|
-
object.spaces[j] = $root.google.chat.v1.Space.toObject(message.spaces[j], options);
|
|
47445
|
-
}
|
|
47446
|
-
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
|
|
47447
|
-
object.nextPageToken = message.nextPageToken;
|
|
49187
|
+
object.name = "";
|
|
49188
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
49189
|
+
object.name = message.name;
|
|
47448
49190
|
return object;
|
|
47449
49191
|
};
|
|
47450
49192
|
|
|
47451
49193
|
/**
|
|
47452
|
-
* Converts this
|
|
49194
|
+
* Converts this FindDirectMessageRequest to JSON.
|
|
47453
49195
|
* @function toJSON
|
|
47454
|
-
* @memberof google.chat.v1.
|
|
49196
|
+
* @memberof google.chat.v1.FindDirectMessageRequest
|
|
47455
49197
|
* @instance
|
|
47456
49198
|
* @returns {Object.<string,*>} JSON object
|
|
47457
49199
|
*/
|
|
47458
|
-
|
|
49200
|
+
FindDirectMessageRequest.prototype.toJSON = function toJSON() {
|
|
47459
49201
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
47460
49202
|
};
|
|
47461
49203
|
|
|
47462
49204
|
/**
|
|
47463
|
-
* Gets the default type url for
|
|
49205
|
+
* Gets the default type url for FindDirectMessageRequest
|
|
47464
49206
|
* @function getTypeUrl
|
|
47465
|
-
* @memberof google.chat.v1.
|
|
49207
|
+
* @memberof google.chat.v1.FindDirectMessageRequest
|
|
47466
49208
|
* @static
|
|
47467
49209
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
47468
49210
|
* @returns {string} The default type url
|
|
47469
49211
|
*/
|
|
47470
|
-
|
|
49212
|
+
FindDirectMessageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
47471
49213
|
if (typeUrlPrefix === undefined) {
|
|
47472
49214
|
typeUrlPrefix = "type.googleapis.com";
|
|
47473
49215
|
}
|
|
47474
|
-
return typeUrlPrefix + "/google.chat.v1.
|
|
49216
|
+
return typeUrlPrefix + "/google.chat.v1.FindDirectMessageRequest";
|
|
47475
49217
|
};
|
|
47476
49218
|
|
|
47477
|
-
return
|
|
49219
|
+
return FindDirectMessageRequest;
|
|
47478
49220
|
})();
|
|
47479
49221
|
|
|
47480
|
-
v1.
|
|
49222
|
+
v1.UpdateSpaceRequest = (function() {
|
|
47481
49223
|
|
|
47482
49224
|
/**
|
|
47483
|
-
* Properties of
|
|
49225
|
+
* Properties of an UpdateSpaceRequest.
|
|
47484
49226
|
* @memberof google.chat.v1
|
|
47485
|
-
* @interface
|
|
47486
|
-
* @property {
|
|
49227
|
+
* @interface IUpdateSpaceRequest
|
|
49228
|
+
* @property {google.chat.v1.ISpace|null} [space] UpdateSpaceRequest space
|
|
49229
|
+
* @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSpaceRequest updateMask
|
|
49230
|
+
* @property {boolean|null} [useAdminAccess] UpdateSpaceRequest useAdminAccess
|
|
47487
49231
|
*/
|
|
47488
49232
|
|
|
47489
49233
|
/**
|
|
47490
|
-
* Constructs a new
|
|
49234
|
+
* Constructs a new UpdateSpaceRequest.
|
|
47491
49235
|
* @memberof google.chat.v1
|
|
47492
|
-
* @classdesc Represents
|
|
47493
|
-
* @implements
|
|
49236
|
+
* @classdesc Represents an UpdateSpaceRequest.
|
|
49237
|
+
* @implements IUpdateSpaceRequest
|
|
47494
49238
|
* @constructor
|
|
47495
|
-
* @param {google.chat.v1.
|
|
49239
|
+
* @param {google.chat.v1.IUpdateSpaceRequest=} [properties] Properties to set
|
|
47496
49240
|
*/
|
|
47497
|
-
function
|
|
49241
|
+
function UpdateSpaceRequest(properties) {
|
|
47498
49242
|
if (properties)
|
|
47499
49243
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47500
49244
|
if (properties[keys[i]] != null)
|
|
@@ -47502,75 +49246,103 @@
|
|
|
47502
49246
|
}
|
|
47503
49247
|
|
|
47504
49248
|
/**
|
|
47505
|
-
*
|
|
47506
|
-
* @member {
|
|
47507
|
-
* @memberof google.chat.v1.
|
|
49249
|
+
* UpdateSpaceRequest space.
|
|
49250
|
+
* @member {google.chat.v1.ISpace|null|undefined} space
|
|
49251
|
+
* @memberof google.chat.v1.UpdateSpaceRequest
|
|
47508
49252
|
* @instance
|
|
47509
49253
|
*/
|
|
47510
|
-
|
|
49254
|
+
UpdateSpaceRequest.prototype.space = null;
|
|
47511
49255
|
|
|
47512
49256
|
/**
|
|
47513
|
-
*
|
|
49257
|
+
* UpdateSpaceRequest updateMask.
|
|
49258
|
+
* @member {google.protobuf.IFieldMask|null|undefined} updateMask
|
|
49259
|
+
* @memberof google.chat.v1.UpdateSpaceRequest
|
|
49260
|
+
* @instance
|
|
49261
|
+
*/
|
|
49262
|
+
UpdateSpaceRequest.prototype.updateMask = null;
|
|
49263
|
+
|
|
49264
|
+
/**
|
|
49265
|
+
* UpdateSpaceRequest useAdminAccess.
|
|
49266
|
+
* @member {boolean} useAdminAccess
|
|
49267
|
+
* @memberof google.chat.v1.UpdateSpaceRequest
|
|
49268
|
+
* @instance
|
|
49269
|
+
*/
|
|
49270
|
+
UpdateSpaceRequest.prototype.useAdminAccess = false;
|
|
49271
|
+
|
|
49272
|
+
/**
|
|
49273
|
+
* Creates a new UpdateSpaceRequest instance using the specified properties.
|
|
47514
49274
|
* @function create
|
|
47515
|
-
* @memberof google.chat.v1.
|
|
49275
|
+
* @memberof google.chat.v1.UpdateSpaceRequest
|
|
47516
49276
|
* @static
|
|
47517
|
-
* @param {google.chat.v1.
|
|
47518
|
-
* @returns {google.chat.v1.
|
|
49277
|
+
* @param {google.chat.v1.IUpdateSpaceRequest=} [properties] Properties to set
|
|
49278
|
+
* @returns {google.chat.v1.UpdateSpaceRequest} UpdateSpaceRequest instance
|
|
47519
49279
|
*/
|
|
47520
|
-
|
|
47521
|
-
return new
|
|
49280
|
+
UpdateSpaceRequest.create = function create(properties) {
|
|
49281
|
+
return new UpdateSpaceRequest(properties);
|
|
47522
49282
|
};
|
|
47523
49283
|
|
|
47524
49284
|
/**
|
|
47525
|
-
* Encodes the specified
|
|
49285
|
+
* Encodes the specified UpdateSpaceRequest message. Does not implicitly {@link google.chat.v1.UpdateSpaceRequest.verify|verify} messages.
|
|
47526
49286
|
* @function encode
|
|
47527
|
-
* @memberof google.chat.v1.
|
|
49287
|
+
* @memberof google.chat.v1.UpdateSpaceRequest
|
|
47528
49288
|
* @static
|
|
47529
|
-
* @param {google.chat.v1.
|
|
49289
|
+
* @param {google.chat.v1.IUpdateSpaceRequest} message UpdateSpaceRequest message or plain object to encode
|
|
47530
49290
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47531
49291
|
* @returns {$protobuf.Writer} Writer
|
|
47532
49292
|
*/
|
|
47533
|
-
|
|
49293
|
+
UpdateSpaceRequest.encode = function encode(message, writer) {
|
|
47534
49294
|
if (!writer)
|
|
47535
49295
|
writer = $Writer.create();
|
|
47536
|
-
if (message.
|
|
47537
|
-
writer.uint32(/* id 1, wireType 2 =*/10).
|
|
49296
|
+
if (message.space != null && Object.hasOwnProperty.call(message, "space"))
|
|
49297
|
+
$root.google.chat.v1.Space.encode(message.space, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
49298
|
+
if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
|
|
49299
|
+
$root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
49300
|
+
if (message.useAdminAccess != null && Object.hasOwnProperty.call(message, "useAdminAccess"))
|
|
49301
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.useAdminAccess);
|
|
47538
49302
|
return writer;
|
|
47539
49303
|
};
|
|
47540
49304
|
|
|
47541
49305
|
/**
|
|
47542
|
-
* Encodes the specified
|
|
49306
|
+
* Encodes the specified UpdateSpaceRequest message, length delimited. Does not implicitly {@link google.chat.v1.UpdateSpaceRequest.verify|verify} messages.
|
|
47543
49307
|
* @function encodeDelimited
|
|
47544
|
-
* @memberof google.chat.v1.
|
|
49308
|
+
* @memberof google.chat.v1.UpdateSpaceRequest
|
|
47545
49309
|
* @static
|
|
47546
|
-
* @param {google.chat.v1.
|
|
49310
|
+
* @param {google.chat.v1.IUpdateSpaceRequest} message UpdateSpaceRequest message or plain object to encode
|
|
47547
49311
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47548
49312
|
* @returns {$protobuf.Writer} Writer
|
|
47549
49313
|
*/
|
|
47550
|
-
|
|
49314
|
+
UpdateSpaceRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
47551
49315
|
return this.encode(message, writer).ldelim();
|
|
47552
49316
|
};
|
|
47553
49317
|
|
|
47554
49318
|
/**
|
|
47555
|
-
* Decodes
|
|
49319
|
+
* Decodes an UpdateSpaceRequest message from the specified reader or buffer.
|
|
47556
49320
|
* @function decode
|
|
47557
|
-
* @memberof google.chat.v1.
|
|
49321
|
+
* @memberof google.chat.v1.UpdateSpaceRequest
|
|
47558
49322
|
* @static
|
|
47559
49323
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47560
49324
|
* @param {number} [length] Message length if known beforehand
|
|
47561
|
-
* @returns {google.chat.v1.
|
|
49325
|
+
* @returns {google.chat.v1.UpdateSpaceRequest} UpdateSpaceRequest
|
|
47562
49326
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47563
49327
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47564
49328
|
*/
|
|
47565
|
-
|
|
49329
|
+
UpdateSpaceRequest.decode = function decode(reader, length) {
|
|
47566
49330
|
if (!(reader instanceof $Reader))
|
|
47567
49331
|
reader = $Reader.create(reader);
|
|
47568
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.
|
|
49332
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.UpdateSpaceRequest();
|
|
47569
49333
|
while (reader.pos < end) {
|
|
47570
49334
|
var tag = reader.uint32();
|
|
47571
49335
|
switch (tag >>> 3) {
|
|
47572
49336
|
case 1: {
|
|
47573
|
-
message.
|
|
49337
|
+
message.space = $root.google.chat.v1.Space.decode(reader, reader.uint32());
|
|
49338
|
+
break;
|
|
49339
|
+
}
|
|
49340
|
+
case 2: {
|
|
49341
|
+
message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
|
|
49342
|
+
break;
|
|
49343
|
+
}
|
|
49344
|
+
case 3: {
|
|
49345
|
+
message.useAdminAccess = reader.bool();
|
|
47574
49346
|
break;
|
|
47575
49347
|
}
|
|
47576
49348
|
default:
|
|
@@ -47582,122 +49354,153 @@
|
|
|
47582
49354
|
};
|
|
47583
49355
|
|
|
47584
49356
|
/**
|
|
47585
|
-
* Decodes
|
|
49357
|
+
* Decodes an UpdateSpaceRequest message from the specified reader or buffer, length delimited.
|
|
47586
49358
|
* @function decodeDelimited
|
|
47587
|
-
* @memberof google.chat.v1.
|
|
49359
|
+
* @memberof google.chat.v1.UpdateSpaceRequest
|
|
47588
49360
|
* @static
|
|
47589
49361
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47590
|
-
* @returns {google.chat.v1.
|
|
49362
|
+
* @returns {google.chat.v1.UpdateSpaceRequest} UpdateSpaceRequest
|
|
47591
49363
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47592
49364
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47593
49365
|
*/
|
|
47594
|
-
|
|
49366
|
+
UpdateSpaceRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
47595
49367
|
if (!(reader instanceof $Reader))
|
|
47596
49368
|
reader = new $Reader(reader);
|
|
47597
49369
|
return this.decode(reader, reader.uint32());
|
|
47598
49370
|
};
|
|
47599
49371
|
|
|
47600
49372
|
/**
|
|
47601
|
-
* Verifies
|
|
49373
|
+
* Verifies an UpdateSpaceRequest message.
|
|
47602
49374
|
* @function verify
|
|
47603
|
-
* @memberof google.chat.v1.
|
|
49375
|
+
* @memberof google.chat.v1.UpdateSpaceRequest
|
|
47604
49376
|
* @static
|
|
47605
49377
|
* @param {Object.<string,*>} message Plain object to verify
|
|
47606
49378
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
47607
49379
|
*/
|
|
47608
|
-
|
|
49380
|
+
UpdateSpaceRequest.verify = function verify(message) {
|
|
47609
49381
|
if (typeof message !== "object" || message === null)
|
|
47610
49382
|
return "object expected";
|
|
47611
|
-
if (message.
|
|
47612
|
-
|
|
47613
|
-
|
|
49383
|
+
if (message.space != null && message.hasOwnProperty("space")) {
|
|
49384
|
+
var error = $root.google.chat.v1.Space.verify(message.space);
|
|
49385
|
+
if (error)
|
|
49386
|
+
return "space." + error;
|
|
49387
|
+
}
|
|
49388
|
+
if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
|
|
49389
|
+
var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
|
|
49390
|
+
if (error)
|
|
49391
|
+
return "updateMask." + error;
|
|
49392
|
+
}
|
|
49393
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
49394
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
49395
|
+
return "useAdminAccess: boolean expected";
|
|
47614
49396
|
return null;
|
|
47615
49397
|
};
|
|
47616
49398
|
|
|
47617
49399
|
/**
|
|
47618
|
-
* Creates
|
|
49400
|
+
* Creates an UpdateSpaceRequest message from a plain object. Also converts values to their respective internal types.
|
|
47619
49401
|
* @function fromObject
|
|
47620
|
-
* @memberof google.chat.v1.
|
|
49402
|
+
* @memberof google.chat.v1.UpdateSpaceRequest
|
|
47621
49403
|
* @static
|
|
47622
49404
|
* @param {Object.<string,*>} object Plain object
|
|
47623
|
-
* @returns {google.chat.v1.
|
|
49405
|
+
* @returns {google.chat.v1.UpdateSpaceRequest} UpdateSpaceRequest
|
|
47624
49406
|
*/
|
|
47625
|
-
|
|
47626
|
-
if (object instanceof $root.google.chat.v1.
|
|
49407
|
+
UpdateSpaceRequest.fromObject = function fromObject(object) {
|
|
49408
|
+
if (object instanceof $root.google.chat.v1.UpdateSpaceRequest)
|
|
47627
49409
|
return object;
|
|
47628
|
-
var message = new $root.google.chat.v1.
|
|
47629
|
-
if (object.
|
|
47630
|
-
|
|
49410
|
+
var message = new $root.google.chat.v1.UpdateSpaceRequest();
|
|
49411
|
+
if (object.space != null) {
|
|
49412
|
+
if (typeof object.space !== "object")
|
|
49413
|
+
throw TypeError(".google.chat.v1.UpdateSpaceRequest.space: object expected");
|
|
49414
|
+
message.space = $root.google.chat.v1.Space.fromObject(object.space);
|
|
49415
|
+
}
|
|
49416
|
+
if (object.updateMask != null) {
|
|
49417
|
+
if (typeof object.updateMask !== "object")
|
|
49418
|
+
throw TypeError(".google.chat.v1.UpdateSpaceRequest.updateMask: object expected");
|
|
49419
|
+
message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
|
|
49420
|
+
}
|
|
49421
|
+
if (object.useAdminAccess != null)
|
|
49422
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
47631
49423
|
return message;
|
|
47632
49424
|
};
|
|
47633
49425
|
|
|
47634
49426
|
/**
|
|
47635
|
-
* Creates a plain object from
|
|
49427
|
+
* Creates a plain object from an UpdateSpaceRequest message. Also converts values to other types if specified.
|
|
47636
49428
|
* @function toObject
|
|
47637
|
-
* @memberof google.chat.v1.
|
|
49429
|
+
* @memberof google.chat.v1.UpdateSpaceRequest
|
|
47638
49430
|
* @static
|
|
47639
|
-
* @param {google.chat.v1.
|
|
49431
|
+
* @param {google.chat.v1.UpdateSpaceRequest} message UpdateSpaceRequest
|
|
47640
49432
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
47641
49433
|
* @returns {Object.<string,*>} Plain object
|
|
47642
49434
|
*/
|
|
47643
|
-
|
|
49435
|
+
UpdateSpaceRequest.toObject = function toObject(message, options) {
|
|
47644
49436
|
if (!options)
|
|
47645
49437
|
options = {};
|
|
47646
49438
|
var object = {};
|
|
47647
|
-
if (options.defaults)
|
|
47648
|
-
object.
|
|
47649
|
-
|
|
47650
|
-
object.
|
|
49439
|
+
if (options.defaults) {
|
|
49440
|
+
object.space = null;
|
|
49441
|
+
object.updateMask = null;
|
|
49442
|
+
object.useAdminAccess = false;
|
|
49443
|
+
}
|
|
49444
|
+
if (message.space != null && message.hasOwnProperty("space"))
|
|
49445
|
+
object.space = $root.google.chat.v1.Space.toObject(message.space, options);
|
|
49446
|
+
if (message.updateMask != null && message.hasOwnProperty("updateMask"))
|
|
49447
|
+
object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
|
|
49448
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
49449
|
+
object.useAdminAccess = message.useAdminAccess;
|
|
47651
49450
|
return object;
|
|
47652
49451
|
};
|
|
47653
49452
|
|
|
47654
49453
|
/**
|
|
47655
|
-
* Converts this
|
|
49454
|
+
* Converts this UpdateSpaceRequest to JSON.
|
|
47656
49455
|
* @function toJSON
|
|
47657
|
-
* @memberof google.chat.v1.
|
|
49456
|
+
* @memberof google.chat.v1.UpdateSpaceRequest
|
|
47658
49457
|
* @instance
|
|
47659
49458
|
* @returns {Object.<string,*>} JSON object
|
|
47660
49459
|
*/
|
|
47661
|
-
|
|
49460
|
+
UpdateSpaceRequest.prototype.toJSON = function toJSON() {
|
|
47662
49461
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
47663
49462
|
};
|
|
47664
49463
|
|
|
47665
49464
|
/**
|
|
47666
|
-
* Gets the default type url for
|
|
49465
|
+
* Gets the default type url for UpdateSpaceRequest
|
|
47667
49466
|
* @function getTypeUrl
|
|
47668
|
-
* @memberof google.chat.v1.
|
|
49467
|
+
* @memberof google.chat.v1.UpdateSpaceRequest
|
|
47669
49468
|
* @static
|
|
47670
49469
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
47671
49470
|
* @returns {string} The default type url
|
|
47672
49471
|
*/
|
|
47673
|
-
|
|
49472
|
+
UpdateSpaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
47674
49473
|
if (typeUrlPrefix === undefined) {
|
|
47675
49474
|
typeUrlPrefix = "type.googleapis.com";
|
|
47676
49475
|
}
|
|
47677
|
-
return typeUrlPrefix + "/google.chat.v1.
|
|
49476
|
+
return typeUrlPrefix + "/google.chat.v1.UpdateSpaceRequest";
|
|
47678
49477
|
};
|
|
47679
49478
|
|
|
47680
|
-
return
|
|
49479
|
+
return UpdateSpaceRequest;
|
|
47681
49480
|
})();
|
|
47682
49481
|
|
|
47683
|
-
v1.
|
|
49482
|
+
v1.SearchSpacesRequest = (function() {
|
|
47684
49483
|
|
|
47685
49484
|
/**
|
|
47686
|
-
* Properties of a
|
|
49485
|
+
* Properties of a SearchSpacesRequest.
|
|
47687
49486
|
* @memberof google.chat.v1
|
|
47688
|
-
* @interface
|
|
47689
|
-
* @property {
|
|
49487
|
+
* @interface ISearchSpacesRequest
|
|
49488
|
+
* @property {boolean|null} [useAdminAccess] SearchSpacesRequest useAdminAccess
|
|
49489
|
+
* @property {number|null} [pageSize] SearchSpacesRequest pageSize
|
|
49490
|
+
* @property {string|null} [pageToken] SearchSpacesRequest pageToken
|
|
49491
|
+
* @property {string|null} [query] SearchSpacesRequest query
|
|
49492
|
+
* @property {string|null} [orderBy] SearchSpacesRequest orderBy
|
|
47690
49493
|
*/
|
|
47691
49494
|
|
|
47692
49495
|
/**
|
|
47693
|
-
* Constructs a new
|
|
49496
|
+
* Constructs a new SearchSpacesRequest.
|
|
47694
49497
|
* @memberof google.chat.v1
|
|
47695
|
-
* @classdesc Represents a
|
|
47696
|
-
* @implements
|
|
49498
|
+
* @classdesc Represents a SearchSpacesRequest.
|
|
49499
|
+
* @implements ISearchSpacesRequest
|
|
47697
49500
|
* @constructor
|
|
47698
|
-
* @param {google.chat.v1.
|
|
49501
|
+
* @param {google.chat.v1.ISearchSpacesRequest=} [properties] Properties to set
|
|
47699
49502
|
*/
|
|
47700
|
-
function
|
|
49503
|
+
function SearchSpacesRequest(properties) {
|
|
47701
49504
|
if (properties)
|
|
47702
49505
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47703
49506
|
if (properties[keys[i]] != null)
|
|
@@ -47705,75 +49508,131 @@
|
|
|
47705
49508
|
}
|
|
47706
49509
|
|
|
47707
49510
|
/**
|
|
47708
|
-
*
|
|
47709
|
-
* @member {
|
|
47710
|
-
* @memberof google.chat.v1.
|
|
49511
|
+
* SearchSpacesRequest useAdminAccess.
|
|
49512
|
+
* @member {boolean} useAdminAccess
|
|
49513
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
49514
|
+
* @instance
|
|
49515
|
+
*/
|
|
49516
|
+
SearchSpacesRequest.prototype.useAdminAccess = false;
|
|
49517
|
+
|
|
49518
|
+
/**
|
|
49519
|
+
* SearchSpacesRequest pageSize.
|
|
49520
|
+
* @member {number} pageSize
|
|
49521
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
49522
|
+
* @instance
|
|
49523
|
+
*/
|
|
49524
|
+
SearchSpacesRequest.prototype.pageSize = 0;
|
|
49525
|
+
|
|
49526
|
+
/**
|
|
49527
|
+
* SearchSpacesRequest pageToken.
|
|
49528
|
+
* @member {string} pageToken
|
|
49529
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
49530
|
+
* @instance
|
|
49531
|
+
*/
|
|
49532
|
+
SearchSpacesRequest.prototype.pageToken = "";
|
|
49533
|
+
|
|
49534
|
+
/**
|
|
49535
|
+
* SearchSpacesRequest query.
|
|
49536
|
+
* @member {string} query
|
|
49537
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
49538
|
+
* @instance
|
|
49539
|
+
*/
|
|
49540
|
+
SearchSpacesRequest.prototype.query = "";
|
|
49541
|
+
|
|
49542
|
+
/**
|
|
49543
|
+
* SearchSpacesRequest orderBy.
|
|
49544
|
+
* @member {string} orderBy
|
|
49545
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
47711
49546
|
* @instance
|
|
47712
49547
|
*/
|
|
47713
|
-
|
|
49548
|
+
SearchSpacesRequest.prototype.orderBy = "";
|
|
47714
49549
|
|
|
47715
49550
|
/**
|
|
47716
|
-
* Creates a new
|
|
49551
|
+
* Creates a new SearchSpacesRequest instance using the specified properties.
|
|
47717
49552
|
* @function create
|
|
47718
|
-
* @memberof google.chat.v1.
|
|
49553
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
47719
49554
|
* @static
|
|
47720
|
-
* @param {google.chat.v1.
|
|
47721
|
-
* @returns {google.chat.v1.
|
|
49555
|
+
* @param {google.chat.v1.ISearchSpacesRequest=} [properties] Properties to set
|
|
49556
|
+
* @returns {google.chat.v1.SearchSpacesRequest} SearchSpacesRequest instance
|
|
47722
49557
|
*/
|
|
47723
|
-
|
|
47724
|
-
return new
|
|
49558
|
+
SearchSpacesRequest.create = function create(properties) {
|
|
49559
|
+
return new SearchSpacesRequest(properties);
|
|
47725
49560
|
};
|
|
47726
49561
|
|
|
47727
49562
|
/**
|
|
47728
|
-
* Encodes the specified
|
|
49563
|
+
* Encodes the specified SearchSpacesRequest message. Does not implicitly {@link google.chat.v1.SearchSpacesRequest.verify|verify} messages.
|
|
47729
49564
|
* @function encode
|
|
47730
|
-
* @memberof google.chat.v1.
|
|
49565
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
47731
49566
|
* @static
|
|
47732
|
-
* @param {google.chat.v1.
|
|
49567
|
+
* @param {google.chat.v1.ISearchSpacesRequest} message SearchSpacesRequest message or plain object to encode
|
|
47733
49568
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47734
49569
|
* @returns {$protobuf.Writer} Writer
|
|
47735
49570
|
*/
|
|
47736
|
-
|
|
49571
|
+
SearchSpacesRequest.encode = function encode(message, writer) {
|
|
47737
49572
|
if (!writer)
|
|
47738
49573
|
writer = $Writer.create();
|
|
47739
|
-
if (message.
|
|
47740
|
-
writer.uint32(/* id 1, wireType
|
|
49574
|
+
if (message.useAdminAccess != null && Object.hasOwnProperty.call(message, "useAdminAccess"))
|
|
49575
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useAdminAccess);
|
|
49576
|
+
if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
|
|
49577
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
|
|
49578
|
+
if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
|
|
49579
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
|
|
49580
|
+
if (message.query != null && Object.hasOwnProperty.call(message, "query"))
|
|
49581
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.query);
|
|
49582
|
+
if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
|
|
49583
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy);
|
|
47741
49584
|
return writer;
|
|
47742
49585
|
};
|
|
47743
49586
|
|
|
47744
49587
|
/**
|
|
47745
|
-
* Encodes the specified
|
|
49588
|
+
* Encodes the specified SearchSpacesRequest message, length delimited. Does not implicitly {@link google.chat.v1.SearchSpacesRequest.verify|verify} messages.
|
|
47746
49589
|
* @function encodeDelimited
|
|
47747
|
-
* @memberof google.chat.v1.
|
|
49590
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
47748
49591
|
* @static
|
|
47749
|
-
* @param {google.chat.v1.
|
|
49592
|
+
* @param {google.chat.v1.ISearchSpacesRequest} message SearchSpacesRequest message or plain object to encode
|
|
47750
49593
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47751
49594
|
* @returns {$protobuf.Writer} Writer
|
|
47752
49595
|
*/
|
|
47753
|
-
|
|
49596
|
+
SearchSpacesRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
47754
49597
|
return this.encode(message, writer).ldelim();
|
|
47755
49598
|
};
|
|
47756
49599
|
|
|
47757
49600
|
/**
|
|
47758
|
-
* Decodes a
|
|
49601
|
+
* Decodes a SearchSpacesRequest message from the specified reader or buffer.
|
|
47759
49602
|
* @function decode
|
|
47760
|
-
* @memberof google.chat.v1.
|
|
49603
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
47761
49604
|
* @static
|
|
47762
49605
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47763
49606
|
* @param {number} [length] Message length if known beforehand
|
|
47764
|
-
* @returns {google.chat.v1.
|
|
49607
|
+
* @returns {google.chat.v1.SearchSpacesRequest} SearchSpacesRequest
|
|
47765
49608
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47766
49609
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47767
49610
|
*/
|
|
47768
|
-
|
|
49611
|
+
SearchSpacesRequest.decode = function decode(reader, length) {
|
|
47769
49612
|
if (!(reader instanceof $Reader))
|
|
47770
49613
|
reader = $Reader.create(reader);
|
|
47771
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.
|
|
49614
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.SearchSpacesRequest();
|
|
47772
49615
|
while (reader.pos < end) {
|
|
47773
49616
|
var tag = reader.uint32();
|
|
47774
49617
|
switch (tag >>> 3) {
|
|
47775
49618
|
case 1: {
|
|
47776
|
-
message.
|
|
49619
|
+
message.useAdminAccess = reader.bool();
|
|
49620
|
+
break;
|
|
49621
|
+
}
|
|
49622
|
+
case 2: {
|
|
49623
|
+
message.pageSize = reader.int32();
|
|
49624
|
+
break;
|
|
49625
|
+
}
|
|
49626
|
+
case 3: {
|
|
49627
|
+
message.pageToken = reader.string();
|
|
49628
|
+
break;
|
|
49629
|
+
}
|
|
49630
|
+
case 4: {
|
|
49631
|
+
message.query = reader.string();
|
|
49632
|
+
break;
|
|
49633
|
+
}
|
|
49634
|
+
case 5: {
|
|
49635
|
+
message.orderBy = reader.string();
|
|
47777
49636
|
break;
|
|
47778
49637
|
}
|
|
47779
49638
|
default:
|
|
@@ -47785,123 +49644,158 @@
|
|
|
47785
49644
|
};
|
|
47786
49645
|
|
|
47787
49646
|
/**
|
|
47788
|
-
* Decodes a
|
|
49647
|
+
* Decodes a SearchSpacesRequest message from the specified reader or buffer, length delimited.
|
|
47789
49648
|
* @function decodeDelimited
|
|
47790
|
-
* @memberof google.chat.v1.
|
|
49649
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
47791
49650
|
* @static
|
|
47792
49651
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47793
|
-
* @returns {google.chat.v1.
|
|
49652
|
+
* @returns {google.chat.v1.SearchSpacesRequest} SearchSpacesRequest
|
|
47794
49653
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47795
49654
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47796
49655
|
*/
|
|
47797
|
-
|
|
49656
|
+
SearchSpacesRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
47798
49657
|
if (!(reader instanceof $Reader))
|
|
47799
49658
|
reader = new $Reader(reader);
|
|
47800
49659
|
return this.decode(reader, reader.uint32());
|
|
47801
49660
|
};
|
|
47802
49661
|
|
|
47803
49662
|
/**
|
|
47804
|
-
* Verifies a
|
|
49663
|
+
* Verifies a SearchSpacesRequest message.
|
|
47805
49664
|
* @function verify
|
|
47806
|
-
* @memberof google.chat.v1.
|
|
49665
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
47807
49666
|
* @static
|
|
47808
49667
|
* @param {Object.<string,*>} message Plain object to verify
|
|
47809
49668
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
47810
49669
|
*/
|
|
47811
|
-
|
|
49670
|
+
SearchSpacesRequest.verify = function verify(message) {
|
|
47812
49671
|
if (typeof message !== "object" || message === null)
|
|
47813
49672
|
return "object expected";
|
|
47814
|
-
if (message.
|
|
47815
|
-
if (
|
|
47816
|
-
return "
|
|
49673
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
49674
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
49675
|
+
return "useAdminAccess: boolean expected";
|
|
49676
|
+
if (message.pageSize != null && message.hasOwnProperty("pageSize"))
|
|
49677
|
+
if (!$util.isInteger(message.pageSize))
|
|
49678
|
+
return "pageSize: integer expected";
|
|
49679
|
+
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
49680
|
+
if (!$util.isString(message.pageToken))
|
|
49681
|
+
return "pageToken: string expected";
|
|
49682
|
+
if (message.query != null && message.hasOwnProperty("query"))
|
|
49683
|
+
if (!$util.isString(message.query))
|
|
49684
|
+
return "query: string expected";
|
|
49685
|
+
if (message.orderBy != null && message.hasOwnProperty("orderBy"))
|
|
49686
|
+
if (!$util.isString(message.orderBy))
|
|
49687
|
+
return "orderBy: string expected";
|
|
47817
49688
|
return null;
|
|
47818
49689
|
};
|
|
47819
49690
|
|
|
47820
49691
|
/**
|
|
47821
|
-
* Creates a
|
|
49692
|
+
* Creates a SearchSpacesRequest message from a plain object. Also converts values to their respective internal types.
|
|
47822
49693
|
* @function fromObject
|
|
47823
|
-
* @memberof google.chat.v1.
|
|
49694
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
47824
49695
|
* @static
|
|
47825
49696
|
* @param {Object.<string,*>} object Plain object
|
|
47826
|
-
* @returns {google.chat.v1.
|
|
49697
|
+
* @returns {google.chat.v1.SearchSpacesRequest} SearchSpacesRequest
|
|
47827
49698
|
*/
|
|
47828
|
-
|
|
47829
|
-
if (object instanceof $root.google.chat.v1.
|
|
49699
|
+
SearchSpacesRequest.fromObject = function fromObject(object) {
|
|
49700
|
+
if (object instanceof $root.google.chat.v1.SearchSpacesRequest)
|
|
47830
49701
|
return object;
|
|
47831
|
-
var message = new $root.google.chat.v1.
|
|
47832
|
-
if (object.
|
|
47833
|
-
message.
|
|
49702
|
+
var message = new $root.google.chat.v1.SearchSpacesRequest();
|
|
49703
|
+
if (object.useAdminAccess != null)
|
|
49704
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
49705
|
+
if (object.pageSize != null)
|
|
49706
|
+
message.pageSize = object.pageSize | 0;
|
|
49707
|
+
if (object.pageToken != null)
|
|
49708
|
+
message.pageToken = String(object.pageToken);
|
|
49709
|
+
if (object.query != null)
|
|
49710
|
+
message.query = String(object.query);
|
|
49711
|
+
if (object.orderBy != null)
|
|
49712
|
+
message.orderBy = String(object.orderBy);
|
|
47834
49713
|
return message;
|
|
47835
49714
|
};
|
|
47836
49715
|
|
|
47837
49716
|
/**
|
|
47838
|
-
* Creates a plain object from a
|
|
49717
|
+
* Creates a plain object from a SearchSpacesRequest message. Also converts values to other types if specified.
|
|
47839
49718
|
* @function toObject
|
|
47840
|
-
* @memberof google.chat.v1.
|
|
49719
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
47841
49720
|
* @static
|
|
47842
|
-
* @param {google.chat.v1.
|
|
49721
|
+
* @param {google.chat.v1.SearchSpacesRequest} message SearchSpacesRequest
|
|
47843
49722
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
47844
49723
|
* @returns {Object.<string,*>} Plain object
|
|
47845
49724
|
*/
|
|
47846
|
-
|
|
49725
|
+
SearchSpacesRequest.toObject = function toObject(message, options) {
|
|
47847
49726
|
if (!options)
|
|
47848
49727
|
options = {};
|
|
47849
49728
|
var object = {};
|
|
47850
|
-
if (options.defaults)
|
|
47851
|
-
object.
|
|
47852
|
-
|
|
47853
|
-
object.
|
|
49729
|
+
if (options.defaults) {
|
|
49730
|
+
object.useAdminAccess = false;
|
|
49731
|
+
object.pageSize = 0;
|
|
49732
|
+
object.pageToken = "";
|
|
49733
|
+
object.query = "";
|
|
49734
|
+
object.orderBy = "";
|
|
49735
|
+
}
|
|
49736
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
49737
|
+
object.useAdminAccess = message.useAdminAccess;
|
|
49738
|
+
if (message.pageSize != null && message.hasOwnProperty("pageSize"))
|
|
49739
|
+
object.pageSize = message.pageSize;
|
|
49740
|
+
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
49741
|
+
object.pageToken = message.pageToken;
|
|
49742
|
+
if (message.query != null && message.hasOwnProperty("query"))
|
|
49743
|
+
object.query = message.query;
|
|
49744
|
+
if (message.orderBy != null && message.hasOwnProperty("orderBy"))
|
|
49745
|
+
object.orderBy = message.orderBy;
|
|
47854
49746
|
return object;
|
|
47855
49747
|
};
|
|
47856
49748
|
|
|
47857
49749
|
/**
|
|
47858
|
-
* Converts this
|
|
49750
|
+
* Converts this SearchSpacesRequest to JSON.
|
|
47859
49751
|
* @function toJSON
|
|
47860
|
-
* @memberof google.chat.v1.
|
|
49752
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
47861
49753
|
* @instance
|
|
47862
49754
|
* @returns {Object.<string,*>} JSON object
|
|
47863
49755
|
*/
|
|
47864
|
-
|
|
49756
|
+
SearchSpacesRequest.prototype.toJSON = function toJSON() {
|
|
47865
49757
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
47866
49758
|
};
|
|
47867
49759
|
|
|
47868
49760
|
/**
|
|
47869
|
-
* Gets the default type url for
|
|
49761
|
+
* Gets the default type url for SearchSpacesRequest
|
|
47870
49762
|
* @function getTypeUrl
|
|
47871
|
-
* @memberof google.chat.v1.
|
|
49763
|
+
* @memberof google.chat.v1.SearchSpacesRequest
|
|
47872
49764
|
* @static
|
|
47873
49765
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
47874
49766
|
* @returns {string} The default type url
|
|
47875
49767
|
*/
|
|
47876
|
-
|
|
49768
|
+
SearchSpacesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
47877
49769
|
if (typeUrlPrefix === undefined) {
|
|
47878
49770
|
typeUrlPrefix = "type.googleapis.com";
|
|
47879
49771
|
}
|
|
47880
|
-
return typeUrlPrefix + "/google.chat.v1.
|
|
49772
|
+
return typeUrlPrefix + "/google.chat.v1.SearchSpacesRequest";
|
|
47881
49773
|
};
|
|
47882
49774
|
|
|
47883
|
-
return
|
|
49775
|
+
return SearchSpacesRequest;
|
|
47884
49776
|
})();
|
|
47885
49777
|
|
|
47886
|
-
v1.
|
|
49778
|
+
v1.SearchSpacesResponse = (function() {
|
|
47887
49779
|
|
|
47888
49780
|
/**
|
|
47889
|
-
* Properties of
|
|
49781
|
+
* Properties of a SearchSpacesResponse.
|
|
47890
49782
|
* @memberof google.chat.v1
|
|
47891
|
-
* @interface
|
|
47892
|
-
* @property {google.chat.v1.ISpace
|
|
47893
|
-
* @property {
|
|
49783
|
+
* @interface ISearchSpacesResponse
|
|
49784
|
+
* @property {Array.<google.chat.v1.ISpace>|null} [spaces] SearchSpacesResponse spaces
|
|
49785
|
+
* @property {string|null} [nextPageToken] SearchSpacesResponse nextPageToken
|
|
49786
|
+
* @property {number|null} [totalSize] SearchSpacesResponse totalSize
|
|
47894
49787
|
*/
|
|
47895
49788
|
|
|
47896
49789
|
/**
|
|
47897
|
-
* Constructs a new
|
|
49790
|
+
* Constructs a new SearchSpacesResponse.
|
|
47898
49791
|
* @memberof google.chat.v1
|
|
47899
|
-
* @classdesc Represents
|
|
47900
|
-
* @implements
|
|
49792
|
+
* @classdesc Represents a SearchSpacesResponse.
|
|
49793
|
+
* @implements ISearchSpacesResponse
|
|
47901
49794
|
* @constructor
|
|
47902
|
-
* @param {google.chat.v1.
|
|
49795
|
+
* @param {google.chat.v1.ISearchSpacesResponse=} [properties] Properties to set
|
|
47903
49796
|
*/
|
|
47904
|
-
function
|
|
49797
|
+
function SearchSpacesResponse(properties) {
|
|
49798
|
+
this.spaces = [];
|
|
47905
49799
|
if (properties)
|
|
47906
49800
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47907
49801
|
if (properties[keys[i]] != null)
|
|
@@ -47909,89 +49803,106 @@
|
|
|
47909
49803
|
}
|
|
47910
49804
|
|
|
47911
49805
|
/**
|
|
47912
|
-
*
|
|
47913
|
-
* @member {google.chat.v1.ISpace
|
|
47914
|
-
* @memberof google.chat.v1.
|
|
49806
|
+
* SearchSpacesResponse spaces.
|
|
49807
|
+
* @member {Array.<google.chat.v1.ISpace>} spaces
|
|
49808
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
47915
49809
|
* @instance
|
|
47916
49810
|
*/
|
|
47917
|
-
|
|
49811
|
+
SearchSpacesResponse.prototype.spaces = $util.emptyArray;
|
|
47918
49812
|
|
|
47919
49813
|
/**
|
|
47920
|
-
*
|
|
47921
|
-
* @member {
|
|
47922
|
-
* @memberof google.chat.v1.
|
|
49814
|
+
* SearchSpacesResponse nextPageToken.
|
|
49815
|
+
* @member {string} nextPageToken
|
|
49816
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
47923
49817
|
* @instance
|
|
47924
49818
|
*/
|
|
47925
|
-
|
|
49819
|
+
SearchSpacesResponse.prototype.nextPageToken = "";
|
|
47926
49820
|
|
|
47927
49821
|
/**
|
|
47928
|
-
*
|
|
49822
|
+
* SearchSpacesResponse totalSize.
|
|
49823
|
+
* @member {number} totalSize
|
|
49824
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
49825
|
+
* @instance
|
|
49826
|
+
*/
|
|
49827
|
+
SearchSpacesResponse.prototype.totalSize = 0;
|
|
49828
|
+
|
|
49829
|
+
/**
|
|
49830
|
+
* Creates a new SearchSpacesResponse instance using the specified properties.
|
|
47929
49831
|
* @function create
|
|
47930
|
-
* @memberof google.chat.v1.
|
|
49832
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
47931
49833
|
* @static
|
|
47932
|
-
* @param {google.chat.v1.
|
|
47933
|
-
* @returns {google.chat.v1.
|
|
49834
|
+
* @param {google.chat.v1.ISearchSpacesResponse=} [properties] Properties to set
|
|
49835
|
+
* @returns {google.chat.v1.SearchSpacesResponse} SearchSpacesResponse instance
|
|
47934
49836
|
*/
|
|
47935
|
-
|
|
47936
|
-
return new
|
|
49837
|
+
SearchSpacesResponse.create = function create(properties) {
|
|
49838
|
+
return new SearchSpacesResponse(properties);
|
|
47937
49839
|
};
|
|
47938
49840
|
|
|
47939
49841
|
/**
|
|
47940
|
-
* Encodes the specified
|
|
49842
|
+
* Encodes the specified SearchSpacesResponse message. Does not implicitly {@link google.chat.v1.SearchSpacesResponse.verify|verify} messages.
|
|
47941
49843
|
* @function encode
|
|
47942
|
-
* @memberof google.chat.v1.
|
|
49844
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
47943
49845
|
* @static
|
|
47944
|
-
* @param {google.chat.v1.
|
|
49846
|
+
* @param {google.chat.v1.ISearchSpacesResponse} message SearchSpacesResponse message or plain object to encode
|
|
47945
49847
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47946
49848
|
* @returns {$protobuf.Writer} Writer
|
|
47947
49849
|
*/
|
|
47948
|
-
|
|
49850
|
+
SearchSpacesResponse.encode = function encode(message, writer) {
|
|
47949
49851
|
if (!writer)
|
|
47950
49852
|
writer = $Writer.create();
|
|
47951
|
-
if (message.
|
|
47952
|
-
|
|
47953
|
-
|
|
47954
|
-
|
|
49853
|
+
if (message.spaces != null && message.spaces.length)
|
|
49854
|
+
for (var i = 0; i < message.spaces.length; ++i)
|
|
49855
|
+
$root.google.chat.v1.Space.encode(message.spaces[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
49856
|
+
if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
|
|
49857
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
|
|
49858
|
+
if (message.totalSize != null && Object.hasOwnProperty.call(message, "totalSize"))
|
|
49859
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.totalSize);
|
|
47955
49860
|
return writer;
|
|
47956
49861
|
};
|
|
47957
49862
|
|
|
47958
49863
|
/**
|
|
47959
|
-
* Encodes the specified
|
|
49864
|
+
* Encodes the specified SearchSpacesResponse message, length delimited. Does not implicitly {@link google.chat.v1.SearchSpacesResponse.verify|verify} messages.
|
|
47960
49865
|
* @function encodeDelimited
|
|
47961
|
-
* @memberof google.chat.v1.
|
|
49866
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
47962
49867
|
* @static
|
|
47963
|
-
* @param {google.chat.v1.
|
|
49868
|
+
* @param {google.chat.v1.ISearchSpacesResponse} message SearchSpacesResponse message or plain object to encode
|
|
47964
49869
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47965
49870
|
* @returns {$protobuf.Writer} Writer
|
|
47966
49871
|
*/
|
|
47967
|
-
|
|
49872
|
+
SearchSpacesResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
47968
49873
|
return this.encode(message, writer).ldelim();
|
|
47969
49874
|
};
|
|
47970
49875
|
|
|
47971
49876
|
/**
|
|
47972
|
-
* Decodes
|
|
49877
|
+
* Decodes a SearchSpacesResponse message from the specified reader or buffer.
|
|
47973
49878
|
* @function decode
|
|
47974
|
-
* @memberof google.chat.v1.
|
|
49879
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
47975
49880
|
* @static
|
|
47976
49881
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47977
49882
|
* @param {number} [length] Message length if known beforehand
|
|
47978
|
-
* @returns {google.chat.v1.
|
|
49883
|
+
* @returns {google.chat.v1.SearchSpacesResponse} SearchSpacesResponse
|
|
47979
49884
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47980
49885
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47981
49886
|
*/
|
|
47982
|
-
|
|
49887
|
+
SearchSpacesResponse.decode = function decode(reader, length) {
|
|
47983
49888
|
if (!(reader instanceof $Reader))
|
|
47984
49889
|
reader = $Reader.create(reader);
|
|
47985
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.
|
|
49890
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.SearchSpacesResponse();
|
|
47986
49891
|
while (reader.pos < end) {
|
|
47987
49892
|
var tag = reader.uint32();
|
|
47988
49893
|
switch (tag >>> 3) {
|
|
47989
49894
|
case 1: {
|
|
47990
|
-
message.
|
|
49895
|
+
if (!(message.spaces && message.spaces.length))
|
|
49896
|
+
message.spaces = [];
|
|
49897
|
+
message.spaces.push($root.google.chat.v1.Space.decode(reader, reader.uint32()));
|
|
47991
49898
|
break;
|
|
47992
49899
|
}
|
|
47993
49900
|
case 2: {
|
|
47994
|
-
message.
|
|
49901
|
+
message.nextPageToken = reader.string();
|
|
49902
|
+
break;
|
|
49903
|
+
}
|
|
49904
|
+
case 3: {
|
|
49905
|
+
message.totalSize = reader.int32();
|
|
47995
49906
|
break;
|
|
47996
49907
|
}
|
|
47997
49908
|
default:
|
|
@@ -48003,121 +49914,137 @@
|
|
|
48003
49914
|
};
|
|
48004
49915
|
|
|
48005
49916
|
/**
|
|
48006
|
-
* Decodes
|
|
49917
|
+
* Decodes a SearchSpacesResponse message from the specified reader or buffer, length delimited.
|
|
48007
49918
|
* @function decodeDelimited
|
|
48008
|
-
* @memberof google.chat.v1.
|
|
49919
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
48009
49920
|
* @static
|
|
48010
49921
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
48011
|
-
* @returns {google.chat.v1.
|
|
49922
|
+
* @returns {google.chat.v1.SearchSpacesResponse} SearchSpacesResponse
|
|
48012
49923
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
48013
49924
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
48014
49925
|
*/
|
|
48015
|
-
|
|
49926
|
+
SearchSpacesResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
48016
49927
|
if (!(reader instanceof $Reader))
|
|
48017
49928
|
reader = new $Reader(reader);
|
|
48018
49929
|
return this.decode(reader, reader.uint32());
|
|
48019
49930
|
};
|
|
48020
49931
|
|
|
48021
49932
|
/**
|
|
48022
|
-
* Verifies
|
|
49933
|
+
* Verifies a SearchSpacesResponse message.
|
|
48023
49934
|
* @function verify
|
|
48024
|
-
* @memberof google.chat.v1.
|
|
49935
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
48025
49936
|
* @static
|
|
48026
49937
|
* @param {Object.<string,*>} message Plain object to verify
|
|
48027
49938
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
48028
49939
|
*/
|
|
48029
|
-
|
|
49940
|
+
SearchSpacesResponse.verify = function verify(message) {
|
|
48030
49941
|
if (typeof message !== "object" || message === null)
|
|
48031
49942
|
return "object expected";
|
|
48032
|
-
if (message.
|
|
48033
|
-
|
|
48034
|
-
|
|
48035
|
-
|
|
48036
|
-
|
|
48037
|
-
|
|
48038
|
-
|
|
48039
|
-
|
|
48040
|
-
return "updateMask." + error;
|
|
49943
|
+
if (message.spaces != null && message.hasOwnProperty("spaces")) {
|
|
49944
|
+
if (!Array.isArray(message.spaces))
|
|
49945
|
+
return "spaces: array expected";
|
|
49946
|
+
for (var i = 0; i < message.spaces.length; ++i) {
|
|
49947
|
+
var error = $root.google.chat.v1.Space.verify(message.spaces[i]);
|
|
49948
|
+
if (error)
|
|
49949
|
+
return "spaces." + error;
|
|
49950
|
+
}
|
|
48041
49951
|
}
|
|
49952
|
+
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
|
|
49953
|
+
if (!$util.isString(message.nextPageToken))
|
|
49954
|
+
return "nextPageToken: string expected";
|
|
49955
|
+
if (message.totalSize != null && message.hasOwnProperty("totalSize"))
|
|
49956
|
+
if (!$util.isInteger(message.totalSize))
|
|
49957
|
+
return "totalSize: integer expected";
|
|
48042
49958
|
return null;
|
|
48043
49959
|
};
|
|
48044
49960
|
|
|
48045
49961
|
/**
|
|
48046
|
-
* Creates
|
|
49962
|
+
* Creates a SearchSpacesResponse message from a plain object. Also converts values to their respective internal types.
|
|
48047
49963
|
* @function fromObject
|
|
48048
|
-
* @memberof google.chat.v1.
|
|
49964
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
48049
49965
|
* @static
|
|
48050
49966
|
* @param {Object.<string,*>} object Plain object
|
|
48051
|
-
* @returns {google.chat.v1.
|
|
49967
|
+
* @returns {google.chat.v1.SearchSpacesResponse} SearchSpacesResponse
|
|
48052
49968
|
*/
|
|
48053
|
-
|
|
48054
|
-
if (object instanceof $root.google.chat.v1.
|
|
49969
|
+
SearchSpacesResponse.fromObject = function fromObject(object) {
|
|
49970
|
+
if (object instanceof $root.google.chat.v1.SearchSpacesResponse)
|
|
48055
49971
|
return object;
|
|
48056
|
-
var message = new $root.google.chat.v1.
|
|
48057
|
-
if (object.
|
|
48058
|
-
if (
|
|
48059
|
-
throw TypeError(".google.chat.v1.
|
|
48060
|
-
message.
|
|
48061
|
-
|
|
48062
|
-
|
|
48063
|
-
|
|
48064
|
-
|
|
48065
|
-
|
|
49972
|
+
var message = new $root.google.chat.v1.SearchSpacesResponse();
|
|
49973
|
+
if (object.spaces) {
|
|
49974
|
+
if (!Array.isArray(object.spaces))
|
|
49975
|
+
throw TypeError(".google.chat.v1.SearchSpacesResponse.spaces: array expected");
|
|
49976
|
+
message.spaces = [];
|
|
49977
|
+
for (var i = 0; i < object.spaces.length; ++i) {
|
|
49978
|
+
if (typeof object.spaces[i] !== "object")
|
|
49979
|
+
throw TypeError(".google.chat.v1.SearchSpacesResponse.spaces: object expected");
|
|
49980
|
+
message.spaces[i] = $root.google.chat.v1.Space.fromObject(object.spaces[i]);
|
|
49981
|
+
}
|
|
48066
49982
|
}
|
|
49983
|
+
if (object.nextPageToken != null)
|
|
49984
|
+
message.nextPageToken = String(object.nextPageToken);
|
|
49985
|
+
if (object.totalSize != null)
|
|
49986
|
+
message.totalSize = object.totalSize | 0;
|
|
48067
49987
|
return message;
|
|
48068
49988
|
};
|
|
48069
49989
|
|
|
48070
49990
|
/**
|
|
48071
|
-
* Creates a plain object from
|
|
49991
|
+
* Creates a plain object from a SearchSpacesResponse message. Also converts values to other types if specified.
|
|
48072
49992
|
* @function toObject
|
|
48073
|
-
* @memberof google.chat.v1.
|
|
49993
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
48074
49994
|
* @static
|
|
48075
|
-
* @param {google.chat.v1.
|
|
49995
|
+
* @param {google.chat.v1.SearchSpacesResponse} message SearchSpacesResponse
|
|
48076
49996
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
48077
49997
|
* @returns {Object.<string,*>} Plain object
|
|
48078
49998
|
*/
|
|
48079
|
-
|
|
49999
|
+
SearchSpacesResponse.toObject = function toObject(message, options) {
|
|
48080
50000
|
if (!options)
|
|
48081
50001
|
options = {};
|
|
48082
50002
|
var object = {};
|
|
50003
|
+
if (options.arrays || options.defaults)
|
|
50004
|
+
object.spaces = [];
|
|
48083
50005
|
if (options.defaults) {
|
|
48084
|
-
object.
|
|
48085
|
-
object.
|
|
50006
|
+
object.nextPageToken = "";
|
|
50007
|
+
object.totalSize = 0;
|
|
48086
50008
|
}
|
|
48087
|
-
if (message.
|
|
48088
|
-
object.
|
|
48089
|
-
|
|
48090
|
-
|
|
50009
|
+
if (message.spaces && message.spaces.length) {
|
|
50010
|
+
object.spaces = [];
|
|
50011
|
+
for (var j = 0; j < message.spaces.length; ++j)
|
|
50012
|
+
object.spaces[j] = $root.google.chat.v1.Space.toObject(message.spaces[j], options);
|
|
50013
|
+
}
|
|
50014
|
+
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
|
|
50015
|
+
object.nextPageToken = message.nextPageToken;
|
|
50016
|
+
if (message.totalSize != null && message.hasOwnProperty("totalSize"))
|
|
50017
|
+
object.totalSize = message.totalSize;
|
|
48091
50018
|
return object;
|
|
48092
50019
|
};
|
|
48093
50020
|
|
|
48094
50021
|
/**
|
|
48095
|
-
* Converts this
|
|
50022
|
+
* Converts this SearchSpacesResponse to JSON.
|
|
48096
50023
|
* @function toJSON
|
|
48097
|
-
* @memberof google.chat.v1.
|
|
50024
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
48098
50025
|
* @instance
|
|
48099
50026
|
* @returns {Object.<string,*>} JSON object
|
|
48100
50027
|
*/
|
|
48101
|
-
|
|
50028
|
+
SearchSpacesResponse.prototype.toJSON = function toJSON() {
|
|
48102
50029
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
48103
50030
|
};
|
|
48104
50031
|
|
|
48105
50032
|
/**
|
|
48106
|
-
* Gets the default type url for
|
|
50033
|
+
* Gets the default type url for SearchSpacesResponse
|
|
48107
50034
|
* @function getTypeUrl
|
|
48108
|
-
* @memberof google.chat.v1.
|
|
50035
|
+
* @memberof google.chat.v1.SearchSpacesResponse
|
|
48109
50036
|
* @static
|
|
48110
50037
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
48111
50038
|
* @returns {string} The default type url
|
|
48112
50039
|
*/
|
|
48113
|
-
|
|
50040
|
+
SearchSpacesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
48114
50041
|
if (typeUrlPrefix === undefined) {
|
|
48115
50042
|
typeUrlPrefix = "type.googleapis.com";
|
|
48116
50043
|
}
|
|
48117
|
-
return typeUrlPrefix + "/google.chat.v1.
|
|
50044
|
+
return typeUrlPrefix + "/google.chat.v1.SearchSpacesResponse";
|
|
48118
50045
|
};
|
|
48119
50046
|
|
|
48120
|
-
return
|
|
50047
|
+
return SearchSpacesResponse;
|
|
48121
50048
|
})();
|
|
48122
50049
|
|
|
48123
50050
|
v1.DeleteSpaceRequest = (function() {
|
|
@@ -48127,6 +50054,7 @@
|
|
|
48127
50054
|
* @memberof google.chat.v1
|
|
48128
50055
|
* @interface IDeleteSpaceRequest
|
|
48129
50056
|
* @property {string|null} [name] DeleteSpaceRequest name
|
|
50057
|
+
* @property {boolean|null} [useAdminAccess] DeleteSpaceRequest useAdminAccess
|
|
48130
50058
|
*/
|
|
48131
50059
|
|
|
48132
50060
|
/**
|
|
@@ -48152,6 +50080,14 @@
|
|
|
48152
50080
|
*/
|
|
48153
50081
|
DeleteSpaceRequest.prototype.name = "";
|
|
48154
50082
|
|
|
50083
|
+
/**
|
|
50084
|
+
* DeleteSpaceRequest useAdminAccess.
|
|
50085
|
+
* @member {boolean} useAdminAccess
|
|
50086
|
+
* @memberof google.chat.v1.DeleteSpaceRequest
|
|
50087
|
+
* @instance
|
|
50088
|
+
*/
|
|
50089
|
+
DeleteSpaceRequest.prototype.useAdminAccess = false;
|
|
50090
|
+
|
|
48155
50091
|
/**
|
|
48156
50092
|
* Creates a new DeleteSpaceRequest instance using the specified properties.
|
|
48157
50093
|
* @function create
|
|
@@ -48178,6 +50114,8 @@
|
|
|
48178
50114
|
writer = $Writer.create();
|
|
48179
50115
|
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
48180
50116
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
50117
|
+
if (message.useAdminAccess != null && Object.hasOwnProperty.call(message, "useAdminAccess"))
|
|
50118
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.useAdminAccess);
|
|
48181
50119
|
return writer;
|
|
48182
50120
|
};
|
|
48183
50121
|
|
|
@@ -48216,6 +50154,10 @@
|
|
|
48216
50154
|
message.name = reader.string();
|
|
48217
50155
|
break;
|
|
48218
50156
|
}
|
|
50157
|
+
case 2: {
|
|
50158
|
+
message.useAdminAccess = reader.bool();
|
|
50159
|
+
break;
|
|
50160
|
+
}
|
|
48219
50161
|
default:
|
|
48220
50162
|
reader.skipType(tag & 7);
|
|
48221
50163
|
break;
|
|
@@ -48254,6 +50196,9 @@
|
|
|
48254
50196
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
48255
50197
|
if (!$util.isString(message.name))
|
|
48256
50198
|
return "name: string expected";
|
|
50199
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
50200
|
+
if (typeof message.useAdminAccess !== "boolean")
|
|
50201
|
+
return "useAdminAccess: boolean expected";
|
|
48257
50202
|
return null;
|
|
48258
50203
|
};
|
|
48259
50204
|
|
|
@@ -48271,6 +50216,8 @@
|
|
|
48271
50216
|
var message = new $root.google.chat.v1.DeleteSpaceRequest();
|
|
48272
50217
|
if (object.name != null)
|
|
48273
50218
|
message.name = String(object.name);
|
|
50219
|
+
if (object.useAdminAccess != null)
|
|
50220
|
+
message.useAdminAccess = Boolean(object.useAdminAccess);
|
|
48274
50221
|
return message;
|
|
48275
50222
|
};
|
|
48276
50223
|
|
|
@@ -48287,10 +50234,14 @@
|
|
|
48287
50234
|
if (!options)
|
|
48288
50235
|
options = {};
|
|
48289
50236
|
var object = {};
|
|
48290
|
-
if (options.defaults)
|
|
50237
|
+
if (options.defaults) {
|
|
48291
50238
|
object.name = "";
|
|
50239
|
+
object.useAdminAccess = false;
|
|
50240
|
+
}
|
|
48292
50241
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
48293
50242
|
object.name = message.name;
|
|
50243
|
+
if (message.useAdminAccess != null && message.hasOwnProperty("useAdminAccess"))
|
|
50244
|
+
object.useAdminAccess = message.useAdminAccess;
|
|
48294
50245
|
return object;
|
|
48295
50246
|
};
|
|
48296
50247
|
|