public interface MembershipOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
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()
Optional. The Google Group the membership corresponds to.
Reading or mutating memberships for Google Groups requires user authentication.
.google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Group |
The groupMember. |
getGroupMemberOrBuilder()
public abstract GroupOrBuilder getGroupMemberOrBuilder()
Optional. The Google Group the membership corresponds to.
Reading or mutating memberships for Google Groups requires user authentication.
.google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
GroupOrBuilder |
getMember()
public abstract User getMember()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
User |
The member. |
getMemberOrBuilder()
public abstract UserOrBuilder getMemberOrBuilder()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
UserOrBuilder |
getMemberTypeCase()
public abstract Membership.MemberTypeCase getMemberTypeCase()
Returns | |
---|---|
Type | Description |
Membership.MemberTypeCase |
getName()
public abstract String getName()
Identifier. Resource name of the membership, assigned by the server.
Format: spaces/{space}/members/{member}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public abstract ByteString getNameBytes()
Identifier. Resource name of the membership, assigned by the server.
Format: spaces/{space}/members/{member}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
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()
Optional. The Google Group the membership corresponds to.
Reading or mutating memberships for Google Groups requires user authentication.
.google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the groupMember field is set. |
hasMember()
public abstract boolean hasMember()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the member field is set. |