/** * * * <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.NotificationChannelOrBuilder getNotificationChannelOrBuilder() { return getNotificationChannel(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } if (notificationChannel_ != null) { output.writeMessage(3, getNotificationChannel()); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (notificationChannel_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNotificationChannel()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasUpdateMask()) { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } if (hasNotificationChannel()) { hash = (37 * hash) + NOTIFICATION_CHANNEL_FIELD_NUMBER; hash = (53 * hash) + getNotificationChannel().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.monitoring.v3.UpdateNotificationChannelRequest)) { return super.equals(obj); } com.google.monitoring.v3.UpdateNotificationChannelRequest other = (com.google.monitoring.v3.UpdateNotificationChannelRequest) obj; boolean result = true; result = result && (hasUpdateMask() == other.hasUpdateMask()); if (hasUpdateMask()) { result = result && getUpdateMask().equals(other.getUpdateMask()); } result = result && (hasNotificationChannel() == other.hasNotificationChannel()); if (hasNotificationChannel()) { result = result && getNotificationChannel().equals(other.getNotificationChannel()); } result = result && unknownFields.equals(other.unknownFields); return result; }
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; }
Assert.assertEquals(notificationChannel, actualRequest.getNotificationChannel()); Assert.assertTrue( channelProvider.isHeaderSent(