Interface MembershipOrBuilder (0.18.0)

public interface MembershipOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCreateTime()

public abstract Timestamp getCreateTime()

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.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public abstract TimestampOrBuilder getCreateTimeOrBuilder()

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.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getDeleteTime()

public abstract Timestamp getDeleteTime()

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.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The deleteTime.

getDeleteTimeOrBuilder()

public abstract TimestampOrBuilder getDeleteTimeOrBuilder()

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.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getGroupMember()

public abstract Group getGroupMember()

The Google Group the membership corresponds to.

.google.chat.v1.Group group_member = 5;

Returns
Type Description
Group

The groupMember.

getGroupMemberOrBuilder()

public abstract GroupOrBuilder getGroupMemberOrBuilder()

The Google Group the membership corresponds to.

.google.chat.v1.Group group_member = 5;

Returns
Type Description
GroupOrBuilder

getMember()

public abstract User getMember()

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.

.google.chat.v1.User member = 3;

Returns
Type Description
User

The member.

getMemberOrBuilder()

public abstract UserOrBuilder getMemberOrBuilder()

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.

.google.chat.v1.User member = 3;

Returns
Type Description
UserOrBuilder

getMemberTypeCase()

public abstract Membership.MemberTypeCase getMemberTypeCase()
Returns
Type Description
Membership.MemberTypeCase

getName()

public abstract String getName()

Resource name of the membership, assigned by the server.

Format: spaces/{space}/members/{member}

string name = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Resource name of the membership, assigned by the server.

Format: spaces/{space}/members/{member}

string name = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getRole()

public abstract Membership.MembershipRole getRole()

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.

.google.chat.v1.Membership.MembershipRole role = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Membership.MembershipRole

The role.

getRoleValue()

public abstract int getRoleValue()

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.

.google.chat.v1.Membership.MembershipRole role = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for role.

getState()

public abstract Membership.MembershipState getState()

Output only. State of the membership.

.google.chat.v1.Membership.MembershipState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Membership.MembershipState

The state.

getStateValue()

public abstract int getStateValue()

Output only. State of the membership.

.google.chat.v1.Membership.MembershipState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

hasCreateTime()

public abstract boolean hasCreateTime()

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.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDeleteTime()

public abstract boolean hasDeleteTime()

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.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the deleteTime field is set.

hasGroupMember()

public abstract boolean hasGroupMember()

The Google Group the membership corresponds to.

.google.chat.v1.Group group_member = 5;

Returns
Type Description
boolean

Whether the groupMember field is set.

hasMember()

public abstract boolean hasMember()

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.

.google.chat.v1.User member = 3;

Returns
Type Description
boolean

Whether the member field is set.