Class Reaction (0.5.0)

public final class Reaction extends GeneratedMessageV3 implements ReactionOrBuilder

A reaction to a message.

Protobuf type google.chat.v1.Reaction

Implements

ReactionOrBuilder

Static Fields

EMOJI_FIELD_NUMBER

public static final int EMOJI_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

USER_FIELD_NUMBER

public static final int USER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Reaction getDefaultInstance()
Returns
TypeDescription
Reaction

getDescriptor()

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

newBuilder()

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

newBuilder(Reaction prototype)

public static Reaction.Builder newBuilder(Reaction prototype)
Parameter
NameDescription
prototypeReaction
Returns
TypeDescription
Reaction.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Reaction getDefaultInstanceForType()
Returns
TypeDescription
Reaction

getEmoji()

public Emoji getEmoji()

The emoji used in the reaction.

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

Returns
TypeDescription
Emoji

The emoji.

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.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

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.

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 Reaction.Builder newBuilderForType()
Returns
TypeDescription
Reaction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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