Class Space.MembershipCount.Builder (0.49.0)

public static final class Space.MembershipCount.Builder extends GeneratedMessage.Builder<Space.MembershipCount.Builder> implements Space.MembershipCountOrBuilder

Represents the count of memberships of a space, grouped into categories.

Protobuf type google.chat.v1.Space.MembershipCount

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Space.MembershipCount build()
Returns
Type Description
Space.MembershipCount

buildPartial()

public Space.MembershipCount buildPartial()
Returns
Type Description
Space.MembershipCount

clear()

public Space.MembershipCount.Builder clear()
Returns
Type Description
Space.MembershipCount.Builder
Overrides

clearJoinedDirectHumanUserCount()

public Space.MembershipCount.Builder clearJoinedDirectHumanUserCount()

Output only. Count of human users that have directly joined the space, not counting users joined by having membership in a joined group.

int32 joined_direct_human_user_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Space.MembershipCount.Builder

This builder for chaining.

clearJoinedGroupCount()

public Space.MembershipCount.Builder clearJoinedGroupCount()

Output only. Count of all groups that have directly joined the space.

int32 joined_group_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Space.MembershipCount.Builder

This builder for chaining.

getDefaultInstanceForType()

public Space.MembershipCount getDefaultInstanceForType()
Returns
Type Description
Space.MembershipCount

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getJoinedDirectHumanUserCount()

public int getJoinedDirectHumanUserCount()

Output only. Count of human users that have directly joined the space, not counting users joined by having membership in a joined group.

int32 joined_direct_human_user_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The joinedDirectHumanUserCount.

getJoinedGroupCount()

public int getJoinedGroupCount()

Output only. Count of all groups that have directly joined the space.

int32 joined_group_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The joinedGroupCount.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Space.MembershipCount other)

public Space.MembershipCount.Builder mergeFrom(Space.MembershipCount other)
Parameter
Name Description
other Space.MembershipCount
Returns
Type Description
Space.MembershipCount.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Space.MembershipCount.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Space.MembershipCount.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Space.MembershipCount.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Space.MembershipCount.Builder
Overrides

setJoinedDirectHumanUserCount(int value)

public Space.MembershipCount.Builder setJoinedDirectHumanUserCount(int value)

Output only. Count of human users that have directly joined the space, not counting users joined by having membership in a joined group.

int32 joined_direct_human_user_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The joinedDirectHumanUserCount to set.

Returns
Type Description
Space.MembershipCount.Builder

This builder for chaining.

setJoinedGroupCount(int value)

public Space.MembershipCount.Builder setJoinedGroupCount(int value)

Output only. Count of all groups that have directly joined the space.

int32 joined_group_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The joinedGroupCount to set.

Returns
Type Description
Space.MembershipCount.Builder

This builder for chaining.