public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getTablespaceNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getTablespaceUriBytes()); } 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, getTablespaceNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getTablespaceUriBytes()); } getUnknownFields().writeTo(output); }
@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 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; }