Class EmojiReactionSummary.Builder (0.5.0)

public static final class EmojiReactionSummary.Builder extends GeneratedMessageV3.Builder<EmojiReactionSummary.Builder> implements EmojiReactionSummaryOrBuilder

The number of people who reacted to a message with a specific emoji.

Protobuf type google.chat.v1.EmojiReactionSummary

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EmojiReactionSummary.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
EmojiReactionSummary.Builder
Overrides

build()

public EmojiReactionSummary build()
Returns
TypeDescription
EmojiReactionSummary

buildPartial()

public EmojiReactionSummary buildPartial()
Returns
TypeDescription
EmojiReactionSummary

clear()

public EmojiReactionSummary.Builder clear()
Returns
TypeDescription
EmojiReactionSummary.Builder
Overrides

clearEmoji()

public EmojiReactionSummary.Builder clearEmoji()

Emoji associated with the reactions.

.google.chat.v1.Emoji emoji = 1;

Returns
TypeDescription
EmojiReactionSummary.Builder

clearField(Descriptors.FieldDescriptor field)

public EmojiReactionSummary.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
EmojiReactionSummary.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public EmojiReactionSummary.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
EmojiReactionSummary.Builder
Overrides

clearReactionCount()

public EmojiReactionSummary.Builder clearReactionCount()

The total number of reactions using the associated emoji.

optional int32 reaction_count = 2;

Returns
TypeDescription
EmojiReactionSummary.Builder

This builder for chaining.

clone()

public EmojiReactionSummary.Builder clone()
Returns
TypeDescription
EmojiReactionSummary.Builder
Overrides

getDefaultInstanceForType()

public EmojiReactionSummary getDefaultInstanceForType()
Returns
TypeDescription
EmojiReactionSummary

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEmoji()

public Emoji getEmoji()

Emoji associated with the reactions.

.google.chat.v1.Emoji emoji = 1;

Returns
TypeDescription
Emoji

The emoji.

getEmojiBuilder()

public Emoji.Builder getEmojiBuilder()

Emoji associated with the reactions.

.google.chat.v1.Emoji emoji = 1;

Returns
TypeDescription
Emoji.Builder

getEmojiOrBuilder()

public EmojiOrBuilder getEmojiOrBuilder()

Emoji associated with the reactions.

.google.chat.v1.Emoji emoji = 1;

Returns
TypeDescription
EmojiOrBuilder

getReactionCount()

public int getReactionCount()

The total number of reactions using the associated emoji.

optional int32 reaction_count = 2;

Returns
TypeDescription
int

The reactionCount.

hasEmoji()

public boolean hasEmoji()

Emoji associated with the reactions.

.google.chat.v1.Emoji emoji = 1;

Returns
TypeDescription
boolean

Whether the emoji field is set.

hasReactionCount()

public boolean hasReactionCount()

The total number of reactions using the associated emoji.

optional int32 reaction_count = 2;

Returns
TypeDescription
boolean

Whether the reactionCount field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEmoji(Emoji value)

public EmojiReactionSummary.Builder mergeEmoji(Emoji value)

Emoji associated with the reactions.

.google.chat.v1.Emoji emoji = 1;

Parameter
NameDescription
valueEmoji
Returns
TypeDescription
EmojiReactionSummary.Builder

mergeFrom(EmojiReactionSummary other)

public EmojiReactionSummary.Builder mergeFrom(EmojiReactionSummary other)
Parameter
NameDescription
otherEmojiReactionSummary
Returns
TypeDescription
EmojiReactionSummary.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EmojiReactionSummary.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EmojiReactionSummary.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public EmojiReactionSummary.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
EmojiReactionSummary.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EmojiReactionSummary.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EmojiReactionSummary.Builder
Overrides

setEmoji(Emoji value)

public EmojiReactionSummary.Builder setEmoji(Emoji value)

Emoji associated with the reactions.

.google.chat.v1.Emoji emoji = 1;

Parameter
NameDescription
valueEmoji
Returns
TypeDescription
EmojiReactionSummary.Builder

setEmoji(Emoji.Builder builderForValue)

public EmojiReactionSummary.Builder setEmoji(Emoji.Builder builderForValue)

Emoji associated with the reactions.

.google.chat.v1.Emoji emoji = 1;

Parameter
NameDescription
builderForValueEmoji.Builder
Returns
TypeDescription
EmojiReactionSummary.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public EmojiReactionSummary.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
EmojiReactionSummary.Builder
Overrides

setReactionCount(int value)

public EmojiReactionSummary.Builder setReactionCount(int value)

The total number of reactions using the associated emoji.

optional int32 reaction_count = 2;

Parameter
NameDescription
valueint

The reactionCount to set.

Returns
TypeDescription
EmojiReactionSummary.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public EmojiReactionSummary.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
EmojiReactionSummary.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final EmojiReactionSummary.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EmojiReactionSummary.Builder
Overrides