@google-apps/chat 0.2.0 → 0.4.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.
@@ -5098,200 +5098,200 @@ export namespace google {
5098
5098
  public static getTypeUrl(typeUrlPrefix?: string): string;
5099
5099
  }
5100
5100
 
5101
- /** Properties of a Timestamp. */
5102
- interface ITimestamp {
5103
-
5104
- /** Timestamp seconds */
5105
- seconds?: (number|Long|string|null);
5101
+ /** Properties of a FieldMask. */
5102
+ interface IFieldMask {
5106
5103
 
5107
- /** Timestamp nanos */
5108
- nanos?: (number|null);
5104
+ /** FieldMask paths */
5105
+ paths?: (string[]|null);
5109
5106
  }
5110
5107
 
5111
- /** Represents a Timestamp. */
5112
- class Timestamp implements ITimestamp {
5108
+ /** Represents a FieldMask. */
5109
+ class FieldMask implements IFieldMask {
5113
5110
 
5114
5111
  /**
5115
- * Constructs a new Timestamp.
5112
+ * Constructs a new FieldMask.
5116
5113
  * @param [properties] Properties to set
5117
5114
  */
5118
- constructor(properties?: google.protobuf.ITimestamp);
5119
-
5120
- /** Timestamp seconds. */
5121
- public seconds: (number|Long|string);
5115
+ constructor(properties?: google.protobuf.IFieldMask);
5122
5116
 
5123
- /** Timestamp nanos. */
5124
- public nanos: number;
5117
+ /** FieldMask paths. */
5118
+ public paths: string[];
5125
5119
 
5126
5120
  /**
5127
- * Creates a new Timestamp instance using the specified properties.
5121
+ * Creates a new FieldMask instance using the specified properties.
5128
5122
  * @param [properties] Properties to set
5129
- * @returns Timestamp instance
5123
+ * @returns FieldMask instance
5130
5124
  */
5131
- public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
5125
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
5132
5126
 
5133
5127
  /**
5134
- * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
5135
- * @param message Timestamp message or plain object to encode
5128
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
5129
+ * @param message FieldMask message or plain object to encode
5136
5130
  * @param [writer] Writer to encode to
5137
5131
  * @returns Writer
5138
5132
  */
5139
- public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
5133
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
5140
5134
 
5141
5135
  /**
5142
- * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
5143
- * @param message Timestamp message or plain object to encode
5136
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
5137
+ * @param message FieldMask message or plain object to encode
5144
5138
  * @param [writer] Writer to encode to
5145
5139
  * @returns Writer
5146
5140
  */
5147
- public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
5141
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
5148
5142
 
5149
5143
  /**
5150
- * Decodes a Timestamp message from the specified reader or buffer.
5144
+ * Decodes a FieldMask message from the specified reader or buffer.
5151
5145
  * @param reader Reader or buffer to decode from
5152
5146
  * @param [length] Message length if known beforehand
5153
- * @returns Timestamp
5147
+ * @returns FieldMask
5154
5148
  * @throws {Error} If the payload is not a reader or valid buffer
5155
5149
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5156
5150
  */
5157
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
5151
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
5158
5152
 
5159
5153
  /**
5160
- * Decodes a Timestamp message from the specified reader or buffer, length delimited.
5154
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
5161
5155
  * @param reader Reader or buffer to decode from
5162
- * @returns Timestamp
5156
+ * @returns FieldMask
5163
5157
  * @throws {Error} If the payload is not a reader or valid buffer
5164
5158
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5165
5159
  */
5166
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
5160
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
5167
5161
 
5168
5162
  /**
5169
- * Verifies a Timestamp message.
5163
+ * Verifies a FieldMask message.
5170
5164
  * @param message Plain object to verify
5171
5165
  * @returns `null` if valid, otherwise the reason why it is not
5172
5166
  */
5173
5167
  public static verify(message: { [k: string]: any }): (string|null);
5174
5168
 
5175
5169
  /**
5176
- * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
5170
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
5177
5171
  * @param object Plain object
5178
- * @returns Timestamp
5172
+ * @returns FieldMask
5179
5173
  */
5180
- public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
5174
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
5181
5175
 
5182
5176
  /**
5183
- * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
5184
- * @param message Timestamp
5177
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
5178
+ * @param message FieldMask
5185
5179
  * @param [options] Conversion options
5186
5180
  * @returns Plain object
5187
5181
  */
5188
- public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
5182
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
5189
5183
 
5190
5184
  /**
5191
- * Converts this Timestamp to JSON.
5185
+ * Converts this FieldMask to JSON.
5192
5186
  * @returns JSON object
5193
5187
  */
5194
5188
  public toJSON(): { [k: string]: any };
5195
5189
 
5196
5190
  /**
5197
- * Gets the default type url for Timestamp
5191
+ * Gets the default type url for FieldMask
5198
5192
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5199
5193
  * @returns The default type url
5200
5194
  */
5201
5195
  public static getTypeUrl(typeUrlPrefix?: string): string;
5202
5196
  }
5203
5197
 
5204
- /** Properties of a FieldMask. */
5205
- interface IFieldMask {
5198
+ /** Properties of a Timestamp. */
5199
+ interface ITimestamp {
5206
5200
 
5207
- /** FieldMask paths */
5208
- paths?: (string[]|null);
5201
+ /** Timestamp seconds */
5202
+ seconds?: (number|Long|string|null);
5203
+
5204
+ /** Timestamp nanos */
5205
+ nanos?: (number|null);
5209
5206
  }
5210
5207
 
5211
- /** Represents a FieldMask. */
5212
- class FieldMask implements IFieldMask {
5208
+ /** Represents a Timestamp. */
5209
+ class Timestamp implements ITimestamp {
5213
5210
 
5214
5211
  /**
5215
- * Constructs a new FieldMask.
5212
+ * Constructs a new Timestamp.
5216
5213
  * @param [properties] Properties to set
5217
5214
  */
5218
- constructor(properties?: google.protobuf.IFieldMask);
5215
+ constructor(properties?: google.protobuf.ITimestamp);
5219
5216
 
5220
- /** FieldMask paths. */
5221
- public paths: string[];
5217
+ /** Timestamp seconds. */
5218
+ public seconds: (number|Long|string);
5219
+
5220
+ /** Timestamp nanos. */
5221
+ public nanos: number;
5222
5222
 
5223
5223
  /**
5224
- * Creates a new FieldMask instance using the specified properties.
5224
+ * Creates a new Timestamp instance using the specified properties.
5225
5225
  * @param [properties] Properties to set
5226
- * @returns FieldMask instance
5226
+ * @returns Timestamp instance
5227
5227
  */
5228
- public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
5228
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
5229
5229
 
5230
5230
  /**
5231
- * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
5232
- * @param message FieldMask message or plain object to encode
5231
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
5232
+ * @param message Timestamp message or plain object to encode
5233
5233
  * @param [writer] Writer to encode to
5234
5234
  * @returns Writer
5235
5235
  */
5236
- public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
5236
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
5237
5237
 
5238
5238
  /**
5239
- * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
5240
- * @param message FieldMask message or plain object to encode
5239
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
5240
+ * @param message Timestamp message or plain object to encode
5241
5241
  * @param [writer] Writer to encode to
5242
5242
  * @returns Writer
5243
5243
  */
5244
- public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
5244
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
5245
5245
 
5246
5246
  /**
5247
- * Decodes a FieldMask message from the specified reader or buffer.
5247
+ * Decodes a Timestamp message from the specified reader or buffer.
5248
5248
  * @param reader Reader or buffer to decode from
5249
5249
  * @param [length] Message length if known beforehand
5250
- * @returns FieldMask
5250
+ * @returns Timestamp
5251
5251
  * @throws {Error} If the payload is not a reader or valid buffer
5252
5252
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5253
5253
  */
5254
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
5254
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
5255
5255
 
5256
5256
  /**
5257
- * Decodes a FieldMask message from the specified reader or buffer, length delimited.
5257
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
5258
5258
  * @param reader Reader or buffer to decode from
5259
- * @returns FieldMask
5259
+ * @returns Timestamp
5260
5260
  * @throws {Error} If the payload is not a reader or valid buffer
5261
5261
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5262
5262
  */
5263
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
5263
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
5264
5264
 
5265
5265
  /**
5266
- * Verifies a FieldMask message.
5266
+ * Verifies a Timestamp message.
5267
5267
  * @param message Plain object to verify
5268
5268
  * @returns `null` if valid, otherwise the reason why it is not
5269
5269
  */
5270
5270
  public static verify(message: { [k: string]: any }): (string|null);
5271
5271
 
5272
5272
  /**
5273
- * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
5273
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
5274
5274
  * @param object Plain object
5275
- * @returns FieldMask
5275
+ * @returns Timestamp
5276
5276
  */
5277
- public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
5277
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
5278
5278
 
5279
5279
  /**
5280
- * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
5281
- * @param message FieldMask
5280
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
5281
+ * @param message Timestamp
5282
5282
  * @param [options] Conversion options
5283
5283
  * @returns Plain object
5284
5284
  */
5285
- public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
5285
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
5286
5286
 
5287
5287
  /**
5288
- * Converts this FieldMask to JSON.
5288
+ * Converts this Timestamp to JSON.
5289
5289
  * @returns JSON object
5290
5290
  */
5291
5291
  public toJSON(): { [k: string]: any };
5292
5292
 
5293
5293
  /**
5294
- * Gets the default type url for FieldMask
5294
+ * Gets the default type url for Timestamp
5295
5295
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5296
5296
  * @returns The default type url
5297
5297
  */
@@ -7873,6 +7873,9 @@ export namespace google {
7873
7873
  /** Icon iconUrl */
7874
7874
  iconUrl?: (string|null);
7875
7875
 
7876
+ /** Icon materialIcon */
7877
+ materialIcon?: (google.apps.card.v1.IMaterialIcon|null);
7878
+
7876
7879
  /** Icon altText */
7877
7880
  altText?: (string|null);
7878
7881
 
@@ -7895,6 +7898,9 @@ export namespace google {
7895
7898
  /** Icon iconUrl. */
7896
7899
  public iconUrl?: (string|null);
7897
7900
 
7901
+ /** Icon materialIcon. */
7902
+ public materialIcon?: (google.apps.card.v1.IMaterialIcon|null);
7903
+
7898
7904
  /** Icon altText. */
7899
7905
  public altText: string;
7900
7906
 
@@ -7902,7 +7908,7 @@ export namespace google {
7902
7908
  public imageType: (google.apps.card.v1.Widget.ImageType|keyof typeof google.apps.card.v1.Widget.ImageType);
7903
7909
 
7904
7910
  /** Icon icons. */
7905
- public icons?: ("knownIcon"|"iconUrl");
7911
+ public icons?: ("knownIcon"|"iconUrl"|"materialIcon");
7906
7912
 
7907
7913
  /**
7908
7914
  * Creates a new Icon instance using the specified properties.
@@ -7982,6 +7988,121 @@ export namespace google {
7982
7988
  public static getTypeUrl(typeUrlPrefix?: string): string;
7983
7989
  }
7984
7990
 
7991
+ /** Properties of a MaterialIcon. */
7992
+ interface IMaterialIcon {
7993
+
7994
+ /** MaterialIcon name */
7995
+ name?: (string|null);
7996
+
7997
+ /** MaterialIcon fill */
7998
+ fill?: (boolean|null);
7999
+
8000
+ /** MaterialIcon weight */
8001
+ weight?: (number|null);
8002
+
8003
+ /** MaterialIcon grade */
8004
+ grade?: (number|null);
8005
+ }
8006
+
8007
+ /** Represents a MaterialIcon. */
8008
+ class MaterialIcon implements IMaterialIcon {
8009
+
8010
+ /**
8011
+ * Constructs a new MaterialIcon.
8012
+ * @param [properties] Properties to set
8013
+ */
8014
+ constructor(properties?: google.apps.card.v1.IMaterialIcon);
8015
+
8016
+ /** MaterialIcon name. */
8017
+ public name: string;
8018
+
8019
+ /** MaterialIcon fill. */
8020
+ public fill: boolean;
8021
+
8022
+ /** MaterialIcon weight. */
8023
+ public weight: number;
8024
+
8025
+ /** MaterialIcon grade. */
8026
+ public grade: number;
8027
+
8028
+ /**
8029
+ * Creates a new MaterialIcon instance using the specified properties.
8030
+ * @param [properties] Properties to set
8031
+ * @returns MaterialIcon instance
8032
+ */
8033
+ public static create(properties?: google.apps.card.v1.IMaterialIcon): google.apps.card.v1.MaterialIcon;
8034
+
8035
+ /**
8036
+ * Encodes the specified MaterialIcon message. Does not implicitly {@link google.apps.card.v1.MaterialIcon.verify|verify} messages.
8037
+ * @param message MaterialIcon message or plain object to encode
8038
+ * @param [writer] Writer to encode to
8039
+ * @returns Writer
8040
+ */
8041
+ public static encode(message: google.apps.card.v1.IMaterialIcon, writer?: $protobuf.Writer): $protobuf.Writer;
8042
+
8043
+ /**
8044
+ * Encodes the specified MaterialIcon message, length delimited. Does not implicitly {@link google.apps.card.v1.MaterialIcon.verify|verify} messages.
8045
+ * @param message MaterialIcon message or plain object to encode
8046
+ * @param [writer] Writer to encode to
8047
+ * @returns Writer
8048
+ */
8049
+ public static encodeDelimited(message: google.apps.card.v1.IMaterialIcon, writer?: $protobuf.Writer): $protobuf.Writer;
8050
+
8051
+ /**
8052
+ * Decodes a MaterialIcon message from the specified reader or buffer.
8053
+ * @param reader Reader or buffer to decode from
8054
+ * @param [length] Message length if known beforehand
8055
+ * @returns MaterialIcon
8056
+ * @throws {Error} If the payload is not a reader or valid buffer
8057
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8058
+ */
8059
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.apps.card.v1.MaterialIcon;
8060
+
8061
+ /**
8062
+ * Decodes a MaterialIcon message from the specified reader or buffer, length delimited.
8063
+ * @param reader Reader or buffer to decode from
8064
+ * @returns MaterialIcon
8065
+ * @throws {Error} If the payload is not a reader or valid buffer
8066
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8067
+ */
8068
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.apps.card.v1.MaterialIcon;
8069
+
8070
+ /**
8071
+ * Verifies a MaterialIcon message.
8072
+ * @param message Plain object to verify
8073
+ * @returns `null` if valid, otherwise the reason why it is not
8074
+ */
8075
+ public static verify(message: { [k: string]: any }): (string|null);
8076
+
8077
+ /**
8078
+ * Creates a MaterialIcon message from a plain object. Also converts values to their respective internal types.
8079
+ * @param object Plain object
8080
+ * @returns MaterialIcon
8081
+ */
8082
+ public static fromObject(object: { [k: string]: any }): google.apps.card.v1.MaterialIcon;
8083
+
8084
+ /**
8085
+ * Creates a plain object from a MaterialIcon message. Also converts values to other types if specified.
8086
+ * @param message MaterialIcon
8087
+ * @param [options] Conversion options
8088
+ * @returns Plain object
8089
+ */
8090
+ public static toObject(message: google.apps.card.v1.MaterialIcon, options?: $protobuf.IConversionOptions): { [k: string]: any };
8091
+
8092
+ /**
8093
+ * Converts this MaterialIcon to JSON.
8094
+ * @returns JSON object
8095
+ */
8096
+ public toJSON(): { [k: string]: any };
8097
+
8098
+ /**
8099
+ * Gets the default type url for MaterialIcon
8100
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
8101
+ * @returns The default type url
8102
+ */
8103
+ public static getTypeUrl(typeUrlPrefix?: string): string;
8104
+ }
8105
+
7985
8106
  /** Properties of an ImageCropStyle. */
7986
8107
  interface IImageCropStyle {
7987
8108
 
@@ -11328,6 +11449,20 @@ export namespace google {
11328
11449
  */
11329
11450
  public createMembership(request: google.chat.v1.ICreateMembershipRequest): Promise<google.chat.v1.Membership>;
11330
11451
 
11452
+ /**
11453
+ * Calls UpdateMembership.
11454
+ * @param request UpdateMembershipRequest message or plain object
11455
+ * @param callback Node-style callback called with the error, if any, and Membership
11456
+ */
11457
+ public updateMembership(request: google.chat.v1.IUpdateMembershipRequest, callback: google.chat.v1.ChatService.UpdateMembershipCallback): void;
11458
+
11459
+ /**
11460
+ * Calls UpdateMembership.
11461
+ * @param request UpdateMembershipRequest message or plain object
11462
+ * @returns Promise
11463
+ */
11464
+ public updateMembership(request: google.chat.v1.IUpdateMembershipRequest): Promise<google.chat.v1.Membership>;
11465
+
11331
11466
  /**
11332
11467
  * Calls DeleteMembership.
11333
11468
  * @param request DeleteMembershipRequest message or plain object
@@ -11383,6 +11518,48 @@ export namespace google {
11383
11518
  * @returns Promise
11384
11519
  */
11385
11520
  public deleteReaction(request: google.chat.v1.IDeleteReactionRequest): Promise<google.protobuf.Empty>;
11521
+
11522
+ /**
11523
+ * Calls GetSpaceReadState.
11524
+ * @param request GetSpaceReadStateRequest message or plain object
11525
+ * @param callback Node-style callback called with the error, if any, and SpaceReadState
11526
+ */
11527
+ public getSpaceReadState(request: google.chat.v1.IGetSpaceReadStateRequest, callback: google.chat.v1.ChatService.GetSpaceReadStateCallback): void;
11528
+
11529
+ /**
11530
+ * Calls GetSpaceReadState.
11531
+ * @param request GetSpaceReadStateRequest message or plain object
11532
+ * @returns Promise
11533
+ */
11534
+ public getSpaceReadState(request: google.chat.v1.IGetSpaceReadStateRequest): Promise<google.chat.v1.SpaceReadState>;
11535
+
11536
+ /**
11537
+ * Calls UpdateSpaceReadState.
11538
+ * @param request UpdateSpaceReadStateRequest message or plain object
11539
+ * @param callback Node-style callback called with the error, if any, and SpaceReadState
11540
+ */
11541
+ public updateSpaceReadState(request: google.chat.v1.IUpdateSpaceReadStateRequest, callback: google.chat.v1.ChatService.UpdateSpaceReadStateCallback): void;
11542
+
11543
+ /**
11544
+ * Calls UpdateSpaceReadState.
11545
+ * @param request UpdateSpaceReadStateRequest message or plain object
11546
+ * @returns Promise
11547
+ */
11548
+ public updateSpaceReadState(request: google.chat.v1.IUpdateSpaceReadStateRequest): Promise<google.chat.v1.SpaceReadState>;
11549
+
11550
+ /**
11551
+ * Calls GetThreadReadState.
11552
+ * @param request GetThreadReadStateRequest message or plain object
11553
+ * @param callback Node-style callback called with the error, if any, and ThreadReadState
11554
+ */
11555
+ public getThreadReadState(request: google.chat.v1.IGetThreadReadStateRequest, callback: google.chat.v1.ChatService.GetThreadReadStateCallback): void;
11556
+
11557
+ /**
11558
+ * Calls GetThreadReadState.
11559
+ * @param request GetThreadReadStateRequest message or plain object
11560
+ * @returns Promise
11561
+ */
11562
+ public getThreadReadState(request: google.chat.v1.IGetThreadReadStateRequest): Promise<google.chat.v1.ThreadReadState>;
11386
11563
  }
11387
11564
 
11388
11565
  namespace ChatService {
@@ -11513,6 +11690,13 @@ export namespace google {
11513
11690
  */
11514
11691
  type CreateMembershipCallback = (error: (Error|null), response?: google.chat.v1.Membership) => void;
11515
11692
 
11693
+ /**
11694
+ * Callback as used by {@link google.chat.v1.ChatService|updateMembership}.
11695
+ * @param error Error, if any
11696
+ * @param [response] Membership
11697
+ */
11698
+ type UpdateMembershipCallback = (error: (Error|null), response?: google.chat.v1.Membership) => void;
11699
+
11516
11700
  /**
11517
11701
  * Callback as used by {@link google.chat.v1.ChatService|deleteMembership}.
11518
11702
  * @param error Error, if any
@@ -11540,7 +11724,28 @@ export namespace google {
11540
11724
  * @param [response] Empty
11541
11725
  */
11542
11726
  type DeleteReactionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
11543
- }
11727
+
11728
+ /**
11729
+ * Callback as used by {@link google.chat.v1.ChatService|getSpaceReadState}.
11730
+ * @param error Error, if any
11731
+ * @param [response] SpaceReadState
11732
+ */
11733
+ type GetSpaceReadStateCallback = (error: (Error|null), response?: google.chat.v1.SpaceReadState) => void;
11734
+
11735
+ /**
11736
+ * Callback as used by {@link google.chat.v1.ChatService|updateSpaceReadState}.
11737
+ * @param error Error, if any
11738
+ * @param [response] SpaceReadState
11739
+ */
11740
+ type UpdateSpaceReadStateCallback = (error: (Error|null), response?: google.chat.v1.SpaceReadState) => void;
11741
+
11742
+ /**
11743
+ * Callback as used by {@link google.chat.v1.ChatService|getThreadReadState}.
11744
+ * @param error Error, if any
11745
+ * @param [response] ThreadReadState
11746
+ */
11747
+ type GetThreadReadStateCallback = (error: (Error|null), response?: google.chat.v1.ThreadReadState) => void;
11748
+ }
11544
11749
 
11545
11750
  /** Properties of a Membership. */
11546
11751
  interface IMembership {
@@ -11799,6 +12004,109 @@ export namespace google {
11799
12004
  public static getTypeUrl(typeUrlPrefix?: string): string;
11800
12005
  }
11801
12006
 
12007
+ /** Properties of an UpdateMembershipRequest. */
12008
+ interface IUpdateMembershipRequest {
12009
+
12010
+ /** UpdateMembershipRequest membership */
12011
+ membership?: (google.chat.v1.IMembership|null);
12012
+
12013
+ /** UpdateMembershipRequest updateMask */
12014
+ updateMask?: (google.protobuf.IFieldMask|null);
12015
+ }
12016
+
12017
+ /** Represents an UpdateMembershipRequest. */
12018
+ class UpdateMembershipRequest implements IUpdateMembershipRequest {
12019
+
12020
+ /**
12021
+ * Constructs a new UpdateMembershipRequest.
12022
+ * @param [properties] Properties to set
12023
+ */
12024
+ constructor(properties?: google.chat.v1.IUpdateMembershipRequest);
12025
+
12026
+ /** UpdateMembershipRequest membership. */
12027
+ public membership?: (google.chat.v1.IMembership|null);
12028
+
12029
+ /** UpdateMembershipRequest updateMask. */
12030
+ public updateMask?: (google.protobuf.IFieldMask|null);
12031
+
12032
+ /**
12033
+ * Creates a new UpdateMembershipRequest instance using the specified properties.
12034
+ * @param [properties] Properties to set
12035
+ * @returns UpdateMembershipRequest instance
12036
+ */
12037
+ public static create(properties?: google.chat.v1.IUpdateMembershipRequest): google.chat.v1.UpdateMembershipRequest;
12038
+
12039
+ /**
12040
+ * Encodes the specified UpdateMembershipRequest message. Does not implicitly {@link google.chat.v1.UpdateMembershipRequest.verify|verify} messages.
12041
+ * @param message UpdateMembershipRequest message or plain object to encode
12042
+ * @param [writer] Writer to encode to
12043
+ * @returns Writer
12044
+ */
12045
+ public static encode(message: google.chat.v1.IUpdateMembershipRequest, writer?: $protobuf.Writer): $protobuf.Writer;
12046
+
12047
+ /**
12048
+ * Encodes the specified UpdateMembershipRequest message, length delimited. Does not implicitly {@link google.chat.v1.UpdateMembershipRequest.verify|verify} messages.
12049
+ * @param message UpdateMembershipRequest message or plain object to encode
12050
+ * @param [writer] Writer to encode to
12051
+ * @returns Writer
12052
+ */
12053
+ public static encodeDelimited(message: google.chat.v1.IUpdateMembershipRequest, writer?: $protobuf.Writer): $protobuf.Writer;
12054
+
12055
+ /**
12056
+ * Decodes an UpdateMembershipRequest message from the specified reader or buffer.
12057
+ * @param reader Reader or buffer to decode from
12058
+ * @param [length] Message length if known beforehand
12059
+ * @returns UpdateMembershipRequest
12060
+ * @throws {Error} If the payload is not a reader or valid buffer
12061
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12062
+ */
12063
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.UpdateMembershipRequest;
12064
+
12065
+ /**
12066
+ * Decodes an UpdateMembershipRequest message from the specified reader or buffer, length delimited.
12067
+ * @param reader Reader or buffer to decode from
12068
+ * @returns UpdateMembershipRequest
12069
+ * @throws {Error} If the payload is not a reader or valid buffer
12070
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12071
+ */
12072
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.UpdateMembershipRequest;
12073
+
12074
+ /**
12075
+ * Verifies an UpdateMembershipRequest message.
12076
+ * @param message Plain object to verify
12077
+ * @returns `null` if valid, otherwise the reason why it is not
12078
+ */
12079
+ public static verify(message: { [k: string]: any }): (string|null);
12080
+
12081
+ /**
12082
+ * Creates an UpdateMembershipRequest message from a plain object. Also converts values to their respective internal types.
12083
+ * @param object Plain object
12084
+ * @returns UpdateMembershipRequest
12085
+ */
12086
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.UpdateMembershipRequest;
12087
+
12088
+ /**
12089
+ * Creates a plain object from an UpdateMembershipRequest message. Also converts values to other types if specified.
12090
+ * @param message UpdateMembershipRequest
12091
+ * @param [options] Conversion options
12092
+ * @returns Plain object
12093
+ */
12094
+ public static toObject(message: google.chat.v1.UpdateMembershipRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
12095
+
12096
+ /**
12097
+ * Converts this UpdateMembershipRequest to JSON.
12098
+ * @returns JSON object
12099
+ */
12100
+ public toJSON(): { [k: string]: any };
12101
+
12102
+ /**
12103
+ * Gets the default type url for UpdateMembershipRequest
12104
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
12105
+ * @returns The default type url
12106
+ */
12107
+ public static getTypeUrl(typeUrlPrefix?: string): string;
12108
+ }
12109
+
11802
12110
  /** Properties of a ListMembershipsRequest. */
11803
12111
  interface IListMembershipsRequest {
11804
12112
 
@@ -18422,6 +18730,309 @@ export namespace google {
18422
18730
  HISTORY_ON = 2
18423
18731
  }
18424
18732
 
18733
+ /** Properties of a SpaceReadState. */
18734
+ interface ISpaceReadState {
18735
+
18736
+ /** SpaceReadState name */
18737
+ name?: (string|null);
18738
+
18739
+ /** SpaceReadState lastReadTime */
18740
+ lastReadTime?: (google.protobuf.ITimestamp|null);
18741
+ }
18742
+
18743
+ /** Represents a SpaceReadState. */
18744
+ class SpaceReadState implements ISpaceReadState {
18745
+
18746
+ /**
18747
+ * Constructs a new SpaceReadState.
18748
+ * @param [properties] Properties to set
18749
+ */
18750
+ constructor(properties?: google.chat.v1.ISpaceReadState);
18751
+
18752
+ /** SpaceReadState name. */
18753
+ public name: string;
18754
+
18755
+ /** SpaceReadState lastReadTime. */
18756
+ public lastReadTime?: (google.protobuf.ITimestamp|null);
18757
+
18758
+ /**
18759
+ * Creates a new SpaceReadState instance using the specified properties.
18760
+ * @param [properties] Properties to set
18761
+ * @returns SpaceReadState instance
18762
+ */
18763
+ public static create(properties?: google.chat.v1.ISpaceReadState): google.chat.v1.SpaceReadState;
18764
+
18765
+ /**
18766
+ * Encodes the specified SpaceReadState message. Does not implicitly {@link google.chat.v1.SpaceReadState.verify|verify} messages.
18767
+ * @param message SpaceReadState message or plain object to encode
18768
+ * @param [writer] Writer to encode to
18769
+ * @returns Writer
18770
+ */
18771
+ public static encode(message: google.chat.v1.ISpaceReadState, writer?: $protobuf.Writer): $protobuf.Writer;
18772
+
18773
+ /**
18774
+ * Encodes the specified SpaceReadState message, length delimited. Does not implicitly {@link google.chat.v1.SpaceReadState.verify|verify} messages.
18775
+ * @param message SpaceReadState message or plain object to encode
18776
+ * @param [writer] Writer to encode to
18777
+ * @returns Writer
18778
+ */
18779
+ public static encodeDelimited(message: google.chat.v1.ISpaceReadState, writer?: $protobuf.Writer): $protobuf.Writer;
18780
+
18781
+ /**
18782
+ * Decodes a SpaceReadState message from the specified reader or buffer.
18783
+ * @param reader Reader or buffer to decode from
18784
+ * @param [length] Message length if known beforehand
18785
+ * @returns SpaceReadState
18786
+ * @throws {Error} If the payload is not a reader or valid buffer
18787
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18788
+ */
18789
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.SpaceReadState;
18790
+
18791
+ /**
18792
+ * Decodes a SpaceReadState message from the specified reader or buffer, length delimited.
18793
+ * @param reader Reader or buffer to decode from
18794
+ * @returns SpaceReadState
18795
+ * @throws {Error} If the payload is not a reader or valid buffer
18796
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18797
+ */
18798
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.SpaceReadState;
18799
+
18800
+ /**
18801
+ * Verifies a SpaceReadState message.
18802
+ * @param message Plain object to verify
18803
+ * @returns `null` if valid, otherwise the reason why it is not
18804
+ */
18805
+ public static verify(message: { [k: string]: any }): (string|null);
18806
+
18807
+ /**
18808
+ * Creates a SpaceReadState message from a plain object. Also converts values to their respective internal types.
18809
+ * @param object Plain object
18810
+ * @returns SpaceReadState
18811
+ */
18812
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.SpaceReadState;
18813
+
18814
+ /**
18815
+ * Creates a plain object from a SpaceReadState message. Also converts values to other types if specified.
18816
+ * @param message SpaceReadState
18817
+ * @param [options] Conversion options
18818
+ * @returns Plain object
18819
+ */
18820
+ public static toObject(message: google.chat.v1.SpaceReadState, options?: $protobuf.IConversionOptions): { [k: string]: any };
18821
+
18822
+ /**
18823
+ * Converts this SpaceReadState to JSON.
18824
+ * @returns JSON object
18825
+ */
18826
+ public toJSON(): { [k: string]: any };
18827
+
18828
+ /**
18829
+ * Gets the default type url for SpaceReadState
18830
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
18831
+ * @returns The default type url
18832
+ */
18833
+ public static getTypeUrl(typeUrlPrefix?: string): string;
18834
+ }
18835
+
18836
+ /** Properties of a GetSpaceReadStateRequest. */
18837
+ interface IGetSpaceReadStateRequest {
18838
+
18839
+ /** GetSpaceReadStateRequest name */
18840
+ name?: (string|null);
18841
+ }
18842
+
18843
+ /** Represents a GetSpaceReadStateRequest. */
18844
+ class GetSpaceReadStateRequest implements IGetSpaceReadStateRequest {
18845
+
18846
+ /**
18847
+ * Constructs a new GetSpaceReadStateRequest.
18848
+ * @param [properties] Properties to set
18849
+ */
18850
+ constructor(properties?: google.chat.v1.IGetSpaceReadStateRequest);
18851
+
18852
+ /** GetSpaceReadStateRequest name. */
18853
+ public name: string;
18854
+
18855
+ /**
18856
+ * Creates a new GetSpaceReadStateRequest instance using the specified properties.
18857
+ * @param [properties] Properties to set
18858
+ * @returns GetSpaceReadStateRequest instance
18859
+ */
18860
+ public static create(properties?: google.chat.v1.IGetSpaceReadStateRequest): google.chat.v1.GetSpaceReadStateRequest;
18861
+
18862
+ /**
18863
+ * Encodes the specified GetSpaceReadStateRequest message. Does not implicitly {@link google.chat.v1.GetSpaceReadStateRequest.verify|verify} messages.
18864
+ * @param message GetSpaceReadStateRequest message or plain object to encode
18865
+ * @param [writer] Writer to encode to
18866
+ * @returns Writer
18867
+ */
18868
+ public static encode(message: google.chat.v1.IGetSpaceReadStateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
18869
+
18870
+ /**
18871
+ * Encodes the specified GetSpaceReadStateRequest message, length delimited. Does not implicitly {@link google.chat.v1.GetSpaceReadStateRequest.verify|verify} messages.
18872
+ * @param message GetSpaceReadStateRequest message or plain object to encode
18873
+ * @param [writer] Writer to encode to
18874
+ * @returns Writer
18875
+ */
18876
+ public static encodeDelimited(message: google.chat.v1.IGetSpaceReadStateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
18877
+
18878
+ /**
18879
+ * Decodes a GetSpaceReadStateRequest message from the specified reader or buffer.
18880
+ * @param reader Reader or buffer to decode from
18881
+ * @param [length] Message length if known beforehand
18882
+ * @returns GetSpaceReadStateRequest
18883
+ * @throws {Error} If the payload is not a reader or valid buffer
18884
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18885
+ */
18886
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.GetSpaceReadStateRequest;
18887
+
18888
+ /**
18889
+ * Decodes a GetSpaceReadStateRequest message from the specified reader or buffer, length delimited.
18890
+ * @param reader Reader or buffer to decode from
18891
+ * @returns GetSpaceReadStateRequest
18892
+ * @throws {Error} If the payload is not a reader or valid buffer
18893
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18894
+ */
18895
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.GetSpaceReadStateRequest;
18896
+
18897
+ /**
18898
+ * Verifies a GetSpaceReadStateRequest message.
18899
+ * @param message Plain object to verify
18900
+ * @returns `null` if valid, otherwise the reason why it is not
18901
+ */
18902
+ public static verify(message: { [k: string]: any }): (string|null);
18903
+
18904
+ /**
18905
+ * Creates a GetSpaceReadStateRequest message from a plain object. Also converts values to their respective internal types.
18906
+ * @param object Plain object
18907
+ * @returns GetSpaceReadStateRequest
18908
+ */
18909
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.GetSpaceReadStateRequest;
18910
+
18911
+ /**
18912
+ * Creates a plain object from a GetSpaceReadStateRequest message. Also converts values to other types if specified.
18913
+ * @param message GetSpaceReadStateRequest
18914
+ * @param [options] Conversion options
18915
+ * @returns Plain object
18916
+ */
18917
+ public static toObject(message: google.chat.v1.GetSpaceReadStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
18918
+
18919
+ /**
18920
+ * Converts this GetSpaceReadStateRequest to JSON.
18921
+ * @returns JSON object
18922
+ */
18923
+ public toJSON(): { [k: string]: any };
18924
+
18925
+ /**
18926
+ * Gets the default type url for GetSpaceReadStateRequest
18927
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
18928
+ * @returns The default type url
18929
+ */
18930
+ public static getTypeUrl(typeUrlPrefix?: string): string;
18931
+ }
18932
+
18933
+ /** Properties of an UpdateSpaceReadStateRequest. */
18934
+ interface IUpdateSpaceReadStateRequest {
18935
+
18936
+ /** UpdateSpaceReadStateRequest spaceReadState */
18937
+ spaceReadState?: (google.chat.v1.ISpaceReadState|null);
18938
+
18939
+ /** UpdateSpaceReadStateRequest updateMask */
18940
+ updateMask?: (google.protobuf.IFieldMask|null);
18941
+ }
18942
+
18943
+ /** Represents an UpdateSpaceReadStateRequest. */
18944
+ class UpdateSpaceReadStateRequest implements IUpdateSpaceReadStateRequest {
18945
+
18946
+ /**
18947
+ * Constructs a new UpdateSpaceReadStateRequest.
18948
+ * @param [properties] Properties to set
18949
+ */
18950
+ constructor(properties?: google.chat.v1.IUpdateSpaceReadStateRequest);
18951
+
18952
+ /** UpdateSpaceReadStateRequest spaceReadState. */
18953
+ public spaceReadState?: (google.chat.v1.ISpaceReadState|null);
18954
+
18955
+ /** UpdateSpaceReadStateRequest updateMask. */
18956
+ public updateMask?: (google.protobuf.IFieldMask|null);
18957
+
18958
+ /**
18959
+ * Creates a new UpdateSpaceReadStateRequest instance using the specified properties.
18960
+ * @param [properties] Properties to set
18961
+ * @returns UpdateSpaceReadStateRequest instance
18962
+ */
18963
+ public static create(properties?: google.chat.v1.IUpdateSpaceReadStateRequest): google.chat.v1.UpdateSpaceReadStateRequest;
18964
+
18965
+ /**
18966
+ * Encodes the specified UpdateSpaceReadStateRequest message. Does not implicitly {@link google.chat.v1.UpdateSpaceReadStateRequest.verify|verify} messages.
18967
+ * @param message UpdateSpaceReadStateRequest message or plain object to encode
18968
+ * @param [writer] Writer to encode to
18969
+ * @returns Writer
18970
+ */
18971
+ public static encode(message: google.chat.v1.IUpdateSpaceReadStateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
18972
+
18973
+ /**
18974
+ * Encodes the specified UpdateSpaceReadStateRequest message, length delimited. Does not implicitly {@link google.chat.v1.UpdateSpaceReadStateRequest.verify|verify} messages.
18975
+ * @param message UpdateSpaceReadStateRequest message or plain object to encode
18976
+ * @param [writer] Writer to encode to
18977
+ * @returns Writer
18978
+ */
18979
+ public static encodeDelimited(message: google.chat.v1.IUpdateSpaceReadStateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
18980
+
18981
+ /**
18982
+ * Decodes an UpdateSpaceReadStateRequest message from the specified reader or buffer.
18983
+ * @param reader Reader or buffer to decode from
18984
+ * @param [length] Message length if known beforehand
18985
+ * @returns UpdateSpaceReadStateRequest
18986
+ * @throws {Error} If the payload is not a reader or valid buffer
18987
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18988
+ */
18989
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.UpdateSpaceReadStateRequest;
18990
+
18991
+ /**
18992
+ * Decodes an UpdateSpaceReadStateRequest message from the specified reader or buffer, length delimited.
18993
+ * @param reader Reader or buffer to decode from
18994
+ * @returns UpdateSpaceReadStateRequest
18995
+ * @throws {Error} If the payload is not a reader or valid buffer
18996
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18997
+ */
18998
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.UpdateSpaceReadStateRequest;
18999
+
19000
+ /**
19001
+ * Verifies an UpdateSpaceReadStateRequest message.
19002
+ * @param message Plain object to verify
19003
+ * @returns `null` if valid, otherwise the reason why it is not
19004
+ */
19005
+ public static verify(message: { [k: string]: any }): (string|null);
19006
+
19007
+ /**
19008
+ * Creates an UpdateSpaceReadStateRequest message from a plain object. Also converts values to their respective internal types.
19009
+ * @param object Plain object
19010
+ * @returns UpdateSpaceReadStateRequest
19011
+ */
19012
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.UpdateSpaceReadStateRequest;
19013
+
19014
+ /**
19015
+ * Creates a plain object from an UpdateSpaceReadStateRequest message. Also converts values to other types if specified.
19016
+ * @param message UpdateSpaceReadStateRequest
19017
+ * @param [options] Conversion options
19018
+ * @returns Plain object
19019
+ */
19020
+ public static toObject(message: google.chat.v1.UpdateSpaceReadStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
19021
+
19022
+ /**
19023
+ * Converts this UpdateSpaceReadStateRequest to JSON.
19024
+ * @returns JSON object
19025
+ */
19026
+ public toJSON(): { [k: string]: any };
19027
+
19028
+ /**
19029
+ * Gets the default type url for UpdateSpaceReadStateRequest
19030
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
19031
+ * @returns The default type url
19032
+ */
19033
+ public static getTypeUrl(typeUrlPrefix?: string): string;
19034
+ }
19035
+
18425
19036
  /** Properties of a SetUpSpaceRequest. */
18426
19037
  interface ISetUpSpaceRequest {
18427
19038
 
@@ -18530,6 +19141,206 @@ export namespace google {
18530
19141
  */
18531
19142
  public static getTypeUrl(typeUrlPrefix?: string): string;
18532
19143
  }
19144
+
19145
+ /** Properties of a ThreadReadState. */
19146
+ interface IThreadReadState {
19147
+
19148
+ /** ThreadReadState name */
19149
+ name?: (string|null);
19150
+
19151
+ /** ThreadReadState lastReadTime */
19152
+ lastReadTime?: (google.protobuf.ITimestamp|null);
19153
+ }
19154
+
19155
+ /** Represents a ThreadReadState. */
19156
+ class ThreadReadState implements IThreadReadState {
19157
+
19158
+ /**
19159
+ * Constructs a new ThreadReadState.
19160
+ * @param [properties] Properties to set
19161
+ */
19162
+ constructor(properties?: google.chat.v1.IThreadReadState);
19163
+
19164
+ /** ThreadReadState name. */
19165
+ public name: string;
19166
+
19167
+ /** ThreadReadState lastReadTime. */
19168
+ public lastReadTime?: (google.protobuf.ITimestamp|null);
19169
+
19170
+ /**
19171
+ * Creates a new ThreadReadState instance using the specified properties.
19172
+ * @param [properties] Properties to set
19173
+ * @returns ThreadReadState instance
19174
+ */
19175
+ public static create(properties?: google.chat.v1.IThreadReadState): google.chat.v1.ThreadReadState;
19176
+
19177
+ /**
19178
+ * Encodes the specified ThreadReadState message. Does not implicitly {@link google.chat.v1.ThreadReadState.verify|verify} messages.
19179
+ * @param message ThreadReadState message or plain object to encode
19180
+ * @param [writer] Writer to encode to
19181
+ * @returns Writer
19182
+ */
19183
+ public static encode(message: google.chat.v1.IThreadReadState, writer?: $protobuf.Writer): $protobuf.Writer;
19184
+
19185
+ /**
19186
+ * Encodes the specified ThreadReadState message, length delimited. Does not implicitly {@link google.chat.v1.ThreadReadState.verify|verify} messages.
19187
+ * @param message ThreadReadState message or plain object to encode
19188
+ * @param [writer] Writer to encode to
19189
+ * @returns Writer
19190
+ */
19191
+ public static encodeDelimited(message: google.chat.v1.IThreadReadState, writer?: $protobuf.Writer): $protobuf.Writer;
19192
+
19193
+ /**
19194
+ * Decodes a ThreadReadState message from the specified reader or buffer.
19195
+ * @param reader Reader or buffer to decode from
19196
+ * @param [length] Message length if known beforehand
19197
+ * @returns ThreadReadState
19198
+ * @throws {Error} If the payload is not a reader or valid buffer
19199
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19200
+ */
19201
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.ThreadReadState;
19202
+
19203
+ /**
19204
+ * Decodes a ThreadReadState message from the specified reader or buffer, length delimited.
19205
+ * @param reader Reader or buffer to decode from
19206
+ * @returns ThreadReadState
19207
+ * @throws {Error} If the payload is not a reader or valid buffer
19208
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19209
+ */
19210
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.ThreadReadState;
19211
+
19212
+ /**
19213
+ * Verifies a ThreadReadState message.
19214
+ * @param message Plain object to verify
19215
+ * @returns `null` if valid, otherwise the reason why it is not
19216
+ */
19217
+ public static verify(message: { [k: string]: any }): (string|null);
19218
+
19219
+ /**
19220
+ * Creates a ThreadReadState message from a plain object. Also converts values to their respective internal types.
19221
+ * @param object Plain object
19222
+ * @returns ThreadReadState
19223
+ */
19224
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.ThreadReadState;
19225
+
19226
+ /**
19227
+ * Creates a plain object from a ThreadReadState message. Also converts values to other types if specified.
19228
+ * @param message ThreadReadState
19229
+ * @param [options] Conversion options
19230
+ * @returns Plain object
19231
+ */
19232
+ public static toObject(message: google.chat.v1.ThreadReadState, options?: $protobuf.IConversionOptions): { [k: string]: any };
19233
+
19234
+ /**
19235
+ * Converts this ThreadReadState to JSON.
19236
+ * @returns JSON object
19237
+ */
19238
+ public toJSON(): { [k: string]: any };
19239
+
19240
+ /**
19241
+ * Gets the default type url for ThreadReadState
19242
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
19243
+ * @returns The default type url
19244
+ */
19245
+ public static getTypeUrl(typeUrlPrefix?: string): string;
19246
+ }
19247
+
19248
+ /** Properties of a GetThreadReadStateRequest. */
19249
+ interface IGetThreadReadStateRequest {
19250
+
19251
+ /** GetThreadReadStateRequest name */
19252
+ name?: (string|null);
19253
+ }
19254
+
19255
+ /** Represents a GetThreadReadStateRequest. */
19256
+ class GetThreadReadStateRequest implements IGetThreadReadStateRequest {
19257
+
19258
+ /**
19259
+ * Constructs a new GetThreadReadStateRequest.
19260
+ * @param [properties] Properties to set
19261
+ */
19262
+ constructor(properties?: google.chat.v1.IGetThreadReadStateRequest);
19263
+
19264
+ /** GetThreadReadStateRequest name. */
19265
+ public name: string;
19266
+
19267
+ /**
19268
+ * Creates a new GetThreadReadStateRequest instance using the specified properties.
19269
+ * @param [properties] Properties to set
19270
+ * @returns GetThreadReadStateRequest instance
19271
+ */
19272
+ public static create(properties?: google.chat.v1.IGetThreadReadStateRequest): google.chat.v1.GetThreadReadStateRequest;
19273
+
19274
+ /**
19275
+ * Encodes the specified GetThreadReadStateRequest message. Does not implicitly {@link google.chat.v1.GetThreadReadStateRequest.verify|verify} messages.
19276
+ * @param message GetThreadReadStateRequest message or plain object to encode
19277
+ * @param [writer] Writer to encode to
19278
+ * @returns Writer
19279
+ */
19280
+ public static encode(message: google.chat.v1.IGetThreadReadStateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
19281
+
19282
+ /**
19283
+ * Encodes the specified GetThreadReadStateRequest message, length delimited. Does not implicitly {@link google.chat.v1.GetThreadReadStateRequest.verify|verify} messages.
19284
+ * @param message GetThreadReadStateRequest message or plain object to encode
19285
+ * @param [writer] Writer to encode to
19286
+ * @returns Writer
19287
+ */
19288
+ public static encodeDelimited(message: google.chat.v1.IGetThreadReadStateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
19289
+
19290
+ /**
19291
+ * Decodes a GetThreadReadStateRequest message from the specified reader or buffer.
19292
+ * @param reader Reader or buffer to decode from
19293
+ * @param [length] Message length if known beforehand
19294
+ * @returns GetThreadReadStateRequest
19295
+ * @throws {Error} If the payload is not a reader or valid buffer
19296
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19297
+ */
19298
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.GetThreadReadStateRequest;
19299
+
19300
+ /**
19301
+ * Decodes a GetThreadReadStateRequest message from the specified reader or buffer, length delimited.
19302
+ * @param reader Reader or buffer to decode from
19303
+ * @returns GetThreadReadStateRequest
19304
+ * @throws {Error} If the payload is not a reader or valid buffer
19305
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19306
+ */
19307
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.GetThreadReadStateRequest;
19308
+
19309
+ /**
19310
+ * Verifies a GetThreadReadStateRequest message.
19311
+ * @param message Plain object to verify
19312
+ * @returns `null` if valid, otherwise the reason why it is not
19313
+ */
19314
+ public static verify(message: { [k: string]: any }): (string|null);
19315
+
19316
+ /**
19317
+ * Creates a GetThreadReadStateRequest message from a plain object. Also converts values to their respective internal types.
19318
+ * @param object Plain object
19319
+ * @returns GetThreadReadStateRequest
19320
+ */
19321
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.GetThreadReadStateRequest;
19322
+
19323
+ /**
19324
+ * Creates a plain object from a GetThreadReadStateRequest message. Also converts values to other types if specified.
19325
+ * @param message GetThreadReadStateRequest
19326
+ * @param [options] Conversion options
19327
+ * @returns Plain object
19328
+ */
19329
+ public static toObject(message: google.chat.v1.GetThreadReadStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
19330
+
19331
+ /**
19332
+ * Converts this GetThreadReadStateRequest to JSON.
19333
+ * @returns JSON object
19334
+ */
19335
+ public toJSON(): { [k: string]: any };
19336
+
19337
+ /**
19338
+ * Gets the default type url for GetThreadReadStateRequest
19339
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
19340
+ * @returns The default type url
19341
+ */
19342
+ public static getTypeUrl(typeUrlPrefix?: string): string;
19343
+ }
18533
19344
  }
18534
19345
  }
18535
19346