/** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static KeyspaceIdType valueOf(int value) { return forNumber(value); }
public static KeyspaceIdType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < partitions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, partitions_.get(i)); } if (!getShardingColumnNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shardingColumnName_); } if (shardingColumnType_ != io.vitess.proto.Topodata.KeyspaceIdType.UNSET.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, shardingColumnType_); } for (int i = 0; i < servedFrom_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, servedFrom_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < partitions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, partitions_.get(i)); } if (!getShardingColumnNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shardingColumnName_); } if (shardingColumnType_ != io.vitess.proto.Topodata.KeyspaceIdType.UNSET.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, shardingColumnType_); } for (int i = 0; i < servedFrom_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, servedFrom_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getShardingColumnNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, shardingColumnName_); } if (shardingColumnType_ != io.vitess.proto.Topodata.KeyspaceIdType.UNSET.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, shardingColumnType_); } for (int i = 0; i < servedFroms_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, servedFroms_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getShardingColumnNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, shardingColumnName_); } if (shardingColumnType_ != io.vitess.proto.Topodata.KeyspaceIdType.UNSET.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, shardingColumnType_); } for (int i = 0; i < servedFroms_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, servedFroms_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < partitions_.size(); i++) { output.writeMessage(1, partitions_.get(i)); } if (!getShardingColumnNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shardingColumnName_); } if (shardingColumnType_ != io.vitess.proto.Topodata.KeyspaceIdType.UNSET.getNumber()) { output.writeEnum(3, shardingColumnType_); } for (int i = 0; i < servedFrom_.size(); i++) { output.writeMessage(4, servedFrom_.get(i)); } unknownFields.writeTo(output); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < partitions_.size(); i++) { output.writeMessage(1, partitions_.get(i)); } if (!getShardingColumnNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shardingColumnName_); } if (shardingColumnType_ != io.vitess.proto.Topodata.KeyspaceIdType.UNSET.getNumber()) { output.writeEnum(3, shardingColumnType_); } for (int i = 0; i < servedFrom_.size(); i++) { output.writeMessage(4, servedFrom_.get(i)); } unknownFields.writeTo(output); }
/** * <pre> * type of the column used for sharding * UNSET if the keyspace is not sharded * </pre> * * <code>.topodata.KeyspaceIdType sharding_column_type = 2;</code> */ public Builder setShardingColumnType(io.vitess.proto.Topodata.KeyspaceIdType value) { if (value == null) { throw new NullPointerException(); } shardingColumnType_ = value.getNumber(); onChanged(); return this; } /**
/** * <pre> * type of the column used for sharding * UNSET if the keyspace is not sharded * </pre> * * <code>.topodata.KeyspaceIdType sharding_column_type = 2;</code> */ public Builder setShardingColumnType(io.vitess.proto.Topodata.KeyspaceIdType value) { if (value == null) { throw new NullPointerException(); } shardingColumnType_ = value.getNumber(); onChanged(); return this; } /**
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getShardingColumnNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, shardingColumnName_); } if (shardingColumnType_ != io.vitess.proto.Topodata.KeyspaceIdType.UNSET.getNumber()) { output.writeEnum(2, shardingColumnType_); } for (int i = 0; i < servedFroms_.size(); i++) { output.writeMessage(4, servedFroms_.get(i)); } unknownFields.writeTo(output); }
/** * <pre> * type of the column used for sharding * UNSET if the keyspace is not sharded * </pre> * * <code>.topodata.KeyspaceIdType sharding_column_type = 2;</code> */ public io.vitess.proto.Topodata.KeyspaceIdType getShardingColumnType() { @SuppressWarnings("deprecation") io.vitess.proto.Topodata.KeyspaceIdType result = io.vitess.proto.Topodata.KeyspaceIdType.valueOf(shardingColumnType_); return result == null ? io.vitess.proto.Topodata.KeyspaceIdType.UNRECOGNIZED : result; } /**
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getShardingColumnNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, shardingColumnName_); } if (shardingColumnType_ != io.vitess.proto.Topodata.KeyspaceIdType.UNSET.getNumber()) { output.writeEnum(2, shardingColumnType_); } for (int i = 0; i < servedFroms_.size(); i++) { output.writeMessage(4, servedFroms_.get(i)); } unknownFields.writeTo(output); }
/** * <pre> * type of the column used for sharding * UNSET if the keyspace is not sharded * </pre> * * <code>.topodata.KeyspaceIdType sharding_column_type = 2;</code> */ public io.vitess.proto.Topodata.KeyspaceIdType getShardingColumnType() { @SuppressWarnings("deprecation") io.vitess.proto.Topodata.KeyspaceIdType result = io.vitess.proto.Topodata.KeyspaceIdType.valueOf(shardingColumnType_); return result == null ? io.vitess.proto.Topodata.KeyspaceIdType.UNRECOGNIZED : result; } /**
/** * <pre> * type of the column used for sharding * UNSET if the keyspace is not sharded * </pre> * * <code>.topodata.KeyspaceIdType sharding_column_type = 2;</code> */ public io.vitess.proto.Topodata.KeyspaceIdType getShardingColumnType() { @SuppressWarnings("deprecation") io.vitess.proto.Topodata.KeyspaceIdType result = io.vitess.proto.Topodata.KeyspaceIdType.valueOf(shardingColumnType_); return result == null ? io.vitess.proto.Topodata.KeyspaceIdType.UNRECOGNIZED : result; }
/** * <pre> * type of the column used for sharding * UNSET if the keyspace is not sharded * </pre> * * <code>.topodata.KeyspaceIdType sharding_column_type = 2;</code> */ public io.vitess.proto.Topodata.KeyspaceIdType getShardingColumnType() { @SuppressWarnings("deprecation") io.vitess.proto.Topodata.KeyspaceIdType result = io.vitess.proto.Topodata.KeyspaceIdType.valueOf(shardingColumnType_); return result == null ? io.vitess.proto.Topodata.KeyspaceIdType.UNRECOGNIZED : result; }
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor
/** * <code>.topodata.KeyspaceIdType sharding_column_type = 3;</code> */ public Builder setShardingColumnType(io.vitess.proto.Topodata.KeyspaceIdType value) { if (value == null) { throw new NullPointerException(); } shardingColumnType_ = value.getNumber(); onChanged(); return this; } /**