@google-apps/chat 0.1.0 → 0.2.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.
@@ -9684,6 +9684,9 @@ export namespace google {
9684
9684
 
9685
9685
  /** Annotation slashCommand */
9686
9686
  slashCommand?: (google.chat.v1.ISlashCommandMetadata|null);
9687
+
9688
+ /** Annotation richLinkMetadata */
9689
+ richLinkMetadata?: (google.chat.v1.IRichLinkMetadata|null);
9687
9690
  }
9688
9691
 
9689
9692
  /** Represents an Annotation. */
@@ -9710,11 +9713,14 @@ export namespace google {
9710
9713
  /** Annotation slashCommand. */
9711
9714
  public slashCommand?: (google.chat.v1.ISlashCommandMetadata|null);
9712
9715
 
9716
+ /** Annotation richLinkMetadata. */
9717
+ public richLinkMetadata?: (google.chat.v1.IRichLinkMetadata|null);
9718
+
9713
9719
  /** Annotation _startIndex. */
9714
9720
  public _startIndex?: "startIndex";
9715
9721
 
9716
9722
  /** Annotation metadata. */
9717
- public metadata?: ("userMention"|"slashCommand");
9723
+ public metadata?: ("userMention"|"slashCommand"|"richLinkMetadata");
9718
9724
 
9719
9725
  /**
9720
9726
  * Creates a new Annotation instance using the specified properties.
@@ -10038,142 +10044,236 @@ export namespace google {
10038
10044
  }
10039
10045
  }
10040
10046
 
10041
- /** AnnotationType enum. */
10042
- enum AnnotationType {
10043
- ANNOTATION_TYPE_UNSPECIFIED = 0,
10044
- USER_MENTION = 1,
10045
- SLASH_COMMAND = 2
10046
- }
10047
+ /** Properties of a RichLinkMetadata. */
10048
+ interface IRichLinkMetadata {
10047
10049
 
10048
- /** Properties of a User. */
10049
- interface IUser {
10050
+ /** RichLinkMetadata uri */
10051
+ uri?: (string|null);
10050
10052
 
10051
- /** User name */
10052
- name?: (string|null);
10053
+ /** RichLinkMetadata richLinkType */
10054
+ richLinkType?: (google.chat.v1.RichLinkMetadata.RichLinkType|keyof typeof google.chat.v1.RichLinkMetadata.RichLinkType|null);
10053
10055
 
10054
- /** User displayName */
10055
- displayName?: (string|null);
10056
+ /** RichLinkMetadata driveLinkData */
10057
+ driveLinkData?: (google.chat.v1.IDriveLinkData|null);
10058
+ }
10056
10059
 
10057
- /** User domainId */
10058
- domainId?: (string|null);
10060
+ /** Represents a RichLinkMetadata. */
10061
+ class RichLinkMetadata implements IRichLinkMetadata {
10059
10062
 
10060
- /** User type */
10061
- type?: (google.chat.v1.User.Type|keyof typeof google.chat.v1.User.Type|null);
10063
+ /**
10064
+ * Constructs a new RichLinkMetadata.
10065
+ * @param [properties] Properties to set
10066
+ */
10067
+ constructor(properties?: google.chat.v1.IRichLinkMetadata);
10062
10068
 
10063
- /** User isAnonymous */
10064
- isAnonymous?: (boolean|null);
10065
- }
10069
+ /** RichLinkMetadata uri. */
10070
+ public uri: string;
10066
10071
 
10067
- /** Represents a User. */
10068
- class User implements IUser {
10072
+ /** RichLinkMetadata richLinkType. */
10073
+ public richLinkType: (google.chat.v1.RichLinkMetadata.RichLinkType|keyof typeof google.chat.v1.RichLinkMetadata.RichLinkType);
10074
+
10075
+ /** RichLinkMetadata driveLinkData. */
10076
+ public driveLinkData?: (google.chat.v1.IDriveLinkData|null);
10077
+
10078
+ /** RichLinkMetadata data. */
10079
+ public data?: "driveLinkData";
10069
10080
 
10070
10081
  /**
10071
- * Constructs a new User.
10082
+ * Creates a new RichLinkMetadata instance using the specified properties.
10072
10083
  * @param [properties] Properties to set
10084
+ * @returns RichLinkMetadata instance
10073
10085
  */
10074
- constructor(properties?: google.chat.v1.IUser);
10086
+ public static create(properties?: google.chat.v1.IRichLinkMetadata): google.chat.v1.RichLinkMetadata;
10075
10087
 
10076
- /** User name. */
10077
- public name: string;
10088
+ /**
10089
+ * Encodes the specified RichLinkMetadata message. Does not implicitly {@link google.chat.v1.RichLinkMetadata.verify|verify} messages.
10090
+ * @param message RichLinkMetadata message or plain object to encode
10091
+ * @param [writer] Writer to encode to
10092
+ * @returns Writer
10093
+ */
10094
+ public static encode(message: google.chat.v1.IRichLinkMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
10078
10095
 
10079
- /** User displayName. */
10080
- public displayName: string;
10096
+ /**
10097
+ * Encodes the specified RichLinkMetadata message, length delimited. Does not implicitly {@link google.chat.v1.RichLinkMetadata.verify|verify} messages.
10098
+ * @param message RichLinkMetadata message or plain object to encode
10099
+ * @param [writer] Writer to encode to
10100
+ * @returns Writer
10101
+ */
10102
+ public static encodeDelimited(message: google.chat.v1.IRichLinkMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
10081
10103
 
10082
- /** User domainId. */
10083
- public domainId: string;
10104
+ /**
10105
+ * Decodes a RichLinkMetadata message from the specified reader or buffer.
10106
+ * @param reader Reader or buffer to decode from
10107
+ * @param [length] Message length if known beforehand
10108
+ * @returns RichLinkMetadata
10109
+ * @throws {Error} If the payload is not a reader or valid buffer
10110
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10111
+ */
10112
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.RichLinkMetadata;
10084
10113
 
10085
- /** User type. */
10086
- public type: (google.chat.v1.User.Type|keyof typeof google.chat.v1.User.Type);
10114
+ /**
10115
+ * Decodes a RichLinkMetadata message from the specified reader or buffer, length delimited.
10116
+ * @param reader Reader or buffer to decode from
10117
+ * @returns RichLinkMetadata
10118
+ * @throws {Error} If the payload is not a reader or valid buffer
10119
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10120
+ */
10121
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.RichLinkMetadata;
10087
10122
 
10088
- /** User isAnonymous. */
10089
- public isAnonymous: boolean;
10123
+ /**
10124
+ * Verifies a RichLinkMetadata message.
10125
+ * @param message Plain object to verify
10126
+ * @returns `null` if valid, otherwise the reason why it is not
10127
+ */
10128
+ public static verify(message: { [k: string]: any }): (string|null);
10090
10129
 
10091
10130
  /**
10092
- * Creates a new User instance using the specified properties.
10131
+ * Creates a RichLinkMetadata message from a plain object. Also converts values to their respective internal types.
10132
+ * @param object Plain object
10133
+ * @returns RichLinkMetadata
10134
+ */
10135
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.RichLinkMetadata;
10136
+
10137
+ /**
10138
+ * Creates a plain object from a RichLinkMetadata message. Also converts values to other types if specified.
10139
+ * @param message RichLinkMetadata
10140
+ * @param [options] Conversion options
10141
+ * @returns Plain object
10142
+ */
10143
+ public static toObject(message: google.chat.v1.RichLinkMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
10144
+
10145
+ /**
10146
+ * Converts this RichLinkMetadata to JSON.
10147
+ * @returns JSON object
10148
+ */
10149
+ public toJSON(): { [k: string]: any };
10150
+
10151
+ /**
10152
+ * Gets the default type url for RichLinkMetadata
10153
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10154
+ * @returns The default type url
10155
+ */
10156
+ public static getTypeUrl(typeUrlPrefix?: string): string;
10157
+ }
10158
+
10159
+ namespace RichLinkMetadata {
10160
+
10161
+ /** RichLinkType enum. */
10162
+ enum RichLinkType {
10163
+ RICH_LINK_TYPE_UNSPECIFIED = 0,
10164
+ DRIVE_FILE = 1
10165
+ }
10166
+ }
10167
+
10168
+ /** Properties of a DriveLinkData. */
10169
+ interface IDriveLinkData {
10170
+
10171
+ /** DriveLinkData driveDataRef */
10172
+ driveDataRef?: (google.chat.v1.IDriveDataRef|null);
10173
+
10174
+ /** DriveLinkData mimeType */
10175
+ mimeType?: (string|null);
10176
+ }
10177
+
10178
+ /** Represents a DriveLinkData. */
10179
+ class DriveLinkData implements IDriveLinkData {
10180
+
10181
+ /**
10182
+ * Constructs a new DriveLinkData.
10093
10183
  * @param [properties] Properties to set
10094
- * @returns User instance
10095
10184
  */
10096
- public static create(properties?: google.chat.v1.IUser): google.chat.v1.User;
10185
+ constructor(properties?: google.chat.v1.IDriveLinkData);
10186
+
10187
+ /** DriveLinkData driveDataRef. */
10188
+ public driveDataRef?: (google.chat.v1.IDriveDataRef|null);
10189
+
10190
+ /** DriveLinkData mimeType. */
10191
+ public mimeType: string;
10097
10192
 
10098
10193
  /**
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
10194
+ * Creates a new DriveLinkData instance using the specified properties.
10195
+ * @param [properties] Properties to set
10196
+ * @returns DriveLinkData instance
10197
+ */
10198
+ public static create(properties?: google.chat.v1.IDriveLinkData): google.chat.v1.DriveLinkData;
10199
+
10200
+ /**
10201
+ * Encodes the specified DriveLinkData message. Does not implicitly {@link google.chat.v1.DriveLinkData.verify|verify} messages.
10202
+ * @param message DriveLinkData message or plain object to encode
10101
10203
  * @param [writer] Writer to encode to
10102
10204
  * @returns Writer
10103
10205
  */
10104
- public static encode(message: google.chat.v1.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
10206
+ public static encode(message: google.chat.v1.IDriveLinkData, writer?: $protobuf.Writer): $protobuf.Writer;
10105
10207
 
10106
10208
  /**
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
10209
+ * Encodes the specified DriveLinkData message, length delimited. Does not implicitly {@link google.chat.v1.DriveLinkData.verify|verify} messages.
10210
+ * @param message DriveLinkData message or plain object to encode
10109
10211
  * @param [writer] Writer to encode to
10110
10212
  * @returns Writer
10111
10213
  */
10112
- public static encodeDelimited(message: google.chat.v1.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
10214
+ public static encodeDelimited(message: google.chat.v1.IDriveLinkData, writer?: $protobuf.Writer): $protobuf.Writer;
10113
10215
 
10114
10216
  /**
10115
- * Decodes a User message from the specified reader or buffer.
10217
+ * Decodes a DriveLinkData message from the specified reader or buffer.
10116
10218
  * @param reader Reader or buffer to decode from
10117
10219
  * @param [length] Message length if known beforehand
10118
- * @returns User
10220
+ * @returns DriveLinkData
10119
10221
  * @throws {Error} If the payload is not a reader or valid buffer
10120
10222
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
10121
10223
  */
10122
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.User;
10224
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.DriveLinkData;
10123
10225
 
10124
10226
  /**
10125
- * Decodes a User message from the specified reader or buffer, length delimited.
10227
+ * Decodes a DriveLinkData message from the specified reader or buffer, length delimited.
10126
10228
  * @param reader Reader or buffer to decode from
10127
- * @returns User
10229
+ * @returns DriveLinkData
10128
10230
  * @throws {Error} If the payload is not a reader or valid buffer
10129
10231
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
10130
10232
  */
10131
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.User;
10233
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.DriveLinkData;
10132
10234
 
10133
10235
  /**
10134
- * Verifies a User message.
10236
+ * Verifies a DriveLinkData message.
10135
10237
  * @param message Plain object to verify
10136
10238
  * @returns `null` if valid, otherwise the reason why it is not
10137
10239
  */
10138
10240
  public static verify(message: { [k: string]: any }): (string|null);
10139
10241
 
10140
10242
  /**
10141
- * Creates a User message from a plain object. Also converts values to their respective internal types.
10243
+ * Creates a DriveLinkData message from a plain object. Also converts values to their respective internal types.
10142
10244
  * @param object Plain object
10143
- * @returns User
10245
+ * @returns DriveLinkData
10144
10246
  */
10145
- public static fromObject(object: { [k: string]: any }): google.chat.v1.User;
10247
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.DriveLinkData;
10146
10248
 
10147
10249
  /**
10148
- * Creates a plain object from a User message. Also converts values to other types if specified.
10149
- * @param message User
10250
+ * Creates a plain object from a DriveLinkData message. Also converts values to other types if specified.
10251
+ * @param message DriveLinkData
10150
10252
  * @param [options] Conversion options
10151
10253
  * @returns Plain object
10152
10254
  */
10153
- public static toObject(message: google.chat.v1.User, options?: $protobuf.IConversionOptions): { [k: string]: any };
10255
+ public static toObject(message: google.chat.v1.DriveLinkData, options?: $protobuf.IConversionOptions): { [k: string]: any };
10154
10256
 
10155
10257
  /**
10156
- * Converts this User to JSON.
10258
+ * Converts this DriveLinkData to JSON.
10157
10259
  * @returns JSON object
10158
10260
  */
10159
10261
  public toJSON(): { [k: string]: any };
10160
10262
 
10161
10263
  /**
10162
- * Gets the default type url for User
10264
+ * Gets the default type url for DriveLinkData
10163
10265
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10164
10266
  * @returns The default type url
10165
10267
  */
10166
10268
  public static getTypeUrl(typeUrlPrefix?: string): string;
10167
10269
  }
10168
10270
 
10169
- namespace User {
10170
-
10171
- /** Type enum. */
10172
- enum Type {
10173
- TYPE_UNSPECIFIED = 0,
10174
- HUMAN = 1,
10175
- BOT = 2
10176
- }
10271
+ /** AnnotationType enum. */
10272
+ enum AnnotationType {
10273
+ ANNOTATION_TYPE_UNSPECIFIED = 0,
10274
+ USER_MENTION = 1,
10275
+ SLASH_COMMAND = 2,
10276
+ RICH_LINK = 3
10177
10277
  }
10178
10278
 
10179
10279
  /** Properties of an Attachment. */
@@ -10825,6 +10925,137 @@ export namespace google {
10825
10925
  public static getTypeUrl(typeUrlPrefix?: string): string;
10826
10926
  }
10827
10927
 
10928
+ /** Properties of a User. */
10929
+ interface IUser {
10930
+
10931
+ /** User name */
10932
+ name?: (string|null);
10933
+
10934
+ /** User displayName */
10935
+ displayName?: (string|null);
10936
+
10937
+ /** User domainId */
10938
+ domainId?: (string|null);
10939
+
10940
+ /** User type */
10941
+ type?: (google.chat.v1.User.Type|keyof typeof google.chat.v1.User.Type|null);
10942
+
10943
+ /** User isAnonymous */
10944
+ isAnonymous?: (boolean|null);
10945
+ }
10946
+
10947
+ /** Represents a User. */
10948
+ class User implements IUser {
10949
+
10950
+ /**
10951
+ * Constructs a new User.
10952
+ * @param [properties] Properties to set
10953
+ */
10954
+ constructor(properties?: google.chat.v1.IUser);
10955
+
10956
+ /** User name. */
10957
+ public name: string;
10958
+
10959
+ /** User displayName. */
10960
+ public displayName: string;
10961
+
10962
+ /** User domainId. */
10963
+ public domainId: string;
10964
+
10965
+ /** User type. */
10966
+ public type: (google.chat.v1.User.Type|keyof typeof google.chat.v1.User.Type);
10967
+
10968
+ /** User isAnonymous. */
10969
+ public isAnonymous: boolean;
10970
+
10971
+ /**
10972
+ * Creates a new User instance using the specified properties.
10973
+ * @param [properties] Properties to set
10974
+ * @returns User instance
10975
+ */
10976
+ public static create(properties?: google.chat.v1.IUser): google.chat.v1.User;
10977
+
10978
+ /**
10979
+ * Encodes the specified User message. Does not implicitly {@link google.chat.v1.User.verify|verify} messages.
10980
+ * @param message User message or plain object to encode
10981
+ * @param [writer] Writer to encode to
10982
+ * @returns Writer
10983
+ */
10984
+ public static encode(message: google.chat.v1.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
10985
+
10986
+ /**
10987
+ * Encodes the specified User message, length delimited. Does not implicitly {@link google.chat.v1.User.verify|verify} messages.
10988
+ * @param message User message or plain object to encode
10989
+ * @param [writer] Writer to encode to
10990
+ * @returns Writer
10991
+ */
10992
+ public static encodeDelimited(message: google.chat.v1.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
10993
+
10994
+ /**
10995
+ * Decodes a User message from the specified reader or buffer.
10996
+ * @param reader Reader or buffer to decode from
10997
+ * @param [length] Message length if known beforehand
10998
+ * @returns User
10999
+ * @throws {Error} If the payload is not a reader or valid buffer
11000
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11001
+ */
11002
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.User;
11003
+
11004
+ /**
11005
+ * Decodes a User message from the specified reader or buffer, length delimited.
11006
+ * @param reader Reader or buffer to decode from
11007
+ * @returns User
11008
+ * @throws {Error} If the payload is not a reader or valid buffer
11009
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11010
+ */
11011
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.User;
11012
+
11013
+ /**
11014
+ * Verifies a User message.
11015
+ * @param message Plain object to verify
11016
+ * @returns `null` if valid, otherwise the reason why it is not
11017
+ */
11018
+ public static verify(message: { [k: string]: any }): (string|null);
11019
+
11020
+ /**
11021
+ * Creates a User message from a plain object. Also converts values to their respective internal types.
11022
+ * @param object Plain object
11023
+ * @returns User
11024
+ */
11025
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.User;
11026
+
11027
+ /**
11028
+ * Creates a plain object from a User message. Also converts values to other types if specified.
11029
+ * @param message User
11030
+ * @param [options] Conversion options
11031
+ * @returns Plain object
11032
+ */
11033
+ public static toObject(message: google.chat.v1.User, options?: $protobuf.IConversionOptions): { [k: string]: any };
11034
+
11035
+ /**
11036
+ * Converts this User to JSON.
11037
+ * @returns JSON object
11038
+ */
11039
+ public toJSON(): { [k: string]: any };
11040
+
11041
+ /**
11042
+ * Gets the default type url for User
11043
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
11044
+ * @returns The default type url
11045
+ */
11046
+ public static getTypeUrl(typeUrlPrefix?: string): string;
11047
+ }
11048
+
11049
+ namespace User {
11050
+
11051
+ /** Type enum. */
11052
+ enum Type {
11053
+ TYPE_UNSPECIFIED = 0,
11054
+ HUMAN = 1,
11055
+ BOT = 2
11056
+ }
11057
+ }
11058
+
10828
11059
  /** Represents a ChatService */
10829
11060
  class ChatService extends $protobuf.rpc.Service {
10830
11061
 
@@ -12166,6 +12397,9 @@ export namespace google {
12166
12397
 
12167
12398
  /** Message attachedGifs */
12168
12399
  attachedGifs?: (google.chat.v1.IAttachedGif[]|null);
12400
+
12401
+ /** Message accessoryWidgets */
12402
+ accessoryWidgets?: (google.chat.v1.IAccessoryWidget[]|null);
12169
12403
  }
12170
12404
 
12171
12405
  /** Represents a Message. */
@@ -12252,6 +12486,9 @@ export namespace google {
12252
12486
  /** Message attachedGifs. */
12253
12487
  public attachedGifs: google.chat.v1.IAttachedGif[];
12254
12488
 
12489
+ /** Message accessoryWidgets. */
12490
+ public accessoryWidgets: google.chat.v1.IAccessoryWidget[];
12491
+
12255
12492
  /**
12256
12493
  * Creates a new Message instance using the specified properties.
12257
12494
  * @param [properties] Properties to set
@@ -12965,6 +13202,106 @@ export namespace google {
12965
13202
  }
12966
13203
  }
12967
13204
 
13205
+ /** Properties of an AccessoryWidget. */
13206
+ interface IAccessoryWidget {
13207
+
13208
+ /** AccessoryWidget buttonList */
13209
+ buttonList?: (google.apps.card.v1.IButtonList|null);
13210
+ }
13211
+
13212
+ /** Represents an AccessoryWidget. */
13213
+ class AccessoryWidget implements IAccessoryWidget {
13214
+
13215
+ /**
13216
+ * Constructs a new AccessoryWidget.
13217
+ * @param [properties] Properties to set
13218
+ */
13219
+ constructor(properties?: google.chat.v1.IAccessoryWidget);
13220
+
13221
+ /** AccessoryWidget buttonList. */
13222
+ public buttonList?: (google.apps.card.v1.IButtonList|null);
13223
+
13224
+ /** AccessoryWidget action. */
13225
+ public action?: "buttonList";
13226
+
13227
+ /**
13228
+ * Creates a new AccessoryWidget instance using the specified properties.
13229
+ * @param [properties] Properties to set
13230
+ * @returns AccessoryWidget instance
13231
+ */
13232
+ public static create(properties?: google.chat.v1.IAccessoryWidget): google.chat.v1.AccessoryWidget;
13233
+
13234
+ /**
13235
+ * Encodes the specified AccessoryWidget message. Does not implicitly {@link google.chat.v1.AccessoryWidget.verify|verify} messages.
13236
+ * @param message AccessoryWidget message or plain object to encode
13237
+ * @param [writer] Writer to encode to
13238
+ * @returns Writer
13239
+ */
13240
+ public static encode(message: google.chat.v1.IAccessoryWidget, writer?: $protobuf.Writer): $protobuf.Writer;
13241
+
13242
+ /**
13243
+ * Encodes the specified AccessoryWidget message, length delimited. Does not implicitly {@link google.chat.v1.AccessoryWidget.verify|verify} messages.
13244
+ * @param message AccessoryWidget message or plain object to encode
13245
+ * @param [writer] Writer to encode to
13246
+ * @returns Writer
13247
+ */
13248
+ public static encodeDelimited(message: google.chat.v1.IAccessoryWidget, writer?: $protobuf.Writer): $protobuf.Writer;
13249
+
13250
+ /**
13251
+ * Decodes an AccessoryWidget message from the specified reader or buffer.
13252
+ * @param reader Reader or buffer to decode from
13253
+ * @param [length] Message length if known beforehand
13254
+ * @returns AccessoryWidget
13255
+ * @throws {Error} If the payload is not a reader or valid buffer
13256
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13257
+ */
13258
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.AccessoryWidget;
13259
+
13260
+ /**
13261
+ * Decodes an AccessoryWidget message from the specified reader or buffer, length delimited.
13262
+ * @param reader Reader or buffer to decode from
13263
+ * @returns AccessoryWidget
13264
+ * @throws {Error} If the payload is not a reader or valid buffer
13265
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13266
+ */
13267
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.AccessoryWidget;
13268
+
13269
+ /**
13270
+ * Verifies an AccessoryWidget message.
13271
+ * @param message Plain object to verify
13272
+ * @returns `null` if valid, otherwise the reason why it is not
13273
+ */
13274
+ public static verify(message: { [k: string]: any }): (string|null);
13275
+
13276
+ /**
13277
+ * Creates an AccessoryWidget message from a plain object. Also converts values to their respective internal types.
13278
+ * @param object Plain object
13279
+ * @returns AccessoryWidget
13280
+ */
13281
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.AccessoryWidget;
13282
+
13283
+ /**
13284
+ * Creates a plain object from an AccessoryWidget message. Also converts values to other types if specified.
13285
+ * @param message AccessoryWidget
13286
+ * @param [options] Conversion options
13287
+ * @returns Plain object
13288
+ */
13289
+ public static toObject(message: google.chat.v1.AccessoryWidget, options?: $protobuf.IConversionOptions): { [k: string]: any };
13290
+
13291
+ /**
13292
+ * Converts this AccessoryWidget to JSON.
13293
+ * @returns JSON object
13294
+ */
13295
+ public toJSON(): { [k: string]: any };
13296
+
13297
+ /**
13298
+ * Gets the default type url for AccessoryWidget
13299
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
13300
+ * @returns The default type url
13301
+ */
13302
+ public static getTypeUrl(typeUrlPrefix?: string): string;
13303
+ }
13304
+
12968
13305
  /** Properties of a GetMessageRequest. */
12969
13306
  interface IGetMessageRequest {
12970
13307