public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getColumnNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getParentColumnNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getPartitionValueBytes()); } getUnknownFields().writeTo(output); }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getColumnNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getParentColumnNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getPartitionValueBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
@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; }