Send feedback
Class CustomEmoji.CustomEmojiPayload.Builder (0.27.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class CustomEmoji . CustomEmojiPayload . Builder extends GeneratedMessageV3 . Builder<CustomEmoji . CustomEmojiPayload . Builder > implements CustomEmoji . CustomEmojiPayloadOrBuilder
Payload data for the custom emoji.
Protobuf type google.chat.v1.CustomEmoji.CustomEmojiPayload
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CustomEmoji . CustomEmojiPayload . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public CustomEmoji . CustomEmojiPayload build ()
buildPartial()
public CustomEmoji . CustomEmojiPayload buildPartial ()
clear()
public CustomEmoji . CustomEmojiPayload . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CustomEmoji . CustomEmojiPayload . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
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];
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public CustomEmoji . CustomEmojiPayload . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public CustomEmoji . CustomEmojiPayload . Builder clone ()
Overrides
getDefaultInstanceForType()
public CustomEmoji . CustomEmojiPayload getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
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 GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(CustomEmoji.CustomEmojiPayload other)
public CustomEmoji . CustomEmojiPayload . Builder mergeFrom ( CustomEmoji . CustomEmojiPayload other )
public CustomEmoji . CustomEmojiPayload . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public CustomEmoji . CustomEmojiPayload . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CustomEmoji . CustomEmojiPayload . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CustomEmoji . CustomEmojiPayload . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
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
ByteString
The fileContent to set.
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
String
The filename to set.
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
ByteString
The bytes for filename to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CustomEmoji . CustomEmojiPayload . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CustomEmoji . CustomEmojiPayload . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-04 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-04 UTC."],[],[]]