Class CustomEmoji.Builder (0.8.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CustomEmoji build()
Returns
Type Description
CustomEmoji

buildPartial()

public CustomEmoji buildPartial()
Returns
Type Description
CustomEmoji

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUid()

public CustomEmoji.Builder clearUid()

Output only. Unique key for the custom emoji resource.

string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CustomEmoji.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CustomEmoji getDefaultInstanceForType()
Returns
Type Description
CustomEmoji

getDescriptorForType()

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

getUid()

public String getUid()

Output only. Unique key for the custom emoji resource.

string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. Unique key for the custom emoji resource.

string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for uid.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CustomEmoji other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUid(String value)

public CustomEmoji.Builder setUid(String value)

Output only. Unique key for the custom emoji resource.

string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
CustomEmoji.Builder

This builder for chaining.

setUidBytes(ByteString value)

public CustomEmoji.Builder setUidBytes(ByteString value)

Output only. Unique key for the custom emoji resource.

string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
CustomEmoji.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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