public static final class CustomEmoji.CustomEmojiPayload.Builder extends GeneratedMessage.Builder<CustomEmoji.CustomEmojiPayload.Builder> implements CustomEmoji.CustomEmojiPayloadOrBuilderPayload data for the custom emoji.
Protobuf type google.chat.v1.CustomEmoji.CustomEmojiPayload
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CustomEmoji.CustomEmojiPayload.BuilderImplements
CustomEmoji.CustomEmojiPayloadOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CustomEmoji.CustomEmojiPayload build()| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload |
|
buildPartial()
public CustomEmoji.CustomEmojiPayload buildPartial()| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload |
|
clear()
public CustomEmoji.CustomEmojiPayload.Builder clear()| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload.Builder |
|
clearFileContent()
public CustomEmoji.CustomEmojiPayload.Builder clearFileContent()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 |
CustomEmoji.CustomEmojiPayload.Builder |
This builder for chaining. |
clearFilename()
public CustomEmoji.CustomEmojiPayload.Builder clearFilename()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 |
CustomEmoji.CustomEmojiPayload.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public CustomEmoji.CustomEmojiPayload getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CustomEmoji.CustomEmojiPayload other)
public CustomEmoji.CustomEmojiPayload.Builder mergeFrom(CustomEmoji.CustomEmojiPayload other)| Parameter | |
|---|---|
| Name | Description |
other |
CustomEmoji.CustomEmojiPayload |
| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CustomEmoji.CustomEmojiPayload.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CustomEmoji.CustomEmojiPayload.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload.Builder |
|
setFileContent(ByteString value)
public CustomEmoji.CustomEmojiPayload.Builder setFileContent(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe fileContent to set. |
| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload.Builder |
This builder for chaining. |
setFilename(String value)
public CustomEmoji.CustomEmojiPayload.Builder setFilename(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe filename to set. |
| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload.Builder |
This builder for chaining. |
setFilenameBytes(ByteString value)
public CustomEmoji.CustomEmojiPayload.Builder setFilenameBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for filename to set. |
| Returns | |
|---|---|
| Type | Description |
CustomEmoji.CustomEmojiPayload.Builder |
This builder for chaining. |