Interface SearchMessageResultOrBuilder (0.63.0)

public interface SearchMessageResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMessage()

public abstract Message getMessage()

The matched message.

.google.chat.v1.Message message = 1;

Returns
Type Description
Message

The message.

getMessageOrBuilder()

public abstract MessageOrBuilder getMessageOrBuilder()

The matched message.

.google.chat.v1.Message message = 1;

Returns
Type Description
MessageOrBuilder

getRead()

public abstract boolean getRead()

Indicates if the matched message is read by the calling user.

Only returned if the request view is SEARCH_MESSAGES_VIEW_FULL and the calling credentials include one of the following authorization scopes:

optional bool read = 3;

Returns
Type Description
boolean

The read.

getSpaceMuteSetting()

public abstract SpaceNotificationSetting.MuteSetting getSpaceMuteSetting()

The mute setting of the calling user for the space where the message is posted. The caller app can use this information to decide how to process the message depending on whether the space is muted for the user or not.

Only returned if the request view is SEARCH_MESSAGES_VIEW_FULL and the calling credentials include the following authorization scope:

.google.chat.v1.SpaceNotificationSetting.MuteSetting space_mute_setting = 4;

Returns
Type Description
SpaceNotificationSetting.MuteSetting

The spaceMuteSetting.

getSpaceMuteSettingValue()

public abstract int getSpaceMuteSettingValue()

The mute setting of the calling user for the space where the message is posted. The caller app can use this information to decide how to process the message depending on whether the space is muted for the user or not.

Only returned if the request view is SEARCH_MESSAGES_VIEW_FULL and the calling credentials include the following authorization scope:

.google.chat.v1.SpaceNotificationSetting.MuteSetting space_mute_setting = 4;

Returns
Type Description
int

The enum numeric value on the wire for spaceMuteSetting.

hasMessage()

public abstract boolean hasMessage()

The matched message.

.google.chat.v1.Message message = 1;

Returns
Type Description
boolean

Whether the message field is set.

hasRead()

public abstract boolean hasRead()

Indicates if the matched message is read by the calling user.

Only returned if the request view is SEARCH_MESSAGES_VIEW_FULL and the calling credentials include one of the following authorization scopes:

optional bool read = 3;

Returns
Type Description
boolean

Whether the read field is set.