@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasDatabaseName()) { hash = (37 * hash) + DATABASENAME_FIELD_NUMBER; hash = (53 * hash) + getDatabaseName().hashCode(); } if (hasTableName()) { hash = (37 * hash) + TABLENAME_FIELD_NUMBER; hash = (53 * hash) + getTableName().hashCode(); } if (hasPartitionName()) { hash = (37 * hash) + PARTITIONNAME_FIELD_NUMBER; hash = (53 * hash) + getPartitionName().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.PartitionIdentifierProto)) { return super.equals(obj); } org.apache.tajo.catalog.proto.CatalogProtos.PartitionIdentifierProto other = (org.apache.tajo.catalog.proto.CatalogProtos.PartitionIdentifierProto) obj; boolean result = true; result = result && (hasDatabaseName() == other.hasDatabaseName()); if (hasDatabaseName()) { result = result && getDatabaseName() .equals(other.getDatabaseName()); } result = result && (hasTableName() == other.hasTableName()); if (hasTableName()) { result = result && getTableName() .equals(other.getTableName()); } result = result && (hasPartitionName() == other.hasPartitionName()); if (hasPartitionName()) { result = result && getPartitionName() .equals(other.getPartitionName()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeFrom(org.apache.tajo.catalog.proto.CatalogProtos.PartitionIdentifierProto other) { if (other == org.apache.tajo.catalog.proto.CatalogProtos.PartitionIdentifierProto.getDefaultInstance()) return this; if (other.hasDatabaseName()) { bitField0_ |= 0x00000001; databaseName_ = other.databaseName_; onChanged(); } if (other.hasTableName()) { bitField0_ |= 0x00000002; tableName_ = other.tableName_; onChanged(); } if (other.hasPartitionName()) { bitField0_ |= 0x00000004; partitionName_ = other.partitionName_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasDatabaseName()) { memoizedIsInitialized = 0; return false; } if (!hasTableName()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; }