public final class UpdateAlertPolicyRequest extends com.google.protobuf.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.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ALERT_POLICY_FIELD_NUMBER |
static int |
UPDATE_MASK_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AlertPolicy |
getAlertPolicy()
Required.
|
AlertPolicyOrBuilder |
getAlertPolicyOrBuilder()
Required.
|
static UpdateAlertPolicyRequest |
getDefaultInstance() |
UpdateAlertPolicyRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<UpdateAlertPolicyRequest> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.FieldMask |
getUpdateMask()
Optional.
|
com.google.protobuf.FieldMaskOrBuilder |
getUpdateMaskOrBuilder()
Optional.
|
boolean |
hasAlertPolicy()
Required.
|
int |
hashCode() |
boolean |
hasUpdateMask()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static UpdateAlertPolicyRequest.Builder |
newBuilder() |
static UpdateAlertPolicyRequest.Builder |
newBuilder(UpdateAlertPolicyRequest prototype) |
UpdateAlertPolicyRequest.Builder |
newBuilderForType() |
protected UpdateAlertPolicyRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static UpdateAlertPolicyRequest |
parseDelimitedFrom(InputStream input) |
static UpdateAlertPolicyRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UpdateAlertPolicyRequest |
parseFrom(byte[] data) |
static UpdateAlertPolicyRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UpdateAlertPolicyRequest |
parseFrom(ByteBuffer data) |
static UpdateAlertPolicyRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UpdateAlertPolicyRequest |
parseFrom(com.google.protobuf.ByteString data) |
static UpdateAlertPolicyRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UpdateAlertPolicyRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static UpdateAlertPolicyRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UpdateAlertPolicyRequest |
parseFrom(InputStream input) |
static UpdateAlertPolicyRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<UpdateAlertPolicyRequest> |
parser() |
UpdateAlertPolicyRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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, waitpublic static final int UPDATE_MASK_FIELD_NUMBER
public static final int ALERT_POLICY_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.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 com.google.protobuf.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 com.google.protobuf.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 [(.google.api.field_behavior) = REQUIRED];
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 [(.google.api.field_behavior) = REQUIRED];
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 [(.google.api.field_behavior) = REQUIRED];
getAlertPolicyOrBuilder in interface UpdateAlertPolicyRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static UpdateAlertPolicyRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UpdateAlertPolicyRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UpdateAlertPolicyRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UpdateAlertPolicyRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UpdateAlertPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UpdateAlertPolicyRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UpdateAlertPolicyRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static UpdateAlertPolicyRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static UpdateAlertPolicyRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static UpdateAlertPolicyRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static UpdateAlertPolicyRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static UpdateAlertPolicyRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic UpdateAlertPolicyRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static UpdateAlertPolicyRequest.Builder newBuilder()
public static UpdateAlertPolicyRequest.Builder newBuilder(UpdateAlertPolicyRequest prototype)
public UpdateAlertPolicyRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected UpdateAlertPolicyRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static UpdateAlertPolicyRequest getDefaultInstance()
public static com.google.protobuf.Parser<UpdateAlertPolicyRequest> parser()
public com.google.protobuf.Parser<UpdateAlertPolicyRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public UpdateAlertPolicyRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.