@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasTablespaceName()) { hash = (37 * hash) + TABLESPACE_NAME_FIELD_NUMBER; hash = (53 * hash) + getTablespaceName().hashCode(); } if (hasTablespaceUri()) { hash = (37 * hash) + TABLESPACE_URI_FIELD_NUMBER; hash = (53 * hash) + getTablespaceUri().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.CreateTablespaceRequest)) { return super.equals(obj); } org.apache.tajo.catalog.proto.CatalogProtos.CreateTablespaceRequest other = (org.apache.tajo.catalog.proto.CatalogProtos.CreateTablespaceRequest) obj; boolean result = true; result = result && (hasTablespaceName() == other.hasTablespaceName()); if (hasTablespaceName()) { result = result && getTablespaceName() .equals(other.getTablespaceName()); } result = result && (hasTablespaceUri() == other.hasTablespaceUri()); if (hasTablespaceUri()) { result = result && getTablespaceUri() .equals(other.getTablespaceUri()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasTablespaceName()) { memoizedIsInitialized = 0; return false; } if (!hasTablespaceUri()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; }
public Builder mergeFrom(org.apache.tajo.catalog.proto.CatalogProtos.CreateTablespaceRequest other) { if (other == org.apache.tajo.catalog.proto.CatalogProtos.CreateTablespaceRequest.getDefaultInstance()) return this; if (other.hasTablespaceName()) { bitField0_ |= 0x00000001; tablespaceName_ = other.tablespaceName_; onChanged(); } if (other.hasTablespaceUri()) { bitField0_ |= 0x00000002; tablespaceUri_ = other.tablespaceUri_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }