Class NotificationSettings.Builder (0.17.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NotificationSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NotificationSettings.Builder
Overrides

build()

public NotificationSettings build()
Returns
TypeDescription
NotificationSettings

buildPartial()

public NotificationSettings buildPartial()
Returns
TypeDescription
NotificationSettings

clear()

public NotificationSettings.Builder clear()
Returns
TypeDescription
NotificationSettings.Builder
Overrides

clearEnabled()

public NotificationSettings.Builder clearEnabled()

Whether the associated NotificationType is enabled.

bool enabled = 1;

Returns
TypeDescription
NotificationSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NotificationSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NotificationSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public NotificationSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NotificationSettings.Builder
Overrides

clone()

public NotificationSettings.Builder clone()
Returns
TypeDescription
NotificationSettings.Builder
Overrides

getDefaultInstanceForType()

public NotificationSettings getDefaultInstanceForType()
Returns
TypeDescription
NotificationSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Whether the associated NotificationType is enabled.

bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NotificationSettings other)

public NotificationSettings.Builder mergeFrom(NotificationSettings other)
Parameter
NameDescription
otherNotificationSettings
Returns
TypeDescription
NotificationSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NotificationSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NotificationSettings.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NotificationSettings.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NotificationSettings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NotificationSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NotificationSettings.Builder
Overrides

setEnabled(boolean value)

public NotificationSettings.Builder setEnabled(boolean value)

Whether the associated NotificationType is enabled.

bool enabled = 1;

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
NotificationSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NotificationSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NotificationSettings.Builder
Overrides

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

public NotificationSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NotificationSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NotificationSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NotificationSettings.Builder
Overrides