@java.lang.Override public com.google.monitoring.v3.AlertPolicy getDefaultInstanceForType() { return com.google.monitoring.v3.AlertPolicy.getDefaultInstance(); }
/** * * * <pre> * 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. * </pre> * * <code>.google.monitoring.v3.AlertPolicy alert_policy = 3;</code> */ public com.google.monitoring.v3.AlertPolicy getAlertPolicy() { return alertPolicy_ == null ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; } /**
/** * * * <pre> * The requested alerting policy. You should omit the `name` field in this * policy. The name will be returned in the new policy, including * a new [ALERT_POLICY_ID] value. * </pre> * * <code>.google.monitoring.v3.AlertPolicy alert_policy = 2;</code> */ public com.google.monitoring.v3.AlertPolicy getAlertPolicy() { return alertPolicy_ == null ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; } /**
/** * * * <pre> * The requested alerting policy. You should omit the `name` field in this * policy. The name will be returned in the new policy, including * a new [ALERT_POLICY_ID] value. * </pre> * * <code>.google.monitoring.v3.AlertPolicy alert_policy = 2;</code> */ public com.google.monitoring.v3.AlertPolicy getAlertPolicy() { if (alertPolicyBuilder_ == null) { return alertPolicy_ == null ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; } else { return alertPolicyBuilder_.getMessage(); } } /**
/** * * * <pre> * 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. * </pre> * * <code>.google.monitoring.v3.AlertPolicy alert_policy = 3;</code> */ public com.google.monitoring.v3.AlertPolicy getAlertPolicy() { if (alertPolicyBuilder_ == null) { return alertPolicy_ == null ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; } else { return alertPolicyBuilder_.getMessage(); } } /**
/** * * * <pre> * 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. * </pre> * * <code>.google.monitoring.v3.AlertPolicy alert_policy = 3;</code> */ public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPolicyOrBuilder() { if (alertPolicyBuilder_ != null) { return alertPolicyBuilder_.getMessageOrBuilder(); } else { return alertPolicy_ == null ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; } } /**
/** * * * <pre> * The requested alerting policy. You should omit the `name` field in this * policy. The name will be returned in the new policy, including * a new [ALERT_POLICY_ID] value. * </pre> * * <code>.google.monitoring.v3.AlertPolicy alert_policy = 2;</code> */ public com.google.monitoring.v3.AlertPolicyOrBuilder getAlertPolicyOrBuilder() { if (alertPolicyBuilder_ != null) { return alertPolicyBuilder_.getMessageOrBuilder(); } else { return alertPolicy_ == null ? com.google.monitoring.v3.AlertPolicy.getDefaultInstance() : alertPolicy_; } } /**
/** * * * <pre> * The returned alert policies. * </pre> * * <code>repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;</code> */ public com.google.monitoring.v3.AlertPolicy.Builder addAlertPoliciesBuilder() { return getAlertPoliciesFieldBuilder() .addBuilder(com.google.monitoring.v3.AlertPolicy.getDefaultInstance()); } /**
/** * * * <pre> * The returned alert policies. * </pre> * * <code>repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;</code> */ public com.google.monitoring.v3.AlertPolicy.Builder addAlertPoliciesBuilder(int index) { return getAlertPoliciesFieldBuilder() .addBuilder(index, com.google.monitoring.v3.AlertPolicy.getDefaultInstance()); } /**
/** * * * <pre> * A short name or phrase used to identify the policy in dashboards, * notifications, and incidents. To avoid confusion, don't use the same * display name for multiple policies in the same project. The name is * limited to 512 Unicode characters. * </pre> * * <code>string display_name = 2;</code> */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /**
/** * * * <pre> * Required if the policy exists. The resource name for this policy. The * syntax is: * projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] * `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy * is created. When calling the * [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy] * method, do not include the `name` field in the alerting policy passed as * part of the request. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy other) { if (other == com.google.monitoring.v3.AlertPolicy.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_;
.setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.monitoring.v3.AlertPolicy.getDefaultInstance())) .setSchemaDescriptor( new AlertPolicyServiceMethodDescriptorSupplier("UpdateAlertPolicy"))
.setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.monitoring.v3.AlertPolicy.getDefaultInstance())) .setSchemaDescriptor( new AlertPolicyServiceMethodDescriptorSupplier("GetAlertPolicy"))
.setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.monitoring.v3.AlertPolicy.getDefaultInstance())) .setSchemaDescriptor( new AlertPolicyServiceMethodDescriptorSupplier("CreateAlertPolicy"))
.setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.monitoring.v3.AlertPolicy.getDefaultInstance())) .setSchemaDescriptor( new AlertPolicyServiceMethodDescriptorSupplier("CreateAlertPolicy"))
.setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.monitoring.v3.AlertPolicy.getDefaultInstance())) .setSchemaDescriptor( new AlertPolicyServiceMethodDescriptorSupplier("GetAlertPolicy"))
.setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.monitoring.v3.AlertPolicy.getDefaultInstance())) .setSchemaDescriptor( new AlertPolicyServiceMethodDescriptorSupplier("UpdateAlertPolicy"))