Class Reaction.Builder (0.1.0)

public static final class Reaction.Builder extends GeneratedMessageV3.Builder<Reaction.Builder> implements ReactionOrBuilder

A reaction to a message.

Protobuf type google.chat.v1.Reaction

Implements

ReactionOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Reaction build()
Returns
TypeDescription
Reaction

buildPartial()

public Reaction buildPartial()
Returns
TypeDescription
Reaction

clear()

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

clearEmoji()

public Reaction.Builder clearEmoji()

The emoji used in the reaction.

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

Returns
TypeDescription
Reaction.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Reaction.Builder clearName()

The resource name of the reaction.

Format: spaces/{space}/messages/{message}/reactions/{reaction}

string name = 1;

Returns
TypeDescription
Reaction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUser()

public Reaction.Builder clearUser()

Output only. The user who created the reaction.

.google.chat.v1.User user = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Reaction.Builder

clone()

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

getDefaultInstanceForType()

public Reaction getDefaultInstanceForType()
Returns
TypeDescription
Reaction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEmoji()

public Emoji getEmoji()

The emoji used in the reaction.

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

Returns
TypeDescription
Emoji

The emoji.

getEmojiBuilder()

public Emoji.Builder getEmojiBuilder()

The emoji used in the reaction.

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

Returns
TypeDescription
Emoji.Builder

getEmojiOrBuilder()

public EmojiOrBuilder getEmojiOrBuilder()

The emoji used in the reaction.

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

Returns
TypeDescription
EmojiOrBuilder

getName()

public String getName()

The resource name of the reaction.

Format: spaces/{space}/messages/{message}/reactions/{reaction}

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the reaction.

Format: spaces/{space}/messages/{message}/reactions/{reaction}

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getUser()

public User getUser()

Output only. The user who created the reaction.

.google.chat.v1.User user = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
User

The user.

getUserBuilder()

public User.Builder getUserBuilder()

Output only. The user who created the reaction.

.google.chat.v1.User user = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
User.Builder

getUserOrBuilder()

public UserOrBuilder getUserOrBuilder()

Output only. The user who created the reaction.

.google.chat.v1.User user = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
UserOrBuilder

hasEmoji()

public boolean hasEmoji()

The emoji used in the reaction.

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

Returns
TypeDescription
boolean

Whether the emoji field is set.

hasUser()

public boolean hasUser()

Output only. The user who created the reaction.

.google.chat.v1.User user = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the user 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 Reaction.Builder mergeEmoji(Emoji value)

The emoji used in the reaction.

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

Parameter
NameDescription
valueEmoji
Returns
TypeDescription
Reaction.Builder

mergeFrom(Reaction other)

public Reaction.Builder mergeFrom(Reaction other)
Parameter
NameDescription
otherReaction
Returns
TypeDescription
Reaction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUser(User value)

public Reaction.Builder mergeUser(User value)

Output only. The user who created the reaction.

.google.chat.v1.User user = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueUser
Returns
TypeDescription
Reaction.Builder

setEmoji(Emoji value)

public Reaction.Builder setEmoji(Emoji value)

The emoji used in the reaction.

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

Parameter
NameDescription
valueEmoji
Returns
TypeDescription
Reaction.Builder

setEmoji(Emoji.Builder builderForValue)

public Reaction.Builder setEmoji(Emoji.Builder builderForValue)

The emoji used in the reaction.

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

Parameter
NameDescription
builderForValueEmoji.Builder
Returns
TypeDescription
Reaction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Reaction.Builder setName(String value)

The resource name of the reaction.

Format: spaces/{space}/messages/{message}/reactions/{reaction}

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Reaction.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Reaction.Builder setNameBytes(ByteString value)

The resource name of the reaction.

Format: spaces/{space}/messages/{message}/reactions/{reaction}

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Reaction.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUser(User value)

public Reaction.Builder setUser(User value)

Output only. The user who created the reaction.

.google.chat.v1.User user = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueUser
Returns
TypeDescription
Reaction.Builder

setUser(User.Builder builderForValue)

public Reaction.Builder setUser(User.Builder builderForValue)

Output only. The user who created the reaction.

.google.chat.v1.User user = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueUser.Builder
Returns
TypeDescription
Reaction.Builder