Class AlertPolicy.AlertStrategy.NotificationRateLimit.Builder (3.42.0)

public static final class AlertPolicy.AlertStrategy.NotificationRateLimit.Builder extends GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationRateLimit.Builder> implements AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder

Control over the rate of notifications sent to this alert policy's notification channels.

Protobuf type google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AlertPolicy.AlertStrategy.NotificationRateLimit.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AlertPolicy.AlertStrategy.NotificationRateLimit build()
Returns
TypeDescription
AlertPolicy.AlertStrategy.NotificationRateLimit

buildPartial()

public AlertPolicy.AlertStrategy.NotificationRateLimit buildPartial()
Returns
TypeDescription
AlertPolicy.AlertStrategy.NotificationRateLimit

clear()

public AlertPolicy.AlertStrategy.NotificationRateLimit.Builder clear()
Returns
TypeDescription
AlertPolicy.AlertStrategy.NotificationRateLimit.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AlertPolicy.AlertStrategy.NotificationRateLimit.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AlertPolicy.AlertStrategy.NotificationRateLimit.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AlertPolicy.AlertStrategy.NotificationRateLimit.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AlertPolicy.AlertStrategy.NotificationRateLimit.Builder
Overrides

clearPeriod()

public AlertPolicy.AlertStrategy.NotificationRateLimit.Builder clearPeriod()

Not more than one notification per period.

.google.protobuf.Duration period = 1;

Returns
TypeDescription
AlertPolicy.AlertStrategy.NotificationRateLimit.Builder

clone()

public AlertPolicy.AlertStrategy.NotificationRateLimit.Builder clone()
Returns
TypeDescription
AlertPolicy.AlertStrategy.NotificationRateLimit.Builder
Overrides

getDefaultInstanceForType()

public AlertPolicy.AlertStrategy.NotificationRateLimit getDefaultInstanceForType()
Returns
TypeDescription
AlertPolicy.AlertStrategy.NotificationRateLimit

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPeriod()

public Duration getPeriod()

Not more than one notification per period.

.google.protobuf.Duration period = 1;

Returns
TypeDescription
Duration

The period.

getPeriodBuilder()

public Duration.Builder getPeriodBuilder()

Not more than one notification per period.

.google.protobuf.Duration period = 1;

Returns
TypeDescription
Builder

getPeriodOrBuilder()

public DurationOrBuilder getPeriodOrBuilder()

Not more than one notification per period.

.google.protobuf.Duration period = 1;

Returns
TypeDescription
DurationOrBuilder

hasPeriod()

public boolean hasPeriod()

Not more than one notification per period.

.google.protobuf.Duration period = 1;

Returns
TypeDescription
boolean

Whether the period field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AlertPolicy.AlertStrategy.NotificationRateLimit other)

public AlertPolicy.AlertStrategy.NotificationRateLimit.Builder mergeFrom(AlertPolicy.AlertStrategy.NotificationRateLimit other)
Parameter
NameDescription
otherAlertPolicy.AlertStrategy.NotificationRateLimit
Returns
TypeDescription
AlertPolicy.AlertStrategy.NotificationRateLimit.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AlertPolicy.AlertStrategy.NotificationRateLimit.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AlertPolicy.AlertStrategy.NotificationRateLimit.Builder
Overrides

mergePeriod(Duration value)

public AlertPolicy.AlertStrategy.NotificationRateLimit.Builder mergePeriod(Duration value)

Not more than one notification per period.

.google.protobuf.Duration period = 1;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
AlertPolicy.AlertStrategy.NotificationRateLimit.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AlertPolicy.AlertStrategy.NotificationRateLimit.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AlertPolicy.AlertStrategy.NotificationRateLimit.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setPeriod(Duration value)

public AlertPolicy.AlertStrategy.NotificationRateLimit.Builder setPeriod(Duration value)

Not more than one notification per period.

.google.protobuf.Duration period = 1;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
AlertPolicy.AlertStrategy.NotificationRateLimit.Builder

setPeriod(Duration.Builder builderForValue)

public AlertPolicy.AlertStrategy.NotificationRateLimit.Builder setPeriod(Duration.Builder builderForValue)

Not more than one notification per period.

.google.protobuf.Duration period = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AlertPolicy.AlertStrategy.NotificationRateLimit.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final AlertPolicy.AlertStrategy.NotificationRateLimit.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AlertPolicy.AlertStrategy.NotificationRateLimit.Builder
Overrides