@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.vitess.proto.Topodata.TabletAlias)) { return super.equals(obj); } io.vitess.proto.Topodata.TabletAlias other = (io.vitess.proto.Topodata.TabletAlias) obj; boolean result = true; result = result && getCell() .equals(other.getCell()); result = result && (getUid() == other.getUid()); 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 (!getCellBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cell_); } if (uid_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, uid_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
/** * <pre> * No lock is necessary to update this field, when for instance * TabletExternallyReparented updates this. However, we lock the * shard for reparenting operations (InitShardMaster, * PlannedReparentShard,EmergencyReparentShard), to guarantee * exclusive operation. * </pre> * * <code>.topodata.TabletAlias master_alias = 1;</code> */ public io.vitess.proto.Topodata.TabletAliasOrBuilder getMasterAliasOrBuilder() { if (masterAliasBuilder_ != null) { return masterAliasBuilder_.getMessageOrBuilder(); } else { return masterAlias_ == null ? io.vitess.proto.Topodata.TabletAlias.getDefaultInstance() : masterAlias_; } } /**
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
if (hasAlias()) { hash = (37 * hash) + ALIAS_FIELD_NUMBER; hash = (53 * hash) + getAlias().hashCode();
if (hasAlias()) { hash = (37 * hash) + ALIAS_FIELD_NUMBER; hash = (53 * hash) + getAlias().hashCode();
if (hasAlias()) { result = result && getAlias() .equals(other.getAlias());
if (hasAlias()) { result = result && getAlias() .equals(other.getAlias());
if (hasMasterAlias()) { hash = (37 * hash) + MASTER_ALIAS_FIELD_NUMBER; hash = (53 * hash) + getMasterAlias().hashCode();
if (hasMasterAlias()) { hash = (37 * hash) + MASTER_ALIAS_FIELD_NUMBER; hash = (53 * hash) + getMasterAlias().hashCode();
if (hasMasterAlias()) { result = result && getMasterAlias() .equals(other.getMasterAlias());
if (hasMasterAlias()) { result = result && getMasterAlias() .equals(other.getMasterAlias());
/** * <pre> * No lock is necessary to update this field, when for instance * TabletExternallyReparented updates this. However, we lock the * shard for reparenting operations (InitShardMaster, * PlannedReparentShard,EmergencyReparentShard), to guarantee * exclusive operation. * </pre> * * <code>.topodata.TabletAlias master_alias = 1;</code> */ public io.vitess.proto.Topodata.TabletAlias getMasterAlias() { if (masterAliasBuilder_ == null) { return masterAlias_ == null ? io.vitess.proto.Topodata.TabletAlias.getDefaultInstance() : masterAlias_; } else { return masterAliasBuilder_.getMessage(); } } /**
/** * <pre> * No lock is necessary to update this field, when for instance * TabletExternallyReparented updates this. However, we lock the * shard for reparenting operations (InitShardMaster, * PlannedReparentShard,EmergencyReparentShard), to guarantee * exclusive operation. * </pre> * * <code>.topodata.TabletAlias master_alias = 1;</code> */ public io.vitess.proto.Topodata.TabletAlias getMasterAlias() { if (masterAliasBuilder_ == null) { return masterAlias_ == null ? io.vitess.proto.Topodata.TabletAlias.getDefaultInstance() : masterAlias_; } else { return masterAliasBuilder_.getMessage(); } } /**
/** * <pre> * No lock is necessary to update this field, when for instance * TabletExternallyReparented updates this. However, we lock the * shard for reparenting operations (InitShardMaster, * PlannedReparentShard,EmergencyReparentShard), to guarantee * exclusive operation. * </pre> * * <code>.topodata.TabletAlias master_alias = 1;</code> */ public io.vitess.proto.Topodata.TabletAliasOrBuilder getMasterAliasOrBuilder() { if (masterAliasBuilder_ != null) { return masterAliasBuilder_.getMessageOrBuilder(); } else { return masterAlias_ == null ? io.vitess.proto.Topodata.TabletAlias.getDefaultInstance() : masterAlias_; } } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.vitess.proto.Topodata.ShardReplication.Node)) { return super.equals(obj); } io.vitess.proto.Topodata.ShardReplication.Node other = (io.vitess.proto.Topodata.ShardReplication.Node) obj; boolean result = true; result = result && (hasTabletAlias() == other.hasTabletAlias()); if (hasTabletAlias()) { result = result && getTabletAlias() .equals(other.getTabletAlias()); } 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.ShardReplication.Node)) { return super.equals(obj); } io.vitess.proto.Topodata.ShardReplication.Node other = (io.vitess.proto.Topodata.ShardReplication.Node) obj; boolean result = true; result = result && (hasTabletAlias() == other.hasTabletAlias()); if (hasTabletAlias()) { result = result && getTabletAlias() .equals(other.getTabletAlias()); } 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.TabletAlias)) { return super.equals(obj); } io.vitess.proto.Topodata.TabletAlias other = (io.vitess.proto.Topodata.TabletAlias) obj; boolean result = true; result = result && getCell() .equals(other.getCell()); result = result && (getUid() == other.getUid()); 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 (!getCellBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cell_); } if (uid_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, uid_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }