public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, tableIdentifier_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, partitionType_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getExpressionBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, expressionSchema_); } 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_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, partitionType_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getExpressionBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, expressionSchema_); } 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 (hasTableIdentifier()) { hash = (37 * hash) + TABLEIDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getTableIdentifier().hashCode(); } if (hasPartitionType()) { hash = (37 * hash) + PARTITIONTYPE_FIELD_NUMBER; hash = (53 * hash) + hashEnum(getPartitionType()); } if (hasExpression()) { hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getExpression().hashCode(); } if (hasExpressionSchema()) { hash = (37 * hash) + EXPRESSIONSCHEMA_FIELD_NUMBER; hash = (53 * hash) + getExpressionSchema().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
getUnknownFields().equals(other.getUnknownFields()); return result;
public Builder mergeFrom(org.apache.tajo.catalog.proto.CatalogProtos.PartitionMethodProto other) { if (other == org.apache.tajo.catalog.proto.CatalogProtos.PartitionMethodProto.getDefaultInstance()) return this; if (other.hasTableIdentifier()) { mergeTableIdentifier(other.getTableIdentifier()); } if (other.hasPartitionType()) { setPartitionType(other.getPartitionType()); } if (other.hasExpression()) { bitField0_ |= 0x00000004; expression_ = other.expression_; onChanged(); } if (other.hasExpressionSchema()) { mergeExpressionSchema(other.getExpressionSchema()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }