public static final class CustomEmoji.CustomEmojiPayload extends GeneratedMessage implements CustomEmoji.CustomEmojiPayloadOrBuilderPayload data for the custom emoji.
Protobuf type google.chat.v1.CustomEmoji.CustomEmojiPayload
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > CustomEmoji.CustomEmojiPayloadImplements
CustomEmoji.CustomEmojiPayloadOrBuilderStatic Fields
FILENAME_FIELD_NUMBER
public static final int FILENAME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
FILE_CONTENT_FIELD_NUMBER
public static final int FILE_CONTENT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static CustomEmoji.CustomEmojiPayload getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static CustomEmoji.CustomEmojiPayload.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload.Builder |
|
newBuilder(CustomEmoji.CustomEmojiPayload prototype)
public static CustomEmoji.CustomEmojiPayload.Builder newBuilder(CustomEmoji.CustomEmojiPayload prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
CustomEmoji.CustomEmojiPayload |
| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload.Builder |
|
parseDelimitedFrom(InputStream input)
public static CustomEmoji.CustomEmojiPayload parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CustomEmoji.CustomEmojiPayload parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static CustomEmoji.CustomEmojiPayload parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CustomEmoji.CustomEmojiPayload parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static CustomEmoji.CustomEmojiPayload parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CustomEmoji.CustomEmojiPayload parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static CustomEmoji.CustomEmojiPayload parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CustomEmoji.CustomEmojiPayload parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static CustomEmoji.CustomEmojiPayload parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CustomEmoji.CustomEmojiPayload parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static CustomEmoji.CustomEmojiPayload parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CustomEmoji.CustomEmojiPayload parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<CustomEmoji.CustomEmojiPayload> parser()| Returns | |
|---|---|
| Type | Description |
Parser<CustomEmojiPayload> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public CustomEmoji.CustomEmojiPayload getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload |
|
getFileContent()
public ByteString getFileContent()Required. Input only. The image used for the custom emoji.
The payload must be under 256 KB and the dimension of the image must be square and between 64 and 500 pixels. The restrictions are subject to change.
bytes file_content = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The fileContent. |
getFilename()
public String getFilename()Required. Input only. The image file name.
Supported file extensions: .png, .jpg, .gif.
string filename = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The filename. |
getFilenameBytes()
public ByteString getFilenameBytes()Required. Input only. The image file name.
Supported file extensions: .png, .jpg, .gif.
string filename = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for filename. |
getParserForType()
public Parser<CustomEmoji.CustomEmojiPayload> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<CustomEmojiPayload> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public CustomEmoji.CustomEmojiPayload.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected CustomEmoji.CustomEmojiPayload.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload.Builder |
|
toBuilder()
public CustomEmoji.CustomEmojiPayload.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|