Class NotificationSettings.Builder (0.72.0)

public static final class NotificationSettings.Builder extends GeneratedMessage.Builder<NotificationSettings.Builder> implements NotificationSettingsOrBuilder

Settings for each NotificationType.

Protobuf type google.cloud.advisorynotifications.v1.NotificationSettings

Static Methods

getDescriptor()

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

Methods

build()

public NotificationSettings build()
Returns
Type Description
NotificationSettings

buildPartial()

public NotificationSettings buildPartial()
Returns
Type Description
NotificationSettings

clear()

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

clearEnabled()

public NotificationSettings.Builder clearEnabled()

Whether the associated NotificationType is enabled.

bool enabled = 1;

Returns
Type Description
NotificationSettings.Builder

This builder for chaining.

getDefaultInstanceForType()

public NotificationSettings getDefaultInstanceForType()
Returns
Type Description
NotificationSettings

getDescriptorForType()

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

getEnabled()

public boolean getEnabled()

Whether the associated NotificationType is enabled.

bool enabled = 1;

Returns
Type Description
boolean

The enabled.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NotificationSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setEnabled(boolean value)

public NotificationSettings.Builder setEnabled(boolean value)

Whether the associated NotificationType is enabled.

bool enabled = 1;

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
NotificationSettings.Builder

This builder for chaining.