/** * * * <pre> * A description of the changes to be applied to the specified * notification channel. The description must provide a definition for * fields to be updated; the names of these fields should also be * included in the `update_mask`. * </pre> * * <code>.google.monitoring.v3.NotificationChannel notification_channel = 3;</code> */ public Builder setNotificationChannel(com.google.monitoring.v3.NotificationChannel value) { if (notificationChannelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } notificationChannel_ = value; onChanged(); } else { notificationChannelBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * The fields to update. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateMask_ = value; onChanged(); } else { updateMaskBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * The fields to update. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /**
/** * * * <pre> * A description of the changes to be applied to the specified * notification channel. The description must provide a definition for * fields to be updated; the names of these fields should also be * included in the `update_mask`. * </pre> * * <code>.google.monitoring.v3.NotificationChannel notification_channel = 3;</code> */ public Builder mergeNotificationChannel(com.google.monitoring.v3.NotificationChannel value) { if (notificationChannelBuilder_ == null) { if (notificationChannel_ != null) { notificationChannel_ = com.google.monitoring.v3.NotificationChannel.newBuilder(notificationChannel_) .mergeFrom(value) .buildPartial(); } else { notificationChannel_ = value; } onChanged(); } else { notificationChannelBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * The fields to update. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * A description of the changes to be applied to the specified * notification channel. The description must provide a definition for * fields to be updated; the names of these fields should also be * included in the `update_mask`. * </pre> * * <code>.google.monitoring.v3.NotificationChannel notification_channel = 3;</code> */ public Builder clearNotificationChannel() { if (notificationChannelBuilder_ == null) { notificationChannel_ = null; onChanged(); } else { notificationChannel_ = null; notificationChannelBuilder_ = null; } return this; } /**
/** * * * <pre> * A description of the changes to be applied to the specified * notification channel. The description must provide a definition for * fields to be updated; the names of these fields should also be * included in the `update_mask`. * </pre> * * <code>.google.monitoring.v3.NotificationChannel notification_channel = 3;</code> */ public Builder setNotificationChannel( com.google.monitoring.v3.NotificationChannel.Builder builderForValue) { if (notificationChannelBuilder_ == null) { notificationChannel_ = builderForValue.build(); onChanged(); } else { notificationChannelBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The fields to update. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { updateMask_ = null; onChanged(); } else { updateMask_ = null; updateMaskBuilder_ = null; } return this; } /**
/** * * * <pre> * The fields to update. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * A description of the changes to be applied to the specified * notification channel. The description must provide a definition for * fields to be updated; the names of these fields should also be * included in the `update_mask`. * </pre> * * <code>.google.monitoring.v3.NotificationChannel notification_channel = 3;</code> */ public com.google.monitoring.v3.NotificationChannel.Builder getNotificationChannelBuilder() { onChanged(); return getNotificationChannelFieldBuilder().getBuilder(); } /**
public Builder mergeFrom(com.google.monitoring.v3.UpdateNotificationChannelRequest other) { if (other == com.google.monitoring.v3.UpdateNotificationChannelRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } if (other.hasNotificationChannel()) { mergeNotificationChannel(other.getNotificationChannel()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }