![JAR search and dependency download from the Maven repository](/logo.png)
io.milvus.grpc.MutationResult 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
restore the calcDistance interface that is removed in 2.1.0-beta4
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: milvus.proto
package io.milvus.grpc;
/**
* Protobuf type {@code milvus.proto.milvus.MutationResult}
*/
public final class MutationResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:milvus.proto.milvus.MutationResult)
MutationResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use MutationResult.newBuilder() to construct.
private MutationResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MutationResult() {
succIndex_ = emptyIntList();
errIndex_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MutationResult();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MutationResult(
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 10: {
io.milvus.grpc.Status.Builder subBuilder = null;
if (status_ != null) {
subBuilder = status_.toBuilder();
}
status_ = input.readMessage(io.milvus.grpc.Status.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.milvus.grpc.IDs.Builder subBuilder = null;
if (iDs_ != null) {
subBuilder = iDs_.toBuilder();
}
iDs_ = input.readMessage(io.milvus.grpc.IDs.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(iDs_);
iDs_ = subBuilder.buildPartial();
}
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
succIndex_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
succIndex_.addInt(input.readUInt32());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
succIndex_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
succIndex_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 32: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
errIndex_ = newIntList();
mutable_bitField0_ |= 0x00000002;
}
errIndex_.addInt(input.readUInt32());
break;
}
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
errIndex_ = newIntList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
errIndex_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 40: {
acknowledged_ = input.readBool();
break;
}
case 48: {
insertCnt_ = input.readInt64();
break;
}
case 56: {
deleteCnt_ = input.readInt64();
break;
}
case 64: {
upsertCnt_ = input.readInt64();
break;
}
case 72: {
timestamp_ = input.readUInt64();
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)) {
succIndex_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
errIndex_.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_MutationResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_MutationResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.MutationResult.class, io.milvus.grpc.MutationResult.Builder.class);
}
public static final int STATUS_FIELD_NUMBER = 1;
private io.milvus.grpc.Status status_;
/**
* .milvus.proto.common.Status status = 1;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return status_ != null;
}
/**
* .milvus.proto.common.Status status = 1;
* @return The status.
*/
@java.lang.Override
public io.milvus.grpc.Status getStatus() {
return status_ == null ? io.milvus.grpc.Status.getDefaultInstance() : status_;
}
/**
* .milvus.proto.common.Status status = 1;
*/
@java.lang.Override
public io.milvus.grpc.StatusOrBuilder getStatusOrBuilder() {
return getStatus();
}
public static final int IDS_FIELD_NUMBER = 2;
private io.milvus.grpc.IDs iDs_;
/**
*
* required for insert, delete
*
*
* .milvus.proto.schema.IDs IDs = 2;
* @return Whether the iDs field is set.
*/
@java.lang.Override
public boolean hasIDs() {
return iDs_ != null;
}
/**
*
* required for insert, delete
*
*
* .milvus.proto.schema.IDs IDs = 2;
* @return The iDs.
*/
@java.lang.Override
public io.milvus.grpc.IDs getIDs() {
return iDs_ == null ? io.milvus.grpc.IDs.getDefaultInstance() : iDs_;
}
/**
*
* required for insert, delete
*
*
* .milvus.proto.schema.IDs IDs = 2;
*/
@java.lang.Override
public io.milvus.grpc.IDsOrBuilder getIDsOrBuilder() {
return getIDs();
}
public static final int SUCC_INDEX_FIELD_NUMBER = 3;
private com.google.protobuf.Internal.IntList succIndex_;
/**
*
* error indexes indicate
*
*
* repeated uint32 succ_index = 3;
* @return A list containing the succIndex.
*/
@java.lang.Override
public java.util.List
getSuccIndexList() {
return succIndex_;
}
/**
*
* error indexes indicate
*
*
* repeated uint32 succ_index = 3;
* @return The count of succIndex.
*/
public int getSuccIndexCount() {
return succIndex_.size();
}
/**
*
* error indexes indicate
*
*
* repeated uint32 succ_index = 3;
* @param index The index of the element to return.
* @return The succIndex at the given index.
*/
public int getSuccIndex(int index) {
return succIndex_.getInt(index);
}
private int succIndexMemoizedSerializedSize = -1;
public static final int ERR_INDEX_FIELD_NUMBER = 4;
private com.google.protobuf.Internal.IntList errIndex_;
/**
*
* error indexes indicate
*
*
* repeated uint32 err_index = 4;
* @return A list containing the errIndex.
*/
@java.lang.Override
public java.util.List
getErrIndexList() {
return errIndex_;
}
/**
*
* error indexes indicate
*
*
* repeated uint32 err_index = 4;
* @return The count of errIndex.
*/
public int getErrIndexCount() {
return errIndex_.size();
}
/**
*
* error indexes indicate
*
*
* repeated uint32 err_index = 4;
* @param index The index of the element to return.
* @return The errIndex at the given index.
*/
public int getErrIndex(int index) {
return errIndex_.getInt(index);
}
private int errIndexMemoizedSerializedSize = -1;
public static final int ACKNOWLEDGED_FIELD_NUMBER = 5;
private boolean acknowledged_;
/**
* bool acknowledged = 5;
* @return The acknowledged.
*/
@java.lang.Override
public boolean getAcknowledged() {
return acknowledged_;
}
public static final int INSERT_CNT_FIELD_NUMBER = 6;
private long insertCnt_;
/**
* int64 insert_cnt = 6;
* @return The insertCnt.
*/
@java.lang.Override
public long getInsertCnt() {
return insertCnt_;
}
public static final int DELETE_CNT_FIELD_NUMBER = 7;
private long deleteCnt_;
/**
* int64 delete_cnt = 7;
* @return The deleteCnt.
*/
@java.lang.Override
public long getDeleteCnt() {
return deleteCnt_;
}
public static final int UPSERT_CNT_FIELD_NUMBER = 8;
private long upsertCnt_;
/**
* int64 upsert_cnt = 8;
* @return The upsertCnt.
*/
@java.lang.Override
public long getUpsertCnt() {
return upsertCnt_;
}
public static final int TIMESTAMP_FIELD_NUMBER = 9;
private long timestamp_;
/**
* uint64 timestamp = 9;
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return timestamp_;
}
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 (status_ != null) {
output.writeMessage(1, getStatus());
}
if (iDs_ != null) {
output.writeMessage(2, getIDs());
}
if (getSuccIndexList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(succIndexMemoizedSerializedSize);
}
for (int i = 0; i < succIndex_.size(); i++) {
output.writeUInt32NoTag(succIndex_.getInt(i));
}
if (getErrIndexList().size() > 0) {
output.writeUInt32NoTag(34);
output.writeUInt32NoTag(errIndexMemoizedSerializedSize);
}
for (int i = 0; i < errIndex_.size(); i++) {
output.writeUInt32NoTag(errIndex_.getInt(i));
}
if (acknowledged_ != false) {
output.writeBool(5, acknowledged_);
}
if (insertCnt_ != 0L) {
output.writeInt64(6, insertCnt_);
}
if (deleteCnt_ != 0L) {
output.writeInt64(7, deleteCnt_);
}
if (upsertCnt_ != 0L) {
output.writeInt64(8, upsertCnt_);
}
if (timestamp_ != 0L) {
output.writeUInt64(9, timestamp_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getStatus());
}
if (iDs_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getIDs());
}
{
int dataSize = 0;
for (int i = 0; i < succIndex_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(succIndex_.getInt(i));
}
size += dataSize;
if (!getSuccIndexList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
succIndexMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < errIndex_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(errIndex_.getInt(i));
}
size += dataSize;
if (!getErrIndexList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
errIndexMemoizedSerializedSize = dataSize;
}
if (acknowledged_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, acknowledged_);
}
if (insertCnt_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, insertCnt_);
}
if (deleteCnt_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, deleteCnt_);
}
if (upsertCnt_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, upsertCnt_);
}
if (timestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(9, timestamp_);
}
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.MutationResult)) {
return super.equals(obj);
}
io.milvus.grpc.MutationResult other = (io.milvus.grpc.MutationResult) obj;
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus()
.equals(other.getStatus())) return false;
}
if (hasIDs() != other.hasIDs()) return false;
if (hasIDs()) {
if (!getIDs()
.equals(other.getIDs())) return false;
}
if (!getSuccIndexList()
.equals(other.getSuccIndexList())) return false;
if (!getErrIndexList()
.equals(other.getErrIndexList())) return false;
if (getAcknowledged()
!= other.getAcknowledged()) return false;
if (getInsertCnt()
!= other.getInsertCnt()) return false;
if (getDeleteCnt()
!= other.getDeleteCnt()) return false;
if (getUpsertCnt()
!= other.getUpsertCnt()) return false;
if (getTimestamp()
!= other.getTimestamp()) 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();
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
if (hasIDs()) {
hash = (37 * hash) + IDS_FIELD_NUMBER;
hash = (53 * hash) + getIDs().hashCode();
}
if (getSuccIndexCount() > 0) {
hash = (37 * hash) + SUCC_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getSuccIndexList().hashCode();
}
if (getErrIndexCount() > 0) {
hash = (37 * hash) + ERR_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getErrIndexList().hashCode();
}
hash = (37 * hash) + ACKNOWLEDGED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAcknowledged());
hash = (37 * hash) + INSERT_CNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInsertCnt());
hash = (37 * hash) + DELETE_CNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDeleteCnt());
hash = (37 * hash) + UPSERT_CNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getUpsertCnt());
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.milvus.grpc.MutationResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.MutationResult 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.MutationResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.MutationResult 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.MutationResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.MutationResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.MutationResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.MutationResult 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.MutationResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.milvus.grpc.MutationResult 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.MutationResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.MutationResult 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.MutationResult 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.MutationResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:milvus.proto.milvus.MutationResult)
io.milvus.grpc.MutationResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_MutationResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_MutationResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.MutationResult.class, io.milvus.grpc.MutationResult.Builder.class);
}
// Construct using io.milvus.grpc.MutationResult.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();
if (statusBuilder_ == null) {
status_ = null;
} else {
status_ = null;
statusBuilder_ = null;
}
if (iDsBuilder_ == null) {
iDs_ = null;
} else {
iDs_ = null;
iDsBuilder_ = null;
}
succIndex_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
errIndex_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
acknowledged_ = false;
insertCnt_ = 0L;
deleteCnt_ = 0L;
upsertCnt_ = 0L;
timestamp_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_MutationResult_descriptor;
}
@java.lang.Override
public io.milvus.grpc.MutationResult getDefaultInstanceForType() {
return io.milvus.grpc.MutationResult.getDefaultInstance();
}
@java.lang.Override
public io.milvus.grpc.MutationResult build() {
io.milvus.grpc.MutationResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.milvus.grpc.MutationResult buildPartial() {
io.milvus.grpc.MutationResult result = new io.milvus.grpc.MutationResult(this);
int from_bitField0_ = bitField0_;
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
if (iDsBuilder_ == null) {
result.iDs_ = iDs_;
} else {
result.iDs_ = iDsBuilder_.build();
}
if (((bitField0_ & 0x00000001) != 0)) {
succIndex_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.succIndex_ = succIndex_;
if (((bitField0_ & 0x00000002) != 0)) {
errIndex_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.errIndex_ = errIndex_;
result.acknowledged_ = acknowledged_;
result.insertCnt_ = insertCnt_;
result.deleteCnt_ = deleteCnt_;
result.upsertCnt_ = upsertCnt_;
result.timestamp_ = timestamp_;
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.MutationResult) {
return mergeFrom((io.milvus.grpc.MutationResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.milvus.grpc.MutationResult other) {
if (other == io.milvus.grpc.MutationResult.getDefaultInstance()) return this;
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
if (other.hasIDs()) {
mergeIDs(other.getIDs());
}
if (!other.succIndex_.isEmpty()) {
if (succIndex_.isEmpty()) {
succIndex_ = other.succIndex_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSuccIndexIsMutable();
succIndex_.addAll(other.succIndex_);
}
onChanged();
}
if (!other.errIndex_.isEmpty()) {
if (errIndex_.isEmpty()) {
errIndex_ = other.errIndex_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureErrIndexIsMutable();
errIndex_.addAll(other.errIndex_);
}
onChanged();
}
if (other.getAcknowledged() != false) {
setAcknowledged(other.getAcknowledged());
}
if (other.getInsertCnt() != 0L) {
setInsertCnt(other.getInsertCnt());
}
if (other.getDeleteCnt() != 0L) {
setDeleteCnt(other.getDeleteCnt());
}
if (other.getUpsertCnt() != 0L) {
setUpsertCnt(other.getUpsertCnt());
}
if (other.getTimestamp() != 0L) {
setTimestamp(other.getTimestamp());
}
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.MutationResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.milvus.grpc.MutationResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.milvus.grpc.Status status_;
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.Status, io.milvus.grpc.Status.Builder, io.milvus.grpc.StatusOrBuilder> statusBuilder_;
/**
* .milvus.proto.common.Status status = 1;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return statusBuilder_ != null || status_ != null;
}
/**
* .milvus.proto.common.Status status = 1;
* @return The status.
*/
public io.milvus.grpc.Status getStatus() {
if (statusBuilder_ == null) {
return status_ == null ? io.milvus.grpc.Status.getDefaultInstance() : status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
* .milvus.proto.common.Status status = 1;
*/
public Builder setStatus(io.milvus.grpc.Status value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
onChanged();
} else {
statusBuilder_.setMessage(value);
}
return this;
}
/**
* .milvus.proto.common.Status status = 1;
*/
public Builder setStatus(
io.milvus.grpc.Status.Builder builderForValue) {
if (statusBuilder_ == null) {
status_ = builderForValue.build();
onChanged();
} else {
statusBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .milvus.proto.common.Status status = 1;
*/
public Builder mergeStatus(io.milvus.grpc.Status value) {
if (statusBuilder_ == null) {
if (status_ != null) {
status_ =
io.milvus.grpc.Status.newBuilder(status_).mergeFrom(value).buildPartial();
} else {
status_ = value;
}
onChanged();
} else {
statusBuilder_.mergeFrom(value);
}
return this;
}
/**
* .milvus.proto.common.Status status = 1;
*/
public Builder clearStatus() {
if (statusBuilder_ == null) {
status_ = null;
onChanged();
} else {
status_ = null;
statusBuilder_ = null;
}
return this;
}
/**
* .milvus.proto.common.Status status = 1;
*/
public io.milvus.grpc.Status.Builder getStatusBuilder() {
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
* .milvus.proto.common.Status status = 1;
*/
public io.milvus.grpc.StatusOrBuilder getStatusOrBuilder() {
if (statusBuilder_ != null) {
return statusBuilder_.getMessageOrBuilder();
} else {
return status_ == null ?
io.milvus.grpc.Status.getDefaultInstance() : status_;
}
}
/**
* .milvus.proto.common.Status status = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.Status, io.milvus.grpc.Status.Builder, io.milvus.grpc.StatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.Status, io.milvus.grpc.Status.Builder, io.milvus.grpc.StatusOrBuilder>(
getStatus(),
getParentForChildren(),
isClean());
status_ = null;
}
return statusBuilder_;
}
private io.milvus.grpc.IDs iDs_;
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.IDs, io.milvus.grpc.IDs.Builder, io.milvus.grpc.IDsOrBuilder> iDsBuilder_;
/**
*
* required for insert, delete
*
*
* .milvus.proto.schema.IDs IDs = 2;
* @return Whether the iDs field is set.
*/
public boolean hasIDs() {
return iDsBuilder_ != null || iDs_ != null;
}
/**
*
* required for insert, delete
*
*
* .milvus.proto.schema.IDs IDs = 2;
* @return The iDs.
*/
public io.milvus.grpc.IDs getIDs() {
if (iDsBuilder_ == null) {
return iDs_ == null ? io.milvus.grpc.IDs.getDefaultInstance() : iDs_;
} else {
return iDsBuilder_.getMessage();
}
}
/**
*
* required for insert, delete
*
*
* .milvus.proto.schema.IDs IDs = 2;
*/
public Builder setIDs(io.milvus.grpc.IDs value) {
if (iDsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
iDs_ = value;
onChanged();
} else {
iDsBuilder_.setMessage(value);
}
return this;
}
/**
*
* required for insert, delete
*
*
* .milvus.proto.schema.IDs IDs = 2;
*/
public Builder setIDs(
io.milvus.grpc.IDs.Builder builderForValue) {
if (iDsBuilder_ == null) {
iDs_ = builderForValue.build();
onChanged();
} else {
iDsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* required for insert, delete
*
*
* .milvus.proto.schema.IDs IDs = 2;
*/
public Builder mergeIDs(io.milvus.grpc.IDs value) {
if (iDsBuilder_ == null) {
if (iDs_ != null) {
iDs_ =
io.milvus.grpc.IDs.newBuilder(iDs_).mergeFrom(value).buildPartial();
} else {
iDs_ = value;
}
onChanged();
} else {
iDsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* required for insert, delete
*
*
* .milvus.proto.schema.IDs IDs = 2;
*/
public Builder clearIDs() {
if (iDsBuilder_ == null) {
iDs_ = null;
onChanged();
} else {
iDs_ = null;
iDsBuilder_ = null;
}
return this;
}
/**
*
* required for insert, delete
*
*
* .milvus.proto.schema.IDs IDs = 2;
*/
public io.milvus.grpc.IDs.Builder getIDsBuilder() {
onChanged();
return getIDsFieldBuilder().getBuilder();
}
/**
*
* required for insert, delete
*
*
* .milvus.proto.schema.IDs IDs = 2;
*/
public io.milvus.grpc.IDsOrBuilder getIDsOrBuilder() {
if (iDsBuilder_ != null) {
return iDsBuilder_.getMessageOrBuilder();
} else {
return iDs_ == null ?
io.milvus.grpc.IDs.getDefaultInstance() : iDs_;
}
}
/**
*
* required for insert, delete
*
*
* .milvus.proto.schema.IDs IDs = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.IDs, io.milvus.grpc.IDs.Builder, io.milvus.grpc.IDsOrBuilder>
getIDsFieldBuilder() {
if (iDsBuilder_ == null) {
iDsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.IDs, io.milvus.grpc.IDs.Builder, io.milvus.grpc.IDsOrBuilder>(
getIDs(),
getParentForChildren(),
isClean());
iDs_ = null;
}
return iDsBuilder_;
}
private com.google.protobuf.Internal.IntList succIndex_ = emptyIntList();
private void ensureSuccIndexIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
succIndex_ = mutableCopy(succIndex_);
bitField0_ |= 0x00000001;
}
}
/**
*
* error indexes indicate
*
*
* repeated uint32 succ_index = 3;
* @return A list containing the succIndex.
*/
public java.util.List
getSuccIndexList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(succIndex_) : succIndex_;
}
/**
*
* error indexes indicate
*
*
* repeated uint32 succ_index = 3;
* @return The count of succIndex.
*/
public int getSuccIndexCount() {
return succIndex_.size();
}
/**
*
* error indexes indicate
*
*
* repeated uint32 succ_index = 3;
* @param index The index of the element to return.
* @return The succIndex at the given index.
*/
public int getSuccIndex(int index) {
return succIndex_.getInt(index);
}
/**
*
* error indexes indicate
*
*
* repeated uint32 succ_index = 3;
* @param index The index to set the value at.
* @param value The succIndex to set.
* @return This builder for chaining.
*/
public Builder setSuccIndex(
int index, int value) {
ensureSuccIndexIsMutable();
succIndex_.setInt(index, value);
onChanged();
return this;
}
/**
*
* error indexes indicate
*
*
* repeated uint32 succ_index = 3;
* @param value The succIndex to add.
* @return This builder for chaining.
*/
public Builder addSuccIndex(int value) {
ensureSuccIndexIsMutable();
succIndex_.addInt(value);
onChanged();
return this;
}
/**
*
* error indexes indicate
*
*
* repeated uint32 succ_index = 3;
* @param values The succIndex to add.
* @return This builder for chaining.
*/
public Builder addAllSuccIndex(
java.lang.Iterable extends java.lang.Integer> values) {
ensureSuccIndexIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, succIndex_);
onChanged();
return this;
}
/**
*
* error indexes indicate
*
*
* repeated uint32 succ_index = 3;
* @return This builder for chaining.
*/
public Builder clearSuccIndex() {
succIndex_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList errIndex_ = emptyIntList();
private void ensureErrIndexIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
errIndex_ = mutableCopy(errIndex_);
bitField0_ |= 0x00000002;
}
}
/**
*
* error indexes indicate
*
*
* repeated uint32 err_index = 4;
* @return A list containing the errIndex.
*/
public java.util.List
getErrIndexList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(errIndex_) : errIndex_;
}
/**
*
* error indexes indicate
*
*
* repeated uint32 err_index = 4;
* @return The count of errIndex.
*/
public int getErrIndexCount() {
return errIndex_.size();
}
/**
*
* error indexes indicate
*
*
* repeated uint32 err_index = 4;
* @param index The index of the element to return.
* @return The errIndex at the given index.
*/
public int getErrIndex(int index) {
return errIndex_.getInt(index);
}
/**
*
* error indexes indicate
*
*
* repeated uint32 err_index = 4;
* @param index The index to set the value at.
* @param value The errIndex to set.
* @return This builder for chaining.
*/
public Builder setErrIndex(
int index, int value) {
ensureErrIndexIsMutable();
errIndex_.setInt(index, value);
onChanged();
return this;
}
/**
*
* error indexes indicate
*
*
* repeated uint32 err_index = 4;
* @param value The errIndex to add.
* @return This builder for chaining.
*/
public Builder addErrIndex(int value) {
ensureErrIndexIsMutable();
errIndex_.addInt(value);
onChanged();
return this;
}
/**
*
* error indexes indicate
*
*
* repeated uint32 err_index = 4;
* @param values The errIndex to add.
* @return This builder for chaining.
*/
public Builder addAllErrIndex(
java.lang.Iterable extends java.lang.Integer> values) {
ensureErrIndexIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, errIndex_);
onChanged();
return this;
}
/**
*
* error indexes indicate
*
*
* repeated uint32 err_index = 4;
* @return This builder for chaining.
*/
public Builder clearErrIndex() {
errIndex_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private boolean acknowledged_ ;
/**
* bool acknowledged = 5;
* @return The acknowledged.
*/
@java.lang.Override
public boolean getAcknowledged() {
return acknowledged_;
}
/**
* bool acknowledged = 5;
* @param value The acknowledged to set.
* @return This builder for chaining.
*/
public Builder setAcknowledged(boolean value) {
acknowledged_ = value;
onChanged();
return this;
}
/**
* bool acknowledged = 5;
* @return This builder for chaining.
*/
public Builder clearAcknowledged() {
acknowledged_ = false;
onChanged();
return this;
}
private long insertCnt_ ;
/**
* int64 insert_cnt = 6;
* @return The insertCnt.
*/
@java.lang.Override
public long getInsertCnt() {
return insertCnt_;
}
/**
* int64 insert_cnt = 6;
* @param value The insertCnt to set.
* @return This builder for chaining.
*/
public Builder setInsertCnt(long value) {
insertCnt_ = value;
onChanged();
return this;
}
/**
* int64 insert_cnt = 6;
* @return This builder for chaining.
*/
public Builder clearInsertCnt() {
insertCnt_ = 0L;
onChanged();
return this;
}
private long deleteCnt_ ;
/**
* int64 delete_cnt = 7;
* @return The deleteCnt.
*/
@java.lang.Override
public long getDeleteCnt() {
return deleteCnt_;
}
/**
* int64 delete_cnt = 7;
* @param value The deleteCnt to set.
* @return This builder for chaining.
*/
public Builder setDeleteCnt(long value) {
deleteCnt_ = value;
onChanged();
return this;
}
/**
* int64 delete_cnt = 7;
* @return This builder for chaining.
*/
public Builder clearDeleteCnt() {
deleteCnt_ = 0L;
onChanged();
return this;
}
private long upsertCnt_ ;
/**
* int64 upsert_cnt = 8;
* @return The upsertCnt.
*/
@java.lang.Override
public long getUpsertCnt() {
return upsertCnt_;
}
/**
* int64 upsert_cnt = 8;
* @param value The upsertCnt to set.
* @return This builder for chaining.
*/
public Builder setUpsertCnt(long value) {
upsertCnt_ = value;
onChanged();
return this;
}
/**
* int64 upsert_cnt = 8;
* @return This builder for chaining.
*/
public Builder clearUpsertCnt() {
upsertCnt_ = 0L;
onChanged();
return this;
}
private long timestamp_ ;
/**
* uint64 timestamp = 9;
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return timestamp_;
}
/**
* uint64 timestamp = 9;
* @param value The timestamp to set.
* @return This builder for chaining.
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
onChanged();
return this;
}
/**
* uint64 timestamp = 9;
* @return This builder for chaining.
*/
public Builder clearTimestamp() {
timestamp_ = 0L;
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.MutationResult)
}
// @@protoc_insertion_point(class_scope:milvus.proto.milvus.MutationResult)
private static final io.milvus.grpc.MutationResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.milvus.grpc.MutationResult();
}
public static io.milvus.grpc.MutationResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MutationResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MutationResult(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.MutationResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy