Google Chat V1 API - Class Google::Apps::Chat::V1::CustomStatus (v0.27.0)

Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Chat::V1::CustomStatus.

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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#emoji

def emoji() -> ::Google::Apps::Chat::V1::Emoji
Returns

#emoji=

def emoji=(value) -> ::Google::Apps::Chat::V1::Emoji
Parameter
  • value (::Google::Apps::Chat::V1::Emoji) — Required. The emoji of the custom status. Only Unicode emojis are supported; custom emojis are not supported.
Returns

#expire_time

def expire_time() -> ::Google::Protobuf::Timestamp
Returns
  • (::Google::Protobuf::Timestamp) — The timestamp when the custom status expires.

    Note: The following fields are mutually exclusive: expire_time, ttl. If a field in that set is populated, all other fields in the set will automatically be cleared.

#expire_time=

def expire_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
  • value (::Google::Protobuf::Timestamp) — The timestamp when the custom status expires.

    Note: The following fields are mutually exclusive: expire_time, ttl. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Protobuf::Timestamp) — The timestamp when the custom status expires.

    Note: The following fields are mutually exclusive: expire_time, ttl. If a field in that set is populated, all other fields in the set will automatically be cleared.

#text

def text() -> ::String
Returns
  • (::String) — Required. The text of the custom status. This will be a string with maximum length of 64.

#text=

def text=(value) -> ::String
Parameter
  • value (::String) — Required. The text of the custom status. This will be a string with maximum length of 64.
Returns
  • (::String) — Required. The text of the custom status. This will be a string with maximum length of 64.

#ttl

def ttl() -> ::Google::Protobuf::Duration
Returns
  • (::Google::Protobuf::Duration) — Input only. The time-to-live duration after which the custom status expires.

    Note: The following fields are mutually exclusive: ttl, expire_time. If a field in that set is populated, all other fields in the set will automatically be cleared.

#ttl=

def ttl=(value) -> ::Google::Protobuf::Duration
Parameter
  • value (::Google::Protobuf::Duration) — Input only. The time-to-live duration after which the custom status expires.

    Note: The following fields are mutually exclusive: ttl, expire_time. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Protobuf::Duration) — Input only. The time-to-live duration after which the custom status expires.

    Note: The following fields are mutually exclusive: ttl, expire_time. If a field in that set is populated, all other fields in the set will automatically be cleared.