Class Space.PermissionSettings (0.19.0)

public static final class Space.PermissionSettings extends GeneratedMessageV3 implements Space.PermissionSettingsOrBuilder

Permission settings that you can specify when updating an existing named space.

To set permission settings when creating a space, specify the PredefinedPermissionSettings field in your request.

Protobuf type google.chat.v1.Space.PermissionSettings

Static Fields

MANAGE_APPS_FIELD_NUMBER

public static final int MANAGE_APPS_FIELD_NUMBER
Field Value
Type Description
int

MANAGE_MEMBERS_AND_GROUPS_FIELD_NUMBER

public static final int MANAGE_MEMBERS_AND_GROUPS_FIELD_NUMBER
Field Value
Type Description
int

MANAGE_WEBHOOKS_FIELD_NUMBER

public static final int MANAGE_WEBHOOKS_FIELD_NUMBER
Field Value
Type Description
int

MODIFY_SPACE_DETAILS_FIELD_NUMBER

public static final int MODIFY_SPACE_DETAILS_FIELD_NUMBER
Field Value
Type Description
int

POST_MESSAGES_FIELD_NUMBER

public static final int POST_MESSAGES_FIELD_NUMBER
Field Value
Type Description
int

REPLY_MESSAGES_FIELD_NUMBER

public static final int REPLY_MESSAGES_FIELD_NUMBER
Field Value
Type Description
int

TOGGLE_HISTORY_FIELD_NUMBER

public static final int TOGGLE_HISTORY_FIELD_NUMBER
Field Value
Type Description
int

USE_AT_MENTION_ALL_FIELD_NUMBER

public static final int USE_AT_MENTION_ALL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Space.PermissionSettings getDefaultInstance()
Returns
Type Description
Space.PermissionSettings

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Space.PermissionSettings.Builder newBuilder()
Returns
Type Description
Space.PermissionSettings.Builder

newBuilder(Space.PermissionSettings prototype)

public static Space.PermissionSettings.Builder newBuilder(Space.PermissionSettings prototype)
Parameter
Name Description
prototype Space.PermissionSettings
Returns
Type Description
Space.PermissionSettings.Builder

parseDelimitedFrom(InputStream input)

public static Space.PermissionSettings parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Space.PermissionSettings
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Space.PermissionSettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Space.PermissionSettings
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Space.PermissionSettings parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Space.PermissionSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Space.PermissionSettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Space.PermissionSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Space.PermissionSettings parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Space.PermissionSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Space.PermissionSettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Space.PermissionSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Space.PermissionSettings parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Space.PermissionSettings
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Space.PermissionSettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Space.PermissionSettings
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Space.PermissionSettings parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Space.PermissionSettings
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Space.PermissionSettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Space.PermissionSettings
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Space.PermissionSettings parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Space.PermissionSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Space.PermissionSettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Space.PermissionSettings
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Space.PermissionSettings> parser()
Returns
Type Description
Parser<PermissionSettings>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Space.PermissionSettings getDefaultInstanceForType()
Returns
Type Description
Space.PermissionSettings

getManageApps()

public Space.PermissionSetting getManageApps()

Optional. Setting for managing apps in a space.

optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Space.PermissionSetting

The manageApps.

getManageAppsOrBuilder()

public Space.PermissionSettingOrBuilder getManageAppsOrBuilder()

Optional. Setting for managing apps in a space.

optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Space.PermissionSettingOrBuilder

getManageMembersAndGroups()

public Space.PermissionSetting getManageMembersAndGroups()

Optional. Setting for managing members and groups in a space.

optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Space.PermissionSetting

The manageMembersAndGroups.

getManageMembersAndGroupsOrBuilder()

public Space.PermissionSettingOrBuilder getManageMembersAndGroupsOrBuilder()

Optional. Setting for managing members and groups in a space.

optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Space.PermissionSettingOrBuilder

getManageWebhooks()

public Space.PermissionSetting getManageWebhooks()

Optional. Setting for managing webhooks in a space.

optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Space.PermissionSetting

The manageWebhooks.

getManageWebhooksOrBuilder()

public Space.PermissionSettingOrBuilder getManageWebhooksOrBuilder()

Optional. Setting for managing webhooks in a space.

optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Space.PermissionSettingOrBuilder

getModifySpaceDetails()

public Space.PermissionSetting getModifySpaceDetails()

Optional. Setting for updating space name, avatar, description and guidelines.

optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Space.PermissionSetting

The modifySpaceDetails.

getModifySpaceDetailsOrBuilder()

public Space.PermissionSettingOrBuilder getModifySpaceDetailsOrBuilder()

Optional. Setting for updating space name, avatar, description and guidelines.

optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Space.PermissionSettingOrBuilder

getParserForType()

public Parser<Space.PermissionSettings> getParserForType()
Returns
Type Description
Parser<PermissionSettings>
Overrides

getPostMessages()

public Space.PermissionSetting getPostMessages()

Output only. Setting for posting messages in a space.

optional .google.chat.v1.Space.PermissionSetting post_messages = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Space.PermissionSetting

The postMessages.

getPostMessagesOrBuilder()

public Space.PermissionSettingOrBuilder getPostMessagesOrBuilder()

Output only. Setting for posting messages in a space.

optional .google.chat.v1.Space.PermissionSetting post_messages = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Space.PermissionSettingOrBuilder

getReplyMessages()

public Space.PermissionSetting getReplyMessages()

Optional. Setting for replying to messages in a space.

optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Space.PermissionSetting

The replyMessages.

getReplyMessagesOrBuilder()

public Space.PermissionSettingOrBuilder getReplyMessagesOrBuilder()

Optional. Setting for replying to messages in a space.

optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Space.PermissionSettingOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getToggleHistory()

public Space.PermissionSetting getToggleHistory()

Optional. Setting for toggling space history on and off.

optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Space.PermissionSetting

The toggleHistory.

getToggleHistoryOrBuilder()

public Space.PermissionSettingOrBuilder getToggleHistoryOrBuilder()

Optional. Setting for toggling space history on and off.

optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Space.PermissionSettingOrBuilder

getUseAtMentionAll()

public Space.PermissionSetting getUseAtMentionAll()

Optional. Setting for using @all in a space.

optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Space.PermissionSetting

The useAtMentionAll.

getUseAtMentionAllOrBuilder()

public Space.PermissionSettingOrBuilder getUseAtMentionAllOrBuilder()

Optional. Setting for using @all in a space.

optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Space.PermissionSettingOrBuilder

hasManageApps()

public boolean hasManageApps()

Optional. Setting for managing apps in a space.

optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the manageApps field is set.

hasManageMembersAndGroups()

public boolean hasManageMembersAndGroups()

Optional. Setting for managing members and groups in a space.

optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the manageMembersAndGroups field is set.

hasManageWebhooks()

public boolean hasManageWebhooks()

Optional. Setting for managing webhooks in a space.

optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the manageWebhooks field is set.

hasModifySpaceDetails()

public boolean hasModifySpaceDetails()

Optional. Setting for updating space name, avatar, description and guidelines.

optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the modifySpaceDetails field is set.

hasPostMessages()

public boolean hasPostMessages()

Output only. Setting for posting messages in a space.

optional .google.chat.v1.Space.PermissionSetting post_messages = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the postMessages field is set.

hasReplyMessages()

public boolean hasReplyMessages()

Optional. Setting for replying to messages in a space.

optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the replyMessages field is set.

hasToggleHistory()

public boolean hasToggleHistory()

Optional. Setting for toggling space history on and off.

optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the toggleHistory field is set.

hasUseAtMentionAll()

public boolean hasUseAtMentionAll()

Optional. Setting for using @all in a space.

optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the useAtMentionAll field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Space.PermissionSettings.Builder newBuilderForType()
Returns
Type Description
Space.PermissionSettings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Space.PermissionSettings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Space.PermissionSettings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Space.PermissionSettings.Builder toBuilder()
Returns
Type Description
Space.PermissionSettings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException