Class Emoji.Builder (0.1.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Emoji build()
Returns
TypeDescription
Emoji

buildPartial()

public Emoji buildPartial()
Returns
TypeDescription
Emoji

clear()

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

clearContent()

public Emoji.Builder clearContent()
Returns
TypeDescription
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
TypeDescription
Emoji.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnicode()

public Emoji.Builder clearUnicode()

A basic emoji represented by a unicode string.

string unicode = 1;

Returns
TypeDescription
Emoji.Builder

This builder for chaining.

clone()

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

getContentCase()

public Emoji.ContentCase getContentCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CustomEmojiOrBuilder

getDefaultInstanceForType()

public Emoji getDefaultInstanceForType()
Returns
TypeDescription
Emoji

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUnicode()

public String getUnicode()

A basic emoji represented by a unicode string.

string unicode = 1;

Returns
TypeDescription
String

The unicode.

getUnicodeBytes()

public ByteString getUnicodeBytes()

A basic emoji represented by a unicode string.

string unicode = 1;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the customEmoji field is set.

hasUnicode()

public boolean hasUnicode()

A basic emoji represented by a unicode string.

string unicode = 1;

Returns
TypeDescription
boolean

Whether the unicode field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueCustomEmoji
Returns
TypeDescription
Emoji.Builder

mergeFrom(Emoji other)

public Emoji.Builder mergeFrom(Emoji other)
Parameter
NameDescription
otherEmoji
Returns
TypeDescription
Emoji.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Emoji.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueCustomEmoji
Returns
TypeDescription
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
NameDescription
builderForValueCustomEmoji.Builder
Returns
TypeDescription
Emoji.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnicode(String value)

public Emoji.Builder setUnicode(String value)

A basic emoji represented by a unicode string.

string unicode = 1;

Parameter
NameDescription
valueString

The unicode to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for unicode to set.

Returns
TypeDescription
Emoji.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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