@java.lang.Override public io.vitess.proto.Topodata.Shard.TabletControl buildPartial() { io.vitess.proto.Topodata.Shard.TabletControl result = new io.vitess.proto.Topodata.Shard.TabletControl(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.tabletType_ = tabletType_; if (((bitField0_ & 0x00000002) == 0x00000002)) { cells_ = cells_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.cells_ = cells_; result.disableQueryService_ = disableQueryService_; if (((bitField0_ & 0x00000008) == 0x00000008)) { blacklistedTables_ = blacklistedTables_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.blacklistedTables_ = blacklistedTables_; result.frozen_ = frozen_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
dataSize += computeStringSizeNoTag(cells_.getRaw(i)); size += 1 * getCellsList().size(); dataSize += computeStringSizeNoTag(blacklistedTables_.getRaw(i)); size += 1 * getBlacklistedTablesList().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; }
public Builder mergeFrom(io.vitess.proto.Topodata.Shard.TabletControl other) { if (other == io.vitess.proto.Topodata.Shard.TabletControl.getDefaultInstance()) return this; if (other.tabletType_ != 0) { setTabletTypeValue(other.getTabletTypeValue()); if (other.getDisableQueryService() != false) { setDisableQueryService(other.getDisableQueryService()); if (other.getFrozen() != false) { setFrozen(other.getFrozen());
dataSize += computeStringSizeNoTag(cells_.getRaw(i)); size += 1 * getCellsList().size(); dataSize += computeStringSizeNoTag(blacklistedTables_.getRaw(i)); size += 1 * getBlacklistedTablesList().size();
public Builder mergeFrom(io.vitess.proto.Topodata.Shard.TabletControl other) { if (other == io.vitess.proto.Topodata.Shard.TabletControl.getDefaultInstance()) return this; if (other.tabletType_ != 0) { setTabletTypeValue(other.getTabletTypeValue()); if (other.getDisableQueryService() != false) { setDisableQueryService(other.getDisableQueryService()); if (other.getFrozen() != false) { setFrozen(other.getFrozen());
@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 io.vitess.proto.Topodata.Shard.TabletControl buildPartial() { io.vitess.proto.Topodata.Shard.TabletControl result = new io.vitess.proto.Topodata.Shard.TabletControl(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.tabletType_ = tabletType_; if (((bitField0_ & 0x00000002) == 0x00000002)) { cells_ = cells_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.cells_ = cells_; result.disableQueryService_ = disableQueryService_; if (((bitField0_ & 0x00000008) == 0x00000008)) { blacklistedTables_ = blacklistedTables_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.blacklistedTables_ = blacklistedTables_; result.frozen_ = frozen_; result.bitField0_ = to_bitField0_; onBuilt(); 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; }
@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; }
/** * <pre> * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.TabletControl tablet_controls = 6;</code> */ public io.vitess.proto.Topodata.Shard.TabletControl.Builder addTabletControlsBuilder( int index) { return getTabletControlsFieldBuilder().addBuilder( index, io.vitess.proto.Topodata.Shard.TabletControl.getDefaultInstance()); } /**
/** * <pre> * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.TabletControl tablet_controls = 6;</code> */ public io.vitess.proto.Topodata.Shard.TabletControl.Builder addTabletControlsBuilder() { return getTabletControlsFieldBuilder().addBuilder( io.vitess.proto.Topodata.Shard.TabletControl.getDefaultInstance()); } /**
/** * <pre> * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.TabletControl tablet_controls = 6;</code> */ public io.vitess.proto.Topodata.Shard.TabletControl.Builder addTabletControlsBuilder() { return getTabletControlsFieldBuilder().addBuilder( io.vitess.proto.Topodata.Shard.TabletControl.getDefaultInstance()); } /**
@java.lang.Override public io.vitess.proto.Topodata.Shard.TabletControl getDefaultInstanceForType() { return io.vitess.proto.Topodata.Shard.TabletControl.getDefaultInstance(); }
/** * <pre> * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.TabletControl tablet_controls = 6;</code> */ public io.vitess.proto.Topodata.Shard.TabletControl.Builder addTabletControlsBuilder( int index) { return getTabletControlsFieldBuilder().addBuilder( index, io.vitess.proto.Topodata.Shard.TabletControl.getDefaultInstance()); } /**
@java.lang.Override public io.vitess.proto.Topodata.Shard.TabletControl getDefaultInstanceForType() { return io.vitess.proto.Topodata.Shard.TabletControl.getDefaultInstance(); }