@java.lang.Override public io.vitess.proto.Topodata.SrvKeyspace buildPartial() { io.vitess.proto.Topodata.SrvKeyspace result = new io.vitess.proto.Topodata.SrvKeyspace(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (partitionsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { partitions_ = java.util.Collections.unmodifiableList(partitions_); bitField0_ = (bitField0_ & ~0x00000001); } result.partitions_ = partitions_; } else { result.partitions_ = partitionsBuilder_.build(); } result.shardingColumnName_ = shardingColumnName_; result.shardingColumnType_ = shardingColumnType_; if (servedFromBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { servedFrom_ = java.util.Collections.unmodifiableList(servedFrom_); bitField0_ = (bitField0_ & ~0x00000008); } result.servedFrom_ = servedFrom_; } else { result.servedFrom_ = servedFromBuilder_.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(); if (getPartitionsCount() > 0) { hash = (37 * hash) + PARTITIONS_FIELD_NUMBER; hash = (53 * hash) + getPartitionsList().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 (getServedFromCount() > 0) { hash = (37 * hash) + SERVED_FROM_FIELD_NUMBER; hash = (53 * hash) + getServedFromList().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; 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; }
public Builder mergeFrom(io.vitess.proto.Topodata.SrvKeyspace other) { if (other == io.vitess.proto.Topodata.SrvKeyspace.getDefaultInstance()) return this; if (partitionsBuilder_ == null) { if (!other.partitions_.isEmpty()) { if (!other.getShardingColumnName().isEmpty()) { shardingColumnName_ = other.shardingColumnName_; onChanged(); setShardingColumnTypeValue(other.getShardingColumnTypeValue());
public Builder mergeFrom(io.vitess.proto.Topodata.SrvKeyspace other) { if (other == io.vitess.proto.Topodata.SrvKeyspace.getDefaultInstance()) return this; if (partitionsBuilder_ == null) { if (!other.partitions_.isEmpty()) { if (!other.getShardingColumnName().isEmpty()) { shardingColumnName_ = other.shardingColumnName_; onChanged(); setShardingColumnTypeValue(other.getShardingColumnTypeValue());
@java.lang.Override public io.vitess.proto.Topodata.SrvKeyspace buildPartial() { io.vitess.proto.Topodata.SrvKeyspace result = new io.vitess.proto.Topodata.SrvKeyspace(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (partitionsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { partitions_ = java.util.Collections.unmodifiableList(partitions_); bitField0_ = (bitField0_ & ~0x00000001); } result.partitions_ = partitions_; } else { result.partitions_ = partitionsBuilder_.build(); } result.shardingColumnName_ = shardingColumnName_; result.shardingColumnType_ = shardingColumnType_; if (servedFromBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { servedFrom_ = java.util.Collections.unmodifiableList(servedFrom_); bitField0_ = (bitField0_ & ~0x00000008); } result.servedFrom_ = servedFrom_; } else { result.servedFrom_ = servedFromBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@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 hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getPartitionsCount() > 0) { hash = (37 * hash) + PARTITIONS_FIELD_NUMBER; hash = (53 * hash) + getPartitionsList().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 (getServedFromCount() > 0) { hash = (37 * hash) + SERVED_FROM_FIELD_NUMBER; hash = (53 * hash) + getServedFromList().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.SrvKeyspace)) { return super.equals(obj); } io.vitess.proto.Topodata.SrvKeyspace other = (io.vitess.proto.Topodata.SrvKeyspace) obj; boolean result = true; result = result && getPartitionsList() .equals(other.getPartitionsList()); result = result && getShardingColumnName() .equals(other.getShardingColumnName()); result = result && shardingColumnType_ == other.shardingColumnType_; result = result && getServedFromList() .equals(other.getServedFromList()); result = result && unknownFields.equals(other.unknownFields); return result; }
@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 boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.vitess.proto.Topodata.SrvKeyspace)) { return super.equals(obj); } io.vitess.proto.Topodata.SrvKeyspace other = (io.vitess.proto.Topodata.SrvKeyspace) obj; boolean result = true; result = result && getPartitionsList() .equals(other.getPartitionsList()); result = result && getShardingColumnName() .equals(other.getShardingColumnName()); result = result && shardingColumnType_ == other.shardingColumnType_; result = result && getServedFromList() .equals(other.getServedFromList()); result = result && unknownFields.equals(other.unknownFields); return result; }
@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> * copied from Keyspace * </pre> * * <code>string sharding_column_name = 2;</code> */ public Builder clearShardingColumnName() { shardingColumnName_ = getDefaultInstance().getShardingColumnName(); onChanged(); return this; } /**
@java.lang.Override public io.vitess.proto.Topodata.SrvKeyspace getDefaultInstanceForType() { return io.vitess.proto.Topodata.SrvKeyspace.getDefaultInstance(); }
@java.lang.Override public io.vitess.proto.Topodata.SrvKeyspace getDefaultInstanceForType() { return io.vitess.proto.Topodata.SrvKeyspace.getDefaultInstance(); }
/** * <pre> * copied from Keyspace * </pre> * * <code>string sharding_column_name = 2;</code> */ public Builder clearShardingColumnName() { shardingColumnName_ = getDefaultInstance().getShardingColumnName(); onChanged(); return this; } /**