Class CustomStatus.Builder (0.59.0)

public static final class CustomStatus.Builder extends GeneratedMessage.Builder<CustomStatus.Builder> implements CustomStatusOrBuilder

Represents a user's custom status in Google Chat. This includes a short text message with an optional emoji that a user sets to give more context about their availability.

Protobuf type google.chat.v1.CustomStatus

Static Methods

getDescriptor()

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

Methods

build()

public CustomStatus build()
Returns
Type Description
CustomStatus

buildPartial()

public CustomStatus buildPartial()
Returns
Type Description
CustomStatus

clear()

public CustomStatus.Builder clear()
Returns
Type Description
CustomStatus.Builder
Overrides

clearEmoji()

public CustomStatus.Builder clearEmoji()

Required. The emoji of the custom status. Only Unicode emojis are supported; custom emojis are not supported.

.google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomStatus.Builder

clearExpiration()

public CustomStatus.Builder clearExpiration()
Returns
Type Description
CustomStatus.Builder

clearExpireTime()

public CustomStatus.Builder clearExpireTime()

The timestamp when the custom status expires.

.google.protobuf.Timestamp expire_time = 3;

Returns
Type Description
CustomStatus.Builder

clearText()

public CustomStatus.Builder clearText()

Required. The text of the custom status. This will be a string with maximum length of 64.

string text = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomStatus.Builder

This builder for chaining.

clearTtl()

public CustomStatus.Builder clearTtl()

Input only. The time-to-live duration after which the custom status expires.

.google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
CustomStatus.Builder

getDefaultInstanceForType()

public CustomStatus getDefaultInstanceForType()
Returns
Type Description
CustomStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEmoji()

public Emoji getEmoji()

Required. The emoji of the custom status. Only Unicode emojis are supported; custom emojis are not supported.

.google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Emoji

The emoji.

getEmojiBuilder()

public Emoji.Builder getEmojiBuilder()

Required. The emoji of the custom status. Only Unicode emojis are supported; custom emojis are not supported.

.google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Emoji.Builder

getEmojiOrBuilder()

public EmojiOrBuilder getEmojiOrBuilder()

Required. The emoji of the custom status. Only Unicode emojis are supported; custom emojis are not supported.

.google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EmojiOrBuilder

getExpirationCase()

public CustomStatus.ExpirationCase getExpirationCase()
Returns
Type Description
CustomStatus.ExpirationCase

getExpireTime()

public Timestamp getExpireTime()

The timestamp when the custom status expires.

.google.protobuf.Timestamp expire_time = 3;

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

The timestamp when the custom status expires.

.google.protobuf.Timestamp expire_time = 3;

Returns
Type Description
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

The timestamp when the custom status expires.

.google.protobuf.Timestamp expire_time = 3;

Returns
Type Description
TimestampOrBuilder

getText()

public String getText()

Required. The text of the custom status. This will be a string with maximum length of 64.

string text = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

Required. The text of the custom status. This will be a string with maximum length of 64.

string text = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for text.

getTtl()

public Duration getTtl()

Input only. The time-to-live duration after which the custom status expires.

.google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Duration

The ttl.

getTtlBuilder()

public Duration.Builder getTtlBuilder()

Input only. The time-to-live duration after which the custom status expires.

.google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Builder

getTtlOrBuilder()

public DurationOrBuilder getTtlOrBuilder()

Input only. The time-to-live duration after which the custom status expires.

.google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
DurationOrBuilder

hasEmoji()

public boolean hasEmoji()

Required. The emoji of the custom status. Only Unicode emojis are supported; custom emojis are not supported.

.google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the emoji field is set.

hasExpireTime()

public boolean hasExpireTime()

The timestamp when the custom status expires.

.google.protobuf.Timestamp expire_time = 3;

Returns
Type Description
boolean

Whether the expireTime field is set.

hasTtl()

public boolean hasTtl()

Input only. The time-to-live duration after which the custom status expires.

.google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
boolean

Whether the ttl field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEmoji(Emoji value)

public CustomStatus.Builder mergeEmoji(Emoji value)

Required. The emoji of the custom status. Only Unicode emojis are supported; custom emojis are not supported.

.google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Emoji
Returns
Type Description
CustomStatus.Builder

mergeExpireTime(Timestamp value)

public CustomStatus.Builder mergeExpireTime(Timestamp value)

The timestamp when the custom status expires.

.google.protobuf.Timestamp expire_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
CustomStatus.Builder

mergeFrom(CustomStatus other)

public CustomStatus.Builder mergeFrom(CustomStatus other)
Parameter
Name Description
other CustomStatus
Returns
Type Description
CustomStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CustomStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomStatus.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CustomStatus.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CustomStatus.Builder
Overrides

mergeTtl(Duration value)

public CustomStatus.Builder mergeTtl(Duration value)

Input only. The time-to-live duration after which the custom status expires.

.google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value Duration
Returns
Type Description
CustomStatus.Builder

setEmoji(Emoji value)

public CustomStatus.Builder setEmoji(Emoji value)

Required. The emoji of the custom status. Only Unicode emojis are supported; custom emojis are not supported.

.google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Emoji
Returns
Type Description
CustomStatus.Builder

setEmoji(Emoji.Builder builderForValue)

public CustomStatus.Builder setEmoji(Emoji.Builder builderForValue)

Required. The emoji of the custom status. Only Unicode emojis are supported; custom emojis are not supported.

.google.chat.v1.Emoji emoji = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Emoji.Builder
Returns
Type Description
CustomStatus.Builder

setExpireTime(Timestamp value)

public CustomStatus.Builder setExpireTime(Timestamp value)

The timestamp when the custom status expires.

.google.protobuf.Timestamp expire_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
CustomStatus.Builder

setExpireTime(Timestamp.Builder builderForValue)

public CustomStatus.Builder setExpireTime(Timestamp.Builder builderForValue)

The timestamp when the custom status expires.

.google.protobuf.Timestamp expire_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CustomStatus.Builder

setText(String value)

public CustomStatus.Builder setText(String value)

Required. The text of the custom status. This will be a string with maximum length of 64.

string text = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The text to set.

Returns
Type Description
CustomStatus.Builder

This builder for chaining.

setTextBytes(ByteString value)

public CustomStatus.Builder setTextBytes(ByteString value)

Required. The text of the custom status. This will be a string with maximum length of 64.

string text = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
CustomStatus.Builder

This builder for chaining.

setTtl(Duration value)

public CustomStatus.Builder setTtl(Duration value)

Input only. The time-to-live duration after which the custom status expires.

.google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value Duration
Returns
Type Description
CustomStatus.Builder

setTtl(Duration.Builder builderForValue)

public CustomStatus.Builder setTtl(Duration.Builder builderForValue)

Input only. The time-to-live duration after which the custom status expires.

.google.protobuf.Duration ttl = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CustomStatus.Builder