size += 1 * getCellsList().size();
size += 1 * getCellsList().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) + DISABLE_QUERY_SERVICE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDisableQueryService()); if (getBlacklistedTablesCount() > 0) { hash = (37 * hash) + BLACKLISTED_TABLES_FIELD_NUMBER; hash = (53 * hash) + getBlacklistedTablesList().hashCode(); } hash = (37 * hash) + FROZEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getFrozen()); 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) + DISABLE_QUERY_SERVICE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDisableQueryService()); if (getBlacklistedTablesCount() > 0) { hash = (37 * hash) + BLACKLISTED_TABLES_FIELD_NUMBER; hash = (53 * hash) + getBlacklistedTablesList().hashCode(); } hash = (37 * hash) + FROZEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getFrozen()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.vitess.proto.Topodata.Shard.TabletControl)) { return super.equals(obj); } io.vitess.proto.Topodata.Shard.TabletControl other = (io.vitess.proto.Topodata.Shard.TabletControl) obj; boolean result = true; result = result && tabletType_ == other.tabletType_; result = result && getCellsList() .equals(other.getCellsList()); result = result && (getDisableQueryService() == other.getDisableQueryService()); result = result && getBlacklistedTablesList() .equals(other.getBlacklistedTablesList()); result = result && (getFrozen() == other.getFrozen()); 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.Shard.TabletControl)) { return super.equals(obj); } io.vitess.proto.Topodata.Shard.TabletControl other = (io.vitess.proto.Topodata.Shard.TabletControl) obj; boolean result = true; result = result && tabletType_ == other.tabletType_; result = result && getCellsList() .equals(other.getCellsList()); result = result && (getDisableQueryService() == other.getDisableQueryService()); result = result && getBlacklistedTablesList() .equals(other.getBlacklistedTablesList()); result = result && (getFrozen() == other.getFrozen()); result = result && unknownFields.equals(other.unknownFields); return result; }