com.aerospike.vector.client.proto.Vector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of avs-client-java Show documentation
Show all versions of avs-client-java Show documentation
This project includes the Java client for Aerospike Vector Search for high-performance data interactions.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: types.proto
// Protobuf Java Version: 3.25.5
package com.aerospike.vector.client.proto;
/**
*
* A vector.
*
*
* Protobuf type {@code aerospike.vector.Vector}
*/
public final class Vector extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:aerospike.vector.Vector)
VectorOrBuilder {
private static final long serialVersionUID = 0L;
// Use Vector.newBuilder() to construct.
private Vector(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Vector() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Vector();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_Vector_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_Vector_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aerospike.vector.client.proto.Vector.class, com.aerospike.vector.client.proto.Vector.Builder.class);
}
private int dataCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object data_;
public enum DataCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
BOOLDATA(1),
FLOATDATA(2),
DATA_NOT_SET(0);
private final int value;
private DataCase(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 DataCase valueOf(int value) {
return forNumber(value);
}
public static DataCase forNumber(int value) {
switch (value) {
case 1: return BOOLDATA;
case 2: return FLOATDATA;
case 0: return DATA_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public DataCase
getDataCase() {
return DataCase.forNumber(
dataCase_);
}
public static final int BOOLDATA_FIELD_NUMBER = 1;
/**
* .aerospike.vector.BoolData boolData = 1;
* @return Whether the boolData field is set.
*/
@java.lang.Override
public boolean hasBoolData() {
return dataCase_ == 1;
}
/**
* .aerospike.vector.BoolData boolData = 1;
* @return The boolData.
*/
@java.lang.Override
public com.aerospike.vector.client.proto.BoolData getBoolData() {
if (dataCase_ == 1) {
return (com.aerospike.vector.client.proto.BoolData) data_;
}
return com.aerospike.vector.client.proto.BoolData.getDefaultInstance();
}
/**
* .aerospike.vector.BoolData boolData = 1;
*/
@java.lang.Override
public com.aerospike.vector.client.proto.BoolDataOrBuilder getBoolDataOrBuilder() {
if (dataCase_ == 1) {
return (com.aerospike.vector.client.proto.BoolData) data_;
}
return com.aerospike.vector.client.proto.BoolData.getDefaultInstance();
}
public static final int FLOATDATA_FIELD_NUMBER = 2;
/**
* .aerospike.vector.FloatData floatData = 2;
* @return Whether the floatData field is set.
*/
@java.lang.Override
public boolean hasFloatData() {
return dataCase_ == 2;
}
/**
* .aerospike.vector.FloatData floatData = 2;
* @return The floatData.
*/
@java.lang.Override
public com.aerospike.vector.client.proto.FloatData getFloatData() {
if (dataCase_ == 2) {
return (com.aerospike.vector.client.proto.FloatData) data_;
}
return com.aerospike.vector.client.proto.FloatData.getDefaultInstance();
}
/**
* .aerospike.vector.FloatData floatData = 2;
*/
@java.lang.Override
public com.aerospike.vector.client.proto.FloatDataOrBuilder getFloatDataOrBuilder() {
if (dataCase_ == 2) {
return (com.aerospike.vector.client.proto.FloatData) data_;
}
return com.aerospike.vector.client.proto.FloatData.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 (dataCase_ == 1) {
output.writeMessage(1, (com.aerospike.vector.client.proto.BoolData) data_);
}
if (dataCase_ == 2) {
output.writeMessage(2, (com.aerospike.vector.client.proto.FloatData) data_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (dataCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.aerospike.vector.client.proto.BoolData) data_);
}
if (dataCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.aerospike.vector.client.proto.FloatData) data_);
}
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 com.aerospike.vector.client.proto.Vector)) {
return super.equals(obj);
}
com.aerospike.vector.client.proto.Vector other = (com.aerospike.vector.client.proto.Vector) obj;
if (!getDataCase().equals(other.getDataCase())) return false;
switch (dataCase_) {
case 1:
if (!getBoolData()
.equals(other.getBoolData())) return false;
break;
case 2:
if (!getFloatData()
.equals(other.getFloatData())) return false;
break;
case 0:
default:
}
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();
switch (dataCase_) {
case 1:
hash = (37 * hash) + BOOLDATA_FIELD_NUMBER;
hash = (53 * hash) + getBoolData().hashCode();
break;
case 2:
hash = (37 * hash) + FLOATDATA_FIELD_NUMBER;
hash = (53 * hash) + getFloatData().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aerospike.vector.client.proto.Vector parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aerospike.vector.client.proto.Vector parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aerospike.vector.client.proto.Vector parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aerospike.vector.client.proto.Vector parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aerospike.vector.client.proto.Vector parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aerospike.vector.client.proto.Vector parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aerospike.vector.client.proto.Vector parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aerospike.vector.client.proto.Vector 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 com.aerospike.vector.client.proto.Vector parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aerospike.vector.client.proto.Vector 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 com.aerospike.vector.client.proto.Vector parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aerospike.vector.client.proto.Vector 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(com.aerospike.vector.client.proto.Vector 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;
}
/**
*
* A vector.
*
*
* Protobuf type {@code aerospike.vector.Vector}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:aerospike.vector.Vector)
com.aerospike.vector.client.proto.VectorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_Vector_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_Vector_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aerospike.vector.client.proto.Vector.class, com.aerospike.vector.client.proto.Vector.Builder.class);
}
// Construct using com.aerospike.vector.client.proto.Vector.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (boolDataBuilder_ != null) {
boolDataBuilder_.clear();
}
if (floatDataBuilder_ != null) {
floatDataBuilder_.clear();
}
dataCase_ = 0;
data_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_Vector_descriptor;
}
@java.lang.Override
public com.aerospike.vector.client.proto.Vector getDefaultInstanceForType() {
return com.aerospike.vector.client.proto.Vector.getDefaultInstance();
}
@java.lang.Override
public com.aerospike.vector.client.proto.Vector build() {
com.aerospike.vector.client.proto.Vector result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aerospike.vector.client.proto.Vector buildPartial() {
com.aerospike.vector.client.proto.Vector result = new com.aerospike.vector.client.proto.Vector(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.aerospike.vector.client.proto.Vector result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(com.aerospike.vector.client.proto.Vector result) {
result.dataCase_ = dataCase_;
result.data_ = this.data_;
if (dataCase_ == 1 &&
boolDataBuilder_ != null) {
result.data_ = boolDataBuilder_.build();
}
if (dataCase_ == 2 &&
floatDataBuilder_ != null) {
result.data_ = floatDataBuilder_.build();
}
}
@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 com.aerospike.vector.client.proto.Vector) {
return mergeFrom((com.aerospike.vector.client.proto.Vector)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aerospike.vector.client.proto.Vector other) {
if (other == com.aerospike.vector.client.proto.Vector.getDefaultInstance()) return this;
switch (other.getDataCase()) {
case BOOLDATA: {
mergeBoolData(other.getBoolData());
break;
}
case FLOATDATA: {
mergeFloatData(other.getFloatData());
break;
}
case DATA_NOT_SET: {
break;
}
}
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: {
input.readMessage(
getBoolDataFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getFloatDataFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 2;
break;
} // case 18
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 dataCase_ = 0;
private java.lang.Object data_;
public DataCase
getDataCase() {
return DataCase.forNumber(
dataCase_);
}
public Builder clearData() {
dataCase_ = 0;
data_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.BoolData, com.aerospike.vector.client.proto.BoolData.Builder, com.aerospike.vector.client.proto.BoolDataOrBuilder> boolDataBuilder_;
/**
* .aerospike.vector.BoolData boolData = 1;
* @return Whether the boolData field is set.
*/
@java.lang.Override
public boolean hasBoolData() {
return dataCase_ == 1;
}
/**
* .aerospike.vector.BoolData boolData = 1;
* @return The boolData.
*/
@java.lang.Override
public com.aerospike.vector.client.proto.BoolData getBoolData() {
if (boolDataBuilder_ == null) {
if (dataCase_ == 1) {
return (com.aerospike.vector.client.proto.BoolData) data_;
}
return com.aerospike.vector.client.proto.BoolData.getDefaultInstance();
} else {
if (dataCase_ == 1) {
return boolDataBuilder_.getMessage();
}
return com.aerospike.vector.client.proto.BoolData.getDefaultInstance();
}
}
/**
* .aerospike.vector.BoolData boolData = 1;
*/
public Builder setBoolData(com.aerospike.vector.client.proto.BoolData value) {
if (boolDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
boolDataBuilder_.setMessage(value);
}
dataCase_ = 1;
return this;
}
/**
* .aerospike.vector.BoolData boolData = 1;
*/
public Builder setBoolData(
com.aerospike.vector.client.proto.BoolData.Builder builderForValue) {
if (boolDataBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
boolDataBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 1;
return this;
}
/**
* .aerospike.vector.BoolData boolData = 1;
*/
public Builder mergeBoolData(com.aerospike.vector.client.proto.BoolData value) {
if (boolDataBuilder_ == null) {
if (dataCase_ == 1 &&
data_ != com.aerospike.vector.client.proto.BoolData.getDefaultInstance()) {
data_ = com.aerospike.vector.client.proto.BoolData.newBuilder((com.aerospike.vector.client.proto.BoolData) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 1) {
boolDataBuilder_.mergeFrom(value);
} else {
boolDataBuilder_.setMessage(value);
}
}
dataCase_ = 1;
return this;
}
/**
* .aerospike.vector.BoolData boolData = 1;
*/
public Builder clearBoolData() {
if (boolDataBuilder_ == null) {
if (dataCase_ == 1) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 1) {
dataCase_ = 0;
data_ = null;
}
boolDataBuilder_.clear();
}
return this;
}
/**
* .aerospike.vector.BoolData boolData = 1;
*/
public com.aerospike.vector.client.proto.BoolData.Builder getBoolDataBuilder() {
return getBoolDataFieldBuilder().getBuilder();
}
/**
* .aerospike.vector.BoolData boolData = 1;
*/
@java.lang.Override
public com.aerospike.vector.client.proto.BoolDataOrBuilder getBoolDataOrBuilder() {
if ((dataCase_ == 1) && (boolDataBuilder_ != null)) {
return boolDataBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 1) {
return (com.aerospike.vector.client.proto.BoolData) data_;
}
return com.aerospike.vector.client.proto.BoolData.getDefaultInstance();
}
}
/**
* .aerospike.vector.BoolData boolData = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.BoolData, com.aerospike.vector.client.proto.BoolData.Builder, com.aerospike.vector.client.proto.BoolDataOrBuilder>
getBoolDataFieldBuilder() {
if (boolDataBuilder_ == null) {
if (!(dataCase_ == 1)) {
data_ = com.aerospike.vector.client.proto.BoolData.getDefaultInstance();
}
boolDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.BoolData, com.aerospike.vector.client.proto.BoolData.Builder, com.aerospike.vector.client.proto.BoolDataOrBuilder>(
(com.aerospike.vector.client.proto.BoolData) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 1;
onChanged();
return boolDataBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.FloatData, com.aerospike.vector.client.proto.FloatData.Builder, com.aerospike.vector.client.proto.FloatDataOrBuilder> floatDataBuilder_;
/**
* .aerospike.vector.FloatData floatData = 2;
* @return Whether the floatData field is set.
*/
@java.lang.Override
public boolean hasFloatData() {
return dataCase_ == 2;
}
/**
* .aerospike.vector.FloatData floatData = 2;
* @return The floatData.
*/
@java.lang.Override
public com.aerospike.vector.client.proto.FloatData getFloatData() {
if (floatDataBuilder_ == null) {
if (dataCase_ == 2) {
return (com.aerospike.vector.client.proto.FloatData) data_;
}
return com.aerospike.vector.client.proto.FloatData.getDefaultInstance();
} else {
if (dataCase_ == 2) {
return floatDataBuilder_.getMessage();
}
return com.aerospike.vector.client.proto.FloatData.getDefaultInstance();
}
}
/**
* .aerospike.vector.FloatData floatData = 2;
*/
public Builder setFloatData(com.aerospike.vector.client.proto.FloatData value) {
if (floatDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
floatDataBuilder_.setMessage(value);
}
dataCase_ = 2;
return this;
}
/**
* .aerospike.vector.FloatData floatData = 2;
*/
public Builder setFloatData(
com.aerospike.vector.client.proto.FloatData.Builder builderForValue) {
if (floatDataBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
floatDataBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 2;
return this;
}
/**
* .aerospike.vector.FloatData floatData = 2;
*/
public Builder mergeFloatData(com.aerospike.vector.client.proto.FloatData value) {
if (floatDataBuilder_ == null) {
if (dataCase_ == 2 &&
data_ != com.aerospike.vector.client.proto.FloatData.getDefaultInstance()) {
data_ = com.aerospike.vector.client.proto.FloatData.newBuilder((com.aerospike.vector.client.proto.FloatData) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 2) {
floatDataBuilder_.mergeFrom(value);
} else {
floatDataBuilder_.setMessage(value);
}
}
dataCase_ = 2;
return this;
}
/**
* .aerospike.vector.FloatData floatData = 2;
*/
public Builder clearFloatData() {
if (floatDataBuilder_ == null) {
if (dataCase_ == 2) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 2) {
dataCase_ = 0;
data_ = null;
}
floatDataBuilder_.clear();
}
return this;
}
/**
* .aerospike.vector.FloatData floatData = 2;
*/
public com.aerospike.vector.client.proto.FloatData.Builder getFloatDataBuilder() {
return getFloatDataFieldBuilder().getBuilder();
}
/**
* .aerospike.vector.FloatData floatData = 2;
*/
@java.lang.Override
public com.aerospike.vector.client.proto.FloatDataOrBuilder getFloatDataOrBuilder() {
if ((dataCase_ == 2) && (floatDataBuilder_ != null)) {
return floatDataBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 2) {
return (com.aerospike.vector.client.proto.FloatData) data_;
}
return com.aerospike.vector.client.proto.FloatData.getDefaultInstance();
}
}
/**
* .aerospike.vector.FloatData floatData = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.FloatData, com.aerospike.vector.client.proto.FloatData.Builder, com.aerospike.vector.client.proto.FloatDataOrBuilder>
getFloatDataFieldBuilder() {
if (floatDataBuilder_ == null) {
if (!(dataCase_ == 2)) {
data_ = com.aerospike.vector.client.proto.FloatData.getDefaultInstance();
}
floatDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.FloatData, com.aerospike.vector.client.proto.FloatData.Builder, com.aerospike.vector.client.proto.FloatDataOrBuilder>(
(com.aerospike.vector.client.proto.FloatData) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 2;
onChanged();
return floatDataBuilder_;
}
@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:aerospike.vector.Vector)
}
// @@protoc_insertion_point(class_scope:aerospike.vector.Vector)
private static final com.aerospike.vector.client.proto.Vector DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aerospike.vector.client.proto.Vector();
}
public static com.aerospike.vector.client.proto.Vector getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Vector 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 com.aerospike.vector.client.proto.Vector getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy