Enum Membership.MembershipRole (0.44.0)

public enum Membership.MembershipRole extends Enum<Membership.MembershipRole> implements ProtocolMessageEnum

Represents a user's permitted actions in a Chat space. More enum values might be added in the future.

Protobuf enum google.chat.v1.Membership.MembershipRole

Implements

ProtocolMessageEnum

Static Fields

Name Description
MEMBERSHIP_ROLE_UNSPECIFIED

Default value. For users: they aren't a member of the space, but can be invited. For Google Groups: they're always assigned this role (other enum values might be used in the future).

MEMBERSHIP_ROLE_UNSPECIFIED = 0;

MEMBERSHIP_ROLE_UNSPECIFIED_VALUE

Default value. For users: they aren't a member of the space, but can be invited. For Google Groups: they're always assigned this role (other enum values might be used in the future).

MEMBERSHIP_ROLE_UNSPECIFIED = 0;

ROLE_ASSISTANT_MANAGER

A space manager. In the Chat UI, this role is called Manager.

The user has all basic permissions of ROLE_MEMBER, and can be granted a subset of administrative permissions by an owner. By default, managers have all the permissions of an owner except for the ability to:

  • Delete the space.
  • Make another space member an owner.
  • Change an owner's role.

    By default, managers permissions include but aren't limited to:

  • Make another member a manager.

  • Delete messages in the space.
  • Manage space permissions.
  • Receive notifications for requests to join the space if the manager has the "manage members" permission in the space settings.
  • Make a space discoverable.

    Only supported in SpaceType.SPACE (named spaces).

    To learn more, see Manage space settings.

ROLE_ASSISTANT_MANAGER = 4;

ROLE_ASSISTANT_MANAGER_VALUE

A space manager. In the Chat UI, this role is called Manager.

The user has all basic permissions of ROLE_MEMBER, and can be granted a subset of administrative permissions by an owner. By default, managers have all the permissions of an owner except for the ability to:

  • Delete the space.
  • Make another space member an owner.
  • Change an owner's role.

    By default, managers permissions include but aren't limited to:

  • Make another member a manager.

  • Delete messages in the space.
  • Manage space permissions.
  • Receive notifications for requests to join the space if the manager has the "manage members" permission in the space settings.
  • Make a space discoverable.

    Only supported in SpaceType.SPACE (named spaces).

    To learn more, see Manage space settings.

ROLE_ASSISTANT_MANAGER = 4;

ROLE_MANAGER

A space owner. In the Chat UI, this role is called Owner.

The user has the complete set of space permissions to manage the space, including:

ROLE_MANAGER = 2;

ROLE_MANAGER_VALUE

A space owner. In the Chat UI, this role is called Owner.

The user has the complete set of space permissions to manage the space, including:

ROLE_MANAGER = 2;

ROLE_MEMBER

A member of the space. In the Chat UI, this role is called Member.

The user has basic permissions, like sending messages to the space. Managers and owners can grant members additional permissions in a space, including:

  • Add or remove members.
  • Modify space details.
  • Turn history on or off.
  • Mention everyone in the space with @all.
  • Manage Chat apps and webhooks installed in the space.

    In direct messages and unnamed group conversations, everyone has this role.

ROLE_MEMBER = 1;

ROLE_MEMBER_VALUE

A member of the space. In the Chat UI, this role is called Member.

The user has basic permissions, like sending messages to the space. Managers and owners can grant members additional permissions in a space, including:

  • Add or remove members.
  • Modify space details.
  • Turn history on or off.
  • Mention everyone in the space with @all.
  • Manage Chat apps and webhooks installed in the space.

    In direct messages and unnamed group conversations, everyone has this role.

ROLE_MEMBER = 1;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()