Class CustomEmoji.CustomEmojiPayload.Builder (0.27.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public CustomEmoji.CustomEmojiPayload.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CustomEmoji.CustomEmojiPayload.Builder
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];

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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public CustomEmoji.CustomEmojiPayload getDefaultInstanceForType()
Returns
Type Description
CustomEmoji.CustomEmojiPayload

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
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
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CustomEmoji.CustomEmojiPayload.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CustomEmoji.CustomEmojiPayload.Builder
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.

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 String

The 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 ByteString

The bytes for filename to set.

Returns
Type Description
CustomEmoji.CustomEmojiPayload.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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