/** * <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 Builder setMasterAlias( io.vitess.proto.Topodata.TabletAlias.Builder builderForValue) { if (masterAliasBuilder_ == null) { masterAlias_ = builderForValue.build(); onChanged(); } else { masterAliasBuilder_.setMessage(builderForValue.build()); } return this; } /**
subBuilder.mergeFrom(alias_); alias_ = subBuilder.buildPartial();
/** * <pre> * cell is the cell (or datacenter) the tablet is in * </pre> * * <code>string cell = 1;</code> */ public Builder setCell( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cell_ = value; onChanged(); return this; } /**
subBuilder.mergeFrom(alias_); alias_ = subBuilder.buildPartial();
subBuilder.mergeFrom(masterAlias_); masterAlias_ = subBuilder.buildPartial();
subBuilder.mergeFrom(masterAlias_); masterAlias_ = subBuilder.buildPartial();
subBuilder.mergeFrom(tabletAlias_); tabletAlias_ = subBuilder.buildPartial();
subBuilder.mergeFrom(tabletAlias_); tabletAlias_ = subBuilder.buildPartial();
/** * <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 Builder mergeMasterAlias(io.vitess.proto.Topodata.TabletAlias value) { if (masterAliasBuilder_ == null) { if (masterAlias_ != null) { masterAlias_ = io.vitess.proto.Topodata.TabletAlias.newBuilder(masterAlias_).mergeFrom(value).buildPartial(); } else { masterAlias_ = value; } onChanged(); } else { masterAliasBuilder_.mergeFrom(value); } return this; } /**
/** * <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 Builder mergeMasterAlias(io.vitess.proto.Topodata.TabletAlias value) { if (masterAliasBuilder_ == null) { if (masterAlias_ != null) { masterAlias_ = io.vitess.proto.Topodata.TabletAlias.newBuilder(masterAlias_).mergeFrom(value).buildPartial(); } else { masterAlias_ = value; } onChanged(); } else { masterAliasBuilder_.mergeFrom(value); } return this; } /**
/** * <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 Builder setMasterAlias( io.vitess.proto.Topodata.TabletAlias.Builder builderForValue) { if (masterAliasBuilder_ == null) { masterAlias_ = builderForValue.build(); onChanged(); } else { masterAliasBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <pre> * alias is the unique name of the tablet. * </pre> * * <code>.topodata.TabletAlias alias = 1;</code> */ public Builder mergeAlias(io.vitess.proto.Topodata.TabletAlias value) { if (aliasBuilder_ == null) { if (alias_ != null) { alias_ = io.vitess.proto.Topodata.TabletAlias.newBuilder(alias_).mergeFrom(value).buildPartial(); } else { alias_ = value; } onChanged(); } else { aliasBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * alias is the unique name of the tablet. * </pre> * * <code>.topodata.TabletAlias alias = 1;</code> */ public Builder mergeAlias(io.vitess.proto.Topodata.TabletAlias value) { if (aliasBuilder_ == null) { if (alias_ != null) { alias_ = io.vitess.proto.Topodata.TabletAlias.newBuilder(alias_).mergeFrom(value).buildPartial(); } else { alias_ = value; } onChanged(); } else { aliasBuilder_.mergeFrom(value); } return this; } /**
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.vitess.proto.Topodata.TabletAlias parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.vitess.proto.Topodata.TabletAlias) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * <pre> * alias is the unique name of the tablet. * </pre> * * <code>.topodata.TabletAlias alias = 1;</code> */ public Builder setAlias( io.vitess.proto.Topodata.TabletAlias.Builder builderForValue) { if (aliasBuilder_ == null) { alias_ = builderForValue.build(); onChanged(); } else { aliasBuilder_.setMessage(builderForValue.build()); } return this; } /**
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.vitess.proto.Topodata.TabletAlias parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.vitess.proto.Topodata.TabletAlias) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * <code>.topodata.TabletAlias tablet_alias = 1;</code> */ public Builder mergeTabletAlias(io.vitess.proto.Topodata.TabletAlias value) { if (tabletAliasBuilder_ == null) { if (tabletAlias_ != null) { tabletAlias_ = io.vitess.proto.Topodata.TabletAlias.newBuilder(tabletAlias_).mergeFrom(value).buildPartial(); } else { tabletAlias_ = value; } onChanged(); } else { tabletAliasBuilder_.mergeFrom(value); } return this; } /**
/** * <code>.topodata.TabletAlias tablet_alias = 1;</code> */ public Builder mergeTabletAlias(io.vitess.proto.Topodata.TabletAlias value) { if (tabletAliasBuilder_ == null) { if (tabletAlias_ != null) { tabletAlias_ = io.vitess.proto.Topodata.TabletAlias.newBuilder(tabletAlias_).mergeFrom(value).buildPartial(); } else { tabletAlias_ = value; } onChanged(); } else { tabletAliasBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * alias is the unique name of the tablet. * </pre> * * <code>.topodata.TabletAlias alias = 1;</code> */ public Builder setAlias( io.vitess.proto.Topodata.TabletAlias.Builder builderForValue) { if (aliasBuilder_ == null) { alias_ = builderForValue.build(); onChanged(); } else { aliasBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <pre> * cell is the cell (or datacenter) the tablet is in * </pre> * * <code>string cell = 1;</code> */ public Builder setCell( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cell_ = value; onChanged(); return this; } /**