io.milvus.grpc.VectorsArray 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.VectorsArray}
*/
public final class VectorsArray extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:milvus.proto.milvus.VectorsArray)
VectorsArrayOrBuilder {
private static final long serialVersionUID = 0L;
// Use VectorsArray.newBuilder() to construct.
private VectorsArray(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VectorsArray() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new VectorsArray();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private VectorsArray(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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.VectorIDs.Builder subBuilder = null;
if (arrayCase_ == 1) {
subBuilder = ((io.milvus.grpc.VectorIDs) array_).toBuilder();
}
array_ =
input.readMessage(io.milvus.grpc.VectorIDs.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.milvus.grpc.VectorIDs) array_);
array_ = subBuilder.buildPartial();
}
arrayCase_ = 1;
break;
}
case 18: {
io.milvus.grpc.VectorField.Builder subBuilder = null;
if (arrayCase_ == 2) {
subBuilder = ((io.milvus.grpc.VectorField) array_).toBuilder();
}
array_ =
input.readMessage(io.milvus.grpc.VectorField.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.milvus.grpc.VectorField) array_);
array_ = subBuilder.buildPartial();
}
arrayCase_ = 2;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_VectorsArray_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_VectorsArray_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.VectorsArray.class, io.milvus.grpc.VectorsArray.Builder.class);
}
private int arrayCase_ = 0;
private java.lang.Object array_;
public enum ArrayCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
ID_ARRAY(1),
DATA_ARRAY(2),
ARRAY_NOT_SET(0);
private final int value;
private ArrayCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ArrayCase valueOf(int value) {
return forNumber(value);
}
public static ArrayCase forNumber(int value) {
switch (value) {
case 1: return ID_ARRAY;
case 2: return DATA_ARRAY;
case 0: return ARRAY_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ArrayCase
getArrayCase() {
return ArrayCase.forNumber(
arrayCase_);
}
public static final int ID_ARRAY_FIELD_NUMBER = 1;
/**
*
* vector ids
*
*
* .milvus.proto.milvus.VectorIDs id_array = 1;
* @return Whether the idArray field is set.
*/
@java.lang.Override
public boolean hasIdArray() {
return arrayCase_ == 1;
}
/**
*
* vector ids
*
*
* .milvus.proto.milvus.VectorIDs id_array = 1;
* @return The idArray.
*/
@java.lang.Override
public io.milvus.grpc.VectorIDs getIdArray() {
if (arrayCase_ == 1) {
return (io.milvus.grpc.VectorIDs) array_;
}
return io.milvus.grpc.VectorIDs.getDefaultInstance();
}
/**
*
* vector ids
*
*
* .milvus.proto.milvus.VectorIDs id_array = 1;
*/
@java.lang.Override
public io.milvus.grpc.VectorIDsOrBuilder getIdArrayOrBuilder() {
if (arrayCase_ == 1) {
return (io.milvus.grpc.VectorIDs) array_;
}
return io.milvus.grpc.VectorIDs.getDefaultInstance();
}
public static final int DATA_ARRAY_FIELD_NUMBER = 2;
/**
*
* vectors data
*
*
* .milvus.proto.schema.VectorField data_array = 2;
* @return Whether the dataArray field is set.
*/
@java.lang.Override
public boolean hasDataArray() {
return arrayCase_ == 2;
}
/**
*
* vectors data
*
*
* .milvus.proto.schema.VectorField data_array = 2;
* @return The dataArray.
*/
@java.lang.Override
public io.milvus.grpc.VectorField getDataArray() {
if (arrayCase_ == 2) {
return (io.milvus.grpc.VectorField) array_;
}
return io.milvus.grpc.VectorField.getDefaultInstance();
}
/**
*
* vectors data
*
*
* .milvus.proto.schema.VectorField data_array = 2;
*/
@java.lang.Override
public io.milvus.grpc.VectorFieldOrBuilder getDataArrayOrBuilder() {
if (arrayCase_ == 2) {
return (io.milvus.grpc.VectorField) array_;
}
return io.milvus.grpc.VectorField.getDefaultInstance();
}
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 {
if (arrayCase_ == 1) {
output.writeMessage(1, (io.milvus.grpc.VectorIDs) array_);
}
if (arrayCase_ == 2) {
output.writeMessage(2, (io.milvus.grpc.VectorField) array_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (arrayCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.milvus.grpc.VectorIDs) array_);
}
if (arrayCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.milvus.grpc.VectorField) array_);
}
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.VectorsArray)) {
return super.equals(obj);
}
io.milvus.grpc.VectorsArray other = (io.milvus.grpc.VectorsArray) obj;
if (!getArrayCase().equals(other.getArrayCase())) return false;
switch (arrayCase_) {
case 1:
if (!getIdArray()
.equals(other.getIdArray())) return false;
break;
case 2:
if (!getDataArray()
.equals(other.getDataArray())) return false;
break;
case 0:
default:
}
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();
switch (arrayCase_) {
case 1:
hash = (37 * hash) + ID_ARRAY_FIELD_NUMBER;
hash = (53 * hash) + getIdArray().hashCode();
break;
case 2:
hash = (37 * hash) + DATA_ARRAY_FIELD_NUMBER;
hash = (53 * hash) + getDataArray().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.milvus.grpc.VectorsArray parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.VectorsArray 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.VectorsArray parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.VectorsArray 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.VectorsArray parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.VectorsArray parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.VectorsArray parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.VectorsArray 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.VectorsArray parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.milvus.grpc.VectorsArray 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.VectorsArray parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.VectorsArray 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.VectorsArray 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.VectorsArray}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:milvus.proto.milvus.VectorsArray)
io.milvus.grpc.VectorsArrayOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_VectorsArray_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_VectorsArray_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.VectorsArray.class, io.milvus.grpc.VectorsArray.Builder.class);
}
// Construct using io.milvus.grpc.VectorsArray.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();
arrayCase_ = 0;
array_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_VectorsArray_descriptor;
}
@java.lang.Override
public io.milvus.grpc.VectorsArray getDefaultInstanceForType() {
return io.milvus.grpc.VectorsArray.getDefaultInstance();
}
@java.lang.Override
public io.milvus.grpc.VectorsArray build() {
io.milvus.grpc.VectorsArray result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.milvus.grpc.VectorsArray buildPartial() {
io.milvus.grpc.VectorsArray result = new io.milvus.grpc.VectorsArray(this);
if (arrayCase_ == 1) {
if (idArrayBuilder_ == null) {
result.array_ = array_;
} else {
result.array_ = idArrayBuilder_.build();
}
}
if (arrayCase_ == 2) {
if (dataArrayBuilder_ == null) {
result.array_ = array_;
} else {
result.array_ = dataArrayBuilder_.build();
}
}
result.arrayCase_ = arrayCase_;
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.VectorsArray) {
return mergeFrom((io.milvus.grpc.VectorsArray)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.milvus.grpc.VectorsArray other) {
if (other == io.milvus.grpc.VectorsArray.getDefaultInstance()) return this;
switch (other.getArrayCase()) {
case ID_ARRAY: {
mergeIdArray(other.getIdArray());
break;
}
case DATA_ARRAY: {
mergeDataArray(other.getDataArray());
break;
}
case ARRAY_NOT_SET: {
break;
}
}
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.VectorsArray parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.milvus.grpc.VectorsArray) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int arrayCase_ = 0;
private java.lang.Object array_;
public ArrayCase
getArrayCase() {
return ArrayCase.forNumber(
arrayCase_);
}
public Builder clearArray() {
arrayCase_ = 0;
array_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.VectorIDs, io.milvus.grpc.VectorIDs.Builder, io.milvus.grpc.VectorIDsOrBuilder> idArrayBuilder_;
/**
*
* vector ids
*
*
* .milvus.proto.milvus.VectorIDs id_array = 1;
* @return Whether the idArray field is set.
*/
@java.lang.Override
public boolean hasIdArray() {
return arrayCase_ == 1;
}
/**
*
* vector ids
*
*
* .milvus.proto.milvus.VectorIDs id_array = 1;
* @return The idArray.
*/
@java.lang.Override
public io.milvus.grpc.VectorIDs getIdArray() {
if (idArrayBuilder_ == null) {
if (arrayCase_ == 1) {
return (io.milvus.grpc.VectorIDs) array_;
}
return io.milvus.grpc.VectorIDs.getDefaultInstance();
} else {
if (arrayCase_ == 1) {
return idArrayBuilder_.getMessage();
}
return io.milvus.grpc.VectorIDs.getDefaultInstance();
}
}
/**
*
* vector ids
*
*
* .milvus.proto.milvus.VectorIDs id_array = 1;
*/
public Builder setIdArray(io.milvus.grpc.VectorIDs value) {
if (idArrayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
array_ = value;
onChanged();
} else {
idArrayBuilder_.setMessage(value);
}
arrayCase_ = 1;
return this;
}
/**
*
* vector ids
*
*
* .milvus.proto.milvus.VectorIDs id_array = 1;
*/
public Builder setIdArray(
io.milvus.grpc.VectorIDs.Builder builderForValue) {
if (idArrayBuilder_ == null) {
array_ = builderForValue.build();
onChanged();
} else {
idArrayBuilder_.setMessage(builderForValue.build());
}
arrayCase_ = 1;
return this;
}
/**
*
* vector ids
*
*
* .milvus.proto.milvus.VectorIDs id_array = 1;
*/
public Builder mergeIdArray(io.milvus.grpc.VectorIDs value) {
if (idArrayBuilder_ == null) {
if (arrayCase_ == 1 &&
array_ != io.milvus.grpc.VectorIDs.getDefaultInstance()) {
array_ = io.milvus.grpc.VectorIDs.newBuilder((io.milvus.grpc.VectorIDs) array_)
.mergeFrom(value).buildPartial();
} else {
array_ = value;
}
onChanged();
} else {
if (arrayCase_ == 1) {
idArrayBuilder_.mergeFrom(value);
}
idArrayBuilder_.setMessage(value);
}
arrayCase_ = 1;
return this;
}
/**
*
* vector ids
*
*
* .milvus.proto.milvus.VectorIDs id_array = 1;
*/
public Builder clearIdArray() {
if (idArrayBuilder_ == null) {
if (arrayCase_ == 1) {
arrayCase_ = 0;
array_ = null;
onChanged();
}
} else {
if (arrayCase_ == 1) {
arrayCase_ = 0;
array_ = null;
}
idArrayBuilder_.clear();
}
return this;
}
/**
*
* vector ids
*
*
* .milvus.proto.milvus.VectorIDs id_array = 1;
*/
public io.milvus.grpc.VectorIDs.Builder getIdArrayBuilder() {
return getIdArrayFieldBuilder().getBuilder();
}
/**
*
* vector ids
*
*
* .milvus.proto.milvus.VectorIDs id_array = 1;
*/
@java.lang.Override
public io.milvus.grpc.VectorIDsOrBuilder getIdArrayOrBuilder() {
if ((arrayCase_ == 1) && (idArrayBuilder_ != null)) {
return idArrayBuilder_.getMessageOrBuilder();
} else {
if (arrayCase_ == 1) {
return (io.milvus.grpc.VectorIDs) array_;
}
return io.milvus.grpc.VectorIDs.getDefaultInstance();
}
}
/**
*
* vector ids
*
*
* .milvus.proto.milvus.VectorIDs id_array = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.VectorIDs, io.milvus.grpc.VectorIDs.Builder, io.milvus.grpc.VectorIDsOrBuilder>
getIdArrayFieldBuilder() {
if (idArrayBuilder_ == null) {
if (!(arrayCase_ == 1)) {
array_ = io.milvus.grpc.VectorIDs.getDefaultInstance();
}
idArrayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.VectorIDs, io.milvus.grpc.VectorIDs.Builder, io.milvus.grpc.VectorIDsOrBuilder>(
(io.milvus.grpc.VectorIDs) array_,
getParentForChildren(),
isClean());
array_ = null;
}
arrayCase_ = 1;
onChanged();;
return idArrayBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.VectorField, io.milvus.grpc.VectorField.Builder, io.milvus.grpc.VectorFieldOrBuilder> dataArrayBuilder_;
/**
*
* vectors data
*
*
* .milvus.proto.schema.VectorField data_array = 2;
* @return Whether the dataArray field is set.
*/
@java.lang.Override
public boolean hasDataArray() {
return arrayCase_ == 2;
}
/**
*
* vectors data
*
*
* .milvus.proto.schema.VectorField data_array = 2;
* @return The dataArray.
*/
@java.lang.Override
public io.milvus.grpc.VectorField getDataArray() {
if (dataArrayBuilder_ == null) {
if (arrayCase_ == 2) {
return (io.milvus.grpc.VectorField) array_;
}
return io.milvus.grpc.VectorField.getDefaultInstance();
} else {
if (arrayCase_ == 2) {
return dataArrayBuilder_.getMessage();
}
return io.milvus.grpc.VectorField.getDefaultInstance();
}
}
/**
*
* vectors data
*
*
* .milvus.proto.schema.VectorField data_array = 2;
*/
public Builder setDataArray(io.milvus.grpc.VectorField value) {
if (dataArrayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
array_ = value;
onChanged();
} else {
dataArrayBuilder_.setMessage(value);
}
arrayCase_ = 2;
return this;
}
/**
*
* vectors data
*
*
* .milvus.proto.schema.VectorField data_array = 2;
*/
public Builder setDataArray(
io.milvus.grpc.VectorField.Builder builderForValue) {
if (dataArrayBuilder_ == null) {
array_ = builderForValue.build();
onChanged();
} else {
dataArrayBuilder_.setMessage(builderForValue.build());
}
arrayCase_ = 2;
return this;
}
/**
*
* vectors data
*
*
* .milvus.proto.schema.VectorField data_array = 2;
*/
public Builder mergeDataArray(io.milvus.grpc.VectorField value) {
if (dataArrayBuilder_ == null) {
if (arrayCase_ == 2 &&
array_ != io.milvus.grpc.VectorField.getDefaultInstance()) {
array_ = io.milvus.grpc.VectorField.newBuilder((io.milvus.grpc.VectorField) array_)
.mergeFrom(value).buildPartial();
} else {
array_ = value;
}
onChanged();
} else {
if (arrayCase_ == 2) {
dataArrayBuilder_.mergeFrom(value);
}
dataArrayBuilder_.setMessage(value);
}
arrayCase_ = 2;
return this;
}
/**
*
* vectors data
*
*
* .milvus.proto.schema.VectorField data_array = 2;
*/
public Builder clearDataArray() {
if (dataArrayBuilder_ == null) {
if (arrayCase_ == 2) {
arrayCase_ = 0;
array_ = null;
onChanged();
}
} else {
if (arrayCase_ == 2) {
arrayCase_ = 0;
array_ = null;
}
dataArrayBuilder_.clear();
}
return this;
}
/**
*
* vectors data
*
*
* .milvus.proto.schema.VectorField data_array = 2;
*/
public io.milvus.grpc.VectorField.Builder getDataArrayBuilder() {
return getDataArrayFieldBuilder().getBuilder();
}
/**
*
* vectors data
*
*
* .milvus.proto.schema.VectorField data_array = 2;
*/
@java.lang.Override
public io.milvus.grpc.VectorFieldOrBuilder getDataArrayOrBuilder() {
if ((arrayCase_ == 2) && (dataArrayBuilder_ != null)) {
return dataArrayBuilder_.getMessageOrBuilder();
} else {
if (arrayCase_ == 2) {
return (io.milvus.grpc.VectorField) array_;
}
return io.milvus.grpc.VectorField.getDefaultInstance();
}
}
/**
*
* vectors data
*
*
* .milvus.proto.schema.VectorField data_array = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.VectorField, io.milvus.grpc.VectorField.Builder, io.milvus.grpc.VectorFieldOrBuilder>
getDataArrayFieldBuilder() {
if (dataArrayBuilder_ == null) {
if (!(arrayCase_ == 2)) {
array_ = io.milvus.grpc.VectorField.getDefaultInstance();
}
dataArrayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.VectorField, io.milvus.grpc.VectorField.Builder, io.milvus.grpc.VectorFieldOrBuilder>(
(io.milvus.grpc.VectorField) array_,
getParentForChildren(),
isClean());
array_ = null;
}
arrayCase_ = 2;
onChanged();;
return dataArrayBuilder_;
}
@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.VectorsArray)
}
// @@protoc_insertion_point(class_scope:milvus.proto.milvus.VectorsArray)
private static final io.milvus.grpc.VectorsArray DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.milvus.grpc.VectorsArray();
}
public static io.milvus.grpc.VectorsArray getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VectorsArray parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new VectorsArray(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.VectorsArray getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}