@google-apps/chat 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +1 -0
- package/build/protos/google/chat/v1/chat_service.proto +12 -0
- package/build/protos/google/chat/v1/membership.proto +69 -2
- package/build/protos/google/chat/v1/space.proto +201 -0
- package/build/protos/protos.d.ts +414 -0
- package/build/protos/protos.js +1083 -11
- package/build/protos/protos.json +123 -0
- package/build/src/v1/chat_service_client.d.ts +559 -6
- package/build/src/v1/chat_service_client.js +347 -4
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/build/src/v1/chat_service_client_config.json +5 -0
- package/package.json +1 -1
package/build/protos/protos.d.ts
CHANGED
|
@@ -11453,6 +11453,20 @@ export namespace google {
|
|
|
11453
11453
|
*/
|
|
11454
11454
|
public listSpaces(request: google.chat.v1.IListSpacesRequest): Promise<google.chat.v1.ListSpacesResponse>;
|
|
11455
11455
|
|
|
11456
|
+
/**
|
|
11457
|
+
* Calls SearchSpaces.
|
|
11458
|
+
* @param request SearchSpacesRequest message or plain object
|
|
11459
|
+
* @param callback Node-style callback called with the error, if any, and SearchSpacesResponse
|
|
11460
|
+
*/
|
|
11461
|
+
public searchSpaces(request: google.chat.v1.ISearchSpacesRequest, callback: google.chat.v1.ChatService.SearchSpacesCallback): void;
|
|
11462
|
+
|
|
11463
|
+
/**
|
|
11464
|
+
* Calls SearchSpaces.
|
|
11465
|
+
* @param request SearchSpacesRequest message or plain object
|
|
11466
|
+
* @returns Promise
|
|
11467
|
+
*/
|
|
11468
|
+
public searchSpaces(request: google.chat.v1.ISearchSpacesRequest): Promise<google.chat.v1.SearchSpacesResponse>;
|
|
11469
|
+
|
|
11456
11470
|
/**
|
|
11457
11471
|
* Calls GetSpace.
|
|
11458
11472
|
* @param request GetSpaceRequest message or plain object
|
|
@@ -11778,6 +11792,13 @@ export namespace google {
|
|
|
11778
11792
|
*/
|
|
11779
11793
|
type ListSpacesCallback = (error: (Error|null), response?: google.chat.v1.ListSpacesResponse) => void;
|
|
11780
11794
|
|
|
11795
|
+
/**
|
|
11796
|
+
* Callback as used by {@link google.chat.v1.ChatService|searchSpaces}.
|
|
11797
|
+
* @param error Error, if any
|
|
11798
|
+
* @param [response] SearchSpacesResponse
|
|
11799
|
+
*/
|
|
11800
|
+
type SearchSpacesCallback = (error: (Error|null), response?: google.chat.v1.SearchSpacesResponse) => void;
|
|
11801
|
+
|
|
11781
11802
|
/**
|
|
11782
11803
|
* Callback as used by {@link google.chat.v1.ChatService|getSpace}.
|
|
11783
11804
|
* @param error Error, if any
|
|
@@ -12067,6 +12088,9 @@ export namespace google {
|
|
|
12067
12088
|
|
|
12068
12089
|
/** CreateMembershipRequest membership */
|
|
12069
12090
|
membership?: (google.chat.v1.IMembership|null);
|
|
12091
|
+
|
|
12092
|
+
/** CreateMembershipRequest useAdminAccess */
|
|
12093
|
+
useAdminAccess?: (boolean|null);
|
|
12070
12094
|
}
|
|
12071
12095
|
|
|
12072
12096
|
/** Represents a CreateMembershipRequest. */
|
|
@@ -12084,6 +12108,9 @@ export namespace google {
|
|
|
12084
12108
|
/** CreateMembershipRequest membership. */
|
|
12085
12109
|
public membership?: (google.chat.v1.IMembership|null);
|
|
12086
12110
|
|
|
12111
|
+
/** CreateMembershipRequest useAdminAccess. */
|
|
12112
|
+
public useAdminAccess: boolean;
|
|
12113
|
+
|
|
12087
12114
|
/**
|
|
12088
12115
|
* Creates a new CreateMembershipRequest instance using the specified properties.
|
|
12089
12116
|
* @param [properties] Properties to set
|
|
@@ -12170,6 +12197,9 @@ export namespace google {
|
|
|
12170
12197
|
|
|
12171
12198
|
/** UpdateMembershipRequest updateMask */
|
|
12172
12199
|
updateMask?: (google.protobuf.IFieldMask|null);
|
|
12200
|
+
|
|
12201
|
+
/** UpdateMembershipRequest useAdminAccess */
|
|
12202
|
+
useAdminAccess?: (boolean|null);
|
|
12173
12203
|
}
|
|
12174
12204
|
|
|
12175
12205
|
/** Represents an UpdateMembershipRequest. */
|
|
@@ -12187,6 +12217,9 @@ export namespace google {
|
|
|
12187
12217
|
/** UpdateMembershipRequest updateMask. */
|
|
12188
12218
|
public updateMask?: (google.protobuf.IFieldMask|null);
|
|
12189
12219
|
|
|
12220
|
+
/** UpdateMembershipRequest useAdminAccess. */
|
|
12221
|
+
public useAdminAccess: boolean;
|
|
12222
|
+
|
|
12190
12223
|
/**
|
|
12191
12224
|
* Creates a new UpdateMembershipRequest instance using the specified properties.
|
|
12192
12225
|
* @param [properties] Properties to set
|
|
@@ -12285,6 +12318,9 @@ export namespace google {
|
|
|
12285
12318
|
|
|
12286
12319
|
/** ListMembershipsRequest showInvited */
|
|
12287
12320
|
showInvited?: (boolean|null);
|
|
12321
|
+
|
|
12322
|
+
/** ListMembershipsRequest useAdminAccess */
|
|
12323
|
+
useAdminAccess?: (boolean|null);
|
|
12288
12324
|
}
|
|
12289
12325
|
|
|
12290
12326
|
/** Represents a ListMembershipsRequest. */
|
|
@@ -12314,6 +12350,9 @@ export namespace google {
|
|
|
12314
12350
|
/** ListMembershipsRequest showInvited. */
|
|
12315
12351
|
public showInvited: boolean;
|
|
12316
12352
|
|
|
12353
|
+
/** ListMembershipsRequest useAdminAccess. */
|
|
12354
|
+
public useAdminAccess: boolean;
|
|
12355
|
+
|
|
12317
12356
|
/**
|
|
12318
12357
|
* Creates a new ListMembershipsRequest instance using the specified properties.
|
|
12319
12358
|
* @param [properties] Properties to set
|
|
@@ -12500,6 +12539,9 @@ export namespace google {
|
|
|
12500
12539
|
|
|
12501
12540
|
/** GetMembershipRequest name */
|
|
12502
12541
|
name?: (string|null);
|
|
12542
|
+
|
|
12543
|
+
/** GetMembershipRequest useAdminAccess */
|
|
12544
|
+
useAdminAccess?: (boolean|null);
|
|
12503
12545
|
}
|
|
12504
12546
|
|
|
12505
12547
|
/** Represents a GetMembershipRequest. */
|
|
@@ -12514,6 +12556,9 @@ export namespace google {
|
|
|
12514
12556
|
/** GetMembershipRequest name. */
|
|
12515
12557
|
public name: string;
|
|
12516
12558
|
|
|
12559
|
+
/** GetMembershipRequest useAdminAccess. */
|
|
12560
|
+
public useAdminAccess: boolean;
|
|
12561
|
+
|
|
12517
12562
|
/**
|
|
12518
12563
|
* Creates a new GetMembershipRequest instance using the specified properties.
|
|
12519
12564
|
* @param [properties] Properties to set
|
|
@@ -12597,6 +12642,9 @@ export namespace google {
|
|
|
12597
12642
|
|
|
12598
12643
|
/** DeleteMembershipRequest name */
|
|
12599
12644
|
name?: (string|null);
|
|
12645
|
+
|
|
12646
|
+
/** DeleteMembershipRequest useAdminAccess */
|
|
12647
|
+
useAdminAccess?: (boolean|null);
|
|
12600
12648
|
}
|
|
12601
12649
|
|
|
12602
12650
|
/** Represents a DeleteMembershipRequest. */
|
|
@@ -12611,6 +12659,9 @@ export namespace google {
|
|
|
12611
12659
|
/** DeleteMembershipRequest name. */
|
|
12612
12660
|
public name: string;
|
|
12613
12661
|
|
|
12662
|
+
/** DeleteMembershipRequest useAdminAccess. */
|
|
12663
|
+
public useAdminAccess: boolean;
|
|
12664
|
+
|
|
12614
12665
|
/**
|
|
12615
12666
|
* Creates a new DeleteMembershipRequest instance using the specified properties.
|
|
12616
12667
|
* @param [properties] Properties to set
|
|
@@ -17719,9 +17770,15 @@ export namespace google {
|
|
|
17719
17770
|
/** Space createTime */
|
|
17720
17771
|
createTime?: (google.protobuf.ITimestamp|null);
|
|
17721
17772
|
|
|
17773
|
+
/** Space lastActiveTime */
|
|
17774
|
+
lastActiveTime?: (google.protobuf.ITimestamp|null);
|
|
17775
|
+
|
|
17722
17776
|
/** Space adminInstalled */
|
|
17723
17777
|
adminInstalled?: (boolean|null);
|
|
17724
17778
|
|
|
17779
|
+
/** Space membershipCount */
|
|
17780
|
+
membershipCount?: (google.chat.v1.Space.IMembershipCount|null);
|
|
17781
|
+
|
|
17725
17782
|
/** Space accessSettings */
|
|
17726
17783
|
accessSettings?: (google.chat.v1.Space.IAccessSettings|null);
|
|
17727
17784
|
|
|
@@ -17774,9 +17831,15 @@ export namespace google {
|
|
|
17774
17831
|
/** Space createTime. */
|
|
17775
17832
|
public createTime?: (google.protobuf.ITimestamp|null);
|
|
17776
17833
|
|
|
17834
|
+
/** Space lastActiveTime. */
|
|
17835
|
+
public lastActiveTime?: (google.protobuf.ITimestamp|null);
|
|
17836
|
+
|
|
17777
17837
|
/** Space adminInstalled. */
|
|
17778
17838
|
public adminInstalled: boolean;
|
|
17779
17839
|
|
|
17840
|
+
/** Space membershipCount. */
|
|
17841
|
+
public membershipCount?: (google.chat.v1.Space.IMembershipCount|null);
|
|
17842
|
+
|
|
17780
17843
|
/** Space accessSettings. */
|
|
17781
17844
|
public accessSettings?: (google.chat.v1.Space.IAccessSettings|null);
|
|
17782
17845
|
|
|
@@ -17989,6 +18052,109 @@ export namespace google {
|
|
|
17989
18052
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
17990
18053
|
}
|
|
17991
18054
|
|
|
18055
|
+
/** Properties of a MembershipCount. */
|
|
18056
|
+
interface IMembershipCount {
|
|
18057
|
+
|
|
18058
|
+
/** MembershipCount joinedDirectHumanUserCount */
|
|
18059
|
+
joinedDirectHumanUserCount?: (number|null);
|
|
18060
|
+
|
|
18061
|
+
/** MembershipCount joinedGroupCount */
|
|
18062
|
+
joinedGroupCount?: (number|null);
|
|
18063
|
+
}
|
|
18064
|
+
|
|
18065
|
+
/** Represents a MembershipCount. */
|
|
18066
|
+
class MembershipCount implements IMembershipCount {
|
|
18067
|
+
|
|
18068
|
+
/**
|
|
18069
|
+
* Constructs a new MembershipCount.
|
|
18070
|
+
* @param [properties] Properties to set
|
|
18071
|
+
*/
|
|
18072
|
+
constructor(properties?: google.chat.v1.Space.IMembershipCount);
|
|
18073
|
+
|
|
18074
|
+
/** MembershipCount joinedDirectHumanUserCount. */
|
|
18075
|
+
public joinedDirectHumanUserCount: number;
|
|
18076
|
+
|
|
18077
|
+
/** MembershipCount joinedGroupCount. */
|
|
18078
|
+
public joinedGroupCount: number;
|
|
18079
|
+
|
|
18080
|
+
/**
|
|
18081
|
+
* Creates a new MembershipCount instance using the specified properties.
|
|
18082
|
+
* @param [properties] Properties to set
|
|
18083
|
+
* @returns MembershipCount instance
|
|
18084
|
+
*/
|
|
18085
|
+
public static create(properties?: google.chat.v1.Space.IMembershipCount): google.chat.v1.Space.MembershipCount;
|
|
18086
|
+
|
|
18087
|
+
/**
|
|
18088
|
+
* Encodes the specified MembershipCount message. Does not implicitly {@link google.chat.v1.Space.MembershipCount.verify|verify} messages.
|
|
18089
|
+
* @param message MembershipCount message or plain object to encode
|
|
18090
|
+
* @param [writer] Writer to encode to
|
|
18091
|
+
* @returns Writer
|
|
18092
|
+
*/
|
|
18093
|
+
public static encode(message: google.chat.v1.Space.IMembershipCount, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18094
|
+
|
|
18095
|
+
/**
|
|
18096
|
+
* Encodes the specified MembershipCount message, length delimited. Does not implicitly {@link google.chat.v1.Space.MembershipCount.verify|verify} messages.
|
|
18097
|
+
* @param message MembershipCount message or plain object to encode
|
|
18098
|
+
* @param [writer] Writer to encode to
|
|
18099
|
+
* @returns Writer
|
|
18100
|
+
*/
|
|
18101
|
+
public static encodeDelimited(message: google.chat.v1.Space.IMembershipCount, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18102
|
+
|
|
18103
|
+
/**
|
|
18104
|
+
* Decodes a MembershipCount message from the specified reader or buffer.
|
|
18105
|
+
* @param reader Reader or buffer to decode from
|
|
18106
|
+
* @param [length] Message length if known beforehand
|
|
18107
|
+
* @returns MembershipCount
|
|
18108
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18109
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18110
|
+
*/
|
|
18111
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.Space.MembershipCount;
|
|
18112
|
+
|
|
18113
|
+
/**
|
|
18114
|
+
* Decodes a MembershipCount message from the specified reader or buffer, length delimited.
|
|
18115
|
+
* @param reader Reader or buffer to decode from
|
|
18116
|
+
* @returns MembershipCount
|
|
18117
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18118
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18119
|
+
*/
|
|
18120
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.Space.MembershipCount;
|
|
18121
|
+
|
|
18122
|
+
/**
|
|
18123
|
+
* Verifies a MembershipCount message.
|
|
18124
|
+
* @param message Plain object to verify
|
|
18125
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
18126
|
+
*/
|
|
18127
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
18128
|
+
|
|
18129
|
+
/**
|
|
18130
|
+
* Creates a MembershipCount message from a plain object. Also converts values to their respective internal types.
|
|
18131
|
+
* @param object Plain object
|
|
18132
|
+
* @returns MembershipCount
|
|
18133
|
+
*/
|
|
18134
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.Space.MembershipCount;
|
|
18135
|
+
|
|
18136
|
+
/**
|
|
18137
|
+
* Creates a plain object from a MembershipCount message. Also converts values to other types if specified.
|
|
18138
|
+
* @param message MembershipCount
|
|
18139
|
+
* @param [options] Conversion options
|
|
18140
|
+
* @returns Plain object
|
|
18141
|
+
*/
|
|
18142
|
+
public static toObject(message: google.chat.v1.Space.MembershipCount, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
18143
|
+
|
|
18144
|
+
/**
|
|
18145
|
+
* Converts this MembershipCount to JSON.
|
|
18146
|
+
* @returns JSON object
|
|
18147
|
+
*/
|
|
18148
|
+
public toJSON(): { [k: string]: any };
|
|
18149
|
+
|
|
18150
|
+
/**
|
|
18151
|
+
* Gets the default type url for MembershipCount
|
|
18152
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
18153
|
+
* @returns The default type url
|
|
18154
|
+
*/
|
|
18155
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
18156
|
+
}
|
|
18157
|
+
|
|
17992
18158
|
/** Properties of an AccessSettings. */
|
|
17993
18159
|
interface IAccessSettings {
|
|
17994
18160
|
|
|
@@ -18423,6 +18589,9 @@ export namespace google {
|
|
|
18423
18589
|
|
|
18424
18590
|
/** GetSpaceRequest name */
|
|
18425
18591
|
name?: (string|null);
|
|
18592
|
+
|
|
18593
|
+
/** GetSpaceRequest useAdminAccess */
|
|
18594
|
+
useAdminAccess?: (boolean|null);
|
|
18426
18595
|
}
|
|
18427
18596
|
|
|
18428
18597
|
/** Represents a GetSpaceRequest. */
|
|
@@ -18437,6 +18606,9 @@ export namespace google {
|
|
|
18437
18606
|
/** GetSpaceRequest name. */
|
|
18438
18607
|
public name: string;
|
|
18439
18608
|
|
|
18609
|
+
/** GetSpaceRequest useAdminAccess. */
|
|
18610
|
+
public useAdminAccess: boolean;
|
|
18611
|
+
|
|
18440
18612
|
/**
|
|
18441
18613
|
* Creates a new GetSpaceRequest instance using the specified properties.
|
|
18442
18614
|
* @param [properties] Properties to set
|
|
@@ -18620,6 +18792,9 @@ export namespace google {
|
|
|
18620
18792
|
|
|
18621
18793
|
/** UpdateSpaceRequest updateMask */
|
|
18622
18794
|
updateMask?: (google.protobuf.IFieldMask|null);
|
|
18795
|
+
|
|
18796
|
+
/** UpdateSpaceRequest useAdminAccess */
|
|
18797
|
+
useAdminAccess?: (boolean|null);
|
|
18623
18798
|
}
|
|
18624
18799
|
|
|
18625
18800
|
/** Represents an UpdateSpaceRequest. */
|
|
@@ -18637,6 +18812,9 @@ export namespace google {
|
|
|
18637
18812
|
/** UpdateSpaceRequest updateMask. */
|
|
18638
18813
|
public updateMask?: (google.protobuf.IFieldMask|null);
|
|
18639
18814
|
|
|
18815
|
+
/** UpdateSpaceRequest useAdminAccess. */
|
|
18816
|
+
public useAdminAccess: boolean;
|
|
18817
|
+
|
|
18640
18818
|
/**
|
|
18641
18819
|
* Creates a new UpdateSpaceRequest instance using the specified properties.
|
|
18642
18820
|
* @param [properties] Properties to set
|
|
@@ -18715,11 +18893,244 @@ export namespace google {
|
|
|
18715
18893
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
18716
18894
|
}
|
|
18717
18895
|
|
|
18896
|
+
/** Properties of a SearchSpacesRequest. */
|
|
18897
|
+
interface ISearchSpacesRequest {
|
|
18898
|
+
|
|
18899
|
+
/** SearchSpacesRequest useAdminAccess */
|
|
18900
|
+
useAdminAccess?: (boolean|null);
|
|
18901
|
+
|
|
18902
|
+
/** SearchSpacesRequest pageSize */
|
|
18903
|
+
pageSize?: (number|null);
|
|
18904
|
+
|
|
18905
|
+
/** SearchSpacesRequest pageToken */
|
|
18906
|
+
pageToken?: (string|null);
|
|
18907
|
+
|
|
18908
|
+
/** SearchSpacesRequest query */
|
|
18909
|
+
query?: (string|null);
|
|
18910
|
+
|
|
18911
|
+
/** SearchSpacesRequest orderBy */
|
|
18912
|
+
orderBy?: (string|null);
|
|
18913
|
+
}
|
|
18914
|
+
|
|
18915
|
+
/** Represents a SearchSpacesRequest. */
|
|
18916
|
+
class SearchSpacesRequest implements ISearchSpacesRequest {
|
|
18917
|
+
|
|
18918
|
+
/**
|
|
18919
|
+
* Constructs a new SearchSpacesRequest.
|
|
18920
|
+
* @param [properties] Properties to set
|
|
18921
|
+
*/
|
|
18922
|
+
constructor(properties?: google.chat.v1.ISearchSpacesRequest);
|
|
18923
|
+
|
|
18924
|
+
/** SearchSpacesRequest useAdminAccess. */
|
|
18925
|
+
public useAdminAccess: boolean;
|
|
18926
|
+
|
|
18927
|
+
/** SearchSpacesRequest pageSize. */
|
|
18928
|
+
public pageSize: number;
|
|
18929
|
+
|
|
18930
|
+
/** SearchSpacesRequest pageToken. */
|
|
18931
|
+
public pageToken: string;
|
|
18932
|
+
|
|
18933
|
+
/** SearchSpacesRequest query. */
|
|
18934
|
+
public query: string;
|
|
18935
|
+
|
|
18936
|
+
/** SearchSpacesRequest orderBy. */
|
|
18937
|
+
public orderBy: string;
|
|
18938
|
+
|
|
18939
|
+
/**
|
|
18940
|
+
* Creates a new SearchSpacesRequest instance using the specified properties.
|
|
18941
|
+
* @param [properties] Properties to set
|
|
18942
|
+
* @returns SearchSpacesRequest instance
|
|
18943
|
+
*/
|
|
18944
|
+
public static create(properties?: google.chat.v1.ISearchSpacesRequest): google.chat.v1.SearchSpacesRequest;
|
|
18945
|
+
|
|
18946
|
+
/**
|
|
18947
|
+
* Encodes the specified SearchSpacesRequest message. Does not implicitly {@link google.chat.v1.SearchSpacesRequest.verify|verify} messages.
|
|
18948
|
+
* @param message SearchSpacesRequest message or plain object to encode
|
|
18949
|
+
* @param [writer] Writer to encode to
|
|
18950
|
+
* @returns Writer
|
|
18951
|
+
*/
|
|
18952
|
+
public static encode(message: google.chat.v1.ISearchSpacesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18953
|
+
|
|
18954
|
+
/**
|
|
18955
|
+
* Encodes the specified SearchSpacesRequest message, length delimited. Does not implicitly {@link google.chat.v1.SearchSpacesRequest.verify|verify} messages.
|
|
18956
|
+
* @param message SearchSpacesRequest message or plain object to encode
|
|
18957
|
+
* @param [writer] Writer to encode to
|
|
18958
|
+
* @returns Writer
|
|
18959
|
+
*/
|
|
18960
|
+
public static encodeDelimited(message: google.chat.v1.ISearchSpacesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18961
|
+
|
|
18962
|
+
/**
|
|
18963
|
+
* Decodes a SearchSpacesRequest message from the specified reader or buffer.
|
|
18964
|
+
* @param reader Reader or buffer to decode from
|
|
18965
|
+
* @param [length] Message length if known beforehand
|
|
18966
|
+
* @returns SearchSpacesRequest
|
|
18967
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18968
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18969
|
+
*/
|
|
18970
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.SearchSpacesRequest;
|
|
18971
|
+
|
|
18972
|
+
/**
|
|
18973
|
+
* Decodes a SearchSpacesRequest message from the specified reader or buffer, length delimited.
|
|
18974
|
+
* @param reader Reader or buffer to decode from
|
|
18975
|
+
* @returns SearchSpacesRequest
|
|
18976
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18977
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18978
|
+
*/
|
|
18979
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.SearchSpacesRequest;
|
|
18980
|
+
|
|
18981
|
+
/**
|
|
18982
|
+
* Verifies a SearchSpacesRequest message.
|
|
18983
|
+
* @param message Plain object to verify
|
|
18984
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
18985
|
+
*/
|
|
18986
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
18987
|
+
|
|
18988
|
+
/**
|
|
18989
|
+
* Creates a SearchSpacesRequest message from a plain object. Also converts values to their respective internal types.
|
|
18990
|
+
* @param object Plain object
|
|
18991
|
+
* @returns SearchSpacesRequest
|
|
18992
|
+
*/
|
|
18993
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.SearchSpacesRequest;
|
|
18994
|
+
|
|
18995
|
+
/**
|
|
18996
|
+
* Creates a plain object from a SearchSpacesRequest message. Also converts values to other types if specified.
|
|
18997
|
+
* @param message SearchSpacesRequest
|
|
18998
|
+
* @param [options] Conversion options
|
|
18999
|
+
* @returns Plain object
|
|
19000
|
+
*/
|
|
19001
|
+
public static toObject(message: google.chat.v1.SearchSpacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
19002
|
+
|
|
19003
|
+
/**
|
|
19004
|
+
* Converts this SearchSpacesRequest to JSON.
|
|
19005
|
+
* @returns JSON object
|
|
19006
|
+
*/
|
|
19007
|
+
public toJSON(): { [k: string]: any };
|
|
19008
|
+
|
|
19009
|
+
/**
|
|
19010
|
+
* Gets the default type url for SearchSpacesRequest
|
|
19011
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
19012
|
+
* @returns The default type url
|
|
19013
|
+
*/
|
|
19014
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
19015
|
+
}
|
|
19016
|
+
|
|
19017
|
+
/** Properties of a SearchSpacesResponse. */
|
|
19018
|
+
interface ISearchSpacesResponse {
|
|
19019
|
+
|
|
19020
|
+
/** SearchSpacesResponse spaces */
|
|
19021
|
+
spaces?: (google.chat.v1.ISpace[]|null);
|
|
19022
|
+
|
|
19023
|
+
/** SearchSpacesResponse nextPageToken */
|
|
19024
|
+
nextPageToken?: (string|null);
|
|
19025
|
+
|
|
19026
|
+
/** SearchSpacesResponse totalSize */
|
|
19027
|
+
totalSize?: (number|null);
|
|
19028
|
+
}
|
|
19029
|
+
|
|
19030
|
+
/** Represents a SearchSpacesResponse. */
|
|
19031
|
+
class SearchSpacesResponse implements ISearchSpacesResponse {
|
|
19032
|
+
|
|
19033
|
+
/**
|
|
19034
|
+
* Constructs a new SearchSpacesResponse.
|
|
19035
|
+
* @param [properties] Properties to set
|
|
19036
|
+
*/
|
|
19037
|
+
constructor(properties?: google.chat.v1.ISearchSpacesResponse);
|
|
19038
|
+
|
|
19039
|
+
/** SearchSpacesResponse spaces. */
|
|
19040
|
+
public spaces: google.chat.v1.ISpace[];
|
|
19041
|
+
|
|
19042
|
+
/** SearchSpacesResponse nextPageToken. */
|
|
19043
|
+
public nextPageToken: string;
|
|
19044
|
+
|
|
19045
|
+
/** SearchSpacesResponse totalSize. */
|
|
19046
|
+
public totalSize: number;
|
|
19047
|
+
|
|
19048
|
+
/**
|
|
19049
|
+
* Creates a new SearchSpacesResponse instance using the specified properties.
|
|
19050
|
+
* @param [properties] Properties to set
|
|
19051
|
+
* @returns SearchSpacesResponse instance
|
|
19052
|
+
*/
|
|
19053
|
+
public static create(properties?: google.chat.v1.ISearchSpacesResponse): google.chat.v1.SearchSpacesResponse;
|
|
19054
|
+
|
|
19055
|
+
/**
|
|
19056
|
+
* Encodes the specified SearchSpacesResponse message. Does not implicitly {@link google.chat.v1.SearchSpacesResponse.verify|verify} messages.
|
|
19057
|
+
* @param message SearchSpacesResponse message or plain object to encode
|
|
19058
|
+
* @param [writer] Writer to encode to
|
|
19059
|
+
* @returns Writer
|
|
19060
|
+
*/
|
|
19061
|
+
public static encode(message: google.chat.v1.ISearchSpacesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
19062
|
+
|
|
19063
|
+
/**
|
|
19064
|
+
* Encodes the specified SearchSpacesResponse message, length delimited. Does not implicitly {@link google.chat.v1.SearchSpacesResponse.verify|verify} messages.
|
|
19065
|
+
* @param message SearchSpacesResponse message or plain object to encode
|
|
19066
|
+
* @param [writer] Writer to encode to
|
|
19067
|
+
* @returns Writer
|
|
19068
|
+
*/
|
|
19069
|
+
public static encodeDelimited(message: google.chat.v1.ISearchSpacesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
19070
|
+
|
|
19071
|
+
/**
|
|
19072
|
+
* Decodes a SearchSpacesResponse message from the specified reader or buffer.
|
|
19073
|
+
* @param reader Reader or buffer to decode from
|
|
19074
|
+
* @param [length] Message length if known beforehand
|
|
19075
|
+
* @returns SearchSpacesResponse
|
|
19076
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19077
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19078
|
+
*/
|
|
19079
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.SearchSpacesResponse;
|
|
19080
|
+
|
|
19081
|
+
/**
|
|
19082
|
+
* Decodes a SearchSpacesResponse message from the specified reader or buffer, length delimited.
|
|
19083
|
+
* @param reader Reader or buffer to decode from
|
|
19084
|
+
* @returns SearchSpacesResponse
|
|
19085
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19086
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19087
|
+
*/
|
|
19088
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.SearchSpacesResponse;
|
|
19089
|
+
|
|
19090
|
+
/**
|
|
19091
|
+
* Verifies a SearchSpacesResponse message.
|
|
19092
|
+
* @param message Plain object to verify
|
|
19093
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
19094
|
+
*/
|
|
19095
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
19096
|
+
|
|
19097
|
+
/**
|
|
19098
|
+
* Creates a SearchSpacesResponse message from a plain object. Also converts values to their respective internal types.
|
|
19099
|
+
* @param object Plain object
|
|
19100
|
+
* @returns SearchSpacesResponse
|
|
19101
|
+
*/
|
|
19102
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.SearchSpacesResponse;
|
|
19103
|
+
|
|
19104
|
+
/**
|
|
19105
|
+
* Creates a plain object from a SearchSpacesResponse message. Also converts values to other types if specified.
|
|
19106
|
+
* @param message SearchSpacesResponse
|
|
19107
|
+
* @param [options] Conversion options
|
|
19108
|
+
* @returns Plain object
|
|
19109
|
+
*/
|
|
19110
|
+
public static toObject(message: google.chat.v1.SearchSpacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
19111
|
+
|
|
19112
|
+
/**
|
|
19113
|
+
* Converts this SearchSpacesResponse to JSON.
|
|
19114
|
+
* @returns JSON object
|
|
19115
|
+
*/
|
|
19116
|
+
public toJSON(): { [k: string]: any };
|
|
19117
|
+
|
|
19118
|
+
/**
|
|
19119
|
+
* Gets the default type url for SearchSpacesResponse
|
|
19120
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
19121
|
+
* @returns The default type url
|
|
19122
|
+
*/
|
|
19123
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
19124
|
+
}
|
|
19125
|
+
|
|
18718
19126
|
/** Properties of a DeleteSpaceRequest. */
|
|
18719
19127
|
interface IDeleteSpaceRequest {
|
|
18720
19128
|
|
|
18721
19129
|
/** DeleteSpaceRequest name */
|
|
18722
19130
|
name?: (string|null);
|
|
19131
|
+
|
|
19132
|
+
/** DeleteSpaceRequest useAdminAccess */
|
|
19133
|
+
useAdminAccess?: (boolean|null);
|
|
18723
19134
|
}
|
|
18724
19135
|
|
|
18725
19136
|
/** Represents a DeleteSpaceRequest. */
|
|
@@ -18734,6 +19145,9 @@ export namespace google {
|
|
|
18734
19145
|
/** DeleteSpaceRequest name. */
|
|
18735
19146
|
public name: string;
|
|
18736
19147
|
|
|
19148
|
+
/** DeleteSpaceRequest useAdminAccess. */
|
|
19149
|
+
public useAdminAccess: boolean;
|
|
19150
|
+
|
|
18737
19151
|
/**
|
|
18738
19152
|
* Creates a new DeleteSpaceRequest instance using the specified properties.
|
|
18739
19153
|
* @param [properties] Properties to set
|