Package com.google.monitoring.v3
Class AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
- com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
-
- All Implemented Interfaces:
AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AlertPolicy.AlertStrategy.NotificationChannelStrategy
public static final class AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder> implements AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder
Control over how the notification channels in `notification_channels` are notified when this alert fires, on a per-channel basis.
Protobuf typegoogle.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AlertPolicy.AlertStrategy.NotificationChannelStrategy.BuilderaddAllNotificationChannelNames(Iterable<String> values)The full REST resource name for the notification channels that these settings apply to.AlertPolicy.AlertStrategy.NotificationChannelStrategy.BuilderaddNotificationChannelNames(String value)The full REST resource name for the notification channels that these settings apply to.AlertPolicy.AlertStrategy.NotificationChannelStrategy.BuilderaddNotificationChannelNamesBytes(com.google.protobuf.ByteString value)The full REST resource name for the notification channels that these settings apply to.AlertPolicy.AlertStrategy.NotificationChannelStrategy.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AlertPolicy.AlertStrategy.NotificationChannelStrategybuild()AlertPolicy.AlertStrategy.NotificationChannelStrategybuildPartial()AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builderclear()AlertPolicy.AlertStrategy.NotificationChannelStrategy.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AlertPolicy.AlertStrategy.NotificationChannelStrategy.BuilderclearNotificationChannelNames()The full REST resource name for the notification channels that these settings apply to.AlertPolicy.AlertStrategy.NotificationChannelStrategy.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AlertPolicy.AlertStrategy.NotificationChannelStrategy.BuilderclearRenotifyInterval()The frequency at which to send reminder notifications for open incidents.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builderclone()AlertPolicy.AlertStrategy.NotificationChannelStrategygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetNotificationChannelNames(int index)The full REST resource name for the notification channels that these settings apply to.com.google.protobuf.ByteStringgetNotificationChannelNamesBytes(int index)The full REST resource name for the notification channels that these settings apply to.intgetNotificationChannelNamesCount()The full REST resource name for the notification channels that these settings apply to.com.google.protobuf.ProtocolStringListgetNotificationChannelNamesList()The full REST resource name for the notification channels that these settings apply to.com.google.protobuf.DurationgetRenotifyInterval()The frequency at which to send reminder notifications for open incidents.com.google.protobuf.Duration.BuildergetRenotifyIntervalBuilder()The frequency at which to send reminder notifications for open incidents.com.google.protobuf.DurationOrBuildergetRenotifyIntervalOrBuilder()The frequency at which to send reminder notifications for open incidents.booleanhasRenotifyInterval()The frequency at which to send reminder notifications for open incidents.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AlertPolicy.AlertStrategy.NotificationChannelStrategy.BuildermergeFrom(AlertPolicy.AlertStrategy.NotificationChannelStrategy other)AlertPolicy.AlertStrategy.NotificationChannelStrategy.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AlertPolicy.AlertStrategy.NotificationChannelStrategy.BuildermergeFrom(com.google.protobuf.Message other)AlertPolicy.AlertStrategy.NotificationChannelStrategy.BuildermergeRenotifyInterval(com.google.protobuf.Duration value)The frequency at which to send reminder notifications for open incidents.AlertPolicy.AlertStrategy.NotificationChannelStrategy.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AlertPolicy.AlertStrategy.NotificationChannelStrategy.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AlertPolicy.AlertStrategy.NotificationChannelStrategy.BuildersetNotificationChannelNames(int index, String value)The full REST resource name for the notification channels that these settings apply to.AlertPolicy.AlertStrategy.NotificationChannelStrategy.BuildersetRenotifyInterval(com.google.protobuf.Duration value)The frequency at which to send reminder notifications for open incidents.AlertPolicy.AlertStrategy.NotificationChannelStrategy.BuildersetRenotifyInterval(com.google.protobuf.Duration.Builder builderForValue)The frequency at which to send reminder notifications for open incidents.AlertPolicy.AlertStrategy.NotificationChannelStrategy.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AlertPolicy.AlertStrategy.NotificationChannelStrategy.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
clear
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
getDefaultInstanceForType
public AlertPolicy.AlertStrategy.NotificationChannelStrategy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AlertPolicy.AlertStrategy.NotificationChannelStrategy build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AlertPolicy.AlertStrategy.NotificationChannelStrategy buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
setField
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
clearField
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
clearOneof
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
setRepeatedField
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
addRepeatedField
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
mergeFrom
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
mergeFrom
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder mergeFrom(AlertPolicy.AlertStrategy.NotificationChannelStrategy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
mergeFrom
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>- Throws:
IOException
-
getNotificationChannelNamesList
public com.google.protobuf.ProtocolStringList getNotificationChannelNamesList()
The full REST resource name for the notification channels that these settings apply to. Each of these correspond to the name field in one of the NotificationChannel objects referenced in the notification_channels field of this AlertPolicy. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]repeated string notification_channel_names = 1;- Specified by:
getNotificationChannelNamesListin interfaceAlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder- Returns:
- A list containing the notificationChannelNames.
-
getNotificationChannelNamesCount
public int getNotificationChannelNamesCount()
The full REST resource name for the notification channels that these settings apply to. Each of these correspond to the name field in one of the NotificationChannel objects referenced in the notification_channels field of this AlertPolicy. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]repeated string notification_channel_names = 1;- Specified by:
getNotificationChannelNamesCountin interfaceAlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder- Returns:
- The count of notificationChannelNames.
-
getNotificationChannelNames
public String getNotificationChannelNames(int index)
The full REST resource name for the notification channels that these settings apply to. Each of these correspond to the name field in one of the NotificationChannel objects referenced in the notification_channels field of this AlertPolicy. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]repeated string notification_channel_names = 1;- Specified by:
getNotificationChannelNamesin interfaceAlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The notificationChannelNames at the given index.
-
getNotificationChannelNamesBytes
public com.google.protobuf.ByteString getNotificationChannelNamesBytes(int index)
The full REST resource name for the notification channels that these settings apply to. Each of these correspond to the name field in one of the NotificationChannel objects referenced in the notification_channels field of this AlertPolicy. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]repeated string notification_channel_names = 1;- Specified by:
getNotificationChannelNamesBytesin interfaceAlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the notificationChannelNames at the given index.
-
setNotificationChannelNames
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder setNotificationChannelNames(int index, String value)
The full REST resource name for the notification channels that these settings apply to. Each of these correspond to the name field in one of the NotificationChannel objects referenced in the notification_channels field of this AlertPolicy. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]repeated string notification_channel_names = 1;- Parameters:
index- The index to set the value at.value- The notificationChannelNames to set.- Returns:
- This builder for chaining.
-
addNotificationChannelNames
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder addNotificationChannelNames(String value)
The full REST resource name for the notification channels that these settings apply to. Each of these correspond to the name field in one of the NotificationChannel objects referenced in the notification_channels field of this AlertPolicy. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]repeated string notification_channel_names = 1;- Parameters:
value- The notificationChannelNames to add.- Returns:
- This builder for chaining.
-
addAllNotificationChannelNames
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder addAllNotificationChannelNames(Iterable<String> values)
The full REST resource name for the notification channels that these settings apply to. Each of these correspond to the name field in one of the NotificationChannel objects referenced in the notification_channels field of this AlertPolicy. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]repeated string notification_channel_names = 1;- Parameters:
values- The notificationChannelNames to add.- Returns:
- This builder for chaining.
-
clearNotificationChannelNames
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder clearNotificationChannelNames()
The full REST resource name for the notification channels that these settings apply to. Each of these correspond to the name field in one of the NotificationChannel objects referenced in the notification_channels field of this AlertPolicy. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]repeated string notification_channel_names = 1;- Returns:
- This builder for chaining.
-
addNotificationChannelNamesBytes
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder addNotificationChannelNamesBytes(com.google.protobuf.ByteString value)
The full REST resource name for the notification channels that these settings apply to. Each of these correspond to the name field in one of the NotificationChannel objects referenced in the notification_channels field of this AlertPolicy. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]repeated string notification_channel_names = 1;- Parameters:
value- The bytes of the notificationChannelNames to add.- Returns:
- This builder for chaining.
-
hasRenotifyInterval
public boolean hasRenotifyInterval()
The frequency at which to send reminder notifications for open incidents.
.google.protobuf.Duration renotify_interval = 2;- Specified by:
hasRenotifyIntervalin interfaceAlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder- Returns:
- Whether the renotifyInterval field is set.
-
getRenotifyInterval
public com.google.protobuf.Duration getRenotifyInterval()
The frequency at which to send reminder notifications for open incidents.
.google.protobuf.Duration renotify_interval = 2;- Specified by:
getRenotifyIntervalin interfaceAlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder- Returns:
- The renotifyInterval.
-
setRenotifyInterval
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder setRenotifyInterval(com.google.protobuf.Duration value)
The frequency at which to send reminder notifications for open incidents.
.google.protobuf.Duration renotify_interval = 2;
-
setRenotifyInterval
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder setRenotifyInterval(com.google.protobuf.Duration.Builder builderForValue)
The frequency at which to send reminder notifications for open incidents.
.google.protobuf.Duration renotify_interval = 2;
-
mergeRenotifyInterval
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder mergeRenotifyInterval(com.google.protobuf.Duration value)
The frequency at which to send reminder notifications for open incidents.
.google.protobuf.Duration renotify_interval = 2;
-
clearRenotifyInterval
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder clearRenotifyInterval()
The frequency at which to send reminder notifications for open incidents.
.google.protobuf.Duration renotify_interval = 2;
-
getRenotifyIntervalBuilder
public com.google.protobuf.Duration.Builder getRenotifyIntervalBuilder()
The frequency at which to send reminder notifications for open incidents.
.google.protobuf.Duration renotify_interval = 2;
-
getRenotifyIntervalOrBuilder
public com.google.protobuf.DurationOrBuilder getRenotifyIntervalOrBuilder()
The frequency at which to send reminder notifications for open incidents.
.google.protobuf.Duration renotify_interval = 2;- Specified by:
getRenotifyIntervalOrBuilderin interfaceAlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder
-
setUnknownFields
public final AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
mergeUnknownFields
public final AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
-