public static final class Reaction.Builder extends GeneratedMessageV3.Builder<Reaction.Builder> implements ReactionOrBuilder
A reaction to a message.
Protobuf type google.chat.v1.Reaction
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Reaction.BuilderImplements
ReactionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Reaction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Reaction.Builder |
build()
public Reaction build()
Returns | |
---|---|
Type | Description |
Reaction |
buildPartial()
public Reaction buildPartial()
Returns | |
---|---|
Type | Description |
Reaction |
clear()
public Reaction.Builder clear()
Returns | |
---|---|
Type | Description |
Reaction.Builder |
clearEmoji()
public Reaction.Builder clearEmoji()
The emoji used in the reaction.
.google.chat.v1.Emoji emoji = 3;
Returns | |
---|---|
Type | Description |
Reaction.Builder |
clearField(Descriptors.FieldDescriptor field)
public Reaction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Reaction.Builder |
clearName()
public Reaction.Builder clearName()
The resource name of the reaction.
Format: spaces/{space}/messages/{message}/reactions/{reaction}
string name = 1;
Returns | |
---|---|
Type | Description |
Reaction.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Reaction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Reaction.Builder |
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 | |
---|---|
Type | Description |
Reaction.Builder |
clone()
public Reaction.Builder clone()
Returns | |
---|---|
Type | Description |
Reaction.Builder |
getDefaultInstanceForType()
public Reaction getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Reaction |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEmoji()
public Emoji getEmoji()
The emoji used in the reaction.
.google.chat.v1.Emoji emoji = 3;
Returns | |
---|---|
Type | Description |
Emoji |
The emoji. |
getEmojiBuilder()
public Emoji.Builder getEmojiBuilder()
The emoji used in the reaction.
.google.chat.v1.Emoji emoji = 3;
Returns | |
---|---|
Type | Description |
Emoji.Builder |
getEmojiOrBuilder()
public EmojiOrBuilder getEmojiOrBuilder()
The emoji used in the reaction.
.google.chat.v1.Emoji emoji = 3;
Returns | |
---|---|
Type | Description |
EmojiOrBuilder |
getName()
public String getName()
The resource name of the reaction.
Format: spaces/{space}/messages/{message}/reactions/{reaction}
string name = 1;
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
The resource name of the reaction.
Format: spaces/{space}/messages/{message}/reactions/{reaction}
string name = 1;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
UserOrBuilder |
hasEmoji()
public boolean hasEmoji()
The emoji used in the reaction.
.google.chat.v1.Emoji emoji = 3;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean |
Whether the user field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeEmoji(Emoji value)
public Reaction.Builder mergeEmoji(Emoji value)
The emoji used in the reaction.
.google.chat.v1.Emoji emoji = 3;
Parameter | |
---|---|
Name | Description |
value |
Emoji |
Returns | |
---|---|
Type | Description |
Reaction.Builder |
mergeFrom(Reaction other)
public Reaction.Builder mergeFrom(Reaction other)
Parameter | |
---|---|
Name | Description |
other |
Reaction |
Returns | |
---|---|
Type | Description |
Reaction.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Reaction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Reaction.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Reaction.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Reaction.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Reaction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Reaction.Builder |
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 | |
---|---|
Name | Description |
value |
User |
Returns | |
---|---|
Type | Description |
Reaction.Builder |
setEmoji(Emoji value)
public Reaction.Builder setEmoji(Emoji value)
The emoji used in the reaction.
.google.chat.v1.Emoji emoji = 3;
Parameter | |
---|---|
Name | Description |
value |
Emoji |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue |
Emoji.Builder |
Returns | |
---|---|
Type | Description |
Reaction.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Reaction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Reaction.Builder |
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 | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Reaction.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Reaction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Reaction.Builder |
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 | |
---|---|
Name | Description |
value |
User |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue |
User.Builder |
Returns | |
---|---|
Type | Description |
Reaction.Builder |