@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.UpdateInstanceMetadata)) { return super.equals(obj); } com.google.spanner.admin.instance.v1.UpdateInstanceMetadata other = (com.google.spanner.admin.instance.v1.UpdateInstanceMetadata) obj; boolean result = true; result = result && (hasInstance() == other.hasInstance()); if (hasInstance()) { result = result && getInstance().equals(other.getInstance()); } result = result && (hasStartTime() == other.hasStartTime()); if (hasStartTime()) { result = result && getStartTime().equals(other.getStartTime()); } result = result && (hasCancelTime() == other.hasCancelTime()); if (hasCancelTime()) { result = result && getCancelTime().equals(other.getCancelTime()); } result = result && (hasEndTime() == other.hasEndTime()); if (hasEndTime()) { result = result && getEndTime().equals(other.getEndTime()); } 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(); if (hasInstance()) { hash = (37 * hash) + INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getInstance().hashCode(); } if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } if (hasCancelTime()) { hash = (37 * hash) + CANCEL_TIME_FIELD_NUMBER; hash = (53 * hash) + getCancelTime().hashCode(); } if (hasEndTime()) { hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.spanner.admin.instance.v1.UpdateInstanceMetadata other) { if (other == com.google.spanner.admin.instance.v1.UpdateInstanceMetadata.getDefaultInstance()) return this; if (other.hasInstance()) { mergeInstance(other.getInstance()); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasCancelTime()) { mergeCancelTime(other.getCancelTime()); } if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } 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.spanner.admin.instance.v1.UpdateInstanceMetadata)) { return super.equals(obj); } com.google.spanner.admin.instance.v1.UpdateInstanceMetadata other = (com.google.spanner.admin.instance.v1.UpdateInstanceMetadata) obj; boolean result = true; result = result && (hasInstance() == other.hasInstance()); if (hasInstance()) { result = result && getInstance().equals(other.getInstance()); } result = result && (hasStartTime() == other.hasStartTime()); if (hasStartTime()) { result = result && getStartTime().equals(other.getStartTime()); } result = result && (hasCancelTime() == other.hasCancelTime()); if (hasCancelTime()) { result = result && getCancelTime().equals(other.getCancelTime()); } result = result && (hasEndTime() == other.hasEndTime()); if (hasEndTime()) { result = result && getEndTime().equals(other.getEndTime()); } 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(); if (hasInstance()) { hash = (37 * hash) + INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getInstance().hashCode(); } if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } if (hasCancelTime()) { hash = (37 * hash) + CANCEL_TIME_FIELD_NUMBER; hash = (53 * hash) + getCancelTime().hashCode(); } if (hasEndTime()) { hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.spanner.admin.instance.v1.UpdateInstanceMetadata other) { if (other == com.google.spanner.admin.instance.v1.UpdateInstanceMetadata.getDefaultInstance()) return this; if (other.hasInstance()) { mergeInstance(other.getInstance()); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasCancelTime()) { mergeCancelTime(other.getCancelTime()); } if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }