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.Builder
addAllNotificationChannelNames(Iterable<String> values)
The full REST resource name for the notification channels that these settings apply to.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
addNotificationChannelNames(String value)
The full REST resource name for the notification channels that these settings apply to.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
addNotificationChannelNamesBytes(com.google.protobuf.ByteString value)
The full REST resource name for the notification channels that these settings apply to.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AlertPolicy.AlertStrategy.NotificationChannelStrategy
build()
AlertPolicy.AlertStrategy.NotificationChannelStrategy
buildPartial()
AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
clear()
AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
clearNotificationChannelNames()
The full REST resource name for the notification channels that these settings apply to.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
clearRenotifyInterval()
The frequency at which to send reminder notifications for open incidents.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
clone()
AlertPolicy.AlertStrategy.NotificationChannelStrategy
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getNotificationChannelNames(int index)
The full REST resource name for the notification channels that these settings apply to.com.google.protobuf.ByteString
getNotificationChannelNamesBytes(int index)
The full REST resource name for the notification channels that these settings apply to.int
getNotificationChannelNamesCount()
The full REST resource name for the notification channels that these settings apply to.com.google.protobuf.ProtocolStringList
getNotificationChannelNamesList()
The full REST resource name for the notification channels that these settings apply to.com.google.protobuf.Duration
getRenotifyInterval()
The frequency at which to send reminder notifications for open incidents.com.google.protobuf.Duration.Builder
getRenotifyIntervalBuilder()
The frequency at which to send reminder notifications for open incidents.com.google.protobuf.DurationOrBuilder
getRenotifyIntervalOrBuilder()
The frequency at which to send reminder notifications for open incidents.boolean
hasRenotifyInterval()
The frequency at which to send reminder notifications for open incidents.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
mergeFrom(AlertPolicy.AlertStrategy.NotificationChannelStrategy other)
AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
mergeFrom(com.google.protobuf.Message other)
AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
mergeRenotifyInterval(com.google.protobuf.Duration value)
The frequency at which to send reminder notifications for open incidents.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
setNotificationChannelNames(int index, String value)
The full REST resource name for the notification channels that these settings apply to.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
setRenotifyInterval(com.google.protobuf.Duration value)
The frequency at which to send reminder notifications for open incidents.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
setRenotifyInterval(com.google.protobuf.Duration.Builder builderForValue)
The frequency at which to send reminder notifications for open incidents.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
clear
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
getDefaultInstanceForType
public AlertPolicy.AlertStrategy.NotificationChannelStrategy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AlertPolicy.AlertStrategy.NotificationChannelStrategy build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AlertPolicy.AlertStrategy.NotificationChannelStrategy buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in 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:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
clearField
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
clearOneof
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in 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:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
mergeFrom
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in 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:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getNotificationChannelNamesList
in 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:
getNotificationChannelNamesCount
in 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:
getNotificationChannelNames
in 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:
getNotificationChannelNamesBytes
in 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:
hasRenotifyInterval
in 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:
getRenotifyInterval
in 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:
getRenotifyIntervalOrBuilder
in interfaceAlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder
-
setUnknownFields
public final AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
mergeUnknownFields
public final AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
-
-