Class NotificationSettings.Builder (0.37.0)

public static final class NotificationSettings.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NotificationSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NotificationSettings.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public NotificationSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NotificationSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public NotificationSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NotificationSettings.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NotificationSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public NotificationSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NotificationSettings.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NotificationSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NotificationSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NotificationSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NotificationSettings.Builder
Overrides