@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.containeranalysis.v1beta1.UpdateScanConfigRequest)) { return super.equals(obj); } com.google.containeranalysis.v1beta1.UpdateScanConfigRequest other = (com.google.containeranalysis.v1beta1.UpdateScanConfigRequest) obj; boolean result = true; result = result && getName().equals(other.getName()); result = result && (hasScanConfig() == other.hasScanConfig()); if (hasScanConfig()) { result = result && getScanConfig().equals(other.getScanConfig()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasScanConfig()) { hash = (37 * hash) + SCAN_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getScanConfig().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.containeranalysis.v1beta1.UpdateScanConfigRequest other) { if (other == com.google.containeranalysis.v1beta1.UpdateScanConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasScanConfig()) { mergeScanConfig(other.getScanConfig()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.containeranalysis.v1beta1.UpdateScanConfigRequest)) { return super.equals(obj); } com.google.containeranalysis.v1beta1.UpdateScanConfigRequest other = (com.google.containeranalysis.v1beta1.UpdateScanConfigRequest) obj; boolean result = true; result = result && getName().equals(other.getName()); result = result && (hasScanConfig() == other.hasScanConfig()); if (hasScanConfig()) { result = result && getScanConfig().equals(other.getScanConfig()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasScanConfig()) { hash = (37 * hash) + SCAN_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getScanConfig().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.containeranalysis.v1beta1.UpdateScanConfigRequest other) { if (other == com.google.containeranalysis.v1beta1.UpdateScanConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasScanConfig()) { mergeScanConfig(other.getScanConfig()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }