Class Emoji (0.4.0)

public final class Emoji extends GeneratedMessageV3 implements EmojiOrBuilder

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

Protobuf type google.chat.v1.Emoji

Implements

EmojiOrBuilder

Static Fields

CUSTOM_EMOJI_FIELD_NUMBER

public static final int CUSTOM_EMOJI_FIELD_NUMBER
Field Value
TypeDescription
int

UNICODE_FIELD_NUMBER

public static final int UNICODE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Emoji getDefaultInstance()
Returns
TypeDescription
Emoji

getDescriptor()

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

newBuilder()

public static Emoji.Builder newBuilder()
Returns
TypeDescription
Emoji.Builder

newBuilder(Emoji prototype)

public static Emoji.Builder newBuilder(Emoji prototype)
Parameter
NameDescription
prototypeEmoji
Returns
TypeDescription
Emoji.Builder

parseDelimitedFrom(InputStream input)

public static Emoji parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Emoji
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Emoji parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Emoji
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Emoji parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Emoji
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Emoji parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Emoji
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Emoji parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Emoji
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Emoji parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Emoji
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Emoji parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Emoji
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Emoji parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Emoji
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Emoji parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Emoji
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Emoji parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Emoji
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Emoji parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Emoji
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Emoji parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Emoji
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Emoji> parser()
Returns
TypeDescription
Parser<Emoji>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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

getParserForType()

public Parser<Emoji> getParserForType()
Returns
TypeDescription
Parser<Emoji>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Emoji.Builder newBuilderForType()
Returns
TypeDescription
Emoji.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Emoji.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Emoji.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Emoji.Builder toBuilder()
Returns
TypeDescription
Emoji.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException