@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasColumnName()) { hash = (37 * hash) + COLUMNNAME_FIELD_NUMBER; hash = (53 * hash) + getColumnName().hashCode(); } if (hasParentColumnName()) { hash = (37 * hash) + PARENTCOLUMNNAME_FIELD_NUMBER; hash = (53 * hash) + getParentColumnName().hashCode(); } if (hasPartitionValue()) { hash = (37 * hash) + PARTITIONVALUE_FIELD_NUMBER; hash = (53 * hash) + getPartitionValue().hashCode(); } 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.PartitionKeyProto)) { return super.equals(obj); } org.apache.tajo.catalog.proto.CatalogProtos.PartitionKeyProto other = (org.apache.tajo.catalog.proto.CatalogProtos.PartitionKeyProto) obj; boolean result = true; result = result && (hasColumnName() == other.hasColumnName()); if (hasColumnName()) { result = result && getColumnName() .equals(other.getColumnName()); } result = result && (hasParentColumnName() == other.hasParentColumnName()); if (hasParentColumnName()) { result = result && getParentColumnName() .equals(other.getParentColumnName()); } result = result && (hasPartitionValue() == other.hasPartitionValue()); if (hasPartitionValue()) { result = result && getPartitionValue() .equals(other.getPartitionValue()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeFrom(org.apache.tajo.catalog.proto.CatalogProtos.PartitionKeyProto other) { if (other == org.apache.tajo.catalog.proto.CatalogProtos.PartitionKeyProto.getDefaultInstance()) return this; if (other.hasColumnName()) { bitField0_ |= 0x00000001; columnName_ = other.columnName_; onChanged(); } if (other.hasParentColumnName()) { bitField0_ |= 0x00000002; parentColumnName_ = other.parentColumnName_; onChanged(); } if (other.hasPartitionValue()) { bitField0_ |= 0x00000004; partitionValue_ = other.partitionValue_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasColumnName()) { memoizedIsInitialized = 0; return false; } if (!hasPartitionValue()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; }