@google-apps/chat 0.2.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.
- package/CHANGELOG.md +7 -0
- package/README.md +1 -0
- package/build/protos/google/apps/card/v1/card.proto +242 -160
- package/build/protos/google/chat/v1/action_status.proto +1 -1
- package/build/protos/google/chat/v1/annotation.proto +2 -2
- package/build/protos/google/chat/v1/attachment.proto +9 -0
- package/build/protos/google/chat/v1/chat_service.proto +92 -80
- package/build/protos/google/chat/v1/contextual_addon.proto +1 -1
- package/build/protos/google/chat/v1/membership.proto +33 -11
- package/build/protos/google/chat/v1/message.proto +71 -113
- package/build/protos/google/chat/v1/reaction.proto +4 -2
- package/build/protos/google/chat/v1/slash_command.proto +3 -2
- package/build/protos/google/chat/v1/space.proto +28 -17
- package/build/protos/google/chat/v1/space_setup.proto +1 -0
- package/build/protos/google/chat/v1/user.proto +3 -2
- package/build/protos/google/chat/v1/widgets.proto +4 -4
- package/build/protos/protos.d.ts +320 -75
- package/build/protos/protos.js +826 -248
- package/build/protos/protos.json +73 -10
- package/build/src/v1/chat_service_client.d.ts +173 -134
- package/build/src/v1/chat_service_client.js +48 -24
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/build/src/v1/chat_service_client_config.json +5 -0
- package/package.json +1 -1
package/build/protos/protos.d.ts
CHANGED
|
@@ -5098,200 +5098,200 @@ export namespace google {
|
|
|
5098
5098
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5099
5099
|
}
|
|
5100
5100
|
|
|
5101
|
-
/** Properties of a
|
|
5102
|
-
interface
|
|
5103
|
-
|
|
5104
|
-
/** Timestamp seconds */
|
|
5105
|
-
seconds?: (number|Long|string|null);
|
|
5101
|
+
/** Properties of a FieldMask. */
|
|
5102
|
+
interface IFieldMask {
|
|
5106
5103
|
|
|
5107
|
-
/**
|
|
5108
|
-
|
|
5104
|
+
/** FieldMask paths */
|
|
5105
|
+
paths?: (string[]|null);
|
|
5109
5106
|
}
|
|
5110
5107
|
|
|
5111
|
-
/** Represents a
|
|
5112
|
-
class
|
|
5108
|
+
/** Represents a FieldMask. */
|
|
5109
|
+
class FieldMask implements IFieldMask {
|
|
5113
5110
|
|
|
5114
5111
|
/**
|
|
5115
|
-
* Constructs a new
|
|
5112
|
+
* Constructs a new FieldMask.
|
|
5116
5113
|
* @param [properties] Properties to set
|
|
5117
5114
|
*/
|
|
5118
|
-
constructor(properties?: google.protobuf.
|
|
5119
|
-
|
|
5120
|
-
/** Timestamp seconds. */
|
|
5121
|
-
public seconds: (number|Long|string);
|
|
5115
|
+
constructor(properties?: google.protobuf.IFieldMask);
|
|
5122
5116
|
|
|
5123
|
-
/**
|
|
5124
|
-
public
|
|
5117
|
+
/** FieldMask paths. */
|
|
5118
|
+
public paths: string[];
|
|
5125
5119
|
|
|
5126
5120
|
/**
|
|
5127
|
-
* Creates a new
|
|
5121
|
+
* Creates a new FieldMask instance using the specified properties.
|
|
5128
5122
|
* @param [properties] Properties to set
|
|
5129
|
-
* @returns
|
|
5123
|
+
* @returns FieldMask instance
|
|
5130
5124
|
*/
|
|
5131
|
-
public static create(properties?: google.protobuf.
|
|
5125
|
+
public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
|
|
5132
5126
|
|
|
5133
5127
|
/**
|
|
5134
|
-
* Encodes the specified
|
|
5135
|
-
* @param message
|
|
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.
|
|
5133
|
+
public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5140
5134
|
|
|
5141
5135
|
/**
|
|
5142
|
-
* Encodes the specified
|
|
5143
|
-
* @param message
|
|
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.
|
|
5141
|
+
public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5148
5142
|
|
|
5149
5143
|
/**
|
|
5150
|
-
* Decodes a
|
|
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
|
|
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.
|
|
5151
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
|
|
5158
5152
|
|
|
5159
5153
|
/**
|
|
5160
|
-
* Decodes a
|
|
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
|
|
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.
|
|
5160
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
|
|
5167
5161
|
|
|
5168
5162
|
/**
|
|
5169
|
-
* Verifies a
|
|
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
|
|
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
|
|
5172
|
+
* @returns FieldMask
|
|
5179
5173
|
*/
|
|
5180
|
-
public static fromObject(object: { [k: string]: any }): google.protobuf.
|
|
5174
|
+
public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
|
|
5181
5175
|
|
|
5182
5176
|
/**
|
|
5183
|
-
* Creates a plain object from a
|
|
5184
|
-
* @param message
|
|
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.
|
|
5182
|
+
public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5189
5183
|
|
|
5190
5184
|
/**
|
|
5191
|
-
* Converts this
|
|
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
|
|
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
|
|
5205
|
-
interface
|
|
5198
|
+
/** Properties of a Timestamp. */
|
|
5199
|
+
interface ITimestamp {
|
|
5206
5200
|
|
|
5207
|
-
/**
|
|
5208
|
-
|
|
5201
|
+
/** Timestamp seconds */
|
|
5202
|
+
seconds?: (number|Long|string|null);
|
|
5203
|
+
|
|
5204
|
+
/** Timestamp nanos */
|
|
5205
|
+
nanos?: (number|null);
|
|
5209
5206
|
}
|
|
5210
5207
|
|
|
5211
|
-
/** Represents a
|
|
5212
|
-
class
|
|
5208
|
+
/** Represents a Timestamp. */
|
|
5209
|
+
class Timestamp implements ITimestamp {
|
|
5213
5210
|
|
|
5214
5211
|
/**
|
|
5215
|
-
* Constructs a new
|
|
5212
|
+
* Constructs a new Timestamp.
|
|
5216
5213
|
* @param [properties] Properties to set
|
|
5217
5214
|
*/
|
|
5218
|
-
constructor(properties?: google.protobuf.
|
|
5215
|
+
constructor(properties?: google.protobuf.ITimestamp);
|
|
5219
5216
|
|
|
5220
|
-
/**
|
|
5221
|
-
public
|
|
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
|
|
5224
|
+
* Creates a new Timestamp instance using the specified properties.
|
|
5225
5225
|
* @param [properties] Properties to set
|
|
5226
|
-
* @returns
|
|
5226
|
+
* @returns Timestamp instance
|
|
5227
5227
|
*/
|
|
5228
|
-
public static create(properties?: google.protobuf.
|
|
5228
|
+
public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
|
|
5229
5229
|
|
|
5230
5230
|
/**
|
|
5231
|
-
* Encodes the specified
|
|
5232
|
-
* @param message
|
|
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.
|
|
5236
|
+
public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5237
5237
|
|
|
5238
5238
|
/**
|
|
5239
|
-
* Encodes the specified
|
|
5240
|
-
* @param message
|
|
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.
|
|
5244
|
+
public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5245
5245
|
|
|
5246
5246
|
/**
|
|
5247
|
-
* Decodes a
|
|
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
|
|
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.
|
|
5254
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
|
|
5255
5255
|
|
|
5256
5256
|
/**
|
|
5257
|
-
* Decodes a
|
|
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
|
|
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.
|
|
5263
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
|
|
5264
5264
|
|
|
5265
5265
|
/**
|
|
5266
|
-
* Verifies a
|
|
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
|
|
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
|
|
5275
|
+
* @returns Timestamp
|
|
5276
5276
|
*/
|
|
5277
|
-
public static fromObject(object: { [k: string]: any }): google.protobuf.
|
|
5277
|
+
public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
|
|
5278
5278
|
|
|
5279
5279
|
/**
|
|
5280
|
-
* Creates a plain object from a
|
|
5281
|
-
* @param message
|
|
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.
|
|
5285
|
+
public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5286
5286
|
|
|
5287
5287
|
/**
|
|
5288
|
-
* Converts this
|
|
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
|
|
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
|
|
@@ -11513,6 +11648,13 @@ export namespace google {
|
|
|
11513
11648
|
*/
|
|
11514
11649
|
type CreateMembershipCallback = (error: (Error|null), response?: google.chat.v1.Membership) => void;
|
|
11515
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
|
+
|
|
11516
11658
|
/**
|
|
11517
11659
|
* Callback as used by {@link google.chat.v1.ChatService|deleteMembership}.
|
|
11518
11660
|
* @param error Error, if any
|
|
@@ -11799,6 +11941,109 @@ export namespace google {
|
|
|
11799
11941
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
11800
11942
|
}
|
|
11801
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
|
+
|
|
11802
12047
|
/** Properties of a ListMembershipsRequest. */
|
|
11803
12048
|
interface IListMembershipsRequest {
|
|
11804
12049
|
|