@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (tabletType_ != io.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, tabletType_); } { int dataSize = 0; for (int i = 0; i < cells_.size(); i++) { dataSize += computeStringSizeNoTag(cells_.getRaw(i)); } size += dataSize; size += 1 * getCellsList().size(); } if (!getKeyspaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, keyspace_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.vitess.proto.Topodata.Keyspace.ServedFrom)) { return super.equals(obj); } io.vitess.proto.Topodata.Keyspace.ServedFrom other = (io.vitess.proto.Topodata.Keyspace.ServedFrom) obj; boolean result = true; result = result && tabletType_ == other.tabletType_; result = result && getCellsList() .equals(other.getCellsList()); result = result && getKeyspace() .equals(other.getKeyspace()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.vitess.proto.Topodata.Keyspace.ServedFrom)) { return super.equals(obj); } io.vitess.proto.Topodata.Keyspace.ServedFrom other = (io.vitess.proto.Topodata.Keyspace.ServedFrom) obj; boolean result = true; result = result && tabletType_ == other.tabletType_; result = result && getCellsList() .equals(other.getCellsList()); result = result && getKeyspace() .equals(other.getKeyspace()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (tabletType_ != io.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, tabletType_); } { int dataSize = 0; for (int i = 0; i < cells_.size(); i++) { dataSize += computeStringSizeNoTag(cells_.getRaw(i)); } size += dataSize; size += 1 * getCellsList().size(); } if (!getKeyspaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, keyspace_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TABLET_TYPE_FIELD_NUMBER; hash = (53 * hash) + tabletType_; if (getCellsCount() > 0) { hash = (37 * hash) + CELLS_FIELD_NUMBER; hash = (53 * hash) + getCellsList().hashCode(); } hash = (37 * hash) + KEYSPACE_FIELD_NUMBER; hash = (53 * hash) + getKeyspace().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TABLET_TYPE_FIELD_NUMBER; hash = (53 * hash) + tabletType_; if (getCellsCount() > 0) { hash = (37 * hash) + CELLS_FIELD_NUMBER; hash = (53 * hash) + getCellsList().hashCode(); } hash = (37 * hash) + KEYSPACE_FIELD_NUMBER; hash = (53 * hash) + getKeyspace().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }