@google-apps/chat 0.3.0 → 0.5.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 +16 -0
- package/README.md +3 -0
- package/build/protos/google/apps/card/v1/card.proto +1 -1
- package/build/protos/google/chat/v1/action_status.proto +2 -1
- package/build/protos/google/chat/v1/annotation.proto +3 -1
- package/build/protos/google/chat/v1/attachment.proto +2 -1
- package/build/protos/google/chat/v1/chat_service.proto +71 -18
- package/build/protos/google/chat/v1/contextual_addon.proto +2 -1
- package/build/protos/google/chat/v1/deletion_metadata.proto +2 -1
- package/build/protos/google/chat/v1/group.proto +2 -1
- package/build/protos/google/chat/v1/history_state.proto +2 -1
- package/build/protos/google/chat/v1/matched_url.proto +2 -1
- package/build/protos/google/chat/v1/membership.proto +7 -5
- package/build/protos/google/chat/v1/message.proto +2 -1
- package/build/protos/google/chat/v1/reaction.proto +4 -3
- package/build/protos/google/chat/v1/slash_command.proto +2 -1
- package/build/protos/google/chat/v1/space.proto +7 -7
- package/build/protos/google/chat/v1/space_read_state.proto +113 -0
- package/build/protos/google/chat/v1/space_setup.proto +10 -9
- package/build/protos/google/chat/v1/thread_read_state.proto +75 -0
- package/build/protos/google/chat/v1/user.proto +2 -1
- package/build/protos/google/chat/v1/widgets.proto +2 -1
- package/build/protos/protos.d.ts +582 -16
- package/build/protos/protos.js +1255 -49
- package/build/protos/protos.json +163 -24
- package/build/src/v1/chat_service_client.d.ts +232 -26
- package/build/src/v1/chat_service_client.js +148 -0
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/build/src/v1/chat_service_client_config.json +15 -0
- package/package.json +1 -1
package/build/protos/protos.d.ts
CHANGED
|
@@ -3057,11 +3057,11 @@ export namespace google {
|
|
|
3057
3057
|
/** FieldOptions uninterpretedOption */
|
|
3058
3058
|
uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
|
3059
3059
|
|
|
3060
|
-
/** FieldOptions .google.api.fieldBehavior */
|
|
3061
|
-
".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
|
|
3062
|
-
|
|
3063
3060
|
/** FieldOptions .google.api.resourceReference */
|
|
3064
3061
|
".google.api.resourceReference"?: (google.api.IResourceReference|null);
|
|
3062
|
+
|
|
3063
|
+
/** FieldOptions .google.api.fieldBehavior */
|
|
3064
|
+
".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
|
|
3065
3065
|
}
|
|
3066
3066
|
|
|
3067
3067
|
/** Represents a FieldOptions. */
|
|
@@ -11518,6 +11518,48 @@ export namespace google {
|
|
|
11518
11518
|
* @returns Promise
|
|
11519
11519
|
*/
|
|
11520
11520
|
public deleteReaction(request: google.chat.v1.IDeleteReactionRequest): Promise<google.protobuf.Empty>;
|
|
11521
|
+
|
|
11522
|
+
/**
|
|
11523
|
+
* Calls GetSpaceReadState.
|
|
11524
|
+
* @param request GetSpaceReadStateRequest message or plain object
|
|
11525
|
+
* @param callback Node-style callback called with the error, if any, and SpaceReadState
|
|
11526
|
+
*/
|
|
11527
|
+
public getSpaceReadState(request: google.chat.v1.IGetSpaceReadStateRequest, callback: google.chat.v1.ChatService.GetSpaceReadStateCallback): void;
|
|
11528
|
+
|
|
11529
|
+
/**
|
|
11530
|
+
* Calls GetSpaceReadState.
|
|
11531
|
+
* @param request GetSpaceReadStateRequest message or plain object
|
|
11532
|
+
* @returns Promise
|
|
11533
|
+
*/
|
|
11534
|
+
public getSpaceReadState(request: google.chat.v1.IGetSpaceReadStateRequest): Promise<google.chat.v1.SpaceReadState>;
|
|
11535
|
+
|
|
11536
|
+
/**
|
|
11537
|
+
* Calls UpdateSpaceReadState.
|
|
11538
|
+
* @param request UpdateSpaceReadStateRequest message or plain object
|
|
11539
|
+
* @param callback Node-style callback called with the error, if any, and SpaceReadState
|
|
11540
|
+
*/
|
|
11541
|
+
public updateSpaceReadState(request: google.chat.v1.IUpdateSpaceReadStateRequest, callback: google.chat.v1.ChatService.UpdateSpaceReadStateCallback): void;
|
|
11542
|
+
|
|
11543
|
+
/**
|
|
11544
|
+
* Calls UpdateSpaceReadState.
|
|
11545
|
+
* @param request UpdateSpaceReadStateRequest message or plain object
|
|
11546
|
+
* @returns Promise
|
|
11547
|
+
*/
|
|
11548
|
+
public updateSpaceReadState(request: google.chat.v1.IUpdateSpaceReadStateRequest): Promise<google.chat.v1.SpaceReadState>;
|
|
11549
|
+
|
|
11550
|
+
/**
|
|
11551
|
+
* Calls GetThreadReadState.
|
|
11552
|
+
* @param request GetThreadReadStateRequest message or plain object
|
|
11553
|
+
* @param callback Node-style callback called with the error, if any, and ThreadReadState
|
|
11554
|
+
*/
|
|
11555
|
+
public getThreadReadState(request: google.chat.v1.IGetThreadReadStateRequest, callback: google.chat.v1.ChatService.GetThreadReadStateCallback): void;
|
|
11556
|
+
|
|
11557
|
+
/**
|
|
11558
|
+
* Calls GetThreadReadState.
|
|
11559
|
+
* @param request GetThreadReadStateRequest message or plain object
|
|
11560
|
+
* @returns Promise
|
|
11561
|
+
*/
|
|
11562
|
+
public getThreadReadState(request: google.chat.v1.IGetThreadReadStateRequest): Promise<google.chat.v1.ThreadReadState>;
|
|
11521
11563
|
}
|
|
11522
11564
|
|
|
11523
11565
|
namespace ChatService {
|
|
@@ -11682,6 +11724,27 @@ export namespace google {
|
|
|
11682
11724
|
* @param [response] Empty
|
|
11683
11725
|
*/
|
|
11684
11726
|
type DeleteReactionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
|
|
11727
|
+
|
|
11728
|
+
/**
|
|
11729
|
+
* Callback as used by {@link google.chat.v1.ChatService|getSpaceReadState}.
|
|
11730
|
+
* @param error Error, if any
|
|
11731
|
+
* @param [response] SpaceReadState
|
|
11732
|
+
*/
|
|
11733
|
+
type GetSpaceReadStateCallback = (error: (Error|null), response?: google.chat.v1.SpaceReadState) => void;
|
|
11734
|
+
|
|
11735
|
+
/**
|
|
11736
|
+
* Callback as used by {@link google.chat.v1.ChatService|updateSpaceReadState}.
|
|
11737
|
+
* @param error Error, if any
|
|
11738
|
+
* @param [response] SpaceReadState
|
|
11739
|
+
*/
|
|
11740
|
+
type UpdateSpaceReadStateCallback = (error: (Error|null), response?: google.chat.v1.SpaceReadState) => void;
|
|
11741
|
+
|
|
11742
|
+
/**
|
|
11743
|
+
* Callback as used by {@link google.chat.v1.ChatService|getThreadReadState}.
|
|
11744
|
+
* @param error Error, if any
|
|
11745
|
+
* @param [response] ThreadReadState
|
|
11746
|
+
*/
|
|
11747
|
+
type GetThreadReadStateCallback = (error: (Error|null), response?: google.chat.v1.ThreadReadState) => void;
|
|
11685
11748
|
}
|
|
11686
11749
|
|
|
11687
11750
|
/** Properties of a Membership. */
|
|
@@ -18667,6 +18730,309 @@ export namespace google {
|
|
|
18667
18730
|
HISTORY_ON = 2
|
|
18668
18731
|
}
|
|
18669
18732
|
|
|
18733
|
+
/** Properties of a SpaceReadState. */
|
|
18734
|
+
interface ISpaceReadState {
|
|
18735
|
+
|
|
18736
|
+
/** SpaceReadState name */
|
|
18737
|
+
name?: (string|null);
|
|
18738
|
+
|
|
18739
|
+
/** SpaceReadState lastReadTime */
|
|
18740
|
+
lastReadTime?: (google.protobuf.ITimestamp|null);
|
|
18741
|
+
}
|
|
18742
|
+
|
|
18743
|
+
/** Represents a SpaceReadState. */
|
|
18744
|
+
class SpaceReadState implements ISpaceReadState {
|
|
18745
|
+
|
|
18746
|
+
/**
|
|
18747
|
+
* Constructs a new SpaceReadState.
|
|
18748
|
+
* @param [properties] Properties to set
|
|
18749
|
+
*/
|
|
18750
|
+
constructor(properties?: google.chat.v1.ISpaceReadState);
|
|
18751
|
+
|
|
18752
|
+
/** SpaceReadState name. */
|
|
18753
|
+
public name: string;
|
|
18754
|
+
|
|
18755
|
+
/** SpaceReadState lastReadTime. */
|
|
18756
|
+
public lastReadTime?: (google.protobuf.ITimestamp|null);
|
|
18757
|
+
|
|
18758
|
+
/**
|
|
18759
|
+
* Creates a new SpaceReadState instance using the specified properties.
|
|
18760
|
+
* @param [properties] Properties to set
|
|
18761
|
+
* @returns SpaceReadState instance
|
|
18762
|
+
*/
|
|
18763
|
+
public static create(properties?: google.chat.v1.ISpaceReadState): google.chat.v1.SpaceReadState;
|
|
18764
|
+
|
|
18765
|
+
/**
|
|
18766
|
+
* Encodes the specified SpaceReadState message. Does not implicitly {@link google.chat.v1.SpaceReadState.verify|verify} messages.
|
|
18767
|
+
* @param message SpaceReadState message or plain object to encode
|
|
18768
|
+
* @param [writer] Writer to encode to
|
|
18769
|
+
* @returns Writer
|
|
18770
|
+
*/
|
|
18771
|
+
public static encode(message: google.chat.v1.ISpaceReadState, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18772
|
+
|
|
18773
|
+
/**
|
|
18774
|
+
* Encodes the specified SpaceReadState message, length delimited. Does not implicitly {@link google.chat.v1.SpaceReadState.verify|verify} messages.
|
|
18775
|
+
* @param message SpaceReadState message or plain object to encode
|
|
18776
|
+
* @param [writer] Writer to encode to
|
|
18777
|
+
* @returns Writer
|
|
18778
|
+
*/
|
|
18779
|
+
public static encodeDelimited(message: google.chat.v1.ISpaceReadState, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18780
|
+
|
|
18781
|
+
/**
|
|
18782
|
+
* Decodes a SpaceReadState message from the specified reader or buffer.
|
|
18783
|
+
* @param reader Reader or buffer to decode from
|
|
18784
|
+
* @param [length] Message length if known beforehand
|
|
18785
|
+
* @returns SpaceReadState
|
|
18786
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18787
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18788
|
+
*/
|
|
18789
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.SpaceReadState;
|
|
18790
|
+
|
|
18791
|
+
/**
|
|
18792
|
+
* Decodes a SpaceReadState message from the specified reader or buffer, length delimited.
|
|
18793
|
+
* @param reader Reader or buffer to decode from
|
|
18794
|
+
* @returns SpaceReadState
|
|
18795
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18796
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18797
|
+
*/
|
|
18798
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.SpaceReadState;
|
|
18799
|
+
|
|
18800
|
+
/**
|
|
18801
|
+
* Verifies a SpaceReadState message.
|
|
18802
|
+
* @param message Plain object to verify
|
|
18803
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
18804
|
+
*/
|
|
18805
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
18806
|
+
|
|
18807
|
+
/**
|
|
18808
|
+
* Creates a SpaceReadState message from a plain object. Also converts values to their respective internal types.
|
|
18809
|
+
* @param object Plain object
|
|
18810
|
+
* @returns SpaceReadState
|
|
18811
|
+
*/
|
|
18812
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.SpaceReadState;
|
|
18813
|
+
|
|
18814
|
+
/**
|
|
18815
|
+
* Creates a plain object from a SpaceReadState message. Also converts values to other types if specified.
|
|
18816
|
+
* @param message SpaceReadState
|
|
18817
|
+
* @param [options] Conversion options
|
|
18818
|
+
* @returns Plain object
|
|
18819
|
+
*/
|
|
18820
|
+
public static toObject(message: google.chat.v1.SpaceReadState, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
18821
|
+
|
|
18822
|
+
/**
|
|
18823
|
+
* Converts this SpaceReadState to JSON.
|
|
18824
|
+
* @returns JSON object
|
|
18825
|
+
*/
|
|
18826
|
+
public toJSON(): { [k: string]: any };
|
|
18827
|
+
|
|
18828
|
+
/**
|
|
18829
|
+
* Gets the default type url for SpaceReadState
|
|
18830
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
18831
|
+
* @returns The default type url
|
|
18832
|
+
*/
|
|
18833
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
18834
|
+
}
|
|
18835
|
+
|
|
18836
|
+
/** Properties of a GetSpaceReadStateRequest. */
|
|
18837
|
+
interface IGetSpaceReadStateRequest {
|
|
18838
|
+
|
|
18839
|
+
/** GetSpaceReadStateRequest name */
|
|
18840
|
+
name?: (string|null);
|
|
18841
|
+
}
|
|
18842
|
+
|
|
18843
|
+
/** Represents a GetSpaceReadStateRequest. */
|
|
18844
|
+
class GetSpaceReadStateRequest implements IGetSpaceReadStateRequest {
|
|
18845
|
+
|
|
18846
|
+
/**
|
|
18847
|
+
* Constructs a new GetSpaceReadStateRequest.
|
|
18848
|
+
* @param [properties] Properties to set
|
|
18849
|
+
*/
|
|
18850
|
+
constructor(properties?: google.chat.v1.IGetSpaceReadStateRequest);
|
|
18851
|
+
|
|
18852
|
+
/** GetSpaceReadStateRequest name. */
|
|
18853
|
+
public name: string;
|
|
18854
|
+
|
|
18855
|
+
/**
|
|
18856
|
+
* Creates a new GetSpaceReadStateRequest instance using the specified properties.
|
|
18857
|
+
* @param [properties] Properties to set
|
|
18858
|
+
* @returns GetSpaceReadStateRequest instance
|
|
18859
|
+
*/
|
|
18860
|
+
public static create(properties?: google.chat.v1.IGetSpaceReadStateRequest): google.chat.v1.GetSpaceReadStateRequest;
|
|
18861
|
+
|
|
18862
|
+
/**
|
|
18863
|
+
* Encodes the specified GetSpaceReadStateRequest message. Does not implicitly {@link google.chat.v1.GetSpaceReadStateRequest.verify|verify} messages.
|
|
18864
|
+
* @param message GetSpaceReadStateRequest message or plain object to encode
|
|
18865
|
+
* @param [writer] Writer to encode to
|
|
18866
|
+
* @returns Writer
|
|
18867
|
+
*/
|
|
18868
|
+
public static encode(message: google.chat.v1.IGetSpaceReadStateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18869
|
+
|
|
18870
|
+
/**
|
|
18871
|
+
* Encodes the specified GetSpaceReadStateRequest message, length delimited. Does not implicitly {@link google.chat.v1.GetSpaceReadStateRequest.verify|verify} messages.
|
|
18872
|
+
* @param message GetSpaceReadStateRequest message or plain object to encode
|
|
18873
|
+
* @param [writer] Writer to encode to
|
|
18874
|
+
* @returns Writer
|
|
18875
|
+
*/
|
|
18876
|
+
public static encodeDelimited(message: google.chat.v1.IGetSpaceReadStateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18877
|
+
|
|
18878
|
+
/**
|
|
18879
|
+
* Decodes a GetSpaceReadStateRequest message from the specified reader or buffer.
|
|
18880
|
+
* @param reader Reader or buffer to decode from
|
|
18881
|
+
* @param [length] Message length if known beforehand
|
|
18882
|
+
* @returns GetSpaceReadStateRequest
|
|
18883
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18884
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18885
|
+
*/
|
|
18886
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.GetSpaceReadStateRequest;
|
|
18887
|
+
|
|
18888
|
+
/**
|
|
18889
|
+
* Decodes a GetSpaceReadStateRequest message from the specified reader or buffer, length delimited.
|
|
18890
|
+
* @param reader Reader or buffer to decode from
|
|
18891
|
+
* @returns GetSpaceReadStateRequest
|
|
18892
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18893
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18894
|
+
*/
|
|
18895
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.GetSpaceReadStateRequest;
|
|
18896
|
+
|
|
18897
|
+
/**
|
|
18898
|
+
* Verifies a GetSpaceReadStateRequest message.
|
|
18899
|
+
* @param message Plain object to verify
|
|
18900
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
18901
|
+
*/
|
|
18902
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
18903
|
+
|
|
18904
|
+
/**
|
|
18905
|
+
* Creates a GetSpaceReadStateRequest message from a plain object. Also converts values to their respective internal types.
|
|
18906
|
+
* @param object Plain object
|
|
18907
|
+
* @returns GetSpaceReadStateRequest
|
|
18908
|
+
*/
|
|
18909
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.GetSpaceReadStateRequest;
|
|
18910
|
+
|
|
18911
|
+
/**
|
|
18912
|
+
* Creates a plain object from a GetSpaceReadStateRequest message. Also converts values to other types if specified.
|
|
18913
|
+
* @param message GetSpaceReadStateRequest
|
|
18914
|
+
* @param [options] Conversion options
|
|
18915
|
+
* @returns Plain object
|
|
18916
|
+
*/
|
|
18917
|
+
public static toObject(message: google.chat.v1.GetSpaceReadStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
18918
|
+
|
|
18919
|
+
/**
|
|
18920
|
+
* Converts this GetSpaceReadStateRequest to JSON.
|
|
18921
|
+
* @returns JSON object
|
|
18922
|
+
*/
|
|
18923
|
+
public toJSON(): { [k: string]: any };
|
|
18924
|
+
|
|
18925
|
+
/**
|
|
18926
|
+
* Gets the default type url for GetSpaceReadStateRequest
|
|
18927
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
18928
|
+
* @returns The default type url
|
|
18929
|
+
*/
|
|
18930
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
18931
|
+
}
|
|
18932
|
+
|
|
18933
|
+
/** Properties of an UpdateSpaceReadStateRequest. */
|
|
18934
|
+
interface IUpdateSpaceReadStateRequest {
|
|
18935
|
+
|
|
18936
|
+
/** UpdateSpaceReadStateRequest spaceReadState */
|
|
18937
|
+
spaceReadState?: (google.chat.v1.ISpaceReadState|null);
|
|
18938
|
+
|
|
18939
|
+
/** UpdateSpaceReadStateRequest updateMask */
|
|
18940
|
+
updateMask?: (google.protobuf.IFieldMask|null);
|
|
18941
|
+
}
|
|
18942
|
+
|
|
18943
|
+
/** Represents an UpdateSpaceReadStateRequest. */
|
|
18944
|
+
class UpdateSpaceReadStateRequest implements IUpdateSpaceReadStateRequest {
|
|
18945
|
+
|
|
18946
|
+
/**
|
|
18947
|
+
* Constructs a new UpdateSpaceReadStateRequest.
|
|
18948
|
+
* @param [properties] Properties to set
|
|
18949
|
+
*/
|
|
18950
|
+
constructor(properties?: google.chat.v1.IUpdateSpaceReadStateRequest);
|
|
18951
|
+
|
|
18952
|
+
/** UpdateSpaceReadStateRequest spaceReadState. */
|
|
18953
|
+
public spaceReadState?: (google.chat.v1.ISpaceReadState|null);
|
|
18954
|
+
|
|
18955
|
+
/** UpdateSpaceReadStateRequest updateMask. */
|
|
18956
|
+
public updateMask?: (google.protobuf.IFieldMask|null);
|
|
18957
|
+
|
|
18958
|
+
/**
|
|
18959
|
+
* Creates a new UpdateSpaceReadStateRequest instance using the specified properties.
|
|
18960
|
+
* @param [properties] Properties to set
|
|
18961
|
+
* @returns UpdateSpaceReadStateRequest instance
|
|
18962
|
+
*/
|
|
18963
|
+
public static create(properties?: google.chat.v1.IUpdateSpaceReadStateRequest): google.chat.v1.UpdateSpaceReadStateRequest;
|
|
18964
|
+
|
|
18965
|
+
/**
|
|
18966
|
+
* Encodes the specified UpdateSpaceReadStateRequest message. Does not implicitly {@link google.chat.v1.UpdateSpaceReadStateRequest.verify|verify} messages.
|
|
18967
|
+
* @param message UpdateSpaceReadStateRequest message or plain object to encode
|
|
18968
|
+
* @param [writer] Writer to encode to
|
|
18969
|
+
* @returns Writer
|
|
18970
|
+
*/
|
|
18971
|
+
public static encode(message: google.chat.v1.IUpdateSpaceReadStateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18972
|
+
|
|
18973
|
+
/**
|
|
18974
|
+
* Encodes the specified UpdateSpaceReadStateRequest message, length delimited. Does not implicitly {@link google.chat.v1.UpdateSpaceReadStateRequest.verify|verify} messages.
|
|
18975
|
+
* @param message UpdateSpaceReadStateRequest message or plain object to encode
|
|
18976
|
+
* @param [writer] Writer to encode to
|
|
18977
|
+
* @returns Writer
|
|
18978
|
+
*/
|
|
18979
|
+
public static encodeDelimited(message: google.chat.v1.IUpdateSpaceReadStateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18980
|
+
|
|
18981
|
+
/**
|
|
18982
|
+
* Decodes an UpdateSpaceReadStateRequest message from the specified reader or buffer.
|
|
18983
|
+
* @param reader Reader or buffer to decode from
|
|
18984
|
+
* @param [length] Message length if known beforehand
|
|
18985
|
+
* @returns UpdateSpaceReadStateRequest
|
|
18986
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18987
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18988
|
+
*/
|
|
18989
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.UpdateSpaceReadStateRequest;
|
|
18990
|
+
|
|
18991
|
+
/**
|
|
18992
|
+
* Decodes an UpdateSpaceReadStateRequest message from the specified reader or buffer, length delimited.
|
|
18993
|
+
* @param reader Reader or buffer to decode from
|
|
18994
|
+
* @returns UpdateSpaceReadStateRequest
|
|
18995
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18996
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18997
|
+
*/
|
|
18998
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.UpdateSpaceReadStateRequest;
|
|
18999
|
+
|
|
19000
|
+
/**
|
|
19001
|
+
* Verifies an UpdateSpaceReadStateRequest message.
|
|
19002
|
+
* @param message Plain object to verify
|
|
19003
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
19004
|
+
*/
|
|
19005
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
19006
|
+
|
|
19007
|
+
/**
|
|
19008
|
+
* Creates an UpdateSpaceReadStateRequest message from a plain object. Also converts values to their respective internal types.
|
|
19009
|
+
* @param object Plain object
|
|
19010
|
+
* @returns UpdateSpaceReadStateRequest
|
|
19011
|
+
*/
|
|
19012
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.UpdateSpaceReadStateRequest;
|
|
19013
|
+
|
|
19014
|
+
/**
|
|
19015
|
+
* Creates a plain object from an UpdateSpaceReadStateRequest message. Also converts values to other types if specified.
|
|
19016
|
+
* @param message UpdateSpaceReadStateRequest
|
|
19017
|
+
* @param [options] Conversion options
|
|
19018
|
+
* @returns Plain object
|
|
19019
|
+
*/
|
|
19020
|
+
public static toObject(message: google.chat.v1.UpdateSpaceReadStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
19021
|
+
|
|
19022
|
+
/**
|
|
19023
|
+
* Converts this UpdateSpaceReadStateRequest to JSON.
|
|
19024
|
+
* @returns JSON object
|
|
19025
|
+
*/
|
|
19026
|
+
public toJSON(): { [k: string]: any };
|
|
19027
|
+
|
|
19028
|
+
/**
|
|
19029
|
+
* Gets the default type url for UpdateSpaceReadStateRequest
|
|
19030
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
19031
|
+
* @returns The default type url
|
|
19032
|
+
*/
|
|
19033
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
19034
|
+
}
|
|
19035
|
+
|
|
18670
19036
|
/** Properties of a SetUpSpaceRequest. */
|
|
18671
19037
|
interface ISetUpSpaceRequest {
|
|
18672
19038
|
|
|
@@ -18775,6 +19141,206 @@ export namespace google {
|
|
|
18775
19141
|
*/
|
|
18776
19142
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
18777
19143
|
}
|
|
19144
|
+
|
|
19145
|
+
/** Properties of a ThreadReadState. */
|
|
19146
|
+
interface IThreadReadState {
|
|
19147
|
+
|
|
19148
|
+
/** ThreadReadState name */
|
|
19149
|
+
name?: (string|null);
|
|
19150
|
+
|
|
19151
|
+
/** ThreadReadState lastReadTime */
|
|
19152
|
+
lastReadTime?: (google.protobuf.ITimestamp|null);
|
|
19153
|
+
}
|
|
19154
|
+
|
|
19155
|
+
/** Represents a ThreadReadState. */
|
|
19156
|
+
class ThreadReadState implements IThreadReadState {
|
|
19157
|
+
|
|
19158
|
+
/**
|
|
19159
|
+
* Constructs a new ThreadReadState.
|
|
19160
|
+
* @param [properties] Properties to set
|
|
19161
|
+
*/
|
|
19162
|
+
constructor(properties?: google.chat.v1.IThreadReadState);
|
|
19163
|
+
|
|
19164
|
+
/** ThreadReadState name. */
|
|
19165
|
+
public name: string;
|
|
19166
|
+
|
|
19167
|
+
/** ThreadReadState lastReadTime. */
|
|
19168
|
+
public lastReadTime?: (google.protobuf.ITimestamp|null);
|
|
19169
|
+
|
|
19170
|
+
/**
|
|
19171
|
+
* Creates a new ThreadReadState instance using the specified properties.
|
|
19172
|
+
* @param [properties] Properties to set
|
|
19173
|
+
* @returns ThreadReadState instance
|
|
19174
|
+
*/
|
|
19175
|
+
public static create(properties?: google.chat.v1.IThreadReadState): google.chat.v1.ThreadReadState;
|
|
19176
|
+
|
|
19177
|
+
/**
|
|
19178
|
+
* Encodes the specified ThreadReadState message. Does not implicitly {@link google.chat.v1.ThreadReadState.verify|verify} messages.
|
|
19179
|
+
* @param message ThreadReadState message or plain object to encode
|
|
19180
|
+
* @param [writer] Writer to encode to
|
|
19181
|
+
* @returns Writer
|
|
19182
|
+
*/
|
|
19183
|
+
public static encode(message: google.chat.v1.IThreadReadState, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
19184
|
+
|
|
19185
|
+
/**
|
|
19186
|
+
* Encodes the specified ThreadReadState message, length delimited. Does not implicitly {@link google.chat.v1.ThreadReadState.verify|verify} messages.
|
|
19187
|
+
* @param message ThreadReadState message or plain object to encode
|
|
19188
|
+
* @param [writer] Writer to encode to
|
|
19189
|
+
* @returns Writer
|
|
19190
|
+
*/
|
|
19191
|
+
public static encodeDelimited(message: google.chat.v1.IThreadReadState, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
19192
|
+
|
|
19193
|
+
/**
|
|
19194
|
+
* Decodes a ThreadReadState message from the specified reader or buffer.
|
|
19195
|
+
* @param reader Reader or buffer to decode from
|
|
19196
|
+
* @param [length] Message length if known beforehand
|
|
19197
|
+
* @returns ThreadReadState
|
|
19198
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19199
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19200
|
+
*/
|
|
19201
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.ThreadReadState;
|
|
19202
|
+
|
|
19203
|
+
/**
|
|
19204
|
+
* Decodes a ThreadReadState message from the specified reader or buffer, length delimited.
|
|
19205
|
+
* @param reader Reader or buffer to decode from
|
|
19206
|
+
* @returns ThreadReadState
|
|
19207
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19208
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19209
|
+
*/
|
|
19210
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.ThreadReadState;
|
|
19211
|
+
|
|
19212
|
+
/**
|
|
19213
|
+
* Verifies a ThreadReadState message.
|
|
19214
|
+
* @param message Plain object to verify
|
|
19215
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
19216
|
+
*/
|
|
19217
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
19218
|
+
|
|
19219
|
+
/**
|
|
19220
|
+
* Creates a ThreadReadState message from a plain object. Also converts values to their respective internal types.
|
|
19221
|
+
* @param object Plain object
|
|
19222
|
+
* @returns ThreadReadState
|
|
19223
|
+
*/
|
|
19224
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.ThreadReadState;
|
|
19225
|
+
|
|
19226
|
+
/**
|
|
19227
|
+
* Creates a plain object from a ThreadReadState message. Also converts values to other types if specified.
|
|
19228
|
+
* @param message ThreadReadState
|
|
19229
|
+
* @param [options] Conversion options
|
|
19230
|
+
* @returns Plain object
|
|
19231
|
+
*/
|
|
19232
|
+
public static toObject(message: google.chat.v1.ThreadReadState, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
19233
|
+
|
|
19234
|
+
/**
|
|
19235
|
+
* Converts this ThreadReadState to JSON.
|
|
19236
|
+
* @returns JSON object
|
|
19237
|
+
*/
|
|
19238
|
+
public toJSON(): { [k: string]: any };
|
|
19239
|
+
|
|
19240
|
+
/**
|
|
19241
|
+
* Gets the default type url for ThreadReadState
|
|
19242
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
19243
|
+
* @returns The default type url
|
|
19244
|
+
*/
|
|
19245
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
19246
|
+
}
|
|
19247
|
+
|
|
19248
|
+
/** Properties of a GetThreadReadStateRequest. */
|
|
19249
|
+
interface IGetThreadReadStateRequest {
|
|
19250
|
+
|
|
19251
|
+
/** GetThreadReadStateRequest name */
|
|
19252
|
+
name?: (string|null);
|
|
19253
|
+
}
|
|
19254
|
+
|
|
19255
|
+
/** Represents a GetThreadReadStateRequest. */
|
|
19256
|
+
class GetThreadReadStateRequest implements IGetThreadReadStateRequest {
|
|
19257
|
+
|
|
19258
|
+
/**
|
|
19259
|
+
* Constructs a new GetThreadReadStateRequest.
|
|
19260
|
+
* @param [properties] Properties to set
|
|
19261
|
+
*/
|
|
19262
|
+
constructor(properties?: google.chat.v1.IGetThreadReadStateRequest);
|
|
19263
|
+
|
|
19264
|
+
/** GetThreadReadStateRequest name. */
|
|
19265
|
+
public name: string;
|
|
19266
|
+
|
|
19267
|
+
/**
|
|
19268
|
+
* Creates a new GetThreadReadStateRequest instance using the specified properties.
|
|
19269
|
+
* @param [properties] Properties to set
|
|
19270
|
+
* @returns GetThreadReadStateRequest instance
|
|
19271
|
+
*/
|
|
19272
|
+
public static create(properties?: google.chat.v1.IGetThreadReadStateRequest): google.chat.v1.GetThreadReadStateRequest;
|
|
19273
|
+
|
|
19274
|
+
/**
|
|
19275
|
+
* Encodes the specified GetThreadReadStateRequest message. Does not implicitly {@link google.chat.v1.GetThreadReadStateRequest.verify|verify} messages.
|
|
19276
|
+
* @param message GetThreadReadStateRequest message or plain object to encode
|
|
19277
|
+
* @param [writer] Writer to encode to
|
|
19278
|
+
* @returns Writer
|
|
19279
|
+
*/
|
|
19280
|
+
public static encode(message: google.chat.v1.IGetThreadReadStateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
19281
|
+
|
|
19282
|
+
/**
|
|
19283
|
+
* Encodes the specified GetThreadReadStateRequest message, length delimited. Does not implicitly {@link google.chat.v1.GetThreadReadStateRequest.verify|verify} messages.
|
|
19284
|
+
* @param message GetThreadReadStateRequest message or plain object to encode
|
|
19285
|
+
* @param [writer] Writer to encode to
|
|
19286
|
+
* @returns Writer
|
|
19287
|
+
*/
|
|
19288
|
+
public static encodeDelimited(message: google.chat.v1.IGetThreadReadStateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
19289
|
+
|
|
19290
|
+
/**
|
|
19291
|
+
* Decodes a GetThreadReadStateRequest message from the specified reader or buffer.
|
|
19292
|
+
* @param reader Reader or buffer to decode from
|
|
19293
|
+
* @param [length] Message length if known beforehand
|
|
19294
|
+
* @returns GetThreadReadStateRequest
|
|
19295
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19296
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19297
|
+
*/
|
|
19298
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.GetThreadReadStateRequest;
|
|
19299
|
+
|
|
19300
|
+
/**
|
|
19301
|
+
* Decodes a GetThreadReadStateRequest message from the specified reader or buffer, length delimited.
|
|
19302
|
+
* @param reader Reader or buffer to decode from
|
|
19303
|
+
* @returns GetThreadReadStateRequest
|
|
19304
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19305
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19306
|
+
*/
|
|
19307
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.GetThreadReadStateRequest;
|
|
19308
|
+
|
|
19309
|
+
/**
|
|
19310
|
+
* Verifies a GetThreadReadStateRequest message.
|
|
19311
|
+
* @param message Plain object to verify
|
|
19312
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
19313
|
+
*/
|
|
19314
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
19315
|
+
|
|
19316
|
+
/**
|
|
19317
|
+
* Creates a GetThreadReadStateRequest message from a plain object. Also converts values to their respective internal types.
|
|
19318
|
+
* @param object Plain object
|
|
19319
|
+
* @returns GetThreadReadStateRequest
|
|
19320
|
+
*/
|
|
19321
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.GetThreadReadStateRequest;
|
|
19322
|
+
|
|
19323
|
+
/**
|
|
19324
|
+
* Creates a plain object from a GetThreadReadStateRequest message. Also converts values to other types if specified.
|
|
19325
|
+
* @param message GetThreadReadStateRequest
|
|
19326
|
+
* @param [options] Conversion options
|
|
19327
|
+
* @returns Plain object
|
|
19328
|
+
*/
|
|
19329
|
+
public static toObject(message: google.chat.v1.GetThreadReadStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
19330
|
+
|
|
19331
|
+
/**
|
|
19332
|
+
* Converts this GetThreadReadStateRequest to JSON.
|
|
19333
|
+
* @returns JSON object
|
|
19334
|
+
*/
|
|
19335
|
+
public toJSON(): { [k: string]: any };
|
|
19336
|
+
|
|
19337
|
+
/**
|
|
19338
|
+
* Gets the default type url for GetThreadReadStateRequest
|
|
19339
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
19340
|
+
* @returns The default type url
|
|
19341
|
+
*/
|
|
19342
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
19343
|
+
}
|
|
18778
19344
|
}
|
|
18779
19345
|
}
|
|
18780
19346
|
|
|
@@ -18806,19 +19372,6 @@ export namespace google {
|
|
|
18806
19372
|
/** Namespace api. */
|
|
18807
19373
|
namespace api {
|
|
18808
19374
|
|
|
18809
|
-
/** FieldBehavior enum. */
|
|
18810
|
-
enum FieldBehavior {
|
|
18811
|
-
FIELD_BEHAVIOR_UNSPECIFIED = 0,
|
|
18812
|
-
OPTIONAL = 1,
|
|
18813
|
-
REQUIRED = 2,
|
|
18814
|
-
OUTPUT_ONLY = 3,
|
|
18815
|
-
INPUT_ONLY = 4,
|
|
18816
|
-
IMMUTABLE = 5,
|
|
18817
|
-
UNORDERED_LIST = 6,
|
|
18818
|
-
NON_EMPTY_DEFAULT = 7,
|
|
18819
|
-
IDENTIFIER = 8
|
|
18820
|
-
}
|
|
18821
|
-
|
|
18822
19375
|
/** Properties of a ResourceDescriptor. */
|
|
18823
19376
|
interface IResourceDescriptor {
|
|
18824
19377
|
|
|
@@ -19071,6 +19624,19 @@ export namespace google {
|
|
|
19071
19624
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
19072
19625
|
}
|
|
19073
19626
|
|
|
19627
|
+
/** FieldBehavior enum. */
|
|
19628
|
+
enum FieldBehavior {
|
|
19629
|
+
FIELD_BEHAVIOR_UNSPECIFIED = 0,
|
|
19630
|
+
OPTIONAL = 1,
|
|
19631
|
+
REQUIRED = 2,
|
|
19632
|
+
OUTPUT_ONLY = 3,
|
|
19633
|
+
INPUT_ONLY = 4,
|
|
19634
|
+
IMMUTABLE = 5,
|
|
19635
|
+
UNORDERED_LIST = 6,
|
|
19636
|
+
NON_EMPTY_DEFAULT = 7,
|
|
19637
|
+
IDENTIFIER = 8
|
|
19638
|
+
}
|
|
19639
|
+
|
|
19074
19640
|
/** Properties of a Http. */
|
|
19075
19641
|
interface IHttp {
|
|
19076
19642
|
|