Class Emoji.Builder (0.18.0)

public static final class Emoji.Builder extends GeneratedMessageV3.Builder<Emoji.Builder> implements EmojiOrBuilder

An emoji that is used as a reaction to a message.

Protobuf type google.chat.v1.Emoji

Implements

EmojiOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Emoji.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Emoji.Builder
Overrides

build()

public Emoji build()
Returns
Type Description
Emoji

buildPartial()

public Emoji buildPartial()
Returns
Type Description
Emoji

clear()

public Emoji.Builder clear()
Returns
Type Description
Emoji.Builder
Overrides

clearContent()

public Emoji.Builder clearContent()
Returns
Type Description
Emoji.Builder

clearCustomEmoji()

public Emoji.Builder clearCustomEmoji()

Output only. A custom emoji.

.google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Emoji.Builder

clearField(Descriptors.FieldDescriptor field)

public Emoji.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Emoji.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Emoji.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Emoji.Builder
Overrides

clearUnicode()

public Emoji.Builder clearUnicode()

A basic emoji represented by a unicode string.

string unicode = 1;

Returns
Type Description
Emoji.Builder

This builder for chaining.

clone()

public Emoji.Builder clone()
Returns
Type Description
Emoji.Builder
Overrides

getContentCase()

public Emoji.ContentCase getContentCase()
Returns
Type Description
Emoji.ContentCase

getCustomEmoji()

public CustomEmoji getCustomEmoji()

Output only. A custom emoji.

.google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CustomEmoji

The customEmoji.

getCustomEmojiBuilder()

public CustomEmoji.Builder getCustomEmojiBuilder()

Output only. A custom emoji.

.google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CustomEmoji.Builder

getCustomEmojiOrBuilder()

public CustomEmojiOrBuilder getCustomEmojiOrBuilder()

Output only. A custom emoji.

.google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CustomEmojiOrBuilder

getDefaultInstanceForType()

public Emoji getDefaultInstanceForType()
Returns
Type Description
Emoji

getDescriptorForType()

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

getUnicode()

public String getUnicode()

A basic emoji represented by a unicode string.

string unicode = 1;

Returns
Type Description
String

The unicode.

getUnicodeBytes()

public ByteString getUnicodeBytes()

A basic emoji represented by a unicode string.

string unicode = 1;

Returns
Type Description
ByteString

The bytes for unicode.

hasCustomEmoji()

public boolean hasCustomEmoji()

Output only. A custom emoji.

.google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the customEmoji field is set.

hasUnicode()

public boolean hasUnicode()

A basic emoji represented by a unicode string.

string unicode = 1;

Returns
Type Description
boolean

Whether the unicode field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCustomEmoji(CustomEmoji value)

public Emoji.Builder mergeCustomEmoji(CustomEmoji value)

Output only. A custom emoji.

.google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CustomEmoji
Returns
Type Description
Emoji.Builder

mergeFrom(Emoji other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Emoji.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Emoji.Builder
Overrides

setCustomEmoji(CustomEmoji value)

public Emoji.Builder setCustomEmoji(CustomEmoji value)

Output only. A custom emoji.

.google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CustomEmoji
Returns
Type Description
Emoji.Builder

setCustomEmoji(CustomEmoji.Builder builderForValue)

public Emoji.Builder setCustomEmoji(CustomEmoji.Builder builderForValue)

Output only. A custom emoji.

.google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue CustomEmoji.Builder
Returns
Type Description
Emoji.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Emoji.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Emoji.Builder
Overrides

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

public Emoji.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Emoji.Builder
Overrides

setUnicode(String value)

public Emoji.Builder setUnicode(String value)

A basic emoji represented by a unicode string.

string unicode = 1;

Parameter
Name Description
value String

The unicode to set.

Returns
Type Description
Emoji.Builder

This builder for chaining.

setUnicodeBytes(ByteString value)

public Emoji.Builder setUnicodeBytes(ByteString value)

A basic emoji represented by a unicode string.

string unicode = 1;

Parameter
Name Description
value ByteString

The bytes for unicode to set.

Returns
Type Description
Emoji.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Emoji.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Emoji.Builder
Overrides