@java.lang.Override public io.vitess.proto.Topodata.Keyspace buildPartial() { io.vitess.proto.Topodata.Keyspace result = new io.vitess.proto.Topodata.Keyspace(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.shardingColumnName_ = shardingColumnName_; result.shardingColumnType_ = shardingColumnType_; if (servedFromsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { servedFroms_ = java.util.Collections.unmodifiableList(servedFroms_); bitField0_ = (bitField0_ & ~0x00000004); } result.servedFroms_ = servedFroms_; } else { result.servedFroms_ = servedFromsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SHARDING_COLUMN_NAME_FIELD_NUMBER; hash = (53 * hash) + getShardingColumnName().hashCode(); hash = (37 * hash) + SHARDING_COLUMN_TYPE_FIELD_NUMBER; hash = (53 * hash) + shardingColumnType_; if (getServedFromsCount() > 0) { hash = (37 * hash) + SERVED_FROMS_FIELD_NUMBER; hash = (53 * hash) + getServedFromsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@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; }
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; makeExtensionsImmutable();
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; makeExtensionsImmutable();
public Builder mergeFrom(io.vitess.proto.Topodata.Keyspace other) { if (other == io.vitess.proto.Topodata.Keyspace.getDefaultInstance()) return this; if (!other.getShardingColumnName().isEmpty()) { shardingColumnName_ = other.shardingColumnName_; onChanged(); setShardingColumnTypeValue(other.getShardingColumnTypeValue());
public Builder mergeFrom(io.vitess.proto.Topodata.Keyspace other) { if (other == io.vitess.proto.Topodata.Keyspace.getDefaultInstance()) return this; if (!other.getShardingColumnName().isEmpty()) { shardingColumnName_ = other.shardingColumnName_; onChanged(); setShardingColumnTypeValue(other.getShardingColumnTypeValue());
@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 io.vitess.proto.Topodata.Keyspace buildPartial() { io.vitess.proto.Topodata.Keyspace result = new io.vitess.proto.Topodata.Keyspace(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.shardingColumnName_ = shardingColumnName_; result.shardingColumnType_ = shardingColumnType_; if (servedFromsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { servedFroms_ = java.util.Collections.unmodifiableList(servedFroms_); bitField0_ = (bitField0_ & ~0x00000004); } result.servedFroms_ = servedFroms_; } else { result.servedFroms_ = servedFromsBuilder_.build(); } 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.Keyspace)) { return super.equals(obj); } io.vitess.proto.Topodata.Keyspace other = (io.vitess.proto.Topodata.Keyspace) obj; boolean result = true; result = result && getShardingColumnName() .equals(other.getShardingColumnName()); result = result && shardingColumnType_ == other.shardingColumnType_; result = result && getServedFromsList() .equals(other.getServedFromsList()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SHARDING_COLUMN_NAME_FIELD_NUMBER; hash = (53 * hash) + getShardingColumnName().hashCode(); hash = (37 * hash) + SHARDING_COLUMN_TYPE_FIELD_NUMBER; hash = (53 * hash) + shardingColumnType_; if (getServedFromsCount() > 0) { hash = (37 * hash) + SERVED_FROMS_FIELD_NUMBER; hash = (53 * hash) + getServedFromsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.vitess.proto.Topodata.Keyspace)) { return super.equals(obj); } io.vitess.proto.Topodata.Keyspace other = (io.vitess.proto.Topodata.Keyspace) obj; boolean result = true; result = result && getShardingColumnName() .equals(other.getShardingColumnName()); result = result && shardingColumnType_ == other.shardingColumnType_; result = result && getServedFromsList() .equals(other.getServedFromsList()); result = result && unknownFields.equals(other.unknownFields); return 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); }
@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> * name of the column used for sharding * empty if the keyspace is not sharded * </pre> * * <code>string sharding_column_name = 1;</code> */ public Builder clearShardingColumnName() { shardingColumnName_ = getDefaultInstance().getShardingColumnName(); onChanged(); return this; } /**
/** * <pre> * name of the column used for sharding * empty if the keyspace is not sharded * </pre> * * <code>string sharding_column_name = 1;</code> */ public Builder clearShardingColumnName() { shardingColumnName_ = getDefaultInstance().getShardingColumnName(); onChanged(); return this; } /**
@java.lang.Override public io.vitess.proto.Topodata.Keyspace getDefaultInstanceForType() { return io.vitess.proto.Topodata.Keyspace.getDefaultInstance(); }
@java.lang.Override public io.vitess.proto.Topodata.Keyspace getDefaultInstanceForType() { return io.vitess.proto.Topodata.Keyspace.getDefaultInstance(); }
@java.lang.Override public io.vitess.proto.Topodata.Keyspace build() { io.vitess.proto.Topodata.Keyspace result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public io.vitess.proto.Topodata.Keyspace build() { io.vitess.proto.Topodata.Keyspace result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }