public
final
class
CustomEmoji
extends
GeneratedMessageV3
implements
CustomEmojiOrBuilder
Represents a custom emoji .
Protobuf type google.chat.v1.CustomEmoji
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CustomEmojiImplements
CustomEmojiOrBuilderStatic Fields
EMOJI_NAME_FIELD_NUMBER
public
static
final
int
EMOJI_NAME_FIELD_NUMBER
NAME_FIELD_NUMBER
public
static
final
int
NAME_FIELD_NUMBER
PAYLOAD_FIELD_NUMBER
public
static
final
int
PAYLOAD_FIELD_NUMBER
TEMPORARY_IMAGE_URI_FIELD_NUMBER
public
static
final
int
TEMPORARY_IMAGE_URI_FIELD_NUMBER
UID_FIELD_NUMBER
public
static
final
int
UID_FIELD_NUMBER
Static Methods
getDefaultInstance()
public
static
CustomEmoji
getDefaultInstance
()
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
newBuilder()
public
static
CustomEmoji
.
Builder
newBuilder
()
newBuilder(CustomEmoji prototype)
public
static
CustomEmoji
.
Builder
newBuilder
(
CustomEmoji
prototype
)
parseDelimitedFrom(InputStream input)
public
static
CustomEmoji
parseDelimitedFrom
(
InputStream
input
)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
CustomEmoji
parseDelimitedFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(byte[] data)
public
static
CustomEmoji
parseFrom
(
byte
[]
data
)
data
byte
[]
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public
static
CustomEmoji
parseFrom
(
byte
[]
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteString data)
public
static
CustomEmoji
parseFrom
(
ByteString
data
)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public
static
CustomEmoji
parseFrom
(
ByteString
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(CodedInputStream input)
public
static
CustomEmoji
parseFrom
(
CodedInputStream
input
)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
static
CustomEmoji
parseFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(InputStream input)
public
static
CustomEmoji
parseFrom
(
InputStream
input
)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
CustomEmoji
parseFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteBuffer data)
public
static
CustomEmoji
parseFrom
(
ByteBuffer
data
)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public
static
CustomEmoji
parseFrom
(
ByteBuffer
data
,
ExtensionRegistryLite
extensionRegistry
)
parser()
public
static
Parser<CustomEmoji>
parser
()
Methods
equals(Object obj)
public
boolean
equals
(
Object
obj
)
getDefaultInstanceForType()
public
CustomEmoji
getDefaultInstanceForType
()
getEmojiName()
public
String
getEmojiName
()
Optional. Immutable. User-provided name for the custom emoji, which is unique within the organization.
Required when the custom emoji is created, output only otherwise.
Emoji names must start and end with colons, must be lowercase and can only contain alphanumeric characters, hyphens, and underscores. Hyphens and underscores should be used to separate words and cannot be used consecutively.
Example: :valid-emoji-name:
string emoji_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
getEmojiNameBytes()
public
ByteString
getEmojiNameBytes
()
Optional. Immutable. User-provided name for the custom emoji, which is unique within the organization.
Required when the custom emoji is created, output only otherwise.
Emoji names must start and end with colons, must be lowercase and can only contain alphanumeric characters, hyphens, and underscores. Hyphens and underscores should be used to separate words and cannot be used consecutively.
Example: :valid-emoji-name:
string emoji_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
getName()
public
String
getName
()
Identifier. The resource name of the custom emoji, assigned by the server.
Format: customEmojis/{customEmoji}
string name = 2 [(.google.api.field_behavior) = IDENTIFIER];
getNameBytes()
public
ByteString
getNameBytes
()
Identifier. The resource name of the custom emoji, assigned by the server.
Format: customEmojis/{customEmoji}
string name = 2 [(.google.api.field_behavior) = IDENTIFIER];
getParserForType()
public
Parser<CustomEmoji>
getParserForType
()
getPayload()
public
CustomEmoji
.
CustomEmojiPayload
getPayload
()
Optional. Input only. Payload data. Required when the custom emoji is created.
.google.chat.v1.CustomEmoji.CustomEmojiPayload payload = 5 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
getPayloadOrBuilder()
public
CustomEmoji
.
CustomEmojiPayloadOrBuilder
getPayloadOrBuilder
()
Optional. Input only. Payload data. Required when the custom emoji is created.
.google.chat.v1.CustomEmoji.CustomEmojiPayload payload = 5 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
getSerializedSize()
public
int
getSerializedSize
()
getTemporaryImageUri()
public
String
getTemporaryImageUri
()
Output only. A temporary image URL for the custom emoji, valid for at least 10 minutes. Note that this is not populated in the response when the custom emoji is created.
string temporary_image_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTemporaryImageUriBytes()
public
ByteString
getTemporaryImageUriBytes
()
Output only. A temporary image URL for the custom emoji, valid for at least 10 minutes. Note that this is not populated in the response when the custom emoji is created.
string temporary_image_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUid()
public
String
getUid
()
Output only. Unique key for the custom emoji resource.
string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
getUidBytes()
public
ByteString
getUidBytes
()
Output only. Unique key for the custom emoji resource.
string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
hasPayload()
public
boolean
hasPayload
()
Optional. Input only. Payload data. Required when the custom emoji is created.
.google.chat.v1.CustomEmoji.CustomEmojiPayload payload = 5 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
hashCode()
public
int
hashCode
()
internalGetFieldAccessorTable()
protected
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
isInitialized()
public
final
boolean
isInitialized
()
newBuilderForType()
public
CustomEmoji
.
Builder
newBuilderForType
()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected
CustomEmoji
.
Builder
newBuilderForType
(
GeneratedMessageV3
.
BuilderParent
parent
)
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected
Object
newInstance
(
GeneratedMessageV3
.
UnusedPrivateParameter
unused
)
toBuilder()
public
CustomEmoji
.
Builder
toBuilder
()
writeTo(CodedOutputStream output)
public
void
writeTo
(
CodedOutputStream
output
)