if (other.hasIfNotExists()) { setIfNotExists(other.getIfNotExists());
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasTableIdentifier()) { hash = (37 * hash) + TABLEIDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getTableIdentifier().hashCode(); } if (getPartitionDescCount() > 0) { hash = (37 * hash) + PARTITIONDESC_FIELD_NUMBER; hash = (53 * hash) + getPartitionDescList().hashCode(); } if (hasIfNotExists()) { hash = (37 * hash) + IFNOTEXISTS_FIELD_NUMBER; hash = (53 * hash) + hashBoolean(getIfNotExists()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.tajo.catalog.proto.CatalogProtos.AddPartitionsProto)) { return super.equals(obj); } org.apache.tajo.catalog.proto.CatalogProtos.AddPartitionsProto other = (org.apache.tajo.catalog.proto.CatalogProtos.AddPartitionsProto) obj; boolean result = true; result = result && (hasTableIdentifier() == other.hasTableIdentifier()); if (hasTableIdentifier()) { result = result && getTableIdentifier() .equals(other.getTableIdentifier()); } result = result && getPartitionDescList() .equals(other.getPartitionDescList()); result = result && (hasIfNotExists() == other.hasIfNotExists()); if (hasIfNotExists()) { result = result && (getIfNotExists() == other.getIfNotExists()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasTableIdentifier()) { memoizedIsInitialized = 0; return false; } if (!hasIfNotExists()) { memoizedIsInitialized = 0; return false; } if (!getTableIdentifier().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getPartitionDescCount(); i++) { if (!getPartitionDesc(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; }