public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getDataFormatBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, params_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getDataFormatBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, params_); } getUnknownFields().writeTo(output); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasDataFormat()) { hash = (37 * hash) + DATAFORMAT_FIELD_NUMBER; hash = (53 * hash) + getDataFormat().hashCode(); } if (hasParams()) { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + getParams().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.TableProto)) { return super.equals(obj); } org.apache.tajo.catalog.proto.CatalogProtos.TableProto other = (org.apache.tajo.catalog.proto.CatalogProtos.TableProto) obj; boolean result = true; result = result && (hasDataFormat() == other.hasDataFormat()); if (hasDataFormat()) { result = result && getDataFormat() .equals(other.getDataFormat()); } result = result && (hasParams() == other.hasParams()); if (hasParams()) { result = result && getParams() .equals(other.getParams()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeFrom(org.apache.tajo.catalog.proto.CatalogProtos.TableProto other) { if (other == org.apache.tajo.catalog.proto.CatalogProtos.TableProto.getDefaultInstance()) return this; if (other.hasDataFormat()) { bitField0_ |= 0x00000001; dataFormat_ = other.dataFormat_; onChanged(); } if (other.hasParams()) { mergeParams(other.getParams()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }