Class Membership (0.1.0)

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

Implements

MembershipOrBuilder

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

DELETE_TIME_FIELD_NUMBER

public static final int DELETE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

GROUP_MEMBER_FIELD_NUMBER

public static final int GROUP_MEMBER_FIELD_NUMBER
Field Value
TypeDescription
int

MEMBER_FIELD_NUMBER

public static final int MEMBER_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

ROLE_FIELD_NUMBER

public static final int ROLE_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Membership getDefaultInstance()
Returns
TypeDescription
Membership

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Membership.Builder newBuilder()
Returns
TypeDescription
Membership.Builder

newBuilder(Membership prototype)

public static Membership.Builder newBuilder(Membership prototype)
Parameter
NameDescription
prototypeMembership
Returns
TypeDescription
Membership.Builder

parseDelimitedFrom(InputStream input)

public static Membership parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Membership
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Membership parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Membership
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Membership parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Membership
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Membership parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Membership
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Membership parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Membership
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Membership parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Membership
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Membership parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Membership
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Membership parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Membership
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Membership parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Membership
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Membership parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Membership
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Membership parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Membership
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Membership parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Membership
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Membership> parser()
Returns
TypeDescription
Parser<Membership>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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
TypeDescription
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];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Membership getDefaultInstanceForType()
Returns
TypeDescription
Membership

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
TypeDescription
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];

Returns
TypeDescription
TimestampOrBuilder

getGroupMember()

public Group getGroupMember()

The Google Group the membership corresponds to. Only supports read operations. Other operations, like creating or updating a membership, aren't currently supported.

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

Returns
TypeDescription
Group

The groupMember.

getGroupMemberOrBuilder()

public GroupOrBuilder getGroupMemberOrBuilder()

The Google Group the membership corresponds to. Only supports read operations. Other operations, like creating or updating a membership, aren't currently supported.

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

Returns
TypeDescription
GroupOrBuilder

getMember()

public 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
TypeDescription
User

The member.

getMemberOrBuilder()

public 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
TypeDescription
UserOrBuilder

getMemberTypeCase()

public Membership.MemberTypeCase getMemberTypeCase()
Returns
TypeDescription
Membership.MemberTypeCase

getName()

public String getName()

Resource name of the membership, assigned by the server.

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

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Resource name of the membership, assigned by the server.

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

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

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<Membership> getParserForType()
Returns
TypeDescription
Parser<Membership>
Overrides

getRole()

public Membership.MembershipRole getRole()

Optional. User's role within a Chat space, which determines their permitted actions in the space.

Developer Preview: This field can only be used as input in UpdateMembership.

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

Returns
TypeDescription
Membership.MembershipRole

The role.

getRoleValue()

public int getRoleValue()

Optional. User's role within a Chat space, which determines their permitted actions in the space.

Developer Preview: This field can only be used as input in UpdateMembership.

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

Returns
TypeDescription
int

The enum numeric value on the wire for role.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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];

Returns
TypeDescription
Membership.MembershipState

The state.

getStateValue()

public int getStateValue()

Output only. State of the membership.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the deleteTime field is set.

hasGroupMember()

public boolean hasGroupMember()

The Google Group the membership corresponds to. Only supports read operations. Other operations, like creating or updating a membership, aren't currently supported.

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

Returns
TypeDescription
boolean

Whether the groupMember field is set.

hasMember()

public 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
TypeDescription
boolean

Whether the member field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Membership.Builder newBuilderForType()
Returns
TypeDescription
Membership.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Membership.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Membership.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Membership.Builder toBuilder()
Returns
TypeDescription
Membership.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException