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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UpdateAlertPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public UpdateAlertPolicyRequest build()
Returns
buildPartial()
public UpdateAlertPolicyRequest buildPartial()
Returns
clear()
public UpdateAlertPolicyRequest.Builder clear()
Returns
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];
Returns
clearField(Descriptors.FieldDescriptor field)
public UpdateAlertPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateAlertPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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;
Returns
clone()
public UpdateAlertPolicyRequest.Builder clone()
Returns
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];
Returns
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];
Returns
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];
Returns
getDefaultInstanceForType()
public UpdateAlertPolicyRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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;
Returns
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;
Returns
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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];
Parameter
Returns
mergeFrom(UpdateAlertPolicyRequest other)
public UpdateAlertPolicyRequest.Builder mergeFrom(UpdateAlertPolicyRequest other)
Parameter
Returns
public UpdateAlertPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public UpdateAlertPolicyRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateAlertPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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;
Parameter
Returns
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];
Parameter
Returns
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];
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateAlertPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateAlertPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateAlertPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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;
Parameter
Returns
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
|
Returns