public final class Membership extends GeneratedMessageV3 implements MembershipOrBuilder
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.
Protobuf type google.chat.v1.Membership
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DELETE_TIME_FIELD_NUMBER
public static final int DELETE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
GROUP_MEMBER_FIELD_NUMBER
public static final int GROUP_MEMBER_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
MEMBER_FIELD_NUMBER
public static final int MEMBER_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ROLE_FIELD_NUMBER
public static final int ROLE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Membership getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Membership.Builder newBuilder()
newBuilder(Membership prototype)
public static Membership.Builder newBuilder(Membership prototype)
public static Membership parseDelimitedFrom(InputStream input)
public static Membership parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Membership parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Membership parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Membership parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Membership parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Membership parseFrom(CodedInputStream input)
public static Membership parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Membership parseFrom(InputStream input)
public static Membership parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Membership parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Membership parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Membership> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getCreateTime()
public 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 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];
getDefaultInstanceForType()
public Membership getDefaultInstanceForType()
getDeleteTime()
public 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 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];
getGroupMember()
public 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 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];
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 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];
getMemberTypeCase()
public Membership.MemberTypeCase getMemberTypeCase()
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 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.
|
getParserForType()
public Parser<Membership> getParserForType()
Overrides
getRole()
public 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];
getRoleValue()
public 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.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getState()
public Membership.MembershipState getState()
Output only. State of the membership.
.google.chat.v1.Membership.MembershipState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue()
public 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 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 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 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 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.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Membership.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Membership.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Membership.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides