io.milvus.grpc.VectorIDs 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 database.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: milvus.proto
package io.milvus.grpc;
/**
* Protobuf type {@code milvus.proto.milvus.VectorIDs}
*/
public final class VectorIDs extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:milvus.proto.milvus.VectorIDs)
VectorIDsOrBuilder {
private static final long serialVersionUID = 0L;
// Use VectorIDs.newBuilder() to construct.
private VectorIDs(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VectorIDs() {
collectionName_ = "";
fieldName_ = "";
partitionNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new VectorIDs();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_VectorIDs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_VectorIDs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.VectorIDs.class, io.milvus.grpc.VectorIDs.Builder.class);
}
private int bitField0_;
public static final int COLLECTION_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object collectionName_ = "";
/**
* string collection_name = 1;
* @return The collectionName.
*/
@java.lang.Override
public java.lang.String getCollectionName() {
java.lang.Object ref = collectionName_;
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();
collectionName_ = s;
return s;
}
}
/**
* string collection_name = 1;
* @return The bytes for collectionName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCollectionNameBytes() {
java.lang.Object ref = collectionName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
collectionName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FIELD_NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object fieldName_ = "";
/**
* string field_name = 2;
* @return The fieldName.
*/
@java.lang.Override
public java.lang.String getFieldName() {
java.lang.Object ref = fieldName_;
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();
fieldName_ = s;
return s;
}
}
/**
* string field_name = 2;
* @return The bytes for fieldName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFieldNameBytes() {
java.lang.Object ref = fieldName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fieldName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ID_ARRAY_FIELD_NUMBER = 3;
private io.milvus.grpc.IDs idArray_;
/**
* .milvus.proto.schema.IDs id_array = 3;
* @return Whether the idArray field is set.
*/
@java.lang.Override
public boolean hasIdArray() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .milvus.proto.schema.IDs id_array = 3;
* @return The idArray.
*/
@java.lang.Override
public io.milvus.grpc.IDs getIdArray() {
return idArray_ == null ? io.milvus.grpc.IDs.getDefaultInstance() : idArray_;
}
/**
* .milvus.proto.schema.IDs id_array = 3;
*/
@java.lang.Override
public io.milvus.grpc.IDsOrBuilder getIdArrayOrBuilder() {
return idArray_ == null ? io.milvus.grpc.IDs.getDefaultInstance() : idArray_;
}
public static final int PARTITION_NAMES_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList partitionNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string partition_names = 4;
* @return A list containing the partitionNames.
*/
public com.google.protobuf.ProtocolStringList
getPartitionNamesList() {
return partitionNames_;
}
/**
* repeated string partition_names = 4;
* @return The count of partitionNames.
*/
public int getPartitionNamesCount() {
return partitionNames_.size();
}
/**
* repeated string partition_names = 4;
* @param index The index of the element to return.
* @return The partitionNames at the given index.
*/
public java.lang.String getPartitionNames(int index) {
return partitionNames_.get(index);
}
/**
* repeated string partition_names = 4;
* @param index The index of the value to return.
* @return The bytes of the partitionNames at the given index.
*/
public com.google.protobuf.ByteString
getPartitionNamesBytes(int index) {
return partitionNames_.getByteString(index);
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectionName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, collectionName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getIdArray());
}
for (int i = 0; i < partitionNames_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, partitionNames_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectionName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, collectionName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getIdArray());
}
{
int dataSize = 0;
for (int i = 0; i < partitionNames_.size(); i++) {
dataSize += computeStringSizeNoTag(partitionNames_.getRaw(i));
}
size += dataSize;
size += 1 * getPartitionNamesList().size();
}
size += getUnknownFields().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.VectorIDs)) {
return super.equals(obj);
}
io.milvus.grpc.VectorIDs other = (io.milvus.grpc.VectorIDs) obj;
if (!getCollectionName()
.equals(other.getCollectionName())) return false;
if (!getFieldName()
.equals(other.getFieldName())) return false;
if (hasIdArray() != other.hasIdArray()) return false;
if (hasIdArray()) {
if (!getIdArray()
.equals(other.getIdArray())) return false;
}
if (!getPartitionNamesList()
.equals(other.getPartitionNamesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + COLLECTION_NAME_FIELD_NUMBER;
hash = (53 * hash) + getCollectionName().hashCode();
hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFieldName().hashCode();
if (hasIdArray()) {
hash = (37 * hash) + ID_ARRAY_FIELD_NUMBER;
hash = (53 * hash) + getIdArray().hashCode();
}
if (getPartitionNamesCount() > 0) {
hash = (37 * hash) + PARTITION_NAMES_FIELD_NUMBER;
hash = (53 * hash) + getPartitionNamesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.milvus.grpc.VectorIDs parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.VectorIDs 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.VectorIDs parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.VectorIDs 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.VectorIDs parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.VectorIDs parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.VectorIDs parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.VectorIDs 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.VectorIDs parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.milvus.grpc.VectorIDs 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.VectorIDs parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.VectorIDs 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.VectorIDs 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.VectorIDs}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:milvus.proto.milvus.VectorIDs)
io.milvus.grpc.VectorIDsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_VectorIDs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_VectorIDs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.VectorIDs.class, io.milvus.grpc.VectorIDs.Builder.class);
}
// Construct using io.milvus.grpc.VectorIDs.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIdArrayFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
collectionName_ = "";
fieldName_ = "";
idArray_ = null;
if (idArrayBuilder_ != null) {
idArrayBuilder_.dispose();
idArrayBuilder_ = null;
}
partitionNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_VectorIDs_descriptor;
}
@java.lang.Override
public io.milvus.grpc.VectorIDs getDefaultInstanceForType() {
return io.milvus.grpc.VectorIDs.getDefaultInstance();
}
@java.lang.Override
public io.milvus.grpc.VectorIDs build() {
io.milvus.grpc.VectorIDs result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.milvus.grpc.VectorIDs buildPartial() {
io.milvus.grpc.VectorIDs result = new io.milvus.grpc.VectorIDs(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.milvus.grpc.VectorIDs result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.collectionName_ = collectionName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.fieldName_ = fieldName_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.idArray_ = idArrayBuilder_ == null
? idArray_
: idArrayBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
partitionNames_.makeImmutable();
result.partitionNames_ = partitionNames_;
}
result.bitField0_ |= to_bitField0_;
}
@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.VectorIDs) {
return mergeFrom((io.milvus.grpc.VectorIDs)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.milvus.grpc.VectorIDs other) {
if (other == io.milvus.grpc.VectorIDs.getDefaultInstance()) return this;
if (!other.getCollectionName().isEmpty()) {
collectionName_ = other.collectionName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getFieldName().isEmpty()) {
fieldName_ = other.fieldName_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasIdArray()) {
mergeIdArray(other.getIdArray());
}
if (!other.partitionNames_.isEmpty()) {
if (partitionNames_.isEmpty()) {
partitionNames_ = other.partitionNames_;
bitField0_ |= 0x00000008;
} else {
ensurePartitionNamesIsMutable();
partitionNames_.addAll(other.partitionNames_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
collectionName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
fieldName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getIdArrayFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
java.lang.String s = input.readStringRequireUtf8();
ensurePartitionNamesIsMutable();
partitionNames_.add(s);
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object collectionName_ = "";
/**
* string collection_name = 1;
* @return The collectionName.
*/
public java.lang.String getCollectionName() {
java.lang.Object ref = collectionName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
collectionName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string collection_name = 1;
* @return The bytes for collectionName.
*/
public com.google.protobuf.ByteString
getCollectionNameBytes() {
java.lang.Object ref = collectionName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
collectionName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string collection_name = 1;
* @param value The collectionName to set.
* @return This builder for chaining.
*/
public Builder setCollectionName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
collectionName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string collection_name = 1;
* @return This builder for chaining.
*/
public Builder clearCollectionName() {
collectionName_ = getDefaultInstance().getCollectionName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string collection_name = 1;
* @param value The bytes for collectionName to set.
* @return This builder for chaining.
*/
public Builder setCollectionNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
collectionName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object fieldName_ = "";
/**
* string field_name = 2;
* @return The fieldName.
*/
public java.lang.String getFieldName() {
java.lang.Object ref = fieldName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fieldName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string field_name = 2;
* @return The bytes for fieldName.
*/
public com.google.protobuf.ByteString
getFieldNameBytes() {
java.lang.Object ref = fieldName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fieldName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string field_name = 2;
* @param value The fieldName to set.
* @return This builder for chaining.
*/
public Builder setFieldName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
fieldName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string field_name = 2;
* @return This builder for chaining.
*/
public Builder clearFieldName() {
fieldName_ = getDefaultInstance().getFieldName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string field_name = 2;
* @param value The bytes for fieldName to set.
* @return This builder for chaining.
*/
public Builder setFieldNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
fieldName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private io.milvus.grpc.IDs idArray_;
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.IDs, io.milvus.grpc.IDs.Builder, io.milvus.grpc.IDsOrBuilder> idArrayBuilder_;
/**
* .milvus.proto.schema.IDs id_array = 3;
* @return Whether the idArray field is set.
*/
public boolean hasIdArray() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .milvus.proto.schema.IDs id_array = 3;
* @return The idArray.
*/
public io.milvus.grpc.IDs getIdArray() {
if (idArrayBuilder_ == null) {
return idArray_ == null ? io.milvus.grpc.IDs.getDefaultInstance() : idArray_;
} else {
return idArrayBuilder_.getMessage();
}
}
/**
* .milvus.proto.schema.IDs id_array = 3;
*/
public Builder setIdArray(io.milvus.grpc.IDs value) {
if (idArrayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
idArray_ = value;
} else {
idArrayBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .milvus.proto.schema.IDs id_array = 3;
*/
public Builder setIdArray(
io.milvus.grpc.IDs.Builder builderForValue) {
if (idArrayBuilder_ == null) {
idArray_ = builderForValue.build();
} else {
idArrayBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .milvus.proto.schema.IDs id_array = 3;
*/
public Builder mergeIdArray(io.milvus.grpc.IDs value) {
if (idArrayBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
idArray_ != null &&
idArray_ != io.milvus.grpc.IDs.getDefaultInstance()) {
getIdArrayBuilder().mergeFrom(value);
} else {
idArray_ = value;
}
} else {
idArrayBuilder_.mergeFrom(value);
}
if (idArray_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .milvus.proto.schema.IDs id_array = 3;
*/
public Builder clearIdArray() {
bitField0_ = (bitField0_ & ~0x00000004);
idArray_ = null;
if (idArrayBuilder_ != null) {
idArrayBuilder_.dispose();
idArrayBuilder_ = null;
}
onChanged();
return this;
}
/**
* .milvus.proto.schema.IDs id_array = 3;
*/
public io.milvus.grpc.IDs.Builder getIdArrayBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getIdArrayFieldBuilder().getBuilder();
}
/**
* .milvus.proto.schema.IDs id_array = 3;
*/
public io.milvus.grpc.IDsOrBuilder getIdArrayOrBuilder() {
if (idArrayBuilder_ != null) {
return idArrayBuilder_.getMessageOrBuilder();
} else {
return idArray_ == null ?
io.milvus.grpc.IDs.getDefaultInstance() : idArray_;
}
}
/**
* .milvus.proto.schema.IDs id_array = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.IDs, io.milvus.grpc.IDs.Builder, io.milvus.grpc.IDsOrBuilder>
getIdArrayFieldBuilder() {
if (idArrayBuilder_ == null) {
idArrayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.IDs, io.milvus.grpc.IDs.Builder, io.milvus.grpc.IDsOrBuilder>(
getIdArray(),
getParentForChildren(),
isClean());
idArray_ = null;
}
return idArrayBuilder_;
}
private com.google.protobuf.LazyStringArrayList partitionNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePartitionNamesIsMutable() {
if (!partitionNames_.isModifiable()) {
partitionNames_ = new com.google.protobuf.LazyStringArrayList(partitionNames_);
}
bitField0_ |= 0x00000008;
}
/**
* repeated string partition_names = 4;
* @return A list containing the partitionNames.
*/
public com.google.protobuf.ProtocolStringList
getPartitionNamesList() {
partitionNames_.makeImmutable();
return partitionNames_;
}
/**
* repeated string partition_names = 4;
* @return The count of partitionNames.
*/
public int getPartitionNamesCount() {
return partitionNames_.size();
}
/**
* repeated string partition_names = 4;
* @param index The index of the element to return.
* @return The partitionNames at the given index.
*/
public java.lang.String getPartitionNames(int index) {
return partitionNames_.get(index);
}
/**
* repeated string partition_names = 4;
* @param index The index of the value to return.
* @return The bytes of the partitionNames at the given index.
*/
public com.google.protobuf.ByteString
getPartitionNamesBytes(int index) {
return partitionNames_.getByteString(index);
}
/**
* repeated string partition_names = 4;
* @param index The index to set the value at.
* @param value The partitionNames to set.
* @return This builder for chaining.
*/
public Builder setPartitionNames(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePartitionNamesIsMutable();
partitionNames_.set(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated string partition_names = 4;
* @param value The partitionNames to add.
* @return This builder for chaining.
*/
public Builder addPartitionNames(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePartitionNamesIsMutable();
partitionNames_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated string partition_names = 4;
* @param values The partitionNames to add.
* @return This builder for chaining.
*/
public Builder addAllPartitionNames(
java.lang.Iterable values) {
ensurePartitionNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, partitionNames_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated string partition_names = 4;
* @return This builder for chaining.
*/
public Builder clearPartitionNames() {
partitionNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);;
onChanged();
return this;
}
/**
* repeated string partition_names = 4;
* @param value The bytes of the partitionNames to add.
* @return This builder for chaining.
*/
public Builder addPartitionNamesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensurePartitionNamesIsMutable();
partitionNames_.add(value);
bitField0_ |= 0x00000008;
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.VectorIDs)
}
// @@protoc_insertion_point(class_scope:milvus.proto.milvus.VectorIDs)
private static final io.milvus.grpc.VectorIDs DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.milvus.grpc.VectorIDs();
}
public static io.milvus.grpc.VectorIDs getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VectorIDs parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.VectorIDs getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}