@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (servedType_ != io.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) { output.writeEnum(1, servedType_); } for (int i = 0; i < shardReferences_.size(); i++) { output.writeMessage(2, shardReferences_.get(i)); } unknownFields.writeTo(output); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (servedType_ != io.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) { output.writeEnum(1, servedType_); } for (int i = 0; i < shardReferences_.size(); i++) { output.writeMessage(2, shardReferences_.get(i)); } unknownFields.writeTo(output); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (tabletType_ != io.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) { output.writeEnum(1, tabletType_); } for (int i = 0; i < cells_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cells_.getRaw(i)); } unknownFields.writeTo(output); }
/** * <pre> * the tablet type * </pre> * * <code>.topodata.TabletType tablet_type = 1;</code> */ public Builder setTabletType(io.vitess.proto.Topodata.TabletType value) { if (value == null) { throw new NullPointerException(); } tabletType_ = value.getNumber(); onChanged(); return this; } /**
/** * <pre> * the tablet type (key for the map) * </pre> * * <code>.topodata.TabletType tablet_type = 1;</code> */ public Builder setTabletType(io.vitess.proto.Topodata.TabletType value) { if (value == null) { throw new NullPointerException(); } tabletType_ = value.getNumber(); onChanged(); return this; } /**
/** * <pre> * the tablet type * </pre> * * <code>.topodata.TabletType tablet_type = 1;</code> */ public Builder setTabletType(io.vitess.proto.Topodata.TabletType value) { if (value == null) { throw new NullPointerException(); } tabletType_ = value.getNumber(); onChanged(); return this; } /**
/** * <pre> * type is the current type of the tablet. * </pre> * * <code>.topodata.TabletType type = 8;</code> */ public Builder setType(io.vitess.proto.Topodata.TabletType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /**
/** * <pre> * The type this partition applies to. * </pre> * * <code>.topodata.TabletType served_type = 1;</code> */ public Builder setServedType(io.vitess.proto.Topodata.TabletType value) { if (value == null) { throw new NullPointerException(); } servedType_ = value.getNumber(); onChanged(); return this; } /**
/** * <pre> * type is the current type of the tablet. * </pre> * * <code>.topodata.TabletType type = 8;</code> */ public Builder setType(io.vitess.proto.Topodata.TabletType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /**
@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_); } if (!getKeyspaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, keyspace_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
/** * <pre> * The type this partition applies to. * </pre> * * <code>.topodata.TabletType served_type = 1;</code> */ public Builder setServedType(io.vitess.proto.Topodata.TabletType value) { if (value == null) { throw new NullPointerException(); } servedType_ = value.getNumber(); onChanged(); return this; } /**
/** * <pre> * which tablet type is affected * </pre> * * <code>.topodata.TabletType tablet_type = 1;</code> */ public Builder setTabletType(io.vitess.proto.Topodata.TabletType value) { if (value == null) { throw new NullPointerException(); } tabletType_ = value.getNumber(); onChanged(); return this; } /**
@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_); } if (!getKeyspaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, keyspace_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (tabletType_ != io.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) { output.writeEnum(1, tabletType_); } for (int i = 0; i < cells_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cells_.getRaw(i)); } if (!getKeyspaceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, keyspace_); } unknownFields.writeTo(output); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (tabletType_ != io.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) { output.writeEnum(1, tabletType_); } for (int i = 0; i < cells_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cells_.getRaw(i)); } if (!getKeyspaceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, keyspace_); } unknownFields.writeTo(output); }
/** * <code>.topodata.TabletType tablet_type = 1;</code> */ public Builder setTabletType(io.vitess.proto.Topodata.TabletType value) { if (value == null) { throw new NullPointerException(); } tabletType_ = value.getNumber(); onChanged(); return this; } /**
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (tabletType_ != io.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) { output.writeEnum(1, tabletType_); } for (int i = 0; i < cells_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cells_.getRaw(i)); } unknownFields.writeTo(output); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (tabletType_ != io.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) { output.writeEnum(1, tabletType_); } if (!getKeyspaceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, keyspace_); } unknownFields.writeTo(output); }
/** * <code>.topodata.TabletType tablet_type = 1;</code> */ public Builder setTabletType(io.vitess.proto.Topodata.TabletType value) { if (value == null) { throw new NullPointerException(); } tabletType_ = value.getNumber(); onChanged(); return this; } /**
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (tabletType_ != io.vitess.proto.Topodata.TabletType.UNKNOWN.getNumber()) { output.writeEnum(1, tabletType_); } if (!getKeyspaceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, keyspace_); } unknownFields.writeTo(output); }