io.milvus.grpc.QuerySegmentInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of milvus-sdk-java Show documentation
Show all versions of milvus-sdk-java Show documentation
Java SDK for Milvus, a distributed high-performance vector search engine.
update grpc to 1.42.1
update protobuf to 3.19.1
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: milvus.proto
package io.milvus.grpc;
/**
* Protobuf type {@code milvus.proto.milvus.QuerySegmentInfo}
*/
public final class QuerySegmentInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:milvus.proto.milvus.QuerySegmentInfo)
QuerySegmentInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use QuerySegmentInfo.newBuilder() to construct.
private QuerySegmentInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QuerySegmentInfo() {
indexName_ = "";
state_ = 0;
nodeIds_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QuerySegmentInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QuerySegmentInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
segmentID_ = input.readInt64();
break;
}
case 16: {
collectionID_ = input.readInt64();
break;
}
case 24: {
partitionID_ = input.readInt64();
break;
}
case 32: {
memSize_ = input.readInt64();
break;
}
case 40: {
numRows_ = input.readInt64();
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
indexName_ = s;
break;
}
case 56: {
indexID_ = input.readInt64();
break;
}
case 64: {
nodeID_ = input.readInt64();
break;
}
case 72: {
int rawValue = input.readEnum();
state_ = rawValue;
break;
}
case 80: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
nodeIds_ = newLongList();
mutable_bitField0_ |= 0x00000001;
}
nodeIds_.addLong(input.readInt64());
break;
}
case 82: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
nodeIds_ = newLongList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
nodeIds_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
nodeIds_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_QuerySegmentInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_QuerySegmentInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.QuerySegmentInfo.class, io.milvus.grpc.QuerySegmentInfo.Builder.class);
}
public static final int SEGMENTID_FIELD_NUMBER = 1;
private long segmentID_;
/**
* int64 segmentID = 1;
* @return The segmentID.
*/
@java.lang.Override
public long getSegmentID() {
return segmentID_;
}
public static final int COLLECTIONID_FIELD_NUMBER = 2;
private long collectionID_;
/**
* int64 collectionID = 2;
* @return The collectionID.
*/
@java.lang.Override
public long getCollectionID() {
return collectionID_;
}
public static final int PARTITIONID_FIELD_NUMBER = 3;
private long partitionID_;
/**
* int64 partitionID = 3;
* @return The partitionID.
*/
@java.lang.Override
public long getPartitionID() {
return partitionID_;
}
public static final int MEM_SIZE_FIELD_NUMBER = 4;
private long memSize_;
/**
* int64 mem_size = 4;
* @return The memSize.
*/
@java.lang.Override
public long getMemSize() {
return memSize_;
}
public static final int NUM_ROWS_FIELD_NUMBER = 5;
private long numRows_;
/**
* int64 num_rows = 5;
* @return The numRows.
*/
@java.lang.Override
public long getNumRows() {
return numRows_;
}
public static final int INDEX_NAME_FIELD_NUMBER = 6;
private volatile java.lang.Object indexName_;
/**
* string index_name = 6;
* @return The indexName.
*/
@java.lang.Override
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
indexName_ = s;
return s;
}
}
/**
* string index_name = 6;
* @return The bytes for indexName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INDEXID_FIELD_NUMBER = 7;
private long indexID_;
/**
* int64 indexID = 7;
* @return The indexID.
*/
@java.lang.Override
public long getIndexID() {
return indexID_;
}
public static final int NODEID_FIELD_NUMBER = 8;
private long nodeID_;
/**
*
* deprecated, check node_ids(NodeIds) field
*
*
* int64 nodeID = 8;
* @return The nodeID.
*/
@java.lang.Override
public long getNodeID() {
return nodeID_;
}
public static final int STATE_FIELD_NUMBER = 9;
private int state_;
/**
* .milvus.proto.common.SegmentState state = 9;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
* .milvus.proto.common.SegmentState state = 9;
* @return The state.
*/
@java.lang.Override public io.milvus.grpc.SegmentState getState() {
@SuppressWarnings("deprecation")
io.milvus.grpc.SegmentState result = io.milvus.grpc.SegmentState.valueOf(state_);
return result == null ? io.milvus.grpc.SegmentState.UNRECOGNIZED : result;
}
public static final int NODEIDS_FIELD_NUMBER = 10;
private com.google.protobuf.Internal.LongList nodeIds_;
/**
* repeated int64 nodeIds = 10;
* @return A list containing the nodeIds.
*/
@java.lang.Override
public java.util.List
getNodeIdsList() {
return nodeIds_;
}
/**
* repeated int64 nodeIds = 10;
* @return The count of nodeIds.
*/
public int getNodeIdsCount() {
return nodeIds_.size();
}
/**
* repeated int64 nodeIds = 10;
* @param index The index of the element to return.
* @return The nodeIds at the given index.
*/
public long getNodeIds(int index) {
return nodeIds_.getLong(index);
}
private int nodeIdsMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (segmentID_ != 0L) {
output.writeInt64(1, segmentID_);
}
if (collectionID_ != 0L) {
output.writeInt64(2, collectionID_);
}
if (partitionID_ != 0L) {
output.writeInt64(3, partitionID_);
}
if (memSize_ != 0L) {
output.writeInt64(4, memSize_);
}
if (numRows_ != 0L) {
output.writeInt64(5, numRows_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indexName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, indexName_);
}
if (indexID_ != 0L) {
output.writeInt64(7, indexID_);
}
if (nodeID_ != 0L) {
output.writeInt64(8, nodeID_);
}
if (state_ != io.milvus.grpc.SegmentState.SegmentStateNone.getNumber()) {
output.writeEnum(9, state_);
}
if (getNodeIdsList().size() > 0) {
output.writeUInt32NoTag(82);
output.writeUInt32NoTag(nodeIdsMemoizedSerializedSize);
}
for (int i = 0; i < nodeIds_.size(); i++) {
output.writeInt64NoTag(nodeIds_.getLong(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (segmentID_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, segmentID_);
}
if (collectionID_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, collectionID_);
}
if (partitionID_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, partitionID_);
}
if (memSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, memSize_);
}
if (numRows_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, numRows_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indexName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, indexName_);
}
if (indexID_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, indexID_);
}
if (nodeID_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, nodeID_);
}
if (state_ != io.milvus.grpc.SegmentState.SegmentStateNone.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(9, state_);
}
{
int dataSize = 0;
for (int i = 0; i < nodeIds_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(nodeIds_.getLong(i));
}
size += dataSize;
if (!getNodeIdsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
nodeIdsMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.milvus.grpc.QuerySegmentInfo)) {
return super.equals(obj);
}
io.milvus.grpc.QuerySegmentInfo other = (io.milvus.grpc.QuerySegmentInfo) obj;
if (getSegmentID()
!= other.getSegmentID()) return false;
if (getCollectionID()
!= other.getCollectionID()) return false;
if (getPartitionID()
!= other.getPartitionID()) return false;
if (getMemSize()
!= other.getMemSize()) return false;
if (getNumRows()
!= other.getNumRows()) return false;
if (!getIndexName()
.equals(other.getIndexName())) return false;
if (getIndexID()
!= other.getIndexID()) return false;
if (getNodeID()
!= other.getNodeID()) return false;
if (state_ != other.state_) return false;
if (!getNodeIdsList()
.equals(other.getNodeIdsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SEGMENTID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSegmentID());
hash = (37 * hash) + COLLECTIONID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCollectionID());
hash = (37 * hash) + PARTITIONID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPartitionID());
hash = (37 * hash) + MEM_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMemSize());
hash = (37 * hash) + NUM_ROWS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNumRows());
hash = (37 * hash) + INDEX_NAME_FIELD_NUMBER;
hash = (53 * hash) + getIndexName().hashCode();
hash = (37 * hash) + INDEXID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getIndexID());
hash = (37 * hash) + NODEID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNodeID());
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
if (getNodeIdsCount() > 0) {
hash = (37 * hash) + NODEIDS_FIELD_NUMBER;
hash = (53 * hash) + getNodeIdsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.milvus.grpc.QuerySegmentInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.QuerySegmentInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.QuerySegmentInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.QuerySegmentInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.QuerySegmentInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.QuerySegmentInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.QuerySegmentInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.QuerySegmentInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.milvus.grpc.QuerySegmentInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.milvus.grpc.QuerySegmentInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.milvus.grpc.QuerySegmentInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.QuerySegmentInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.milvus.grpc.QuerySegmentInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code milvus.proto.milvus.QuerySegmentInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:milvus.proto.milvus.QuerySegmentInfo)
io.milvus.grpc.QuerySegmentInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_QuerySegmentInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_QuerySegmentInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.QuerySegmentInfo.class, io.milvus.grpc.QuerySegmentInfo.Builder.class);
}
// Construct using io.milvus.grpc.QuerySegmentInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
segmentID_ = 0L;
collectionID_ = 0L;
partitionID_ = 0L;
memSize_ = 0L;
numRows_ = 0L;
indexName_ = "";
indexID_ = 0L;
nodeID_ = 0L;
state_ = 0;
nodeIds_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_QuerySegmentInfo_descriptor;
}
@java.lang.Override
public io.milvus.grpc.QuerySegmentInfo getDefaultInstanceForType() {
return io.milvus.grpc.QuerySegmentInfo.getDefaultInstance();
}
@java.lang.Override
public io.milvus.grpc.QuerySegmentInfo build() {
io.milvus.grpc.QuerySegmentInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.milvus.grpc.QuerySegmentInfo buildPartial() {
io.milvus.grpc.QuerySegmentInfo result = new io.milvus.grpc.QuerySegmentInfo(this);
int from_bitField0_ = bitField0_;
result.segmentID_ = segmentID_;
result.collectionID_ = collectionID_;
result.partitionID_ = partitionID_;
result.memSize_ = memSize_;
result.numRows_ = numRows_;
result.indexName_ = indexName_;
result.indexID_ = indexID_;
result.nodeID_ = nodeID_;
result.state_ = state_;
if (((bitField0_ & 0x00000001) != 0)) {
nodeIds_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.nodeIds_ = nodeIds_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.milvus.grpc.QuerySegmentInfo) {
return mergeFrom((io.milvus.grpc.QuerySegmentInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.milvus.grpc.QuerySegmentInfo other) {
if (other == io.milvus.grpc.QuerySegmentInfo.getDefaultInstance()) return this;
if (other.getSegmentID() != 0L) {
setSegmentID(other.getSegmentID());
}
if (other.getCollectionID() != 0L) {
setCollectionID(other.getCollectionID());
}
if (other.getPartitionID() != 0L) {
setPartitionID(other.getPartitionID());
}
if (other.getMemSize() != 0L) {
setMemSize(other.getMemSize());
}
if (other.getNumRows() != 0L) {
setNumRows(other.getNumRows());
}
if (!other.getIndexName().isEmpty()) {
indexName_ = other.indexName_;
onChanged();
}
if (other.getIndexID() != 0L) {
setIndexID(other.getIndexID());
}
if (other.getNodeID() != 0L) {
setNodeID(other.getNodeID());
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (!other.nodeIds_.isEmpty()) {
if (nodeIds_.isEmpty()) {
nodeIds_ = other.nodeIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNodeIdsIsMutable();
nodeIds_.addAll(other.nodeIds_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.milvus.grpc.QuerySegmentInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.milvus.grpc.QuerySegmentInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long segmentID_ ;
/**
* int64 segmentID = 1;
* @return The segmentID.
*/
@java.lang.Override
public long getSegmentID() {
return segmentID_;
}
/**
* int64 segmentID = 1;
* @param value The segmentID to set.
* @return This builder for chaining.
*/
public Builder setSegmentID(long value) {
segmentID_ = value;
onChanged();
return this;
}
/**
* int64 segmentID = 1;
* @return This builder for chaining.
*/
public Builder clearSegmentID() {
segmentID_ = 0L;
onChanged();
return this;
}
private long collectionID_ ;
/**
* int64 collectionID = 2;
* @return The collectionID.
*/
@java.lang.Override
public long getCollectionID() {
return collectionID_;
}
/**
* int64 collectionID = 2;
* @param value The collectionID to set.
* @return This builder for chaining.
*/
public Builder setCollectionID(long value) {
collectionID_ = value;
onChanged();
return this;
}
/**
* int64 collectionID = 2;
* @return This builder for chaining.
*/
public Builder clearCollectionID() {
collectionID_ = 0L;
onChanged();
return this;
}
private long partitionID_ ;
/**
* int64 partitionID = 3;
* @return The partitionID.
*/
@java.lang.Override
public long getPartitionID() {
return partitionID_;
}
/**
* int64 partitionID = 3;
* @param value The partitionID to set.
* @return This builder for chaining.
*/
public Builder setPartitionID(long value) {
partitionID_ = value;
onChanged();
return this;
}
/**
* int64 partitionID = 3;
* @return This builder for chaining.
*/
public Builder clearPartitionID() {
partitionID_ = 0L;
onChanged();
return this;
}
private long memSize_ ;
/**
* int64 mem_size = 4;
* @return The memSize.
*/
@java.lang.Override
public long getMemSize() {
return memSize_;
}
/**
* int64 mem_size = 4;
* @param value The memSize to set.
* @return This builder for chaining.
*/
public Builder setMemSize(long value) {
memSize_ = value;
onChanged();
return this;
}
/**
* int64 mem_size = 4;
* @return This builder for chaining.
*/
public Builder clearMemSize() {
memSize_ = 0L;
onChanged();
return this;
}
private long numRows_ ;
/**
* int64 num_rows = 5;
* @return The numRows.
*/
@java.lang.Override
public long getNumRows() {
return numRows_;
}
/**
* int64 num_rows = 5;
* @param value The numRows to set.
* @return This builder for chaining.
*/
public Builder setNumRows(long value) {
numRows_ = value;
onChanged();
return this;
}
/**
* int64 num_rows = 5;
* @return This builder for chaining.
*/
public Builder clearNumRows() {
numRows_ = 0L;
onChanged();
return this;
}
private java.lang.Object indexName_ = "";
/**
* string index_name = 6;
* @return The indexName.
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
indexName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string index_name = 6;
* @return The bytes for indexName.
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string index_name = 6;
* @param value The indexName to set.
* @return This builder for chaining.
*/
public Builder setIndexName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
indexName_ = value;
onChanged();
return this;
}
/**
* string index_name = 6;
* @return This builder for chaining.
*/
public Builder clearIndexName() {
indexName_ = getDefaultInstance().getIndexName();
onChanged();
return this;
}
/**
* string index_name = 6;
* @param value The bytes for indexName to set.
* @return This builder for chaining.
*/
public Builder setIndexNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
indexName_ = value;
onChanged();
return this;
}
private long indexID_ ;
/**
* int64 indexID = 7;
* @return The indexID.
*/
@java.lang.Override
public long getIndexID() {
return indexID_;
}
/**
* int64 indexID = 7;
* @param value The indexID to set.
* @return This builder for chaining.
*/
public Builder setIndexID(long value) {
indexID_ = value;
onChanged();
return this;
}
/**
* int64 indexID = 7;
* @return This builder for chaining.
*/
public Builder clearIndexID() {
indexID_ = 0L;
onChanged();
return this;
}
private long nodeID_ ;
/**
*
* deprecated, check node_ids(NodeIds) field
*
*
* int64 nodeID = 8;
* @return The nodeID.
*/
@java.lang.Override
public long getNodeID() {
return nodeID_;
}
/**
*
* deprecated, check node_ids(NodeIds) field
*
*
* int64 nodeID = 8;
* @param value The nodeID to set.
* @return This builder for chaining.
*/
public Builder setNodeID(long value) {
nodeID_ = value;
onChanged();
return this;
}
/**
*
* deprecated, check node_ids(NodeIds) field
*
*
* int64 nodeID = 8;
* @return This builder for chaining.
*/
public Builder clearNodeID() {
nodeID_ = 0L;
onChanged();
return this;
}
private int state_ = 0;
/**
* .milvus.proto.common.SegmentState state = 9;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
* .milvus.proto.common.SegmentState state = 9;
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
onChanged();
return this;
}
/**
* .milvus.proto.common.SegmentState state = 9;
* @return The state.
*/
@java.lang.Override
public io.milvus.grpc.SegmentState getState() {
@SuppressWarnings("deprecation")
io.milvus.grpc.SegmentState result = io.milvus.grpc.SegmentState.valueOf(state_);
return result == null ? io.milvus.grpc.SegmentState.UNRECOGNIZED : result;
}
/**
* .milvus.proto.common.SegmentState state = 9;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(io.milvus.grpc.SegmentState value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value.getNumber();
onChanged();
return this;
}
/**
* .milvus.proto.common.SegmentState state = 9;
* @return This builder for chaining.
*/
public Builder clearState() {
state_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList nodeIds_ = emptyLongList();
private void ensureNodeIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
nodeIds_ = mutableCopy(nodeIds_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated int64 nodeIds = 10;
* @return A list containing the nodeIds.
*/
public java.util.List
getNodeIdsList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(nodeIds_) : nodeIds_;
}
/**
* repeated int64 nodeIds = 10;
* @return The count of nodeIds.
*/
public int getNodeIdsCount() {
return nodeIds_.size();
}
/**
* repeated int64 nodeIds = 10;
* @param index The index of the element to return.
* @return The nodeIds at the given index.
*/
public long getNodeIds(int index) {
return nodeIds_.getLong(index);
}
/**
* repeated int64 nodeIds = 10;
* @param index The index to set the value at.
* @param value The nodeIds to set.
* @return This builder for chaining.
*/
public Builder setNodeIds(
int index, long value) {
ensureNodeIdsIsMutable();
nodeIds_.setLong(index, value);
onChanged();
return this;
}
/**
* repeated int64 nodeIds = 10;
* @param value The nodeIds to add.
* @return This builder for chaining.
*/
public Builder addNodeIds(long value) {
ensureNodeIdsIsMutable();
nodeIds_.addLong(value);
onChanged();
return this;
}
/**
* repeated int64 nodeIds = 10;
* @param values The nodeIds to add.
* @return This builder for chaining.
*/
public Builder addAllNodeIds(
java.lang.Iterable extends java.lang.Long> values) {
ensureNodeIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, nodeIds_);
onChanged();
return this;
}
/**
* repeated int64 nodeIds = 10;
* @return This builder for chaining.
*/
public Builder clearNodeIds() {
nodeIds_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:milvus.proto.milvus.QuerySegmentInfo)
}
// @@protoc_insertion_point(class_scope:milvus.proto.milvus.QuerySegmentInfo)
private static final io.milvus.grpc.QuerySegmentInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.milvus.grpc.QuerySegmentInfo();
}
public static io.milvus.grpc.QuerySegmentInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QuerySegmentInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QuerySegmentInfo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.milvus.grpc.QuerySegmentInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}