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.GeneratedMessage.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.GeneratedMessage.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 type
google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy-
Method Summary
Modifier and TypeMethodDescriptionaddAllNotificationChannelNames(Iterable<String> values) The full REST resource name for the notification channels that these settings apply to.The full REST resource name for the notification channels that these settings apply to.addNotificationChannelNamesBytes(com.google.protobuf.ByteString value) The full REST resource name for the notification channels that these settings apply to.build()clear()The full REST resource name for the notification channels that these settings apply to.The frequency at which to send reminder notifications for open incidents.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetNotificationChannelNames(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.intThe full REST resource name for the notification channels that these settings apply to.com.google.protobuf.ProtocolStringListThe full REST resource name for the notification channels that these settings apply to.com.google.protobuf.DurationThe frequency at which to send reminder notifications for open incidents.com.google.protobuf.Duration.BuilderThe frequency at which to send reminder notifications for open incidents.com.google.protobuf.DurationOrBuilderThe frequency at which to send reminder notifications for open incidents.booleanThe frequency at which to send reminder notifications for open incidents.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeRenotifyInterval(com.google.protobuf.Duration value) The frequency at which to send reminder notifications for open incidents.setNotificationChannelNames(int index, String value) The full REST resource name for the notification channels that these settings apply to.setRenotifyInterval(com.google.protobuf.Duration value) The frequency at which to send reminder notifications for open incidents.setRenotifyInterval(com.google.protobuf.Duration.Builder builderForValue) The frequency at which to send reminder notifications for open incidents.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
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
-