@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.monitoring.v3.CreateMetricDescriptorRequest)) { return super.equals(obj); } com.google.monitoring.v3.CreateMetricDescriptorRequest other = (com.google.monitoring.v3.CreateMetricDescriptorRequest) obj; boolean result = true; result = result && getName().equals(other.getName()); result = result && (hasMetricDescriptor() == other.hasMetricDescriptor()); if (hasMetricDescriptor()) { result = result && getMetricDescriptor().equals(other.getMetricDescriptor()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.logging.v2.LogMetric)) { return super.equals(obj); } com.google.logging.v2.LogMetric other = (com.google.logging.v2.LogMetric) obj; boolean result = true; result = result && getName().equals(other.getName()); result = result && getDescription().equals(other.getDescription()); result = result && getFilter().equals(other.getFilter()); result = result && (hasMetricDescriptor() == other.hasMetricDescriptor()); if (hasMetricDescriptor()) { result = result && getMetricDescriptor().equals(other.getMetricDescriptor()); } result = result && getValueExtractor().equals(other.getValueExtractor()); result = result && internalGetLabelExtractors().equals(other.internalGetLabelExtractors()); result = result && (hasBucketOptions() == other.hasBucketOptions()); if (hasBucketOptions()) { result = result && getBucketOptions().equals(other.getBucketOptions()); } result = result && version_ == other.version_; result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.monitoring.v3.CreateMetricDescriptorRequest)) { return super.equals(obj); } com.google.monitoring.v3.CreateMetricDescriptorRequest other = (com.google.monitoring.v3.CreateMetricDescriptorRequest) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && (hasMetricDescriptor() == other.hasMetricDescriptor()); if (hasMetricDescriptor()) { result = result && getMetricDescriptor() .equals(other.getMetricDescriptor()); } return result; }