public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, tableIdentifier_); } for (int i = 0; i < partitionDesc_.size(); i++) { output.writeMessage(2, partitionDesc_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(3, ifNotExists_); } 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 .computeMessageSize(1, tableIdentifier_); } for (int i = 0; i < partitionDesc_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, partitionDesc_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, ifNotExists_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
setIfNotExists(other.getIfNotExists()); this.mergeUnknownFields(other.getUnknownFields()); return this;
@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; }
@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; }