@google-apps/chat 0.25.0 → 0.27.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/build/protos/google/chat/v1/audience.proto +48 -0
- package/build/protos/google/chat/v1/availability.proto +232 -0
- package/build/protos/google/chat/v1/chat_service.proto +105 -0
- package/build/protos/google/chat/v1/membership.proto +27 -0
- package/build/protos/google/chat/v1/space.proto +55 -0
- package/build/protos/protos.d.ts +1388 -0
- package/build/protos/protos.js +1 -80676
- package/build/protos/protos.json +364 -1
- package/build/src/v1/chat_service_client.d.ts +251 -0
- package/build/src/v1/chat_service_client.js +245 -0
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/build/src/v1/chat_service_client_config.json +25 -0
- package/build/src/v1/chat_service_proto_list.json +2 -0
- package/build/src/v1/gapic_metadata.json +50 -0
- package/package.json +3 -3
package/build/protos/protos.d.ts
CHANGED
|
@@ -14510,6 +14510,969 @@ export namespace google {
|
|
|
14510
14510
|
}
|
|
14511
14511
|
}
|
|
14512
14512
|
|
|
14513
|
+
/** Properties of an Audience. */
|
|
14514
|
+
interface IAudience {
|
|
14515
|
+
|
|
14516
|
+
/** Audience name */
|
|
14517
|
+
name?: (string|null);
|
|
14518
|
+
}
|
|
14519
|
+
|
|
14520
|
+
/** Represents an Audience. */
|
|
14521
|
+
class Audience implements IAudience {
|
|
14522
|
+
|
|
14523
|
+
/**
|
|
14524
|
+
* Constructs a new Audience.
|
|
14525
|
+
* @param [properties] Properties to set
|
|
14526
|
+
*/
|
|
14527
|
+
constructor(properties?: google.chat.v1.IAudience);
|
|
14528
|
+
|
|
14529
|
+
/** Audience name. */
|
|
14530
|
+
public name: string;
|
|
14531
|
+
|
|
14532
|
+
/**
|
|
14533
|
+
* Creates a new Audience instance using the specified properties.
|
|
14534
|
+
* @param [properties] Properties to set
|
|
14535
|
+
* @returns Audience instance
|
|
14536
|
+
*/
|
|
14537
|
+
public static create(properties?: google.chat.v1.IAudience): google.chat.v1.Audience;
|
|
14538
|
+
|
|
14539
|
+
/**
|
|
14540
|
+
* Encodes the specified Audience message. Does not implicitly {@link google.chat.v1.Audience.verify|verify} messages.
|
|
14541
|
+
* @param message Audience message or plain object to encode
|
|
14542
|
+
* @param [writer] Writer to encode to
|
|
14543
|
+
* @returns Writer
|
|
14544
|
+
*/
|
|
14545
|
+
public static encode(message: google.chat.v1.IAudience, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
14546
|
+
|
|
14547
|
+
/**
|
|
14548
|
+
* Encodes the specified Audience message, length delimited. Does not implicitly {@link google.chat.v1.Audience.verify|verify} messages.
|
|
14549
|
+
* @param message Audience message or plain object to encode
|
|
14550
|
+
* @param [writer] Writer to encode to
|
|
14551
|
+
* @returns Writer
|
|
14552
|
+
*/
|
|
14553
|
+
public static encodeDelimited(message: google.chat.v1.IAudience, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
14554
|
+
|
|
14555
|
+
/**
|
|
14556
|
+
* Decodes an Audience message from the specified reader or buffer.
|
|
14557
|
+
* @param reader Reader or buffer to decode from
|
|
14558
|
+
* @param [length] Message length if known beforehand
|
|
14559
|
+
* @returns Audience
|
|
14560
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14561
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14562
|
+
*/
|
|
14563
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.Audience;
|
|
14564
|
+
|
|
14565
|
+
/**
|
|
14566
|
+
* Decodes an Audience message from the specified reader or buffer, length delimited.
|
|
14567
|
+
* @param reader Reader or buffer to decode from
|
|
14568
|
+
* @returns Audience
|
|
14569
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14570
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14571
|
+
*/
|
|
14572
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.Audience;
|
|
14573
|
+
|
|
14574
|
+
/**
|
|
14575
|
+
* Verifies an Audience message.
|
|
14576
|
+
* @param message Plain object to verify
|
|
14577
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
14578
|
+
*/
|
|
14579
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
14580
|
+
|
|
14581
|
+
/**
|
|
14582
|
+
* Creates an Audience message from a plain object. Also converts values to their respective internal types.
|
|
14583
|
+
* @param object Plain object
|
|
14584
|
+
* @returns Audience
|
|
14585
|
+
*/
|
|
14586
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.Audience;
|
|
14587
|
+
|
|
14588
|
+
/**
|
|
14589
|
+
* Creates a plain object from an Audience message. Also converts values to other types if specified.
|
|
14590
|
+
* @param message Audience
|
|
14591
|
+
* @param [options] Conversion options
|
|
14592
|
+
* @returns Plain object
|
|
14593
|
+
*/
|
|
14594
|
+
public static toObject(message: google.chat.v1.Audience, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
14595
|
+
|
|
14596
|
+
/**
|
|
14597
|
+
* Converts this Audience to JSON.
|
|
14598
|
+
* @returns JSON object
|
|
14599
|
+
*/
|
|
14600
|
+
public toJSON(): { [k: string]: any };
|
|
14601
|
+
|
|
14602
|
+
/**
|
|
14603
|
+
* Gets the default type url for Audience
|
|
14604
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
14605
|
+
* @returns The default type url
|
|
14606
|
+
*/
|
|
14607
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
14608
|
+
}
|
|
14609
|
+
|
|
14610
|
+
/** Properties of an Availability. */
|
|
14611
|
+
interface IAvailability {
|
|
14612
|
+
|
|
14613
|
+
/** Availability name */
|
|
14614
|
+
name?: (string|null);
|
|
14615
|
+
|
|
14616
|
+
/** Availability state */
|
|
14617
|
+
state?: (google.chat.v1.Availability.State|keyof typeof google.chat.v1.Availability.State|null);
|
|
14618
|
+
|
|
14619
|
+
/** Availability doNotDisturbMetadata */
|
|
14620
|
+
doNotDisturbMetadata?: (google.chat.v1.IDoNotDisturbMetadata|null);
|
|
14621
|
+
|
|
14622
|
+
/** Availability customStatus */
|
|
14623
|
+
customStatus?: (google.chat.v1.ICustomStatus|null);
|
|
14624
|
+
}
|
|
14625
|
+
|
|
14626
|
+
/** Represents an Availability. */
|
|
14627
|
+
class Availability implements IAvailability {
|
|
14628
|
+
|
|
14629
|
+
/**
|
|
14630
|
+
* Constructs a new Availability.
|
|
14631
|
+
* @param [properties] Properties to set
|
|
14632
|
+
*/
|
|
14633
|
+
constructor(properties?: google.chat.v1.IAvailability);
|
|
14634
|
+
|
|
14635
|
+
/** Availability name. */
|
|
14636
|
+
public name: string;
|
|
14637
|
+
|
|
14638
|
+
/** Availability state. */
|
|
14639
|
+
public state: (google.chat.v1.Availability.State|keyof typeof google.chat.v1.Availability.State);
|
|
14640
|
+
|
|
14641
|
+
/** Availability doNotDisturbMetadata. */
|
|
14642
|
+
public doNotDisturbMetadata?: (google.chat.v1.IDoNotDisturbMetadata|null);
|
|
14643
|
+
|
|
14644
|
+
/** Availability customStatus. */
|
|
14645
|
+
public customStatus?: (google.chat.v1.ICustomStatus|null);
|
|
14646
|
+
|
|
14647
|
+
/** Availability stateMetadata. */
|
|
14648
|
+
public stateMetadata?: "doNotDisturbMetadata";
|
|
14649
|
+
|
|
14650
|
+
/**
|
|
14651
|
+
* Creates a new Availability instance using the specified properties.
|
|
14652
|
+
* @param [properties] Properties to set
|
|
14653
|
+
* @returns Availability instance
|
|
14654
|
+
*/
|
|
14655
|
+
public static create(properties?: google.chat.v1.IAvailability): google.chat.v1.Availability;
|
|
14656
|
+
|
|
14657
|
+
/**
|
|
14658
|
+
* Encodes the specified Availability message. Does not implicitly {@link google.chat.v1.Availability.verify|verify} messages.
|
|
14659
|
+
* @param message Availability message or plain object to encode
|
|
14660
|
+
* @param [writer] Writer to encode to
|
|
14661
|
+
* @returns Writer
|
|
14662
|
+
*/
|
|
14663
|
+
public static encode(message: google.chat.v1.IAvailability, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
14664
|
+
|
|
14665
|
+
/**
|
|
14666
|
+
* Encodes the specified Availability message, length delimited. Does not implicitly {@link google.chat.v1.Availability.verify|verify} messages.
|
|
14667
|
+
* @param message Availability message or plain object to encode
|
|
14668
|
+
* @param [writer] Writer to encode to
|
|
14669
|
+
* @returns Writer
|
|
14670
|
+
*/
|
|
14671
|
+
public static encodeDelimited(message: google.chat.v1.IAvailability, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
14672
|
+
|
|
14673
|
+
/**
|
|
14674
|
+
* Decodes an Availability message from the specified reader or buffer.
|
|
14675
|
+
* @param reader Reader or buffer to decode from
|
|
14676
|
+
* @param [length] Message length if known beforehand
|
|
14677
|
+
* @returns Availability
|
|
14678
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14679
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14680
|
+
*/
|
|
14681
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.Availability;
|
|
14682
|
+
|
|
14683
|
+
/**
|
|
14684
|
+
* Decodes an Availability message from the specified reader or buffer, length delimited.
|
|
14685
|
+
* @param reader Reader or buffer to decode from
|
|
14686
|
+
* @returns Availability
|
|
14687
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14688
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14689
|
+
*/
|
|
14690
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.Availability;
|
|
14691
|
+
|
|
14692
|
+
/**
|
|
14693
|
+
* Verifies an Availability message.
|
|
14694
|
+
* @param message Plain object to verify
|
|
14695
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
14696
|
+
*/
|
|
14697
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
14698
|
+
|
|
14699
|
+
/**
|
|
14700
|
+
* Creates an Availability message from a plain object. Also converts values to their respective internal types.
|
|
14701
|
+
* @param object Plain object
|
|
14702
|
+
* @returns Availability
|
|
14703
|
+
*/
|
|
14704
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.Availability;
|
|
14705
|
+
|
|
14706
|
+
/**
|
|
14707
|
+
* Creates a plain object from an Availability message. Also converts values to other types if specified.
|
|
14708
|
+
* @param message Availability
|
|
14709
|
+
* @param [options] Conversion options
|
|
14710
|
+
* @returns Plain object
|
|
14711
|
+
*/
|
|
14712
|
+
public static toObject(message: google.chat.v1.Availability, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
14713
|
+
|
|
14714
|
+
/**
|
|
14715
|
+
* Converts this Availability to JSON.
|
|
14716
|
+
* @returns JSON object
|
|
14717
|
+
*/
|
|
14718
|
+
public toJSON(): { [k: string]: any };
|
|
14719
|
+
|
|
14720
|
+
/**
|
|
14721
|
+
* Gets the default type url for Availability
|
|
14722
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
14723
|
+
* @returns The default type url
|
|
14724
|
+
*/
|
|
14725
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
14726
|
+
}
|
|
14727
|
+
|
|
14728
|
+
namespace Availability {
|
|
14729
|
+
|
|
14730
|
+
/** State enum. */
|
|
14731
|
+
enum State {
|
|
14732
|
+
STATE_UNSPECIFIED = 0,
|
|
14733
|
+
ACTIVE = 1,
|
|
14734
|
+
IDLE = 2,
|
|
14735
|
+
AWAY = 3,
|
|
14736
|
+
DO_NOT_DISTURB = 4
|
|
14737
|
+
}
|
|
14738
|
+
}
|
|
14739
|
+
|
|
14740
|
+
/** Properties of a CustomStatus. */
|
|
14741
|
+
interface ICustomStatus {
|
|
14742
|
+
|
|
14743
|
+
/** CustomStatus text */
|
|
14744
|
+
text?: (string|null);
|
|
14745
|
+
|
|
14746
|
+
/** CustomStatus emoji */
|
|
14747
|
+
emoji?: (google.chat.v1.IEmoji|null);
|
|
14748
|
+
|
|
14749
|
+
/** CustomStatus expireTime */
|
|
14750
|
+
expireTime?: (google.protobuf.ITimestamp|null);
|
|
14751
|
+
|
|
14752
|
+
/** CustomStatus ttl */
|
|
14753
|
+
ttl?: (google.protobuf.IDuration|null);
|
|
14754
|
+
}
|
|
14755
|
+
|
|
14756
|
+
/** Represents a CustomStatus. */
|
|
14757
|
+
class CustomStatus implements ICustomStatus {
|
|
14758
|
+
|
|
14759
|
+
/**
|
|
14760
|
+
* Constructs a new CustomStatus.
|
|
14761
|
+
* @param [properties] Properties to set
|
|
14762
|
+
*/
|
|
14763
|
+
constructor(properties?: google.chat.v1.ICustomStatus);
|
|
14764
|
+
|
|
14765
|
+
/** CustomStatus text. */
|
|
14766
|
+
public text: string;
|
|
14767
|
+
|
|
14768
|
+
/** CustomStatus emoji. */
|
|
14769
|
+
public emoji?: (google.chat.v1.IEmoji|null);
|
|
14770
|
+
|
|
14771
|
+
/** CustomStatus expireTime. */
|
|
14772
|
+
public expireTime?: (google.protobuf.ITimestamp|null);
|
|
14773
|
+
|
|
14774
|
+
/** CustomStatus ttl. */
|
|
14775
|
+
public ttl?: (google.protobuf.IDuration|null);
|
|
14776
|
+
|
|
14777
|
+
/** CustomStatus expiration. */
|
|
14778
|
+
public expiration?: ("expireTime"|"ttl");
|
|
14779
|
+
|
|
14780
|
+
/**
|
|
14781
|
+
* Creates a new CustomStatus instance using the specified properties.
|
|
14782
|
+
* @param [properties] Properties to set
|
|
14783
|
+
* @returns CustomStatus instance
|
|
14784
|
+
*/
|
|
14785
|
+
public static create(properties?: google.chat.v1.ICustomStatus): google.chat.v1.CustomStatus;
|
|
14786
|
+
|
|
14787
|
+
/**
|
|
14788
|
+
* Encodes the specified CustomStatus message. Does not implicitly {@link google.chat.v1.CustomStatus.verify|verify} messages.
|
|
14789
|
+
* @param message CustomStatus message or plain object to encode
|
|
14790
|
+
* @param [writer] Writer to encode to
|
|
14791
|
+
* @returns Writer
|
|
14792
|
+
*/
|
|
14793
|
+
public static encode(message: google.chat.v1.ICustomStatus, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
14794
|
+
|
|
14795
|
+
/**
|
|
14796
|
+
* Encodes the specified CustomStatus message, length delimited. Does not implicitly {@link google.chat.v1.CustomStatus.verify|verify} messages.
|
|
14797
|
+
* @param message CustomStatus message or plain object to encode
|
|
14798
|
+
* @param [writer] Writer to encode to
|
|
14799
|
+
* @returns Writer
|
|
14800
|
+
*/
|
|
14801
|
+
public static encodeDelimited(message: google.chat.v1.ICustomStatus, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
14802
|
+
|
|
14803
|
+
/**
|
|
14804
|
+
* Decodes a CustomStatus message from the specified reader or buffer.
|
|
14805
|
+
* @param reader Reader or buffer to decode from
|
|
14806
|
+
* @param [length] Message length if known beforehand
|
|
14807
|
+
* @returns CustomStatus
|
|
14808
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14809
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14810
|
+
*/
|
|
14811
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.CustomStatus;
|
|
14812
|
+
|
|
14813
|
+
/**
|
|
14814
|
+
* Decodes a CustomStatus message from the specified reader or buffer, length delimited.
|
|
14815
|
+
* @param reader Reader or buffer to decode from
|
|
14816
|
+
* @returns CustomStatus
|
|
14817
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14818
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14819
|
+
*/
|
|
14820
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.CustomStatus;
|
|
14821
|
+
|
|
14822
|
+
/**
|
|
14823
|
+
* Verifies a CustomStatus message.
|
|
14824
|
+
* @param message Plain object to verify
|
|
14825
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
14826
|
+
*/
|
|
14827
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
14828
|
+
|
|
14829
|
+
/**
|
|
14830
|
+
* Creates a CustomStatus message from a plain object. Also converts values to their respective internal types.
|
|
14831
|
+
* @param object Plain object
|
|
14832
|
+
* @returns CustomStatus
|
|
14833
|
+
*/
|
|
14834
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.CustomStatus;
|
|
14835
|
+
|
|
14836
|
+
/**
|
|
14837
|
+
* Creates a plain object from a CustomStatus message. Also converts values to other types if specified.
|
|
14838
|
+
* @param message CustomStatus
|
|
14839
|
+
* @param [options] Conversion options
|
|
14840
|
+
* @returns Plain object
|
|
14841
|
+
*/
|
|
14842
|
+
public static toObject(message: google.chat.v1.CustomStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
14843
|
+
|
|
14844
|
+
/**
|
|
14845
|
+
* Converts this CustomStatus to JSON.
|
|
14846
|
+
* @returns JSON object
|
|
14847
|
+
*/
|
|
14848
|
+
public toJSON(): { [k: string]: any };
|
|
14849
|
+
|
|
14850
|
+
/**
|
|
14851
|
+
* Gets the default type url for CustomStatus
|
|
14852
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
14853
|
+
* @returns The default type url
|
|
14854
|
+
*/
|
|
14855
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
14856
|
+
}
|
|
14857
|
+
|
|
14858
|
+
/** Properties of a DoNotDisturbMetadata. */
|
|
14859
|
+
interface IDoNotDisturbMetadata {
|
|
14860
|
+
|
|
14861
|
+
/** DoNotDisturbMetadata expirationTime */
|
|
14862
|
+
expirationTime?: (google.protobuf.ITimestamp|null);
|
|
14863
|
+
}
|
|
14864
|
+
|
|
14865
|
+
/** Represents a DoNotDisturbMetadata. */
|
|
14866
|
+
class DoNotDisturbMetadata implements IDoNotDisturbMetadata {
|
|
14867
|
+
|
|
14868
|
+
/**
|
|
14869
|
+
* Constructs a new DoNotDisturbMetadata.
|
|
14870
|
+
* @param [properties] Properties to set
|
|
14871
|
+
*/
|
|
14872
|
+
constructor(properties?: google.chat.v1.IDoNotDisturbMetadata);
|
|
14873
|
+
|
|
14874
|
+
/** DoNotDisturbMetadata expirationTime. */
|
|
14875
|
+
public expirationTime?: (google.protobuf.ITimestamp|null);
|
|
14876
|
+
|
|
14877
|
+
/**
|
|
14878
|
+
* Creates a new DoNotDisturbMetadata instance using the specified properties.
|
|
14879
|
+
* @param [properties] Properties to set
|
|
14880
|
+
* @returns DoNotDisturbMetadata instance
|
|
14881
|
+
*/
|
|
14882
|
+
public static create(properties?: google.chat.v1.IDoNotDisturbMetadata): google.chat.v1.DoNotDisturbMetadata;
|
|
14883
|
+
|
|
14884
|
+
/**
|
|
14885
|
+
* Encodes the specified DoNotDisturbMetadata message. Does not implicitly {@link google.chat.v1.DoNotDisturbMetadata.verify|verify} messages.
|
|
14886
|
+
* @param message DoNotDisturbMetadata message or plain object to encode
|
|
14887
|
+
* @param [writer] Writer to encode to
|
|
14888
|
+
* @returns Writer
|
|
14889
|
+
*/
|
|
14890
|
+
public static encode(message: google.chat.v1.IDoNotDisturbMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
14891
|
+
|
|
14892
|
+
/**
|
|
14893
|
+
* Encodes the specified DoNotDisturbMetadata message, length delimited. Does not implicitly {@link google.chat.v1.DoNotDisturbMetadata.verify|verify} messages.
|
|
14894
|
+
* @param message DoNotDisturbMetadata message or plain object to encode
|
|
14895
|
+
* @param [writer] Writer to encode to
|
|
14896
|
+
* @returns Writer
|
|
14897
|
+
*/
|
|
14898
|
+
public static encodeDelimited(message: google.chat.v1.IDoNotDisturbMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
14899
|
+
|
|
14900
|
+
/**
|
|
14901
|
+
* Decodes a DoNotDisturbMetadata message from the specified reader or buffer.
|
|
14902
|
+
* @param reader Reader or buffer to decode from
|
|
14903
|
+
* @param [length] Message length if known beforehand
|
|
14904
|
+
* @returns DoNotDisturbMetadata
|
|
14905
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14906
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14907
|
+
*/
|
|
14908
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.DoNotDisturbMetadata;
|
|
14909
|
+
|
|
14910
|
+
/**
|
|
14911
|
+
* Decodes a DoNotDisturbMetadata message from the specified reader or buffer, length delimited.
|
|
14912
|
+
* @param reader Reader or buffer to decode from
|
|
14913
|
+
* @returns DoNotDisturbMetadata
|
|
14914
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14915
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14916
|
+
*/
|
|
14917
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.DoNotDisturbMetadata;
|
|
14918
|
+
|
|
14919
|
+
/**
|
|
14920
|
+
* Verifies a DoNotDisturbMetadata message.
|
|
14921
|
+
* @param message Plain object to verify
|
|
14922
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
14923
|
+
*/
|
|
14924
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
14925
|
+
|
|
14926
|
+
/**
|
|
14927
|
+
* Creates a DoNotDisturbMetadata message from a plain object. Also converts values to their respective internal types.
|
|
14928
|
+
* @param object Plain object
|
|
14929
|
+
* @returns DoNotDisturbMetadata
|
|
14930
|
+
*/
|
|
14931
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.DoNotDisturbMetadata;
|
|
14932
|
+
|
|
14933
|
+
/**
|
|
14934
|
+
* Creates a plain object from a DoNotDisturbMetadata message. Also converts values to other types if specified.
|
|
14935
|
+
* @param message DoNotDisturbMetadata
|
|
14936
|
+
* @param [options] Conversion options
|
|
14937
|
+
* @returns Plain object
|
|
14938
|
+
*/
|
|
14939
|
+
public static toObject(message: google.chat.v1.DoNotDisturbMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
14940
|
+
|
|
14941
|
+
/**
|
|
14942
|
+
* Converts this DoNotDisturbMetadata to JSON.
|
|
14943
|
+
* @returns JSON object
|
|
14944
|
+
*/
|
|
14945
|
+
public toJSON(): { [k: string]: any };
|
|
14946
|
+
|
|
14947
|
+
/**
|
|
14948
|
+
* Gets the default type url for DoNotDisturbMetadata
|
|
14949
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
14950
|
+
* @returns The default type url
|
|
14951
|
+
*/
|
|
14952
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
14953
|
+
}
|
|
14954
|
+
|
|
14955
|
+
/** Properties of a GetAvailabilityRequest. */
|
|
14956
|
+
interface IGetAvailabilityRequest {
|
|
14957
|
+
|
|
14958
|
+
/** GetAvailabilityRequest name */
|
|
14959
|
+
name?: (string|null);
|
|
14960
|
+
}
|
|
14961
|
+
|
|
14962
|
+
/** Represents a GetAvailabilityRequest. */
|
|
14963
|
+
class GetAvailabilityRequest implements IGetAvailabilityRequest {
|
|
14964
|
+
|
|
14965
|
+
/**
|
|
14966
|
+
* Constructs a new GetAvailabilityRequest.
|
|
14967
|
+
* @param [properties] Properties to set
|
|
14968
|
+
*/
|
|
14969
|
+
constructor(properties?: google.chat.v1.IGetAvailabilityRequest);
|
|
14970
|
+
|
|
14971
|
+
/** GetAvailabilityRequest name. */
|
|
14972
|
+
public name: string;
|
|
14973
|
+
|
|
14974
|
+
/**
|
|
14975
|
+
* Creates a new GetAvailabilityRequest instance using the specified properties.
|
|
14976
|
+
* @param [properties] Properties to set
|
|
14977
|
+
* @returns GetAvailabilityRequest instance
|
|
14978
|
+
*/
|
|
14979
|
+
public static create(properties?: google.chat.v1.IGetAvailabilityRequest): google.chat.v1.GetAvailabilityRequest;
|
|
14980
|
+
|
|
14981
|
+
/**
|
|
14982
|
+
* Encodes the specified GetAvailabilityRequest message. Does not implicitly {@link google.chat.v1.GetAvailabilityRequest.verify|verify} messages.
|
|
14983
|
+
* @param message GetAvailabilityRequest message or plain object to encode
|
|
14984
|
+
* @param [writer] Writer to encode to
|
|
14985
|
+
* @returns Writer
|
|
14986
|
+
*/
|
|
14987
|
+
public static encode(message: google.chat.v1.IGetAvailabilityRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
14988
|
+
|
|
14989
|
+
/**
|
|
14990
|
+
* Encodes the specified GetAvailabilityRequest message, length delimited. Does not implicitly {@link google.chat.v1.GetAvailabilityRequest.verify|verify} messages.
|
|
14991
|
+
* @param message GetAvailabilityRequest message or plain object to encode
|
|
14992
|
+
* @param [writer] Writer to encode to
|
|
14993
|
+
* @returns Writer
|
|
14994
|
+
*/
|
|
14995
|
+
public static encodeDelimited(message: google.chat.v1.IGetAvailabilityRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
14996
|
+
|
|
14997
|
+
/**
|
|
14998
|
+
* Decodes a GetAvailabilityRequest message from the specified reader or buffer.
|
|
14999
|
+
* @param reader Reader or buffer to decode from
|
|
15000
|
+
* @param [length] Message length if known beforehand
|
|
15001
|
+
* @returns GetAvailabilityRequest
|
|
15002
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15003
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15004
|
+
*/
|
|
15005
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.GetAvailabilityRequest;
|
|
15006
|
+
|
|
15007
|
+
/**
|
|
15008
|
+
* Decodes a GetAvailabilityRequest message from the specified reader or buffer, length delimited.
|
|
15009
|
+
* @param reader Reader or buffer to decode from
|
|
15010
|
+
* @returns GetAvailabilityRequest
|
|
15011
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15012
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15013
|
+
*/
|
|
15014
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.GetAvailabilityRequest;
|
|
15015
|
+
|
|
15016
|
+
/**
|
|
15017
|
+
* Verifies a GetAvailabilityRequest message.
|
|
15018
|
+
* @param message Plain object to verify
|
|
15019
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
15020
|
+
*/
|
|
15021
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
15022
|
+
|
|
15023
|
+
/**
|
|
15024
|
+
* Creates a GetAvailabilityRequest message from a plain object. Also converts values to their respective internal types.
|
|
15025
|
+
* @param object Plain object
|
|
15026
|
+
* @returns GetAvailabilityRequest
|
|
15027
|
+
*/
|
|
15028
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.GetAvailabilityRequest;
|
|
15029
|
+
|
|
15030
|
+
/**
|
|
15031
|
+
* Creates a plain object from a GetAvailabilityRequest message. Also converts values to other types if specified.
|
|
15032
|
+
* @param message GetAvailabilityRequest
|
|
15033
|
+
* @param [options] Conversion options
|
|
15034
|
+
* @returns Plain object
|
|
15035
|
+
*/
|
|
15036
|
+
public static toObject(message: google.chat.v1.GetAvailabilityRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
15037
|
+
|
|
15038
|
+
/**
|
|
15039
|
+
* Converts this GetAvailabilityRequest to JSON.
|
|
15040
|
+
* @returns JSON object
|
|
15041
|
+
*/
|
|
15042
|
+
public toJSON(): { [k: string]: any };
|
|
15043
|
+
|
|
15044
|
+
/**
|
|
15045
|
+
* Gets the default type url for GetAvailabilityRequest
|
|
15046
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
15047
|
+
* @returns The default type url
|
|
15048
|
+
*/
|
|
15049
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
15050
|
+
}
|
|
15051
|
+
|
|
15052
|
+
/** Properties of an UpdateAvailabilityRequest. */
|
|
15053
|
+
interface IUpdateAvailabilityRequest {
|
|
15054
|
+
|
|
15055
|
+
/** UpdateAvailabilityRequest availability */
|
|
15056
|
+
availability?: (google.chat.v1.IAvailability|null);
|
|
15057
|
+
|
|
15058
|
+
/** UpdateAvailabilityRequest updateMask */
|
|
15059
|
+
updateMask?: (google.protobuf.IFieldMask|null);
|
|
15060
|
+
}
|
|
15061
|
+
|
|
15062
|
+
/** Represents an UpdateAvailabilityRequest. */
|
|
15063
|
+
class UpdateAvailabilityRequest implements IUpdateAvailabilityRequest {
|
|
15064
|
+
|
|
15065
|
+
/**
|
|
15066
|
+
* Constructs a new UpdateAvailabilityRequest.
|
|
15067
|
+
* @param [properties] Properties to set
|
|
15068
|
+
*/
|
|
15069
|
+
constructor(properties?: google.chat.v1.IUpdateAvailabilityRequest);
|
|
15070
|
+
|
|
15071
|
+
/** UpdateAvailabilityRequest availability. */
|
|
15072
|
+
public availability?: (google.chat.v1.IAvailability|null);
|
|
15073
|
+
|
|
15074
|
+
/** UpdateAvailabilityRequest updateMask. */
|
|
15075
|
+
public updateMask?: (google.protobuf.IFieldMask|null);
|
|
15076
|
+
|
|
15077
|
+
/**
|
|
15078
|
+
* Creates a new UpdateAvailabilityRequest instance using the specified properties.
|
|
15079
|
+
* @param [properties] Properties to set
|
|
15080
|
+
* @returns UpdateAvailabilityRequest instance
|
|
15081
|
+
*/
|
|
15082
|
+
public static create(properties?: google.chat.v1.IUpdateAvailabilityRequest): google.chat.v1.UpdateAvailabilityRequest;
|
|
15083
|
+
|
|
15084
|
+
/**
|
|
15085
|
+
* Encodes the specified UpdateAvailabilityRequest message. Does not implicitly {@link google.chat.v1.UpdateAvailabilityRequest.verify|verify} messages.
|
|
15086
|
+
* @param message UpdateAvailabilityRequest message or plain object to encode
|
|
15087
|
+
* @param [writer] Writer to encode to
|
|
15088
|
+
* @returns Writer
|
|
15089
|
+
*/
|
|
15090
|
+
public static encode(message: google.chat.v1.IUpdateAvailabilityRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
15091
|
+
|
|
15092
|
+
/**
|
|
15093
|
+
* Encodes the specified UpdateAvailabilityRequest message, length delimited. Does not implicitly {@link google.chat.v1.UpdateAvailabilityRequest.verify|verify} messages.
|
|
15094
|
+
* @param message UpdateAvailabilityRequest message or plain object to encode
|
|
15095
|
+
* @param [writer] Writer to encode to
|
|
15096
|
+
* @returns Writer
|
|
15097
|
+
*/
|
|
15098
|
+
public static encodeDelimited(message: google.chat.v1.IUpdateAvailabilityRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
15099
|
+
|
|
15100
|
+
/**
|
|
15101
|
+
* Decodes an UpdateAvailabilityRequest message from the specified reader or buffer.
|
|
15102
|
+
* @param reader Reader or buffer to decode from
|
|
15103
|
+
* @param [length] Message length if known beforehand
|
|
15104
|
+
* @returns UpdateAvailabilityRequest
|
|
15105
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15106
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15107
|
+
*/
|
|
15108
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.UpdateAvailabilityRequest;
|
|
15109
|
+
|
|
15110
|
+
/**
|
|
15111
|
+
* Decodes an UpdateAvailabilityRequest message from the specified reader or buffer, length delimited.
|
|
15112
|
+
* @param reader Reader or buffer to decode from
|
|
15113
|
+
* @returns UpdateAvailabilityRequest
|
|
15114
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15115
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15116
|
+
*/
|
|
15117
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.UpdateAvailabilityRequest;
|
|
15118
|
+
|
|
15119
|
+
/**
|
|
15120
|
+
* Verifies an UpdateAvailabilityRequest message.
|
|
15121
|
+
* @param message Plain object to verify
|
|
15122
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
15123
|
+
*/
|
|
15124
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
15125
|
+
|
|
15126
|
+
/**
|
|
15127
|
+
* Creates an UpdateAvailabilityRequest message from a plain object. Also converts values to their respective internal types.
|
|
15128
|
+
* @param object Plain object
|
|
15129
|
+
* @returns UpdateAvailabilityRequest
|
|
15130
|
+
*/
|
|
15131
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.UpdateAvailabilityRequest;
|
|
15132
|
+
|
|
15133
|
+
/**
|
|
15134
|
+
* Creates a plain object from an UpdateAvailabilityRequest message. Also converts values to other types if specified.
|
|
15135
|
+
* @param message UpdateAvailabilityRequest
|
|
15136
|
+
* @param [options] Conversion options
|
|
15137
|
+
* @returns Plain object
|
|
15138
|
+
*/
|
|
15139
|
+
public static toObject(message: google.chat.v1.UpdateAvailabilityRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
15140
|
+
|
|
15141
|
+
/**
|
|
15142
|
+
* Converts this UpdateAvailabilityRequest to JSON.
|
|
15143
|
+
* @returns JSON object
|
|
15144
|
+
*/
|
|
15145
|
+
public toJSON(): { [k: string]: any };
|
|
15146
|
+
|
|
15147
|
+
/**
|
|
15148
|
+
* Gets the default type url for UpdateAvailabilityRequest
|
|
15149
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
15150
|
+
* @returns The default type url
|
|
15151
|
+
*/
|
|
15152
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
15153
|
+
}
|
|
15154
|
+
|
|
15155
|
+
/** Properties of a MarkAsActiveRequest. */
|
|
15156
|
+
interface IMarkAsActiveRequest {
|
|
15157
|
+
|
|
15158
|
+
/** MarkAsActiveRequest name */
|
|
15159
|
+
name?: (string|null);
|
|
15160
|
+
|
|
15161
|
+
/** MarkAsActiveRequest expireTime */
|
|
15162
|
+
expireTime?: (google.protobuf.ITimestamp|null);
|
|
15163
|
+
|
|
15164
|
+
/** MarkAsActiveRequest ttl */
|
|
15165
|
+
ttl?: (google.protobuf.IDuration|null);
|
|
15166
|
+
}
|
|
15167
|
+
|
|
15168
|
+
/** Represents a MarkAsActiveRequest. */
|
|
15169
|
+
class MarkAsActiveRequest implements IMarkAsActiveRequest {
|
|
15170
|
+
|
|
15171
|
+
/**
|
|
15172
|
+
* Constructs a new MarkAsActiveRequest.
|
|
15173
|
+
* @param [properties] Properties to set
|
|
15174
|
+
*/
|
|
15175
|
+
constructor(properties?: google.chat.v1.IMarkAsActiveRequest);
|
|
15176
|
+
|
|
15177
|
+
/** MarkAsActiveRequest name. */
|
|
15178
|
+
public name: string;
|
|
15179
|
+
|
|
15180
|
+
/** MarkAsActiveRequest expireTime. */
|
|
15181
|
+
public expireTime?: (google.protobuf.ITimestamp|null);
|
|
15182
|
+
|
|
15183
|
+
/** MarkAsActiveRequest ttl. */
|
|
15184
|
+
public ttl?: (google.protobuf.IDuration|null);
|
|
15185
|
+
|
|
15186
|
+
/** MarkAsActiveRequest expiration. */
|
|
15187
|
+
public expiration?: ("expireTime"|"ttl");
|
|
15188
|
+
|
|
15189
|
+
/**
|
|
15190
|
+
* Creates a new MarkAsActiveRequest instance using the specified properties.
|
|
15191
|
+
* @param [properties] Properties to set
|
|
15192
|
+
* @returns MarkAsActiveRequest instance
|
|
15193
|
+
*/
|
|
15194
|
+
public static create(properties?: google.chat.v1.IMarkAsActiveRequest): google.chat.v1.MarkAsActiveRequest;
|
|
15195
|
+
|
|
15196
|
+
/**
|
|
15197
|
+
* Encodes the specified MarkAsActiveRequest message. Does not implicitly {@link google.chat.v1.MarkAsActiveRequest.verify|verify} messages.
|
|
15198
|
+
* @param message MarkAsActiveRequest message or plain object to encode
|
|
15199
|
+
* @param [writer] Writer to encode to
|
|
15200
|
+
* @returns Writer
|
|
15201
|
+
*/
|
|
15202
|
+
public static encode(message: google.chat.v1.IMarkAsActiveRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
15203
|
+
|
|
15204
|
+
/**
|
|
15205
|
+
* Encodes the specified MarkAsActiveRequest message, length delimited. Does not implicitly {@link google.chat.v1.MarkAsActiveRequest.verify|verify} messages.
|
|
15206
|
+
* @param message MarkAsActiveRequest message or plain object to encode
|
|
15207
|
+
* @param [writer] Writer to encode to
|
|
15208
|
+
* @returns Writer
|
|
15209
|
+
*/
|
|
15210
|
+
public static encodeDelimited(message: google.chat.v1.IMarkAsActiveRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
15211
|
+
|
|
15212
|
+
/**
|
|
15213
|
+
* Decodes a MarkAsActiveRequest message from the specified reader or buffer.
|
|
15214
|
+
* @param reader Reader or buffer to decode from
|
|
15215
|
+
* @param [length] Message length if known beforehand
|
|
15216
|
+
* @returns MarkAsActiveRequest
|
|
15217
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15218
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15219
|
+
*/
|
|
15220
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.MarkAsActiveRequest;
|
|
15221
|
+
|
|
15222
|
+
/**
|
|
15223
|
+
* Decodes a MarkAsActiveRequest message from the specified reader or buffer, length delimited.
|
|
15224
|
+
* @param reader Reader or buffer to decode from
|
|
15225
|
+
* @returns MarkAsActiveRequest
|
|
15226
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15227
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15228
|
+
*/
|
|
15229
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.MarkAsActiveRequest;
|
|
15230
|
+
|
|
15231
|
+
/**
|
|
15232
|
+
* Verifies a MarkAsActiveRequest message.
|
|
15233
|
+
* @param message Plain object to verify
|
|
15234
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
15235
|
+
*/
|
|
15236
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
15237
|
+
|
|
15238
|
+
/**
|
|
15239
|
+
* Creates a MarkAsActiveRequest message from a plain object. Also converts values to their respective internal types.
|
|
15240
|
+
* @param object Plain object
|
|
15241
|
+
* @returns MarkAsActiveRequest
|
|
15242
|
+
*/
|
|
15243
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.MarkAsActiveRequest;
|
|
15244
|
+
|
|
15245
|
+
/**
|
|
15246
|
+
* Creates a plain object from a MarkAsActiveRequest message. Also converts values to other types if specified.
|
|
15247
|
+
* @param message MarkAsActiveRequest
|
|
15248
|
+
* @param [options] Conversion options
|
|
15249
|
+
* @returns Plain object
|
|
15250
|
+
*/
|
|
15251
|
+
public static toObject(message: google.chat.v1.MarkAsActiveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
15252
|
+
|
|
15253
|
+
/**
|
|
15254
|
+
* Converts this MarkAsActiveRequest to JSON.
|
|
15255
|
+
* @returns JSON object
|
|
15256
|
+
*/
|
|
15257
|
+
public toJSON(): { [k: string]: any };
|
|
15258
|
+
|
|
15259
|
+
/**
|
|
15260
|
+
* Gets the default type url for MarkAsActiveRequest
|
|
15261
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
15262
|
+
* @returns The default type url
|
|
15263
|
+
*/
|
|
15264
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
15265
|
+
}
|
|
15266
|
+
|
|
15267
|
+
/** Properties of a MarkAsAwayRequest. */
|
|
15268
|
+
interface IMarkAsAwayRequest {
|
|
15269
|
+
|
|
15270
|
+
/** MarkAsAwayRequest name */
|
|
15271
|
+
name?: (string|null);
|
|
15272
|
+
}
|
|
15273
|
+
|
|
15274
|
+
/** Represents a MarkAsAwayRequest. */
|
|
15275
|
+
class MarkAsAwayRequest implements IMarkAsAwayRequest {
|
|
15276
|
+
|
|
15277
|
+
/**
|
|
15278
|
+
* Constructs a new MarkAsAwayRequest.
|
|
15279
|
+
* @param [properties] Properties to set
|
|
15280
|
+
*/
|
|
15281
|
+
constructor(properties?: google.chat.v1.IMarkAsAwayRequest);
|
|
15282
|
+
|
|
15283
|
+
/** MarkAsAwayRequest name. */
|
|
15284
|
+
public name: string;
|
|
15285
|
+
|
|
15286
|
+
/**
|
|
15287
|
+
* Creates a new MarkAsAwayRequest instance using the specified properties.
|
|
15288
|
+
* @param [properties] Properties to set
|
|
15289
|
+
* @returns MarkAsAwayRequest instance
|
|
15290
|
+
*/
|
|
15291
|
+
public static create(properties?: google.chat.v1.IMarkAsAwayRequest): google.chat.v1.MarkAsAwayRequest;
|
|
15292
|
+
|
|
15293
|
+
/**
|
|
15294
|
+
* Encodes the specified MarkAsAwayRequest message. Does not implicitly {@link google.chat.v1.MarkAsAwayRequest.verify|verify} messages.
|
|
15295
|
+
* @param message MarkAsAwayRequest message or plain object to encode
|
|
15296
|
+
* @param [writer] Writer to encode to
|
|
15297
|
+
* @returns Writer
|
|
15298
|
+
*/
|
|
15299
|
+
public static encode(message: google.chat.v1.IMarkAsAwayRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
15300
|
+
|
|
15301
|
+
/**
|
|
15302
|
+
* Encodes the specified MarkAsAwayRequest message, length delimited. Does not implicitly {@link google.chat.v1.MarkAsAwayRequest.verify|verify} messages.
|
|
15303
|
+
* @param message MarkAsAwayRequest message or plain object to encode
|
|
15304
|
+
* @param [writer] Writer to encode to
|
|
15305
|
+
* @returns Writer
|
|
15306
|
+
*/
|
|
15307
|
+
public static encodeDelimited(message: google.chat.v1.IMarkAsAwayRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
15308
|
+
|
|
15309
|
+
/**
|
|
15310
|
+
* Decodes a MarkAsAwayRequest message from the specified reader or buffer.
|
|
15311
|
+
* @param reader Reader or buffer to decode from
|
|
15312
|
+
* @param [length] Message length if known beforehand
|
|
15313
|
+
* @returns MarkAsAwayRequest
|
|
15314
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15315
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15316
|
+
*/
|
|
15317
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.MarkAsAwayRequest;
|
|
15318
|
+
|
|
15319
|
+
/**
|
|
15320
|
+
* Decodes a MarkAsAwayRequest message from the specified reader or buffer, length delimited.
|
|
15321
|
+
* @param reader Reader or buffer to decode from
|
|
15322
|
+
* @returns MarkAsAwayRequest
|
|
15323
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15324
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15325
|
+
*/
|
|
15326
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.MarkAsAwayRequest;
|
|
15327
|
+
|
|
15328
|
+
/**
|
|
15329
|
+
* Verifies a MarkAsAwayRequest message.
|
|
15330
|
+
* @param message Plain object to verify
|
|
15331
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
15332
|
+
*/
|
|
15333
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
15334
|
+
|
|
15335
|
+
/**
|
|
15336
|
+
* Creates a MarkAsAwayRequest message from a plain object. Also converts values to their respective internal types.
|
|
15337
|
+
* @param object Plain object
|
|
15338
|
+
* @returns MarkAsAwayRequest
|
|
15339
|
+
*/
|
|
15340
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.MarkAsAwayRequest;
|
|
15341
|
+
|
|
15342
|
+
/**
|
|
15343
|
+
* Creates a plain object from a MarkAsAwayRequest message. Also converts values to other types if specified.
|
|
15344
|
+
* @param message MarkAsAwayRequest
|
|
15345
|
+
* @param [options] Conversion options
|
|
15346
|
+
* @returns Plain object
|
|
15347
|
+
*/
|
|
15348
|
+
public static toObject(message: google.chat.v1.MarkAsAwayRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
15349
|
+
|
|
15350
|
+
/**
|
|
15351
|
+
* Converts this MarkAsAwayRequest to JSON.
|
|
15352
|
+
* @returns JSON object
|
|
15353
|
+
*/
|
|
15354
|
+
public toJSON(): { [k: string]: any };
|
|
15355
|
+
|
|
15356
|
+
/**
|
|
15357
|
+
* Gets the default type url for MarkAsAwayRequest
|
|
15358
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
15359
|
+
* @returns The default type url
|
|
15360
|
+
*/
|
|
15361
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
15362
|
+
}
|
|
15363
|
+
|
|
15364
|
+
/** Properties of a MarkAsDoNotDisturbRequest. */
|
|
15365
|
+
interface IMarkAsDoNotDisturbRequest {
|
|
15366
|
+
|
|
15367
|
+
/** MarkAsDoNotDisturbRequest name */
|
|
15368
|
+
name?: (string|null);
|
|
15369
|
+
|
|
15370
|
+
/** MarkAsDoNotDisturbRequest expireTime */
|
|
15371
|
+
expireTime?: (google.protobuf.ITimestamp|null);
|
|
15372
|
+
|
|
15373
|
+
/** MarkAsDoNotDisturbRequest ttl */
|
|
15374
|
+
ttl?: (google.protobuf.IDuration|null);
|
|
15375
|
+
}
|
|
15376
|
+
|
|
15377
|
+
/** Represents a MarkAsDoNotDisturbRequest. */
|
|
15378
|
+
class MarkAsDoNotDisturbRequest implements IMarkAsDoNotDisturbRequest {
|
|
15379
|
+
|
|
15380
|
+
/**
|
|
15381
|
+
* Constructs a new MarkAsDoNotDisturbRequest.
|
|
15382
|
+
* @param [properties] Properties to set
|
|
15383
|
+
*/
|
|
15384
|
+
constructor(properties?: google.chat.v1.IMarkAsDoNotDisturbRequest);
|
|
15385
|
+
|
|
15386
|
+
/** MarkAsDoNotDisturbRequest name. */
|
|
15387
|
+
public name: string;
|
|
15388
|
+
|
|
15389
|
+
/** MarkAsDoNotDisturbRequest expireTime. */
|
|
15390
|
+
public expireTime?: (google.protobuf.ITimestamp|null);
|
|
15391
|
+
|
|
15392
|
+
/** MarkAsDoNotDisturbRequest ttl. */
|
|
15393
|
+
public ttl?: (google.protobuf.IDuration|null);
|
|
15394
|
+
|
|
15395
|
+
/** MarkAsDoNotDisturbRequest expiration. */
|
|
15396
|
+
public expiration?: ("expireTime"|"ttl");
|
|
15397
|
+
|
|
15398
|
+
/**
|
|
15399
|
+
* Creates a new MarkAsDoNotDisturbRequest instance using the specified properties.
|
|
15400
|
+
* @param [properties] Properties to set
|
|
15401
|
+
* @returns MarkAsDoNotDisturbRequest instance
|
|
15402
|
+
*/
|
|
15403
|
+
public static create(properties?: google.chat.v1.IMarkAsDoNotDisturbRequest): google.chat.v1.MarkAsDoNotDisturbRequest;
|
|
15404
|
+
|
|
15405
|
+
/**
|
|
15406
|
+
* Encodes the specified MarkAsDoNotDisturbRequest message. Does not implicitly {@link google.chat.v1.MarkAsDoNotDisturbRequest.verify|verify} messages.
|
|
15407
|
+
* @param message MarkAsDoNotDisturbRequest message or plain object to encode
|
|
15408
|
+
* @param [writer] Writer to encode to
|
|
15409
|
+
* @returns Writer
|
|
15410
|
+
*/
|
|
15411
|
+
public static encode(message: google.chat.v1.IMarkAsDoNotDisturbRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
15412
|
+
|
|
15413
|
+
/**
|
|
15414
|
+
* Encodes the specified MarkAsDoNotDisturbRequest message, length delimited. Does not implicitly {@link google.chat.v1.MarkAsDoNotDisturbRequest.verify|verify} messages.
|
|
15415
|
+
* @param message MarkAsDoNotDisturbRequest message or plain object to encode
|
|
15416
|
+
* @param [writer] Writer to encode to
|
|
15417
|
+
* @returns Writer
|
|
15418
|
+
*/
|
|
15419
|
+
public static encodeDelimited(message: google.chat.v1.IMarkAsDoNotDisturbRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
15420
|
+
|
|
15421
|
+
/**
|
|
15422
|
+
* Decodes a MarkAsDoNotDisturbRequest message from the specified reader or buffer.
|
|
15423
|
+
* @param reader Reader or buffer to decode from
|
|
15424
|
+
* @param [length] Message length if known beforehand
|
|
15425
|
+
* @returns MarkAsDoNotDisturbRequest
|
|
15426
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15427
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15428
|
+
*/
|
|
15429
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.MarkAsDoNotDisturbRequest;
|
|
15430
|
+
|
|
15431
|
+
/**
|
|
15432
|
+
* Decodes a MarkAsDoNotDisturbRequest message from the specified reader or buffer, length delimited.
|
|
15433
|
+
* @param reader Reader or buffer to decode from
|
|
15434
|
+
* @returns MarkAsDoNotDisturbRequest
|
|
15435
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15436
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15437
|
+
*/
|
|
15438
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.MarkAsDoNotDisturbRequest;
|
|
15439
|
+
|
|
15440
|
+
/**
|
|
15441
|
+
* Verifies a MarkAsDoNotDisturbRequest message.
|
|
15442
|
+
* @param message Plain object to verify
|
|
15443
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
15444
|
+
*/
|
|
15445
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
15446
|
+
|
|
15447
|
+
/**
|
|
15448
|
+
* Creates a MarkAsDoNotDisturbRequest message from a plain object. Also converts values to their respective internal types.
|
|
15449
|
+
* @param object Plain object
|
|
15450
|
+
* @returns MarkAsDoNotDisturbRequest
|
|
15451
|
+
*/
|
|
15452
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.MarkAsDoNotDisturbRequest;
|
|
15453
|
+
|
|
15454
|
+
/**
|
|
15455
|
+
* Creates a plain object from a MarkAsDoNotDisturbRequest message. Also converts values to other types if specified.
|
|
15456
|
+
* @param message MarkAsDoNotDisturbRequest
|
|
15457
|
+
* @param [options] Conversion options
|
|
15458
|
+
* @returns Plain object
|
|
15459
|
+
*/
|
|
15460
|
+
public static toObject(message: google.chat.v1.MarkAsDoNotDisturbRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
15461
|
+
|
|
15462
|
+
/**
|
|
15463
|
+
* Converts this MarkAsDoNotDisturbRequest to JSON.
|
|
15464
|
+
* @returns JSON object
|
|
15465
|
+
*/
|
|
15466
|
+
public toJSON(): { [k: string]: any };
|
|
15467
|
+
|
|
15468
|
+
/**
|
|
15469
|
+
* Gets the default type url for MarkAsDoNotDisturbRequest
|
|
15470
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
15471
|
+
* @returns The default type url
|
|
15472
|
+
*/
|
|
15473
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
15474
|
+
}
|
|
15475
|
+
|
|
14513
15476
|
/** Represents a ChatService */
|
|
14514
15477
|
class ChatService extends $protobuf.rpc.Service {
|
|
14515
15478
|
|
|
@@ -14978,6 +15941,76 @@ export namespace google {
|
|
|
14978
15941
|
*/
|
|
14979
15942
|
public getThreadReadState(request: google.chat.v1.IGetThreadReadStateRequest): Promise<google.chat.v1.ThreadReadState>;
|
|
14980
15943
|
|
|
15944
|
+
/**
|
|
15945
|
+
* Calls GetAvailability.
|
|
15946
|
+
* @param request GetAvailabilityRequest message or plain object
|
|
15947
|
+
* @param callback Node-style callback called with the error, if any, and Availability
|
|
15948
|
+
*/
|
|
15949
|
+
public getAvailability(request: google.chat.v1.IGetAvailabilityRequest, callback: google.chat.v1.ChatService.GetAvailabilityCallback): void;
|
|
15950
|
+
|
|
15951
|
+
/**
|
|
15952
|
+
* Calls GetAvailability.
|
|
15953
|
+
* @param request GetAvailabilityRequest message or plain object
|
|
15954
|
+
* @returns Promise
|
|
15955
|
+
*/
|
|
15956
|
+
public getAvailability(request: google.chat.v1.IGetAvailabilityRequest): Promise<google.chat.v1.Availability>;
|
|
15957
|
+
|
|
15958
|
+
/**
|
|
15959
|
+
* Calls MarkAsActive.
|
|
15960
|
+
* @param request MarkAsActiveRequest message or plain object
|
|
15961
|
+
* @param callback Node-style callback called with the error, if any, and Availability
|
|
15962
|
+
*/
|
|
15963
|
+
public markAsActive(request: google.chat.v1.IMarkAsActiveRequest, callback: google.chat.v1.ChatService.MarkAsActiveCallback): void;
|
|
15964
|
+
|
|
15965
|
+
/**
|
|
15966
|
+
* Calls MarkAsActive.
|
|
15967
|
+
* @param request MarkAsActiveRequest message or plain object
|
|
15968
|
+
* @returns Promise
|
|
15969
|
+
*/
|
|
15970
|
+
public markAsActive(request: google.chat.v1.IMarkAsActiveRequest): Promise<google.chat.v1.Availability>;
|
|
15971
|
+
|
|
15972
|
+
/**
|
|
15973
|
+
* Calls MarkAsAway.
|
|
15974
|
+
* @param request MarkAsAwayRequest message or plain object
|
|
15975
|
+
* @param callback Node-style callback called with the error, if any, and Availability
|
|
15976
|
+
*/
|
|
15977
|
+
public markAsAway(request: google.chat.v1.IMarkAsAwayRequest, callback: google.chat.v1.ChatService.MarkAsAwayCallback): void;
|
|
15978
|
+
|
|
15979
|
+
/**
|
|
15980
|
+
* Calls MarkAsAway.
|
|
15981
|
+
* @param request MarkAsAwayRequest message or plain object
|
|
15982
|
+
* @returns Promise
|
|
15983
|
+
*/
|
|
15984
|
+
public markAsAway(request: google.chat.v1.IMarkAsAwayRequest): Promise<google.chat.v1.Availability>;
|
|
15985
|
+
|
|
15986
|
+
/**
|
|
15987
|
+
* Calls MarkAsDoNotDisturb.
|
|
15988
|
+
* @param request MarkAsDoNotDisturbRequest message or plain object
|
|
15989
|
+
* @param callback Node-style callback called with the error, if any, and Availability
|
|
15990
|
+
*/
|
|
15991
|
+
public markAsDoNotDisturb(request: google.chat.v1.IMarkAsDoNotDisturbRequest, callback: google.chat.v1.ChatService.MarkAsDoNotDisturbCallback): void;
|
|
15992
|
+
|
|
15993
|
+
/**
|
|
15994
|
+
* Calls MarkAsDoNotDisturb.
|
|
15995
|
+
* @param request MarkAsDoNotDisturbRequest message or plain object
|
|
15996
|
+
* @returns Promise
|
|
15997
|
+
*/
|
|
15998
|
+
public markAsDoNotDisturb(request: google.chat.v1.IMarkAsDoNotDisturbRequest): Promise<google.chat.v1.Availability>;
|
|
15999
|
+
|
|
16000
|
+
/**
|
|
16001
|
+
* Calls UpdateAvailability.
|
|
16002
|
+
* @param request UpdateAvailabilityRequest message or plain object
|
|
16003
|
+
* @param callback Node-style callback called with the error, if any, and Availability
|
|
16004
|
+
*/
|
|
16005
|
+
public updateAvailability(request: google.chat.v1.IUpdateAvailabilityRequest, callback: google.chat.v1.ChatService.UpdateAvailabilityCallback): void;
|
|
16006
|
+
|
|
16007
|
+
/**
|
|
16008
|
+
* Calls UpdateAvailability.
|
|
16009
|
+
* @param request UpdateAvailabilityRequest message or plain object
|
|
16010
|
+
* @returns Promise
|
|
16011
|
+
*/
|
|
16012
|
+
public updateAvailability(request: google.chat.v1.IUpdateAvailabilityRequest): Promise<google.chat.v1.Availability>;
|
|
16013
|
+
|
|
14981
16014
|
/**
|
|
14982
16015
|
* Calls GetSpaceEvent.
|
|
14983
16016
|
* @param request GetSpaceEventRequest message or plain object
|
|
@@ -15359,6 +16392,41 @@ export namespace google {
|
|
|
15359
16392
|
*/
|
|
15360
16393
|
type GetThreadReadStateCallback = (error: (Error|null), response?: google.chat.v1.ThreadReadState) => void;
|
|
15361
16394
|
|
|
16395
|
+
/**
|
|
16396
|
+
* Callback as used by {@link google.chat.v1.ChatService|getAvailability}.
|
|
16397
|
+
* @param error Error, if any
|
|
16398
|
+
* @param [response] Availability
|
|
16399
|
+
*/
|
|
16400
|
+
type GetAvailabilityCallback = (error: (Error|null), response?: google.chat.v1.Availability) => void;
|
|
16401
|
+
|
|
16402
|
+
/**
|
|
16403
|
+
* Callback as used by {@link google.chat.v1.ChatService|markAsActive}.
|
|
16404
|
+
* @param error Error, if any
|
|
16405
|
+
* @param [response] Availability
|
|
16406
|
+
*/
|
|
16407
|
+
type MarkAsActiveCallback = (error: (Error|null), response?: google.chat.v1.Availability) => void;
|
|
16408
|
+
|
|
16409
|
+
/**
|
|
16410
|
+
* Callback as used by {@link google.chat.v1.ChatService|markAsAway}.
|
|
16411
|
+
* @param error Error, if any
|
|
16412
|
+
* @param [response] Availability
|
|
16413
|
+
*/
|
|
16414
|
+
type MarkAsAwayCallback = (error: (Error|null), response?: google.chat.v1.Availability) => void;
|
|
16415
|
+
|
|
16416
|
+
/**
|
|
16417
|
+
* Callback as used by {@link google.chat.v1.ChatService|markAsDoNotDisturb}.
|
|
16418
|
+
* @param error Error, if any
|
|
16419
|
+
* @param [response] Availability
|
|
16420
|
+
*/
|
|
16421
|
+
type MarkAsDoNotDisturbCallback = (error: (Error|null), response?: google.chat.v1.Availability) => void;
|
|
16422
|
+
|
|
16423
|
+
/**
|
|
16424
|
+
* Callback as used by {@link google.chat.v1.ChatService|updateAvailability}.
|
|
16425
|
+
* @param error Error, if any
|
|
16426
|
+
* @param [response] Availability
|
|
16427
|
+
*/
|
|
16428
|
+
type UpdateAvailabilityCallback = (error: (Error|null), response?: google.chat.v1.Availability) => void;
|
|
16429
|
+
|
|
15362
16430
|
/**
|
|
15363
16431
|
* Callback as used by {@link google.chat.v1.ChatService|getSpaceEvent}.
|
|
15364
16432
|
* @param error Error, if any
|
|
@@ -15460,6 +16528,9 @@ export namespace google {
|
|
|
15460
16528
|
|
|
15461
16529
|
/** Membership deleteTime */
|
|
15462
16530
|
deleteTime?: (google.protobuf.ITimestamp|null);
|
|
16531
|
+
|
|
16532
|
+
/** Membership affiliation */
|
|
16533
|
+
affiliation?: (google.chat.v1.Membership.Affiliation|keyof typeof google.chat.v1.Membership.Affiliation|null);
|
|
15463
16534
|
}
|
|
15464
16535
|
|
|
15465
16536
|
/** Represents a Membership. */
|
|
@@ -15492,6 +16563,9 @@ export namespace google {
|
|
|
15492
16563
|
/** Membership deleteTime. */
|
|
15493
16564
|
public deleteTime?: (google.protobuf.ITimestamp|null);
|
|
15494
16565
|
|
|
16566
|
+
/** Membership affiliation. */
|
|
16567
|
+
public affiliation: (google.chat.v1.Membership.Affiliation|keyof typeof google.chat.v1.Membership.Affiliation);
|
|
16568
|
+
|
|
15495
16569
|
/** Membership memberType. */
|
|
15496
16570
|
public memberType?: ("member"|"groupMember");
|
|
15497
16571
|
|
|
@@ -15590,6 +16664,14 @@ export namespace google {
|
|
|
15590
16664
|
ROLE_MANAGER = 2,
|
|
15591
16665
|
ROLE_ASSISTANT_MANAGER = 4
|
|
15592
16666
|
}
|
|
16667
|
+
|
|
16668
|
+
/** Affiliation enum. */
|
|
16669
|
+
enum Affiliation {
|
|
16670
|
+
AFFILIATION_UNSPECIFIED = 0,
|
|
16671
|
+
INTERNAL = 1,
|
|
16672
|
+
EXTERNAL = 2,
|
|
16673
|
+
MANAGED_EXTERNAL = 3
|
|
16674
|
+
}
|
|
15593
16675
|
}
|
|
15594
16676
|
|
|
15595
16677
|
/** Properties of a CreateMembershipRequest. */
|
|
@@ -21238,6 +22320,9 @@ export namespace google {
|
|
|
21238
22320
|
|
|
21239
22321
|
/** AccessSettings audience */
|
|
21240
22322
|
audience?: (string|null);
|
|
22323
|
+
|
|
22324
|
+
/** AccessSettings accessPermissionSettings */
|
|
22325
|
+
accessPermissionSettings?: (google.chat.v1.Space.IAccessPermissionSettings|null);
|
|
21241
22326
|
}
|
|
21242
22327
|
|
|
21243
22328
|
/** Represents an AccessSettings. */
|
|
@@ -21255,6 +22340,9 @@ export namespace google {
|
|
|
21255
22340
|
/** AccessSettings audience. */
|
|
21256
22341
|
public audience: string;
|
|
21257
22342
|
|
|
22343
|
+
/** AccessSettings accessPermissionSettings. */
|
|
22344
|
+
public accessPermissionSettings?: (google.chat.v1.Space.IAccessPermissionSettings|null);
|
|
22345
|
+
|
|
21258
22346
|
/**
|
|
21259
22347
|
* Creates a new AccessSettings instance using the specified properties.
|
|
21260
22348
|
* @param [properties] Properties to set
|
|
@@ -21343,6 +22431,306 @@ export namespace google {
|
|
|
21343
22431
|
}
|
|
21344
22432
|
}
|
|
21345
22433
|
|
|
22434
|
+
/** Properties of an AccessPermissionSettings. */
|
|
22435
|
+
interface IAccessPermissionSettings {
|
|
22436
|
+
|
|
22437
|
+
/** AccessPermissionSettings discoverSpaceSetting */
|
|
22438
|
+
discoverSpaceSetting?: (google.chat.v1.Space.IAccessPermissionSetting|null);
|
|
22439
|
+
|
|
22440
|
+
/** AccessPermissionSettings joinSpaceSetting */
|
|
22441
|
+
joinSpaceSetting?: (google.chat.v1.Space.IAccessPermissionSetting|null);
|
|
22442
|
+
}
|
|
22443
|
+
|
|
22444
|
+
/** Represents an AccessPermissionSettings. */
|
|
22445
|
+
class AccessPermissionSettings implements IAccessPermissionSettings {
|
|
22446
|
+
|
|
22447
|
+
/**
|
|
22448
|
+
* Constructs a new AccessPermissionSettings.
|
|
22449
|
+
* @param [properties] Properties to set
|
|
22450
|
+
*/
|
|
22451
|
+
constructor(properties?: google.chat.v1.Space.IAccessPermissionSettings);
|
|
22452
|
+
|
|
22453
|
+
/** AccessPermissionSettings discoverSpaceSetting. */
|
|
22454
|
+
public discoverSpaceSetting?: (google.chat.v1.Space.IAccessPermissionSetting|null);
|
|
22455
|
+
|
|
22456
|
+
/** AccessPermissionSettings joinSpaceSetting. */
|
|
22457
|
+
public joinSpaceSetting?: (google.chat.v1.Space.IAccessPermissionSetting|null);
|
|
22458
|
+
|
|
22459
|
+
/**
|
|
22460
|
+
* Creates a new AccessPermissionSettings instance using the specified properties.
|
|
22461
|
+
* @param [properties] Properties to set
|
|
22462
|
+
* @returns AccessPermissionSettings instance
|
|
22463
|
+
*/
|
|
22464
|
+
public static create(properties?: google.chat.v1.Space.IAccessPermissionSettings): google.chat.v1.Space.AccessPermissionSettings;
|
|
22465
|
+
|
|
22466
|
+
/**
|
|
22467
|
+
* Encodes the specified AccessPermissionSettings message. Does not implicitly {@link google.chat.v1.Space.AccessPermissionSettings.verify|verify} messages.
|
|
22468
|
+
* @param message AccessPermissionSettings message or plain object to encode
|
|
22469
|
+
* @param [writer] Writer to encode to
|
|
22470
|
+
* @returns Writer
|
|
22471
|
+
*/
|
|
22472
|
+
public static encode(message: google.chat.v1.Space.IAccessPermissionSettings, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22473
|
+
|
|
22474
|
+
/**
|
|
22475
|
+
* Encodes the specified AccessPermissionSettings message, length delimited. Does not implicitly {@link google.chat.v1.Space.AccessPermissionSettings.verify|verify} messages.
|
|
22476
|
+
* @param message AccessPermissionSettings message or plain object to encode
|
|
22477
|
+
* @param [writer] Writer to encode to
|
|
22478
|
+
* @returns Writer
|
|
22479
|
+
*/
|
|
22480
|
+
public static encodeDelimited(message: google.chat.v1.Space.IAccessPermissionSettings, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22481
|
+
|
|
22482
|
+
/**
|
|
22483
|
+
* Decodes an AccessPermissionSettings message from the specified reader or buffer.
|
|
22484
|
+
* @param reader Reader or buffer to decode from
|
|
22485
|
+
* @param [length] Message length if known beforehand
|
|
22486
|
+
* @returns AccessPermissionSettings
|
|
22487
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22488
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22489
|
+
*/
|
|
22490
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.Space.AccessPermissionSettings;
|
|
22491
|
+
|
|
22492
|
+
/**
|
|
22493
|
+
* Decodes an AccessPermissionSettings message from the specified reader or buffer, length delimited.
|
|
22494
|
+
* @param reader Reader or buffer to decode from
|
|
22495
|
+
* @returns AccessPermissionSettings
|
|
22496
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22497
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22498
|
+
*/
|
|
22499
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.Space.AccessPermissionSettings;
|
|
22500
|
+
|
|
22501
|
+
/**
|
|
22502
|
+
* Verifies an AccessPermissionSettings message.
|
|
22503
|
+
* @param message Plain object to verify
|
|
22504
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
22505
|
+
*/
|
|
22506
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
22507
|
+
|
|
22508
|
+
/**
|
|
22509
|
+
* Creates an AccessPermissionSettings message from a plain object. Also converts values to their respective internal types.
|
|
22510
|
+
* @param object Plain object
|
|
22511
|
+
* @returns AccessPermissionSettings
|
|
22512
|
+
*/
|
|
22513
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.Space.AccessPermissionSettings;
|
|
22514
|
+
|
|
22515
|
+
/**
|
|
22516
|
+
* Creates a plain object from an AccessPermissionSettings message. Also converts values to other types if specified.
|
|
22517
|
+
* @param message AccessPermissionSettings
|
|
22518
|
+
* @param [options] Conversion options
|
|
22519
|
+
* @returns Plain object
|
|
22520
|
+
*/
|
|
22521
|
+
public static toObject(message: google.chat.v1.Space.AccessPermissionSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
22522
|
+
|
|
22523
|
+
/**
|
|
22524
|
+
* Converts this AccessPermissionSettings to JSON.
|
|
22525
|
+
* @returns JSON object
|
|
22526
|
+
*/
|
|
22527
|
+
public toJSON(): { [k: string]: any };
|
|
22528
|
+
|
|
22529
|
+
/**
|
|
22530
|
+
* Gets the default type url for AccessPermissionSettings
|
|
22531
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
22532
|
+
* @returns The default type url
|
|
22533
|
+
*/
|
|
22534
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
22535
|
+
}
|
|
22536
|
+
|
|
22537
|
+
/** Properties of an AccessPermissionSetting. */
|
|
22538
|
+
interface IAccessPermissionSetting {
|
|
22539
|
+
|
|
22540
|
+
/** AccessPermissionSetting principals */
|
|
22541
|
+
principals?: (google.chat.v1.Space.IPrincipal[]|null);
|
|
22542
|
+
}
|
|
22543
|
+
|
|
22544
|
+
/** Represents an AccessPermissionSetting. */
|
|
22545
|
+
class AccessPermissionSetting implements IAccessPermissionSetting {
|
|
22546
|
+
|
|
22547
|
+
/**
|
|
22548
|
+
* Constructs a new AccessPermissionSetting.
|
|
22549
|
+
* @param [properties] Properties to set
|
|
22550
|
+
*/
|
|
22551
|
+
constructor(properties?: google.chat.v1.Space.IAccessPermissionSetting);
|
|
22552
|
+
|
|
22553
|
+
/** AccessPermissionSetting principals. */
|
|
22554
|
+
public principals: google.chat.v1.Space.IPrincipal[];
|
|
22555
|
+
|
|
22556
|
+
/**
|
|
22557
|
+
* Creates a new AccessPermissionSetting instance using the specified properties.
|
|
22558
|
+
* @param [properties] Properties to set
|
|
22559
|
+
* @returns AccessPermissionSetting instance
|
|
22560
|
+
*/
|
|
22561
|
+
public static create(properties?: google.chat.v1.Space.IAccessPermissionSetting): google.chat.v1.Space.AccessPermissionSetting;
|
|
22562
|
+
|
|
22563
|
+
/**
|
|
22564
|
+
* Encodes the specified AccessPermissionSetting message. Does not implicitly {@link google.chat.v1.Space.AccessPermissionSetting.verify|verify} messages.
|
|
22565
|
+
* @param message AccessPermissionSetting message or plain object to encode
|
|
22566
|
+
* @param [writer] Writer to encode to
|
|
22567
|
+
* @returns Writer
|
|
22568
|
+
*/
|
|
22569
|
+
public static encode(message: google.chat.v1.Space.IAccessPermissionSetting, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22570
|
+
|
|
22571
|
+
/**
|
|
22572
|
+
* Encodes the specified AccessPermissionSetting message, length delimited. Does not implicitly {@link google.chat.v1.Space.AccessPermissionSetting.verify|verify} messages.
|
|
22573
|
+
* @param message AccessPermissionSetting message or plain object to encode
|
|
22574
|
+
* @param [writer] Writer to encode to
|
|
22575
|
+
* @returns Writer
|
|
22576
|
+
*/
|
|
22577
|
+
public static encodeDelimited(message: google.chat.v1.Space.IAccessPermissionSetting, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22578
|
+
|
|
22579
|
+
/**
|
|
22580
|
+
* Decodes an AccessPermissionSetting message from the specified reader or buffer.
|
|
22581
|
+
* @param reader Reader or buffer to decode from
|
|
22582
|
+
* @param [length] Message length if known beforehand
|
|
22583
|
+
* @returns AccessPermissionSetting
|
|
22584
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22585
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22586
|
+
*/
|
|
22587
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.Space.AccessPermissionSetting;
|
|
22588
|
+
|
|
22589
|
+
/**
|
|
22590
|
+
* Decodes an AccessPermissionSetting message from the specified reader or buffer, length delimited.
|
|
22591
|
+
* @param reader Reader or buffer to decode from
|
|
22592
|
+
* @returns AccessPermissionSetting
|
|
22593
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22594
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22595
|
+
*/
|
|
22596
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.Space.AccessPermissionSetting;
|
|
22597
|
+
|
|
22598
|
+
/**
|
|
22599
|
+
* Verifies an AccessPermissionSetting message.
|
|
22600
|
+
* @param message Plain object to verify
|
|
22601
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
22602
|
+
*/
|
|
22603
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
22604
|
+
|
|
22605
|
+
/**
|
|
22606
|
+
* Creates an AccessPermissionSetting message from a plain object. Also converts values to their respective internal types.
|
|
22607
|
+
* @param object Plain object
|
|
22608
|
+
* @returns AccessPermissionSetting
|
|
22609
|
+
*/
|
|
22610
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.Space.AccessPermissionSetting;
|
|
22611
|
+
|
|
22612
|
+
/**
|
|
22613
|
+
* Creates a plain object from an AccessPermissionSetting message. Also converts values to other types if specified.
|
|
22614
|
+
* @param message AccessPermissionSetting
|
|
22615
|
+
* @param [options] Conversion options
|
|
22616
|
+
* @returns Plain object
|
|
22617
|
+
*/
|
|
22618
|
+
public static toObject(message: google.chat.v1.Space.AccessPermissionSetting, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
22619
|
+
|
|
22620
|
+
/**
|
|
22621
|
+
* Converts this AccessPermissionSetting to JSON.
|
|
22622
|
+
* @returns JSON object
|
|
22623
|
+
*/
|
|
22624
|
+
public toJSON(): { [k: string]: any };
|
|
22625
|
+
|
|
22626
|
+
/**
|
|
22627
|
+
* Gets the default type url for AccessPermissionSetting
|
|
22628
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
22629
|
+
* @returns The default type url
|
|
22630
|
+
*/
|
|
22631
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
22632
|
+
}
|
|
22633
|
+
|
|
22634
|
+
/** Properties of a Principal. */
|
|
22635
|
+
interface IPrincipal {
|
|
22636
|
+
|
|
22637
|
+
/** Principal audience */
|
|
22638
|
+
audience?: (google.chat.v1.IAudience|null);
|
|
22639
|
+
}
|
|
22640
|
+
|
|
22641
|
+
/** Represents a Principal. */
|
|
22642
|
+
class Principal implements IPrincipal {
|
|
22643
|
+
|
|
22644
|
+
/**
|
|
22645
|
+
* Constructs a new Principal.
|
|
22646
|
+
* @param [properties] Properties to set
|
|
22647
|
+
*/
|
|
22648
|
+
constructor(properties?: google.chat.v1.Space.IPrincipal);
|
|
22649
|
+
|
|
22650
|
+
/** Principal audience. */
|
|
22651
|
+
public audience?: (google.chat.v1.IAudience|null);
|
|
22652
|
+
|
|
22653
|
+
/** Principal principalType. */
|
|
22654
|
+
public principalType?: "audience";
|
|
22655
|
+
|
|
22656
|
+
/**
|
|
22657
|
+
* Creates a new Principal instance using the specified properties.
|
|
22658
|
+
* @param [properties] Properties to set
|
|
22659
|
+
* @returns Principal instance
|
|
22660
|
+
*/
|
|
22661
|
+
public static create(properties?: google.chat.v1.Space.IPrincipal): google.chat.v1.Space.Principal;
|
|
22662
|
+
|
|
22663
|
+
/**
|
|
22664
|
+
* Encodes the specified Principal message. Does not implicitly {@link google.chat.v1.Space.Principal.verify|verify} messages.
|
|
22665
|
+
* @param message Principal message or plain object to encode
|
|
22666
|
+
* @param [writer] Writer to encode to
|
|
22667
|
+
* @returns Writer
|
|
22668
|
+
*/
|
|
22669
|
+
public static encode(message: google.chat.v1.Space.IPrincipal, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22670
|
+
|
|
22671
|
+
/**
|
|
22672
|
+
* Encodes the specified Principal message, length delimited. Does not implicitly {@link google.chat.v1.Space.Principal.verify|verify} messages.
|
|
22673
|
+
* @param message Principal message or plain object to encode
|
|
22674
|
+
* @param [writer] Writer to encode to
|
|
22675
|
+
* @returns Writer
|
|
22676
|
+
*/
|
|
22677
|
+
public static encodeDelimited(message: google.chat.v1.Space.IPrincipal, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22678
|
+
|
|
22679
|
+
/**
|
|
22680
|
+
* Decodes a Principal message from the specified reader or buffer.
|
|
22681
|
+
* @param reader Reader or buffer to decode from
|
|
22682
|
+
* @param [length] Message length if known beforehand
|
|
22683
|
+
* @returns Principal
|
|
22684
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22685
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22686
|
+
*/
|
|
22687
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.Space.Principal;
|
|
22688
|
+
|
|
22689
|
+
/**
|
|
22690
|
+
* Decodes a Principal message from the specified reader or buffer, length delimited.
|
|
22691
|
+
* @param reader Reader or buffer to decode from
|
|
22692
|
+
* @returns Principal
|
|
22693
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22694
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22695
|
+
*/
|
|
22696
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.Space.Principal;
|
|
22697
|
+
|
|
22698
|
+
/**
|
|
22699
|
+
* Verifies a Principal message.
|
|
22700
|
+
* @param message Plain object to verify
|
|
22701
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
22702
|
+
*/
|
|
22703
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
22704
|
+
|
|
22705
|
+
/**
|
|
22706
|
+
* Creates a Principal message from a plain object. Also converts values to their respective internal types.
|
|
22707
|
+
* @param object Plain object
|
|
22708
|
+
* @returns Principal
|
|
22709
|
+
*/
|
|
22710
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.Space.Principal;
|
|
22711
|
+
|
|
22712
|
+
/**
|
|
22713
|
+
* Creates a plain object from a Principal message. Also converts values to other types if specified.
|
|
22714
|
+
* @param message Principal
|
|
22715
|
+
* @param [options] Conversion options
|
|
22716
|
+
* @returns Plain object
|
|
22717
|
+
*/
|
|
22718
|
+
public static toObject(message: google.chat.v1.Space.Principal, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
22719
|
+
|
|
22720
|
+
/**
|
|
22721
|
+
* Converts this Principal to JSON.
|
|
22722
|
+
* @returns JSON object
|
|
22723
|
+
*/
|
|
22724
|
+
public toJSON(): { [k: string]: any };
|
|
22725
|
+
|
|
22726
|
+
/**
|
|
22727
|
+
* Gets the default type url for Principal
|
|
22728
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
22729
|
+
* @returns The default type url
|
|
22730
|
+
*/
|
|
22731
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
22732
|
+
}
|
|
22733
|
+
|
|
21346
22734
|
/** PredefinedPermissionSettings enum. */
|
|
21347
22735
|
enum PredefinedPermissionSettings {
|
|
21348
22736
|
PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED = 0,
|