Class CreateMessageNotificationOptions.Builder (0.57.0)

public static final class CreateMessageNotificationOptions.Builder extends GeneratedMessage.Builder<CreateMessageNotificationOptions.Builder> implements CreateMessageNotificationOptionsOrBuilder

Options for the notification behavior when the message is posted.

Protobuf type google.chat.v1.CreateMessageNotificationOptions

Static Methods

getDescriptor()

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

Methods

build()

public CreateMessageNotificationOptions build()
Returns
Type Description
CreateMessageNotificationOptions

buildPartial()

public CreateMessageNotificationOptions buildPartial()
Returns
Type Description
CreateMessageNotificationOptions

clear()

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

clearNotificationType()

public CreateMessageNotificationOptions.Builder clearNotificationType()

The notification type for the message.

.google.chat.v1.CreateMessageNotificationOptions.NotificationType notification_type = 1;

Returns
Type Description
CreateMessageNotificationOptions.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateMessageNotificationOptions getDefaultInstanceForType()
Returns
Type Description
CreateMessageNotificationOptions

getDescriptorForType()

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

getNotificationType()

public CreateMessageNotificationOptions.NotificationType getNotificationType()

The notification type for the message.

.google.chat.v1.CreateMessageNotificationOptions.NotificationType notification_type = 1;

Returns
Type Description
CreateMessageNotificationOptions.NotificationType

The notificationType.

getNotificationTypeValue()

public int getNotificationTypeValue()

The notification type for the message.

.google.chat.v1.CreateMessageNotificationOptions.NotificationType notification_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for notificationType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateMessageNotificationOptions other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setNotificationType(CreateMessageNotificationOptions.NotificationType value)

public CreateMessageNotificationOptions.Builder setNotificationType(CreateMessageNotificationOptions.NotificationType value)

The notification type for the message.

.google.chat.v1.CreateMessageNotificationOptions.NotificationType notification_type = 1;

Parameter
Name Description
value CreateMessageNotificationOptions.NotificationType

The notificationType to set.

Returns
Type Description
CreateMessageNotificationOptions.Builder

This builder for chaining.

setNotificationTypeValue(int value)

public CreateMessageNotificationOptions.Builder setNotificationTypeValue(int value)

The notification type for the message.

.google.chat.v1.CreateMessageNotificationOptions.NotificationType notification_type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for notificationType to set.

Returns
Type Description
CreateMessageNotificationOptions.Builder

This builder for chaining.