@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.kms.v1.CreateKeyRingRequest)) { return super.equals(obj); } com.google.cloud.kms.v1.CreateKeyRingRequest other = (com.google.cloud.kms.v1.CreateKeyRingRequest) obj; boolean result = true; result = result && getParent().equals(other.getParent()); result = result && getKeyRingId().equals(other.getKeyRingId()); result = result && (hasKeyRing() == other.hasKeyRing()); if (hasKeyRing()) { result = result && getKeyRing().equals(other.getKeyRing()); } 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) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); hash = (37 * hash) + KEY_RING_ID_FIELD_NUMBER; hash = (53 * hash) + getKeyRingId().hashCode(); if (hasKeyRing()) { hash = (37 * hash) + KEY_RING_FIELD_NUMBER; hash = (53 * hash) + getKeyRing().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.cloud.kms.v1.CreateKeyRingRequest other) { if (other == com.google.cloud.kms.v1.CreateKeyRingRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } if (!other.getKeyRingId().isEmpty()) { keyRingId_ = other.keyRingId_; onChanged(); } if (other.hasKeyRing()) { mergeKeyRing(other.getKeyRing()); } 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.cloud.kms.v1.CreateKeyRingRequest)) { return super.equals(obj); } com.google.cloud.kms.v1.CreateKeyRingRequest other = (com.google.cloud.kms.v1.CreateKeyRingRequest) obj; boolean result = true; result = result && getParent().equals(other.getParent()); result = result && getKeyRingId().equals(other.getKeyRingId()); result = result && (hasKeyRing() == other.hasKeyRing()); if (hasKeyRing()) { result = result && getKeyRing().equals(other.getKeyRing()); } 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) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); hash = (37 * hash) + KEY_RING_ID_FIELD_NUMBER; hash = (53 * hash) + getKeyRingId().hashCode(); if (hasKeyRing()) { hash = (37 * hash) + KEY_RING_FIELD_NUMBER; hash = (53 * hash) + getKeyRing().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.cloud.kms.v1.CreateKeyRingRequest other) { if (other == com.google.cloud.kms.v1.CreateKeyRingRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } if (!other.getKeyRingId().isEmpty()) { keyRingId_ = other.keyRingId_; onChanged(); } if (other.hasKeyRing()) { mergeKeyRing(other.getKeyRing()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }