com.aerospike.vector.client.proto.ProjectionSpec 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: transact.proto
// Protobuf Java Version: 3.25.1
package com.aerospike.vector.client.proto;
/**
*
* Projection to select which fields are returned.
* A field is returned if it passes the include filter
* and does not pass the exclude filter.
*
*
* Protobuf type {@code aerospike.vector.ProjectionSpec}
*/
public final class ProjectionSpec extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:aerospike.vector.ProjectionSpec)
ProjectionSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProjectionSpec.newBuilder() to construct.
private ProjectionSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProjectionSpec() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProjectionSpec();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aerospike.vector.client.proto.Transact.internal_static_aerospike_vector_ProjectionSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aerospike.vector.client.proto.Transact.internal_static_aerospike_vector_ProjectionSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aerospike.vector.client.proto.ProjectionSpec.class, com.aerospike.vector.client.proto.ProjectionSpec.Builder.class);
}
private int bitField0_;
public static final int INCLUDE_FIELD_NUMBER = 1;
private com.aerospike.vector.client.proto.ProjectionFilter include_;
/**
*
* The fields to include.
*
*
* .aerospike.vector.ProjectionFilter include = 1;
* @return Whether the include field is set.
*/
@java.lang.Override
public boolean hasInclude() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The fields to include.
*
*
* .aerospike.vector.ProjectionFilter include = 1;
* @return The include.
*/
@java.lang.Override
public com.aerospike.vector.client.proto.ProjectionFilter getInclude() {
return include_ == null ? com.aerospike.vector.client.proto.ProjectionFilter.getDefaultInstance() : include_;
}
/**
*
* The fields to include.
*
*
* .aerospike.vector.ProjectionFilter include = 1;
*/
@java.lang.Override
public com.aerospike.vector.client.proto.ProjectionFilterOrBuilder getIncludeOrBuilder() {
return include_ == null ? com.aerospike.vector.client.proto.ProjectionFilter.getDefaultInstance() : include_;
}
public static final int EXCLUDE_FIELD_NUMBER = 2;
private com.aerospike.vector.client.proto.ProjectionFilter exclude_;
/**
*
* The fields to exclude.
*
*
* .aerospike.vector.ProjectionFilter exclude = 2;
* @return Whether the exclude field is set.
*/
@java.lang.Override
public boolean hasExclude() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The fields to exclude.
*
*
* .aerospike.vector.ProjectionFilter exclude = 2;
* @return The exclude.
*/
@java.lang.Override
public com.aerospike.vector.client.proto.ProjectionFilter getExclude() {
return exclude_ == null ? com.aerospike.vector.client.proto.ProjectionFilter.getDefaultInstance() : exclude_;
}
/**
*
* The fields to exclude.
*
*
* .aerospike.vector.ProjectionFilter exclude = 2;
*/
@java.lang.Override
public com.aerospike.vector.client.proto.ProjectionFilterOrBuilder getExcludeOrBuilder() {
return exclude_ == null ? com.aerospike.vector.client.proto.ProjectionFilter.getDefaultInstance() : exclude_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getInclude());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getExclude());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getInclude());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getExclude());
}
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.ProjectionSpec)) {
return super.equals(obj);
}
com.aerospike.vector.client.proto.ProjectionSpec other = (com.aerospike.vector.client.proto.ProjectionSpec) obj;
if (hasInclude() != other.hasInclude()) return false;
if (hasInclude()) {
if (!getInclude()
.equals(other.getInclude())) return false;
}
if (hasExclude() != other.hasExclude()) return false;
if (hasExclude()) {
if (!getExclude()
.equals(other.getExclude())) 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();
if (hasInclude()) {
hash = (37 * hash) + INCLUDE_FIELD_NUMBER;
hash = (53 * hash) + getInclude().hashCode();
}
if (hasExclude()) {
hash = (37 * hash) + EXCLUDE_FIELD_NUMBER;
hash = (53 * hash) + getExclude().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aerospike.vector.client.proto.ProjectionSpec parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aerospike.vector.client.proto.ProjectionSpec 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.ProjectionSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aerospike.vector.client.proto.ProjectionSpec 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.ProjectionSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aerospike.vector.client.proto.ProjectionSpec 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.ProjectionSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aerospike.vector.client.proto.ProjectionSpec 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.ProjectionSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aerospike.vector.client.proto.ProjectionSpec 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.ProjectionSpec 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.ProjectionSpec 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.ProjectionSpec 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;
}
/**
*
* Projection to select which fields are returned.
* A field is returned if it passes the include filter
* and does not pass the exclude filter.
*
*
* Protobuf type {@code aerospike.vector.ProjectionSpec}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:aerospike.vector.ProjectionSpec)
com.aerospike.vector.client.proto.ProjectionSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aerospike.vector.client.proto.Transact.internal_static_aerospike_vector_ProjectionSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aerospike.vector.client.proto.Transact.internal_static_aerospike_vector_ProjectionSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aerospike.vector.client.proto.ProjectionSpec.class, com.aerospike.vector.client.proto.ProjectionSpec.Builder.class);
}
// Construct using com.aerospike.vector.client.proto.ProjectionSpec.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIncludeFieldBuilder();
getExcludeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
include_ = null;
if (includeBuilder_ != null) {
includeBuilder_.dispose();
includeBuilder_ = null;
}
exclude_ = null;
if (excludeBuilder_ != null) {
excludeBuilder_.dispose();
excludeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.aerospike.vector.client.proto.Transact.internal_static_aerospike_vector_ProjectionSpec_descriptor;
}
@java.lang.Override
public com.aerospike.vector.client.proto.ProjectionSpec getDefaultInstanceForType() {
return com.aerospike.vector.client.proto.ProjectionSpec.getDefaultInstance();
}
@java.lang.Override
public com.aerospike.vector.client.proto.ProjectionSpec build() {
com.aerospike.vector.client.proto.ProjectionSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aerospike.vector.client.proto.ProjectionSpec buildPartial() {
com.aerospike.vector.client.proto.ProjectionSpec result = new com.aerospike.vector.client.proto.ProjectionSpec(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.aerospike.vector.client.proto.ProjectionSpec result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.include_ = includeBuilder_ == null
? include_
: includeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.exclude_ = excludeBuilder_ == null
? exclude_
: excludeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
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 com.aerospike.vector.client.proto.ProjectionSpec) {
return mergeFrom((com.aerospike.vector.client.proto.ProjectionSpec)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aerospike.vector.client.proto.ProjectionSpec other) {
if (other == com.aerospike.vector.client.proto.ProjectionSpec.getDefaultInstance()) return this;
if (other.hasInclude()) {
mergeInclude(other.getInclude());
}
if (other.hasExclude()) {
mergeExclude(other.getExclude());
}
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(
getIncludeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getExcludeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
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 bitField0_;
private com.aerospike.vector.client.proto.ProjectionFilter include_;
private com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.ProjectionFilter, com.aerospike.vector.client.proto.ProjectionFilter.Builder, com.aerospike.vector.client.proto.ProjectionFilterOrBuilder> includeBuilder_;
/**
*
* The fields to include.
*
*
* .aerospike.vector.ProjectionFilter include = 1;
* @return Whether the include field is set.
*/
public boolean hasInclude() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The fields to include.
*
*
* .aerospike.vector.ProjectionFilter include = 1;
* @return The include.
*/
public com.aerospike.vector.client.proto.ProjectionFilter getInclude() {
if (includeBuilder_ == null) {
return include_ == null ? com.aerospike.vector.client.proto.ProjectionFilter.getDefaultInstance() : include_;
} else {
return includeBuilder_.getMessage();
}
}
/**
*
* The fields to include.
*
*
* .aerospike.vector.ProjectionFilter include = 1;
*/
public Builder setInclude(com.aerospike.vector.client.proto.ProjectionFilter value) {
if (includeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
include_ = value;
} else {
includeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The fields to include.
*
*
* .aerospike.vector.ProjectionFilter include = 1;
*/
public Builder setInclude(
com.aerospike.vector.client.proto.ProjectionFilter.Builder builderForValue) {
if (includeBuilder_ == null) {
include_ = builderForValue.build();
} else {
includeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The fields to include.
*
*
* .aerospike.vector.ProjectionFilter include = 1;
*/
public Builder mergeInclude(com.aerospike.vector.client.proto.ProjectionFilter value) {
if (includeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
include_ != null &&
include_ != com.aerospike.vector.client.proto.ProjectionFilter.getDefaultInstance()) {
getIncludeBuilder().mergeFrom(value);
} else {
include_ = value;
}
} else {
includeBuilder_.mergeFrom(value);
}
if (include_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* The fields to include.
*
*
* .aerospike.vector.ProjectionFilter include = 1;
*/
public Builder clearInclude() {
bitField0_ = (bitField0_ & ~0x00000001);
include_ = null;
if (includeBuilder_ != null) {
includeBuilder_.dispose();
includeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The fields to include.
*
*
* .aerospike.vector.ProjectionFilter include = 1;
*/
public com.aerospike.vector.client.proto.ProjectionFilter.Builder getIncludeBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getIncludeFieldBuilder().getBuilder();
}
/**
*
* The fields to include.
*
*
* .aerospike.vector.ProjectionFilter include = 1;
*/
public com.aerospike.vector.client.proto.ProjectionFilterOrBuilder getIncludeOrBuilder() {
if (includeBuilder_ != null) {
return includeBuilder_.getMessageOrBuilder();
} else {
return include_ == null ?
com.aerospike.vector.client.proto.ProjectionFilter.getDefaultInstance() : include_;
}
}
/**
*
* The fields to include.
*
*
* .aerospike.vector.ProjectionFilter include = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.ProjectionFilter, com.aerospike.vector.client.proto.ProjectionFilter.Builder, com.aerospike.vector.client.proto.ProjectionFilterOrBuilder>
getIncludeFieldBuilder() {
if (includeBuilder_ == null) {
includeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.ProjectionFilter, com.aerospike.vector.client.proto.ProjectionFilter.Builder, com.aerospike.vector.client.proto.ProjectionFilterOrBuilder>(
getInclude(),
getParentForChildren(),
isClean());
include_ = null;
}
return includeBuilder_;
}
private com.aerospike.vector.client.proto.ProjectionFilter exclude_;
private com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.ProjectionFilter, com.aerospike.vector.client.proto.ProjectionFilter.Builder, com.aerospike.vector.client.proto.ProjectionFilterOrBuilder> excludeBuilder_;
/**
*
* The fields to exclude.
*
*
* .aerospike.vector.ProjectionFilter exclude = 2;
* @return Whether the exclude field is set.
*/
public boolean hasExclude() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The fields to exclude.
*
*
* .aerospike.vector.ProjectionFilter exclude = 2;
* @return The exclude.
*/
public com.aerospike.vector.client.proto.ProjectionFilter getExclude() {
if (excludeBuilder_ == null) {
return exclude_ == null ? com.aerospike.vector.client.proto.ProjectionFilter.getDefaultInstance() : exclude_;
} else {
return excludeBuilder_.getMessage();
}
}
/**
*
* The fields to exclude.
*
*
* .aerospike.vector.ProjectionFilter exclude = 2;
*/
public Builder setExclude(com.aerospike.vector.client.proto.ProjectionFilter value) {
if (excludeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
exclude_ = value;
} else {
excludeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The fields to exclude.
*
*
* .aerospike.vector.ProjectionFilter exclude = 2;
*/
public Builder setExclude(
com.aerospike.vector.client.proto.ProjectionFilter.Builder builderForValue) {
if (excludeBuilder_ == null) {
exclude_ = builderForValue.build();
} else {
excludeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The fields to exclude.
*
*
* .aerospike.vector.ProjectionFilter exclude = 2;
*/
public Builder mergeExclude(com.aerospike.vector.client.proto.ProjectionFilter value) {
if (excludeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
exclude_ != null &&
exclude_ != com.aerospike.vector.client.proto.ProjectionFilter.getDefaultInstance()) {
getExcludeBuilder().mergeFrom(value);
} else {
exclude_ = value;
}
} else {
excludeBuilder_.mergeFrom(value);
}
if (exclude_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* The fields to exclude.
*
*
* .aerospike.vector.ProjectionFilter exclude = 2;
*/
public Builder clearExclude() {
bitField0_ = (bitField0_ & ~0x00000002);
exclude_ = null;
if (excludeBuilder_ != null) {
excludeBuilder_.dispose();
excludeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The fields to exclude.
*
*
* .aerospike.vector.ProjectionFilter exclude = 2;
*/
public com.aerospike.vector.client.proto.ProjectionFilter.Builder getExcludeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getExcludeFieldBuilder().getBuilder();
}
/**
*
* The fields to exclude.
*
*
* .aerospike.vector.ProjectionFilter exclude = 2;
*/
public com.aerospike.vector.client.proto.ProjectionFilterOrBuilder getExcludeOrBuilder() {
if (excludeBuilder_ != null) {
return excludeBuilder_.getMessageOrBuilder();
} else {
return exclude_ == null ?
com.aerospike.vector.client.proto.ProjectionFilter.getDefaultInstance() : exclude_;
}
}
/**
*
* The fields to exclude.
*
*
* .aerospike.vector.ProjectionFilter exclude = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.ProjectionFilter, com.aerospike.vector.client.proto.ProjectionFilter.Builder, com.aerospike.vector.client.proto.ProjectionFilterOrBuilder>
getExcludeFieldBuilder() {
if (excludeBuilder_ == null) {
excludeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.ProjectionFilter, com.aerospike.vector.client.proto.ProjectionFilter.Builder, com.aerospike.vector.client.proto.ProjectionFilterOrBuilder>(
getExclude(),
getParentForChildren(),
isClean());
exclude_ = null;
}
return excludeBuilder_;
}
@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.ProjectionSpec)
}
// @@protoc_insertion_point(class_scope:aerospike.vector.ProjectionSpec)
private static final com.aerospike.vector.client.proto.ProjectionSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aerospike.vector.client.proto.ProjectionSpec();
}
public static com.aerospike.vector.client.proto.ProjectionSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProjectionSpec 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.ProjectionSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}