All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aerospike.vector.client.proto.IndexDefinitionList Maven / Gradle / Ivy

Go to download

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.1
package com.aerospike.vector.client.proto;

/**
 * 
 * List of index definitions.
 * 
* * Protobuf type {@code aerospike.vector.IndexDefinitionList} */ public final class IndexDefinitionList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:aerospike.vector.IndexDefinitionList) IndexDefinitionListOrBuilder { private static final long serialVersionUID = 0L; // Use IndexDefinitionList.newBuilder() to construct. private IndexDefinitionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IndexDefinitionList() { indices_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IndexDefinitionList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_IndexDefinitionList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_IndexDefinitionList_fieldAccessorTable .ensureFieldAccessorsInitialized( com.aerospike.vector.client.proto.IndexDefinitionList.class, com.aerospike.vector.client.proto.IndexDefinitionList.Builder.class); } public static final int INDICES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List indices_; /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ @java.lang.Override public java.util.List getIndicesList() { return indices_; } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ @java.lang.Override public java.util.List getIndicesOrBuilderList() { return indices_; } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ @java.lang.Override public int getIndicesCount() { return indices_.size(); } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ @java.lang.Override public com.aerospike.vector.client.proto.IndexDefinition getIndices(int index) { return indices_.get(index); } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ @java.lang.Override public com.aerospike.vector.client.proto.IndexDefinitionOrBuilder getIndicesOrBuilder( int index) { return indices_.get(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 { for (int i = 0; i < indices_.size(); i++) { output.writeMessage(1, indices_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < indices_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, indices_.get(i)); } 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.IndexDefinitionList)) { return super.equals(obj); } com.aerospike.vector.client.proto.IndexDefinitionList other = (com.aerospike.vector.client.proto.IndexDefinitionList) obj; if (!getIndicesList() .equals(other.getIndicesList())) 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 (getIndicesCount() > 0) { hash = (37 * hash) + INDICES_FIELD_NUMBER; hash = (53 * hash) + getIndicesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.aerospike.vector.client.proto.IndexDefinitionList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aerospike.vector.client.proto.IndexDefinitionList 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.IndexDefinitionList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aerospike.vector.client.proto.IndexDefinitionList 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.IndexDefinitionList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aerospike.vector.client.proto.IndexDefinitionList 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.IndexDefinitionList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.aerospike.vector.client.proto.IndexDefinitionList 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.IndexDefinitionList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.aerospike.vector.client.proto.IndexDefinitionList 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.IndexDefinitionList 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.IndexDefinitionList 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.IndexDefinitionList 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; } /** *
   * List of index definitions.
   * 
* * Protobuf type {@code aerospike.vector.IndexDefinitionList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aerospike.vector.IndexDefinitionList) com.aerospike.vector.client.proto.IndexDefinitionListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_IndexDefinitionList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_IndexDefinitionList_fieldAccessorTable .ensureFieldAccessorsInitialized( com.aerospike.vector.client.proto.IndexDefinitionList.class, com.aerospike.vector.client.proto.IndexDefinitionList.Builder.class); } // Construct using com.aerospike.vector.client.proto.IndexDefinitionList.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (indicesBuilder_ == null) { indices_ = java.util.Collections.emptyList(); } else { indices_ = null; indicesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_IndexDefinitionList_descriptor; } @java.lang.Override public com.aerospike.vector.client.proto.IndexDefinitionList getDefaultInstanceForType() { return com.aerospike.vector.client.proto.IndexDefinitionList.getDefaultInstance(); } @java.lang.Override public com.aerospike.vector.client.proto.IndexDefinitionList build() { com.aerospike.vector.client.proto.IndexDefinitionList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.aerospike.vector.client.proto.IndexDefinitionList buildPartial() { com.aerospike.vector.client.proto.IndexDefinitionList result = new com.aerospike.vector.client.proto.IndexDefinitionList(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.aerospike.vector.client.proto.IndexDefinitionList result) { if (indicesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { indices_ = java.util.Collections.unmodifiableList(indices_); bitField0_ = (bitField0_ & ~0x00000001); } result.indices_ = indices_; } else { result.indices_ = indicesBuilder_.build(); } } private void buildPartial0(com.aerospike.vector.client.proto.IndexDefinitionList result) { int from_bitField0_ = 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.IndexDefinitionList) { return mergeFrom((com.aerospike.vector.client.proto.IndexDefinitionList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.aerospike.vector.client.proto.IndexDefinitionList other) { if (other == com.aerospike.vector.client.proto.IndexDefinitionList.getDefaultInstance()) return this; if (indicesBuilder_ == null) { if (!other.indices_.isEmpty()) { if (indices_.isEmpty()) { indices_ = other.indices_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureIndicesIsMutable(); indices_.addAll(other.indices_); } onChanged(); } } else { if (!other.indices_.isEmpty()) { if (indicesBuilder_.isEmpty()) { indicesBuilder_.dispose(); indicesBuilder_ = null; indices_ = other.indices_; bitField0_ = (bitField0_ & ~0x00000001); indicesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIndicesFieldBuilder() : null; } else { indicesBuilder_.addAllMessages(other.indices_); } } } 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: { com.aerospike.vector.client.proto.IndexDefinition m = input.readMessage( com.aerospike.vector.client.proto.IndexDefinition.parser(), extensionRegistry); if (indicesBuilder_ == null) { ensureIndicesIsMutable(); indices_.add(m); } else { indicesBuilder_.addMessage(m); } break; } // case 10 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.util.List indices_ = java.util.Collections.emptyList(); private void ensureIndicesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { indices_ = new java.util.ArrayList(indices_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.aerospike.vector.client.proto.IndexDefinition, com.aerospike.vector.client.proto.IndexDefinition.Builder, com.aerospike.vector.client.proto.IndexDefinitionOrBuilder> indicesBuilder_; /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ public java.util.List getIndicesList() { if (indicesBuilder_ == null) { return java.util.Collections.unmodifiableList(indices_); } else { return indicesBuilder_.getMessageList(); } } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ public int getIndicesCount() { if (indicesBuilder_ == null) { return indices_.size(); } else { return indicesBuilder_.getCount(); } } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ public com.aerospike.vector.client.proto.IndexDefinition getIndices(int index) { if (indicesBuilder_ == null) { return indices_.get(index); } else { return indicesBuilder_.getMessage(index); } } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ public Builder setIndices( int index, com.aerospike.vector.client.proto.IndexDefinition value) { if (indicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndicesIsMutable(); indices_.set(index, value); onChanged(); } else { indicesBuilder_.setMessage(index, value); } return this; } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ public Builder setIndices( int index, com.aerospike.vector.client.proto.IndexDefinition.Builder builderForValue) { if (indicesBuilder_ == null) { ensureIndicesIsMutable(); indices_.set(index, builderForValue.build()); onChanged(); } else { indicesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ public Builder addIndices(com.aerospike.vector.client.proto.IndexDefinition value) { if (indicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndicesIsMutable(); indices_.add(value); onChanged(); } else { indicesBuilder_.addMessage(value); } return this; } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ public Builder addIndices( int index, com.aerospike.vector.client.proto.IndexDefinition value) { if (indicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndicesIsMutable(); indices_.add(index, value); onChanged(); } else { indicesBuilder_.addMessage(index, value); } return this; } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ public Builder addIndices( com.aerospike.vector.client.proto.IndexDefinition.Builder builderForValue) { if (indicesBuilder_ == null) { ensureIndicesIsMutable(); indices_.add(builderForValue.build()); onChanged(); } else { indicesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ public Builder addIndices( int index, com.aerospike.vector.client.proto.IndexDefinition.Builder builderForValue) { if (indicesBuilder_ == null) { ensureIndicesIsMutable(); indices_.add(index, builderForValue.build()); onChanged(); } else { indicesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ public Builder addAllIndices( java.lang.Iterable values) { if (indicesBuilder_ == null) { ensureIndicesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, indices_); onChanged(); } else { indicesBuilder_.addAllMessages(values); } return this; } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ public Builder clearIndices() { if (indicesBuilder_ == null) { indices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { indicesBuilder_.clear(); } return this; } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ public Builder removeIndices(int index) { if (indicesBuilder_ == null) { ensureIndicesIsMutable(); indices_.remove(index); onChanged(); } else { indicesBuilder_.remove(index); } return this; } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ public com.aerospike.vector.client.proto.IndexDefinition.Builder getIndicesBuilder( int index) { return getIndicesFieldBuilder().getBuilder(index); } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ public com.aerospike.vector.client.proto.IndexDefinitionOrBuilder getIndicesOrBuilder( int index) { if (indicesBuilder_ == null) { return indices_.get(index); } else { return indicesBuilder_.getMessageOrBuilder(index); } } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ public java.util.List getIndicesOrBuilderList() { if (indicesBuilder_ != null) { return indicesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(indices_); } } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ public com.aerospike.vector.client.proto.IndexDefinition.Builder addIndicesBuilder() { return getIndicesFieldBuilder().addBuilder( com.aerospike.vector.client.proto.IndexDefinition.getDefaultInstance()); } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ public com.aerospike.vector.client.proto.IndexDefinition.Builder addIndicesBuilder( int index) { return getIndicesFieldBuilder().addBuilder( index, com.aerospike.vector.client.proto.IndexDefinition.getDefaultInstance()); } /** * repeated .aerospike.vector.IndexDefinition indices = 1; */ public java.util.List getIndicesBuilderList() { return getIndicesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.aerospike.vector.client.proto.IndexDefinition, com.aerospike.vector.client.proto.IndexDefinition.Builder, com.aerospike.vector.client.proto.IndexDefinitionOrBuilder> getIndicesFieldBuilder() { if (indicesBuilder_ == null) { indicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.aerospike.vector.client.proto.IndexDefinition, com.aerospike.vector.client.proto.IndexDefinition.Builder, com.aerospike.vector.client.proto.IndexDefinitionOrBuilder>( indices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); indices_ = null; } return indicesBuilder_; } @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.IndexDefinitionList) } // @@protoc_insertion_point(class_scope:aerospike.vector.IndexDefinitionList) private static final com.aerospike.vector.client.proto.IndexDefinitionList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.aerospike.vector.client.proto.IndexDefinitionList(); } public static com.aerospike.vector.client.proto.IndexDefinitionList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IndexDefinitionList 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.IndexDefinitionList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy