Class Membership
Represents a membership relation in Google Chat, such as whether a user or Chat app is invited to, part of, or absent from a space.
Implements
Namespace: Google.Apps.Chat.V1
Assembly: Google.Apps.Chat.V1.dll
Syntax
public sealed class Membership : IMessage<Membership>, IEquatable<Membership>, IDeepCloneable<Membership>, IBufferMessage, IMessage
Constructors
Membership()
Declaration
public Membership()
Membership(Membership)
Declaration
public Membership(Membership other)
Parameters
Type | Name | Description |
---|---|---|
Membership | other |
Properties
CreateTime
Optional. Immutable. The creation time of the membership, such as when a member joined or was invited to join a space. This field is output only, except when used to import historical memberships in import mode spaces.
Declaration
public Timestamp CreateTime { get; set; }
Property Value
Type | Description |
---|---|
Timestamp |
DeleteTime
Optional. Immutable. The deletion time of the membership, such as when a member left or was removed from a space. This field is output only, except when used to import historical memberships in import mode spaces.
Declaration
public Timestamp DeleteTime { get; set; }
Property Value
Type | Description |
---|---|
Timestamp |
GroupMember
The Google Group the membership corresponds to.
Declaration
public Group GroupMember { get; set; }
Property Value
Type | Description |
---|---|
Group |
Member
The Google Chat user or app the membership corresponds to.
If your Chat app authenticates as a
user,
the output populates the
user
name
and type
.
Declaration
public User Member { get; set; }
Property Value
Type | Description |
---|---|
User |
MemberTypeCase
Declaration
public Membership.MemberTypeOneofCase MemberTypeCase { get; }
Property Value
Type | Description |
---|---|
Membership.MemberTypeOneofCase |
MembershipName
MembershipName-typed view over the Name resource name property.
Declaration
public MembershipName MembershipName { get; set; }
Property Value
Type | Description |
---|---|
MembershipName |
Name
Resource name of the membership, assigned by the server.
Format: spaces/{space}/members/{member}
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Role
Optional. User's role within a Chat space, which determines their permitted actions in the space.
This field can only be used as input in UpdateMembership
.
Declaration
public Membership.Types.MembershipRole Role { get; set; }
Property Value
Type | Description |
---|---|
Membership.Types.MembershipRole |
State
Output only. State of the membership.
Declaration
public Membership.Types.MembershipState State { get; set; }
Property Value
Type | Description |
---|---|
Membership.Types.MembershipState |