Class CustomEmoji.Builder (0.1.0)

public static final class CustomEmoji.Builder extends GeneratedMessageV3.Builder<CustomEmoji.Builder> implements CustomEmojiOrBuilder

Represents a custom emoji.

Protobuf type google.chat.v1.CustomEmoji

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CustomEmoji build()
Returns
TypeDescription
CustomEmoji

buildPartial()

public CustomEmoji buildPartial()
Returns
TypeDescription
CustomEmoji

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUid()

public CustomEmoji.Builder clearUid()

Unique key for the custom emoji resource.

string uid = 1;

Returns
TypeDescription
CustomEmoji.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CustomEmoji getDefaultInstanceForType()
Returns
TypeDescription
CustomEmoji

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUid()

public String getUid()

Unique key for the custom emoji resource.

string uid = 1;

Returns
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Unique key for the custom emoji resource.

string uid = 1;

Returns
TypeDescription
ByteString

The bytes for uid.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CustomEmoji other)

public CustomEmoji.Builder mergeFrom(CustomEmoji other)
Parameter
NameDescription
otherCustomEmoji
Returns
TypeDescription
CustomEmoji.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CustomEmoji.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CustomEmoji.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUid(String value)

public CustomEmoji.Builder setUid(String value)

Unique key for the custom emoji resource.

string uid = 1;

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
CustomEmoji.Builder

This builder for chaining.

setUidBytes(ByteString value)

public CustomEmoji.Builder setUidBytes(ByteString value)

Unique key for the custom emoji resource.

string uid = 1;

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
CustomEmoji.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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