@google-apps/chat 0.7.0 → 0.8.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/build/protos/google/chat/v1/annotation.proto +29 -0
- package/build/protos/protos.d.ts +118 -2
- package/build/protos/protos.js +294 -2
- package/build/protos/protos.json +33 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.8.0](https://github.com/googleapis/google-cloud-node/compare/chat-v0.7.0...chat-v0.8.0) (2024-09-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* [chat] Add CHAT_SPACE link type support for GA launch ([#5659](https://github.com/googleapis/google-cloud-node/issues/5659)) ([b61a65d](https://github.com/googleapis/google-cloud-node/commit/b61a65d30dde04c2ff85d233ddbc1c79ff7a5736))
|
|
9
|
+
|
|
3
10
|
## [0.7.0](https://github.com/googleapis/google-cloud-node/compare/chat-v0.6.0...chat-v0.7.0) (2024-07-22)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -139,6 +139,9 @@ message RichLinkMetadata {
|
|
|
139
139
|
|
|
140
140
|
// A Google Drive rich link type.
|
|
141
141
|
DRIVE_FILE = 1;
|
|
142
|
+
|
|
143
|
+
// A Chat space rich link type. For example, a space smart chip.
|
|
144
|
+
CHAT_SPACE = 2;
|
|
142
145
|
}
|
|
143
146
|
|
|
144
147
|
// The URI of this link.
|
|
@@ -151,6 +154,9 @@ message RichLinkMetadata {
|
|
|
151
154
|
oneof data {
|
|
152
155
|
// Data for a drive link.
|
|
153
156
|
DriveLinkData drive_link_data = 3;
|
|
157
|
+
|
|
158
|
+
// Data for a chat space link.
|
|
159
|
+
ChatSpaceLinkData chat_space_link_data = 4;
|
|
154
160
|
}
|
|
155
161
|
}
|
|
156
162
|
|
|
@@ -165,6 +171,29 @@ message DriveLinkData {
|
|
|
165
171
|
string mime_type = 2;
|
|
166
172
|
}
|
|
167
173
|
|
|
174
|
+
// Data for Chat space links.
|
|
175
|
+
message ChatSpaceLinkData {
|
|
176
|
+
// The space of the linked Chat space resource.
|
|
177
|
+
//
|
|
178
|
+
// Format: `spaces/{space}`
|
|
179
|
+
string space = 1
|
|
180
|
+
[(google.api.resource_reference) = { type: "chat.googleapis.com/Space" }];
|
|
181
|
+
|
|
182
|
+
// The thread of the linked Chat space resource.
|
|
183
|
+
//
|
|
184
|
+
// Format: `spaces/{space}/threads/{thread}`
|
|
185
|
+
string thread = 2 [
|
|
186
|
+
(google.api.resource_reference) = { type: "chat.googleapis.com/Thread" }
|
|
187
|
+
];
|
|
188
|
+
|
|
189
|
+
// The message of the linked Chat space resource.
|
|
190
|
+
//
|
|
191
|
+
// Format: `spaces/{space}/messages/{message}`
|
|
192
|
+
string message = 3 [
|
|
193
|
+
(google.api.resource_reference) = { type: "chat.googleapis.com/Message" }
|
|
194
|
+
];
|
|
195
|
+
}
|
|
196
|
+
|
|
168
197
|
// Type of the annotation.
|
|
169
198
|
enum AnnotationType {
|
|
170
199
|
// Default value for the enum. Don't use.
|
package/build/protos/protos.d.ts
CHANGED
|
@@ -10176,6 +10176,9 @@ export namespace google {
|
|
|
10176
10176
|
|
|
10177
10177
|
/** RichLinkMetadata driveLinkData */
|
|
10178
10178
|
driveLinkData?: (google.chat.v1.IDriveLinkData|null);
|
|
10179
|
+
|
|
10180
|
+
/** RichLinkMetadata chatSpaceLinkData */
|
|
10181
|
+
chatSpaceLinkData?: (google.chat.v1.IChatSpaceLinkData|null);
|
|
10179
10182
|
}
|
|
10180
10183
|
|
|
10181
10184
|
/** Represents a RichLinkMetadata. */
|
|
@@ -10196,8 +10199,11 @@ export namespace google {
|
|
|
10196
10199
|
/** RichLinkMetadata driveLinkData. */
|
|
10197
10200
|
public driveLinkData?: (google.chat.v1.IDriveLinkData|null);
|
|
10198
10201
|
|
|
10202
|
+
/** RichLinkMetadata chatSpaceLinkData. */
|
|
10203
|
+
public chatSpaceLinkData?: (google.chat.v1.IChatSpaceLinkData|null);
|
|
10204
|
+
|
|
10199
10205
|
/** RichLinkMetadata data. */
|
|
10200
|
-
public data?: "driveLinkData";
|
|
10206
|
+
public data?: ("driveLinkData"|"chatSpaceLinkData");
|
|
10201
10207
|
|
|
10202
10208
|
/**
|
|
10203
10209
|
* Creates a new RichLinkMetadata instance using the specified properties.
|
|
@@ -10282,7 +10288,8 @@ export namespace google {
|
|
|
10282
10288
|
/** RichLinkType enum. */
|
|
10283
10289
|
enum RichLinkType {
|
|
10284
10290
|
RICH_LINK_TYPE_UNSPECIFIED = 0,
|
|
10285
|
-
DRIVE_FILE = 1
|
|
10291
|
+
DRIVE_FILE = 1,
|
|
10292
|
+
CHAT_SPACE = 2
|
|
10286
10293
|
}
|
|
10287
10294
|
}
|
|
10288
10295
|
|
|
@@ -10389,6 +10396,115 @@ export namespace google {
|
|
|
10389
10396
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
10390
10397
|
}
|
|
10391
10398
|
|
|
10399
|
+
/** Properties of a ChatSpaceLinkData. */
|
|
10400
|
+
interface IChatSpaceLinkData {
|
|
10401
|
+
|
|
10402
|
+
/** ChatSpaceLinkData space */
|
|
10403
|
+
space?: (string|null);
|
|
10404
|
+
|
|
10405
|
+
/** ChatSpaceLinkData thread */
|
|
10406
|
+
thread?: (string|null);
|
|
10407
|
+
|
|
10408
|
+
/** ChatSpaceLinkData message */
|
|
10409
|
+
message?: (string|null);
|
|
10410
|
+
}
|
|
10411
|
+
|
|
10412
|
+
/** Represents a ChatSpaceLinkData. */
|
|
10413
|
+
class ChatSpaceLinkData implements IChatSpaceLinkData {
|
|
10414
|
+
|
|
10415
|
+
/**
|
|
10416
|
+
* Constructs a new ChatSpaceLinkData.
|
|
10417
|
+
* @param [properties] Properties to set
|
|
10418
|
+
*/
|
|
10419
|
+
constructor(properties?: google.chat.v1.IChatSpaceLinkData);
|
|
10420
|
+
|
|
10421
|
+
/** ChatSpaceLinkData space. */
|
|
10422
|
+
public space: string;
|
|
10423
|
+
|
|
10424
|
+
/** ChatSpaceLinkData thread. */
|
|
10425
|
+
public thread: string;
|
|
10426
|
+
|
|
10427
|
+
/** ChatSpaceLinkData message. */
|
|
10428
|
+
public message: string;
|
|
10429
|
+
|
|
10430
|
+
/**
|
|
10431
|
+
* Creates a new ChatSpaceLinkData instance using the specified properties.
|
|
10432
|
+
* @param [properties] Properties to set
|
|
10433
|
+
* @returns ChatSpaceLinkData instance
|
|
10434
|
+
*/
|
|
10435
|
+
public static create(properties?: google.chat.v1.IChatSpaceLinkData): google.chat.v1.ChatSpaceLinkData;
|
|
10436
|
+
|
|
10437
|
+
/**
|
|
10438
|
+
* Encodes the specified ChatSpaceLinkData message. Does not implicitly {@link google.chat.v1.ChatSpaceLinkData.verify|verify} messages.
|
|
10439
|
+
* @param message ChatSpaceLinkData message or plain object to encode
|
|
10440
|
+
* @param [writer] Writer to encode to
|
|
10441
|
+
* @returns Writer
|
|
10442
|
+
*/
|
|
10443
|
+
public static encode(message: google.chat.v1.IChatSpaceLinkData, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
10444
|
+
|
|
10445
|
+
/**
|
|
10446
|
+
* Encodes the specified ChatSpaceLinkData message, length delimited. Does not implicitly {@link google.chat.v1.ChatSpaceLinkData.verify|verify} messages.
|
|
10447
|
+
* @param message ChatSpaceLinkData message or plain object to encode
|
|
10448
|
+
* @param [writer] Writer to encode to
|
|
10449
|
+
* @returns Writer
|
|
10450
|
+
*/
|
|
10451
|
+
public static encodeDelimited(message: google.chat.v1.IChatSpaceLinkData, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
10452
|
+
|
|
10453
|
+
/**
|
|
10454
|
+
* Decodes a ChatSpaceLinkData message from the specified reader or buffer.
|
|
10455
|
+
* @param reader Reader or buffer to decode from
|
|
10456
|
+
* @param [length] Message length if known beforehand
|
|
10457
|
+
* @returns ChatSpaceLinkData
|
|
10458
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10459
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10460
|
+
*/
|
|
10461
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.ChatSpaceLinkData;
|
|
10462
|
+
|
|
10463
|
+
/**
|
|
10464
|
+
* Decodes a ChatSpaceLinkData message from the specified reader or buffer, length delimited.
|
|
10465
|
+
* @param reader Reader or buffer to decode from
|
|
10466
|
+
* @returns ChatSpaceLinkData
|
|
10467
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10468
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10469
|
+
*/
|
|
10470
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.ChatSpaceLinkData;
|
|
10471
|
+
|
|
10472
|
+
/**
|
|
10473
|
+
* Verifies a ChatSpaceLinkData message.
|
|
10474
|
+
* @param message Plain object to verify
|
|
10475
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
10476
|
+
*/
|
|
10477
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
10478
|
+
|
|
10479
|
+
/**
|
|
10480
|
+
* Creates a ChatSpaceLinkData message from a plain object. Also converts values to their respective internal types.
|
|
10481
|
+
* @param object Plain object
|
|
10482
|
+
* @returns ChatSpaceLinkData
|
|
10483
|
+
*/
|
|
10484
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.ChatSpaceLinkData;
|
|
10485
|
+
|
|
10486
|
+
/**
|
|
10487
|
+
* Creates a plain object from a ChatSpaceLinkData message. Also converts values to other types if specified.
|
|
10488
|
+
* @param message ChatSpaceLinkData
|
|
10489
|
+
* @param [options] Conversion options
|
|
10490
|
+
* @returns Plain object
|
|
10491
|
+
*/
|
|
10492
|
+
public static toObject(message: google.chat.v1.ChatSpaceLinkData, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
10493
|
+
|
|
10494
|
+
/**
|
|
10495
|
+
* Converts this ChatSpaceLinkData to JSON.
|
|
10496
|
+
* @returns JSON object
|
|
10497
|
+
*/
|
|
10498
|
+
public toJSON(): { [k: string]: any };
|
|
10499
|
+
|
|
10500
|
+
/**
|
|
10501
|
+
* Gets the default type url for ChatSpaceLinkData
|
|
10502
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
10503
|
+
* @returns The default type url
|
|
10504
|
+
*/
|
|
10505
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
10506
|
+
}
|
|
10507
|
+
|
|
10392
10508
|
/** AnnotationType enum. */
|
|
10393
10509
|
enum AnnotationType {
|
|
10394
10510
|
ANNOTATION_TYPE_UNSPECIFIED = 0,
|
package/build/protos/protos.js
CHANGED
|
@@ -27508,6 +27508,7 @@
|
|
|
27508
27508
|
* @property {string|null} [uri] RichLinkMetadata uri
|
|
27509
27509
|
* @property {google.chat.v1.RichLinkMetadata.RichLinkType|null} [richLinkType] RichLinkMetadata richLinkType
|
|
27510
27510
|
* @property {google.chat.v1.IDriveLinkData|null} [driveLinkData] RichLinkMetadata driveLinkData
|
|
27511
|
+
* @property {google.chat.v1.IChatSpaceLinkData|null} [chatSpaceLinkData] RichLinkMetadata chatSpaceLinkData
|
|
27511
27512
|
*/
|
|
27512
27513
|
|
|
27513
27514
|
/**
|
|
@@ -27549,17 +27550,25 @@
|
|
|
27549
27550
|
*/
|
|
27550
27551
|
RichLinkMetadata.prototype.driveLinkData = null;
|
|
27551
27552
|
|
|
27553
|
+
/**
|
|
27554
|
+
* RichLinkMetadata chatSpaceLinkData.
|
|
27555
|
+
* @member {google.chat.v1.IChatSpaceLinkData|null|undefined} chatSpaceLinkData
|
|
27556
|
+
* @memberof google.chat.v1.RichLinkMetadata
|
|
27557
|
+
* @instance
|
|
27558
|
+
*/
|
|
27559
|
+
RichLinkMetadata.prototype.chatSpaceLinkData = null;
|
|
27560
|
+
|
|
27552
27561
|
// OneOf field names bound to virtual getters and setters
|
|
27553
27562
|
var $oneOfFields;
|
|
27554
27563
|
|
|
27555
27564
|
/**
|
|
27556
27565
|
* RichLinkMetadata data.
|
|
27557
|
-
* @member {"driveLinkData"|undefined} data
|
|
27566
|
+
* @member {"driveLinkData"|"chatSpaceLinkData"|undefined} data
|
|
27558
27567
|
* @memberof google.chat.v1.RichLinkMetadata
|
|
27559
27568
|
* @instance
|
|
27560
27569
|
*/
|
|
27561
27570
|
Object.defineProperty(RichLinkMetadata.prototype, "data", {
|
|
27562
|
-
get: $util.oneOfGetter($oneOfFields = ["driveLinkData"]),
|
|
27571
|
+
get: $util.oneOfGetter($oneOfFields = ["driveLinkData", "chatSpaceLinkData"]),
|
|
27563
27572
|
set: $util.oneOfSetter($oneOfFields)
|
|
27564
27573
|
});
|
|
27565
27574
|
|
|
@@ -27593,6 +27602,8 @@
|
|
|
27593
27602
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.richLinkType);
|
|
27594
27603
|
if (message.driveLinkData != null && Object.hasOwnProperty.call(message, "driveLinkData"))
|
|
27595
27604
|
$root.google.chat.v1.DriveLinkData.encode(message.driveLinkData, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
27605
|
+
if (message.chatSpaceLinkData != null && Object.hasOwnProperty.call(message, "chatSpaceLinkData"))
|
|
27606
|
+
$root.google.chat.v1.ChatSpaceLinkData.encode(message.chatSpaceLinkData, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
27596
27607
|
return writer;
|
|
27597
27608
|
};
|
|
27598
27609
|
|
|
@@ -27639,6 +27650,10 @@
|
|
|
27639
27650
|
message.driveLinkData = $root.google.chat.v1.DriveLinkData.decode(reader, reader.uint32());
|
|
27640
27651
|
break;
|
|
27641
27652
|
}
|
|
27653
|
+
case 4: {
|
|
27654
|
+
message.chatSpaceLinkData = $root.google.chat.v1.ChatSpaceLinkData.decode(reader, reader.uint32());
|
|
27655
|
+
break;
|
|
27656
|
+
}
|
|
27642
27657
|
default:
|
|
27643
27658
|
reader.skipType(tag & 7);
|
|
27644
27659
|
break;
|
|
@@ -27684,6 +27699,7 @@
|
|
|
27684
27699
|
return "richLinkType: enum value expected";
|
|
27685
27700
|
case 0:
|
|
27686
27701
|
case 1:
|
|
27702
|
+
case 2:
|
|
27687
27703
|
break;
|
|
27688
27704
|
}
|
|
27689
27705
|
if (message.driveLinkData != null && message.hasOwnProperty("driveLinkData")) {
|
|
@@ -27694,6 +27710,16 @@
|
|
|
27694
27710
|
return "driveLinkData." + error;
|
|
27695
27711
|
}
|
|
27696
27712
|
}
|
|
27713
|
+
if (message.chatSpaceLinkData != null && message.hasOwnProperty("chatSpaceLinkData")) {
|
|
27714
|
+
if (properties.data === 1)
|
|
27715
|
+
return "data: multiple values";
|
|
27716
|
+
properties.data = 1;
|
|
27717
|
+
{
|
|
27718
|
+
var error = $root.google.chat.v1.ChatSpaceLinkData.verify(message.chatSpaceLinkData);
|
|
27719
|
+
if (error)
|
|
27720
|
+
return "chatSpaceLinkData." + error;
|
|
27721
|
+
}
|
|
27722
|
+
}
|
|
27697
27723
|
return null;
|
|
27698
27724
|
};
|
|
27699
27725
|
|
|
@@ -27726,12 +27752,21 @@
|
|
|
27726
27752
|
case 1:
|
|
27727
27753
|
message.richLinkType = 1;
|
|
27728
27754
|
break;
|
|
27755
|
+
case "CHAT_SPACE":
|
|
27756
|
+
case 2:
|
|
27757
|
+
message.richLinkType = 2;
|
|
27758
|
+
break;
|
|
27729
27759
|
}
|
|
27730
27760
|
if (object.driveLinkData != null) {
|
|
27731
27761
|
if (typeof object.driveLinkData !== "object")
|
|
27732
27762
|
throw TypeError(".google.chat.v1.RichLinkMetadata.driveLinkData: object expected");
|
|
27733
27763
|
message.driveLinkData = $root.google.chat.v1.DriveLinkData.fromObject(object.driveLinkData);
|
|
27734
27764
|
}
|
|
27765
|
+
if (object.chatSpaceLinkData != null) {
|
|
27766
|
+
if (typeof object.chatSpaceLinkData !== "object")
|
|
27767
|
+
throw TypeError(".google.chat.v1.RichLinkMetadata.chatSpaceLinkData: object expected");
|
|
27768
|
+
message.chatSpaceLinkData = $root.google.chat.v1.ChatSpaceLinkData.fromObject(object.chatSpaceLinkData);
|
|
27769
|
+
}
|
|
27735
27770
|
return message;
|
|
27736
27771
|
};
|
|
27737
27772
|
|
|
@@ -27761,6 +27796,11 @@
|
|
|
27761
27796
|
if (options.oneofs)
|
|
27762
27797
|
object.data = "driveLinkData";
|
|
27763
27798
|
}
|
|
27799
|
+
if (message.chatSpaceLinkData != null && message.hasOwnProperty("chatSpaceLinkData")) {
|
|
27800
|
+
object.chatSpaceLinkData = $root.google.chat.v1.ChatSpaceLinkData.toObject(message.chatSpaceLinkData, options);
|
|
27801
|
+
if (options.oneofs)
|
|
27802
|
+
object.data = "chatSpaceLinkData";
|
|
27803
|
+
}
|
|
27764
27804
|
return object;
|
|
27765
27805
|
};
|
|
27766
27806
|
|
|
@@ -27796,11 +27836,13 @@
|
|
|
27796
27836
|
* @enum {number}
|
|
27797
27837
|
* @property {number} RICH_LINK_TYPE_UNSPECIFIED=0 RICH_LINK_TYPE_UNSPECIFIED value
|
|
27798
27838
|
* @property {number} DRIVE_FILE=1 DRIVE_FILE value
|
|
27839
|
+
* @property {number} CHAT_SPACE=2 CHAT_SPACE value
|
|
27799
27840
|
*/
|
|
27800
27841
|
RichLinkMetadata.RichLinkType = (function() {
|
|
27801
27842
|
var valuesById = {}, values = Object.create(valuesById);
|
|
27802
27843
|
values[valuesById[0] = "RICH_LINK_TYPE_UNSPECIFIED"] = 0;
|
|
27803
27844
|
values[valuesById[1] = "DRIVE_FILE"] = 1;
|
|
27845
|
+
values[valuesById[2] = "CHAT_SPACE"] = 2;
|
|
27804
27846
|
return values;
|
|
27805
27847
|
})();
|
|
27806
27848
|
|
|
@@ -28039,6 +28081,256 @@
|
|
|
28039
28081
|
return DriveLinkData;
|
|
28040
28082
|
})();
|
|
28041
28083
|
|
|
28084
|
+
v1.ChatSpaceLinkData = (function() {
|
|
28085
|
+
|
|
28086
|
+
/**
|
|
28087
|
+
* Properties of a ChatSpaceLinkData.
|
|
28088
|
+
* @memberof google.chat.v1
|
|
28089
|
+
* @interface IChatSpaceLinkData
|
|
28090
|
+
* @property {string|null} [space] ChatSpaceLinkData space
|
|
28091
|
+
* @property {string|null} [thread] ChatSpaceLinkData thread
|
|
28092
|
+
* @property {string|null} [message] ChatSpaceLinkData message
|
|
28093
|
+
*/
|
|
28094
|
+
|
|
28095
|
+
/**
|
|
28096
|
+
* Constructs a new ChatSpaceLinkData.
|
|
28097
|
+
* @memberof google.chat.v1
|
|
28098
|
+
* @classdesc Represents a ChatSpaceLinkData.
|
|
28099
|
+
* @implements IChatSpaceLinkData
|
|
28100
|
+
* @constructor
|
|
28101
|
+
* @param {google.chat.v1.IChatSpaceLinkData=} [properties] Properties to set
|
|
28102
|
+
*/
|
|
28103
|
+
function ChatSpaceLinkData(properties) {
|
|
28104
|
+
if (properties)
|
|
28105
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
28106
|
+
if (properties[keys[i]] != null)
|
|
28107
|
+
this[keys[i]] = properties[keys[i]];
|
|
28108
|
+
}
|
|
28109
|
+
|
|
28110
|
+
/**
|
|
28111
|
+
* ChatSpaceLinkData space.
|
|
28112
|
+
* @member {string} space
|
|
28113
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28114
|
+
* @instance
|
|
28115
|
+
*/
|
|
28116
|
+
ChatSpaceLinkData.prototype.space = "";
|
|
28117
|
+
|
|
28118
|
+
/**
|
|
28119
|
+
* ChatSpaceLinkData thread.
|
|
28120
|
+
* @member {string} thread
|
|
28121
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28122
|
+
* @instance
|
|
28123
|
+
*/
|
|
28124
|
+
ChatSpaceLinkData.prototype.thread = "";
|
|
28125
|
+
|
|
28126
|
+
/**
|
|
28127
|
+
* ChatSpaceLinkData message.
|
|
28128
|
+
* @member {string} message
|
|
28129
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28130
|
+
* @instance
|
|
28131
|
+
*/
|
|
28132
|
+
ChatSpaceLinkData.prototype.message = "";
|
|
28133
|
+
|
|
28134
|
+
/**
|
|
28135
|
+
* Creates a new ChatSpaceLinkData instance using the specified properties.
|
|
28136
|
+
* @function create
|
|
28137
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28138
|
+
* @static
|
|
28139
|
+
* @param {google.chat.v1.IChatSpaceLinkData=} [properties] Properties to set
|
|
28140
|
+
* @returns {google.chat.v1.ChatSpaceLinkData} ChatSpaceLinkData instance
|
|
28141
|
+
*/
|
|
28142
|
+
ChatSpaceLinkData.create = function create(properties) {
|
|
28143
|
+
return new ChatSpaceLinkData(properties);
|
|
28144
|
+
};
|
|
28145
|
+
|
|
28146
|
+
/**
|
|
28147
|
+
* Encodes the specified ChatSpaceLinkData message. Does not implicitly {@link google.chat.v1.ChatSpaceLinkData.verify|verify} messages.
|
|
28148
|
+
* @function encode
|
|
28149
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28150
|
+
* @static
|
|
28151
|
+
* @param {google.chat.v1.IChatSpaceLinkData} message ChatSpaceLinkData message or plain object to encode
|
|
28152
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28153
|
+
* @returns {$protobuf.Writer} Writer
|
|
28154
|
+
*/
|
|
28155
|
+
ChatSpaceLinkData.encode = function encode(message, writer) {
|
|
28156
|
+
if (!writer)
|
|
28157
|
+
writer = $Writer.create();
|
|
28158
|
+
if (message.space != null && Object.hasOwnProperty.call(message, "space"))
|
|
28159
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.space);
|
|
28160
|
+
if (message.thread != null && Object.hasOwnProperty.call(message, "thread"))
|
|
28161
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.thread);
|
|
28162
|
+
if (message.message != null && Object.hasOwnProperty.call(message, "message"))
|
|
28163
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.message);
|
|
28164
|
+
return writer;
|
|
28165
|
+
};
|
|
28166
|
+
|
|
28167
|
+
/**
|
|
28168
|
+
* Encodes the specified ChatSpaceLinkData message, length delimited. Does not implicitly {@link google.chat.v1.ChatSpaceLinkData.verify|verify} messages.
|
|
28169
|
+
* @function encodeDelimited
|
|
28170
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28171
|
+
* @static
|
|
28172
|
+
* @param {google.chat.v1.IChatSpaceLinkData} message ChatSpaceLinkData message or plain object to encode
|
|
28173
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28174
|
+
* @returns {$protobuf.Writer} Writer
|
|
28175
|
+
*/
|
|
28176
|
+
ChatSpaceLinkData.encodeDelimited = function encodeDelimited(message, writer) {
|
|
28177
|
+
return this.encode(message, writer).ldelim();
|
|
28178
|
+
};
|
|
28179
|
+
|
|
28180
|
+
/**
|
|
28181
|
+
* Decodes a ChatSpaceLinkData message from the specified reader or buffer.
|
|
28182
|
+
* @function decode
|
|
28183
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28184
|
+
* @static
|
|
28185
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28186
|
+
* @param {number} [length] Message length if known beforehand
|
|
28187
|
+
* @returns {google.chat.v1.ChatSpaceLinkData} ChatSpaceLinkData
|
|
28188
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28189
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28190
|
+
*/
|
|
28191
|
+
ChatSpaceLinkData.decode = function decode(reader, length) {
|
|
28192
|
+
if (!(reader instanceof $Reader))
|
|
28193
|
+
reader = $Reader.create(reader);
|
|
28194
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.ChatSpaceLinkData();
|
|
28195
|
+
while (reader.pos < end) {
|
|
28196
|
+
var tag = reader.uint32();
|
|
28197
|
+
switch (tag >>> 3) {
|
|
28198
|
+
case 1: {
|
|
28199
|
+
message.space = reader.string();
|
|
28200
|
+
break;
|
|
28201
|
+
}
|
|
28202
|
+
case 2: {
|
|
28203
|
+
message.thread = reader.string();
|
|
28204
|
+
break;
|
|
28205
|
+
}
|
|
28206
|
+
case 3: {
|
|
28207
|
+
message.message = reader.string();
|
|
28208
|
+
break;
|
|
28209
|
+
}
|
|
28210
|
+
default:
|
|
28211
|
+
reader.skipType(tag & 7);
|
|
28212
|
+
break;
|
|
28213
|
+
}
|
|
28214
|
+
}
|
|
28215
|
+
return message;
|
|
28216
|
+
};
|
|
28217
|
+
|
|
28218
|
+
/**
|
|
28219
|
+
* Decodes a ChatSpaceLinkData message from the specified reader or buffer, length delimited.
|
|
28220
|
+
* @function decodeDelimited
|
|
28221
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28222
|
+
* @static
|
|
28223
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28224
|
+
* @returns {google.chat.v1.ChatSpaceLinkData} ChatSpaceLinkData
|
|
28225
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28226
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28227
|
+
*/
|
|
28228
|
+
ChatSpaceLinkData.decodeDelimited = function decodeDelimited(reader) {
|
|
28229
|
+
if (!(reader instanceof $Reader))
|
|
28230
|
+
reader = new $Reader(reader);
|
|
28231
|
+
return this.decode(reader, reader.uint32());
|
|
28232
|
+
};
|
|
28233
|
+
|
|
28234
|
+
/**
|
|
28235
|
+
* Verifies a ChatSpaceLinkData message.
|
|
28236
|
+
* @function verify
|
|
28237
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28238
|
+
* @static
|
|
28239
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
28240
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
28241
|
+
*/
|
|
28242
|
+
ChatSpaceLinkData.verify = function verify(message) {
|
|
28243
|
+
if (typeof message !== "object" || message === null)
|
|
28244
|
+
return "object expected";
|
|
28245
|
+
if (message.space != null && message.hasOwnProperty("space"))
|
|
28246
|
+
if (!$util.isString(message.space))
|
|
28247
|
+
return "space: string expected";
|
|
28248
|
+
if (message.thread != null && message.hasOwnProperty("thread"))
|
|
28249
|
+
if (!$util.isString(message.thread))
|
|
28250
|
+
return "thread: string expected";
|
|
28251
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
28252
|
+
if (!$util.isString(message.message))
|
|
28253
|
+
return "message: string expected";
|
|
28254
|
+
return null;
|
|
28255
|
+
};
|
|
28256
|
+
|
|
28257
|
+
/**
|
|
28258
|
+
* Creates a ChatSpaceLinkData message from a plain object. Also converts values to their respective internal types.
|
|
28259
|
+
* @function fromObject
|
|
28260
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28261
|
+
* @static
|
|
28262
|
+
* @param {Object.<string,*>} object Plain object
|
|
28263
|
+
* @returns {google.chat.v1.ChatSpaceLinkData} ChatSpaceLinkData
|
|
28264
|
+
*/
|
|
28265
|
+
ChatSpaceLinkData.fromObject = function fromObject(object) {
|
|
28266
|
+
if (object instanceof $root.google.chat.v1.ChatSpaceLinkData)
|
|
28267
|
+
return object;
|
|
28268
|
+
var message = new $root.google.chat.v1.ChatSpaceLinkData();
|
|
28269
|
+
if (object.space != null)
|
|
28270
|
+
message.space = String(object.space);
|
|
28271
|
+
if (object.thread != null)
|
|
28272
|
+
message.thread = String(object.thread);
|
|
28273
|
+
if (object.message != null)
|
|
28274
|
+
message.message = String(object.message);
|
|
28275
|
+
return message;
|
|
28276
|
+
};
|
|
28277
|
+
|
|
28278
|
+
/**
|
|
28279
|
+
* Creates a plain object from a ChatSpaceLinkData message. Also converts values to other types if specified.
|
|
28280
|
+
* @function toObject
|
|
28281
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28282
|
+
* @static
|
|
28283
|
+
* @param {google.chat.v1.ChatSpaceLinkData} message ChatSpaceLinkData
|
|
28284
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
28285
|
+
* @returns {Object.<string,*>} Plain object
|
|
28286
|
+
*/
|
|
28287
|
+
ChatSpaceLinkData.toObject = function toObject(message, options) {
|
|
28288
|
+
if (!options)
|
|
28289
|
+
options = {};
|
|
28290
|
+
var object = {};
|
|
28291
|
+
if (options.defaults) {
|
|
28292
|
+
object.space = "";
|
|
28293
|
+
object.thread = "";
|
|
28294
|
+
object.message = "";
|
|
28295
|
+
}
|
|
28296
|
+
if (message.space != null && message.hasOwnProperty("space"))
|
|
28297
|
+
object.space = message.space;
|
|
28298
|
+
if (message.thread != null && message.hasOwnProperty("thread"))
|
|
28299
|
+
object.thread = message.thread;
|
|
28300
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
28301
|
+
object.message = message.message;
|
|
28302
|
+
return object;
|
|
28303
|
+
};
|
|
28304
|
+
|
|
28305
|
+
/**
|
|
28306
|
+
* Converts this ChatSpaceLinkData to JSON.
|
|
28307
|
+
* @function toJSON
|
|
28308
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28309
|
+
* @instance
|
|
28310
|
+
* @returns {Object.<string,*>} JSON object
|
|
28311
|
+
*/
|
|
28312
|
+
ChatSpaceLinkData.prototype.toJSON = function toJSON() {
|
|
28313
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
28314
|
+
};
|
|
28315
|
+
|
|
28316
|
+
/**
|
|
28317
|
+
* Gets the default type url for ChatSpaceLinkData
|
|
28318
|
+
* @function getTypeUrl
|
|
28319
|
+
* @memberof google.chat.v1.ChatSpaceLinkData
|
|
28320
|
+
* @static
|
|
28321
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
28322
|
+
* @returns {string} The default type url
|
|
28323
|
+
*/
|
|
28324
|
+
ChatSpaceLinkData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
28325
|
+
if (typeUrlPrefix === undefined) {
|
|
28326
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
28327
|
+
}
|
|
28328
|
+
return typeUrlPrefix + "/google.chat.v1.ChatSpaceLinkData";
|
|
28329
|
+
};
|
|
28330
|
+
|
|
28331
|
+
return ChatSpaceLinkData;
|
|
28332
|
+
})();
|
|
28333
|
+
|
|
28042
28334
|
/**
|
|
28043
28335
|
* AnnotationType enum.
|
|
28044
28336
|
* @name google.chat.v1.AnnotationType
|
package/build/protos/protos.json
CHANGED
|
@@ -2531,7 +2531,8 @@
|
|
|
2531
2531
|
"oneofs": {
|
|
2532
2532
|
"data": {
|
|
2533
2533
|
"oneof": [
|
|
2534
|
-
"driveLinkData"
|
|
2534
|
+
"driveLinkData",
|
|
2535
|
+
"chatSpaceLinkData"
|
|
2535
2536
|
]
|
|
2536
2537
|
}
|
|
2537
2538
|
},
|
|
@@ -2547,13 +2548,18 @@
|
|
|
2547
2548
|
"driveLinkData": {
|
|
2548
2549
|
"type": "DriveLinkData",
|
|
2549
2550
|
"id": 3
|
|
2551
|
+
},
|
|
2552
|
+
"chatSpaceLinkData": {
|
|
2553
|
+
"type": "ChatSpaceLinkData",
|
|
2554
|
+
"id": 4
|
|
2550
2555
|
}
|
|
2551
2556
|
},
|
|
2552
2557
|
"nested": {
|
|
2553
2558
|
"RichLinkType": {
|
|
2554
2559
|
"values": {
|
|
2555
2560
|
"RICH_LINK_TYPE_UNSPECIFIED": 0,
|
|
2556
|
-
"DRIVE_FILE": 1
|
|
2561
|
+
"DRIVE_FILE": 1,
|
|
2562
|
+
"CHAT_SPACE": 2
|
|
2557
2563
|
}
|
|
2558
2564
|
}
|
|
2559
2565
|
}
|
|
@@ -2570,6 +2576,31 @@
|
|
|
2570
2576
|
}
|
|
2571
2577
|
}
|
|
2572
2578
|
},
|
|
2579
|
+
"ChatSpaceLinkData": {
|
|
2580
|
+
"fields": {
|
|
2581
|
+
"space": {
|
|
2582
|
+
"type": "string",
|
|
2583
|
+
"id": 1,
|
|
2584
|
+
"options": {
|
|
2585
|
+
"(google.api.resource_reference).type": "chat.googleapis.com/Space"
|
|
2586
|
+
}
|
|
2587
|
+
},
|
|
2588
|
+
"thread": {
|
|
2589
|
+
"type": "string",
|
|
2590
|
+
"id": 2,
|
|
2591
|
+
"options": {
|
|
2592
|
+
"(google.api.resource_reference).type": "chat.googleapis.com/Thread"
|
|
2593
|
+
}
|
|
2594
|
+
},
|
|
2595
|
+
"message": {
|
|
2596
|
+
"type": "string",
|
|
2597
|
+
"id": 3,
|
|
2598
|
+
"options": {
|
|
2599
|
+
"(google.api.resource_reference).type": "chat.googleapis.com/Message"
|
|
2600
|
+
}
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2603
|
+
},
|
|
2573
2604
|
"AnnotationType": {
|
|
2574
2605
|
"values": {
|
|
2575
2606
|
"ANNOTATION_TYPE_UNSPECIFIED": 0,
|