public static final class NotificationSettings.Builder extends GeneratedMessageV3.Builder<NotificationSettings.Builder> implements NotificationSettingsOrBuilder
Settings for each NotificationType.
Protobuf type google.cloud.advisorynotifications.v1.NotificationSettings
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > NotificationSettings.BuilderImplements
NotificationSettingsOrBuilderStatic 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 |
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 |
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 |
clearOneof(Descriptors.OneofDescriptor oneof)
public NotificationSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
NotificationSettings.Builder |
clone()
public NotificationSettings.Builder clone()
Returns | |
---|---|
Type | Description |
NotificationSettings.Builder |
getDefaultInstanceForType()
public NotificationSettings getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
NotificationSettings |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public NotificationSettings.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
NotificationSettings.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NotificationSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
NotificationSettings.Builder |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final NotificationSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
NotificationSettings.Builder |