public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getDatabaseNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getNamespaceBytes()); } 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, getDatabaseNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getNamespaceBytes()); } getUnknownFields().writeTo(output); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasDatabaseName()) { hash = (37 * hash) + DATABASE_NAME_FIELD_NUMBER; hash = (53 * hash) + getDatabaseName().hashCode(); } if (hasNamespace()) { hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().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.NamespaceProto)) { return super.equals(obj); } org.apache.tajo.catalog.proto.CatalogProtos.NamespaceProto other = (org.apache.tajo.catalog.proto.CatalogProtos.NamespaceProto) obj; boolean result = true; result = result && (hasDatabaseName() == other.hasDatabaseName()); if (hasDatabaseName()) { result = result && getDatabaseName() .equals(other.getDatabaseName()); } result = result && (hasNamespace() == other.hasNamespace()); if (hasNamespace()) { result = result && getNamespace() .equals(other.getNamespace()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeFrom(org.apache.tajo.catalog.proto.CatalogProtos.NamespaceProto other) { if (other == org.apache.tajo.catalog.proto.CatalogProtos.NamespaceProto.getDefaultInstance()) return this; if (other.hasDatabaseName()) { bitField0_ |= 0x00000001; databaseName_ = other.databaseName_; onChanged(); } if (other.hasNamespace()) { bitField0_ |= 0x00000002; namespace_ = other.namespace_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }