@google-apps/chat 0.13.0 → 0.15.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 +24 -0
- package/README.md +4 -2
- package/build/protos/google/apps/card/v1/card.proto +1 -1
- package/build/protos/google/chat/v1/action_status.proto +1 -1
- package/build/protos/google/chat/v1/annotation.proto +1 -1
- package/build/protos/google/chat/v1/attachment.proto +1 -1
- package/build/protos/google/chat/v1/chat_service.proto +34 -2
- package/build/protos/google/chat/v1/contextual_addon.proto +1 -1
- package/build/protos/google/chat/v1/deletion_metadata.proto +1 -1
- package/build/protos/google/chat/v1/event_payload.proto +1 -1
- package/build/protos/google/chat/v1/group.proto +1 -1
- package/build/protos/google/chat/v1/history_state.proto +1 -1
- package/build/protos/google/chat/v1/matched_url.proto +1 -1
- package/build/protos/google/chat/v1/membership.proto +1 -1
- package/build/protos/google/chat/v1/message.proto +1 -1
- package/build/protos/google/chat/v1/reaction.proto +1 -1
- package/build/protos/google/chat/v1/slash_command.proto +1 -1
- package/build/protos/google/chat/v1/space.proto +1 -1
- package/build/protos/google/chat/v1/space_event.proto +1 -1
- package/build/protos/google/chat/v1/space_notification_setting.proto +122 -0
- package/build/protos/google/chat/v1/space_read_state.proto +1 -1
- package/build/protos/google/chat/v1/space_setup.proto +1 -1
- package/build/protos/google/chat/v1/thread_read_state.proto +1 -1
- package/build/protos/google/chat/v1/user.proto +1 -1
- package/build/protos/google/chat/v1/widgets.proto +1 -1
- package/build/protos/protos.d.ts +376 -0
- package/build/protos/protos.js +883 -0
- package/build/protos/protos.json +129 -4
- package/build/src/v1/chat_service_client.d.ts +96 -1
- package/build/src/v1/chat_service_client.js +686 -152
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/build/src/v1/chat_service_client_config.json +10 -0
- package/build/src/v1/chat_service_proto_list.json +25 -0
- package/build/src/v1/gapic_metadata.json +357 -0
- package/package.json +16 -16
package/build/protos/protos.d.ts
CHANGED
|
@@ -12661,6 +12661,34 @@ export namespace google {
|
|
|
12661
12661
|
* @returns Promise
|
|
12662
12662
|
*/
|
|
12663
12663
|
public listSpaceEvents(request: google.chat.v1.IListSpaceEventsRequest): Promise<google.chat.v1.ListSpaceEventsResponse>;
|
|
12664
|
+
|
|
12665
|
+
/**
|
|
12666
|
+
* Calls GetSpaceNotificationSetting.
|
|
12667
|
+
* @param request GetSpaceNotificationSettingRequest message or plain object
|
|
12668
|
+
* @param callback Node-style callback called with the error, if any, and SpaceNotificationSetting
|
|
12669
|
+
*/
|
|
12670
|
+
public getSpaceNotificationSetting(request: google.chat.v1.IGetSpaceNotificationSettingRequest, callback: google.chat.v1.ChatService.GetSpaceNotificationSettingCallback): void;
|
|
12671
|
+
|
|
12672
|
+
/**
|
|
12673
|
+
* Calls GetSpaceNotificationSetting.
|
|
12674
|
+
* @param request GetSpaceNotificationSettingRequest message or plain object
|
|
12675
|
+
* @returns Promise
|
|
12676
|
+
*/
|
|
12677
|
+
public getSpaceNotificationSetting(request: google.chat.v1.IGetSpaceNotificationSettingRequest): Promise<google.chat.v1.SpaceNotificationSetting>;
|
|
12678
|
+
|
|
12679
|
+
/**
|
|
12680
|
+
* Calls UpdateSpaceNotificationSetting.
|
|
12681
|
+
* @param request UpdateSpaceNotificationSettingRequest message or plain object
|
|
12682
|
+
* @param callback Node-style callback called with the error, if any, and SpaceNotificationSetting
|
|
12683
|
+
*/
|
|
12684
|
+
public updateSpaceNotificationSetting(request: google.chat.v1.IUpdateSpaceNotificationSettingRequest, callback: google.chat.v1.ChatService.UpdateSpaceNotificationSettingCallback): void;
|
|
12685
|
+
|
|
12686
|
+
/**
|
|
12687
|
+
* Calls UpdateSpaceNotificationSetting.
|
|
12688
|
+
* @param request UpdateSpaceNotificationSettingRequest message or plain object
|
|
12689
|
+
* @returns Promise
|
|
12690
|
+
*/
|
|
12691
|
+
public updateSpaceNotificationSetting(request: google.chat.v1.IUpdateSpaceNotificationSettingRequest): Promise<google.chat.v1.SpaceNotificationSetting>;
|
|
12664
12692
|
}
|
|
12665
12693
|
|
|
12666
12694
|
namespace ChatService {
|
|
@@ -12867,6 +12895,20 @@ export namespace google {
|
|
|
12867
12895
|
* @param [response] ListSpaceEventsResponse
|
|
12868
12896
|
*/
|
|
12869
12897
|
type ListSpaceEventsCallback = (error: (Error|null), response?: google.chat.v1.ListSpaceEventsResponse) => void;
|
|
12898
|
+
|
|
12899
|
+
/**
|
|
12900
|
+
* Callback as used by {@link google.chat.v1.ChatService|getSpaceNotificationSetting}.
|
|
12901
|
+
* @param error Error, if any
|
|
12902
|
+
* @param [response] SpaceNotificationSetting
|
|
12903
|
+
*/
|
|
12904
|
+
type GetSpaceNotificationSettingCallback = (error: (Error|null), response?: google.chat.v1.SpaceNotificationSetting) => void;
|
|
12905
|
+
|
|
12906
|
+
/**
|
|
12907
|
+
* Callback as used by {@link google.chat.v1.ChatService|updateSpaceNotificationSetting}.
|
|
12908
|
+
* @param error Error, if any
|
|
12909
|
+
* @param [response] SpaceNotificationSetting
|
|
12910
|
+
*/
|
|
12911
|
+
type UpdateSpaceNotificationSettingCallback = (error: (Error|null), response?: google.chat.v1.SpaceNotificationSetting) => void;
|
|
12870
12912
|
}
|
|
12871
12913
|
|
|
12872
12914
|
/** Properties of a Membership. */
|
|
@@ -22110,6 +22152,340 @@ export namespace google {
|
|
|
22110
22152
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
22111
22153
|
}
|
|
22112
22154
|
|
|
22155
|
+
/** Properties of a SpaceNotificationSetting. */
|
|
22156
|
+
interface ISpaceNotificationSetting {
|
|
22157
|
+
|
|
22158
|
+
/** SpaceNotificationSetting name */
|
|
22159
|
+
name?: (string|null);
|
|
22160
|
+
|
|
22161
|
+
/** SpaceNotificationSetting notificationSetting */
|
|
22162
|
+
notificationSetting?: (google.chat.v1.SpaceNotificationSetting.NotificationSetting|keyof typeof google.chat.v1.SpaceNotificationSetting.NotificationSetting|null);
|
|
22163
|
+
|
|
22164
|
+
/** SpaceNotificationSetting muteSetting */
|
|
22165
|
+
muteSetting?: (google.chat.v1.SpaceNotificationSetting.MuteSetting|keyof typeof google.chat.v1.SpaceNotificationSetting.MuteSetting|null);
|
|
22166
|
+
}
|
|
22167
|
+
|
|
22168
|
+
/** Represents a SpaceNotificationSetting. */
|
|
22169
|
+
class SpaceNotificationSetting implements ISpaceNotificationSetting {
|
|
22170
|
+
|
|
22171
|
+
/**
|
|
22172
|
+
* Constructs a new SpaceNotificationSetting.
|
|
22173
|
+
* @param [properties] Properties to set
|
|
22174
|
+
*/
|
|
22175
|
+
constructor(properties?: google.chat.v1.ISpaceNotificationSetting);
|
|
22176
|
+
|
|
22177
|
+
/** SpaceNotificationSetting name. */
|
|
22178
|
+
public name: string;
|
|
22179
|
+
|
|
22180
|
+
/** SpaceNotificationSetting notificationSetting. */
|
|
22181
|
+
public notificationSetting?: (google.chat.v1.SpaceNotificationSetting.NotificationSetting|keyof typeof google.chat.v1.SpaceNotificationSetting.NotificationSetting|null);
|
|
22182
|
+
|
|
22183
|
+
/** SpaceNotificationSetting muteSetting. */
|
|
22184
|
+
public muteSetting?: (google.chat.v1.SpaceNotificationSetting.MuteSetting|keyof typeof google.chat.v1.SpaceNotificationSetting.MuteSetting|null);
|
|
22185
|
+
|
|
22186
|
+
/** SpaceNotificationSetting _notificationSetting. */
|
|
22187
|
+
public _notificationSetting?: "notificationSetting";
|
|
22188
|
+
|
|
22189
|
+
/** SpaceNotificationSetting _muteSetting. */
|
|
22190
|
+
public _muteSetting?: "muteSetting";
|
|
22191
|
+
|
|
22192
|
+
/**
|
|
22193
|
+
* Creates a new SpaceNotificationSetting instance using the specified properties.
|
|
22194
|
+
* @param [properties] Properties to set
|
|
22195
|
+
* @returns SpaceNotificationSetting instance
|
|
22196
|
+
*/
|
|
22197
|
+
public static create(properties?: google.chat.v1.ISpaceNotificationSetting): google.chat.v1.SpaceNotificationSetting;
|
|
22198
|
+
|
|
22199
|
+
/**
|
|
22200
|
+
* Encodes the specified SpaceNotificationSetting message. Does not implicitly {@link google.chat.v1.SpaceNotificationSetting.verify|verify} messages.
|
|
22201
|
+
* @param message SpaceNotificationSetting message or plain object to encode
|
|
22202
|
+
* @param [writer] Writer to encode to
|
|
22203
|
+
* @returns Writer
|
|
22204
|
+
*/
|
|
22205
|
+
public static encode(message: google.chat.v1.ISpaceNotificationSetting, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22206
|
+
|
|
22207
|
+
/**
|
|
22208
|
+
* Encodes the specified SpaceNotificationSetting message, length delimited. Does not implicitly {@link google.chat.v1.SpaceNotificationSetting.verify|verify} messages.
|
|
22209
|
+
* @param message SpaceNotificationSetting message or plain object to encode
|
|
22210
|
+
* @param [writer] Writer to encode to
|
|
22211
|
+
* @returns Writer
|
|
22212
|
+
*/
|
|
22213
|
+
public static encodeDelimited(message: google.chat.v1.ISpaceNotificationSetting, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22214
|
+
|
|
22215
|
+
/**
|
|
22216
|
+
* Decodes a SpaceNotificationSetting message from the specified reader or buffer.
|
|
22217
|
+
* @param reader Reader or buffer to decode from
|
|
22218
|
+
* @param [length] Message length if known beforehand
|
|
22219
|
+
* @returns SpaceNotificationSetting
|
|
22220
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22221
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22222
|
+
*/
|
|
22223
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.SpaceNotificationSetting;
|
|
22224
|
+
|
|
22225
|
+
/**
|
|
22226
|
+
* Decodes a SpaceNotificationSetting message from the specified reader or buffer, length delimited.
|
|
22227
|
+
* @param reader Reader or buffer to decode from
|
|
22228
|
+
* @returns SpaceNotificationSetting
|
|
22229
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22230
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22231
|
+
*/
|
|
22232
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.SpaceNotificationSetting;
|
|
22233
|
+
|
|
22234
|
+
/**
|
|
22235
|
+
* Verifies a SpaceNotificationSetting message.
|
|
22236
|
+
* @param message Plain object to verify
|
|
22237
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
22238
|
+
*/
|
|
22239
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
22240
|
+
|
|
22241
|
+
/**
|
|
22242
|
+
* Creates a SpaceNotificationSetting message from a plain object. Also converts values to their respective internal types.
|
|
22243
|
+
* @param object Plain object
|
|
22244
|
+
* @returns SpaceNotificationSetting
|
|
22245
|
+
*/
|
|
22246
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.SpaceNotificationSetting;
|
|
22247
|
+
|
|
22248
|
+
/**
|
|
22249
|
+
* Creates a plain object from a SpaceNotificationSetting message. Also converts values to other types if specified.
|
|
22250
|
+
* @param message SpaceNotificationSetting
|
|
22251
|
+
* @param [options] Conversion options
|
|
22252
|
+
* @returns Plain object
|
|
22253
|
+
*/
|
|
22254
|
+
public static toObject(message: google.chat.v1.SpaceNotificationSetting, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
22255
|
+
|
|
22256
|
+
/**
|
|
22257
|
+
* Converts this SpaceNotificationSetting to JSON.
|
|
22258
|
+
* @returns JSON object
|
|
22259
|
+
*/
|
|
22260
|
+
public toJSON(): { [k: string]: any };
|
|
22261
|
+
|
|
22262
|
+
/**
|
|
22263
|
+
* Gets the default type url for SpaceNotificationSetting
|
|
22264
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
22265
|
+
* @returns The default type url
|
|
22266
|
+
*/
|
|
22267
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
22268
|
+
}
|
|
22269
|
+
|
|
22270
|
+
namespace SpaceNotificationSetting {
|
|
22271
|
+
|
|
22272
|
+
/** NotificationSetting enum. */
|
|
22273
|
+
enum NotificationSetting {
|
|
22274
|
+
NOTIFICATION_SETTING_UNSPECIFIED = 0,
|
|
22275
|
+
ALL = 1,
|
|
22276
|
+
MAIN_CONVERSATIONS = 2,
|
|
22277
|
+
FOR_YOU = 3,
|
|
22278
|
+
OFF = 4
|
|
22279
|
+
}
|
|
22280
|
+
|
|
22281
|
+
/** MuteSetting enum. */
|
|
22282
|
+
enum MuteSetting {
|
|
22283
|
+
MUTE_SETTING_UNSPECIFIED = 0,
|
|
22284
|
+
UNMUTED = 1,
|
|
22285
|
+
MUTED = 2
|
|
22286
|
+
}
|
|
22287
|
+
}
|
|
22288
|
+
|
|
22289
|
+
/** Properties of a GetSpaceNotificationSettingRequest. */
|
|
22290
|
+
interface IGetSpaceNotificationSettingRequest {
|
|
22291
|
+
|
|
22292
|
+
/** GetSpaceNotificationSettingRequest name */
|
|
22293
|
+
name?: (string|null);
|
|
22294
|
+
}
|
|
22295
|
+
|
|
22296
|
+
/** Represents a GetSpaceNotificationSettingRequest. */
|
|
22297
|
+
class GetSpaceNotificationSettingRequest implements IGetSpaceNotificationSettingRequest {
|
|
22298
|
+
|
|
22299
|
+
/**
|
|
22300
|
+
* Constructs a new GetSpaceNotificationSettingRequest.
|
|
22301
|
+
* @param [properties] Properties to set
|
|
22302
|
+
*/
|
|
22303
|
+
constructor(properties?: google.chat.v1.IGetSpaceNotificationSettingRequest);
|
|
22304
|
+
|
|
22305
|
+
/** GetSpaceNotificationSettingRequest name. */
|
|
22306
|
+
public name: string;
|
|
22307
|
+
|
|
22308
|
+
/**
|
|
22309
|
+
* Creates a new GetSpaceNotificationSettingRequest instance using the specified properties.
|
|
22310
|
+
* @param [properties] Properties to set
|
|
22311
|
+
* @returns GetSpaceNotificationSettingRequest instance
|
|
22312
|
+
*/
|
|
22313
|
+
public static create(properties?: google.chat.v1.IGetSpaceNotificationSettingRequest): google.chat.v1.GetSpaceNotificationSettingRequest;
|
|
22314
|
+
|
|
22315
|
+
/**
|
|
22316
|
+
* Encodes the specified GetSpaceNotificationSettingRequest message. Does not implicitly {@link google.chat.v1.GetSpaceNotificationSettingRequest.verify|verify} messages.
|
|
22317
|
+
* @param message GetSpaceNotificationSettingRequest message or plain object to encode
|
|
22318
|
+
* @param [writer] Writer to encode to
|
|
22319
|
+
* @returns Writer
|
|
22320
|
+
*/
|
|
22321
|
+
public static encode(message: google.chat.v1.IGetSpaceNotificationSettingRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22322
|
+
|
|
22323
|
+
/**
|
|
22324
|
+
* Encodes the specified GetSpaceNotificationSettingRequest message, length delimited. Does not implicitly {@link google.chat.v1.GetSpaceNotificationSettingRequest.verify|verify} messages.
|
|
22325
|
+
* @param message GetSpaceNotificationSettingRequest message or plain object to encode
|
|
22326
|
+
* @param [writer] Writer to encode to
|
|
22327
|
+
* @returns Writer
|
|
22328
|
+
*/
|
|
22329
|
+
public static encodeDelimited(message: google.chat.v1.IGetSpaceNotificationSettingRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22330
|
+
|
|
22331
|
+
/**
|
|
22332
|
+
* Decodes a GetSpaceNotificationSettingRequest message from the specified reader or buffer.
|
|
22333
|
+
* @param reader Reader or buffer to decode from
|
|
22334
|
+
* @param [length] Message length if known beforehand
|
|
22335
|
+
* @returns GetSpaceNotificationSettingRequest
|
|
22336
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22337
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22338
|
+
*/
|
|
22339
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.GetSpaceNotificationSettingRequest;
|
|
22340
|
+
|
|
22341
|
+
/**
|
|
22342
|
+
* Decodes a GetSpaceNotificationSettingRequest message from the specified reader or buffer, length delimited.
|
|
22343
|
+
* @param reader Reader or buffer to decode from
|
|
22344
|
+
* @returns GetSpaceNotificationSettingRequest
|
|
22345
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22346
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22347
|
+
*/
|
|
22348
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.GetSpaceNotificationSettingRequest;
|
|
22349
|
+
|
|
22350
|
+
/**
|
|
22351
|
+
* Verifies a GetSpaceNotificationSettingRequest message.
|
|
22352
|
+
* @param message Plain object to verify
|
|
22353
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
22354
|
+
*/
|
|
22355
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
22356
|
+
|
|
22357
|
+
/**
|
|
22358
|
+
* Creates a GetSpaceNotificationSettingRequest message from a plain object. Also converts values to their respective internal types.
|
|
22359
|
+
* @param object Plain object
|
|
22360
|
+
* @returns GetSpaceNotificationSettingRequest
|
|
22361
|
+
*/
|
|
22362
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.GetSpaceNotificationSettingRequest;
|
|
22363
|
+
|
|
22364
|
+
/**
|
|
22365
|
+
* Creates a plain object from a GetSpaceNotificationSettingRequest message. Also converts values to other types if specified.
|
|
22366
|
+
* @param message GetSpaceNotificationSettingRequest
|
|
22367
|
+
* @param [options] Conversion options
|
|
22368
|
+
* @returns Plain object
|
|
22369
|
+
*/
|
|
22370
|
+
public static toObject(message: google.chat.v1.GetSpaceNotificationSettingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
22371
|
+
|
|
22372
|
+
/**
|
|
22373
|
+
* Converts this GetSpaceNotificationSettingRequest to JSON.
|
|
22374
|
+
* @returns JSON object
|
|
22375
|
+
*/
|
|
22376
|
+
public toJSON(): { [k: string]: any };
|
|
22377
|
+
|
|
22378
|
+
/**
|
|
22379
|
+
* Gets the default type url for GetSpaceNotificationSettingRequest
|
|
22380
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
22381
|
+
* @returns The default type url
|
|
22382
|
+
*/
|
|
22383
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
22384
|
+
}
|
|
22385
|
+
|
|
22386
|
+
/** Properties of an UpdateSpaceNotificationSettingRequest. */
|
|
22387
|
+
interface IUpdateSpaceNotificationSettingRequest {
|
|
22388
|
+
|
|
22389
|
+
/** UpdateSpaceNotificationSettingRequest spaceNotificationSetting */
|
|
22390
|
+
spaceNotificationSetting?: (google.chat.v1.ISpaceNotificationSetting|null);
|
|
22391
|
+
|
|
22392
|
+
/** UpdateSpaceNotificationSettingRequest updateMask */
|
|
22393
|
+
updateMask?: (google.protobuf.IFieldMask|null);
|
|
22394
|
+
}
|
|
22395
|
+
|
|
22396
|
+
/** Represents an UpdateSpaceNotificationSettingRequest. */
|
|
22397
|
+
class UpdateSpaceNotificationSettingRequest implements IUpdateSpaceNotificationSettingRequest {
|
|
22398
|
+
|
|
22399
|
+
/**
|
|
22400
|
+
* Constructs a new UpdateSpaceNotificationSettingRequest.
|
|
22401
|
+
* @param [properties] Properties to set
|
|
22402
|
+
*/
|
|
22403
|
+
constructor(properties?: google.chat.v1.IUpdateSpaceNotificationSettingRequest);
|
|
22404
|
+
|
|
22405
|
+
/** UpdateSpaceNotificationSettingRequest spaceNotificationSetting. */
|
|
22406
|
+
public spaceNotificationSetting?: (google.chat.v1.ISpaceNotificationSetting|null);
|
|
22407
|
+
|
|
22408
|
+
/** UpdateSpaceNotificationSettingRequest updateMask. */
|
|
22409
|
+
public updateMask?: (google.protobuf.IFieldMask|null);
|
|
22410
|
+
|
|
22411
|
+
/**
|
|
22412
|
+
* Creates a new UpdateSpaceNotificationSettingRequest instance using the specified properties.
|
|
22413
|
+
* @param [properties] Properties to set
|
|
22414
|
+
* @returns UpdateSpaceNotificationSettingRequest instance
|
|
22415
|
+
*/
|
|
22416
|
+
public static create(properties?: google.chat.v1.IUpdateSpaceNotificationSettingRequest): google.chat.v1.UpdateSpaceNotificationSettingRequest;
|
|
22417
|
+
|
|
22418
|
+
/**
|
|
22419
|
+
* Encodes the specified UpdateSpaceNotificationSettingRequest message. Does not implicitly {@link google.chat.v1.UpdateSpaceNotificationSettingRequest.verify|verify} messages.
|
|
22420
|
+
* @param message UpdateSpaceNotificationSettingRequest message or plain object to encode
|
|
22421
|
+
* @param [writer] Writer to encode to
|
|
22422
|
+
* @returns Writer
|
|
22423
|
+
*/
|
|
22424
|
+
public static encode(message: google.chat.v1.IUpdateSpaceNotificationSettingRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22425
|
+
|
|
22426
|
+
/**
|
|
22427
|
+
* Encodes the specified UpdateSpaceNotificationSettingRequest message, length delimited. Does not implicitly {@link google.chat.v1.UpdateSpaceNotificationSettingRequest.verify|verify} messages.
|
|
22428
|
+
* @param message UpdateSpaceNotificationSettingRequest message or plain object to encode
|
|
22429
|
+
* @param [writer] Writer to encode to
|
|
22430
|
+
* @returns Writer
|
|
22431
|
+
*/
|
|
22432
|
+
public static encodeDelimited(message: google.chat.v1.IUpdateSpaceNotificationSettingRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22433
|
+
|
|
22434
|
+
/**
|
|
22435
|
+
* Decodes an UpdateSpaceNotificationSettingRequest message from the specified reader or buffer.
|
|
22436
|
+
* @param reader Reader or buffer to decode from
|
|
22437
|
+
* @param [length] Message length if known beforehand
|
|
22438
|
+
* @returns UpdateSpaceNotificationSettingRequest
|
|
22439
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22440
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22441
|
+
*/
|
|
22442
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.UpdateSpaceNotificationSettingRequest;
|
|
22443
|
+
|
|
22444
|
+
/**
|
|
22445
|
+
* Decodes an UpdateSpaceNotificationSettingRequest message from the specified reader or buffer, length delimited.
|
|
22446
|
+
* @param reader Reader or buffer to decode from
|
|
22447
|
+
* @returns UpdateSpaceNotificationSettingRequest
|
|
22448
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22449
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22450
|
+
*/
|
|
22451
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.UpdateSpaceNotificationSettingRequest;
|
|
22452
|
+
|
|
22453
|
+
/**
|
|
22454
|
+
* Verifies an UpdateSpaceNotificationSettingRequest message.
|
|
22455
|
+
* @param message Plain object to verify
|
|
22456
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
22457
|
+
*/
|
|
22458
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
22459
|
+
|
|
22460
|
+
/**
|
|
22461
|
+
* Creates an UpdateSpaceNotificationSettingRequest message from a plain object. Also converts values to their respective internal types.
|
|
22462
|
+
* @param object Plain object
|
|
22463
|
+
* @returns UpdateSpaceNotificationSettingRequest
|
|
22464
|
+
*/
|
|
22465
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.UpdateSpaceNotificationSettingRequest;
|
|
22466
|
+
|
|
22467
|
+
/**
|
|
22468
|
+
* Creates a plain object from an UpdateSpaceNotificationSettingRequest message. Also converts values to other types if specified.
|
|
22469
|
+
* @param message UpdateSpaceNotificationSettingRequest
|
|
22470
|
+
* @param [options] Conversion options
|
|
22471
|
+
* @returns Plain object
|
|
22472
|
+
*/
|
|
22473
|
+
public static toObject(message: google.chat.v1.UpdateSpaceNotificationSettingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
22474
|
+
|
|
22475
|
+
/**
|
|
22476
|
+
* Converts this UpdateSpaceNotificationSettingRequest to JSON.
|
|
22477
|
+
* @returns JSON object
|
|
22478
|
+
*/
|
|
22479
|
+
public toJSON(): { [k: string]: any };
|
|
22480
|
+
|
|
22481
|
+
/**
|
|
22482
|
+
* Gets the default type url for UpdateSpaceNotificationSettingRequest
|
|
22483
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
22484
|
+
* @returns The default type url
|
|
22485
|
+
*/
|
|
22486
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
22487
|
+
}
|
|
22488
|
+
|
|
22113
22489
|
/** Properties of a SpaceReadState. */
|
|
22114
22490
|
interface ISpaceReadState {
|
|
22115
22491
|
|