public static final class UpdateAlertPolicyRequest.Builder extends GeneratedMessageV3.Builder<UpdateAlertPolicyRequest.Builder> implements UpdateAlertPolicyRequestOrBuilder
The protocol for the UpdateAlertPolicy
request.
Protobuf type google.monitoring.v3.UpdateAlertPolicyRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UpdateAlertPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public UpdateAlertPolicyRequest build()
buildPartial()
public UpdateAlertPolicyRequest buildPartial()
clear()
public UpdateAlertPolicyRequest.Builder clear()
Overrides
clearAlertPolicy()
public UpdateAlertPolicyRequest.Builder clearAlertPolicy()
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];
clearField(Descriptors.FieldDescriptor field)
public UpdateAlertPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateAlertPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearUpdateMask()
public UpdateAlertPolicyRequest.Builder clearUpdateMask()
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;
clone()
public UpdateAlertPolicyRequest.Builder clone()
Overrides
getAlertPolicy()
public 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];
getAlertPolicyBuilder()
public AlertPolicy.Builder getAlertPolicyBuilder()
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()
public 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];
getDefaultInstanceForType()
public UpdateAlertPolicyRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getUpdateMask()
public 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;
Returns |
---|
Type | Description |
FieldMask | The updateMask.
|
getUpdateMaskBuilder()
public FieldMask.Builder getUpdateMaskBuilder()
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()
public 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;
hasAlertPolicy()
public 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];
Returns |
---|
Type | Description |
boolean | Whether the alertPolicy field is set.
|
hasUpdateMask()
public 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;
Returns |
---|
Type | Description |
boolean | Whether the updateMask field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeAlertPolicy(AlertPolicy value)
public UpdateAlertPolicyRequest.Builder mergeAlertPolicy(AlertPolicy value)
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];
mergeFrom(UpdateAlertPolicyRequest other)
public UpdateAlertPolicyRequest.Builder mergeFrom(UpdateAlertPolicyRequest other)
public UpdateAlertPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UpdateAlertPolicyRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateAlertPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
mergeUpdateMask(FieldMask value)
public UpdateAlertPolicyRequest.Builder mergeUpdateMask(FieldMask value)
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;
setAlertPolicy(AlertPolicy value)
public UpdateAlertPolicyRequest.Builder setAlertPolicy(AlertPolicy value)
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];
setAlertPolicy(AlertPolicy.Builder builderForValue)
public UpdateAlertPolicyRequest.Builder setAlertPolicy(AlertPolicy.Builder builderForValue)
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];
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateAlertPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateAlertPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateAlertPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setUpdateMask(FieldMask value)
public UpdateAlertPolicyRequest.Builder setUpdateMask(FieldMask value)
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;
setUpdateMask(FieldMask.Builder builderForValue)
public UpdateAlertPolicyRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)
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;
Parameter |
---|
Name | Description |
builderForValue | Builder
|