public final class UpdateAlertPolicyRequest extends GeneratedMessageV3 implements UpdateAlertPolicyRequestOrBuilder
The protocol for the `UpdateAlertPolicy` request.Protobuf type
google.monitoring.v3.UpdateAlertPolicyRequest| Modifier and Type | Class and Description |
|---|---|
static class |
UpdateAlertPolicyRequest.Builder
The protocol for the `UpdateAlertPolicy` request.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ALERT_POLICY_FIELD_NUMBER |
static int |
UPDATE_MASK_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int UPDATE_MASK_FIELD_NUMBER
public static final int ALERT_POLICY_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public boolean hasUpdateMask()
Optional. A list of alerting policy field names. If this field is not
empty, each listed field in the existing alerting policy is set to the
value of the corresponding field in the supplied policy (`alert_policy`),
or to the field's default value if the field is not in the supplied
alerting policy. Fields not listed retain their previous value.
Examples of valid field masks include `display_name`, `documentation`,
`documentation.content`, `documentation.mime_type`, `user_labels`,
`user_label.nameofkey`, `enabled`, `conditions`, `combiner`, etc.
If this field is empty, then the supplied alerting policy replaces the
existing policy. It is the same as deleting the existing policy and
adding the supplied policy, except for the following:
+ The new policy will have the same `[ALERT_POLICY_ID]` as the former
policy. This gives you continuity with the former policy in your
notifications and incidents.
+ Conditions in the new policy will keep their former `[CONDITION_ID]` if
the supplied condition includes the `name` field with that
`[CONDITION_ID]`. If the supplied condition omits the `name` field,
then a new `[CONDITION_ID]` is created.
.google.protobuf.FieldMask update_mask = 2;hasUpdateMask in interface UpdateAlertPolicyRequestOrBuilderpublic FieldMask getUpdateMask()
Optional. A list of alerting policy field names. If this field is not
empty, each listed field in the existing alerting policy is set to the
value of the corresponding field in the supplied policy (`alert_policy`),
or to the field's default value if the field is not in the supplied
alerting policy. Fields not listed retain their previous value.
Examples of valid field masks include `display_name`, `documentation`,
`documentation.content`, `documentation.mime_type`, `user_labels`,
`user_label.nameofkey`, `enabled`, `conditions`, `combiner`, etc.
If this field is empty, then the supplied alerting policy replaces the
existing policy. It is the same as deleting the existing policy and
adding the supplied policy, except for the following:
+ The new policy will have the same `[ALERT_POLICY_ID]` as the former
policy. This gives you continuity with the former policy in your
notifications and incidents.
+ Conditions in the new policy will keep their former `[CONDITION_ID]` if
the supplied condition includes the `name` field with that
`[CONDITION_ID]`. If the supplied condition omits the `name` field,
then a new `[CONDITION_ID]` is created.
.google.protobuf.FieldMask update_mask = 2;getUpdateMask in interface UpdateAlertPolicyRequestOrBuilderpublic FieldMaskOrBuilder getUpdateMaskOrBuilder()
Optional. A list of alerting policy field names. If this field is not
empty, each listed field in the existing alerting policy is set to the
value of the corresponding field in the supplied policy (`alert_policy`),
or to the field's default value if the field is not in the supplied
alerting policy. Fields not listed retain their previous value.
Examples of valid field masks include `display_name`, `documentation`,
`documentation.content`, `documentation.mime_type`, `user_labels`,
`user_label.nameofkey`, `enabled`, `conditions`, `combiner`, etc.
If this field is empty, then the supplied alerting policy replaces the
existing policy. It is the same as deleting the existing policy and
adding the supplied policy, except for the following:
+ The new policy will have the same `[ALERT_POLICY_ID]` as the former
policy. This gives you continuity with the former policy in your
notifications and incidents.
+ Conditions in the new policy will keep their former `[CONDITION_ID]` if
the supplied condition includes the `name` field with that
`[CONDITION_ID]`. If the supplied condition omits the `name` field,
then a new `[CONDITION_ID]` is created.
.google.protobuf.FieldMask update_mask = 2;getUpdateMaskOrBuilder in interface UpdateAlertPolicyRequestOrBuilderpublic boolean hasAlertPolicy()
Required. The updated alerting policy or the updated values for the fields listed in `update_mask`. If `update_mask` is not empty, any fields in this policy that are not in `update_mask` are ignored.
.google.monitoring.v3.AlertPolicy alert_policy = 3;hasAlertPolicy in interface UpdateAlertPolicyRequestOrBuilderpublic AlertPolicy getAlertPolicy()
Required. The updated alerting policy or the updated values for the fields listed in `update_mask`. If `update_mask` is not empty, any fields in this policy that are not in `update_mask` are ignored.
.google.monitoring.v3.AlertPolicy alert_policy = 3;getAlertPolicy in interface UpdateAlertPolicyRequestOrBuilderpublic AlertPolicyOrBuilder getAlertPolicyOrBuilder()
Required. The updated alerting policy or the updated values for the fields listed in `update_mask`. If `update_mask` is not empty, any fields in this policy that are not in `update_mask` are ignored.
.google.monitoring.v3.AlertPolicy alert_policy = 3;getAlertPolicyOrBuilder in interface UpdateAlertPolicyRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static UpdateAlertPolicyRequest parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static UpdateAlertPolicyRequest parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static UpdateAlertPolicyRequest parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static UpdateAlertPolicyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static UpdateAlertPolicyRequest parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static UpdateAlertPolicyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static UpdateAlertPolicyRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static UpdateAlertPolicyRequest parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static UpdateAlertPolicyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static UpdateAlertPolicyRequest parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static UpdateAlertPolicyRequest parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static UpdateAlertPolicyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic UpdateAlertPolicyRequest.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static UpdateAlertPolicyRequest.Builder newBuilder()
public static UpdateAlertPolicyRequest.Builder newBuilder(UpdateAlertPolicyRequest prototype)
public UpdateAlertPolicyRequest.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected UpdateAlertPolicyRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static UpdateAlertPolicyRequest getDefaultInstance()
public static Parser<UpdateAlertPolicyRequest> parser()
public Parser<UpdateAlertPolicyRequest> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public UpdateAlertPolicyRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder