Represents a PermissionSettings.
Package
@google-apps/chatConstructors
(constructor)(properties)
constructor(properties?: google.chat.v1.Space.IPermissionSettings);
Constructs a new PermissionSettings.
Parameter | |
---|---|
Name | Description |
properties |
IPermissionSettings
Properties to set |
Properties
_manageApps
public _manageApps?: "manageApps";
PermissionSettings _manageApps.
_manageMembersAndGroups
public _manageMembersAndGroups?: "manageMembersAndGroups";
PermissionSettings _manageMembersAndGroups.
_manageWebhooks
public _manageWebhooks?: "manageWebhooks";
PermissionSettings _manageWebhooks.
_modifySpaceDetails
public _modifySpaceDetails?: "modifySpaceDetails";
PermissionSettings _modifySpaceDetails.
_postMessages
public _postMessages?: "postMessages";
PermissionSettings _postMessages.
_replyMessages
public _replyMessages?: "replyMessages";
PermissionSettings _replyMessages.
_toggleHistory
public _toggleHistory?: "toggleHistory";
PermissionSettings _toggleHistory.
_useAtMentionAll
public _useAtMentionAll?: "useAtMentionAll";
PermissionSettings _useAtMentionAll.
manageApps
public manageApps?: (google.chat.v1.Space.IPermissionSetting|null);
PermissionSettings manageApps.
manageMembersAndGroups
public manageMembersAndGroups?: (google.chat.v1.Space.IPermissionSetting|null);
PermissionSettings manageMembersAndGroups.
manageWebhooks
public manageWebhooks?: (google.chat.v1.Space.IPermissionSetting|null);
PermissionSettings manageWebhooks.
modifySpaceDetails
public modifySpaceDetails?: (google.chat.v1.Space.IPermissionSetting|null);
PermissionSettings modifySpaceDetails.
postMessages
public postMessages?: (google.chat.v1.Space.IPermissionSetting|null);
PermissionSettings postMessages.
replyMessages
public replyMessages?: (google.chat.v1.Space.IPermissionSetting|null);
PermissionSettings replyMessages.
toggleHistory
public toggleHistory?: (google.chat.v1.Space.IPermissionSetting|null);
PermissionSettings toggleHistory.
useAtMentionAll
public useAtMentionAll?: (google.chat.v1.Space.IPermissionSetting|null);
PermissionSettings useAtMentionAll.
Methods
create(properties)
public static create(properties?: google.chat.v1.Space.IPermissionSettings): google.chat.v1.Space.PermissionSettings;
Creates a new PermissionSettings instance using the specified properties.
Parameter | |
---|---|
Name | Description |
properties |
IPermissionSettings
Properties to set |
Returns | |
---|---|
Type | Description |
PermissionSettings |
PermissionSettings instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.Space.PermissionSettings;
Decodes a PermissionSettings message from the specified reader or buffer.
Parameters | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Returns | |
---|---|
Type | Description |
PermissionSettings |
PermissionSettings |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.Space.PermissionSettings;
Decodes a PermissionSettings message from the specified reader or buffer, length delimited.
Parameter | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
Returns | |
---|---|
Type | Description |
PermissionSettings |
PermissionSettings |
encode(message, writer)
public static encode(message: google.chat.v1.Space.IPermissionSettings, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified PermissionSettings message. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IPermissionSettings
PermissionSettings message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer |
Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.chat.v1.Space.IPermissionSettings, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified PermissionSettings message, length delimited. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IPermissionSettings
PermissionSettings message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer |
Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.chat.v1.Space.PermissionSettings;
Creates a PermissionSettings message from a plain object. Also converts values to their respective internal types.
Parameter | |
---|---|
Name | Description |
object |
{ [k: string]: any }
Plain object |
Returns | |
---|---|
Type | Description |
PermissionSettings |
PermissionSettings |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for PermissionSettings
Parameter | |
---|---|
Name | Description |
typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
Returns | |
---|---|
Type | Description |
string |
The default type url |
toJSON()
public toJSON(): { [k: string]: any };
Converts this PermissionSettings to JSON.
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.chat.v1.Space.PermissionSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a PermissionSettings message. Also converts values to other types if specified.
Parameters | |
---|---|
Name | Description |
message |
PermissionSettings
PermissionSettings |
options |
$protobuf.IConversionOptions
Conversion options |
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies a PermissionSettings message.
Parameter | |
---|---|
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Returns | |
---|---|
Type | Description |
(string|null) |
|