/** * * * <pre> * Whether notifications are forwarded to the described channel. This makes * it possible to disable delivery of notifications to a particular channel * without removing the channel from all alerting policies that reference * the channel. This is a more convenient approach when the change is * temporary and you want to receive notifications from the same set * of alerting policies on the channel at some point in the future. * </pre> * * <code>.google.protobuf.BoolValue enabled = 11;</code> */ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() { return getEnabled(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } if (!getDisplayNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 8); if (verificationStatus_ != com.google.monitoring.v3.NotificationChannel.VerificationStatus .VERIFICATION_STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(9, verificationStatus_); } if (enabled_ != null) { output.writeMessage(11, getEnabled()); } unknownFields.writeTo(output); }
size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getEnabled());
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.monitoring.v3.NotificationChannel)) { return super.equals(obj); } com.google.monitoring.v3.NotificationChannel other = (com.google.monitoring.v3.NotificationChannel) obj; boolean result = true; result = result && getType().equals(other.getType()); result = result && getName().equals(other.getName()); result = result && getDisplayName().equals(other.getDisplayName()); result = result && getDescription().equals(other.getDescription()); result = result && internalGetLabels().equals(other.internalGetLabels()); result = result && internalGetUserLabels().equals(other.internalGetUserLabels()); result = result && verificationStatus_ == other.verificationStatus_; result = result && (hasEnabled() == other.hasEnabled()); if (hasEnabled()) { result = result && getEnabled().equals(other.getEnabled()); } result = result && unknownFields.equals(other.unknownFields); return result; }
if (hasEnabled()) { hash = (37 * hash) + ENABLED_FIELD_NUMBER; hash = (53 * hash) + getEnabled().hashCode();
public Builder mergeFrom(com.google.monitoring.v3.NotificationChannel other) { if (other == com.google.monitoring.v3.NotificationChannel.getDefaultInstance()) return this; if (!other.getType().isEmpty()) { type_ = other.type_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels()); if (other.verificationStatus_ != 0) { setVerificationStatusValue(other.getVerificationStatusValue()); } if (other.hasEnabled()) { mergeEnabled(other.getEnabled()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }