@google-apps/chat 0.1.0 → 0.3.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.
Files changed (28) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +1 -0
  3. package/build/protos/google/apps/card/v1/card.proto +242 -160
  4. package/build/protos/google/chat/v1/action_status.proto +4 -4
  5. package/build/protos/google/chat/v1/annotation.proto +46 -4
  6. package/build/protos/google/chat/v1/attachment.proto +12 -3
  7. package/build/protos/google/chat/v1/chat_service.proto +95 -83
  8. package/build/protos/google/chat/v1/contextual_addon.proto +4 -4
  9. package/build/protos/google/chat/v1/deletion_metadata.proto +3 -3
  10. package/build/protos/google/chat/v1/group.proto +3 -3
  11. package/build/protos/google/chat/v1/history_state.proto +3 -3
  12. package/build/protos/google/chat/v1/matched_url.proto +3 -3
  13. package/build/protos/google/chat/v1/membership.proto +36 -14
  14. package/build/protos/google/chat/v1/message.proto +88 -57
  15. package/build/protos/google/chat/v1/reaction.proto +7 -5
  16. package/build/protos/google/chat/v1/slash_command.proto +6 -5
  17. package/build/protos/google/chat/v1/space.proto +31 -20
  18. package/build/protos/google/chat/v1/space_setup.proto +4 -3
  19. package/build/protos/google/chat/v1/user.proto +6 -5
  20. package/build/protos/google/chat/v1/widgets.proto +7 -7
  21. package/build/protos/protos.d.ts +724 -142
  22. package/build/protos/protos.js +2007 -576
  23. package/build/protos/protos.json +179 -47
  24. package/build/src/v1/chat_service_client.d.ts +174 -135
  25. package/build/src/v1/chat_service_client.js +58 -31
  26. package/build/src/v1/chat_service_client.js.map +1 -1
  27. package/build/src/v1/chat_service_client_config.json +5 -0
  28. package/package.json +1 -1
@@ -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
 
@@ -9684,6 +9805,9 @@ export namespace google {
9684
9805
 
9685
9806
  /** Annotation slashCommand */
9686
9807
  slashCommand?: (google.chat.v1.ISlashCommandMetadata|null);
9808
+
9809
+ /** Annotation richLinkMetadata */
9810
+ richLinkMetadata?: (google.chat.v1.IRichLinkMetadata|null);
9687
9811
  }
9688
9812
 
9689
9813
  /** Represents an Annotation. */
@@ -9710,11 +9834,14 @@ export namespace google {
9710
9834
  /** Annotation slashCommand. */
9711
9835
  public slashCommand?: (google.chat.v1.ISlashCommandMetadata|null);
9712
9836
 
9837
+ /** Annotation richLinkMetadata. */
9838
+ public richLinkMetadata?: (google.chat.v1.IRichLinkMetadata|null);
9839
+
9713
9840
  /** Annotation _startIndex. */
9714
9841
  public _startIndex?: "startIndex";
9715
9842
 
9716
9843
  /** Annotation metadata. */
9717
- public metadata?: ("userMention"|"slashCommand");
9844
+ public metadata?: ("userMention"|"slashCommand"|"richLinkMetadata");
9718
9845
 
9719
9846
  /**
9720
9847
  * Creates a new Annotation instance using the specified properties.
@@ -10038,144 +10165,238 @@ export namespace google {
10038
10165
  }
10039
10166
  }
10040
10167
 
10041
- /** AnnotationType enum. */
10042
- enum AnnotationType {
10043
- ANNOTATION_TYPE_UNSPECIFIED = 0,
10044
- USER_MENTION = 1,
10045
- SLASH_COMMAND = 2
10046
- }
10047
-
10048
- /** Properties of a User. */
10049
- interface IUser {
10050
-
10051
- /** User name */
10052
- name?: (string|null);
10053
-
10054
- /** User displayName */
10055
- displayName?: (string|null);
10168
+ /** Properties of a RichLinkMetadata. */
10169
+ interface IRichLinkMetadata {
10056
10170
 
10057
- /** User domainId */
10058
- domainId?: (string|null);
10171
+ /** RichLinkMetadata uri */
10172
+ uri?: (string|null);
10059
10173
 
10060
- /** User type */
10061
- type?: (google.chat.v1.User.Type|keyof typeof google.chat.v1.User.Type|null);
10174
+ /** RichLinkMetadata richLinkType */
10175
+ richLinkType?: (google.chat.v1.RichLinkMetadata.RichLinkType|keyof typeof google.chat.v1.RichLinkMetadata.RichLinkType|null);
10062
10176
 
10063
- /** User isAnonymous */
10064
- isAnonymous?: (boolean|null);
10177
+ /** RichLinkMetadata driveLinkData */
10178
+ driveLinkData?: (google.chat.v1.IDriveLinkData|null);
10065
10179
  }
10066
10180
 
10067
- /** Represents a User. */
10068
- class User implements IUser {
10181
+ /** Represents a RichLinkMetadata. */
10182
+ class RichLinkMetadata implements IRichLinkMetadata {
10069
10183
 
10070
10184
  /**
10071
- * Constructs a new User.
10185
+ * Constructs a new RichLinkMetadata.
10072
10186
  * @param [properties] Properties to set
10073
10187
  */
10074
- constructor(properties?: google.chat.v1.IUser);
10188
+ constructor(properties?: google.chat.v1.IRichLinkMetadata);
10075
10189
 
10076
- /** User name. */
10077
- public name: string;
10190
+ /** RichLinkMetadata uri. */
10191
+ public uri: string;
10078
10192
 
10079
- /** User displayName. */
10080
- public displayName: string;
10193
+ /** RichLinkMetadata richLinkType. */
10194
+ public richLinkType: (google.chat.v1.RichLinkMetadata.RichLinkType|keyof typeof google.chat.v1.RichLinkMetadata.RichLinkType);
10081
10195
 
10082
- /** User domainId. */
10083
- public domainId: string;
10196
+ /** RichLinkMetadata driveLinkData. */
10197
+ public driveLinkData?: (google.chat.v1.IDriveLinkData|null);
10084
10198
 
10085
- /** User type. */
10086
- public type: (google.chat.v1.User.Type|keyof typeof google.chat.v1.User.Type);
10087
-
10088
- /** User isAnonymous. */
10089
- public isAnonymous: boolean;
10199
+ /** RichLinkMetadata data. */
10200
+ public data?: "driveLinkData";
10090
10201
 
10091
10202
  /**
10092
- * Creates a new User instance using the specified properties.
10203
+ * Creates a new RichLinkMetadata instance using the specified properties.
10093
10204
  * @param [properties] Properties to set
10094
- * @returns User instance
10205
+ * @returns RichLinkMetadata instance
10095
10206
  */
10096
- public static create(properties?: google.chat.v1.IUser): google.chat.v1.User;
10207
+ public static create(properties?: google.chat.v1.IRichLinkMetadata): google.chat.v1.RichLinkMetadata;
10097
10208
 
10098
10209
  /**
10099
- * Encodes the specified User message. Does not implicitly {@link google.chat.v1.User.verify|verify} messages.
10100
- * @param message User message or plain object to encode
10210
+ * Encodes the specified RichLinkMetadata message. Does not implicitly {@link google.chat.v1.RichLinkMetadata.verify|verify} messages.
10211
+ * @param message RichLinkMetadata message or plain object to encode
10101
10212
  * @param [writer] Writer to encode to
10102
10213
  * @returns Writer
10103
10214
  */
10104
- public static encode(message: google.chat.v1.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
10215
+ public static encode(message: google.chat.v1.IRichLinkMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
10105
10216
 
10106
10217
  /**
10107
- * Encodes the specified User message, length delimited. Does not implicitly {@link google.chat.v1.User.verify|verify} messages.
10108
- * @param message User message or plain object to encode
10218
+ * Encodes the specified RichLinkMetadata message, length delimited. Does not implicitly {@link google.chat.v1.RichLinkMetadata.verify|verify} messages.
10219
+ * @param message RichLinkMetadata message or plain object to encode
10109
10220
  * @param [writer] Writer to encode to
10110
10221
  * @returns Writer
10111
10222
  */
10112
- public static encodeDelimited(message: google.chat.v1.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
10223
+ public static encodeDelimited(message: google.chat.v1.IRichLinkMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
10113
10224
 
10114
10225
  /**
10115
- * Decodes a User message from the specified reader or buffer.
10226
+ * Decodes a RichLinkMetadata message from the specified reader or buffer.
10116
10227
  * @param reader Reader or buffer to decode from
10117
10228
  * @param [length] Message length if known beforehand
10118
- * @returns User
10229
+ * @returns RichLinkMetadata
10119
10230
  * @throws {Error} If the payload is not a reader or valid buffer
10120
10231
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
10121
10232
  */
10122
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.User;
10233
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.RichLinkMetadata;
10123
10234
 
10124
10235
  /**
10125
- * Decodes a User message from the specified reader or buffer, length delimited.
10236
+ * Decodes a RichLinkMetadata message from the specified reader or buffer, length delimited.
10126
10237
  * @param reader Reader or buffer to decode from
10127
- * @returns User
10238
+ * @returns RichLinkMetadata
10128
10239
  * @throws {Error} If the payload is not a reader or valid buffer
10129
10240
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
10130
10241
  */
10131
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.User;
10242
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.RichLinkMetadata;
10132
10243
 
10133
10244
  /**
10134
- * Verifies a User message.
10245
+ * Verifies a RichLinkMetadata message.
10135
10246
  * @param message Plain object to verify
10136
10247
  * @returns `null` if valid, otherwise the reason why it is not
10137
10248
  */
10138
10249
  public static verify(message: { [k: string]: any }): (string|null);
10139
10250
 
10140
10251
  /**
10141
- * Creates a User message from a plain object. Also converts values to their respective internal types.
10252
+ * Creates a RichLinkMetadata message from a plain object. Also converts values to their respective internal types.
10142
10253
  * @param object Plain object
10143
- * @returns User
10254
+ * @returns RichLinkMetadata
10144
10255
  */
10145
- public static fromObject(object: { [k: string]: any }): google.chat.v1.User;
10256
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.RichLinkMetadata;
10146
10257
 
10147
10258
  /**
10148
- * Creates a plain object from a User message. Also converts values to other types if specified.
10149
- * @param message User
10259
+ * Creates a plain object from a RichLinkMetadata message. Also converts values to other types if specified.
10260
+ * @param message RichLinkMetadata
10150
10261
  * @param [options] Conversion options
10151
10262
  * @returns Plain object
10152
10263
  */
10153
- public static toObject(message: google.chat.v1.User, options?: $protobuf.IConversionOptions): { [k: string]: any };
10264
+ public static toObject(message: google.chat.v1.RichLinkMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
10154
10265
 
10155
10266
  /**
10156
- * Converts this User to JSON.
10267
+ * Converts this RichLinkMetadata to JSON.
10157
10268
  * @returns JSON object
10158
10269
  */
10159
10270
  public toJSON(): { [k: string]: any };
10160
10271
 
10161
10272
  /**
10162
- * Gets the default type url for User
10273
+ * Gets the default type url for RichLinkMetadata
10163
10274
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10164
10275
  * @returns The default type url
10165
10276
  */
10166
10277
  public static getTypeUrl(typeUrlPrefix?: string): string;
10167
10278
  }
10168
10279
 
10169
- namespace User {
10280
+ namespace RichLinkMetadata {
10170
10281
 
10171
- /** Type enum. */
10172
- enum Type {
10173
- TYPE_UNSPECIFIED = 0,
10174
- HUMAN = 1,
10175
- BOT = 2
10282
+ /** RichLinkType enum. */
10283
+ enum RichLinkType {
10284
+ RICH_LINK_TYPE_UNSPECIFIED = 0,
10285
+ DRIVE_FILE = 1
10176
10286
  }
10177
10287
  }
10178
10288
 
10289
+ /** Properties of a DriveLinkData. */
10290
+ interface IDriveLinkData {
10291
+
10292
+ /** DriveLinkData driveDataRef */
10293
+ driveDataRef?: (google.chat.v1.IDriveDataRef|null);
10294
+
10295
+ /** DriveLinkData mimeType */
10296
+ mimeType?: (string|null);
10297
+ }
10298
+
10299
+ /** Represents a DriveLinkData. */
10300
+ class DriveLinkData implements IDriveLinkData {
10301
+
10302
+ /**
10303
+ * Constructs a new DriveLinkData.
10304
+ * @param [properties] Properties to set
10305
+ */
10306
+ constructor(properties?: google.chat.v1.IDriveLinkData);
10307
+
10308
+ /** DriveLinkData driveDataRef. */
10309
+ public driveDataRef?: (google.chat.v1.IDriveDataRef|null);
10310
+
10311
+ /** DriveLinkData mimeType. */
10312
+ public mimeType: string;
10313
+
10314
+ /**
10315
+ * Creates a new DriveLinkData instance using the specified properties.
10316
+ * @param [properties] Properties to set
10317
+ * @returns DriveLinkData instance
10318
+ */
10319
+ public static create(properties?: google.chat.v1.IDriveLinkData): google.chat.v1.DriveLinkData;
10320
+
10321
+ /**
10322
+ * Encodes the specified DriveLinkData message. Does not implicitly {@link google.chat.v1.DriveLinkData.verify|verify} messages.
10323
+ * @param message DriveLinkData message or plain object to encode
10324
+ * @param [writer] Writer to encode to
10325
+ * @returns Writer
10326
+ */
10327
+ public static encode(message: google.chat.v1.IDriveLinkData, writer?: $protobuf.Writer): $protobuf.Writer;
10328
+
10329
+ /**
10330
+ * Encodes the specified DriveLinkData message, length delimited. Does not implicitly {@link google.chat.v1.DriveLinkData.verify|verify} messages.
10331
+ * @param message DriveLinkData message or plain object to encode
10332
+ * @param [writer] Writer to encode to
10333
+ * @returns Writer
10334
+ */
10335
+ public static encodeDelimited(message: google.chat.v1.IDriveLinkData, writer?: $protobuf.Writer): $protobuf.Writer;
10336
+
10337
+ /**
10338
+ * Decodes a DriveLinkData message from the specified reader or buffer.
10339
+ * @param reader Reader or buffer to decode from
10340
+ * @param [length] Message length if known beforehand
10341
+ * @returns DriveLinkData
10342
+ * @throws {Error} If the payload is not a reader or valid buffer
10343
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10344
+ */
10345
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.DriveLinkData;
10346
+
10347
+ /**
10348
+ * Decodes a DriveLinkData message from the specified reader or buffer, length delimited.
10349
+ * @param reader Reader or buffer to decode from
10350
+ * @returns DriveLinkData
10351
+ * @throws {Error} If the payload is not a reader or valid buffer
10352
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10353
+ */
10354
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.DriveLinkData;
10355
+
10356
+ /**
10357
+ * Verifies a DriveLinkData message.
10358
+ * @param message Plain object to verify
10359
+ * @returns `null` if valid, otherwise the reason why it is not
10360
+ */
10361
+ public static verify(message: { [k: string]: any }): (string|null);
10362
+
10363
+ /**
10364
+ * Creates a DriveLinkData message from a plain object. Also converts values to their respective internal types.
10365
+ * @param object Plain object
10366
+ * @returns DriveLinkData
10367
+ */
10368
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.DriveLinkData;
10369
+
10370
+ /**
10371
+ * Creates a plain object from a DriveLinkData message. Also converts values to other types if specified.
10372
+ * @param message DriveLinkData
10373
+ * @param [options] Conversion options
10374
+ * @returns Plain object
10375
+ */
10376
+ public static toObject(message: google.chat.v1.DriveLinkData, options?: $protobuf.IConversionOptions): { [k: string]: any };
10377
+
10378
+ /**
10379
+ * Converts this DriveLinkData to JSON.
10380
+ * @returns JSON object
10381
+ */
10382
+ public toJSON(): { [k: string]: any };
10383
+
10384
+ /**
10385
+ * Gets the default type url for DriveLinkData
10386
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10387
+ * @returns The default type url
10388
+ */
10389
+ public static getTypeUrl(typeUrlPrefix?: string): string;
10390
+ }
10391
+
10392
+ /** AnnotationType enum. */
10393
+ enum AnnotationType {
10394
+ ANNOTATION_TYPE_UNSPECIFIED = 0,
10395
+ USER_MENTION = 1,
10396
+ SLASH_COMMAND = 2,
10397
+ RICH_LINK = 3
10398
+ }
10399
+
10179
10400
  /** Properties of an Attachment. */
10180
10401
  interface IAttachment {
10181
10402
 
@@ -10825,6 +11046,137 @@ export namespace google {
10825
11046
  public static getTypeUrl(typeUrlPrefix?: string): string;
10826
11047
  }
10827
11048
 
11049
+ /** Properties of a User. */
11050
+ interface IUser {
11051
+
11052
+ /** User name */
11053
+ name?: (string|null);
11054
+
11055
+ /** User displayName */
11056
+ displayName?: (string|null);
11057
+
11058
+ /** User domainId */
11059
+ domainId?: (string|null);
11060
+
11061
+ /** User type */
11062
+ type?: (google.chat.v1.User.Type|keyof typeof google.chat.v1.User.Type|null);
11063
+
11064
+ /** User isAnonymous */
11065
+ isAnonymous?: (boolean|null);
11066
+ }
11067
+
11068
+ /** Represents a User. */
11069
+ class User implements IUser {
11070
+
11071
+ /**
11072
+ * Constructs a new User.
11073
+ * @param [properties] Properties to set
11074
+ */
11075
+ constructor(properties?: google.chat.v1.IUser);
11076
+
11077
+ /** User name. */
11078
+ public name: string;
11079
+
11080
+ /** User displayName. */
11081
+ public displayName: string;
11082
+
11083
+ /** User domainId. */
11084
+ public domainId: string;
11085
+
11086
+ /** User type. */
11087
+ public type: (google.chat.v1.User.Type|keyof typeof google.chat.v1.User.Type);
11088
+
11089
+ /** User isAnonymous. */
11090
+ public isAnonymous: boolean;
11091
+
11092
+ /**
11093
+ * Creates a new User instance using the specified properties.
11094
+ * @param [properties] Properties to set
11095
+ * @returns User instance
11096
+ */
11097
+ public static create(properties?: google.chat.v1.IUser): google.chat.v1.User;
11098
+
11099
+ /**
11100
+ * Encodes the specified User message. Does not implicitly {@link google.chat.v1.User.verify|verify} messages.
11101
+ * @param message User message or plain object to encode
11102
+ * @param [writer] Writer to encode to
11103
+ * @returns Writer
11104
+ */
11105
+ public static encode(message: google.chat.v1.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
11106
+
11107
+ /**
11108
+ * Encodes the specified User message, length delimited. Does not implicitly {@link google.chat.v1.User.verify|verify} messages.
11109
+ * @param message User message or plain object to encode
11110
+ * @param [writer] Writer to encode to
11111
+ * @returns Writer
11112
+ */
11113
+ public static encodeDelimited(message: google.chat.v1.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
11114
+
11115
+ /**
11116
+ * Decodes a User message from the specified reader or buffer.
11117
+ * @param reader Reader or buffer to decode from
11118
+ * @param [length] Message length if known beforehand
11119
+ * @returns User
11120
+ * @throws {Error} If the payload is not a reader or valid buffer
11121
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11122
+ */
11123
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.User;
11124
+
11125
+ /**
11126
+ * Decodes a User message from the specified reader or buffer, length delimited.
11127
+ * @param reader Reader or buffer to decode from
11128
+ * @returns User
11129
+ * @throws {Error} If the payload is not a reader or valid buffer
11130
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11131
+ */
11132
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.User;
11133
+
11134
+ /**
11135
+ * Verifies a User message.
11136
+ * @param message Plain object to verify
11137
+ * @returns `null` if valid, otherwise the reason why it is not
11138
+ */
11139
+ public static verify(message: { [k: string]: any }): (string|null);
11140
+
11141
+ /**
11142
+ * Creates a User message from a plain object. Also converts values to their respective internal types.
11143
+ * @param object Plain object
11144
+ * @returns User
11145
+ */
11146
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.User;
11147
+
11148
+ /**
11149
+ * Creates a plain object from a User message. Also converts values to other types if specified.
11150
+ * @param message User
11151
+ * @param [options] Conversion options
11152
+ * @returns Plain object
11153
+ */
11154
+ public static toObject(message: google.chat.v1.User, options?: $protobuf.IConversionOptions): { [k: string]: any };
11155
+
11156
+ /**
11157
+ * Converts this User to JSON.
11158
+ * @returns JSON object
11159
+ */
11160
+ public toJSON(): { [k: string]: any };
11161
+
11162
+ /**
11163
+ * Gets the default type url for User
11164
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
11165
+ * @returns The default type url
11166
+ */
11167
+ public static getTypeUrl(typeUrlPrefix?: string): string;
11168
+ }
11169
+
11170
+ namespace User {
11171
+
11172
+ /** Type enum. */
11173
+ enum Type {
11174
+ TYPE_UNSPECIFIED = 0,
11175
+ HUMAN = 1,
11176
+ BOT = 2
11177
+ }
11178
+ }
11179
+
10828
11180
  /** Represents a ChatService */
10829
11181
  class ChatService extends $protobuf.rpc.Service {
10830
11182
 
@@ -11097,6 +11449,20 @@ export namespace google {
11097
11449
  */
11098
11450
  public createMembership(request: google.chat.v1.ICreateMembershipRequest): Promise<google.chat.v1.Membership>;
11099
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
+
11100
11466
  /**
11101
11467
  * Calls DeleteMembership.
11102
11468
  * @param request DeleteMembershipRequest message or plain object
@@ -11282,6 +11648,13 @@ export namespace google {
11282
11648
  */
11283
11649
  type CreateMembershipCallback = (error: (Error|null), response?: google.chat.v1.Membership) => void;
11284
11650
 
11651
+ /**
11652
+ * Callback as used by {@link google.chat.v1.ChatService|updateMembership}.
11653
+ * @param error Error, if any
11654
+ * @param [response] Membership
11655
+ */
11656
+ type UpdateMembershipCallback = (error: (Error|null), response?: google.chat.v1.Membership) => void;
11657
+
11285
11658
  /**
11286
11659
  * Callback as used by {@link google.chat.v1.ChatService|deleteMembership}.
11287
11660
  * @param error Error, if any
@@ -11568,6 +11941,109 @@ export namespace google {
11568
11941
  public static getTypeUrl(typeUrlPrefix?: string): string;
11569
11942
  }
11570
11943
 
11944
+ /** Properties of an UpdateMembershipRequest. */
11945
+ interface IUpdateMembershipRequest {
11946
+
11947
+ /** UpdateMembershipRequest membership */
11948
+ membership?: (google.chat.v1.IMembership|null);
11949
+
11950
+ /** UpdateMembershipRequest updateMask */
11951
+ updateMask?: (google.protobuf.IFieldMask|null);
11952
+ }
11953
+
11954
+ /** Represents an UpdateMembershipRequest. */
11955
+ class UpdateMembershipRequest implements IUpdateMembershipRequest {
11956
+
11957
+ /**
11958
+ * Constructs a new UpdateMembershipRequest.
11959
+ * @param [properties] Properties to set
11960
+ */
11961
+ constructor(properties?: google.chat.v1.IUpdateMembershipRequest);
11962
+
11963
+ /** UpdateMembershipRequest membership. */
11964
+ public membership?: (google.chat.v1.IMembership|null);
11965
+
11966
+ /** UpdateMembershipRequest updateMask. */
11967
+ public updateMask?: (google.protobuf.IFieldMask|null);
11968
+
11969
+ /**
11970
+ * Creates a new UpdateMembershipRequest instance using the specified properties.
11971
+ * @param [properties] Properties to set
11972
+ * @returns UpdateMembershipRequest instance
11973
+ */
11974
+ public static create(properties?: google.chat.v1.IUpdateMembershipRequest): google.chat.v1.UpdateMembershipRequest;
11975
+
11976
+ /**
11977
+ * Encodes the specified UpdateMembershipRequest message. Does not implicitly {@link google.chat.v1.UpdateMembershipRequest.verify|verify} messages.
11978
+ * @param message UpdateMembershipRequest message or plain object to encode
11979
+ * @param [writer] Writer to encode to
11980
+ * @returns Writer
11981
+ */
11982
+ public static encode(message: google.chat.v1.IUpdateMembershipRequest, writer?: $protobuf.Writer): $protobuf.Writer;
11983
+
11984
+ /**
11985
+ * Encodes the specified UpdateMembershipRequest message, length delimited. Does not implicitly {@link google.chat.v1.UpdateMembershipRequest.verify|verify} messages.
11986
+ * @param message UpdateMembershipRequest message or plain object to encode
11987
+ * @param [writer] Writer to encode to
11988
+ * @returns Writer
11989
+ */
11990
+ public static encodeDelimited(message: google.chat.v1.IUpdateMembershipRequest, writer?: $protobuf.Writer): $protobuf.Writer;
11991
+
11992
+ /**
11993
+ * Decodes an UpdateMembershipRequest message from the specified reader or buffer.
11994
+ * @param reader Reader or buffer to decode from
11995
+ * @param [length] Message length if known beforehand
11996
+ * @returns UpdateMembershipRequest
11997
+ * @throws {Error} If the payload is not a reader or valid buffer
11998
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11999
+ */
12000
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.UpdateMembershipRequest;
12001
+
12002
+ /**
12003
+ * Decodes an UpdateMembershipRequest message from the specified reader or buffer, length delimited.
12004
+ * @param reader Reader or buffer to decode from
12005
+ * @returns UpdateMembershipRequest
12006
+ * @throws {Error} If the payload is not a reader or valid buffer
12007
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12008
+ */
12009
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.UpdateMembershipRequest;
12010
+
12011
+ /**
12012
+ * Verifies an UpdateMembershipRequest message.
12013
+ * @param message Plain object to verify
12014
+ * @returns `null` if valid, otherwise the reason why it is not
12015
+ */
12016
+ public static verify(message: { [k: string]: any }): (string|null);
12017
+
12018
+ /**
12019
+ * Creates an UpdateMembershipRequest message from a plain object. Also converts values to their respective internal types.
12020
+ * @param object Plain object
12021
+ * @returns UpdateMembershipRequest
12022
+ */
12023
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.UpdateMembershipRequest;
12024
+
12025
+ /**
12026
+ * Creates a plain object from an UpdateMembershipRequest message. Also converts values to other types if specified.
12027
+ * @param message UpdateMembershipRequest
12028
+ * @param [options] Conversion options
12029
+ * @returns Plain object
12030
+ */
12031
+ public static toObject(message: google.chat.v1.UpdateMembershipRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
12032
+
12033
+ /**
12034
+ * Converts this UpdateMembershipRequest to JSON.
12035
+ * @returns JSON object
12036
+ */
12037
+ public toJSON(): { [k: string]: any };
12038
+
12039
+ /**
12040
+ * Gets the default type url for UpdateMembershipRequest
12041
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
12042
+ * @returns The default type url
12043
+ */
12044
+ public static getTypeUrl(typeUrlPrefix?: string): string;
12045
+ }
12046
+
11571
12047
  /** Properties of a ListMembershipsRequest. */
11572
12048
  interface IListMembershipsRequest {
11573
12049
 
@@ -12166,6 +12642,9 @@ export namespace google {
12166
12642
 
12167
12643
  /** Message attachedGifs */
12168
12644
  attachedGifs?: (google.chat.v1.IAttachedGif[]|null);
12645
+
12646
+ /** Message accessoryWidgets */
12647
+ accessoryWidgets?: (google.chat.v1.IAccessoryWidget[]|null);
12169
12648
  }
12170
12649
 
12171
12650
  /** Represents a Message. */
@@ -12252,6 +12731,9 @@ export namespace google {
12252
12731
  /** Message attachedGifs. */
12253
12732
  public attachedGifs: google.chat.v1.IAttachedGif[];
12254
12733
 
12734
+ /** Message accessoryWidgets. */
12735
+ public accessoryWidgets: google.chat.v1.IAccessoryWidget[];
12736
+
12255
12737
  /**
12256
12738
  * Creates a new Message instance using the specified properties.
12257
12739
  * @param [properties] Properties to set
@@ -12965,6 +13447,106 @@ export namespace google {
12965
13447
  }
12966
13448
  }
12967
13449
 
13450
+ /** Properties of an AccessoryWidget. */
13451
+ interface IAccessoryWidget {
13452
+
13453
+ /** AccessoryWidget buttonList */
13454
+ buttonList?: (google.apps.card.v1.IButtonList|null);
13455
+ }
13456
+
13457
+ /** Represents an AccessoryWidget. */
13458
+ class AccessoryWidget implements IAccessoryWidget {
13459
+
13460
+ /**
13461
+ * Constructs a new AccessoryWidget.
13462
+ * @param [properties] Properties to set
13463
+ */
13464
+ constructor(properties?: google.chat.v1.IAccessoryWidget);
13465
+
13466
+ /** AccessoryWidget buttonList. */
13467
+ public buttonList?: (google.apps.card.v1.IButtonList|null);
13468
+
13469
+ /** AccessoryWidget action. */
13470
+ public action?: "buttonList";
13471
+
13472
+ /**
13473
+ * Creates a new AccessoryWidget instance using the specified properties.
13474
+ * @param [properties] Properties to set
13475
+ * @returns AccessoryWidget instance
13476
+ */
13477
+ public static create(properties?: google.chat.v1.IAccessoryWidget): google.chat.v1.AccessoryWidget;
13478
+
13479
+ /**
13480
+ * Encodes the specified AccessoryWidget message. Does not implicitly {@link google.chat.v1.AccessoryWidget.verify|verify} messages.
13481
+ * @param message AccessoryWidget message or plain object to encode
13482
+ * @param [writer] Writer to encode to
13483
+ * @returns Writer
13484
+ */
13485
+ public static encode(message: google.chat.v1.IAccessoryWidget, writer?: $protobuf.Writer): $protobuf.Writer;
13486
+
13487
+ /**
13488
+ * Encodes the specified AccessoryWidget message, length delimited. Does not implicitly {@link google.chat.v1.AccessoryWidget.verify|verify} messages.
13489
+ * @param message AccessoryWidget message or plain object to encode
13490
+ * @param [writer] Writer to encode to
13491
+ * @returns Writer
13492
+ */
13493
+ public static encodeDelimited(message: google.chat.v1.IAccessoryWidget, writer?: $protobuf.Writer): $protobuf.Writer;
13494
+
13495
+ /**
13496
+ * Decodes an AccessoryWidget message from the specified reader or buffer.
13497
+ * @param reader Reader or buffer to decode from
13498
+ * @param [length] Message length if known beforehand
13499
+ * @returns AccessoryWidget
13500
+ * @throws {Error} If the payload is not a reader or valid buffer
13501
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13502
+ */
13503
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.AccessoryWidget;
13504
+
13505
+ /**
13506
+ * Decodes an AccessoryWidget message from the specified reader or buffer, length delimited.
13507
+ * @param reader Reader or buffer to decode from
13508
+ * @returns AccessoryWidget
13509
+ * @throws {Error} If the payload is not a reader or valid buffer
13510
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13511
+ */
13512
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.AccessoryWidget;
13513
+
13514
+ /**
13515
+ * Verifies an AccessoryWidget message.
13516
+ * @param message Plain object to verify
13517
+ * @returns `null` if valid, otherwise the reason why it is not
13518
+ */
13519
+ public static verify(message: { [k: string]: any }): (string|null);
13520
+
13521
+ /**
13522
+ * Creates an AccessoryWidget message from a plain object. Also converts values to their respective internal types.
13523
+ * @param object Plain object
13524
+ * @returns AccessoryWidget
13525
+ */
13526
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.AccessoryWidget;
13527
+
13528
+ /**
13529
+ * Creates a plain object from an AccessoryWidget message. Also converts values to other types if specified.
13530
+ * @param message AccessoryWidget
13531
+ * @param [options] Conversion options
13532
+ * @returns Plain object
13533
+ */
13534
+ public static toObject(message: google.chat.v1.AccessoryWidget, options?: $protobuf.IConversionOptions): { [k: string]: any };
13535
+
13536
+ /**
13537
+ * Converts this AccessoryWidget to JSON.
13538
+ * @returns JSON object
13539
+ */
13540
+ public toJSON(): { [k: string]: any };
13541
+
13542
+ /**
13543
+ * Gets the default type url for AccessoryWidget
13544
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
13545
+ * @returns The default type url
13546
+ */
13547
+ public static getTypeUrl(typeUrlPrefix?: string): string;
13548
+ }
13549
+
12968
13550
  /** Properties of a GetMessageRequest. */
12969
13551
  interface IGetMessageRequest {
12970
13552