diff --git a/pom.xml b/pom.xml index 449fc069..4bd81e00 100644 --- a/pom.xml +++ b/pom.xml @@ -72,6 +72,10 @@ 10.14.2 5.15.0 2.15.2 + 1.58.0 + 1.58.0 + 1.58.0 + 6.0.53 @@ -100,6 +104,28 @@ oauth2-oidc-sdk ${oauth2-oidc-sdk.version} + + io.grpc + grpc-netty-shaded + ${grpc-netty-shaded.version} + runtime + + + io.grpc + grpc-protobuf + ${grpc-protobuf.version} + + + io.grpc + grpc-stub + ${grpc-stub.version} + + + org.apache.tomcat + annotations-api + ${annotations-api.version} + provided + org.junit.jupiter junit-jupiter-api @@ -157,6 +183,13 @@ + + + kr.motd.maven + os-maven-plugin + 1.7.1 + + @@ -346,6 +379,24 @@ maven-project-info-reports-plugin 3.1.1 + + org.xolstice.maven.plugins + protobuf-maven-plugin + 0.6.1 + + com.google.protobuf:protoc:3.24.0:exe:${os.detected.classifier} + grpc-java + io.grpc:protoc-gen-grpc-java:1.58.0:exe:${os.detected.classifier} + + + + + compile + compile-custom + + + + @@ -373,6 +424,10 @@ org.sonatype.plugins nexus-staging-maven-plugin + + + + diff --git a/src/main/java/io/weaviate/client/Config.java b/src/main/java/io/weaviate/client/Config.java index 8dbc9189..1ad48c25 100644 --- a/src/main/java/io/weaviate/client/Config.java +++ b/src/main/java/io/weaviate/client/Config.java @@ -1,10 +1,12 @@ package io.weaviate.client; import java.util.Map; +import lombok.Getter; public class Config { private static final int DEFAULT_TIMEOUT_SECONDS = 60; + @Getter private final String scheme; private final String host; private final String version; @@ -15,6 +17,9 @@ public class Config { private String proxyHost; private int proxyPort; private String proxyScheme; + private boolean useGRPC; + @Getter + private String grpcAddress; public Config(String scheme, String host) { @@ -35,10 +40,25 @@ public Config(String scheme, String host, Map headers, int conne this.socketTimeout = socketTimeout; } + public Config(String scheme, String host, Map headers, int timeout, boolean useGRPC) { + this.scheme = scheme; + this.host = host; + this.version = "v1"; + this.headers = headers; + this.connectionTimeout = timeout; + this.connectionRequestTimeout = timeout; + this.socketTimeout = timeout; + this.useGRPC = useGRPC; + } + public String getBaseURL() { return scheme + "://" + host + "/" + version; } + public String getHost() { + return host; + } + public Map getHeaders() { return headers; } @@ -72,5 +92,16 @@ public int getProxyPort() { public String getProxyScheme() { return proxyScheme; } - + + public boolean useGRPC() { + return this.useGRPC; + } + + public void setUseGRPC(boolean useGRPC) { + this.useGRPC = useGRPC; + } + + public void setGrpcAddress(String grpcAddress) { + this.grpcAddress = grpcAddress; + } } diff --git a/src/main/java/io/weaviate/client/grpc/client/GrpcClient.java b/src/main/java/io/weaviate/client/grpc/client/GrpcClient.java new file mode 100644 index 00000000..8538b61d --- /dev/null +++ b/src/main/java/io/weaviate/client/grpc/client/GrpcClient.java @@ -0,0 +1,38 @@ +package io.weaviate.client.grpc.client; + +import io.grpc.ManagedChannel; +import io.grpc.ManagedChannelBuilder; +import io.grpc.Metadata; +import io.grpc.stub.MetadataUtils; +import io.weaviate.client.Config; +import io.weaviate.client.grpc.protocol.WeaviateGrpc; +import java.util.Map; + +public class GrpcClient { + + public static WeaviateGrpc.WeaviateBlockingStub create(Config config) { + Metadata headers = new Metadata(); + if (config.getHeaders() != null) { + for (Map.Entry e : config.getHeaders().entrySet()) { + headers.put(Metadata.Key.of(e.getKey(), Metadata.ASCII_STRING_MARSHALLER), e.getValue()); + } + } + ManagedChannel channel = ManagedChannelBuilder.forTarget(getAddress(config)).usePlaintext().build(); + WeaviateGrpc.WeaviateBlockingStub blockingStub = WeaviateGrpc.newBlockingStub(channel); + return blockingStub.withInterceptors(MetadataUtils.newAttachHeadersInterceptor(headers)); + } + + private static String getAddress(Config config) { + if (config.getGrpcAddress() != null) { + return config.getGrpcAddress(); + } + String host = config.getHost(); + if (!host.contains(":")) { + if (config.getScheme() != null && config.getScheme().equals("https")) { + return String.format("%s:443", host); + } + return String.format("%s:80", host); + } + return host; + } +} diff --git a/src/main/java/io/weaviate/client/grpc/protocol/WeaviateGrpc.java b/src/main/java/io/weaviate/client/grpc/protocol/WeaviateGrpc.java new file mode 100644 index 00000000..4cdff024 --- /dev/null +++ b/src/main/java/io/weaviate/client/grpc/protocol/WeaviateGrpc.java @@ -0,0 +1,367 @@ +package io.weaviate.client.grpc.protocol; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.58.0)", + comments = "Source: weaviate.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class WeaviateGrpc { + + private WeaviateGrpc() {} + + public static final java.lang.String SERVICE_NAME = "weaviategrpc.Weaviate"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getSearchMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Search", + requestType = io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest.class, + responseType = io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSearchMethod() { + io.grpc.MethodDescriptor getSearchMethod; + if ((getSearchMethod = WeaviateGrpc.getSearchMethod) == null) { + synchronized (WeaviateGrpc.class) { + if ((getSearchMethod = WeaviateGrpc.getSearchMethod) == null) { + WeaviateGrpc.getSearchMethod = getSearchMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Search")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply.getDefaultInstance())) + .setSchemaDescriptor(new WeaviateMethodDescriptorSupplier("Search")) + .build(); + } + } + } + return getSearchMethod; + } + + private static volatile io.grpc.MethodDescriptor getBatchObjectsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchObjects", + requestType = io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest.class, + responseType = io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBatchObjectsMethod() { + io.grpc.MethodDescriptor getBatchObjectsMethod; + if ((getBatchObjectsMethod = WeaviateGrpc.getBatchObjectsMethod) == null) { + synchronized (WeaviateGrpc.class) { + if ((getBatchObjectsMethod = WeaviateGrpc.getBatchObjectsMethod) == null) { + WeaviateGrpc.getBatchObjectsMethod = getBatchObjectsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchObjects")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.getDefaultInstance())) + .setSchemaDescriptor(new WeaviateMethodDescriptorSupplier("BatchObjects")) + .build(); + } + } + } + return getBatchObjectsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static WeaviateStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WeaviateStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WeaviateStub(channel, callOptions); + } + }; + return WeaviateStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WeaviateBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WeaviateBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WeaviateBlockingStub(channel, callOptions); + } + }; + return WeaviateBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static WeaviateFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WeaviateFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WeaviateFutureStub(channel, callOptions); + } + }; + return WeaviateFutureStub.newStub(factory, channel); + } + + /** + */ + public interface AsyncService { + + /** + */ + default void search(io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchMethod(), responseObserver); + } + + /** + */ + default void batchObjects(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchObjectsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Weaviate. + */ + public static abstract class WeaviateImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return WeaviateGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Weaviate. + */ + public static final class WeaviateStub + extends io.grpc.stub.AbstractAsyncStub { + private WeaviateStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WeaviateStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WeaviateStub(channel, callOptions); + } + + /** + */ + public void search(io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void batchObjects(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchObjectsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Weaviate. + */ + public static final class WeaviateBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private WeaviateBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WeaviateBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WeaviateBlockingStub(channel, callOptions); + } + + /** + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply search(io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchMethod(), getCallOptions(), request); + } + + /** + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply batchObjects(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchObjectsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Weaviate. + */ + public static final class WeaviateFutureStub + extends io.grpc.stub.AbstractFutureStub { + private WeaviateFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WeaviateFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WeaviateFutureStub(channel, callOptions); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture search( + io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture batchObjects( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchObjectsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_SEARCH = 0; + private static final int METHODID_BATCH_OBJECTS = 1; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_SEARCH: + serviceImpl.search((io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_OBJECTS: + serviceImpl.batchObjects((io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getSearchMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest, + io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply>( + service, METHODID_SEARCH))) + .addMethod( + getBatchObjectsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest, + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply>( + service, METHODID_BATCH_OBJECTS))) + .build(); + } + + private static abstract class WeaviateBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WeaviateBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Weaviate"); + } + } + + private static final class WeaviateFileDescriptorSupplier + extends WeaviateBaseDescriptorSupplier { + WeaviateFileDescriptorSupplier() {} + } + + private static final class WeaviateMethodDescriptorSupplier + extends WeaviateBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + WeaviateMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (WeaviateGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WeaviateFileDescriptorSupplier()) + .addMethod(getSearchMethod()) + .addMethod(getBatchObjectsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/src/main/java/io/weaviate/client/grpc/protocol/WeaviateProto.java b/src/main/java/io/weaviate/client/grpc/protocol/WeaviateProto.java new file mode 100644 index 00000000..27b8de5f --- /dev/null +++ b/src/main/java/io/weaviate/client/grpc/protocol/WeaviateProto.java @@ -0,0 +1,41026 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: weaviate.proto + +package io.weaviate.client.grpc.protocol; + +public final class WeaviateProto { + private WeaviateProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code weaviategrpc.ConsistencyLevel} + */ + public enum ConsistencyLevel + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CONSISTENCY_LEVEL_UNSPECIFIED = 0; + */ + CONSISTENCY_LEVEL_UNSPECIFIED(0), + /** + * CONSISTENCY_LEVEL_ONE = 1; + */ + CONSISTENCY_LEVEL_ONE(1), + /** + * CONSISTENCY_LEVEL_QUORUM = 2; + */ + CONSISTENCY_LEVEL_QUORUM(2), + /** + * CONSISTENCY_LEVEL_ALL = 3; + */ + CONSISTENCY_LEVEL_ALL(3), + UNRECOGNIZED(-1), + ; + + /** + * CONSISTENCY_LEVEL_UNSPECIFIED = 0; + */ + public static final int CONSISTENCY_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * CONSISTENCY_LEVEL_ONE = 1; + */ + public static final int CONSISTENCY_LEVEL_ONE_VALUE = 1; + /** + * CONSISTENCY_LEVEL_QUORUM = 2; + */ + public static final int CONSISTENCY_LEVEL_QUORUM_VALUE = 2; + /** + * CONSISTENCY_LEVEL_ALL = 3; + */ + public static final int CONSISTENCY_LEVEL_ALL_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConsistencyLevel valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ConsistencyLevel forNumber(int value) { + switch (value) { + case 0: return CONSISTENCY_LEVEL_UNSPECIFIED; + case 1: return CONSISTENCY_LEVEL_ONE; + case 2: return CONSISTENCY_LEVEL_QUORUM; + case 3: return CONSISTENCY_LEVEL_ALL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ConsistencyLevel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ConsistencyLevel findValueByNumber(int number) { + return ConsistencyLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.getDescriptor().getEnumTypes().get(0); + } + + private static final ConsistencyLevel[] VALUES = values(); + + public static ConsistencyLevel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ConsistencyLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:weaviategrpc.ConsistencyLevel) + } + + public interface BatchObjectsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.BatchObjectsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + java.util.List + getObjectsList(); + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject getObjects(int index); + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + int getObjectsCount(); + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + java.util.List + getObjectsOrBuilderList(); + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectOrBuilder getObjectsOrBuilder( + int index); + + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 2; + * @return Whether the consistencyLevel field is set. + */ + boolean hasConsistencyLevel(); + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 2; + * @return The enum numeric value on the wire for consistencyLevel. + */ + int getConsistencyLevelValue(); + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 2; + * @return The consistencyLevel. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel getConsistencyLevel(); + } + /** + * Protobuf type {@code weaviategrpc.BatchObjectsRequest} + */ + public static final class BatchObjectsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.BatchObjectsRequest) + BatchObjectsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchObjectsRequest.newBuilder() to construct. + private BatchObjectsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BatchObjectsRequest() { + objects_ = java.util.Collections.emptyList(); + consistencyLevel_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BatchObjectsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest.Builder.class); + } + + private int bitField0_; + public static final int OBJECTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List objects_; + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + @java.lang.Override + public java.util.List getObjectsList() { + return objects_; + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + @java.lang.Override + public java.util.List + getObjectsOrBuilderList() { + return objects_; + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + @java.lang.Override + public int getObjectsCount() { + return objects_.size(); + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject getObjects(int index) { + return objects_.get(index); + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectOrBuilder getObjectsOrBuilder( + int index) { + return objects_.get(index); + } + + public static final int CONSISTENCY_LEVEL_FIELD_NUMBER = 2; + private int consistencyLevel_ = 0; + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 2; + * @return Whether the consistencyLevel field is set. + */ + @java.lang.Override public boolean hasConsistencyLevel() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 2; + * @return The enum numeric value on the wire for consistencyLevel. + */ + @java.lang.Override public int getConsistencyLevelValue() { + return consistencyLevel_; + } + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 2; + * @return The consistencyLevel. + */ + @java.lang.Override public io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel getConsistencyLevel() { + io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel result = io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel.forNumber(consistencyLevel_); + return result == null ? io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel.UNRECOGNIZED : result; + } + + 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 < objects_.size(); i++) { + output.writeMessage(1, objects_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(2, consistencyLevel_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < objects_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, objects_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, consistencyLevel_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest other = (io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest) obj; + + if (!getObjectsList() + .equals(other.getObjectsList())) return false; + if (hasConsistencyLevel() != other.hasConsistencyLevel()) return false; + if (hasConsistencyLevel()) { + if (consistencyLevel_ != other.consistencyLevel_) 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 (getObjectsCount() > 0) { + hash = (37 * hash) + OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getObjectsList().hashCode(); + } + if (hasConsistencyLevel()) { + hash = (37 * hash) + CONSISTENCY_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + consistencyLevel_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest 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 weaviategrpc.BatchObjectsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.BatchObjectsRequest) + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (objectsBuilder_ == null) { + objects_ = java.util.Collections.emptyList(); + } else { + objects_ = null; + objectsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + consistencyLevel_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsRequest_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest build() { + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest result = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest result) { + if (objectsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + objects_ = java.util.Collections.unmodifiableList(objects_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.objects_ = objects_; + } else { + result.objects_ = objectsBuilder_.build(); + } + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.consistencyLevel_ = consistencyLevel_; + to_bitField0_ |= 0x00000001; + } + 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest.getDefaultInstance()) return this; + if (objectsBuilder_ == null) { + if (!other.objects_.isEmpty()) { + if (objects_.isEmpty()) { + objects_ = other.objects_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureObjectsIsMutable(); + objects_.addAll(other.objects_); + } + onChanged(); + } + } else { + if (!other.objects_.isEmpty()) { + if (objectsBuilder_.isEmpty()) { + objectsBuilder_.dispose(); + objectsBuilder_ = null; + objects_ = other.objects_; + bitField0_ = (bitField0_ & ~0x00000001); + objectsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getObjectsFieldBuilder() : null; + } else { + objectsBuilder_.addAllMessages(other.objects_); + } + } + } + if (other.hasConsistencyLevel()) { + setConsistencyLevel(other.getConsistencyLevel()); + } + 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: { + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject m = + input.readMessage( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.parser(), + extensionRegistry); + if (objectsBuilder_ == null) { + ensureObjectsIsMutable(); + objects_.add(m); + } else { + objectsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + consistencyLevel_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 objects_ = + java.util.Collections.emptyList(); + private void ensureObjectsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + objects_ = new java.util.ArrayList(objects_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectOrBuilder> objectsBuilder_; + + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + public java.util.List getObjectsList() { + if (objectsBuilder_ == null) { + return java.util.Collections.unmodifiableList(objects_); + } else { + return objectsBuilder_.getMessageList(); + } + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + public int getObjectsCount() { + if (objectsBuilder_ == null) { + return objects_.size(); + } else { + return objectsBuilder_.getCount(); + } + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject getObjects(int index) { + if (objectsBuilder_ == null) { + return objects_.get(index); + } else { + return objectsBuilder_.getMessage(index); + } + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + public Builder setObjects( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject value) { + if (objectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectsIsMutable(); + objects_.set(index, value); + onChanged(); + } else { + objectsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + public Builder setObjects( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Builder builderForValue) { + if (objectsBuilder_ == null) { + ensureObjectsIsMutable(); + objects_.set(index, builderForValue.build()); + onChanged(); + } else { + objectsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + public Builder addObjects(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject value) { + if (objectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectsIsMutable(); + objects_.add(value); + onChanged(); + } else { + objectsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + public Builder addObjects( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject value) { + if (objectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectsIsMutable(); + objects_.add(index, value); + onChanged(); + } else { + objectsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + public Builder addObjects( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Builder builderForValue) { + if (objectsBuilder_ == null) { + ensureObjectsIsMutable(); + objects_.add(builderForValue.build()); + onChanged(); + } else { + objectsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + public Builder addObjects( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Builder builderForValue) { + if (objectsBuilder_ == null) { + ensureObjectsIsMutable(); + objects_.add(index, builderForValue.build()); + onChanged(); + } else { + objectsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + public Builder addAllObjects( + java.lang.Iterable values) { + if (objectsBuilder_ == null) { + ensureObjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, objects_); + onChanged(); + } else { + objectsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + public Builder clearObjects() { + if (objectsBuilder_ == null) { + objects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + objectsBuilder_.clear(); + } + return this; + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + public Builder removeObjects(int index) { + if (objectsBuilder_ == null) { + ensureObjectsIsMutable(); + objects_.remove(index); + onChanged(); + } else { + objectsBuilder_.remove(index); + } + return this; + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Builder getObjectsBuilder( + int index) { + return getObjectsFieldBuilder().getBuilder(index); + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectOrBuilder getObjectsOrBuilder( + int index) { + if (objectsBuilder_ == null) { + return objects_.get(index); } else { + return objectsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + public java.util.List + getObjectsOrBuilderList() { + if (objectsBuilder_ != null) { + return objectsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(objects_); + } + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Builder addObjectsBuilder() { + return getObjectsFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Builder addObjectsBuilder( + int index) { + return getObjectsFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.BatchObject objects = 1; + */ + public java.util.List + getObjectsBuilderList() { + return getObjectsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectOrBuilder> + getObjectsFieldBuilder() { + if (objectsBuilder_ == null) { + objectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectOrBuilder>( + objects_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + objects_ = null; + } + return objectsBuilder_; + } + + private int consistencyLevel_ = 0; + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 2; + * @return Whether the consistencyLevel field is set. + */ + @java.lang.Override public boolean hasConsistencyLevel() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 2; + * @return The enum numeric value on the wire for consistencyLevel. + */ + @java.lang.Override public int getConsistencyLevelValue() { + return consistencyLevel_; + } + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 2; + * @param value The enum numeric value on the wire for consistencyLevel to set. + * @return This builder for chaining. + */ + public Builder setConsistencyLevelValue(int value) { + consistencyLevel_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 2; + * @return The consistencyLevel. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel getConsistencyLevel() { + io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel result = io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel.forNumber(consistencyLevel_); + return result == null ? io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel.UNRECOGNIZED : result; + } + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 2; + * @param value The consistencyLevel to set. + * @return This builder for chaining. + */ + public Builder setConsistencyLevel(io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + consistencyLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 2; + * @return This builder for chaining. + */ + public Builder clearConsistencyLevel() { + bitField0_ = (bitField0_ & ~0x00000002); + consistencyLevel_ = 0; + 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:weaviategrpc.BatchObjectsRequest) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.BatchObjectsRequest) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchObjectsRequest 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BatchObjectOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.BatchObject) + com.google.protobuf.MessageOrBuilder { + + /** + * string uuid = 1; + * @return The uuid. + */ + java.lang.String getUuid(); + /** + * string uuid = 1; + * @return The bytes for uuid. + */ + com.google.protobuf.ByteString + getUuidBytes(); + + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 2; + * @return A list containing the vector. + */ + java.util.List getVectorList(); + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 2; + * @return The count of vector. + */ + int getVectorCount(); + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 2; + * @param index The index of the element to return. + * @return The vector at the given index. + */ + float getVector(int index); + + /** + * .weaviategrpc.BatchObject.Properties properties = 3; + * @return Whether the properties field is set. + */ + boolean hasProperties(); + /** + * .weaviategrpc.BatchObject.Properties properties = 3; + * @return The properties. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties getProperties(); + /** + * .weaviategrpc.BatchObject.Properties properties = 3; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.PropertiesOrBuilder getPropertiesOrBuilder(); + + /** + * string class_name = 4; + * @return The className. + */ + java.lang.String getClassName(); + /** + * string class_name = 4; + * @return The bytes for className. + */ + com.google.protobuf.ByteString + getClassNameBytes(); + + /** + * string tenant = 5; + * @return The tenant. + */ + java.lang.String getTenant(); + /** + * string tenant = 5; + * @return The bytes for tenant. + */ + com.google.protobuf.ByteString + getTenantBytes(); + } + /** + * Protobuf type {@code weaviategrpc.BatchObject} + */ + public static final class BatchObject extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.BatchObject) + BatchObjectOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchObject.newBuilder() to construct. + private BatchObject(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BatchObject() { + uuid_ = ""; + vector_ = emptyFloatList(); + className_ = ""; + tenant_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BatchObject(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Builder.class); + } + + public interface PropertiesOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.BatchObject.Properties) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.protobuf.Struct non_ref_properties = 1; + * @return Whether the nonRefProperties field is set. + */ + boolean hasNonRefProperties(); + /** + * .google.protobuf.Struct non_ref_properties = 1; + * @return The nonRefProperties. + */ + com.google.protobuf.Struct getNonRefProperties(); + /** + * .google.protobuf.Struct non_ref_properties = 1; + */ + com.google.protobuf.StructOrBuilder getNonRefPropertiesOrBuilder(); + + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + java.util.List + getRefPropsSingleList(); + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget getRefPropsSingle(int index); + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + int getRefPropsSingleCount(); + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + java.util.List + getRefPropsSingleOrBuilderList(); + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTargetOrBuilder getRefPropsSingleOrBuilder( + int index); + + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + java.util.List + getRefPropsMultiList(); + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget getRefPropsMulti(int index); + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + int getRefPropsMultiCount(); + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + java.util.List + getRefPropsMultiOrBuilderList(); + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTargetOrBuilder getRefPropsMultiOrBuilder( + int index); + + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + java.util.List + getNumberArrayPropertiesList(); + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties getNumberArrayProperties(int index); + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + int getNumberArrayPropertiesCount(); + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + java.util.List + getNumberArrayPropertiesOrBuilderList(); + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayPropertiesOrBuilder getNumberArrayPropertiesOrBuilder( + int index); + + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + java.util.List + getIntArrayPropertiesList(); + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties getIntArrayProperties(int index); + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + int getIntArrayPropertiesCount(); + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + java.util.List + getIntArrayPropertiesOrBuilderList(); + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayPropertiesOrBuilder getIntArrayPropertiesOrBuilder( + int index); + + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + java.util.List + getTextArrayPropertiesList(); + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties getTextArrayProperties(int index); + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + int getTextArrayPropertiesCount(); + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + java.util.List + getTextArrayPropertiesOrBuilderList(); + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayPropertiesOrBuilder getTextArrayPropertiesOrBuilder( + int index); + + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + java.util.List + getBooleanArrayPropertiesList(); + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties getBooleanArrayProperties(int index); + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + int getBooleanArrayPropertiesCount(); + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + java.util.List + getBooleanArrayPropertiesOrBuilderList(); + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayPropertiesOrBuilder getBooleanArrayPropertiesOrBuilder( + int index); + } + /** + * Protobuf type {@code weaviategrpc.BatchObject.Properties} + */ + public static final class Properties extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.BatchObject.Properties) + PropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use Properties.newBuilder() to construct. + private Properties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Properties() { + refPropsSingle_ = java.util.Collections.emptyList(); + refPropsMulti_ = java.util.Collections.emptyList(); + numberArrayProperties_ = java.util.Collections.emptyList(); + intArrayProperties_ = java.util.Collections.emptyList(); + textArrayProperties_ = java.util.Collections.emptyList(); + booleanArrayProperties_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Properties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_Properties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_Properties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.Builder.class); + } + + private int bitField0_; + public static final int NON_REF_PROPERTIES_FIELD_NUMBER = 1; + private com.google.protobuf.Struct nonRefProperties_; + /** + * .google.protobuf.Struct non_ref_properties = 1; + * @return Whether the nonRefProperties field is set. + */ + @java.lang.Override + public boolean hasNonRefProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Struct non_ref_properties = 1; + * @return The nonRefProperties. + */ + @java.lang.Override + public com.google.protobuf.Struct getNonRefProperties() { + return nonRefProperties_ == null ? com.google.protobuf.Struct.getDefaultInstance() : nonRefProperties_; + } + /** + * .google.protobuf.Struct non_ref_properties = 1; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getNonRefPropertiesOrBuilder() { + return nonRefProperties_ == null ? com.google.protobuf.Struct.getDefaultInstance() : nonRefProperties_; + } + + public static final int REF_PROPS_SINGLE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List refPropsSingle_; + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + @java.lang.Override + public java.util.List getRefPropsSingleList() { + return refPropsSingle_; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + @java.lang.Override + public java.util.List + getRefPropsSingleOrBuilderList() { + return refPropsSingle_; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + @java.lang.Override + public int getRefPropsSingleCount() { + return refPropsSingle_.size(); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget getRefPropsSingle(int index) { + return refPropsSingle_.get(index); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTargetOrBuilder getRefPropsSingleOrBuilder( + int index) { + return refPropsSingle_.get(index); + } + + public static final int REF_PROPS_MULTI_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private java.util.List refPropsMulti_; + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + @java.lang.Override + public java.util.List getRefPropsMultiList() { + return refPropsMulti_; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + @java.lang.Override + public java.util.List + getRefPropsMultiOrBuilderList() { + return refPropsMulti_; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + @java.lang.Override + public int getRefPropsMultiCount() { + return refPropsMulti_.size(); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget getRefPropsMulti(int index) { + return refPropsMulti_.get(index); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTargetOrBuilder getRefPropsMultiOrBuilder( + int index) { + return refPropsMulti_.get(index); + } + + public static final int NUMBER_ARRAY_PROPERTIES_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private java.util.List numberArrayProperties_; + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + @java.lang.Override + public java.util.List getNumberArrayPropertiesList() { + return numberArrayProperties_; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + @java.lang.Override + public java.util.List + getNumberArrayPropertiesOrBuilderList() { + return numberArrayProperties_; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + @java.lang.Override + public int getNumberArrayPropertiesCount() { + return numberArrayProperties_.size(); + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties getNumberArrayProperties(int index) { + return numberArrayProperties_.get(index); + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayPropertiesOrBuilder getNumberArrayPropertiesOrBuilder( + int index) { + return numberArrayProperties_.get(index); + } + + public static final int INT_ARRAY_PROPERTIES_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private java.util.List intArrayProperties_; + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + @java.lang.Override + public java.util.List getIntArrayPropertiesList() { + return intArrayProperties_; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + @java.lang.Override + public java.util.List + getIntArrayPropertiesOrBuilderList() { + return intArrayProperties_; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + @java.lang.Override + public int getIntArrayPropertiesCount() { + return intArrayProperties_.size(); + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties getIntArrayProperties(int index) { + return intArrayProperties_.get(index); + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayPropertiesOrBuilder getIntArrayPropertiesOrBuilder( + int index) { + return intArrayProperties_.get(index); + } + + public static final int TEXT_ARRAY_PROPERTIES_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private java.util.List textArrayProperties_; + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + @java.lang.Override + public java.util.List getTextArrayPropertiesList() { + return textArrayProperties_; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + @java.lang.Override + public java.util.List + getTextArrayPropertiesOrBuilderList() { + return textArrayProperties_; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + @java.lang.Override + public int getTextArrayPropertiesCount() { + return textArrayProperties_.size(); + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties getTextArrayProperties(int index) { + return textArrayProperties_.get(index); + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayPropertiesOrBuilder getTextArrayPropertiesOrBuilder( + int index) { + return textArrayProperties_.get(index); + } + + public static final int BOOLEAN_ARRAY_PROPERTIES_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private java.util.List booleanArrayProperties_; + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + @java.lang.Override + public java.util.List getBooleanArrayPropertiesList() { + return booleanArrayProperties_; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + @java.lang.Override + public java.util.List + getBooleanArrayPropertiesOrBuilderList() { + return booleanArrayProperties_; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + @java.lang.Override + public int getBooleanArrayPropertiesCount() { + return booleanArrayProperties_.size(); + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties getBooleanArrayProperties(int index) { + return booleanArrayProperties_.get(index); + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayPropertiesOrBuilder getBooleanArrayPropertiesOrBuilder( + int index) { + return booleanArrayProperties_.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 { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getNonRefProperties()); + } + for (int i = 0; i < refPropsSingle_.size(); i++) { + output.writeMessage(2, refPropsSingle_.get(i)); + } + for (int i = 0; i < refPropsMulti_.size(); i++) { + output.writeMessage(3, refPropsMulti_.get(i)); + } + for (int i = 0; i < numberArrayProperties_.size(); i++) { + output.writeMessage(4, numberArrayProperties_.get(i)); + } + for (int i = 0; i < intArrayProperties_.size(); i++) { + output.writeMessage(5, intArrayProperties_.get(i)); + } + for (int i = 0; i < textArrayProperties_.size(); i++) { + output.writeMessage(6, textArrayProperties_.get(i)); + } + for (int i = 0; i < booleanArrayProperties_.size(); i++) { + output.writeMessage(7, booleanArrayProperties_.get(i)); + } + 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, getNonRefProperties()); + } + for (int i = 0; i < refPropsSingle_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, refPropsSingle_.get(i)); + } + for (int i = 0; i < refPropsMulti_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, refPropsMulti_.get(i)); + } + for (int i = 0; i < numberArrayProperties_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, numberArrayProperties_.get(i)); + } + for (int i = 0; i < intArrayProperties_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, intArrayProperties_.get(i)); + } + for (int i = 0; i < textArrayProperties_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, textArrayProperties_.get(i)); + } + for (int i = 0; i < booleanArrayProperties_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, booleanArrayProperties_.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 io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties other = (io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties) obj; + + if (hasNonRefProperties() != other.hasNonRefProperties()) return false; + if (hasNonRefProperties()) { + if (!getNonRefProperties() + .equals(other.getNonRefProperties())) return false; + } + if (!getRefPropsSingleList() + .equals(other.getRefPropsSingleList())) return false; + if (!getRefPropsMultiList() + .equals(other.getRefPropsMultiList())) return false; + if (!getNumberArrayPropertiesList() + .equals(other.getNumberArrayPropertiesList())) return false; + if (!getIntArrayPropertiesList() + .equals(other.getIntArrayPropertiesList())) return false; + if (!getTextArrayPropertiesList() + .equals(other.getTextArrayPropertiesList())) return false; + if (!getBooleanArrayPropertiesList() + .equals(other.getBooleanArrayPropertiesList())) 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 (hasNonRefProperties()) { + hash = (37 * hash) + NON_REF_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getNonRefProperties().hashCode(); + } + if (getRefPropsSingleCount() > 0) { + hash = (37 * hash) + REF_PROPS_SINGLE_FIELD_NUMBER; + hash = (53 * hash) + getRefPropsSingleList().hashCode(); + } + if (getRefPropsMultiCount() > 0) { + hash = (37 * hash) + REF_PROPS_MULTI_FIELD_NUMBER; + hash = (53 * hash) + getRefPropsMultiList().hashCode(); + } + if (getNumberArrayPropertiesCount() > 0) { + hash = (37 * hash) + NUMBER_ARRAY_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getNumberArrayPropertiesList().hashCode(); + } + if (getIntArrayPropertiesCount() > 0) { + hash = (37 * hash) + INT_ARRAY_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getIntArrayPropertiesList().hashCode(); + } + if (getTextArrayPropertiesCount() > 0) { + hash = (37 * hash) + TEXT_ARRAY_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getTextArrayPropertiesList().hashCode(); + } + if (getBooleanArrayPropertiesCount() > 0) { + hash = (37 * hash) + BOOLEAN_ARRAY_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getBooleanArrayPropertiesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties 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 weaviategrpc.BatchObject.Properties} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.BatchObject.Properties) + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.PropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_Properties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_Properties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNonRefPropertiesFieldBuilder(); + getRefPropsSingleFieldBuilder(); + getRefPropsMultiFieldBuilder(); + getNumberArrayPropertiesFieldBuilder(); + getIntArrayPropertiesFieldBuilder(); + getTextArrayPropertiesFieldBuilder(); + getBooleanArrayPropertiesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + nonRefProperties_ = null; + if (nonRefPropertiesBuilder_ != null) { + nonRefPropertiesBuilder_.dispose(); + nonRefPropertiesBuilder_ = null; + } + if (refPropsSingleBuilder_ == null) { + refPropsSingle_ = java.util.Collections.emptyList(); + } else { + refPropsSingle_ = null; + refPropsSingleBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (refPropsMultiBuilder_ == null) { + refPropsMulti_ = java.util.Collections.emptyList(); + } else { + refPropsMulti_ = null; + refPropsMultiBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (numberArrayPropertiesBuilder_ == null) { + numberArrayProperties_ = java.util.Collections.emptyList(); + } else { + numberArrayProperties_ = null; + numberArrayPropertiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (intArrayPropertiesBuilder_ == null) { + intArrayProperties_ = java.util.Collections.emptyList(); + } else { + intArrayProperties_ = null; + intArrayPropertiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (textArrayPropertiesBuilder_ == null) { + textArrayProperties_ = java.util.Collections.emptyList(); + } else { + textArrayProperties_ = null; + textArrayPropertiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (booleanArrayPropertiesBuilder_ == null) { + booleanArrayProperties_ = java.util.Collections.emptyList(); + } else { + booleanArrayProperties_ = null; + booleanArrayPropertiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_Properties_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties build() { + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties result = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties result) { + if (refPropsSingleBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + refPropsSingle_ = java.util.Collections.unmodifiableList(refPropsSingle_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.refPropsSingle_ = refPropsSingle_; + } else { + result.refPropsSingle_ = refPropsSingleBuilder_.build(); + } + if (refPropsMultiBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + refPropsMulti_ = java.util.Collections.unmodifiableList(refPropsMulti_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.refPropsMulti_ = refPropsMulti_; + } else { + result.refPropsMulti_ = refPropsMultiBuilder_.build(); + } + if (numberArrayPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + numberArrayProperties_ = java.util.Collections.unmodifiableList(numberArrayProperties_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.numberArrayProperties_ = numberArrayProperties_; + } else { + result.numberArrayProperties_ = numberArrayPropertiesBuilder_.build(); + } + if (intArrayPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + intArrayProperties_ = java.util.Collections.unmodifiableList(intArrayProperties_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.intArrayProperties_ = intArrayProperties_; + } else { + result.intArrayProperties_ = intArrayPropertiesBuilder_.build(); + } + if (textArrayPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + textArrayProperties_ = java.util.Collections.unmodifiableList(textArrayProperties_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.textArrayProperties_ = textArrayProperties_; + } else { + result.textArrayProperties_ = textArrayPropertiesBuilder_.build(); + } + if (booleanArrayPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + booleanArrayProperties_ = java.util.Collections.unmodifiableList(booleanArrayProperties_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.booleanArrayProperties_ = booleanArrayProperties_; + } else { + result.booleanArrayProperties_ = booleanArrayPropertiesBuilder_.build(); + } + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.nonRefProperties_ = nonRefPropertiesBuilder_ == null + ? nonRefProperties_ + : nonRefPropertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.getDefaultInstance()) return this; + if (other.hasNonRefProperties()) { + mergeNonRefProperties(other.getNonRefProperties()); + } + if (refPropsSingleBuilder_ == null) { + if (!other.refPropsSingle_.isEmpty()) { + if (refPropsSingle_.isEmpty()) { + refPropsSingle_ = other.refPropsSingle_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRefPropsSingleIsMutable(); + refPropsSingle_.addAll(other.refPropsSingle_); + } + onChanged(); + } + } else { + if (!other.refPropsSingle_.isEmpty()) { + if (refPropsSingleBuilder_.isEmpty()) { + refPropsSingleBuilder_.dispose(); + refPropsSingleBuilder_ = null; + refPropsSingle_ = other.refPropsSingle_; + bitField0_ = (bitField0_ & ~0x00000002); + refPropsSingleBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRefPropsSingleFieldBuilder() : null; + } else { + refPropsSingleBuilder_.addAllMessages(other.refPropsSingle_); + } + } + } + if (refPropsMultiBuilder_ == null) { + if (!other.refPropsMulti_.isEmpty()) { + if (refPropsMulti_.isEmpty()) { + refPropsMulti_ = other.refPropsMulti_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureRefPropsMultiIsMutable(); + refPropsMulti_.addAll(other.refPropsMulti_); + } + onChanged(); + } + } else { + if (!other.refPropsMulti_.isEmpty()) { + if (refPropsMultiBuilder_.isEmpty()) { + refPropsMultiBuilder_.dispose(); + refPropsMultiBuilder_ = null; + refPropsMulti_ = other.refPropsMulti_; + bitField0_ = (bitField0_ & ~0x00000004); + refPropsMultiBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRefPropsMultiFieldBuilder() : null; + } else { + refPropsMultiBuilder_.addAllMessages(other.refPropsMulti_); + } + } + } + if (numberArrayPropertiesBuilder_ == null) { + if (!other.numberArrayProperties_.isEmpty()) { + if (numberArrayProperties_.isEmpty()) { + numberArrayProperties_ = other.numberArrayProperties_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureNumberArrayPropertiesIsMutable(); + numberArrayProperties_.addAll(other.numberArrayProperties_); + } + onChanged(); + } + } else { + if (!other.numberArrayProperties_.isEmpty()) { + if (numberArrayPropertiesBuilder_.isEmpty()) { + numberArrayPropertiesBuilder_.dispose(); + numberArrayPropertiesBuilder_ = null; + numberArrayProperties_ = other.numberArrayProperties_; + bitField0_ = (bitField0_ & ~0x00000008); + numberArrayPropertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNumberArrayPropertiesFieldBuilder() : null; + } else { + numberArrayPropertiesBuilder_.addAllMessages(other.numberArrayProperties_); + } + } + } + if (intArrayPropertiesBuilder_ == null) { + if (!other.intArrayProperties_.isEmpty()) { + if (intArrayProperties_.isEmpty()) { + intArrayProperties_ = other.intArrayProperties_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureIntArrayPropertiesIsMutable(); + intArrayProperties_.addAll(other.intArrayProperties_); + } + onChanged(); + } + } else { + if (!other.intArrayProperties_.isEmpty()) { + if (intArrayPropertiesBuilder_.isEmpty()) { + intArrayPropertiesBuilder_.dispose(); + intArrayPropertiesBuilder_ = null; + intArrayProperties_ = other.intArrayProperties_; + bitField0_ = (bitField0_ & ~0x00000010); + intArrayPropertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getIntArrayPropertiesFieldBuilder() : null; + } else { + intArrayPropertiesBuilder_.addAllMessages(other.intArrayProperties_); + } + } + } + if (textArrayPropertiesBuilder_ == null) { + if (!other.textArrayProperties_.isEmpty()) { + if (textArrayProperties_.isEmpty()) { + textArrayProperties_ = other.textArrayProperties_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureTextArrayPropertiesIsMutable(); + textArrayProperties_.addAll(other.textArrayProperties_); + } + onChanged(); + } + } else { + if (!other.textArrayProperties_.isEmpty()) { + if (textArrayPropertiesBuilder_.isEmpty()) { + textArrayPropertiesBuilder_.dispose(); + textArrayPropertiesBuilder_ = null; + textArrayProperties_ = other.textArrayProperties_; + bitField0_ = (bitField0_ & ~0x00000020); + textArrayPropertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTextArrayPropertiesFieldBuilder() : null; + } else { + textArrayPropertiesBuilder_.addAllMessages(other.textArrayProperties_); + } + } + } + if (booleanArrayPropertiesBuilder_ == null) { + if (!other.booleanArrayProperties_.isEmpty()) { + if (booleanArrayProperties_.isEmpty()) { + booleanArrayProperties_ = other.booleanArrayProperties_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureBooleanArrayPropertiesIsMutable(); + booleanArrayProperties_.addAll(other.booleanArrayProperties_); + } + onChanged(); + } + } else { + if (!other.booleanArrayProperties_.isEmpty()) { + if (booleanArrayPropertiesBuilder_.isEmpty()) { + booleanArrayPropertiesBuilder_.dispose(); + booleanArrayPropertiesBuilder_ = null; + booleanArrayProperties_ = other.booleanArrayProperties_; + bitField0_ = (bitField0_ & ~0x00000040); + booleanArrayPropertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBooleanArrayPropertiesFieldBuilder() : null; + } else { + booleanArrayPropertiesBuilder_.addAllMessages(other.booleanArrayProperties_); + } + } + } + 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( + getNonRefPropertiesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget m = + input.readMessage( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.parser(), + extensionRegistry); + if (refPropsSingleBuilder_ == null) { + ensureRefPropsSingleIsMutable(); + refPropsSingle_.add(m); + } else { + refPropsSingleBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget m = + input.readMessage( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.parser(), + extensionRegistry); + if (refPropsMultiBuilder_ == null) { + ensureRefPropsMultiIsMutable(); + refPropsMulti_.add(m); + } else { + refPropsMultiBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties m = + input.readMessage( + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.parser(), + extensionRegistry); + if (numberArrayPropertiesBuilder_ == null) { + ensureNumberArrayPropertiesIsMutable(); + numberArrayProperties_.add(m); + } else { + numberArrayPropertiesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties m = + input.readMessage( + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.parser(), + extensionRegistry); + if (intArrayPropertiesBuilder_ == null) { + ensureIntArrayPropertiesIsMutable(); + intArrayProperties_.add(m); + } else { + intArrayPropertiesBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties m = + input.readMessage( + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.parser(), + extensionRegistry); + if (textArrayPropertiesBuilder_ == null) { + ensureTextArrayPropertiesIsMutable(); + textArrayProperties_.add(m); + } else { + textArrayPropertiesBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: { + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties m = + input.readMessage( + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.parser(), + extensionRegistry); + if (booleanArrayPropertiesBuilder_ == null) { + ensureBooleanArrayPropertiesIsMutable(); + booleanArrayProperties_.add(m); + } else { + booleanArrayPropertiesBuilder_.addMessage(m); + } + break; + } // case 58 + 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.google.protobuf.Struct nonRefProperties_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> nonRefPropertiesBuilder_; + /** + * .google.protobuf.Struct non_ref_properties = 1; + * @return Whether the nonRefProperties field is set. + */ + public boolean hasNonRefProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Struct non_ref_properties = 1; + * @return The nonRefProperties. + */ + public com.google.protobuf.Struct getNonRefProperties() { + if (nonRefPropertiesBuilder_ == null) { + return nonRefProperties_ == null ? com.google.protobuf.Struct.getDefaultInstance() : nonRefProperties_; + } else { + return nonRefPropertiesBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Struct non_ref_properties = 1; + */ + public Builder setNonRefProperties(com.google.protobuf.Struct value) { + if (nonRefPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nonRefProperties_ = value; + } else { + nonRefPropertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.protobuf.Struct non_ref_properties = 1; + */ + public Builder setNonRefProperties( + com.google.protobuf.Struct.Builder builderForValue) { + if (nonRefPropertiesBuilder_ == null) { + nonRefProperties_ = builderForValue.build(); + } else { + nonRefPropertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.protobuf.Struct non_ref_properties = 1; + */ + public Builder mergeNonRefProperties(com.google.protobuf.Struct value) { + if (nonRefPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + nonRefProperties_ != null && + nonRefProperties_ != com.google.protobuf.Struct.getDefaultInstance()) { + getNonRefPropertiesBuilder().mergeFrom(value); + } else { + nonRefProperties_ = value; + } + } else { + nonRefPropertiesBuilder_.mergeFrom(value); + } + if (nonRefProperties_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Struct non_ref_properties = 1; + */ + public Builder clearNonRefProperties() { + bitField0_ = (bitField0_ & ~0x00000001); + nonRefProperties_ = null; + if (nonRefPropertiesBuilder_ != null) { + nonRefPropertiesBuilder_.dispose(); + nonRefPropertiesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Struct non_ref_properties = 1; + */ + public com.google.protobuf.Struct.Builder getNonRefPropertiesBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getNonRefPropertiesFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Struct non_ref_properties = 1; + */ + public com.google.protobuf.StructOrBuilder getNonRefPropertiesOrBuilder() { + if (nonRefPropertiesBuilder_ != null) { + return nonRefPropertiesBuilder_.getMessageOrBuilder(); + } else { + return nonRefProperties_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : nonRefProperties_; + } + } + /** + * .google.protobuf.Struct non_ref_properties = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getNonRefPropertiesFieldBuilder() { + if (nonRefPropertiesBuilder_ == null) { + nonRefPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getNonRefProperties(), + getParentForChildren(), + isClean()); + nonRefProperties_ = null; + } + return nonRefPropertiesBuilder_; + } + + private java.util.List refPropsSingle_ = + java.util.Collections.emptyList(); + private void ensureRefPropsSingleIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + refPropsSingle_ = new java.util.ArrayList(refPropsSingle_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTargetOrBuilder> refPropsSingleBuilder_; + + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + public java.util.List getRefPropsSingleList() { + if (refPropsSingleBuilder_ == null) { + return java.util.Collections.unmodifiableList(refPropsSingle_); + } else { + return refPropsSingleBuilder_.getMessageList(); + } + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + public int getRefPropsSingleCount() { + if (refPropsSingleBuilder_ == null) { + return refPropsSingle_.size(); + } else { + return refPropsSingleBuilder_.getCount(); + } + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget getRefPropsSingle(int index) { + if (refPropsSingleBuilder_ == null) { + return refPropsSingle_.get(index); + } else { + return refPropsSingleBuilder_.getMessage(index); + } + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + public Builder setRefPropsSingle( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget value) { + if (refPropsSingleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefPropsSingleIsMutable(); + refPropsSingle_.set(index, value); + onChanged(); + } else { + refPropsSingleBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + public Builder setRefPropsSingle( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder builderForValue) { + if (refPropsSingleBuilder_ == null) { + ensureRefPropsSingleIsMutable(); + refPropsSingle_.set(index, builderForValue.build()); + onChanged(); + } else { + refPropsSingleBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + public Builder addRefPropsSingle(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget value) { + if (refPropsSingleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefPropsSingleIsMutable(); + refPropsSingle_.add(value); + onChanged(); + } else { + refPropsSingleBuilder_.addMessage(value); + } + return this; + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + public Builder addRefPropsSingle( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget value) { + if (refPropsSingleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefPropsSingleIsMutable(); + refPropsSingle_.add(index, value); + onChanged(); + } else { + refPropsSingleBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + public Builder addRefPropsSingle( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder builderForValue) { + if (refPropsSingleBuilder_ == null) { + ensureRefPropsSingleIsMutable(); + refPropsSingle_.add(builderForValue.build()); + onChanged(); + } else { + refPropsSingleBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + public Builder addRefPropsSingle( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder builderForValue) { + if (refPropsSingleBuilder_ == null) { + ensureRefPropsSingleIsMutable(); + refPropsSingle_.add(index, builderForValue.build()); + onChanged(); + } else { + refPropsSingleBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + public Builder addAllRefPropsSingle( + java.lang.Iterable values) { + if (refPropsSingleBuilder_ == null) { + ensureRefPropsSingleIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, refPropsSingle_); + onChanged(); + } else { + refPropsSingleBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + public Builder clearRefPropsSingle() { + if (refPropsSingleBuilder_ == null) { + refPropsSingle_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + refPropsSingleBuilder_.clear(); + } + return this; + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + public Builder removeRefPropsSingle(int index) { + if (refPropsSingleBuilder_ == null) { + ensureRefPropsSingleIsMutable(); + refPropsSingle_.remove(index); + onChanged(); + } else { + refPropsSingleBuilder_.remove(index); + } + return this; + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder getRefPropsSingleBuilder( + int index) { + return getRefPropsSingleFieldBuilder().getBuilder(index); + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTargetOrBuilder getRefPropsSingleOrBuilder( + int index) { + if (refPropsSingleBuilder_ == null) { + return refPropsSingle_.get(index); } else { + return refPropsSingleBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + public java.util.List + getRefPropsSingleOrBuilderList() { + if (refPropsSingleBuilder_ != null) { + return refPropsSingleBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(refPropsSingle_); + } + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder addRefPropsSingleBuilder() { + return getRefPropsSingleFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.getDefaultInstance()); + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder addRefPropsSingleBuilder( + int index) { + return getRefPropsSingleFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.getDefaultInstance()); + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2; + */ + public java.util.List + getRefPropsSingleBuilderList() { + return getRefPropsSingleFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTargetOrBuilder> + getRefPropsSingleFieldBuilder() { + if (refPropsSingleBuilder_ == null) { + refPropsSingleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTargetOrBuilder>( + refPropsSingle_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + refPropsSingle_ = null; + } + return refPropsSingleBuilder_; + } + + private java.util.List refPropsMulti_ = + java.util.Collections.emptyList(); + private void ensureRefPropsMultiIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + refPropsMulti_ = new java.util.ArrayList(refPropsMulti_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTargetOrBuilder> refPropsMultiBuilder_; + + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + public java.util.List getRefPropsMultiList() { + if (refPropsMultiBuilder_ == null) { + return java.util.Collections.unmodifiableList(refPropsMulti_); + } else { + return refPropsMultiBuilder_.getMessageList(); + } + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + public int getRefPropsMultiCount() { + if (refPropsMultiBuilder_ == null) { + return refPropsMulti_.size(); + } else { + return refPropsMultiBuilder_.getCount(); + } + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget getRefPropsMulti(int index) { + if (refPropsMultiBuilder_ == null) { + return refPropsMulti_.get(index); + } else { + return refPropsMultiBuilder_.getMessage(index); + } + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + public Builder setRefPropsMulti( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget value) { + if (refPropsMultiBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefPropsMultiIsMutable(); + refPropsMulti_.set(index, value); + onChanged(); + } else { + refPropsMultiBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + public Builder setRefPropsMulti( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder builderForValue) { + if (refPropsMultiBuilder_ == null) { + ensureRefPropsMultiIsMutable(); + refPropsMulti_.set(index, builderForValue.build()); + onChanged(); + } else { + refPropsMultiBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + public Builder addRefPropsMulti(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget value) { + if (refPropsMultiBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefPropsMultiIsMutable(); + refPropsMulti_.add(value); + onChanged(); + } else { + refPropsMultiBuilder_.addMessage(value); + } + return this; + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + public Builder addRefPropsMulti( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget value) { + if (refPropsMultiBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefPropsMultiIsMutable(); + refPropsMulti_.add(index, value); + onChanged(); + } else { + refPropsMultiBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + public Builder addRefPropsMulti( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder builderForValue) { + if (refPropsMultiBuilder_ == null) { + ensureRefPropsMultiIsMutable(); + refPropsMulti_.add(builderForValue.build()); + onChanged(); + } else { + refPropsMultiBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + public Builder addRefPropsMulti( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder builderForValue) { + if (refPropsMultiBuilder_ == null) { + ensureRefPropsMultiIsMutable(); + refPropsMulti_.add(index, builderForValue.build()); + onChanged(); + } else { + refPropsMultiBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + public Builder addAllRefPropsMulti( + java.lang.Iterable values) { + if (refPropsMultiBuilder_ == null) { + ensureRefPropsMultiIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, refPropsMulti_); + onChanged(); + } else { + refPropsMultiBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + public Builder clearRefPropsMulti() { + if (refPropsMultiBuilder_ == null) { + refPropsMulti_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + refPropsMultiBuilder_.clear(); + } + return this; + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + public Builder removeRefPropsMulti(int index) { + if (refPropsMultiBuilder_ == null) { + ensureRefPropsMultiIsMutable(); + refPropsMulti_.remove(index); + onChanged(); + } else { + refPropsMultiBuilder_.remove(index); + } + return this; + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder getRefPropsMultiBuilder( + int index) { + return getRefPropsMultiFieldBuilder().getBuilder(index); + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTargetOrBuilder getRefPropsMultiOrBuilder( + int index) { + if (refPropsMultiBuilder_ == null) { + return refPropsMulti_.get(index); } else { + return refPropsMultiBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + public java.util.List + getRefPropsMultiOrBuilderList() { + if (refPropsMultiBuilder_ != null) { + return refPropsMultiBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(refPropsMulti_); + } + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder addRefPropsMultiBuilder() { + return getRefPropsMultiFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.getDefaultInstance()); + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder addRefPropsMultiBuilder( + int index) { + return getRefPropsMultiFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.getDefaultInstance()); + } + /** + *
+         * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+         * 
+ * + * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3; + */ + public java.util.List + getRefPropsMultiBuilderList() { + return getRefPropsMultiFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTargetOrBuilder> + getRefPropsMultiFieldBuilder() { + if (refPropsMultiBuilder_ == null) { + refPropsMultiBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTargetOrBuilder>( + refPropsMulti_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + refPropsMulti_ = null; + } + return refPropsMultiBuilder_; + } + + private java.util.List numberArrayProperties_ = + java.util.Collections.emptyList(); + private void ensureNumberArrayPropertiesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + numberArrayProperties_ = new java.util.ArrayList(numberArrayProperties_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayPropertiesOrBuilder> numberArrayPropertiesBuilder_; + + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + public java.util.List getNumberArrayPropertiesList() { + if (numberArrayPropertiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(numberArrayProperties_); + } else { + return numberArrayPropertiesBuilder_.getMessageList(); + } + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + public int getNumberArrayPropertiesCount() { + if (numberArrayPropertiesBuilder_ == null) { + return numberArrayProperties_.size(); + } else { + return numberArrayPropertiesBuilder_.getCount(); + } + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties getNumberArrayProperties(int index) { + if (numberArrayPropertiesBuilder_ == null) { + return numberArrayProperties_.get(index); + } else { + return numberArrayPropertiesBuilder_.getMessage(index); + } + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + public Builder setNumberArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties value) { + if (numberArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNumberArrayPropertiesIsMutable(); + numberArrayProperties_.set(index, value); + onChanged(); + } else { + numberArrayPropertiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + public Builder setNumberArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder builderForValue) { + if (numberArrayPropertiesBuilder_ == null) { + ensureNumberArrayPropertiesIsMutable(); + numberArrayProperties_.set(index, builderForValue.build()); + onChanged(); + } else { + numberArrayPropertiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + public Builder addNumberArrayProperties(io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties value) { + if (numberArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNumberArrayPropertiesIsMutable(); + numberArrayProperties_.add(value); + onChanged(); + } else { + numberArrayPropertiesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + public Builder addNumberArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties value) { + if (numberArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNumberArrayPropertiesIsMutable(); + numberArrayProperties_.add(index, value); + onChanged(); + } else { + numberArrayPropertiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + public Builder addNumberArrayProperties( + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder builderForValue) { + if (numberArrayPropertiesBuilder_ == null) { + ensureNumberArrayPropertiesIsMutable(); + numberArrayProperties_.add(builderForValue.build()); + onChanged(); + } else { + numberArrayPropertiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + public Builder addNumberArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder builderForValue) { + if (numberArrayPropertiesBuilder_ == null) { + ensureNumberArrayPropertiesIsMutable(); + numberArrayProperties_.add(index, builderForValue.build()); + onChanged(); + } else { + numberArrayPropertiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + public Builder addAllNumberArrayProperties( + java.lang.Iterable values) { + if (numberArrayPropertiesBuilder_ == null) { + ensureNumberArrayPropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, numberArrayProperties_); + onChanged(); + } else { + numberArrayPropertiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + public Builder clearNumberArrayProperties() { + if (numberArrayPropertiesBuilder_ == null) { + numberArrayProperties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + numberArrayPropertiesBuilder_.clear(); + } + return this; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + public Builder removeNumberArrayProperties(int index) { + if (numberArrayPropertiesBuilder_ == null) { + ensureNumberArrayPropertiesIsMutable(); + numberArrayProperties_.remove(index); + onChanged(); + } else { + numberArrayPropertiesBuilder_.remove(index); + } + return this; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder getNumberArrayPropertiesBuilder( + int index) { + return getNumberArrayPropertiesFieldBuilder().getBuilder(index); + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayPropertiesOrBuilder getNumberArrayPropertiesOrBuilder( + int index) { + if (numberArrayPropertiesBuilder_ == null) { + return numberArrayProperties_.get(index); } else { + return numberArrayPropertiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + public java.util.List + getNumberArrayPropertiesOrBuilderList() { + if (numberArrayPropertiesBuilder_ != null) { + return numberArrayPropertiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(numberArrayProperties_); + } + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder addNumberArrayPropertiesBuilder() { + return getNumberArrayPropertiesFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder addNumberArrayPropertiesBuilder( + int index) { + return getNumberArrayPropertiesFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4; + */ + public java.util.List + getNumberArrayPropertiesBuilderList() { + return getNumberArrayPropertiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayPropertiesOrBuilder> + getNumberArrayPropertiesFieldBuilder() { + if (numberArrayPropertiesBuilder_ == null) { + numberArrayPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayPropertiesOrBuilder>( + numberArrayProperties_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + numberArrayProperties_ = null; + } + return numberArrayPropertiesBuilder_; + } + + private java.util.List intArrayProperties_ = + java.util.Collections.emptyList(); + private void ensureIntArrayPropertiesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + intArrayProperties_ = new java.util.ArrayList(intArrayProperties_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayPropertiesOrBuilder> intArrayPropertiesBuilder_; + + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + public java.util.List getIntArrayPropertiesList() { + if (intArrayPropertiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(intArrayProperties_); + } else { + return intArrayPropertiesBuilder_.getMessageList(); + } + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + public int getIntArrayPropertiesCount() { + if (intArrayPropertiesBuilder_ == null) { + return intArrayProperties_.size(); + } else { + return intArrayPropertiesBuilder_.getCount(); + } + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties getIntArrayProperties(int index) { + if (intArrayPropertiesBuilder_ == null) { + return intArrayProperties_.get(index); + } else { + return intArrayPropertiesBuilder_.getMessage(index); + } + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + public Builder setIntArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties value) { + if (intArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIntArrayPropertiesIsMutable(); + intArrayProperties_.set(index, value); + onChanged(); + } else { + intArrayPropertiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + public Builder setIntArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder builderForValue) { + if (intArrayPropertiesBuilder_ == null) { + ensureIntArrayPropertiesIsMutable(); + intArrayProperties_.set(index, builderForValue.build()); + onChanged(); + } else { + intArrayPropertiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + public Builder addIntArrayProperties(io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties value) { + if (intArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIntArrayPropertiesIsMutable(); + intArrayProperties_.add(value); + onChanged(); + } else { + intArrayPropertiesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + public Builder addIntArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties value) { + if (intArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIntArrayPropertiesIsMutable(); + intArrayProperties_.add(index, value); + onChanged(); + } else { + intArrayPropertiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + public Builder addIntArrayProperties( + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder builderForValue) { + if (intArrayPropertiesBuilder_ == null) { + ensureIntArrayPropertiesIsMutable(); + intArrayProperties_.add(builderForValue.build()); + onChanged(); + } else { + intArrayPropertiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + public Builder addIntArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder builderForValue) { + if (intArrayPropertiesBuilder_ == null) { + ensureIntArrayPropertiesIsMutable(); + intArrayProperties_.add(index, builderForValue.build()); + onChanged(); + } else { + intArrayPropertiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + public Builder addAllIntArrayProperties( + java.lang.Iterable values) { + if (intArrayPropertiesBuilder_ == null) { + ensureIntArrayPropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, intArrayProperties_); + onChanged(); + } else { + intArrayPropertiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + public Builder clearIntArrayProperties() { + if (intArrayPropertiesBuilder_ == null) { + intArrayProperties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + intArrayPropertiesBuilder_.clear(); + } + return this; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + public Builder removeIntArrayProperties(int index) { + if (intArrayPropertiesBuilder_ == null) { + ensureIntArrayPropertiesIsMutable(); + intArrayProperties_.remove(index); + onChanged(); + } else { + intArrayPropertiesBuilder_.remove(index); + } + return this; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder getIntArrayPropertiesBuilder( + int index) { + return getIntArrayPropertiesFieldBuilder().getBuilder(index); + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayPropertiesOrBuilder getIntArrayPropertiesOrBuilder( + int index) { + if (intArrayPropertiesBuilder_ == null) { + return intArrayProperties_.get(index); } else { + return intArrayPropertiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + public java.util.List + getIntArrayPropertiesOrBuilderList() { + if (intArrayPropertiesBuilder_ != null) { + return intArrayPropertiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(intArrayProperties_); + } + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder addIntArrayPropertiesBuilder() { + return getIntArrayPropertiesFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder addIntArrayPropertiesBuilder( + int index) { + return getIntArrayPropertiesFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5; + */ + public java.util.List + getIntArrayPropertiesBuilderList() { + return getIntArrayPropertiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayPropertiesOrBuilder> + getIntArrayPropertiesFieldBuilder() { + if (intArrayPropertiesBuilder_ == null) { + intArrayPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayPropertiesOrBuilder>( + intArrayProperties_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + intArrayProperties_ = null; + } + return intArrayPropertiesBuilder_; + } + + private java.util.List textArrayProperties_ = + java.util.Collections.emptyList(); + private void ensureTextArrayPropertiesIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + textArrayProperties_ = new java.util.ArrayList(textArrayProperties_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayPropertiesOrBuilder> textArrayPropertiesBuilder_; + + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + public java.util.List getTextArrayPropertiesList() { + if (textArrayPropertiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(textArrayProperties_); + } else { + return textArrayPropertiesBuilder_.getMessageList(); + } + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + public int getTextArrayPropertiesCount() { + if (textArrayPropertiesBuilder_ == null) { + return textArrayProperties_.size(); + } else { + return textArrayPropertiesBuilder_.getCount(); + } + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties getTextArrayProperties(int index) { + if (textArrayPropertiesBuilder_ == null) { + return textArrayProperties_.get(index); + } else { + return textArrayPropertiesBuilder_.getMessage(index); + } + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + public Builder setTextArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties value) { + if (textArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTextArrayPropertiesIsMutable(); + textArrayProperties_.set(index, value); + onChanged(); + } else { + textArrayPropertiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + public Builder setTextArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder builderForValue) { + if (textArrayPropertiesBuilder_ == null) { + ensureTextArrayPropertiesIsMutable(); + textArrayProperties_.set(index, builderForValue.build()); + onChanged(); + } else { + textArrayPropertiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + public Builder addTextArrayProperties(io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties value) { + if (textArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTextArrayPropertiesIsMutable(); + textArrayProperties_.add(value); + onChanged(); + } else { + textArrayPropertiesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + public Builder addTextArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties value) { + if (textArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTextArrayPropertiesIsMutable(); + textArrayProperties_.add(index, value); + onChanged(); + } else { + textArrayPropertiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + public Builder addTextArrayProperties( + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder builderForValue) { + if (textArrayPropertiesBuilder_ == null) { + ensureTextArrayPropertiesIsMutable(); + textArrayProperties_.add(builderForValue.build()); + onChanged(); + } else { + textArrayPropertiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + public Builder addTextArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder builderForValue) { + if (textArrayPropertiesBuilder_ == null) { + ensureTextArrayPropertiesIsMutable(); + textArrayProperties_.add(index, builderForValue.build()); + onChanged(); + } else { + textArrayPropertiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + public Builder addAllTextArrayProperties( + java.lang.Iterable values) { + if (textArrayPropertiesBuilder_ == null) { + ensureTextArrayPropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, textArrayProperties_); + onChanged(); + } else { + textArrayPropertiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + public Builder clearTextArrayProperties() { + if (textArrayPropertiesBuilder_ == null) { + textArrayProperties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + textArrayPropertiesBuilder_.clear(); + } + return this; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + public Builder removeTextArrayProperties(int index) { + if (textArrayPropertiesBuilder_ == null) { + ensureTextArrayPropertiesIsMutable(); + textArrayProperties_.remove(index); + onChanged(); + } else { + textArrayPropertiesBuilder_.remove(index); + } + return this; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder getTextArrayPropertiesBuilder( + int index) { + return getTextArrayPropertiesFieldBuilder().getBuilder(index); + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayPropertiesOrBuilder getTextArrayPropertiesOrBuilder( + int index) { + if (textArrayPropertiesBuilder_ == null) { + return textArrayProperties_.get(index); } else { + return textArrayPropertiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + public java.util.List + getTextArrayPropertiesOrBuilderList() { + if (textArrayPropertiesBuilder_ != null) { + return textArrayPropertiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(textArrayProperties_); + } + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder addTextArrayPropertiesBuilder() { + return getTextArrayPropertiesFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder addTextArrayPropertiesBuilder( + int index) { + return getTextArrayPropertiesFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6; + */ + public java.util.List + getTextArrayPropertiesBuilderList() { + return getTextArrayPropertiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayPropertiesOrBuilder> + getTextArrayPropertiesFieldBuilder() { + if (textArrayPropertiesBuilder_ == null) { + textArrayPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayPropertiesOrBuilder>( + textArrayProperties_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + textArrayProperties_ = null; + } + return textArrayPropertiesBuilder_; + } + + private java.util.List booleanArrayProperties_ = + java.util.Collections.emptyList(); + private void ensureBooleanArrayPropertiesIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + booleanArrayProperties_ = new java.util.ArrayList(booleanArrayProperties_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayPropertiesOrBuilder> booleanArrayPropertiesBuilder_; + + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + public java.util.List getBooleanArrayPropertiesList() { + if (booleanArrayPropertiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(booleanArrayProperties_); + } else { + return booleanArrayPropertiesBuilder_.getMessageList(); + } + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + public int getBooleanArrayPropertiesCount() { + if (booleanArrayPropertiesBuilder_ == null) { + return booleanArrayProperties_.size(); + } else { + return booleanArrayPropertiesBuilder_.getCount(); + } + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties getBooleanArrayProperties(int index) { + if (booleanArrayPropertiesBuilder_ == null) { + return booleanArrayProperties_.get(index); + } else { + return booleanArrayPropertiesBuilder_.getMessage(index); + } + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + public Builder setBooleanArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties value) { + if (booleanArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBooleanArrayPropertiesIsMutable(); + booleanArrayProperties_.set(index, value); + onChanged(); + } else { + booleanArrayPropertiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + public Builder setBooleanArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder builderForValue) { + if (booleanArrayPropertiesBuilder_ == null) { + ensureBooleanArrayPropertiesIsMutable(); + booleanArrayProperties_.set(index, builderForValue.build()); + onChanged(); + } else { + booleanArrayPropertiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + public Builder addBooleanArrayProperties(io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties value) { + if (booleanArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBooleanArrayPropertiesIsMutable(); + booleanArrayProperties_.add(value); + onChanged(); + } else { + booleanArrayPropertiesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + public Builder addBooleanArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties value) { + if (booleanArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBooleanArrayPropertiesIsMutable(); + booleanArrayProperties_.add(index, value); + onChanged(); + } else { + booleanArrayPropertiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + public Builder addBooleanArrayProperties( + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder builderForValue) { + if (booleanArrayPropertiesBuilder_ == null) { + ensureBooleanArrayPropertiesIsMutable(); + booleanArrayProperties_.add(builderForValue.build()); + onChanged(); + } else { + booleanArrayPropertiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + public Builder addBooleanArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder builderForValue) { + if (booleanArrayPropertiesBuilder_ == null) { + ensureBooleanArrayPropertiesIsMutable(); + booleanArrayProperties_.add(index, builderForValue.build()); + onChanged(); + } else { + booleanArrayPropertiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + public Builder addAllBooleanArrayProperties( + java.lang.Iterable values) { + if (booleanArrayPropertiesBuilder_ == null) { + ensureBooleanArrayPropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, booleanArrayProperties_); + onChanged(); + } else { + booleanArrayPropertiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + public Builder clearBooleanArrayProperties() { + if (booleanArrayPropertiesBuilder_ == null) { + booleanArrayProperties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + booleanArrayPropertiesBuilder_.clear(); + } + return this; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + public Builder removeBooleanArrayProperties(int index) { + if (booleanArrayPropertiesBuilder_ == null) { + ensureBooleanArrayPropertiesIsMutable(); + booleanArrayProperties_.remove(index); + onChanged(); + } else { + booleanArrayPropertiesBuilder_.remove(index); + } + return this; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder getBooleanArrayPropertiesBuilder( + int index) { + return getBooleanArrayPropertiesFieldBuilder().getBuilder(index); + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayPropertiesOrBuilder getBooleanArrayPropertiesOrBuilder( + int index) { + if (booleanArrayPropertiesBuilder_ == null) { + return booleanArrayProperties_.get(index); } else { + return booleanArrayPropertiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + public java.util.List + getBooleanArrayPropertiesOrBuilderList() { + if (booleanArrayPropertiesBuilder_ != null) { + return booleanArrayPropertiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(booleanArrayProperties_); + } + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder addBooleanArrayPropertiesBuilder() { + return getBooleanArrayPropertiesFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder addBooleanArrayPropertiesBuilder( + int index) { + return getBooleanArrayPropertiesFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7; + */ + public java.util.List + getBooleanArrayPropertiesBuilderList() { + return getBooleanArrayPropertiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayPropertiesOrBuilder> + getBooleanArrayPropertiesFieldBuilder() { + if (booleanArrayPropertiesBuilder_ == null) { + booleanArrayPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayPropertiesOrBuilder>( + booleanArrayProperties_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + booleanArrayProperties_ = null; + } + return booleanArrayPropertiesBuilder_; + } + @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:weaviategrpc.BatchObject.Properties) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.BatchObject.Properties) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Properties 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RefPropertiesSingleTargetOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.BatchObject.RefPropertiesSingleTarget) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string uuids = 1; + * @return A list containing the uuids. + */ + java.util.List + getUuidsList(); + /** + * repeated string uuids = 1; + * @return The count of uuids. + */ + int getUuidsCount(); + /** + * repeated string uuids = 1; + * @param index The index of the element to return. + * @return The uuids at the given index. + */ + java.lang.String getUuids(int index); + /** + * repeated string uuids = 1; + * @param index The index of the value to return. + * @return The bytes of the uuids at the given index. + */ + com.google.protobuf.ByteString + getUuidsBytes(int index); + + /** + * string prop_name = 2; + * @return The propName. + */ + java.lang.String getPropName(); + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + com.google.protobuf.ByteString + getPropNameBytes(); + } + /** + * Protobuf type {@code weaviategrpc.BatchObject.RefPropertiesSingleTarget} + */ + public static final class RefPropertiesSingleTarget extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.BatchObject.RefPropertiesSingleTarget) + RefPropertiesSingleTargetOrBuilder { + private static final long serialVersionUID = 0L; + // Use RefPropertiesSingleTarget.newBuilder() to construct. + private RefPropertiesSingleTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RefPropertiesSingleTarget() { + uuids_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + propName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RefPropertiesSingleTarget(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_RefPropertiesSingleTarget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_RefPropertiesSingleTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder.class); + } + + public static final int UUIDS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList uuids_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string uuids = 1; + * @return A list containing the uuids. + */ + public com.google.protobuf.ProtocolStringList + getUuidsList() { + return uuids_; + } + /** + * repeated string uuids = 1; + * @return The count of uuids. + */ + public int getUuidsCount() { + return uuids_.size(); + } + /** + * repeated string uuids = 1; + * @param index The index of the element to return. + * @return The uuids at the given index. + */ + public java.lang.String getUuids(int index) { + return uuids_.get(index); + } + /** + * repeated string uuids = 1; + * @param index The index of the value to return. + * @return The bytes of the uuids at the given index. + */ + public com.google.protobuf.ByteString + getUuidsBytes(int index) { + return uuids_.getByteString(index); + } + + public static final int PROP_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object propName_ = ""; + /** + * string prop_name = 2; + * @return The propName. + */ + @java.lang.Override + public java.lang.String getPropName() { + java.lang.Object ref = propName_; + 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(); + propName_ = s; + return s; + } + } + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPropNameBytes() { + java.lang.Object ref = propName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + propName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 < uuids_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuids_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, propName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < uuids_.size(); i++) { + dataSize += computeStringSizeNoTag(uuids_.getRaw(i)); + } + size += dataSize; + size += 1 * getUuidsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, propName_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget other = (io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget) obj; + + if (!getUuidsList() + .equals(other.getUuidsList())) return false; + if (!getPropName() + .equals(other.getPropName())) 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 (getUuidsCount() > 0) { + hash = (37 * hash) + UUIDS_FIELD_NUMBER; + hash = (53 * hash) + getUuidsList().hashCode(); + } + hash = (37 * hash) + PROP_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPropName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget 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 weaviategrpc.BatchObject.RefPropertiesSingleTarget} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.BatchObject.RefPropertiesSingleTarget) + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTargetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_RefPropertiesSingleTarget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_RefPropertiesSingleTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uuids_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + propName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_RefPropertiesSingleTarget_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget build() { + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget result = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + uuids_.makeImmutable(); + result.uuids_ = uuids_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.propName_ = propName_; + } + } + + @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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.getDefaultInstance()) return this; + if (!other.uuids_.isEmpty()) { + if (uuids_.isEmpty()) { + uuids_ = other.uuids_; + bitField0_ |= 0x00000001; + } else { + ensureUuidsIsMutable(); + uuids_.addAll(other.uuids_); + } + onChanged(); + } + if (!other.getPropName().isEmpty()) { + propName_ = other.propName_; + bitField0_ |= 0x00000002; + 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: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUuidsIsMutable(); + uuids_.add(s); + break; + } // case 10 + case 18: { + propName_ = input.readStringRequireUtf8(); + 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.google.protobuf.LazyStringArrayList uuids_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUuidsIsMutable() { + if (!uuids_.isModifiable()) { + uuids_ = new com.google.protobuf.LazyStringArrayList(uuids_); + } + bitField0_ |= 0x00000001; + } + /** + * repeated string uuids = 1; + * @return A list containing the uuids. + */ + public com.google.protobuf.ProtocolStringList + getUuidsList() { + uuids_.makeImmutable(); + return uuids_; + } + /** + * repeated string uuids = 1; + * @return The count of uuids. + */ + public int getUuidsCount() { + return uuids_.size(); + } + /** + * repeated string uuids = 1; + * @param index The index of the element to return. + * @return The uuids at the given index. + */ + public java.lang.String getUuids(int index) { + return uuids_.get(index); + } + /** + * repeated string uuids = 1; + * @param index The index of the value to return. + * @return The bytes of the uuids at the given index. + */ + public com.google.protobuf.ByteString + getUuidsBytes(int index) { + return uuids_.getByteString(index); + } + /** + * repeated string uuids = 1; + * @param index The index to set the value at. + * @param value The uuids to set. + * @return This builder for chaining. + */ + public Builder setUuids( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUuidsIsMutable(); + uuids_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string uuids = 1; + * @param value The uuids to add. + * @return This builder for chaining. + */ + public Builder addUuids( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUuidsIsMutable(); + uuids_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string uuids = 1; + * @param values The uuids to add. + * @return This builder for chaining. + */ + public Builder addAllUuids( + java.lang.Iterable values) { + ensureUuidsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uuids_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string uuids = 1; + * @return This builder for chaining. + */ + public Builder clearUuids() { + uuids_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + * repeated string uuids = 1; + * @param value The bytes of the uuids to add. + * @return This builder for chaining. + */ + public Builder addUuidsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureUuidsIsMutable(); + uuids_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object propName_ = ""; + /** + * string prop_name = 2; + * @return The propName. + */ + public java.lang.String getPropName() { + java.lang.Object ref = propName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + propName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + public com.google.protobuf.ByteString + getPropNameBytes() { + java.lang.Object ref = propName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + propName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string prop_name = 2; + * @param value The propName to set. + * @return This builder for chaining. + */ + public Builder setPropName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + propName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string prop_name = 2; + * @return This builder for chaining. + */ + public Builder clearPropName() { + propName_ = getDefaultInstance().getPropName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string prop_name = 2; + * @param value The bytes for propName to set. + * @return This builder for chaining. + */ + public Builder setPropNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + propName_ = value; + bitField0_ |= 0x00000002; + 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:weaviategrpc.BatchObject.RefPropertiesSingleTarget) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.BatchObject.RefPropertiesSingleTarget) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RefPropertiesSingleTarget 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RefPropertiesMultiTargetOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.BatchObject.RefPropertiesMultiTarget) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string uuids = 1; + * @return A list containing the uuids. + */ + java.util.List + getUuidsList(); + /** + * repeated string uuids = 1; + * @return The count of uuids. + */ + int getUuidsCount(); + /** + * repeated string uuids = 1; + * @param index The index of the element to return. + * @return The uuids at the given index. + */ + java.lang.String getUuids(int index); + /** + * repeated string uuids = 1; + * @param index The index of the value to return. + * @return The bytes of the uuids at the given index. + */ + com.google.protobuf.ByteString + getUuidsBytes(int index); + + /** + * string prop_name = 2; + * @return The propName. + */ + java.lang.String getPropName(); + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + com.google.protobuf.ByteString + getPropNameBytes(); + + /** + * string target_collection = 3; + * @return The targetCollection. + */ + java.lang.String getTargetCollection(); + /** + * string target_collection = 3; + * @return The bytes for targetCollection. + */ + com.google.protobuf.ByteString + getTargetCollectionBytes(); + } + /** + * Protobuf type {@code weaviategrpc.BatchObject.RefPropertiesMultiTarget} + */ + public static final class RefPropertiesMultiTarget extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.BatchObject.RefPropertiesMultiTarget) + RefPropertiesMultiTargetOrBuilder { + private static final long serialVersionUID = 0L; + // Use RefPropertiesMultiTarget.newBuilder() to construct. + private RefPropertiesMultiTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RefPropertiesMultiTarget() { + uuids_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + propName_ = ""; + targetCollection_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RefPropertiesMultiTarget(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_RefPropertiesMultiTarget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_RefPropertiesMultiTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder.class); + } + + public static final int UUIDS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList uuids_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string uuids = 1; + * @return A list containing the uuids. + */ + public com.google.protobuf.ProtocolStringList + getUuidsList() { + return uuids_; + } + /** + * repeated string uuids = 1; + * @return The count of uuids. + */ + public int getUuidsCount() { + return uuids_.size(); + } + /** + * repeated string uuids = 1; + * @param index The index of the element to return. + * @return The uuids at the given index. + */ + public java.lang.String getUuids(int index) { + return uuids_.get(index); + } + /** + * repeated string uuids = 1; + * @param index The index of the value to return. + * @return The bytes of the uuids at the given index. + */ + public com.google.protobuf.ByteString + getUuidsBytes(int index) { + return uuids_.getByteString(index); + } + + public static final int PROP_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object propName_ = ""; + /** + * string prop_name = 2; + * @return The propName. + */ + @java.lang.Override + public java.lang.String getPropName() { + java.lang.Object ref = propName_; + 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(); + propName_ = s; + return s; + } + } + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPropNameBytes() { + java.lang.Object ref = propName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + propName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_COLLECTION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object targetCollection_ = ""; + /** + * string target_collection = 3; + * @return The targetCollection. + */ + @java.lang.Override + public java.lang.String getTargetCollection() { + java.lang.Object ref = targetCollection_; + 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(); + targetCollection_ = s; + return s; + } + } + /** + * string target_collection = 3; + * @return The bytes for targetCollection. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTargetCollectionBytes() { + java.lang.Object ref = targetCollection_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetCollection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 < uuids_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuids_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, propName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetCollection_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetCollection_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < uuids_.size(); i++) { + dataSize += computeStringSizeNoTag(uuids_.getRaw(i)); + } + size += dataSize; + size += 1 * getUuidsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, propName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetCollection_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetCollection_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget other = (io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget) obj; + + if (!getUuidsList() + .equals(other.getUuidsList())) return false; + if (!getPropName() + .equals(other.getPropName())) return false; + if (!getTargetCollection() + .equals(other.getTargetCollection())) 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 (getUuidsCount() > 0) { + hash = (37 * hash) + UUIDS_FIELD_NUMBER; + hash = (53 * hash) + getUuidsList().hashCode(); + } + hash = (37 * hash) + PROP_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPropName().hashCode(); + hash = (37 * hash) + TARGET_COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getTargetCollection().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget 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 weaviategrpc.BatchObject.RefPropertiesMultiTarget} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.BatchObject.RefPropertiesMultiTarget) + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTargetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_RefPropertiesMultiTarget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_RefPropertiesMultiTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uuids_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + propName_ = ""; + targetCollection_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_RefPropertiesMultiTarget_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget build() { + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget result = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + uuids_.makeImmutable(); + result.uuids_ = uuids_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.propName_ = propName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.targetCollection_ = targetCollection_; + } + } + + @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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.getDefaultInstance()) return this; + if (!other.uuids_.isEmpty()) { + if (uuids_.isEmpty()) { + uuids_ = other.uuids_; + bitField0_ |= 0x00000001; + } else { + ensureUuidsIsMutable(); + uuids_.addAll(other.uuids_); + } + onChanged(); + } + if (!other.getPropName().isEmpty()) { + propName_ = other.propName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTargetCollection().isEmpty()) { + targetCollection_ = other.targetCollection_; + bitField0_ |= 0x00000004; + 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: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUuidsIsMutable(); + uuids_.add(s); + break; + } // case 10 + case 18: { + propName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + targetCollection_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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.google.protobuf.LazyStringArrayList uuids_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUuidsIsMutable() { + if (!uuids_.isModifiable()) { + uuids_ = new com.google.protobuf.LazyStringArrayList(uuids_); + } + bitField0_ |= 0x00000001; + } + /** + * repeated string uuids = 1; + * @return A list containing the uuids. + */ + public com.google.protobuf.ProtocolStringList + getUuidsList() { + uuids_.makeImmutable(); + return uuids_; + } + /** + * repeated string uuids = 1; + * @return The count of uuids. + */ + public int getUuidsCount() { + return uuids_.size(); + } + /** + * repeated string uuids = 1; + * @param index The index of the element to return. + * @return The uuids at the given index. + */ + public java.lang.String getUuids(int index) { + return uuids_.get(index); + } + /** + * repeated string uuids = 1; + * @param index The index of the value to return. + * @return The bytes of the uuids at the given index. + */ + public com.google.protobuf.ByteString + getUuidsBytes(int index) { + return uuids_.getByteString(index); + } + /** + * repeated string uuids = 1; + * @param index The index to set the value at. + * @param value The uuids to set. + * @return This builder for chaining. + */ + public Builder setUuids( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUuidsIsMutable(); + uuids_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string uuids = 1; + * @param value The uuids to add. + * @return This builder for chaining. + */ + public Builder addUuids( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUuidsIsMutable(); + uuids_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string uuids = 1; + * @param values The uuids to add. + * @return This builder for chaining. + */ + public Builder addAllUuids( + java.lang.Iterable values) { + ensureUuidsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uuids_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string uuids = 1; + * @return This builder for chaining. + */ + public Builder clearUuids() { + uuids_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + * repeated string uuids = 1; + * @param value The bytes of the uuids to add. + * @return This builder for chaining. + */ + public Builder addUuidsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureUuidsIsMutable(); + uuids_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object propName_ = ""; + /** + * string prop_name = 2; + * @return The propName. + */ + public java.lang.String getPropName() { + java.lang.Object ref = propName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + propName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + public com.google.protobuf.ByteString + getPropNameBytes() { + java.lang.Object ref = propName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + propName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string prop_name = 2; + * @param value The propName to set. + * @return This builder for chaining. + */ + public Builder setPropName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + propName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string prop_name = 2; + * @return This builder for chaining. + */ + public Builder clearPropName() { + propName_ = getDefaultInstance().getPropName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string prop_name = 2; + * @param value The bytes for propName to set. + * @return This builder for chaining. + */ + public Builder setPropNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + propName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object targetCollection_ = ""; + /** + * string target_collection = 3; + * @return The targetCollection. + */ + public java.lang.String getTargetCollection() { + java.lang.Object ref = targetCollection_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetCollection_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string target_collection = 3; + * @return The bytes for targetCollection. + */ + public com.google.protobuf.ByteString + getTargetCollectionBytes() { + java.lang.Object ref = targetCollection_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetCollection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string target_collection = 3; + * @param value The targetCollection to set. + * @return This builder for chaining. + */ + public Builder setTargetCollection( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + targetCollection_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string target_collection = 3; + * @return This builder for chaining. + */ + public Builder clearTargetCollection() { + targetCollection_ = getDefaultInstance().getTargetCollection(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string target_collection = 3; + * @param value The bytes for targetCollection to set. + * @return This builder for chaining. + */ + public Builder setTargetCollectionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + targetCollection_ = value; + bitField0_ |= 0x00000004; + 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:weaviategrpc.BatchObject.RefPropertiesMultiTarget) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.BatchObject.RefPropertiesMultiTarget) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RefPropertiesMultiTarget 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int UUID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object uuid_ = ""; + /** + * string uuid = 1; + * @return The uuid. + */ + @java.lang.Override + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + 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(); + uuid_ = s; + return s; + } + } + /** + * string uuid = 1; + * @return The bytes for uuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VECTOR_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.FloatList vector_ = + emptyFloatList(); + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 2; + * @return A list containing the vector. + */ + @java.lang.Override + public java.util.List + getVectorList() { + return vector_; + } + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 2; + * @return The count of vector. + */ + public int getVectorCount() { + return vector_.size(); + } + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 2; + * @param index The index of the element to return. + * @return The vector at the given index. + */ + public float getVector(int index) { + return vector_.getFloat(index); + } + private int vectorMemoizedSerializedSize = -1; + + public static final int PROPERTIES_FIELD_NUMBER = 3; + private io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties properties_; + /** + * .weaviategrpc.BatchObject.Properties properties = 3; + * @return Whether the properties field is set. + */ + @java.lang.Override + public boolean hasProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .weaviategrpc.BatchObject.Properties properties = 3; + * @return The properties. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties getProperties() { + return properties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.getDefaultInstance() : properties_; + } + /** + * .weaviategrpc.BatchObject.Properties properties = 3; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.PropertiesOrBuilder getPropertiesOrBuilder() { + return properties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.getDefaultInstance() : properties_; + } + + public static final int CLASS_NAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object className_ = ""; + /** + * string class_name = 4; + * @return The className. + */ + @java.lang.Override + public java.lang.String getClassName() { + java.lang.Object ref = className_; + 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(); + className_ = s; + return s; + } + } + /** + * string class_name = 4; + * @return The bytes for className. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getClassNameBytes() { + java.lang.Object ref = className_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + className_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TENANT_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object tenant_ = ""; + /** + * string tenant = 5; + * @return The tenant. + */ + @java.lang.Override + public java.lang.String getTenant() { + java.lang.Object ref = tenant_; + 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(); + tenant_ = s; + return s; + } + } + /** + * string tenant = 5; + * @return The bytes for tenant. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTenantBytes() { + java.lang.Object ref = tenant_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tenant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuid_); + } + if (getVectorList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(vectorMemoizedSerializedSize); + } + for (int i = 0; i < vector_.size(); i++) { + output.writeFloatNoTag(vector_.getFloat(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getProperties()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(className_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, className_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenant_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tenant_); + } + 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(uuid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uuid_); + } + { + int dataSize = 0; + dataSize = 4 * getVectorList().size(); + size += dataSize; + if (!getVectorList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + vectorMemoizedSerializedSize = dataSize; + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getProperties()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(className_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, className_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenant_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, tenant_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject other = (io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject) obj; + + if (!getUuid() + .equals(other.getUuid())) return false; + if (!getVectorList() + .equals(other.getVectorList())) return false; + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties() + .equals(other.getProperties())) return false; + } + if (!getClassName() + .equals(other.getClassName())) return false; + if (!getTenant() + .equals(other.getTenant())) 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) + UUID_FIELD_NUMBER; + hash = (53 * hash) + getUuid().hashCode(); + if (getVectorCount() > 0) { + hash = (37 * hash) + VECTOR_FIELD_NUMBER; + hash = (53 * hash) + getVectorList().hashCode(); + } + if (hasProperties()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getProperties().hashCode(); + } + hash = (37 * hash) + CLASS_NAME_FIELD_NUMBER; + hash = (53 * hash) + getClassName().hashCode(); + hash = (37 * hash) + TENANT_FIELD_NUMBER; + hash = (53 * hash) + getTenant().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject 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 weaviategrpc.BatchObject} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.BatchObject) + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPropertiesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uuid_ = ""; + vector_ = emptyFloatList(); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + className_ = ""; + tenant_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject build() { + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject result = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uuid_ = uuid_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + vector_.makeImmutable(); + result.vector_ = vector_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.properties_ = propertiesBuilder_ == null + ? properties_ + : propertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.className_ = className_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.tenant_ = tenant_; + } + 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.getDefaultInstance()) return this; + if (!other.getUuid().isEmpty()) { + uuid_ = other.uuid_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.vector_.isEmpty()) { + if (vector_.isEmpty()) { + vector_ = other.vector_; + vector_.makeImmutable(); + bitField0_ |= 0x00000002; + } else { + ensureVectorIsMutable(); + vector_.addAll(other.vector_); + } + onChanged(); + } + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + if (!other.getClassName().isEmpty()) { + className_ = other.className_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getTenant().isEmpty()) { + tenant_ = other.tenant_; + bitField0_ |= 0x00000010; + 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: { + uuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + float v = input.readFloat(); + ensureVectorIsMutable(); + vector_.addFloat(v); + break; + } // case 21 + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + int alloc = length > 4096 ? 4096 : length; + ensureVectorIsMutable(alloc / 4); + while (input.getBytesUntilLimit() > 0) { + vector_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } // case 18 + case 26: { + input.readMessage( + getPropertiesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + className_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + tenant_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 uuid_ = ""; + /** + * string uuid = 1; + * @return The uuid. + */ + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string uuid = 1; + * @return The bytes for uuid. + */ + public com.google.protobuf.ByteString + getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string uuid = 1; + * @param value The uuid to set. + * @return This builder for chaining. + */ + public Builder setUuid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + uuid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string uuid = 1; + * @return This builder for chaining. + */ + public Builder clearUuid() { + uuid_ = getDefaultInstance().getUuid(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string uuid = 1; + * @param value The bytes for uuid to set. + * @return This builder for chaining. + */ + public Builder setUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + uuid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.FloatList vector_ = emptyFloatList(); + private void ensureVectorIsMutable() { + if (!vector_.isModifiable()) { + vector_ = makeMutableCopy(vector_); + } + bitField0_ |= 0x00000002; + } + private void ensureVectorIsMutable(int capacity) { + if (!vector_.isModifiable()) { + vector_ = makeMutableCopy(vector_, capacity); + } + bitField0_ |= 0x00000002; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 2; + * @return A list containing the vector. + */ + public java.util.List + getVectorList() { + vector_.makeImmutable(); + return vector_; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 2; + * @return The count of vector. + */ + public int getVectorCount() { + return vector_.size(); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 2; + * @param index The index of the element to return. + * @return The vector at the given index. + */ + public float getVector(int index) { + return vector_.getFloat(index); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 2; + * @param index The index to set the value at. + * @param value The vector to set. + * @return This builder for chaining. + */ + public Builder setVector( + int index, float value) { + + ensureVectorIsMutable(); + vector_.setFloat(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 2; + * @param value The vector to add. + * @return This builder for chaining. + */ + public Builder addVector(float value) { + + ensureVectorIsMutable(); + vector_.addFloat(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 2; + * @param values The vector to add. + * @return This builder for chaining. + */ + public Builder addAllVector( + java.lang.Iterable values) { + ensureVectorIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vector_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 2; + * @return This builder for chaining. + */ + public Builder clearVector() { + vector_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + private io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties properties_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.PropertiesOrBuilder> propertiesBuilder_; + /** + * .weaviategrpc.BatchObject.Properties properties = 3; + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .weaviategrpc.BatchObject.Properties properties = 3; + * @return The properties. + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.getDefaultInstance() : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + /** + * .weaviategrpc.BatchObject.Properties properties = 3; + */ + public Builder setProperties(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + } else { + propertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .weaviategrpc.BatchObject.Properties properties = 3; + */ + public Builder setProperties( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.Builder builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .weaviategrpc.BatchObject.Properties properties = 3; + */ + public Builder mergeProperties(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties value) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + properties_ != null && + properties_ != io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.getDefaultInstance()) { + getPropertiesBuilder().mergeFrom(value); + } else { + properties_ = value; + } + } else { + propertiesBuilder_.mergeFrom(value); + } + if (properties_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .weaviategrpc.BatchObject.Properties properties = 3; + */ + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000004); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .weaviategrpc.BatchObject.Properties properties = 3; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.Builder getPropertiesBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + /** + * .weaviategrpc.BatchObject.Properties properties = 3; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.PropertiesOrBuilder getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null ? + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.getDefaultInstance() : properties_; + } + } + /** + * .weaviategrpc.BatchObject.Properties properties = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.PropertiesOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.PropertiesOrBuilder>( + getProperties(), + getParentForChildren(), + isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + private java.lang.Object className_ = ""; + /** + * string class_name = 4; + * @return The className. + */ + public java.lang.String getClassName() { + java.lang.Object ref = className_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + className_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string class_name = 4; + * @return The bytes for className. + */ + public com.google.protobuf.ByteString + getClassNameBytes() { + java.lang.Object ref = className_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + className_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string class_name = 4; + * @param value The className to set. + * @return This builder for chaining. + */ + public Builder setClassName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + className_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string class_name = 4; + * @return This builder for chaining. + */ + public Builder clearClassName() { + className_ = getDefaultInstance().getClassName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string class_name = 4; + * @param value The bytes for className to set. + * @return This builder for chaining. + */ + public Builder setClassNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + className_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object tenant_ = ""; + /** + * string tenant = 5; + * @return The tenant. + */ + public java.lang.String getTenant() { + java.lang.Object ref = tenant_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tenant_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string tenant = 5; + * @return The bytes for tenant. + */ + public com.google.protobuf.ByteString + getTenantBytes() { + java.lang.Object ref = tenant_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tenant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string tenant = 5; + * @param value The tenant to set. + * @return This builder for chaining. + */ + public Builder setTenant( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + tenant_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * string tenant = 5; + * @return This builder for chaining. + */ + public Builder clearTenant() { + tenant_ = getDefaultInstance().getTenant(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * string tenant = 5; + * @param value The bytes for tenant to set. + * @return This builder for chaining. + */ + public Builder setTenantBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + tenant_ = value; + bitField0_ |= 0x00000010; + 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:weaviategrpc.BatchObject) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.BatchObject) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchObject 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObject getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BatchObjectsReplyOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.BatchObjectsReply) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + java.util.List + getResultsList(); + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults getResults(int index); + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + int getResultsCount(); + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + java.util.List + getResultsOrBuilderList(); + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResultsOrBuilder getResultsOrBuilder( + int index); + + /** + * float took = 2; + * @return The took. + */ + float getTook(); + } + /** + * Protobuf type {@code weaviategrpc.BatchObjectsReply} + */ + public static final class BatchObjectsReply extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.BatchObjectsReply) + BatchObjectsReplyOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchObjectsReply.newBuilder() to construct. + private BatchObjectsReply(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BatchObjectsReply() { + results_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BatchObjectsReply(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsReply_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsReply_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.Builder.class); + } + + public interface BatchResultsOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.BatchObjectsReply.BatchResults) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 index = 1; + * @return The index. + */ + int getIndex(); + + /** + * string error = 2; + * @return The error. + */ + java.lang.String getError(); + /** + * string error = 2; + * @return The bytes for error. + */ + com.google.protobuf.ByteString + getErrorBytes(); + } + /** + * Protobuf type {@code weaviategrpc.BatchObjectsReply.BatchResults} + */ + public static final class BatchResults extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.BatchObjectsReply.BatchResults) + BatchResultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchResults.newBuilder() to construct. + private BatchResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BatchResults() { + error_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BatchResults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsReply_BatchResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsReply_BatchResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder.class); + } + + public static final int INDEX_FIELD_NUMBER = 1; + private int index_ = 0; + /** + * int32 index = 1; + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + + public static final int ERROR_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object error_ = ""; + /** + * string error = 2; + * @return The error. + */ + @java.lang.Override + public java.lang.String getError() { + java.lang.Object ref = error_; + 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(); + error_ = s; + return s; + } + } + /** + * string error = 2; + * @return The bytes for error. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (index_ != 0) { + output.writeInt32(1, index_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (index_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, index_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults other = (io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults) obj; + + if (getIndex() + != other.getIndex()) return false; + if (!getError() + .equals(other.getError())) 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) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults 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 weaviategrpc.BatchObjectsReply.BatchResults} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.BatchObjectsReply.BatchResults) + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsReply_BatchResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsReply_BatchResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + index_ = 0; + error_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsReply_BatchResults_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults build() { + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults result = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.index_ = index_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.error_ = error_; + } + } + + @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.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.getDefaultInstance()) return this; + if (other.getIndex() != 0) { + setIndex(other.getIndex()); + } + if (!other.getError().isEmpty()) { + error_ = other.error_; + bitField0_ |= 0x00000002; + 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 8: { + index_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + error_ = input.readStringRequireUtf8(); + 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 int index_ ; + /** + * int32 index = 1; + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + /** + * int32 index = 1; + * @param value The index to set. + * @return This builder for chaining. + */ + public Builder setIndex(int value) { + + index_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * int32 index = 1; + * @return This builder for chaining. + */ + public Builder clearIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + index_ = 0; + onChanged(); + return this; + } + + private java.lang.Object error_ = ""; + /** + * string error = 2; + * @return The error. + */ + public java.lang.String getError() { + java.lang.Object ref = error_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string error = 2; + * @return The bytes for error. + */ + public com.google.protobuf.ByteString + getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string error = 2; + * @param value The error to set. + * @return This builder for chaining. + */ + public Builder setError( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + error_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string error = 2; + * @return This builder for chaining. + */ + public Builder clearError() { + error_ = getDefaultInstance().getError(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string error = 2; + * @param value The bytes for error to set. + * @return This builder for chaining. + */ + public Builder setErrorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + error_ = value; + bitField0_ |= 0x00000002; + 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:weaviategrpc.BatchObjectsReply.BatchResults) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.BatchObjectsReply.BatchResults) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchResults 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int RESULTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List results_; + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + @java.lang.Override + public java.util.List getResultsList() { + return results_; + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + @java.lang.Override + public java.util.List + getResultsOrBuilderList() { + return results_; + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + @java.lang.Override + public int getResultsCount() { + return results_.size(); + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults getResults(int index) { + return results_.get(index); + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResultsOrBuilder getResultsOrBuilder( + int index) { + return results_.get(index); + } + + public static final int TOOK_FIELD_NUMBER = 2; + private float took_ = 0F; + /** + * float took = 2; + * @return The took. + */ + @java.lang.Override + public float getTook() { + return took_; + } + + 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 < results_.size(); i++) { + output.writeMessage(1, results_.get(i)); + } + if (java.lang.Float.floatToRawIntBits(took_) != 0) { + output.writeFloat(2, took_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < results_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, results_.get(i)); + } + if (java.lang.Float.floatToRawIntBits(took_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, took_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply other = (io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply) obj; + + if (!getResultsList() + .equals(other.getResultsList())) return false; + if (java.lang.Float.floatToIntBits(getTook()) + != java.lang.Float.floatToIntBits( + other.getTook())) 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 (getResultsCount() > 0) { + hash = (37 * hash) + RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getResultsList().hashCode(); + } + hash = (37 * hash) + TOOK_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getTook()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply 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 weaviategrpc.BatchObjectsReply} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.BatchObjectsReply) + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReplyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsReply_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsReply_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + } else { + results_ = null; + resultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + took_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsReply_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply build() { + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply result = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply result) { + if (resultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + results_ = java.util.Collections.unmodifiableList(results_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.results_ = results_; + } else { + result.results_ = resultsBuilder_.build(); + } + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.took_ = took_; + } + } + + @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.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.getDefaultInstance()) return this; + if (resultsBuilder_ == null) { + if (!other.results_.isEmpty()) { + if (results_.isEmpty()) { + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResultsIsMutable(); + results_.addAll(other.results_); + } + onChanged(); + } + } else { + if (!other.results_.isEmpty()) { + if (resultsBuilder_.isEmpty()) { + resultsBuilder_.dispose(); + resultsBuilder_ = null; + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultsFieldBuilder() : null; + } else { + resultsBuilder_.addAllMessages(other.results_); + } + } + } + if (other.getTook() != 0F) { + setTook(other.getTook()); + } + 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: { + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults m = + input.readMessage( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.parser(), + extensionRegistry); + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(m); + } else { + resultsBuilder_.addMessage(m); + } + break; + } // case 10 + case 21: { + took_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + 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 results_ = + java.util.Collections.emptyList(); + private void ensureResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + results_ = new java.util.ArrayList(results_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResultsOrBuilder> resultsBuilder_; + + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + public java.util.List getResultsList() { + if (resultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(results_); + } else { + return resultsBuilder_.getMessageList(); + } + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + public int getResultsCount() { + if (resultsBuilder_ == null) { + return results_.size(); + } else { + return resultsBuilder_.getCount(); + } + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults getResults(int index) { + if (resultsBuilder_ == null) { + return results_.get(index); + } else { + return resultsBuilder_.getMessage(index); + } + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + public Builder setResults( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.set(index, value); + onChanged(); + } else { + resultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + public Builder setResults( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.set(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + public Builder addResults(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(value); + onChanged(); + } else { + resultsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + public Builder addResults( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(index, value); + onChanged(); + } else { + resultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + public Builder addResults( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + public Builder addResults( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + public Builder addAllResults( + java.lang.Iterable values) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, results_); + onChanged(); + } else { + resultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + public Builder clearResults() { + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resultsBuilder_.clear(); + } + return this; + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + public Builder removeResults(int index) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.remove(index); + onChanged(); + } else { + resultsBuilder_.remove(index); + } + return this; + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder getResultsBuilder( + int index) { + return getResultsFieldBuilder().getBuilder(index); + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResultsOrBuilder getResultsOrBuilder( + int index) { + if (resultsBuilder_ == null) { + return results_.get(index); } else { + return resultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + public java.util.List + getResultsOrBuilderList() { + if (resultsBuilder_ != null) { + return resultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(results_); + } + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder addResultsBuilder() { + return getResultsFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder addResultsBuilder( + int index) { + return getResultsFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1; + */ + public java.util.List + getResultsBuilderList() { + return getResultsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResultsOrBuilder> + getResultsFieldBuilder() { + if (resultsBuilder_ == null) { + resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResultsOrBuilder>( + results_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + results_ = null; + } + return resultsBuilder_; + } + + private float took_ ; + /** + * float took = 2; + * @return The took. + */ + @java.lang.Override + public float getTook() { + return took_; + } + /** + * float took = 2; + * @param value The took to set. + * @return This builder for chaining. + */ + public Builder setTook(float value) { + + took_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * float took = 2; + * @return This builder for chaining. + */ + public Builder clearTook() { + bitField0_ = (bitField0_ & ~0x00000002); + took_ = 0F; + 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:weaviategrpc.BatchObjectsReply) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.BatchObjectsReply) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchObjectsReply 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.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SearchRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.SearchRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string class_name = 1; + * @return The className. + */ + java.lang.String getClassName(); + /** + * string class_name = 1; + * @return The bytes for className. + */ + com.google.protobuf.ByteString + getClassNameBytes(); + + /** + * uint32 limit = 2; + * @return The limit. + */ + int getLimit(); + + /** + * .weaviategrpc.AdditionalProperties additional_properties = 3; + * @return Whether the additionalProperties field is set. + */ + boolean hasAdditionalProperties(); + /** + * .weaviategrpc.AdditionalProperties additional_properties = 3; + * @return The additionalProperties. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties getAdditionalProperties(); + /** + * .weaviategrpc.AdditionalProperties additional_properties = 3; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalPropertiesOrBuilder getAdditionalPropertiesOrBuilder(); + + /** + * .weaviategrpc.NearVectorParams near_vector = 4; + * @return Whether the nearVector field is set. + */ + boolean hasNearVector(); + /** + * .weaviategrpc.NearVectorParams near_vector = 4; + * @return The nearVector. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams getNearVector(); + /** + * .weaviategrpc.NearVectorParams near_vector = 4; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParamsOrBuilder getNearVectorOrBuilder(); + + /** + * .weaviategrpc.NearObjectParams near_object = 5; + * @return Whether the nearObject field is set. + */ + boolean hasNearObject(); + /** + * .weaviategrpc.NearObjectParams near_object = 5; + * @return The nearObject. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams getNearObject(); + /** + * .weaviategrpc.NearObjectParams near_object = 5; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParamsOrBuilder getNearObjectOrBuilder(); + + /** + * .weaviategrpc.Properties properties = 6; + * @return Whether the properties field is set. + */ + boolean hasProperties(); + /** + * .weaviategrpc.Properties properties = 6; + * @return The properties. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.Properties getProperties(); + /** + * .weaviategrpc.Properties properties = 6; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.PropertiesOrBuilder getPropertiesOrBuilder(); + + /** + * .weaviategrpc.HybridSearchParams hybrid_search = 7; + * @return Whether the hybridSearch field is set. + */ + boolean hasHybridSearch(); + /** + * .weaviategrpc.HybridSearchParams hybrid_search = 7; + * @return The hybridSearch. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams getHybridSearch(); + /** + * .weaviategrpc.HybridSearchParams hybrid_search = 7; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParamsOrBuilder getHybridSearchOrBuilder(); + + /** + * .weaviategrpc.BM25SearchParams bm25_search = 8; + * @return Whether the bm25Search field is set. + */ + boolean hasBm25Search(); + /** + * .weaviategrpc.BM25SearchParams bm25_search = 8; + * @return The bm25Search. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams getBm25Search(); + /** + * .weaviategrpc.BM25SearchParams bm25_search = 8; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParamsOrBuilder getBm25SearchOrBuilder(); + + /** + * uint32 offset = 9; + * @return The offset. + */ + int getOffset(); + + /** + * uint32 autocut = 10; + * @return The autocut. + */ + int getAutocut(); + + /** + * string after = 11; + * @return The after. + */ + java.lang.String getAfter(); + /** + * string after = 11; + * @return The bytes for after. + */ + com.google.protobuf.ByteString + getAfterBytes(); + + /** + * string tenant = 12; + * @return The tenant. + */ + java.lang.String getTenant(); + /** + * string tenant = 12; + * @return The bytes for tenant. + */ + com.google.protobuf.ByteString + getTenantBytes(); + + /** + * optional .weaviategrpc.Filters filters = 13; + * @return Whether the filters field is set. + */ + boolean hasFilters(); + /** + * optional .weaviategrpc.Filters filters = 13; + * @return The filters. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.Filters getFilters(); + /** + * optional .weaviategrpc.Filters filters = 13; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder getFiltersOrBuilder(); + + /** + * optional .weaviategrpc.NearTextSearchParams near_text = 14; + * @return Whether the nearText field is set. + */ + boolean hasNearText(); + /** + * optional .weaviategrpc.NearTextSearchParams near_text = 14; + * @return The nearText. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams getNearText(); + /** + * optional .weaviategrpc.NearTextSearchParams near_text = 14; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParamsOrBuilder getNearTextOrBuilder(); + + /** + * optional .weaviategrpc.NearImageSearchParams near_image = 15; + * @return Whether the nearImage field is set. + */ + boolean hasNearImage(); + /** + * optional .weaviategrpc.NearImageSearchParams near_image = 15; + * @return The nearImage. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams getNearImage(); + /** + * optional .weaviategrpc.NearImageSearchParams near_image = 15; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParamsOrBuilder getNearImageOrBuilder(); + + /** + * optional .weaviategrpc.NearAudioSearchParams near_audio = 16; + * @return Whether the nearAudio field is set. + */ + boolean hasNearAudio(); + /** + * optional .weaviategrpc.NearAudioSearchParams near_audio = 16; + * @return The nearAudio. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams getNearAudio(); + /** + * optional .weaviategrpc.NearAudioSearchParams near_audio = 16; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParamsOrBuilder getNearAudioOrBuilder(); + + /** + * optional .weaviategrpc.NearVideoSearchParams near_video = 17; + * @return Whether the nearVideo field is set. + */ + boolean hasNearVideo(); + /** + * optional .weaviategrpc.NearVideoSearchParams near_video = 17; + * @return The nearVideo. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams getNearVideo(); + /** + * optional .weaviategrpc.NearVideoSearchParams near_video = 17; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParamsOrBuilder getNearVideoOrBuilder(); + + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 18; + * @return Whether the consistencyLevel field is set. + */ + boolean hasConsistencyLevel(); + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 18; + * @return The enum numeric value on the wire for consistencyLevel. + */ + int getConsistencyLevelValue(); + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 18; + * @return The consistencyLevel. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel getConsistencyLevel(); + + /** + * optional .weaviategrpc.GenerativeSearch generative = 19; + * @return Whether the generative field is set. + */ + boolean hasGenerative(); + /** + * optional .weaviategrpc.GenerativeSearch generative = 19; + * @return The generative. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch getGenerative(); + /** + * optional .weaviategrpc.GenerativeSearch generative = 19; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearchOrBuilder getGenerativeOrBuilder(); + } + /** + * Protobuf type {@code weaviategrpc.SearchRequest} + */ + public static final class SearchRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.SearchRequest) + SearchRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchRequest.newBuilder() to construct. + private SearchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SearchRequest() { + className_ = ""; + after_ = ""; + tenant_ = ""; + consistencyLevel_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SearchRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_SearchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_SearchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest.class, io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest.Builder.class); + } + + private int bitField0_; + public static final int CLASS_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object className_ = ""; + /** + * string class_name = 1; + * @return The className. + */ + @java.lang.Override + public java.lang.String getClassName() { + java.lang.Object ref = className_; + 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(); + className_ = s; + return s; + } + } + /** + * string class_name = 1; + * @return The bytes for className. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getClassNameBytes() { + java.lang.Object ref = className_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + className_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_ = 0; + /** + * uint32 limit = 2; + * @return The limit. + */ + @java.lang.Override + public int getLimit() { + return limit_; + } + + public static final int ADDITIONAL_PROPERTIES_FIELD_NUMBER = 3; + private io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties additionalProperties_; + /** + * .weaviategrpc.AdditionalProperties additional_properties = 3; + * @return Whether the additionalProperties field is set. + */ + @java.lang.Override + public boolean hasAdditionalProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .weaviategrpc.AdditionalProperties additional_properties = 3; + * @return The additionalProperties. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties getAdditionalProperties() { + return additionalProperties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.getDefaultInstance() : additionalProperties_; + } + /** + * .weaviategrpc.AdditionalProperties additional_properties = 3; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalPropertiesOrBuilder getAdditionalPropertiesOrBuilder() { + return additionalProperties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.getDefaultInstance() : additionalProperties_; + } + + public static final int NEAR_VECTOR_FIELD_NUMBER = 4; + private io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams nearVector_; + /** + * .weaviategrpc.NearVectorParams near_vector = 4; + * @return Whether the nearVector field is set. + */ + @java.lang.Override + public boolean hasNearVector() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .weaviategrpc.NearVectorParams near_vector = 4; + * @return The nearVector. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams getNearVector() { + return nearVector_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.getDefaultInstance() : nearVector_; + } + /** + * .weaviategrpc.NearVectorParams near_vector = 4; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParamsOrBuilder getNearVectorOrBuilder() { + return nearVector_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.getDefaultInstance() : nearVector_; + } + + public static final int NEAR_OBJECT_FIELD_NUMBER = 5; + private io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams nearObject_; + /** + * .weaviategrpc.NearObjectParams near_object = 5; + * @return Whether the nearObject field is set. + */ + @java.lang.Override + public boolean hasNearObject() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .weaviategrpc.NearObjectParams near_object = 5; + * @return The nearObject. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams getNearObject() { + return nearObject_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.getDefaultInstance() : nearObject_; + } + /** + * .weaviategrpc.NearObjectParams near_object = 5; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParamsOrBuilder getNearObjectOrBuilder() { + return nearObject_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.getDefaultInstance() : nearObject_; + } + + public static final int PROPERTIES_FIELD_NUMBER = 6; + private io.weaviate.client.grpc.protocol.WeaviateProto.Properties properties_; + /** + * .weaviategrpc.Properties properties = 6; + * @return Whether the properties field is set. + */ + @java.lang.Override + public boolean hasProperties() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .weaviategrpc.Properties properties = 6; + * @return The properties. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.Properties getProperties() { + return properties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.Properties.getDefaultInstance() : properties_; + } + /** + * .weaviategrpc.Properties properties = 6; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.PropertiesOrBuilder getPropertiesOrBuilder() { + return properties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.Properties.getDefaultInstance() : properties_; + } + + public static final int HYBRID_SEARCH_FIELD_NUMBER = 7; + private io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams hybridSearch_; + /** + * .weaviategrpc.HybridSearchParams hybrid_search = 7; + * @return Whether the hybridSearch field is set. + */ + @java.lang.Override + public boolean hasHybridSearch() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .weaviategrpc.HybridSearchParams hybrid_search = 7; + * @return The hybridSearch. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams getHybridSearch() { + return hybridSearch_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.getDefaultInstance() : hybridSearch_; + } + /** + * .weaviategrpc.HybridSearchParams hybrid_search = 7; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParamsOrBuilder getHybridSearchOrBuilder() { + return hybridSearch_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.getDefaultInstance() : hybridSearch_; + } + + public static final int BM25_SEARCH_FIELD_NUMBER = 8; + private io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams bm25Search_; + /** + * .weaviategrpc.BM25SearchParams bm25_search = 8; + * @return Whether the bm25Search field is set. + */ + @java.lang.Override + public boolean hasBm25Search() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * .weaviategrpc.BM25SearchParams bm25_search = 8; + * @return The bm25Search. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams getBm25Search() { + return bm25Search_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.getDefaultInstance() : bm25Search_; + } + /** + * .weaviategrpc.BM25SearchParams bm25_search = 8; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParamsOrBuilder getBm25SearchOrBuilder() { + return bm25Search_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.getDefaultInstance() : bm25Search_; + } + + public static final int OFFSET_FIELD_NUMBER = 9; + private int offset_ = 0; + /** + * uint32 offset = 9; + * @return The offset. + */ + @java.lang.Override + public int getOffset() { + return offset_; + } + + public static final int AUTOCUT_FIELD_NUMBER = 10; + private int autocut_ = 0; + /** + * uint32 autocut = 10; + * @return The autocut. + */ + @java.lang.Override + public int getAutocut() { + return autocut_; + } + + public static final int AFTER_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile java.lang.Object after_ = ""; + /** + * string after = 11; + * @return The after. + */ + @java.lang.Override + public java.lang.String getAfter() { + java.lang.Object ref = after_; + 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(); + after_ = s; + return s; + } + } + /** + * string after = 11; + * @return The bytes for after. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAfterBytes() { + java.lang.Object ref = after_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + after_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TENANT_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + private volatile java.lang.Object tenant_ = ""; + /** + * string tenant = 12; + * @return The tenant. + */ + @java.lang.Override + public java.lang.String getTenant() { + java.lang.Object ref = tenant_; + 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(); + tenant_ = s; + return s; + } + } + /** + * string tenant = 12; + * @return The bytes for tenant. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTenantBytes() { + java.lang.Object ref = tenant_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tenant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTERS_FIELD_NUMBER = 13; + private io.weaviate.client.grpc.protocol.WeaviateProto.Filters filters_; + /** + * optional .weaviategrpc.Filters filters = 13; + * @return Whether the filters field is set. + */ + @java.lang.Override + public boolean hasFilters() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional .weaviategrpc.Filters filters = 13; + * @return The filters. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.Filters getFilters() { + return filters_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.Filters.getDefaultInstance() : filters_; + } + /** + * optional .weaviategrpc.Filters filters = 13; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder getFiltersOrBuilder() { + return filters_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.Filters.getDefaultInstance() : filters_; + } + + public static final int NEAR_TEXT_FIELD_NUMBER = 14; + private io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams nearText_; + /** + * optional .weaviategrpc.NearTextSearchParams near_text = 14; + * @return Whether the nearText field is set. + */ + @java.lang.Override + public boolean hasNearText() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional .weaviategrpc.NearTextSearchParams near_text = 14; + * @return The nearText. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams getNearText() { + return nearText_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.getDefaultInstance() : nearText_; + } + /** + * optional .weaviategrpc.NearTextSearchParams near_text = 14; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParamsOrBuilder getNearTextOrBuilder() { + return nearText_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.getDefaultInstance() : nearText_; + } + + public static final int NEAR_IMAGE_FIELD_NUMBER = 15; + private io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams nearImage_; + /** + * optional .weaviategrpc.NearImageSearchParams near_image = 15; + * @return Whether the nearImage field is set. + */ + @java.lang.Override + public boolean hasNearImage() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional .weaviategrpc.NearImageSearchParams near_image = 15; + * @return The nearImage. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams getNearImage() { + return nearImage_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.getDefaultInstance() : nearImage_; + } + /** + * optional .weaviategrpc.NearImageSearchParams near_image = 15; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParamsOrBuilder getNearImageOrBuilder() { + return nearImage_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.getDefaultInstance() : nearImage_; + } + + public static final int NEAR_AUDIO_FIELD_NUMBER = 16; + private io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams nearAudio_; + /** + * optional .weaviategrpc.NearAudioSearchParams near_audio = 16; + * @return Whether the nearAudio field is set. + */ + @java.lang.Override + public boolean hasNearAudio() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional .weaviategrpc.NearAudioSearchParams near_audio = 16; + * @return The nearAudio. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams getNearAudio() { + return nearAudio_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.getDefaultInstance() : nearAudio_; + } + /** + * optional .weaviategrpc.NearAudioSearchParams near_audio = 16; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParamsOrBuilder getNearAudioOrBuilder() { + return nearAudio_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.getDefaultInstance() : nearAudio_; + } + + public static final int NEAR_VIDEO_FIELD_NUMBER = 17; + private io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams nearVideo_; + /** + * optional .weaviategrpc.NearVideoSearchParams near_video = 17; + * @return Whether the nearVideo field is set. + */ + @java.lang.Override + public boolean hasNearVideo() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional .weaviategrpc.NearVideoSearchParams near_video = 17; + * @return The nearVideo. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams getNearVideo() { + return nearVideo_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.getDefaultInstance() : nearVideo_; + } + /** + * optional .weaviategrpc.NearVideoSearchParams near_video = 17; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParamsOrBuilder getNearVideoOrBuilder() { + return nearVideo_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.getDefaultInstance() : nearVideo_; + } + + public static final int CONSISTENCY_LEVEL_FIELD_NUMBER = 18; + private int consistencyLevel_ = 0; + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 18; + * @return Whether the consistencyLevel field is set. + */ + @java.lang.Override public boolean hasConsistencyLevel() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 18; + * @return The enum numeric value on the wire for consistencyLevel. + */ + @java.lang.Override public int getConsistencyLevelValue() { + return consistencyLevel_; + } + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 18; + * @return The consistencyLevel. + */ + @java.lang.Override public io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel getConsistencyLevel() { + io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel result = io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel.forNumber(consistencyLevel_); + return result == null ? io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel.UNRECOGNIZED : result; + } + + public static final int GENERATIVE_FIELD_NUMBER = 19; + private io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch generative_; + /** + * optional .weaviategrpc.GenerativeSearch generative = 19; + * @return Whether the generative field is set. + */ + @java.lang.Override + public boolean hasGenerative() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * optional .weaviategrpc.GenerativeSearch generative = 19; + * @return The generative. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch getGenerative() { + return generative_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.getDefaultInstance() : generative_; + } + /** + * optional .weaviategrpc.GenerativeSearch generative = 19; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearchOrBuilder getGenerativeOrBuilder() { + return generative_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.getDefaultInstance() : generative_; + } + + 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(className_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, className_); + } + if (limit_ != 0) { + output.writeUInt32(2, limit_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAdditionalProperties()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getNearVector()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getNearObject()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getProperties()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(7, getHybridSearch()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(8, getBm25Search()); + } + if (offset_ != 0) { + output.writeUInt32(9, offset_); + } + if (autocut_ != 0) { + output.writeUInt32(10, autocut_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(after_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, after_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenant_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, tenant_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(13, getFilters()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(14, getNearText()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(15, getNearImage()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(16, getNearAudio()); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(17, getNearVideo()); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeEnum(18, consistencyLevel_); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(19, getGenerative()); + } + 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(className_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, className_); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, limit_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAdditionalProperties()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getNearVector()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getNearObject()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getProperties()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getHybridSearch()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getBm25Search()); + } + if (offset_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(9, offset_); + } + if (autocut_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(10, autocut_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(after_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, after_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenant_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, tenant_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getFilters()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getNearText()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getNearImage()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getNearAudio()); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getNearVideo()); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(18, consistencyLevel_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getGenerative()); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest other = (io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest) obj; + + if (!getClassName() + .equals(other.getClassName())) return false; + if (getLimit() + != other.getLimit()) return false; + if (hasAdditionalProperties() != other.hasAdditionalProperties()) return false; + if (hasAdditionalProperties()) { + if (!getAdditionalProperties() + .equals(other.getAdditionalProperties())) return false; + } + if (hasNearVector() != other.hasNearVector()) return false; + if (hasNearVector()) { + if (!getNearVector() + .equals(other.getNearVector())) return false; + } + if (hasNearObject() != other.hasNearObject()) return false; + if (hasNearObject()) { + if (!getNearObject() + .equals(other.getNearObject())) return false; + } + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties() + .equals(other.getProperties())) return false; + } + if (hasHybridSearch() != other.hasHybridSearch()) return false; + if (hasHybridSearch()) { + if (!getHybridSearch() + .equals(other.getHybridSearch())) return false; + } + if (hasBm25Search() != other.hasBm25Search()) return false; + if (hasBm25Search()) { + if (!getBm25Search() + .equals(other.getBm25Search())) return false; + } + if (getOffset() + != other.getOffset()) return false; + if (getAutocut() + != other.getAutocut()) return false; + if (!getAfter() + .equals(other.getAfter())) return false; + if (!getTenant() + .equals(other.getTenant())) return false; + if (hasFilters() != other.hasFilters()) return false; + if (hasFilters()) { + if (!getFilters() + .equals(other.getFilters())) return false; + } + if (hasNearText() != other.hasNearText()) return false; + if (hasNearText()) { + if (!getNearText() + .equals(other.getNearText())) return false; + } + if (hasNearImage() != other.hasNearImage()) return false; + if (hasNearImage()) { + if (!getNearImage() + .equals(other.getNearImage())) return false; + } + if (hasNearAudio() != other.hasNearAudio()) return false; + if (hasNearAudio()) { + if (!getNearAudio() + .equals(other.getNearAudio())) return false; + } + if (hasNearVideo() != other.hasNearVideo()) return false; + if (hasNearVideo()) { + if (!getNearVideo() + .equals(other.getNearVideo())) return false; + } + if (hasConsistencyLevel() != other.hasConsistencyLevel()) return false; + if (hasConsistencyLevel()) { + if (consistencyLevel_ != other.consistencyLevel_) return false; + } + if (hasGenerative() != other.hasGenerative()) return false; + if (hasGenerative()) { + if (!getGenerative() + .equals(other.getGenerative())) 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) + CLASS_NAME_FIELD_NUMBER; + hash = (53 * hash) + getClassName().hashCode(); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + if (hasAdditionalProperties()) { + hash = (37 * hash) + ADDITIONAL_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalProperties().hashCode(); + } + if (hasNearVector()) { + hash = (37 * hash) + NEAR_VECTOR_FIELD_NUMBER; + hash = (53 * hash) + getNearVector().hashCode(); + } + if (hasNearObject()) { + hash = (37 * hash) + NEAR_OBJECT_FIELD_NUMBER; + hash = (53 * hash) + getNearObject().hashCode(); + } + if (hasProperties()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getProperties().hashCode(); + } + if (hasHybridSearch()) { + hash = (37 * hash) + HYBRID_SEARCH_FIELD_NUMBER; + hash = (53 * hash) + getHybridSearch().hashCode(); + } + if (hasBm25Search()) { + hash = (37 * hash) + BM25_SEARCH_FIELD_NUMBER; + hash = (53 * hash) + getBm25Search().hashCode(); + } + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getOffset(); + hash = (37 * hash) + AUTOCUT_FIELD_NUMBER; + hash = (53 * hash) + getAutocut(); + hash = (37 * hash) + AFTER_FIELD_NUMBER; + hash = (53 * hash) + getAfter().hashCode(); + hash = (37 * hash) + TENANT_FIELD_NUMBER; + hash = (53 * hash) + getTenant().hashCode(); + if (hasFilters()) { + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + } + if (hasNearText()) { + hash = (37 * hash) + NEAR_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getNearText().hashCode(); + } + if (hasNearImage()) { + hash = (37 * hash) + NEAR_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getNearImage().hashCode(); + } + if (hasNearAudio()) { + hash = (37 * hash) + NEAR_AUDIO_FIELD_NUMBER; + hash = (53 * hash) + getNearAudio().hashCode(); + } + if (hasNearVideo()) { + hash = (37 * hash) + NEAR_VIDEO_FIELD_NUMBER; + hash = (53 * hash) + getNearVideo().hashCode(); + } + if (hasConsistencyLevel()) { + hash = (37 * hash) + CONSISTENCY_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + consistencyLevel_; + } + if (hasGenerative()) { + hash = (37 * hash) + GENERATIVE_FIELD_NUMBER; + hash = (53 * hash) + getGenerative().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest 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.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest 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.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest 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.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest 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 weaviategrpc.SearchRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.SearchRequest) + io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_SearchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_SearchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest.class, io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAdditionalPropertiesFieldBuilder(); + getNearVectorFieldBuilder(); + getNearObjectFieldBuilder(); + getPropertiesFieldBuilder(); + getHybridSearchFieldBuilder(); + getBm25SearchFieldBuilder(); + getFiltersFieldBuilder(); + getNearTextFieldBuilder(); + getNearImageFieldBuilder(); + getNearAudioFieldBuilder(); + getNearVideoFieldBuilder(); + getGenerativeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + className_ = ""; + limit_ = 0; + additionalProperties_ = null; + if (additionalPropertiesBuilder_ != null) { + additionalPropertiesBuilder_.dispose(); + additionalPropertiesBuilder_ = null; + } + nearVector_ = null; + if (nearVectorBuilder_ != null) { + nearVectorBuilder_.dispose(); + nearVectorBuilder_ = null; + } + nearObject_ = null; + if (nearObjectBuilder_ != null) { + nearObjectBuilder_.dispose(); + nearObjectBuilder_ = null; + } + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + hybridSearch_ = null; + if (hybridSearchBuilder_ != null) { + hybridSearchBuilder_.dispose(); + hybridSearchBuilder_ = null; + } + bm25Search_ = null; + if (bm25SearchBuilder_ != null) { + bm25SearchBuilder_.dispose(); + bm25SearchBuilder_ = null; + } + offset_ = 0; + autocut_ = 0; + after_ = ""; + tenant_ = ""; + filters_ = null; + if (filtersBuilder_ != null) { + filtersBuilder_.dispose(); + filtersBuilder_ = null; + } + nearText_ = null; + if (nearTextBuilder_ != null) { + nearTextBuilder_.dispose(); + nearTextBuilder_ = null; + } + nearImage_ = null; + if (nearImageBuilder_ != null) { + nearImageBuilder_.dispose(); + nearImageBuilder_ = null; + } + nearAudio_ = null; + if (nearAudioBuilder_ != null) { + nearAudioBuilder_.dispose(); + nearAudioBuilder_ = null; + } + nearVideo_ = null; + if (nearVideoBuilder_ != null) { + nearVideoBuilder_.dispose(); + nearVideoBuilder_ = null; + } + consistencyLevel_ = 0; + generative_ = null; + if (generativeBuilder_ != null) { + generativeBuilder_.dispose(); + generativeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_SearchRequest_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest build() { + io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest result = new io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.className_ = className_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.limit_ = limit_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.additionalProperties_ = additionalPropertiesBuilder_ == null + ? additionalProperties_ + : additionalPropertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nearVector_ = nearVectorBuilder_ == null + ? nearVector_ + : nearVectorBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.nearObject_ = nearObjectBuilder_ == null + ? nearObject_ + : nearObjectBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.properties_ = propertiesBuilder_ == null + ? properties_ + : propertiesBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.hybridSearch_ = hybridSearchBuilder_ == null + ? hybridSearch_ + : hybridSearchBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.bm25Search_ = bm25SearchBuilder_ == null + ? bm25Search_ + : bm25SearchBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.offset_ = offset_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.autocut_ = autocut_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.after_ = after_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.tenant_ = tenant_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.filters_ = filtersBuilder_ == null + ? filters_ + : filtersBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.nearText_ = nearTextBuilder_ == null + ? nearText_ + : nearTextBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.nearImage_ = nearImageBuilder_ == null + ? nearImage_ + : nearImageBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.nearAudio_ = nearAudioBuilder_ == null + ? nearAudio_ + : nearAudioBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.nearVideo_ = nearVideoBuilder_ == null + ? nearVideo_ + : nearVideoBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.consistencyLevel_ = consistencyLevel_; + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.generative_ = generativeBuilder_ == null + ? generative_ + : generativeBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + 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.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest.getDefaultInstance()) return this; + if (!other.getClassName().isEmpty()) { + className_ = other.className_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (other.hasAdditionalProperties()) { + mergeAdditionalProperties(other.getAdditionalProperties()); + } + if (other.hasNearVector()) { + mergeNearVector(other.getNearVector()); + } + if (other.hasNearObject()) { + mergeNearObject(other.getNearObject()); + } + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + if (other.hasHybridSearch()) { + mergeHybridSearch(other.getHybridSearch()); + } + if (other.hasBm25Search()) { + mergeBm25Search(other.getBm25Search()); + } + if (other.getOffset() != 0) { + setOffset(other.getOffset()); + } + if (other.getAutocut() != 0) { + setAutocut(other.getAutocut()); + } + if (!other.getAfter().isEmpty()) { + after_ = other.after_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getTenant().isEmpty()) { + tenant_ = other.tenant_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.hasFilters()) { + mergeFilters(other.getFilters()); + } + if (other.hasNearText()) { + mergeNearText(other.getNearText()); + } + if (other.hasNearImage()) { + mergeNearImage(other.getNearImage()); + } + if (other.hasNearAudio()) { + mergeNearAudio(other.getNearAudio()); + } + if (other.hasNearVideo()) { + mergeNearVideo(other.getNearVideo()); + } + if (other.hasConsistencyLevel()) { + setConsistencyLevel(other.getConsistencyLevel()); + } + if (other.hasGenerative()) { + mergeGenerative(other.getGenerative()); + } + 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: { + className_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + limit_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getAdditionalPropertiesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getNearVectorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getNearObjectFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getPropertiesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getHybridSearchFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getBm25SearchFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: { + offset_ = input.readUInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: { + autocut_ = input.readUInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: { + after_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + tenant_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: { + input.readMessage( + getFiltersFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: { + input.readMessage( + getNearTextFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: { + input.readMessage( + getNearImageFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: { + input.readMessage( + getNearAudioFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 138: { + input.readMessage( + getNearVideoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 138 + case 144: { + consistencyLevel_ = input.readEnum(); + bitField0_ |= 0x00020000; + break; + } // case 144 + case 154: { + input.readMessage( + getGenerativeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 154 + 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 className_ = ""; + /** + * string class_name = 1; + * @return The className. + */ + public java.lang.String getClassName() { + java.lang.Object ref = className_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + className_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string class_name = 1; + * @return The bytes for className. + */ + public com.google.protobuf.ByteString + getClassNameBytes() { + java.lang.Object ref = className_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + className_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string class_name = 1; + * @param value The className to set. + * @return This builder for chaining. + */ + public Builder setClassName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + className_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string class_name = 1; + * @return This builder for chaining. + */ + public Builder clearClassName() { + className_ = getDefaultInstance().getClassName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string class_name = 1; + * @param value The bytes for className to set. + * @return This builder for chaining. + */ + public Builder setClassNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + className_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int limit_ ; + /** + * uint32 limit = 2; + * @return The limit. + */ + @java.lang.Override + public int getLimit() { + return limit_; + } + /** + * uint32 limit = 2; + * @param value The limit to set. + * @return This builder for chaining. + */ + public Builder setLimit(int value) { + + limit_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * uint32 limit = 2; + * @return This builder for chaining. + */ + public Builder clearLimit() { + bitField0_ = (bitField0_ & ~0x00000002); + limit_ = 0; + onChanged(); + return this; + } + + private io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties additionalProperties_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalPropertiesOrBuilder> additionalPropertiesBuilder_; + /** + * .weaviategrpc.AdditionalProperties additional_properties = 3; + * @return Whether the additionalProperties field is set. + */ + public boolean hasAdditionalProperties() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .weaviategrpc.AdditionalProperties additional_properties = 3; + * @return The additionalProperties. + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties getAdditionalProperties() { + if (additionalPropertiesBuilder_ == null) { + return additionalProperties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.getDefaultInstance() : additionalProperties_; + } else { + return additionalPropertiesBuilder_.getMessage(); + } + } + /** + * .weaviategrpc.AdditionalProperties additional_properties = 3; + */ + public Builder setAdditionalProperties(io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties value) { + if (additionalPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + additionalProperties_ = value; + } else { + additionalPropertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .weaviategrpc.AdditionalProperties additional_properties = 3; + */ + public Builder setAdditionalProperties( + io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.Builder builderForValue) { + if (additionalPropertiesBuilder_ == null) { + additionalProperties_ = builderForValue.build(); + } else { + additionalPropertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .weaviategrpc.AdditionalProperties additional_properties = 3; + */ + public Builder mergeAdditionalProperties(io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties value) { + if (additionalPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + additionalProperties_ != null && + additionalProperties_ != io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.getDefaultInstance()) { + getAdditionalPropertiesBuilder().mergeFrom(value); + } else { + additionalProperties_ = value; + } + } else { + additionalPropertiesBuilder_.mergeFrom(value); + } + if (additionalProperties_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .weaviategrpc.AdditionalProperties additional_properties = 3; + */ + public Builder clearAdditionalProperties() { + bitField0_ = (bitField0_ & ~0x00000004); + additionalProperties_ = null; + if (additionalPropertiesBuilder_ != null) { + additionalPropertiesBuilder_.dispose(); + additionalPropertiesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .weaviategrpc.AdditionalProperties additional_properties = 3; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.Builder getAdditionalPropertiesBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAdditionalPropertiesFieldBuilder().getBuilder(); + } + /** + * .weaviategrpc.AdditionalProperties additional_properties = 3; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalPropertiesOrBuilder getAdditionalPropertiesOrBuilder() { + if (additionalPropertiesBuilder_ != null) { + return additionalPropertiesBuilder_.getMessageOrBuilder(); + } else { + return additionalProperties_ == null ? + io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.getDefaultInstance() : additionalProperties_; + } + } + /** + * .weaviategrpc.AdditionalProperties additional_properties = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalPropertiesOrBuilder> + getAdditionalPropertiesFieldBuilder() { + if (additionalPropertiesBuilder_ == null) { + additionalPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalPropertiesOrBuilder>( + getAdditionalProperties(), + getParentForChildren(), + isClean()); + additionalProperties_ = null; + } + return additionalPropertiesBuilder_; + } + + private io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams nearVector_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParamsOrBuilder> nearVectorBuilder_; + /** + * .weaviategrpc.NearVectorParams near_vector = 4; + * @return Whether the nearVector field is set. + */ + public boolean hasNearVector() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .weaviategrpc.NearVectorParams near_vector = 4; + * @return The nearVector. + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams getNearVector() { + if (nearVectorBuilder_ == null) { + return nearVector_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.getDefaultInstance() : nearVector_; + } else { + return nearVectorBuilder_.getMessage(); + } + } + /** + * .weaviategrpc.NearVectorParams near_vector = 4; + */ + public Builder setNearVector(io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams value) { + if (nearVectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nearVector_ = value; + } else { + nearVectorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .weaviategrpc.NearVectorParams near_vector = 4; + */ + public Builder setNearVector( + io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.Builder builderForValue) { + if (nearVectorBuilder_ == null) { + nearVector_ = builderForValue.build(); + } else { + nearVectorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .weaviategrpc.NearVectorParams near_vector = 4; + */ + public Builder mergeNearVector(io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams value) { + if (nearVectorBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + nearVector_ != null && + nearVector_ != io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.getDefaultInstance()) { + getNearVectorBuilder().mergeFrom(value); + } else { + nearVector_ = value; + } + } else { + nearVectorBuilder_.mergeFrom(value); + } + if (nearVector_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * .weaviategrpc.NearVectorParams near_vector = 4; + */ + public Builder clearNearVector() { + bitField0_ = (bitField0_ & ~0x00000008); + nearVector_ = null; + if (nearVectorBuilder_ != null) { + nearVectorBuilder_.dispose(); + nearVectorBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .weaviategrpc.NearVectorParams near_vector = 4; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.Builder getNearVectorBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getNearVectorFieldBuilder().getBuilder(); + } + /** + * .weaviategrpc.NearVectorParams near_vector = 4; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParamsOrBuilder getNearVectorOrBuilder() { + if (nearVectorBuilder_ != null) { + return nearVectorBuilder_.getMessageOrBuilder(); + } else { + return nearVector_ == null ? + io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.getDefaultInstance() : nearVector_; + } + } + /** + * .weaviategrpc.NearVectorParams near_vector = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParamsOrBuilder> + getNearVectorFieldBuilder() { + if (nearVectorBuilder_ == null) { + nearVectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParamsOrBuilder>( + getNearVector(), + getParentForChildren(), + isClean()); + nearVector_ = null; + } + return nearVectorBuilder_; + } + + private io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams nearObject_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParamsOrBuilder> nearObjectBuilder_; + /** + * .weaviategrpc.NearObjectParams near_object = 5; + * @return Whether the nearObject field is set. + */ + public boolean hasNearObject() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .weaviategrpc.NearObjectParams near_object = 5; + * @return The nearObject. + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams getNearObject() { + if (nearObjectBuilder_ == null) { + return nearObject_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.getDefaultInstance() : nearObject_; + } else { + return nearObjectBuilder_.getMessage(); + } + } + /** + * .weaviategrpc.NearObjectParams near_object = 5; + */ + public Builder setNearObject(io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams value) { + if (nearObjectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nearObject_ = value; + } else { + nearObjectBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .weaviategrpc.NearObjectParams near_object = 5; + */ + public Builder setNearObject( + io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.Builder builderForValue) { + if (nearObjectBuilder_ == null) { + nearObject_ = builderForValue.build(); + } else { + nearObjectBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .weaviategrpc.NearObjectParams near_object = 5; + */ + public Builder mergeNearObject(io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams value) { + if (nearObjectBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + nearObject_ != null && + nearObject_ != io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.getDefaultInstance()) { + getNearObjectBuilder().mergeFrom(value); + } else { + nearObject_ = value; + } + } else { + nearObjectBuilder_.mergeFrom(value); + } + if (nearObject_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * .weaviategrpc.NearObjectParams near_object = 5; + */ + public Builder clearNearObject() { + bitField0_ = (bitField0_ & ~0x00000010); + nearObject_ = null; + if (nearObjectBuilder_ != null) { + nearObjectBuilder_.dispose(); + nearObjectBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .weaviategrpc.NearObjectParams near_object = 5; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.Builder getNearObjectBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getNearObjectFieldBuilder().getBuilder(); + } + /** + * .weaviategrpc.NearObjectParams near_object = 5; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParamsOrBuilder getNearObjectOrBuilder() { + if (nearObjectBuilder_ != null) { + return nearObjectBuilder_.getMessageOrBuilder(); + } else { + return nearObject_ == null ? + io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.getDefaultInstance() : nearObject_; + } + } + /** + * .weaviategrpc.NearObjectParams near_object = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParamsOrBuilder> + getNearObjectFieldBuilder() { + if (nearObjectBuilder_ == null) { + nearObjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParamsOrBuilder>( + getNearObject(), + getParentForChildren(), + isClean()); + nearObject_ = null; + } + return nearObjectBuilder_; + } + + private io.weaviate.client.grpc.protocol.WeaviateProto.Properties properties_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.Properties, io.weaviate.client.grpc.protocol.WeaviateProto.Properties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.PropertiesOrBuilder> propertiesBuilder_; + /** + * .weaviategrpc.Properties properties = 6; + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * .weaviategrpc.Properties properties = 6; + * @return The properties. + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.Properties getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.Properties.getDefaultInstance() : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + /** + * .weaviategrpc.Properties properties = 6; + */ + public Builder setProperties(io.weaviate.client.grpc.protocol.WeaviateProto.Properties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + } else { + propertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .weaviategrpc.Properties properties = 6; + */ + public Builder setProperties( + io.weaviate.client.grpc.protocol.WeaviateProto.Properties.Builder builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .weaviategrpc.Properties properties = 6; + */ + public Builder mergeProperties(io.weaviate.client.grpc.protocol.WeaviateProto.Properties value) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + properties_ != null && + properties_ != io.weaviate.client.grpc.protocol.WeaviateProto.Properties.getDefaultInstance()) { + getPropertiesBuilder().mergeFrom(value); + } else { + properties_ = value; + } + } else { + propertiesBuilder_.mergeFrom(value); + } + if (properties_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * .weaviategrpc.Properties properties = 6; + */ + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000020); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .weaviategrpc.Properties properties = 6; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.Properties.Builder getPropertiesBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + /** + * .weaviategrpc.Properties properties = 6; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.PropertiesOrBuilder getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null ? + io.weaviate.client.grpc.protocol.WeaviateProto.Properties.getDefaultInstance() : properties_; + } + } + /** + * .weaviategrpc.Properties properties = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.Properties, io.weaviate.client.grpc.protocol.WeaviateProto.Properties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.PropertiesOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.Properties, io.weaviate.client.grpc.protocol.WeaviateProto.Properties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.PropertiesOrBuilder>( + getProperties(), + getParentForChildren(), + isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + private io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams hybridSearch_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParamsOrBuilder> hybridSearchBuilder_; + /** + * .weaviategrpc.HybridSearchParams hybrid_search = 7; + * @return Whether the hybridSearch field is set. + */ + public boolean hasHybridSearch() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * .weaviategrpc.HybridSearchParams hybrid_search = 7; + * @return The hybridSearch. + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams getHybridSearch() { + if (hybridSearchBuilder_ == null) { + return hybridSearch_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.getDefaultInstance() : hybridSearch_; + } else { + return hybridSearchBuilder_.getMessage(); + } + } + /** + * .weaviategrpc.HybridSearchParams hybrid_search = 7; + */ + public Builder setHybridSearch(io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams value) { + if (hybridSearchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hybridSearch_ = value; + } else { + hybridSearchBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .weaviategrpc.HybridSearchParams hybrid_search = 7; + */ + public Builder setHybridSearch( + io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.Builder builderForValue) { + if (hybridSearchBuilder_ == null) { + hybridSearch_ = builderForValue.build(); + } else { + hybridSearchBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .weaviategrpc.HybridSearchParams hybrid_search = 7; + */ + public Builder mergeHybridSearch(io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams value) { + if (hybridSearchBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + hybridSearch_ != null && + hybridSearch_ != io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.getDefaultInstance()) { + getHybridSearchBuilder().mergeFrom(value); + } else { + hybridSearch_ = value; + } + } else { + hybridSearchBuilder_.mergeFrom(value); + } + if (hybridSearch_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * .weaviategrpc.HybridSearchParams hybrid_search = 7; + */ + public Builder clearHybridSearch() { + bitField0_ = (bitField0_ & ~0x00000040); + hybridSearch_ = null; + if (hybridSearchBuilder_ != null) { + hybridSearchBuilder_.dispose(); + hybridSearchBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .weaviategrpc.HybridSearchParams hybrid_search = 7; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.Builder getHybridSearchBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getHybridSearchFieldBuilder().getBuilder(); + } + /** + * .weaviategrpc.HybridSearchParams hybrid_search = 7; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParamsOrBuilder getHybridSearchOrBuilder() { + if (hybridSearchBuilder_ != null) { + return hybridSearchBuilder_.getMessageOrBuilder(); + } else { + return hybridSearch_ == null ? + io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.getDefaultInstance() : hybridSearch_; + } + } + /** + * .weaviategrpc.HybridSearchParams hybrid_search = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParamsOrBuilder> + getHybridSearchFieldBuilder() { + if (hybridSearchBuilder_ == null) { + hybridSearchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParamsOrBuilder>( + getHybridSearch(), + getParentForChildren(), + isClean()); + hybridSearch_ = null; + } + return hybridSearchBuilder_; + } + + private io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams bm25Search_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParamsOrBuilder> bm25SearchBuilder_; + /** + * .weaviategrpc.BM25SearchParams bm25_search = 8; + * @return Whether the bm25Search field is set. + */ + public boolean hasBm25Search() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * .weaviategrpc.BM25SearchParams bm25_search = 8; + * @return The bm25Search. + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams getBm25Search() { + if (bm25SearchBuilder_ == null) { + return bm25Search_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.getDefaultInstance() : bm25Search_; + } else { + return bm25SearchBuilder_.getMessage(); + } + } + /** + * .weaviategrpc.BM25SearchParams bm25_search = 8; + */ + public Builder setBm25Search(io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams value) { + if (bm25SearchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bm25Search_ = value; + } else { + bm25SearchBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * .weaviategrpc.BM25SearchParams bm25_search = 8; + */ + public Builder setBm25Search( + io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.Builder builderForValue) { + if (bm25SearchBuilder_ == null) { + bm25Search_ = builderForValue.build(); + } else { + bm25SearchBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * .weaviategrpc.BM25SearchParams bm25_search = 8; + */ + public Builder mergeBm25Search(io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams value) { + if (bm25SearchBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + bm25Search_ != null && + bm25Search_ != io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.getDefaultInstance()) { + getBm25SearchBuilder().mergeFrom(value); + } else { + bm25Search_ = value; + } + } else { + bm25SearchBuilder_.mergeFrom(value); + } + if (bm25Search_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * .weaviategrpc.BM25SearchParams bm25_search = 8; + */ + public Builder clearBm25Search() { + bitField0_ = (bitField0_ & ~0x00000080); + bm25Search_ = null; + if (bm25SearchBuilder_ != null) { + bm25SearchBuilder_.dispose(); + bm25SearchBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .weaviategrpc.BM25SearchParams bm25_search = 8; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.Builder getBm25SearchBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getBm25SearchFieldBuilder().getBuilder(); + } + /** + * .weaviategrpc.BM25SearchParams bm25_search = 8; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParamsOrBuilder getBm25SearchOrBuilder() { + if (bm25SearchBuilder_ != null) { + return bm25SearchBuilder_.getMessageOrBuilder(); + } else { + return bm25Search_ == null ? + io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.getDefaultInstance() : bm25Search_; + } + } + /** + * .weaviategrpc.BM25SearchParams bm25_search = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParamsOrBuilder> + getBm25SearchFieldBuilder() { + if (bm25SearchBuilder_ == null) { + bm25SearchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParamsOrBuilder>( + getBm25Search(), + getParentForChildren(), + isClean()); + bm25Search_ = null; + } + return bm25SearchBuilder_; + } + + private int offset_ ; + /** + * uint32 offset = 9; + * @return The offset. + */ + @java.lang.Override + public int getOffset() { + return offset_; + } + /** + * uint32 offset = 9; + * @param value The offset to set. + * @return This builder for chaining. + */ + public Builder setOffset(int value) { + + offset_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * uint32 offset = 9; + * @return This builder for chaining. + */ + public Builder clearOffset() { + bitField0_ = (bitField0_ & ~0x00000100); + offset_ = 0; + onChanged(); + return this; + } + + private int autocut_ ; + /** + * uint32 autocut = 10; + * @return The autocut. + */ + @java.lang.Override + public int getAutocut() { + return autocut_; + } + /** + * uint32 autocut = 10; + * @param value The autocut to set. + * @return This builder for chaining. + */ + public Builder setAutocut(int value) { + + autocut_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * uint32 autocut = 10; + * @return This builder for chaining. + */ + public Builder clearAutocut() { + bitField0_ = (bitField0_ & ~0x00000200); + autocut_ = 0; + onChanged(); + return this; + } + + private java.lang.Object after_ = ""; + /** + * string after = 11; + * @return The after. + */ + public java.lang.String getAfter() { + java.lang.Object ref = after_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + after_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string after = 11; + * @return The bytes for after. + */ + public com.google.protobuf.ByteString + getAfterBytes() { + java.lang.Object ref = after_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + after_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string after = 11; + * @param value The after to set. + * @return This builder for chaining. + */ + public Builder setAfter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + after_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * string after = 11; + * @return This builder for chaining. + */ + public Builder clearAfter() { + after_ = getDefaultInstance().getAfter(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * string after = 11; + * @param value The bytes for after to set. + * @return This builder for chaining. + */ + public Builder setAfterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + after_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object tenant_ = ""; + /** + * string tenant = 12; + * @return The tenant. + */ + public java.lang.String getTenant() { + java.lang.Object ref = tenant_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tenant_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string tenant = 12; + * @return The bytes for tenant. + */ + public com.google.protobuf.ByteString + getTenantBytes() { + java.lang.Object ref = tenant_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tenant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string tenant = 12; + * @param value The tenant to set. + * @return This builder for chaining. + */ + public Builder setTenant( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + tenant_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * string tenant = 12; + * @return This builder for chaining. + */ + public Builder clearTenant() { + tenant_ = getDefaultInstance().getTenant(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * string tenant = 12; + * @param value The bytes for tenant to set. + * @return This builder for chaining. + */ + public Builder setTenantBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + tenant_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private io.weaviate.client.grpc.protocol.WeaviateProto.Filters filters_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.Filters, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder> filtersBuilder_; + /** + * optional .weaviategrpc.Filters filters = 13; + * @return Whether the filters field is set. + */ + public boolean hasFilters() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * optional .weaviategrpc.Filters filters = 13; + * @return The filters. + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.Filters getFilters() { + if (filtersBuilder_ == null) { + return filters_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.Filters.getDefaultInstance() : filters_; + } else { + return filtersBuilder_.getMessage(); + } + } + /** + * optional .weaviategrpc.Filters filters = 13; + */ + public Builder setFilters(io.weaviate.client.grpc.protocol.WeaviateProto.Filters value) { + if (filtersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filters_ = value; + } else { + filtersBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * optional .weaviategrpc.Filters filters = 13; + */ + public Builder setFilters( + io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder builderForValue) { + if (filtersBuilder_ == null) { + filters_ = builderForValue.build(); + } else { + filtersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * optional .weaviategrpc.Filters filters = 13; + */ + public Builder mergeFilters(io.weaviate.client.grpc.protocol.WeaviateProto.Filters value) { + if (filtersBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) && + filters_ != null && + filters_ != io.weaviate.client.grpc.protocol.WeaviateProto.Filters.getDefaultInstance()) { + getFiltersBuilder().mergeFrom(value); + } else { + filters_ = value; + } + } else { + filtersBuilder_.mergeFrom(value); + } + if (filters_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + * optional .weaviategrpc.Filters filters = 13; + */ + public Builder clearFilters() { + bitField0_ = (bitField0_ & ~0x00001000); + filters_ = null; + if (filtersBuilder_ != null) { + filtersBuilder_.dispose(); + filtersBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviategrpc.Filters filters = 13; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder getFiltersBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getFiltersFieldBuilder().getBuilder(); + } + /** + * optional .weaviategrpc.Filters filters = 13; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder getFiltersOrBuilder() { + if (filtersBuilder_ != null) { + return filtersBuilder_.getMessageOrBuilder(); + } else { + return filters_ == null ? + io.weaviate.client.grpc.protocol.WeaviateProto.Filters.getDefaultInstance() : filters_; + } + } + /** + * optional .weaviategrpc.Filters filters = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.Filters, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder> + getFiltersFieldBuilder() { + if (filtersBuilder_ == null) { + filtersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.Filters, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder>( + getFilters(), + getParentForChildren(), + isClean()); + filters_ = null; + } + return filtersBuilder_; + } + + private io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams nearText_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParamsOrBuilder> nearTextBuilder_; + /** + * optional .weaviategrpc.NearTextSearchParams near_text = 14; + * @return Whether the nearText field is set. + */ + public boolean hasNearText() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * optional .weaviategrpc.NearTextSearchParams near_text = 14; + * @return The nearText. + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams getNearText() { + if (nearTextBuilder_ == null) { + return nearText_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.getDefaultInstance() : nearText_; + } else { + return nearTextBuilder_.getMessage(); + } + } + /** + * optional .weaviategrpc.NearTextSearchParams near_text = 14; + */ + public Builder setNearText(io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams value) { + if (nearTextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nearText_ = value; + } else { + nearTextBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * optional .weaviategrpc.NearTextSearchParams near_text = 14; + */ + public Builder setNearText( + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Builder builderForValue) { + if (nearTextBuilder_ == null) { + nearText_ = builderForValue.build(); + } else { + nearTextBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * optional .weaviategrpc.NearTextSearchParams near_text = 14; + */ + public Builder mergeNearText(io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams value) { + if (nearTextBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) && + nearText_ != null && + nearText_ != io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.getDefaultInstance()) { + getNearTextBuilder().mergeFrom(value); + } else { + nearText_ = value; + } + } else { + nearTextBuilder_.mergeFrom(value); + } + if (nearText_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + * optional .weaviategrpc.NearTextSearchParams near_text = 14; + */ + public Builder clearNearText() { + bitField0_ = (bitField0_ & ~0x00002000); + nearText_ = null; + if (nearTextBuilder_ != null) { + nearTextBuilder_.dispose(); + nearTextBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviategrpc.NearTextSearchParams near_text = 14; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Builder getNearTextBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getNearTextFieldBuilder().getBuilder(); + } + /** + * optional .weaviategrpc.NearTextSearchParams near_text = 14; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParamsOrBuilder getNearTextOrBuilder() { + if (nearTextBuilder_ != null) { + return nearTextBuilder_.getMessageOrBuilder(); + } else { + return nearText_ == null ? + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.getDefaultInstance() : nearText_; + } + } + /** + * optional .weaviategrpc.NearTextSearchParams near_text = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParamsOrBuilder> + getNearTextFieldBuilder() { + if (nearTextBuilder_ == null) { + nearTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParamsOrBuilder>( + getNearText(), + getParentForChildren(), + isClean()); + nearText_ = null; + } + return nearTextBuilder_; + } + + private io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams nearImage_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParamsOrBuilder> nearImageBuilder_; + /** + * optional .weaviategrpc.NearImageSearchParams near_image = 15; + * @return Whether the nearImage field is set. + */ + public boolean hasNearImage() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * optional .weaviategrpc.NearImageSearchParams near_image = 15; + * @return The nearImage. + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams getNearImage() { + if (nearImageBuilder_ == null) { + return nearImage_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.getDefaultInstance() : nearImage_; + } else { + return nearImageBuilder_.getMessage(); + } + } + /** + * optional .weaviategrpc.NearImageSearchParams near_image = 15; + */ + public Builder setNearImage(io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams value) { + if (nearImageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nearImage_ = value; + } else { + nearImageBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * optional .weaviategrpc.NearImageSearchParams near_image = 15; + */ + public Builder setNearImage( + io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.Builder builderForValue) { + if (nearImageBuilder_ == null) { + nearImage_ = builderForValue.build(); + } else { + nearImageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * optional .weaviategrpc.NearImageSearchParams near_image = 15; + */ + public Builder mergeNearImage(io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams value) { + if (nearImageBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) && + nearImage_ != null && + nearImage_ != io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.getDefaultInstance()) { + getNearImageBuilder().mergeFrom(value); + } else { + nearImage_ = value; + } + } else { + nearImageBuilder_.mergeFrom(value); + } + if (nearImage_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + * optional .weaviategrpc.NearImageSearchParams near_image = 15; + */ + public Builder clearNearImage() { + bitField0_ = (bitField0_ & ~0x00004000); + nearImage_ = null; + if (nearImageBuilder_ != null) { + nearImageBuilder_.dispose(); + nearImageBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviategrpc.NearImageSearchParams near_image = 15; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.Builder getNearImageBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getNearImageFieldBuilder().getBuilder(); + } + /** + * optional .weaviategrpc.NearImageSearchParams near_image = 15; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParamsOrBuilder getNearImageOrBuilder() { + if (nearImageBuilder_ != null) { + return nearImageBuilder_.getMessageOrBuilder(); + } else { + return nearImage_ == null ? + io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.getDefaultInstance() : nearImage_; + } + } + /** + * optional .weaviategrpc.NearImageSearchParams near_image = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParamsOrBuilder> + getNearImageFieldBuilder() { + if (nearImageBuilder_ == null) { + nearImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParamsOrBuilder>( + getNearImage(), + getParentForChildren(), + isClean()); + nearImage_ = null; + } + return nearImageBuilder_; + } + + private io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams nearAudio_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParamsOrBuilder> nearAudioBuilder_; + /** + * optional .weaviategrpc.NearAudioSearchParams near_audio = 16; + * @return Whether the nearAudio field is set. + */ + public boolean hasNearAudio() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * optional .weaviategrpc.NearAudioSearchParams near_audio = 16; + * @return The nearAudio. + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams getNearAudio() { + if (nearAudioBuilder_ == null) { + return nearAudio_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.getDefaultInstance() : nearAudio_; + } else { + return nearAudioBuilder_.getMessage(); + } + } + /** + * optional .weaviategrpc.NearAudioSearchParams near_audio = 16; + */ + public Builder setNearAudio(io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams value) { + if (nearAudioBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nearAudio_ = value; + } else { + nearAudioBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * optional .weaviategrpc.NearAudioSearchParams near_audio = 16; + */ + public Builder setNearAudio( + io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.Builder builderForValue) { + if (nearAudioBuilder_ == null) { + nearAudio_ = builderForValue.build(); + } else { + nearAudioBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * optional .weaviategrpc.NearAudioSearchParams near_audio = 16; + */ + public Builder mergeNearAudio(io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams value) { + if (nearAudioBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) && + nearAudio_ != null && + nearAudio_ != io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.getDefaultInstance()) { + getNearAudioBuilder().mergeFrom(value); + } else { + nearAudio_ = value; + } + } else { + nearAudioBuilder_.mergeFrom(value); + } + if (nearAudio_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + * optional .weaviategrpc.NearAudioSearchParams near_audio = 16; + */ + public Builder clearNearAudio() { + bitField0_ = (bitField0_ & ~0x00008000); + nearAudio_ = null; + if (nearAudioBuilder_ != null) { + nearAudioBuilder_.dispose(); + nearAudioBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviategrpc.NearAudioSearchParams near_audio = 16; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.Builder getNearAudioBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getNearAudioFieldBuilder().getBuilder(); + } + /** + * optional .weaviategrpc.NearAudioSearchParams near_audio = 16; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParamsOrBuilder getNearAudioOrBuilder() { + if (nearAudioBuilder_ != null) { + return nearAudioBuilder_.getMessageOrBuilder(); + } else { + return nearAudio_ == null ? + io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.getDefaultInstance() : nearAudio_; + } + } + /** + * optional .weaviategrpc.NearAudioSearchParams near_audio = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParamsOrBuilder> + getNearAudioFieldBuilder() { + if (nearAudioBuilder_ == null) { + nearAudioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParamsOrBuilder>( + getNearAudio(), + getParentForChildren(), + isClean()); + nearAudio_ = null; + } + return nearAudioBuilder_; + } + + private io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams nearVideo_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParamsOrBuilder> nearVideoBuilder_; + /** + * optional .weaviategrpc.NearVideoSearchParams near_video = 17; + * @return Whether the nearVideo field is set. + */ + public boolean hasNearVideo() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * optional .weaviategrpc.NearVideoSearchParams near_video = 17; + * @return The nearVideo. + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams getNearVideo() { + if (nearVideoBuilder_ == null) { + return nearVideo_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.getDefaultInstance() : nearVideo_; + } else { + return nearVideoBuilder_.getMessage(); + } + } + /** + * optional .weaviategrpc.NearVideoSearchParams near_video = 17; + */ + public Builder setNearVideo(io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams value) { + if (nearVideoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nearVideo_ = value; + } else { + nearVideoBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * optional .weaviategrpc.NearVideoSearchParams near_video = 17; + */ + public Builder setNearVideo( + io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.Builder builderForValue) { + if (nearVideoBuilder_ == null) { + nearVideo_ = builderForValue.build(); + } else { + nearVideoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * optional .weaviategrpc.NearVideoSearchParams near_video = 17; + */ + public Builder mergeNearVideo(io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams value) { + if (nearVideoBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) && + nearVideo_ != null && + nearVideo_ != io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.getDefaultInstance()) { + getNearVideoBuilder().mergeFrom(value); + } else { + nearVideo_ = value; + } + } else { + nearVideoBuilder_.mergeFrom(value); + } + if (nearVideo_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + /** + * optional .weaviategrpc.NearVideoSearchParams near_video = 17; + */ + public Builder clearNearVideo() { + bitField0_ = (bitField0_ & ~0x00010000); + nearVideo_ = null; + if (nearVideoBuilder_ != null) { + nearVideoBuilder_.dispose(); + nearVideoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviategrpc.NearVideoSearchParams near_video = 17; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.Builder getNearVideoBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getNearVideoFieldBuilder().getBuilder(); + } + /** + * optional .weaviategrpc.NearVideoSearchParams near_video = 17; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParamsOrBuilder getNearVideoOrBuilder() { + if (nearVideoBuilder_ != null) { + return nearVideoBuilder_.getMessageOrBuilder(); + } else { + return nearVideo_ == null ? + io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.getDefaultInstance() : nearVideo_; + } + } + /** + * optional .weaviategrpc.NearVideoSearchParams near_video = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParamsOrBuilder> + getNearVideoFieldBuilder() { + if (nearVideoBuilder_ == null) { + nearVideoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParamsOrBuilder>( + getNearVideo(), + getParentForChildren(), + isClean()); + nearVideo_ = null; + } + return nearVideoBuilder_; + } + + private int consistencyLevel_ = 0; + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 18; + * @return Whether the consistencyLevel field is set. + */ + @java.lang.Override public boolean hasConsistencyLevel() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 18; + * @return The enum numeric value on the wire for consistencyLevel. + */ + @java.lang.Override public int getConsistencyLevelValue() { + return consistencyLevel_; + } + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 18; + * @param value The enum numeric value on the wire for consistencyLevel to set. + * @return This builder for chaining. + */ + public Builder setConsistencyLevelValue(int value) { + consistencyLevel_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 18; + * @return The consistencyLevel. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel getConsistencyLevel() { + io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel result = io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel.forNumber(consistencyLevel_); + return result == null ? io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel.UNRECOGNIZED : result; + } + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 18; + * @param value The consistencyLevel to set. + * @return This builder for chaining. + */ + public Builder setConsistencyLevel(io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00020000; + consistencyLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .weaviategrpc.ConsistencyLevel consistency_level = 18; + * @return This builder for chaining. + */ + public Builder clearConsistencyLevel() { + bitField0_ = (bitField0_ & ~0x00020000); + consistencyLevel_ = 0; + onChanged(); + return this; + } + + private io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch generative_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch, io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearchOrBuilder> generativeBuilder_; + /** + * optional .weaviategrpc.GenerativeSearch generative = 19; + * @return Whether the generative field is set. + */ + public boolean hasGenerative() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + * optional .weaviategrpc.GenerativeSearch generative = 19; + * @return The generative. + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch getGenerative() { + if (generativeBuilder_ == null) { + return generative_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.getDefaultInstance() : generative_; + } else { + return generativeBuilder_.getMessage(); + } + } + /** + * optional .weaviategrpc.GenerativeSearch generative = 19; + */ + public Builder setGenerative(io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch value) { + if (generativeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generative_ = value; + } else { + generativeBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * optional .weaviategrpc.GenerativeSearch generative = 19; + */ + public Builder setGenerative( + io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.Builder builderForValue) { + if (generativeBuilder_ == null) { + generative_ = builderForValue.build(); + } else { + generativeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * optional .weaviategrpc.GenerativeSearch generative = 19; + */ + public Builder mergeGenerative(io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch value) { + if (generativeBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) && + generative_ != null && + generative_ != io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.getDefaultInstance()) { + getGenerativeBuilder().mergeFrom(value); + } else { + generative_ = value; + } + } else { + generativeBuilder_.mergeFrom(value); + } + if (generative_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } + return this; + } + /** + * optional .weaviategrpc.GenerativeSearch generative = 19; + */ + public Builder clearGenerative() { + bitField0_ = (bitField0_ & ~0x00040000); + generative_ = null; + if (generativeBuilder_ != null) { + generativeBuilder_.dispose(); + generativeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviategrpc.GenerativeSearch generative = 19; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.Builder getGenerativeBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return getGenerativeFieldBuilder().getBuilder(); + } + /** + * optional .weaviategrpc.GenerativeSearch generative = 19; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearchOrBuilder getGenerativeOrBuilder() { + if (generativeBuilder_ != null) { + return generativeBuilder_.getMessageOrBuilder(); + } else { + return generative_ == null ? + io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.getDefaultInstance() : generative_; + } + } + /** + * optional .weaviategrpc.GenerativeSearch generative = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch, io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearchOrBuilder> + getGenerativeFieldBuilder() { + if (generativeBuilder_ == null) { + generativeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch, io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearchOrBuilder>( + getGenerative(), + getParentForChildren(), + isClean()); + generative_ = null; + } + return generativeBuilder_; + } + @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:weaviategrpc.SearchRequest) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.SearchRequest) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchRequest 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.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeSearchOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.GenerativeSearch) + com.google.protobuf.MessageOrBuilder { + + /** + * string single_response_prompt = 1; + * @return The singleResponsePrompt. + */ + java.lang.String getSingleResponsePrompt(); + /** + * string single_response_prompt = 1; + * @return The bytes for singleResponsePrompt. + */ + com.google.protobuf.ByteString + getSingleResponsePromptBytes(); + + /** + * string grouped_response_task = 2; + * @return The groupedResponseTask. + */ + java.lang.String getGroupedResponseTask(); + /** + * string grouped_response_task = 2; + * @return The bytes for groupedResponseTask. + */ + com.google.protobuf.ByteString + getGroupedResponseTaskBytes(); + + /** + * repeated string grouped_properties = 3; + * @return A list containing the groupedProperties. + */ + java.util.List + getGroupedPropertiesList(); + /** + * repeated string grouped_properties = 3; + * @return The count of groupedProperties. + */ + int getGroupedPropertiesCount(); + /** + * repeated string grouped_properties = 3; + * @param index The index of the element to return. + * @return The groupedProperties at the given index. + */ + java.lang.String getGroupedProperties(int index); + /** + * repeated string grouped_properties = 3; + * @param index The index of the value to return. + * @return The bytes of the groupedProperties at the given index. + */ + com.google.protobuf.ByteString + getGroupedPropertiesBytes(int index); + } + /** + * Protobuf type {@code weaviategrpc.GenerativeSearch} + */ + public static final class GenerativeSearch extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.GenerativeSearch) + GenerativeSearchOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeSearch.newBuilder() to construct. + private GenerativeSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeSearch() { + singleResponsePrompt_ = ""; + groupedResponseTask_ = ""; + groupedProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeSearch(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_GenerativeSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_GenerativeSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.class, io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.Builder.class); + } + + public static final int SINGLE_RESPONSE_PROMPT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object singleResponsePrompt_ = ""; + /** + * string single_response_prompt = 1; + * @return The singleResponsePrompt. + */ + @java.lang.Override + public java.lang.String getSingleResponsePrompt() { + java.lang.Object ref = singleResponsePrompt_; + 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(); + singleResponsePrompt_ = s; + return s; + } + } + /** + * string single_response_prompt = 1; + * @return The bytes for singleResponsePrompt. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSingleResponsePromptBytes() { + java.lang.Object ref = singleResponsePrompt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + singleResponsePrompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUPED_RESPONSE_TASK_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object groupedResponseTask_ = ""; + /** + * string grouped_response_task = 2; + * @return The groupedResponseTask. + */ + @java.lang.Override + public java.lang.String getGroupedResponseTask() { + java.lang.Object ref = groupedResponseTask_; + 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(); + groupedResponseTask_ = s; + return s; + } + } + /** + * string grouped_response_task = 2; + * @return The bytes for groupedResponseTask. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGroupedResponseTaskBytes() { + java.lang.Object ref = groupedResponseTask_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + groupedResponseTask_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUPED_PROPERTIES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList groupedProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string grouped_properties = 3; + * @return A list containing the groupedProperties. + */ + public com.google.protobuf.ProtocolStringList + getGroupedPropertiesList() { + return groupedProperties_; + } + /** + * repeated string grouped_properties = 3; + * @return The count of groupedProperties. + */ + public int getGroupedPropertiesCount() { + return groupedProperties_.size(); + } + /** + * repeated string grouped_properties = 3; + * @param index The index of the element to return. + * @return The groupedProperties at the given index. + */ + public java.lang.String getGroupedProperties(int index) { + return groupedProperties_.get(index); + } + /** + * repeated string grouped_properties = 3; + * @param index The index of the value to return. + * @return The bytes of the groupedProperties at the given index. + */ + public com.google.protobuf.ByteString + getGroupedPropertiesBytes(int index) { + return groupedProperties_.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(singleResponsePrompt_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, singleResponsePrompt_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupedResponseTask_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, groupedResponseTask_); + } + for (int i = 0; i < groupedProperties_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, groupedProperties_.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(singleResponsePrompt_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, singleResponsePrompt_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupedResponseTask_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, groupedResponseTask_); + } + { + int dataSize = 0; + for (int i = 0; i < groupedProperties_.size(); i++) { + dataSize += computeStringSizeNoTag(groupedProperties_.getRaw(i)); + } + size += dataSize; + size += 1 * getGroupedPropertiesList().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.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch other = (io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch) obj; + + if (!getSingleResponsePrompt() + .equals(other.getSingleResponsePrompt())) return false; + if (!getGroupedResponseTask() + .equals(other.getGroupedResponseTask())) return false; + if (!getGroupedPropertiesList() + .equals(other.getGroupedPropertiesList())) 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) + SINGLE_RESPONSE_PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getSingleResponsePrompt().hashCode(); + hash = (37 * hash) + GROUPED_RESPONSE_TASK_FIELD_NUMBER; + hash = (53 * hash) + getGroupedResponseTask().hashCode(); + if (getGroupedPropertiesCount() > 0) { + hash = (37 * hash) + GROUPED_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getGroupedPropertiesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch 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.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch 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.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch 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.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch 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 weaviategrpc.GenerativeSearch} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.GenerativeSearch) + io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_GenerativeSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_GenerativeSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.class, io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + singleResponsePrompt_ = ""; + groupedResponseTask_ = ""; + groupedProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_GenerativeSearch_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch build() { + io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch result = new io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.singleResponsePrompt_ = singleResponsePrompt_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.groupedResponseTask_ = groupedResponseTask_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + groupedProperties_.makeImmutable(); + result.groupedProperties_ = groupedProperties_; + } + } + + @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.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.getDefaultInstance()) return this; + if (!other.getSingleResponsePrompt().isEmpty()) { + singleResponsePrompt_ = other.singleResponsePrompt_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getGroupedResponseTask().isEmpty()) { + groupedResponseTask_ = other.groupedResponseTask_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.groupedProperties_.isEmpty()) { + if (groupedProperties_.isEmpty()) { + groupedProperties_ = other.groupedProperties_; + bitField0_ |= 0x00000004; + } else { + ensureGroupedPropertiesIsMutable(); + groupedProperties_.addAll(other.groupedProperties_); + } + 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: { + singleResponsePrompt_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + groupedResponseTask_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureGroupedPropertiesIsMutable(); + groupedProperties_.add(s); + break; + } // case 26 + 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 singleResponsePrompt_ = ""; + /** + * string single_response_prompt = 1; + * @return The singleResponsePrompt. + */ + public java.lang.String getSingleResponsePrompt() { + java.lang.Object ref = singleResponsePrompt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + singleResponsePrompt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string single_response_prompt = 1; + * @return The bytes for singleResponsePrompt. + */ + public com.google.protobuf.ByteString + getSingleResponsePromptBytes() { + java.lang.Object ref = singleResponsePrompt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + singleResponsePrompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string single_response_prompt = 1; + * @param value The singleResponsePrompt to set. + * @return This builder for chaining. + */ + public Builder setSingleResponsePrompt( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + singleResponsePrompt_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string single_response_prompt = 1; + * @return This builder for chaining. + */ + public Builder clearSingleResponsePrompt() { + singleResponsePrompt_ = getDefaultInstance().getSingleResponsePrompt(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string single_response_prompt = 1; + * @param value The bytes for singleResponsePrompt to set. + * @return This builder for chaining. + */ + public Builder setSingleResponsePromptBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + singleResponsePrompt_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object groupedResponseTask_ = ""; + /** + * string grouped_response_task = 2; + * @return The groupedResponseTask. + */ + public java.lang.String getGroupedResponseTask() { + java.lang.Object ref = groupedResponseTask_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupedResponseTask_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string grouped_response_task = 2; + * @return The bytes for groupedResponseTask. + */ + public com.google.protobuf.ByteString + getGroupedResponseTaskBytes() { + java.lang.Object ref = groupedResponseTask_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + groupedResponseTask_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string grouped_response_task = 2; + * @param value The groupedResponseTask to set. + * @return This builder for chaining. + */ + public Builder setGroupedResponseTask( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + groupedResponseTask_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string grouped_response_task = 2; + * @return This builder for chaining. + */ + public Builder clearGroupedResponseTask() { + groupedResponseTask_ = getDefaultInstance().getGroupedResponseTask(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string grouped_response_task = 2; + * @param value The bytes for groupedResponseTask to set. + * @return This builder for chaining. + */ + public Builder setGroupedResponseTaskBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + groupedResponseTask_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList groupedProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureGroupedPropertiesIsMutable() { + if (!groupedProperties_.isModifiable()) { + groupedProperties_ = new com.google.protobuf.LazyStringArrayList(groupedProperties_); + } + bitField0_ |= 0x00000004; + } + /** + * repeated string grouped_properties = 3; + * @return A list containing the groupedProperties. + */ + public com.google.protobuf.ProtocolStringList + getGroupedPropertiesList() { + groupedProperties_.makeImmutable(); + return groupedProperties_; + } + /** + * repeated string grouped_properties = 3; + * @return The count of groupedProperties. + */ + public int getGroupedPropertiesCount() { + return groupedProperties_.size(); + } + /** + * repeated string grouped_properties = 3; + * @param index The index of the element to return. + * @return The groupedProperties at the given index. + */ + public java.lang.String getGroupedProperties(int index) { + return groupedProperties_.get(index); + } + /** + * repeated string grouped_properties = 3; + * @param index The index of the value to return. + * @return The bytes of the groupedProperties at the given index. + */ + public com.google.protobuf.ByteString + getGroupedPropertiesBytes(int index) { + return groupedProperties_.getByteString(index); + } + /** + * repeated string grouped_properties = 3; + * @param index The index to set the value at. + * @param value The groupedProperties to set. + * @return This builder for chaining. + */ + public Builder setGroupedProperties( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureGroupedPropertiesIsMutable(); + groupedProperties_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string grouped_properties = 3; + * @param value The groupedProperties to add. + * @return This builder for chaining. + */ + public Builder addGroupedProperties( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureGroupedPropertiesIsMutable(); + groupedProperties_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string grouped_properties = 3; + * @param values The groupedProperties to add. + * @return This builder for chaining. + */ + public Builder addAllGroupedProperties( + java.lang.Iterable values) { + ensureGroupedPropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, groupedProperties_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string grouped_properties = 3; + * @return This builder for chaining. + */ + public Builder clearGroupedProperties() { + groupedProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + * repeated string grouped_properties = 3; + * @param value The bytes of the groupedProperties to add. + * @return This builder for chaining. + */ + public Builder addGroupedPropertiesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureGroupedPropertiesIsMutable(); + groupedProperties_.add(value); + bitField0_ |= 0x00000004; + 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:weaviategrpc.GenerativeSearch) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.GenerativeSearch) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeSearch 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.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TextArrayOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.TextArray) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string values = 1; + * @return A list containing the values. + */ + java.util.List + getValuesList(); + /** + * repeated string values = 1; + * @return The count of values. + */ + int getValuesCount(); + /** + * repeated string values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * repeated string values = 1; + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString + getValuesBytes(int index); + } + /** + * Protobuf type {@code weaviategrpc.TextArray} + */ + public static final class TextArray extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.TextArray) + TextArrayOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextArray.newBuilder() to construct. + private TextArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TextArray() { + values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TextArray(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_TextArray_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_TextArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.class, io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string values = 1; + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + return values_; + } + /** + * repeated string values = 1; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string values = 1; + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString + getValuesBytes(int index) { + return values_.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 { + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().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.weaviate.client.grpc.protocol.WeaviateProto.TextArray)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.TextArray other = (io.weaviate.client.grpc.protocol.WeaviateProto.TextArray) obj; + + if (!getValuesList() + .equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArray parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArray parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArray parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArray parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArray parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArray parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArray parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArray 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.weaviate.client.grpc.protocol.WeaviateProto.TextArray parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArray 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.weaviate.client.grpc.protocol.WeaviateProto.TextArray parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArray 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.weaviate.client.grpc.protocol.WeaviateProto.TextArray 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 weaviategrpc.TextArray} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.TextArray) + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_TextArray_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_TextArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.class, io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_TextArray_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArray getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArray build() { + io.weaviate.client.grpc.protocol.WeaviateProto.TextArray result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArray buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.TextArray result = new io.weaviate.client.grpc.protocol.WeaviateProto.TextArray(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.TextArray result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + } + + @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.weaviate.client.grpc.protocol.WeaviateProto.TextArray) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.TextArray)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.TextArray other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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: { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + 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 com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000001; + } + /** + * repeated string values = 1; + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * repeated string values = 1; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string values = 1; + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString + getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * repeated string values = 1; + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureValuesIsMutable(); + values_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string values = 1; + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string values = 1; + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues( + java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string values = 1; + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + * repeated string values = 1; + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + 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:weaviategrpc.TextArray) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.TextArray) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.TextArray DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.TextArray(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArray getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextArray 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.weaviate.client.grpc.protocol.WeaviateProto.TextArray getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IntArrayOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.IntArray) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated int64 values = 1; + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * repeated int64 values = 1; + * @return The count of values. + */ + int getValuesCount(); + /** + * repeated int64 values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + long getValues(int index); + } + /** + * Protobuf type {@code weaviategrpc.IntArray} + */ + public static final class IntArray extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.IntArray) + IntArrayOrBuilder { + private static final long serialVersionUID = 0L; + // Use IntArray.newBuilder() to construct. + private IntArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IntArray() { + values_ = emptyLongList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new IntArray(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_IntArray_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_IntArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.class, io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.LongList values_ = + emptyLongList(); + /** + * repeated int64 values = 1; + * @return A list containing the values. + */ + @java.lang.Override + public java.util.List + getValuesList() { + return values_; + } + /** + * repeated int64 values = 1; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated int64 values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + public long getValues(int index) { + return values_.getLong(index); + } + private int valuesMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (getValuesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(valuesMemoizedSerializedSize); + } + for (int i = 0; i < values_.size(); i++) { + output.writeInt64NoTag(values_.getLong(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(values_.getLong(i)); + } + size += dataSize; + if (!getValuesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + valuesMemoizedSerializedSize = dataSize; + } + 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.weaviate.client.grpc.protocol.WeaviateProto.IntArray)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.IntArray other = (io.weaviate.client.grpc.protocol.WeaviateProto.IntArray) obj; + + if (!getValuesList() + .equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArray parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArray parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArray parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArray parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArray parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArray parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArray parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArray 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.weaviate.client.grpc.protocol.WeaviateProto.IntArray parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArray 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.weaviate.client.grpc.protocol.WeaviateProto.IntArray parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArray 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.weaviate.client.grpc.protocol.WeaviateProto.IntArray 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 weaviategrpc.IntArray} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.IntArray) + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_IntArray_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_IntArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.class, io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = emptyLongList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_IntArray_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArray getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArray build() { + io.weaviate.client.grpc.protocol.WeaviateProto.IntArray result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArray buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.IntArray result = new io.weaviate.client.grpc.protocol.WeaviateProto.IntArray(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.IntArray result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + } + + @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.weaviate.client.grpc.protocol.WeaviateProto.IntArray) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.IntArray)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.IntArray other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + values_.makeImmutable(); + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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 8: { + long v = input.readInt64(); + ensureValuesIsMutable(); + values_.addLong(v); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureValuesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + values_.addLong(input.readInt64()); + } + input.popLimit(limit); + 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 com.google.protobuf.Internal.LongList values_ = emptyLongList(); + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = makeMutableCopy(values_); + } + bitField0_ |= 0x00000001; + } + /** + * repeated int64 values = 1; + * @return A list containing the values. + */ + public java.util.List + getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * repeated int64 values = 1; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated int64 values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + public long getValues(int index) { + return values_.getLong(index); + } + /** + * repeated int64 values = 1; + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues( + int index, long value) { + + ensureValuesIsMutable(); + values_.setLong(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated int64 values = 1; + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(long value) { + + ensureValuesIsMutable(); + values_.addLong(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated int64 values = 1; + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues( + java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated int64 values = 1; + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + 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:weaviategrpc.IntArray) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.IntArray) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.IntArray DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.IntArray(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArray getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IntArray 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.weaviate.client.grpc.protocol.WeaviateProto.IntArray getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NumberArrayOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.NumberArray) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated double values = 1; + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * repeated double values = 1; + * @return The count of values. + */ + int getValuesCount(); + /** + * repeated double values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + double getValues(int index); + } + /** + * Protobuf type {@code weaviategrpc.NumberArray} + */ + public static final class NumberArray extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.NumberArray) + NumberArrayOrBuilder { + private static final long serialVersionUID = 0L; + // Use NumberArray.newBuilder() to construct. + private NumberArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NumberArray() { + values_ = emptyDoubleList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NumberArray(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NumberArray_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NumberArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.class, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.DoubleList values_ = + emptyDoubleList(); + /** + * repeated double values = 1; + * @return A list containing the values. + */ + @java.lang.Override + public java.util.List + getValuesList() { + return values_; + } + /** + * repeated double values = 1; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated double values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + public double getValues(int index) { + return values_.getDouble(index); + } + private int valuesMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (getValuesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(valuesMemoizedSerializedSize); + } + for (int i = 0; i < values_.size(); i++) { + output.writeDoubleNoTag(values_.getDouble(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + dataSize = 8 * getValuesList().size(); + size += dataSize; + if (!getValuesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + valuesMemoizedSerializedSize = dataSize; + } + 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.weaviate.client.grpc.protocol.WeaviateProto.NumberArray)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray other = (io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray) obj; + + if (!getValuesList() + .equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray 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.weaviate.client.grpc.protocol.WeaviateProto.NumberArray parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray 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.weaviate.client.grpc.protocol.WeaviateProto.NumberArray parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray 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.weaviate.client.grpc.protocol.WeaviateProto.NumberArray 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 weaviategrpc.NumberArray} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.NumberArray) + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NumberArray_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NumberArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.class, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = emptyDoubleList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NumberArray_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray build() { + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray result = new io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + } + + @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.weaviate.client.grpc.protocol.WeaviateProto.NumberArray) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + values_.makeImmutable(); + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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 9: { + double v = input.readDouble(); + ensureValuesIsMutable(); + values_.addDouble(v); + break; + } // case 9 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + int alloc = length > 4096 ? 4096 : length; + ensureValuesIsMutable(alloc / 8); + while (input.getBytesUntilLimit() > 0) { + values_.addDouble(input.readDouble()); + } + input.popLimit(limit); + 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 com.google.protobuf.Internal.DoubleList values_ = emptyDoubleList(); + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = makeMutableCopy(values_); + } + bitField0_ |= 0x00000001; + } + private void ensureValuesIsMutable(int capacity) { + if (!values_.isModifiable()) { + values_ = makeMutableCopy(values_, capacity); + } + bitField0_ |= 0x00000001; + } + /** + * repeated double values = 1; + * @return A list containing the values. + */ + public java.util.List + getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * repeated double values = 1; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated double values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + public double getValues(int index) { + return values_.getDouble(index); + } + /** + * repeated double values = 1; + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues( + int index, double value) { + + ensureValuesIsMutable(); + values_.setDouble(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated double values = 1; + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(double value) { + + ensureValuesIsMutable(); + values_.addDouble(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated double values = 1; + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues( + java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated double values = 1; + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = emptyDoubleList(); + bitField0_ = (bitField0_ & ~0x00000001); + 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:weaviategrpc.NumberArray) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.NumberArray) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NumberArray 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.weaviate.client.grpc.protocol.WeaviateProto.NumberArray getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BooleanArrayOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.BooleanArray) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated bool values = 1; + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * repeated bool values = 1; + * @return The count of values. + */ + int getValuesCount(); + /** + * repeated bool values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + boolean getValues(int index); + } + /** + * Protobuf type {@code weaviategrpc.BooleanArray} + */ + public static final class BooleanArray extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.BooleanArray) + BooleanArrayOrBuilder { + private static final long serialVersionUID = 0L; + // Use BooleanArray.newBuilder() to construct. + private BooleanArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BooleanArray() { + values_ = emptyBooleanList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BooleanArray(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BooleanArray_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BooleanArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.class, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.BooleanList values_ = + emptyBooleanList(); + /** + * repeated bool values = 1; + * @return A list containing the values. + */ + @java.lang.Override + public java.util.List + getValuesList() { + return values_; + } + /** + * repeated bool values = 1; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated bool values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + public boolean getValues(int index) { + return values_.getBoolean(index); + } + private int valuesMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (getValuesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(valuesMemoizedSerializedSize); + } + for (int i = 0; i < values_.size(); i++) { + output.writeBoolNoTag(values_.getBoolean(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + dataSize = 1 * getValuesList().size(); + size += dataSize; + if (!getValuesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + valuesMemoizedSerializedSize = dataSize; + } + 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.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray other = (io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray) obj; + + if (!getValuesList() + .equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray 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.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray 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.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray 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.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray 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 weaviategrpc.BooleanArray} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.BooleanArray) + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BooleanArray_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BooleanArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.class, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = emptyBooleanList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BooleanArray_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray build() { + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray result = new io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + } + + @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.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + values_.makeImmutable(); + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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 8: { + boolean v = input.readBool(); + ensureValuesIsMutable(); + values_.addBoolean(v); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + int alloc = length > 4096 ? 4096 : length; + ensureValuesIsMutable(alloc / 1); + while (input.getBytesUntilLimit() > 0) { + values_.addBoolean(input.readBool()); + } + input.popLimit(limit); + 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 com.google.protobuf.Internal.BooleanList values_ = emptyBooleanList(); + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = makeMutableCopy(values_); + } + bitField0_ |= 0x00000001; + } + private void ensureValuesIsMutable(int capacity) { + if (!values_.isModifiable()) { + values_ = makeMutableCopy(values_, capacity); + } + bitField0_ |= 0x00000001; + } + /** + * repeated bool values = 1; + * @return A list containing the values. + */ + public java.util.List + getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * repeated bool values = 1; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated bool values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + public boolean getValues(int index) { + return values_.getBoolean(index); + } + /** + * repeated bool values = 1; + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues( + int index, boolean value) { + + ensureValuesIsMutable(); + values_.setBoolean(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated bool values = 1; + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(boolean value) { + + ensureValuesIsMutable(); + values_.addBoolean(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated bool values = 1; + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues( + java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated bool values = 1; + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = emptyBooleanList(); + bitField0_ = (bitField0_ & ~0x00000001); + 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:weaviategrpc.BooleanArray) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.BooleanArray) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BooleanArray 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.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FiltersOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.Filters) + com.google.protobuf.MessageOrBuilder { + + /** + * .weaviategrpc.Filters.Operator operator = 1; + * @return The enum numeric value on the wire for operator. + */ + int getOperatorValue(); + /** + * .weaviategrpc.Filters.Operator operator = 1; + * @return The operator. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator getOperator(); + + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated string on = 2; + * @return A list containing the on. + */ + java.util.List + getOnList(); + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated string on = 2; + * @return The count of on. + */ + int getOnCount(); + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated string on = 2; + * @param index The index of the element to return. + * @return The on at the given index. + */ + java.lang.String getOn(int index); + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated string on = 2; + * @param index The index of the value to return. + * @return The bytes of the on at the given index. + */ + com.google.protobuf.ByteString + getOnBytes(int index); + + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + java.util.List + getFiltersList(); + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.Filters getFilters(int index); + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + int getFiltersCount(); + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + java.util.List + getFiltersOrBuilderList(); + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder getFiltersOrBuilder( + int index); + + /** + * string value_text = 4; + * @return Whether the valueText field is set. + */ + boolean hasValueText(); + /** + * string value_text = 4; + * @return The valueText. + */ + java.lang.String getValueText(); + /** + * string value_text = 4; + * @return The bytes for valueText. + */ + com.google.protobuf.ByteString + getValueTextBytes(); + + /** + * int64 value_int = 5; + * @return Whether the valueInt field is set. + */ + boolean hasValueInt(); + /** + * int64 value_int = 5; + * @return The valueInt. + */ + long getValueInt(); + + /** + * bool value_boolean = 6; + * @return Whether the valueBoolean field is set. + */ + boolean hasValueBoolean(); + /** + * bool value_boolean = 6; + * @return The valueBoolean. + */ + boolean getValueBoolean(); + + /** + * float value_number = 7; + * @return Whether the valueNumber field is set. + */ + boolean hasValueNumber(); + /** + * float value_number = 7; + * @return The valueNumber. + */ + float getValueNumber(); + + /** + * .weaviategrpc.TextArray value_text_array = 9; + * @return Whether the valueTextArray field is set. + */ + boolean hasValueTextArray(); + /** + * .weaviategrpc.TextArray value_text_array = 9; + * @return The valueTextArray. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.TextArray getValueTextArray(); + /** + * .weaviategrpc.TextArray value_text_array = 9; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayOrBuilder getValueTextArrayOrBuilder(); + + /** + * .weaviategrpc.IntArray value_int_array = 10; + * @return Whether the valueIntArray field is set. + */ + boolean hasValueIntArray(); + /** + * .weaviategrpc.IntArray value_int_array = 10; + * @return The valueIntArray. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.IntArray getValueIntArray(); + /** + * .weaviategrpc.IntArray value_int_array = 10; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayOrBuilder getValueIntArrayOrBuilder(); + + /** + * .weaviategrpc.BooleanArray value_boolean_array = 11; + * @return Whether the valueBooleanArray field is set. + */ + boolean hasValueBooleanArray(); + /** + * .weaviategrpc.BooleanArray value_boolean_array = 11; + * @return The valueBooleanArray. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray getValueBooleanArray(); + /** + * .weaviategrpc.BooleanArray value_boolean_array = 11; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayOrBuilder getValueBooleanArrayOrBuilder(); + + /** + * .weaviategrpc.NumberArray value_number_array = 12; + * @return Whether the valueNumberArray field is set. + */ + boolean hasValueNumberArray(); + /** + * .weaviategrpc.NumberArray value_number_array = 12; + * @return The valueNumberArray. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray getValueNumberArray(); + /** + * .weaviategrpc.NumberArray value_number_array = 12; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayOrBuilder getValueNumberArrayOrBuilder(); + + io.weaviate.client.grpc.protocol.WeaviateProto.Filters.TestValueCase getTestValueCase(); + } + /** + * Protobuf type {@code weaviategrpc.Filters} + */ + public static final class Filters extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.Filters) + FiltersOrBuilder { + private static final long serialVersionUID = 0L; + // Use Filters.newBuilder() to construct. + private Filters(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Filters() { + operator_ = 0; + on_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + filters_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Filters(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_Filters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_Filters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.Filters.class, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder.class); + } + + /** + * Protobuf enum {@code weaviategrpc.Filters.Operator} + */ + public enum Operator + implements com.google.protobuf.ProtocolMessageEnum { + /** + * OPERATOR_UNSPECIFIED = 0; + */ + OPERATOR_UNSPECIFIED(0), + /** + * OPERATOR_EQUAL = 1; + */ + OPERATOR_EQUAL(1), + /** + * OPERATOR_NOT_EQUAL = 2; + */ + OPERATOR_NOT_EQUAL(2), + /** + * OPERATOR_GREATER_THAN = 3; + */ + OPERATOR_GREATER_THAN(3), + /** + * OPERATOR_GREATER_THAN_EQUAL = 4; + */ + OPERATOR_GREATER_THAN_EQUAL(4), + /** + * OPERATOR_LESS_THAN = 5; + */ + OPERATOR_LESS_THAN(5), + /** + * OPERATOR_LESS_THAN_EQUAL = 6; + */ + OPERATOR_LESS_THAN_EQUAL(6), + /** + * OPERATOR_AND = 7; + */ + OPERATOR_AND(7), + /** + * OPERATOR_OR = 8; + */ + OPERATOR_OR(8), + /** + * OPERATOR_WITHIN_GEO_RANGE = 9; + */ + OPERATOR_WITHIN_GEO_RANGE(9), + /** + * OPERATOR_LIKE = 10; + */ + OPERATOR_LIKE(10), + /** + * OPERATOR_IS_NULL = 11; + */ + OPERATOR_IS_NULL(11), + /** + * OPERATOR_CONTAINS_ANY = 12; + */ + OPERATOR_CONTAINS_ANY(12), + /** + * OPERATOR_CONTAINS_ALL = 13; + */ + OPERATOR_CONTAINS_ALL(13), + UNRECOGNIZED(-1), + ; + + /** + * OPERATOR_UNSPECIFIED = 0; + */ + public static final int OPERATOR_UNSPECIFIED_VALUE = 0; + /** + * OPERATOR_EQUAL = 1; + */ + public static final int OPERATOR_EQUAL_VALUE = 1; + /** + * OPERATOR_NOT_EQUAL = 2; + */ + public static final int OPERATOR_NOT_EQUAL_VALUE = 2; + /** + * OPERATOR_GREATER_THAN = 3; + */ + public static final int OPERATOR_GREATER_THAN_VALUE = 3; + /** + * OPERATOR_GREATER_THAN_EQUAL = 4; + */ + public static final int OPERATOR_GREATER_THAN_EQUAL_VALUE = 4; + /** + * OPERATOR_LESS_THAN = 5; + */ + public static final int OPERATOR_LESS_THAN_VALUE = 5; + /** + * OPERATOR_LESS_THAN_EQUAL = 6; + */ + public static final int OPERATOR_LESS_THAN_EQUAL_VALUE = 6; + /** + * OPERATOR_AND = 7; + */ + public static final int OPERATOR_AND_VALUE = 7; + /** + * OPERATOR_OR = 8; + */ + public static final int OPERATOR_OR_VALUE = 8; + /** + * OPERATOR_WITHIN_GEO_RANGE = 9; + */ + public static final int OPERATOR_WITHIN_GEO_RANGE_VALUE = 9; + /** + * OPERATOR_LIKE = 10; + */ + public static final int OPERATOR_LIKE_VALUE = 10; + /** + * OPERATOR_IS_NULL = 11; + */ + public static final int OPERATOR_IS_NULL_VALUE = 11; + /** + * OPERATOR_CONTAINS_ANY = 12; + */ + public static final int OPERATOR_CONTAINS_ANY_VALUE = 12; + /** + * OPERATOR_CONTAINS_ALL = 13; + */ + public static final int OPERATOR_CONTAINS_ALL_VALUE = 13; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Operator valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Operator forNumber(int value) { + switch (value) { + case 0: return OPERATOR_UNSPECIFIED; + case 1: return OPERATOR_EQUAL; + case 2: return OPERATOR_NOT_EQUAL; + case 3: return OPERATOR_GREATER_THAN; + case 4: return OPERATOR_GREATER_THAN_EQUAL; + case 5: return OPERATOR_LESS_THAN; + case 6: return OPERATOR_LESS_THAN_EQUAL; + case 7: return OPERATOR_AND; + case 8: return OPERATOR_OR; + case 9: return OPERATOR_WITHIN_GEO_RANGE; + case 10: return OPERATOR_LIKE; + case 11: return OPERATOR_IS_NULL; + case 12: return OPERATOR_CONTAINS_ANY; + case 13: return OPERATOR_CONTAINS_ALL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Operator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Operator findValueByNumber(int number) { + return Operator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.Filters.getDescriptor().getEnumTypes().get(0); + } + + private static final Operator[] VALUES = values(); + + public static Operator valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Operator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:weaviategrpc.Filters.Operator) + } + + private int testValueCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object testValue_; + public enum TestValueCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VALUE_TEXT(4), + VALUE_INT(5), + VALUE_BOOLEAN(6), + VALUE_NUMBER(7), + VALUE_TEXT_ARRAY(9), + VALUE_INT_ARRAY(10), + VALUE_BOOLEAN_ARRAY(11), + VALUE_NUMBER_ARRAY(12), + TESTVALUE_NOT_SET(0); + private final int value; + private TestValueCase(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 TestValueCase valueOf(int value) { + return forNumber(value); + } + + public static TestValueCase forNumber(int value) { + switch (value) { + case 4: return VALUE_TEXT; + case 5: return VALUE_INT; + case 6: return VALUE_BOOLEAN; + case 7: return VALUE_NUMBER; + case 9: return VALUE_TEXT_ARRAY; + case 10: return VALUE_INT_ARRAY; + case 11: return VALUE_BOOLEAN_ARRAY; + case 12: return VALUE_NUMBER_ARRAY; + case 0: return TESTVALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TestValueCase + getTestValueCase() { + return TestValueCase.forNumber( + testValueCase_); + } + + public static final int OPERATOR_FIELD_NUMBER = 1; + private int operator_ = 0; + /** + * .weaviategrpc.Filters.Operator operator = 1; + * @return The enum numeric value on the wire for operator. + */ + @java.lang.Override public int getOperatorValue() { + return operator_; + } + /** + * .weaviategrpc.Filters.Operator operator = 1; + * @return The operator. + */ + @java.lang.Override public io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator getOperator() { + io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator result = io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator.forNumber(operator_); + return result == null ? io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator.UNRECOGNIZED : result; + } + + public static final int ON_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList on_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated string on = 2; + * @return A list containing the on. + */ + public com.google.protobuf.ProtocolStringList + getOnList() { + return on_; + } + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated string on = 2; + * @return The count of on. + */ + public int getOnCount() { + return on_.size(); + } + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated string on = 2; + * @param index The index of the element to return. + * @return The on at the given index. + */ + public java.lang.String getOn(int index) { + return on_.get(index); + } + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated string on = 2; + * @param index The index of the value to return. + * @return The bytes of the on at the given index. + */ + public com.google.protobuf.ByteString + getOnBytes(int index) { + return on_.getByteString(index); + } + + public static final int FILTERS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private java.util.List filters_; + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + @java.lang.Override + public java.util.List getFiltersList() { + return filters_; + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + @java.lang.Override + public java.util.List + getFiltersOrBuilderList() { + return filters_; + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + @java.lang.Override + public int getFiltersCount() { + return filters_.size(); + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.Filters getFilters(int index) { + return filters_.get(index); + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder getFiltersOrBuilder( + int index) { + return filters_.get(index); + } + + public static final int VALUE_TEXT_FIELD_NUMBER = 4; + /** + * string value_text = 4; + * @return Whether the valueText field is set. + */ + public boolean hasValueText() { + return testValueCase_ == 4; + } + /** + * string value_text = 4; + * @return The valueText. + */ + public java.lang.String getValueText() { + java.lang.Object ref = ""; + if (testValueCase_ == 4) { + ref = testValue_; + } + 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(); + if (testValueCase_ == 4) { + testValue_ = s; + } + return s; + } + } + /** + * string value_text = 4; + * @return The bytes for valueText. + */ + public com.google.protobuf.ByteString + getValueTextBytes() { + java.lang.Object ref = ""; + if (testValueCase_ == 4) { + ref = testValue_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (testValueCase_ == 4) { + testValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_INT_FIELD_NUMBER = 5; + /** + * int64 value_int = 5; + * @return Whether the valueInt field is set. + */ + @java.lang.Override + public boolean hasValueInt() { + return testValueCase_ == 5; + } + /** + * int64 value_int = 5; + * @return The valueInt. + */ + @java.lang.Override + public long getValueInt() { + if (testValueCase_ == 5) { + return (java.lang.Long) testValue_; + } + return 0L; + } + + public static final int VALUE_BOOLEAN_FIELD_NUMBER = 6; + /** + * bool value_boolean = 6; + * @return Whether the valueBoolean field is set. + */ + @java.lang.Override + public boolean hasValueBoolean() { + return testValueCase_ == 6; + } + /** + * bool value_boolean = 6; + * @return The valueBoolean. + */ + @java.lang.Override + public boolean getValueBoolean() { + if (testValueCase_ == 6) { + return (java.lang.Boolean) testValue_; + } + return false; + } + + public static final int VALUE_NUMBER_FIELD_NUMBER = 7; + /** + * float value_number = 7; + * @return Whether the valueNumber field is set. + */ + @java.lang.Override + public boolean hasValueNumber() { + return testValueCase_ == 7; + } + /** + * float value_number = 7; + * @return The valueNumber. + */ + @java.lang.Override + public float getValueNumber() { + if (testValueCase_ == 7) { + return (java.lang.Float) testValue_; + } + return 0F; + } + + public static final int VALUE_TEXT_ARRAY_FIELD_NUMBER = 9; + /** + * .weaviategrpc.TextArray value_text_array = 9; + * @return Whether the valueTextArray field is set. + */ + @java.lang.Override + public boolean hasValueTextArray() { + return testValueCase_ == 9; + } + /** + * .weaviategrpc.TextArray value_text_array = 9; + * @return The valueTextArray. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArray getValueTextArray() { + if (testValueCase_ == 9) { + return (io.weaviate.client.grpc.protocol.WeaviateProto.TextArray) testValue_; + } + return io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.getDefaultInstance(); + } + /** + * .weaviategrpc.TextArray value_text_array = 9; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayOrBuilder getValueTextArrayOrBuilder() { + if (testValueCase_ == 9) { + return (io.weaviate.client.grpc.protocol.WeaviateProto.TextArray) testValue_; + } + return io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.getDefaultInstance(); + } + + public static final int VALUE_INT_ARRAY_FIELD_NUMBER = 10; + /** + * .weaviategrpc.IntArray value_int_array = 10; + * @return Whether the valueIntArray field is set. + */ + @java.lang.Override + public boolean hasValueIntArray() { + return testValueCase_ == 10; + } + /** + * .weaviategrpc.IntArray value_int_array = 10; + * @return The valueIntArray. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArray getValueIntArray() { + if (testValueCase_ == 10) { + return (io.weaviate.client.grpc.protocol.WeaviateProto.IntArray) testValue_; + } + return io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.getDefaultInstance(); + } + /** + * .weaviategrpc.IntArray value_int_array = 10; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayOrBuilder getValueIntArrayOrBuilder() { + if (testValueCase_ == 10) { + return (io.weaviate.client.grpc.protocol.WeaviateProto.IntArray) testValue_; + } + return io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.getDefaultInstance(); + } + + public static final int VALUE_BOOLEAN_ARRAY_FIELD_NUMBER = 11; + /** + * .weaviategrpc.BooleanArray value_boolean_array = 11; + * @return Whether the valueBooleanArray field is set. + */ + @java.lang.Override + public boolean hasValueBooleanArray() { + return testValueCase_ == 11; + } + /** + * .weaviategrpc.BooleanArray value_boolean_array = 11; + * @return The valueBooleanArray. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray getValueBooleanArray() { + if (testValueCase_ == 11) { + return (io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray) testValue_; + } + return io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.getDefaultInstance(); + } + /** + * .weaviategrpc.BooleanArray value_boolean_array = 11; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayOrBuilder getValueBooleanArrayOrBuilder() { + if (testValueCase_ == 11) { + return (io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray) testValue_; + } + return io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.getDefaultInstance(); + } + + public static final int VALUE_NUMBER_ARRAY_FIELD_NUMBER = 12; + /** + * .weaviategrpc.NumberArray value_number_array = 12; + * @return Whether the valueNumberArray field is set. + */ + @java.lang.Override + public boolean hasValueNumberArray() { + return testValueCase_ == 12; + } + /** + * .weaviategrpc.NumberArray value_number_array = 12; + * @return The valueNumberArray. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray getValueNumberArray() { + if (testValueCase_ == 12) { + return (io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray) testValue_; + } + return io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.getDefaultInstance(); + } + /** + * .weaviategrpc.NumberArray value_number_array = 12; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayOrBuilder getValueNumberArrayOrBuilder() { + if (testValueCase_ == 12) { + return (io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray) testValue_; + } + return io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.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 (operator_ != io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator.OPERATOR_UNSPECIFIED.getNumber()) { + output.writeEnum(1, operator_); + } + for (int i = 0; i < on_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, on_.getRaw(i)); + } + for (int i = 0; i < filters_.size(); i++) { + output.writeMessage(3, filters_.get(i)); + } + if (testValueCase_ == 4) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, testValue_); + } + if (testValueCase_ == 5) { + output.writeInt64( + 5, (long)((java.lang.Long) testValue_)); + } + if (testValueCase_ == 6) { + output.writeBool( + 6, (boolean)((java.lang.Boolean) testValue_)); + } + if (testValueCase_ == 7) { + output.writeFloat( + 7, (float)((java.lang.Float) testValue_)); + } + if (testValueCase_ == 9) { + output.writeMessage(9, (io.weaviate.client.grpc.protocol.WeaviateProto.TextArray) testValue_); + } + if (testValueCase_ == 10) { + output.writeMessage(10, (io.weaviate.client.grpc.protocol.WeaviateProto.IntArray) testValue_); + } + if (testValueCase_ == 11) { + output.writeMessage(11, (io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray) testValue_); + } + if (testValueCase_ == 12) { + output.writeMessage(12, (io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray) testValue_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operator_ != io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator.OPERATOR_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operator_); + } + { + int dataSize = 0; + for (int i = 0; i < on_.size(); i++) { + dataSize += computeStringSizeNoTag(on_.getRaw(i)); + } + size += dataSize; + size += 1 * getOnList().size(); + } + for (int i = 0; i < filters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, filters_.get(i)); + } + if (testValueCase_ == 4) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, testValue_); + } + if (testValueCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 5, (long)((java.lang.Long) testValue_)); + } + if (testValueCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 6, (boolean)((java.lang.Boolean) testValue_)); + } + if (testValueCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize( + 7, (float)((java.lang.Float) testValue_)); + } + if (testValueCase_ == 9) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (io.weaviate.client.grpc.protocol.WeaviateProto.TextArray) testValue_); + } + if (testValueCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (io.weaviate.client.grpc.protocol.WeaviateProto.IntArray) testValue_); + } + if (testValueCase_ == 11) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray) testValue_); + } + if (testValueCase_ == 12) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray) testValue_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.Filters)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.Filters other = (io.weaviate.client.grpc.protocol.WeaviateProto.Filters) obj; + + if (operator_ != other.operator_) return false; + if (!getOnList() + .equals(other.getOnList())) return false; + if (!getFiltersList() + .equals(other.getFiltersList())) return false; + if (!getTestValueCase().equals(other.getTestValueCase())) return false; + switch (testValueCase_) { + case 4: + if (!getValueText() + .equals(other.getValueText())) return false; + break; + case 5: + if (getValueInt() + != other.getValueInt()) return false; + break; + case 6: + if (getValueBoolean() + != other.getValueBoolean()) return false; + break; + case 7: + if (java.lang.Float.floatToIntBits(getValueNumber()) + != java.lang.Float.floatToIntBits( + other.getValueNumber())) return false; + break; + case 9: + if (!getValueTextArray() + .equals(other.getValueTextArray())) return false; + break; + case 10: + if (!getValueIntArray() + .equals(other.getValueIntArray())) return false; + break; + case 11: + if (!getValueBooleanArray() + .equals(other.getValueBooleanArray())) return false; + break; + case 12: + if (!getValueNumberArray() + .equals(other.getValueNumberArray())) 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(); + hash = (37 * hash) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + if (getOnCount() > 0) { + hash = (37 * hash) + ON_FIELD_NUMBER; + hash = (53 * hash) + getOnList().hashCode(); + } + if (getFiltersCount() > 0) { + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFiltersList().hashCode(); + } + switch (testValueCase_) { + case 4: + hash = (37 * hash) + VALUE_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getValueText().hashCode(); + break; + case 5: + hash = (37 * hash) + VALUE_INT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getValueInt()); + break; + case 6: + hash = (37 * hash) + VALUE_BOOLEAN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValueBoolean()); + break; + case 7: + hash = (37 * hash) + VALUE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getValueNumber()); + break; + case 9: + hash = (37 * hash) + VALUE_TEXT_ARRAY_FIELD_NUMBER; + hash = (53 * hash) + getValueTextArray().hashCode(); + break; + case 10: + hash = (37 * hash) + VALUE_INT_ARRAY_FIELD_NUMBER; + hash = (53 * hash) + getValueIntArray().hashCode(); + break; + case 11: + hash = (37 * hash) + VALUE_BOOLEAN_ARRAY_FIELD_NUMBER; + hash = (53 * hash) + getValueBooleanArray().hashCode(); + break; + case 12: + hash = (37 * hash) + VALUE_NUMBER_ARRAY_FIELD_NUMBER; + hash = (53 * hash) + getValueNumberArray().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.Filters parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.Filters parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.Filters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.Filters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.Filters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.Filters parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.Filters parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.Filters 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.weaviate.client.grpc.protocol.WeaviateProto.Filters parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.Filters 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.weaviate.client.grpc.protocol.WeaviateProto.Filters parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.Filters 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.weaviate.client.grpc.protocol.WeaviateProto.Filters 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 weaviategrpc.Filters} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.Filters) + io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_Filters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_Filters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.Filters.class, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.Filters.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + operator_ = 0; + on_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + if (filtersBuilder_ == null) { + filters_ = java.util.Collections.emptyList(); + } else { + filters_ = null; + filtersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (valueTextArrayBuilder_ != null) { + valueTextArrayBuilder_.clear(); + } + if (valueIntArrayBuilder_ != null) { + valueIntArrayBuilder_.clear(); + } + if (valueBooleanArrayBuilder_ != null) { + valueBooleanArrayBuilder_.clear(); + } + if (valueNumberArrayBuilder_ != null) { + valueNumberArrayBuilder_.clear(); + } + testValueCase_ = 0; + testValue_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_Filters_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.Filters getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.Filters.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.Filters build() { + io.weaviate.client.grpc.protocol.WeaviateProto.Filters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.Filters buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.Filters result = new io.weaviate.client.grpc.protocol.WeaviateProto.Filters(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.WeaviateProto.Filters result) { + if (filtersBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + filters_ = java.util.Collections.unmodifiableList(filters_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.filters_ = filters_; + } else { + result.filters_ = filtersBuilder_.build(); + } + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.Filters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.operator_ = operator_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + on_.makeImmutable(); + result.on_ = on_; + } + } + + private void buildPartialOneofs(io.weaviate.client.grpc.protocol.WeaviateProto.Filters result) { + result.testValueCase_ = testValueCase_; + result.testValue_ = this.testValue_; + if (testValueCase_ == 9 && + valueTextArrayBuilder_ != null) { + result.testValue_ = valueTextArrayBuilder_.build(); + } + if (testValueCase_ == 10 && + valueIntArrayBuilder_ != null) { + result.testValue_ = valueIntArrayBuilder_.build(); + } + if (testValueCase_ == 11 && + valueBooleanArrayBuilder_ != null) { + result.testValue_ = valueBooleanArrayBuilder_.build(); + } + if (testValueCase_ == 12 && + valueNumberArrayBuilder_ != null) { + result.testValue_ = valueNumberArrayBuilder_.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 io.weaviate.client.grpc.protocol.WeaviateProto.Filters) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.Filters)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.Filters other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.Filters.getDefaultInstance()) return this; + if (other.operator_ != 0) { + setOperatorValue(other.getOperatorValue()); + } + if (!other.on_.isEmpty()) { + if (on_.isEmpty()) { + on_ = other.on_; + bitField0_ |= 0x00000002; + } else { + ensureOnIsMutable(); + on_.addAll(other.on_); + } + onChanged(); + } + if (filtersBuilder_ == null) { + if (!other.filters_.isEmpty()) { + if (filters_.isEmpty()) { + filters_ = other.filters_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFiltersIsMutable(); + filters_.addAll(other.filters_); + } + onChanged(); + } + } else { + if (!other.filters_.isEmpty()) { + if (filtersBuilder_.isEmpty()) { + filtersBuilder_.dispose(); + filtersBuilder_ = null; + filters_ = other.filters_; + bitField0_ = (bitField0_ & ~0x00000004); + filtersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFiltersFieldBuilder() : null; + } else { + filtersBuilder_.addAllMessages(other.filters_); + } + } + } + switch (other.getTestValueCase()) { + case VALUE_TEXT: { + testValueCase_ = 4; + testValue_ = other.testValue_; + onChanged(); + break; + } + case VALUE_INT: { + setValueInt(other.getValueInt()); + break; + } + case VALUE_BOOLEAN: { + setValueBoolean(other.getValueBoolean()); + break; + } + case VALUE_NUMBER: { + setValueNumber(other.getValueNumber()); + break; + } + case VALUE_TEXT_ARRAY: { + mergeValueTextArray(other.getValueTextArray()); + break; + } + case VALUE_INT_ARRAY: { + mergeValueIntArray(other.getValueIntArray()); + break; + } + case VALUE_BOOLEAN_ARRAY: { + mergeValueBooleanArray(other.getValueBooleanArray()); + break; + } + case VALUE_NUMBER_ARRAY: { + mergeValueNumberArray(other.getValueNumberArray()); + break; + } + case TESTVALUE_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 8: { + operator_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureOnIsMutable(); + on_.add(s); + break; + } // case 18 + case 26: { + io.weaviate.client.grpc.protocol.WeaviateProto.Filters m = + input.readMessage( + io.weaviate.client.grpc.protocol.WeaviateProto.Filters.parser(), + extensionRegistry); + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.add(m); + } else { + filtersBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + testValueCase_ = 4; + testValue_ = s; + break; + } // case 34 + case 40: { + testValue_ = input.readInt64(); + testValueCase_ = 5; + break; + } // case 40 + case 48: { + testValue_ = input.readBool(); + testValueCase_ = 6; + break; + } // case 48 + case 61: { + testValue_ = input.readFloat(); + testValueCase_ = 7; + break; + } // case 61 + case 74: { + input.readMessage( + getValueTextArrayFieldBuilder().getBuilder(), + extensionRegistry); + testValueCase_ = 9; + break; + } // case 74 + case 82: { + input.readMessage( + getValueIntArrayFieldBuilder().getBuilder(), + extensionRegistry); + testValueCase_ = 10; + break; + } // case 82 + case 90: { + input.readMessage( + getValueBooleanArrayFieldBuilder().getBuilder(), + extensionRegistry); + testValueCase_ = 11; + break; + } // case 90 + case 98: { + input.readMessage( + getValueNumberArrayFieldBuilder().getBuilder(), + extensionRegistry); + testValueCase_ = 12; + break; + } // case 98 + 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 testValueCase_ = 0; + private java.lang.Object testValue_; + public TestValueCase + getTestValueCase() { + return TestValueCase.forNumber( + testValueCase_); + } + + public Builder clearTestValue() { + testValueCase_ = 0; + testValue_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private int operator_ = 0; + /** + * .weaviategrpc.Filters.Operator operator = 1; + * @return The enum numeric value on the wire for operator. + */ + @java.lang.Override public int getOperatorValue() { + return operator_; + } + /** + * .weaviategrpc.Filters.Operator operator = 1; + * @param value The enum numeric value on the wire for operator to set. + * @return This builder for chaining. + */ + public Builder setOperatorValue(int value) { + operator_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .weaviategrpc.Filters.Operator operator = 1; + * @return The operator. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator getOperator() { + io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator result = io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator.forNumber(operator_); + return result == null ? io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator.UNRECOGNIZED : result; + } + /** + * .weaviategrpc.Filters.Operator operator = 1; + * @param value The operator to set. + * @return This builder for chaining. + */ + public Builder setOperator(io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + operator_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .weaviategrpc.Filters.Operator operator = 1; + * @return This builder for chaining. + */ + public Builder clearOperator() { + bitField0_ = (bitField0_ & ~0x00000001); + operator_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList on_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureOnIsMutable() { + if (!on_.isModifiable()) { + on_ = new com.google.protobuf.LazyStringArrayList(on_); + } + bitField0_ |= 0x00000002; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string on = 2; + * @return A list containing the on. + */ + public com.google.protobuf.ProtocolStringList + getOnList() { + on_.makeImmutable(); + return on_; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string on = 2; + * @return The count of on. + */ + public int getOnCount() { + return on_.size(); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string on = 2; + * @param index The index of the element to return. + * @return The on at the given index. + */ + public java.lang.String getOn(int index) { + return on_.get(index); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string on = 2; + * @param index The index of the value to return. + * @return The bytes of the on at the given index. + */ + public com.google.protobuf.ByteString + getOnBytes(int index) { + return on_.getByteString(index); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string on = 2; + * @param index The index to set the value at. + * @param value The on to set. + * @return This builder for chaining. + */ + public Builder setOn( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureOnIsMutable(); + on_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string on = 2; + * @param value The on to add. + * @return This builder for chaining. + */ + public Builder addOn( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureOnIsMutable(); + on_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string on = 2; + * @param values The on to add. + * @return This builder for chaining. + */ + public Builder addAllOn( + java.lang.Iterable values) { + ensureOnIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, on_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string on = 2; + * @return This builder for chaining. + */ + public Builder clearOn() { + on_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string on = 2; + * @param value The bytes of the on to add. + * @return This builder for chaining. + */ + public Builder addOnBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureOnIsMutable(); + on_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List filters_ = + java.util.Collections.emptyList(); + private void ensureFiltersIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + filters_ = new java.util.ArrayList(filters_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.Filters, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder> filtersBuilder_; + + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + public java.util.List getFiltersList() { + if (filtersBuilder_ == null) { + return java.util.Collections.unmodifiableList(filters_); + } else { + return filtersBuilder_.getMessageList(); + } + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + public int getFiltersCount() { + if (filtersBuilder_ == null) { + return filters_.size(); + } else { + return filtersBuilder_.getCount(); + } + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.Filters getFilters(int index) { + if (filtersBuilder_ == null) { + return filters_.get(index); + } else { + return filtersBuilder_.getMessage(index); + } + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + public Builder setFilters( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.Filters value) { + if (filtersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFiltersIsMutable(); + filters_.set(index, value); + onChanged(); + } else { + filtersBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + public Builder setFilters( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder builderForValue) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.set(index, builderForValue.build()); + onChanged(); + } else { + filtersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + public Builder addFilters(io.weaviate.client.grpc.protocol.WeaviateProto.Filters value) { + if (filtersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFiltersIsMutable(); + filters_.add(value); + onChanged(); + } else { + filtersBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + public Builder addFilters( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.Filters value) { + if (filtersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFiltersIsMutable(); + filters_.add(index, value); + onChanged(); + } else { + filtersBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + public Builder addFilters( + io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder builderForValue) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.add(builderForValue.build()); + onChanged(); + } else { + filtersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + public Builder addFilters( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder builderForValue) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.add(index, builderForValue.build()); + onChanged(); + } else { + filtersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + public Builder addAllFilters( + java.lang.Iterable values) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, filters_); + onChanged(); + } else { + filtersBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + public Builder clearFilters() { + if (filtersBuilder_ == null) { + filters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + filtersBuilder_.clear(); + } + return this; + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + public Builder removeFilters(int index) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.remove(index); + onChanged(); + } else { + filtersBuilder_.remove(index); + } + return this; + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder getFiltersBuilder( + int index) { + return getFiltersFieldBuilder().getBuilder(index); + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder getFiltersOrBuilder( + int index) { + if (filtersBuilder_ == null) { + return filters_.get(index); } else { + return filtersBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + public java.util.List + getFiltersOrBuilderList() { + if (filtersBuilder_ != null) { + return filtersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(filters_); + } + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder addFiltersBuilder() { + return getFiltersFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.WeaviateProto.Filters.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder addFiltersBuilder( + int index) { + return getFiltersFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.Filters filters = 3; + */ + public java.util.List + getFiltersBuilderList() { + return getFiltersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.Filters, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder> + getFiltersFieldBuilder() { + if (filtersBuilder_ == null) { + filtersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.Filters, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder>( + filters_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + filters_ = null; + } + return filtersBuilder_; + } + + /** + * string value_text = 4; + * @return Whether the valueText field is set. + */ + @java.lang.Override + public boolean hasValueText() { + return testValueCase_ == 4; + } + /** + * string value_text = 4; + * @return The valueText. + */ + @java.lang.Override + public java.lang.String getValueText() { + java.lang.Object ref = ""; + if (testValueCase_ == 4) { + ref = testValue_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (testValueCase_ == 4) { + testValue_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string value_text = 4; + * @return The bytes for valueText. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueTextBytes() { + java.lang.Object ref = ""; + if (testValueCase_ == 4) { + ref = testValue_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (testValueCase_ == 4) { + testValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string value_text = 4; + * @param value The valueText to set. + * @return This builder for chaining. + */ + public Builder setValueText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + testValueCase_ = 4; + testValue_ = value; + onChanged(); + return this; + } + /** + * string value_text = 4; + * @return This builder for chaining. + */ + public Builder clearValueText() { + if (testValueCase_ == 4) { + testValueCase_ = 0; + testValue_ = null; + onChanged(); + } + return this; + } + /** + * string value_text = 4; + * @param value The bytes for valueText to set. + * @return This builder for chaining. + */ + public Builder setValueTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + testValueCase_ = 4; + testValue_ = value; + onChanged(); + return this; + } + + /** + * int64 value_int = 5; + * @return Whether the valueInt field is set. + */ + public boolean hasValueInt() { + return testValueCase_ == 5; + } + /** + * int64 value_int = 5; + * @return The valueInt. + */ + public long getValueInt() { + if (testValueCase_ == 5) { + return (java.lang.Long) testValue_; + } + return 0L; + } + /** + * int64 value_int = 5; + * @param value The valueInt to set. + * @return This builder for chaining. + */ + public Builder setValueInt(long value) { + + testValueCase_ = 5; + testValue_ = value; + onChanged(); + return this; + } + /** + * int64 value_int = 5; + * @return This builder for chaining. + */ + public Builder clearValueInt() { + if (testValueCase_ == 5) { + testValueCase_ = 0; + testValue_ = null; + onChanged(); + } + return this; + } + + /** + * bool value_boolean = 6; + * @return Whether the valueBoolean field is set. + */ + public boolean hasValueBoolean() { + return testValueCase_ == 6; + } + /** + * bool value_boolean = 6; + * @return The valueBoolean. + */ + public boolean getValueBoolean() { + if (testValueCase_ == 6) { + return (java.lang.Boolean) testValue_; + } + return false; + } + /** + * bool value_boolean = 6; + * @param value The valueBoolean to set. + * @return This builder for chaining. + */ + public Builder setValueBoolean(boolean value) { + + testValueCase_ = 6; + testValue_ = value; + onChanged(); + return this; + } + /** + * bool value_boolean = 6; + * @return This builder for chaining. + */ + public Builder clearValueBoolean() { + if (testValueCase_ == 6) { + testValueCase_ = 0; + testValue_ = null; + onChanged(); + } + return this; + } + + /** + * float value_number = 7; + * @return Whether the valueNumber field is set. + */ + public boolean hasValueNumber() { + return testValueCase_ == 7; + } + /** + * float value_number = 7; + * @return The valueNumber. + */ + public float getValueNumber() { + if (testValueCase_ == 7) { + return (java.lang.Float) testValue_; + } + return 0F; + } + /** + * float value_number = 7; + * @param value The valueNumber to set. + * @return This builder for chaining. + */ + public Builder setValueNumber(float value) { + + testValueCase_ = 7; + testValue_ = value; + onChanged(); + return this; + } + /** + * float value_number = 7; + * @return This builder for chaining. + */ + public Builder clearValueNumber() { + if (testValueCase_ == 7) { + testValueCase_ = 0; + testValue_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.TextArray, io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayOrBuilder> valueTextArrayBuilder_; + /** + * .weaviategrpc.TextArray value_text_array = 9; + * @return Whether the valueTextArray field is set. + */ + @java.lang.Override + public boolean hasValueTextArray() { + return testValueCase_ == 9; + } + /** + * .weaviategrpc.TextArray value_text_array = 9; + * @return The valueTextArray. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArray getValueTextArray() { + if (valueTextArrayBuilder_ == null) { + if (testValueCase_ == 9) { + return (io.weaviate.client.grpc.protocol.WeaviateProto.TextArray) testValue_; + } + return io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.getDefaultInstance(); + } else { + if (testValueCase_ == 9) { + return valueTextArrayBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.getDefaultInstance(); + } + } + /** + * .weaviategrpc.TextArray value_text_array = 9; + */ + public Builder setValueTextArray(io.weaviate.client.grpc.protocol.WeaviateProto.TextArray value) { + if (valueTextArrayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + testValue_ = value; + onChanged(); + } else { + valueTextArrayBuilder_.setMessage(value); + } + testValueCase_ = 9; + return this; + } + /** + * .weaviategrpc.TextArray value_text_array = 9; + */ + public Builder setValueTextArray( + io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.Builder builderForValue) { + if (valueTextArrayBuilder_ == null) { + testValue_ = builderForValue.build(); + onChanged(); + } else { + valueTextArrayBuilder_.setMessage(builderForValue.build()); + } + testValueCase_ = 9; + return this; + } + /** + * .weaviategrpc.TextArray value_text_array = 9; + */ + public Builder mergeValueTextArray(io.weaviate.client.grpc.protocol.WeaviateProto.TextArray value) { + if (valueTextArrayBuilder_ == null) { + if (testValueCase_ == 9 && + testValue_ != io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.getDefaultInstance()) { + testValue_ = io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.newBuilder((io.weaviate.client.grpc.protocol.WeaviateProto.TextArray) testValue_) + .mergeFrom(value).buildPartial(); + } else { + testValue_ = value; + } + onChanged(); + } else { + if (testValueCase_ == 9) { + valueTextArrayBuilder_.mergeFrom(value); + } else { + valueTextArrayBuilder_.setMessage(value); + } + } + testValueCase_ = 9; + return this; + } + /** + * .weaviategrpc.TextArray value_text_array = 9; + */ + public Builder clearValueTextArray() { + if (valueTextArrayBuilder_ == null) { + if (testValueCase_ == 9) { + testValueCase_ = 0; + testValue_ = null; + onChanged(); + } + } else { + if (testValueCase_ == 9) { + testValueCase_ = 0; + testValue_ = null; + } + valueTextArrayBuilder_.clear(); + } + return this; + } + /** + * .weaviategrpc.TextArray value_text_array = 9; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.Builder getValueTextArrayBuilder() { + return getValueTextArrayFieldBuilder().getBuilder(); + } + /** + * .weaviategrpc.TextArray value_text_array = 9; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayOrBuilder getValueTextArrayOrBuilder() { + if ((testValueCase_ == 9) && (valueTextArrayBuilder_ != null)) { + return valueTextArrayBuilder_.getMessageOrBuilder(); + } else { + if (testValueCase_ == 9) { + return (io.weaviate.client.grpc.protocol.WeaviateProto.TextArray) testValue_; + } + return io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.getDefaultInstance(); + } + } + /** + * .weaviategrpc.TextArray value_text_array = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.TextArray, io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayOrBuilder> + getValueTextArrayFieldBuilder() { + if (valueTextArrayBuilder_ == null) { + if (!(testValueCase_ == 9)) { + testValue_ = io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.getDefaultInstance(); + } + valueTextArrayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.TextArray, io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayOrBuilder>( + (io.weaviate.client.grpc.protocol.WeaviateProto.TextArray) testValue_, + getParentForChildren(), + isClean()); + testValue_ = null; + } + testValueCase_ = 9; + onChanged(); + return valueTextArrayBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.IntArray, io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayOrBuilder> valueIntArrayBuilder_; + /** + * .weaviategrpc.IntArray value_int_array = 10; + * @return Whether the valueIntArray field is set. + */ + @java.lang.Override + public boolean hasValueIntArray() { + return testValueCase_ == 10; + } + /** + * .weaviategrpc.IntArray value_int_array = 10; + * @return The valueIntArray. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArray getValueIntArray() { + if (valueIntArrayBuilder_ == null) { + if (testValueCase_ == 10) { + return (io.weaviate.client.grpc.protocol.WeaviateProto.IntArray) testValue_; + } + return io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.getDefaultInstance(); + } else { + if (testValueCase_ == 10) { + return valueIntArrayBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.getDefaultInstance(); + } + } + /** + * .weaviategrpc.IntArray value_int_array = 10; + */ + public Builder setValueIntArray(io.weaviate.client.grpc.protocol.WeaviateProto.IntArray value) { + if (valueIntArrayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + testValue_ = value; + onChanged(); + } else { + valueIntArrayBuilder_.setMessage(value); + } + testValueCase_ = 10; + return this; + } + /** + * .weaviategrpc.IntArray value_int_array = 10; + */ + public Builder setValueIntArray( + io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.Builder builderForValue) { + if (valueIntArrayBuilder_ == null) { + testValue_ = builderForValue.build(); + onChanged(); + } else { + valueIntArrayBuilder_.setMessage(builderForValue.build()); + } + testValueCase_ = 10; + return this; + } + /** + * .weaviategrpc.IntArray value_int_array = 10; + */ + public Builder mergeValueIntArray(io.weaviate.client.grpc.protocol.WeaviateProto.IntArray value) { + if (valueIntArrayBuilder_ == null) { + if (testValueCase_ == 10 && + testValue_ != io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.getDefaultInstance()) { + testValue_ = io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.newBuilder((io.weaviate.client.grpc.protocol.WeaviateProto.IntArray) testValue_) + .mergeFrom(value).buildPartial(); + } else { + testValue_ = value; + } + onChanged(); + } else { + if (testValueCase_ == 10) { + valueIntArrayBuilder_.mergeFrom(value); + } else { + valueIntArrayBuilder_.setMessage(value); + } + } + testValueCase_ = 10; + return this; + } + /** + * .weaviategrpc.IntArray value_int_array = 10; + */ + public Builder clearValueIntArray() { + if (valueIntArrayBuilder_ == null) { + if (testValueCase_ == 10) { + testValueCase_ = 0; + testValue_ = null; + onChanged(); + } + } else { + if (testValueCase_ == 10) { + testValueCase_ = 0; + testValue_ = null; + } + valueIntArrayBuilder_.clear(); + } + return this; + } + /** + * .weaviategrpc.IntArray value_int_array = 10; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.Builder getValueIntArrayBuilder() { + return getValueIntArrayFieldBuilder().getBuilder(); + } + /** + * .weaviategrpc.IntArray value_int_array = 10; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayOrBuilder getValueIntArrayOrBuilder() { + if ((testValueCase_ == 10) && (valueIntArrayBuilder_ != null)) { + return valueIntArrayBuilder_.getMessageOrBuilder(); + } else { + if (testValueCase_ == 10) { + return (io.weaviate.client.grpc.protocol.WeaviateProto.IntArray) testValue_; + } + return io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.getDefaultInstance(); + } + } + /** + * .weaviategrpc.IntArray value_int_array = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.IntArray, io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayOrBuilder> + getValueIntArrayFieldBuilder() { + if (valueIntArrayBuilder_ == null) { + if (!(testValueCase_ == 10)) { + testValue_ = io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.getDefaultInstance(); + } + valueIntArrayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.IntArray, io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayOrBuilder>( + (io.weaviate.client.grpc.protocol.WeaviateProto.IntArray) testValue_, + getParentForChildren(), + isClean()); + testValue_ = null; + } + testValueCase_ = 10; + onChanged(); + return valueIntArrayBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayOrBuilder> valueBooleanArrayBuilder_; + /** + * .weaviategrpc.BooleanArray value_boolean_array = 11; + * @return Whether the valueBooleanArray field is set. + */ + @java.lang.Override + public boolean hasValueBooleanArray() { + return testValueCase_ == 11; + } + /** + * .weaviategrpc.BooleanArray value_boolean_array = 11; + * @return The valueBooleanArray. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray getValueBooleanArray() { + if (valueBooleanArrayBuilder_ == null) { + if (testValueCase_ == 11) { + return (io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray) testValue_; + } + return io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.getDefaultInstance(); + } else { + if (testValueCase_ == 11) { + return valueBooleanArrayBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.getDefaultInstance(); + } + } + /** + * .weaviategrpc.BooleanArray value_boolean_array = 11; + */ + public Builder setValueBooleanArray(io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray value) { + if (valueBooleanArrayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + testValue_ = value; + onChanged(); + } else { + valueBooleanArrayBuilder_.setMessage(value); + } + testValueCase_ = 11; + return this; + } + /** + * .weaviategrpc.BooleanArray value_boolean_array = 11; + */ + public Builder setValueBooleanArray( + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.Builder builderForValue) { + if (valueBooleanArrayBuilder_ == null) { + testValue_ = builderForValue.build(); + onChanged(); + } else { + valueBooleanArrayBuilder_.setMessage(builderForValue.build()); + } + testValueCase_ = 11; + return this; + } + /** + * .weaviategrpc.BooleanArray value_boolean_array = 11; + */ + public Builder mergeValueBooleanArray(io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray value) { + if (valueBooleanArrayBuilder_ == null) { + if (testValueCase_ == 11 && + testValue_ != io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.getDefaultInstance()) { + testValue_ = io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.newBuilder((io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray) testValue_) + .mergeFrom(value).buildPartial(); + } else { + testValue_ = value; + } + onChanged(); + } else { + if (testValueCase_ == 11) { + valueBooleanArrayBuilder_.mergeFrom(value); + } else { + valueBooleanArrayBuilder_.setMessage(value); + } + } + testValueCase_ = 11; + return this; + } + /** + * .weaviategrpc.BooleanArray value_boolean_array = 11; + */ + public Builder clearValueBooleanArray() { + if (valueBooleanArrayBuilder_ == null) { + if (testValueCase_ == 11) { + testValueCase_ = 0; + testValue_ = null; + onChanged(); + } + } else { + if (testValueCase_ == 11) { + testValueCase_ = 0; + testValue_ = null; + } + valueBooleanArrayBuilder_.clear(); + } + return this; + } + /** + * .weaviategrpc.BooleanArray value_boolean_array = 11; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.Builder getValueBooleanArrayBuilder() { + return getValueBooleanArrayFieldBuilder().getBuilder(); + } + /** + * .weaviategrpc.BooleanArray value_boolean_array = 11; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayOrBuilder getValueBooleanArrayOrBuilder() { + if ((testValueCase_ == 11) && (valueBooleanArrayBuilder_ != null)) { + return valueBooleanArrayBuilder_.getMessageOrBuilder(); + } else { + if (testValueCase_ == 11) { + return (io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray) testValue_; + } + return io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.getDefaultInstance(); + } + } + /** + * .weaviategrpc.BooleanArray value_boolean_array = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayOrBuilder> + getValueBooleanArrayFieldBuilder() { + if (valueBooleanArrayBuilder_ == null) { + if (!(testValueCase_ == 11)) { + testValue_ = io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.getDefaultInstance(); + } + valueBooleanArrayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayOrBuilder>( + (io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray) testValue_, + getParentForChildren(), + isClean()); + testValue_ = null; + } + testValueCase_ = 11; + onChanged(); + return valueBooleanArrayBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayOrBuilder> valueNumberArrayBuilder_; + /** + * .weaviategrpc.NumberArray value_number_array = 12; + * @return Whether the valueNumberArray field is set. + */ + @java.lang.Override + public boolean hasValueNumberArray() { + return testValueCase_ == 12; + } + /** + * .weaviategrpc.NumberArray value_number_array = 12; + * @return The valueNumberArray. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray getValueNumberArray() { + if (valueNumberArrayBuilder_ == null) { + if (testValueCase_ == 12) { + return (io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray) testValue_; + } + return io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.getDefaultInstance(); + } else { + if (testValueCase_ == 12) { + return valueNumberArrayBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.getDefaultInstance(); + } + } + /** + * .weaviategrpc.NumberArray value_number_array = 12; + */ + public Builder setValueNumberArray(io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray value) { + if (valueNumberArrayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + testValue_ = value; + onChanged(); + } else { + valueNumberArrayBuilder_.setMessage(value); + } + testValueCase_ = 12; + return this; + } + /** + * .weaviategrpc.NumberArray value_number_array = 12; + */ + public Builder setValueNumberArray( + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.Builder builderForValue) { + if (valueNumberArrayBuilder_ == null) { + testValue_ = builderForValue.build(); + onChanged(); + } else { + valueNumberArrayBuilder_.setMessage(builderForValue.build()); + } + testValueCase_ = 12; + return this; + } + /** + * .weaviategrpc.NumberArray value_number_array = 12; + */ + public Builder mergeValueNumberArray(io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray value) { + if (valueNumberArrayBuilder_ == null) { + if (testValueCase_ == 12 && + testValue_ != io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.getDefaultInstance()) { + testValue_ = io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.newBuilder((io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray) testValue_) + .mergeFrom(value).buildPartial(); + } else { + testValue_ = value; + } + onChanged(); + } else { + if (testValueCase_ == 12) { + valueNumberArrayBuilder_.mergeFrom(value); + } else { + valueNumberArrayBuilder_.setMessage(value); + } + } + testValueCase_ = 12; + return this; + } + /** + * .weaviategrpc.NumberArray value_number_array = 12; + */ + public Builder clearValueNumberArray() { + if (valueNumberArrayBuilder_ == null) { + if (testValueCase_ == 12) { + testValueCase_ = 0; + testValue_ = null; + onChanged(); + } + } else { + if (testValueCase_ == 12) { + testValueCase_ = 0; + testValue_ = null; + } + valueNumberArrayBuilder_.clear(); + } + return this; + } + /** + * .weaviategrpc.NumberArray value_number_array = 12; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.Builder getValueNumberArrayBuilder() { + return getValueNumberArrayFieldBuilder().getBuilder(); + } + /** + * .weaviategrpc.NumberArray value_number_array = 12; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayOrBuilder getValueNumberArrayOrBuilder() { + if ((testValueCase_ == 12) && (valueNumberArrayBuilder_ != null)) { + return valueNumberArrayBuilder_.getMessageOrBuilder(); + } else { + if (testValueCase_ == 12) { + return (io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray) testValue_; + } + return io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.getDefaultInstance(); + } + } + /** + * .weaviategrpc.NumberArray value_number_array = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayOrBuilder> + getValueNumberArrayFieldBuilder() { + if (valueNumberArrayBuilder_ == null) { + if (!(testValueCase_ == 12)) { + testValue_ = io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.getDefaultInstance(); + } + valueNumberArrayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayOrBuilder>( + (io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray) testValue_, + getParentForChildren(), + isClean()); + testValue_ = null; + } + testValueCase_ = 12; + onChanged(); + return valueNumberArrayBuilder_; + } + @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:weaviategrpc.Filters) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.Filters) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.Filters DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.Filters(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.Filters getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filters 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.weaviate.client.grpc.protocol.WeaviateProto.Filters getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AdditionalPropertiesOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.AdditionalProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * bool uuid = 1; + * @return The uuid. + */ + boolean getUuid(); + + /** + * bool vector = 2; + * @return The vector. + */ + boolean getVector(); + + /** + *
+     * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+     * 
+ * + * bool creationTimeUnix = 3; + * @return The creationTimeUnix. + */ + boolean getCreationTimeUnix(); + + /** + *
+     * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+     * 
+ * + * bool lastUpdateTimeUnix = 4; + * @return The lastUpdateTimeUnix. + */ + boolean getLastUpdateTimeUnix(); + + /** + * bool distance = 5; + * @return The distance. + */ + boolean getDistance(); + + /** + * bool certainty = 6; + * @return The certainty. + */ + boolean getCertainty(); + + /** + * bool score = 7; + * @return The score. + */ + boolean getScore(); + + /** + *
+     * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+     * 
+ * + * bool explainScore = 8; + * @return The explainScore. + */ + boolean getExplainScore(); + + /** + * bool is_consistent = 9; + * @return The isConsistent. + */ + boolean getIsConsistent(); + } + /** + * Protobuf type {@code weaviategrpc.AdditionalProperties} + */ + public static final class AdditionalProperties extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.AdditionalProperties) + AdditionalPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use AdditionalProperties.newBuilder() to construct. + private AdditionalProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AdditionalProperties() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AdditionalProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_AdditionalProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_AdditionalProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.class, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.Builder.class); + } + + public static final int UUID_FIELD_NUMBER = 1; + private boolean uuid_ = false; + /** + * bool uuid = 1; + * @return The uuid. + */ + @java.lang.Override + public boolean getUuid() { + return uuid_; + } + + public static final int VECTOR_FIELD_NUMBER = 2; + private boolean vector_ = false; + /** + * bool vector = 2; + * @return The vector. + */ + @java.lang.Override + public boolean getVector() { + return vector_; + } + + public static final int CREATIONTIMEUNIX_FIELD_NUMBER = 3; + private boolean creationTimeUnix_ = false; + /** + *
+     * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+     * 
+ * + * bool creationTimeUnix = 3; + * @return The creationTimeUnix. + */ + @java.lang.Override + public boolean getCreationTimeUnix() { + return creationTimeUnix_; + } + + public static final int LASTUPDATETIMEUNIX_FIELD_NUMBER = 4; + private boolean lastUpdateTimeUnix_ = false; + /** + *
+     * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+     * 
+ * + * bool lastUpdateTimeUnix = 4; + * @return The lastUpdateTimeUnix. + */ + @java.lang.Override + public boolean getLastUpdateTimeUnix() { + return lastUpdateTimeUnix_; + } + + public static final int DISTANCE_FIELD_NUMBER = 5; + private boolean distance_ = false; + /** + * bool distance = 5; + * @return The distance. + */ + @java.lang.Override + public boolean getDistance() { + return distance_; + } + + public static final int CERTAINTY_FIELD_NUMBER = 6; + private boolean certainty_ = false; + /** + * bool certainty = 6; + * @return The certainty. + */ + @java.lang.Override + public boolean getCertainty() { + return certainty_; + } + + public static final int SCORE_FIELD_NUMBER = 7; + private boolean score_ = false; + /** + * bool score = 7; + * @return The score. + */ + @java.lang.Override + public boolean getScore() { + return score_; + } + + public static final int EXPLAINSCORE_FIELD_NUMBER = 8; + private boolean explainScore_ = false; + /** + *
+     * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+     * 
+ * + * bool explainScore = 8; + * @return The explainScore. + */ + @java.lang.Override + public boolean getExplainScore() { + return explainScore_; + } + + public static final int IS_CONSISTENT_FIELD_NUMBER = 9; + private boolean isConsistent_ = false; + /** + * bool is_consistent = 9; + * @return The isConsistent. + */ + @java.lang.Override + public boolean getIsConsistent() { + return isConsistent_; + } + + 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 (uuid_ != false) { + output.writeBool(1, uuid_); + } + if (vector_ != false) { + output.writeBool(2, vector_); + } + if (creationTimeUnix_ != false) { + output.writeBool(3, creationTimeUnix_); + } + if (lastUpdateTimeUnix_ != false) { + output.writeBool(4, lastUpdateTimeUnix_); + } + if (distance_ != false) { + output.writeBool(5, distance_); + } + if (certainty_ != false) { + output.writeBool(6, certainty_); + } + if (score_ != false) { + output.writeBool(7, score_); + } + if (explainScore_ != false) { + output.writeBool(8, explainScore_); + } + if (isConsistent_ != false) { + output.writeBool(9, isConsistent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (uuid_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, uuid_); + } + if (vector_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, vector_); + } + if (creationTimeUnix_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, creationTimeUnix_); + } + if (lastUpdateTimeUnix_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, lastUpdateTimeUnix_); + } + if (distance_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, distance_); + } + if (certainty_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, certainty_); + } + if (score_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, score_); + } + if (explainScore_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, explainScore_); + } + if (isConsistent_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, isConsistent_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties other = (io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties) obj; + + if (getUuid() + != other.getUuid()) return false; + if (getVector() + != other.getVector()) return false; + if (getCreationTimeUnix() + != other.getCreationTimeUnix()) return false; + if (getLastUpdateTimeUnix() + != other.getLastUpdateTimeUnix()) return false; + if (getDistance() + != other.getDistance()) return false; + if (getCertainty() + != other.getCertainty()) return false; + if (getScore() + != other.getScore()) return false; + if (getExplainScore() + != other.getExplainScore()) return false; + if (getIsConsistent() + != other.getIsConsistent()) 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) + UUID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUuid()); + hash = (37 * hash) + VECTOR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVector()); + hash = (37 * hash) + CREATIONTIMEUNIX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCreationTimeUnix()); + hash = (37 * hash) + LASTUPDATETIMEUNIX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getLastUpdateTimeUnix()); + hash = (37 * hash) + DISTANCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDistance()); + hash = (37 * hash) + CERTAINTY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCertainty()); + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getScore()); + hash = (37 * hash) + EXPLAINSCORE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getExplainScore()); + hash = (37 * hash) + IS_CONSISTENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsConsistent()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties 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.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties 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.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties 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.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties 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 weaviategrpc.AdditionalProperties} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.AdditionalProperties) + io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_AdditionalProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_AdditionalProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.class, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uuid_ = false; + vector_ = false; + creationTimeUnix_ = false; + lastUpdateTimeUnix_ = false; + distance_ = false; + certainty_ = false; + score_ = false; + explainScore_ = false; + isConsistent_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_AdditionalProperties_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties build() { + io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties result = new io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uuid_ = uuid_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.vector_ = vector_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.creationTimeUnix_ = creationTimeUnix_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.lastUpdateTimeUnix_ = lastUpdateTimeUnix_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.distance_ = distance_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.certainty_ = certainty_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.score_ = score_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.explainScore_ = explainScore_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.isConsistent_ = isConsistent_; + } + } + + @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.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.getDefaultInstance()) return this; + if (other.getUuid() != false) { + setUuid(other.getUuid()); + } + if (other.getVector() != false) { + setVector(other.getVector()); + } + if (other.getCreationTimeUnix() != false) { + setCreationTimeUnix(other.getCreationTimeUnix()); + } + if (other.getLastUpdateTimeUnix() != false) { + setLastUpdateTimeUnix(other.getLastUpdateTimeUnix()); + } + if (other.getDistance() != false) { + setDistance(other.getDistance()); + } + if (other.getCertainty() != false) { + setCertainty(other.getCertainty()); + } + if (other.getScore() != false) { + setScore(other.getScore()); + } + if (other.getExplainScore() != false) { + setExplainScore(other.getExplainScore()); + } + if (other.getIsConsistent() != false) { + setIsConsistent(other.getIsConsistent()); + } + 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 8: { + uuid_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + vector_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + creationTimeUnix_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + lastUpdateTimeUnix_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + distance_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + certainty_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + score_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + explainScore_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + isConsistent_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + 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 boolean uuid_ ; + /** + * bool uuid = 1; + * @return The uuid. + */ + @java.lang.Override + public boolean getUuid() { + return uuid_; + } + /** + * bool uuid = 1; + * @param value The uuid to set. + * @return This builder for chaining. + */ + public Builder setUuid(boolean value) { + + uuid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * bool uuid = 1; + * @return This builder for chaining. + */ + public Builder clearUuid() { + bitField0_ = (bitField0_ & ~0x00000001); + uuid_ = false; + onChanged(); + return this; + } + + private boolean vector_ ; + /** + * bool vector = 2; + * @return The vector. + */ + @java.lang.Override + public boolean getVector() { + return vector_; + } + /** + * bool vector = 2; + * @param value The vector to set. + * @return This builder for chaining. + */ + public Builder setVector(boolean value) { + + vector_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * bool vector = 2; + * @return This builder for chaining. + */ + public Builder clearVector() { + bitField0_ = (bitField0_ & ~0x00000002); + vector_ = false; + onChanged(); + return this; + } + + private boolean creationTimeUnix_ ; + /** + *
+       * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+       * 
+ * + * bool creationTimeUnix = 3; + * @return The creationTimeUnix. + */ + @java.lang.Override + public boolean getCreationTimeUnix() { + return creationTimeUnix_; + } + /** + *
+       * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+       * 
+ * + * bool creationTimeUnix = 3; + * @param value The creationTimeUnix to set. + * @return This builder for chaining. + */ + public Builder setCreationTimeUnix(boolean value) { + + creationTimeUnix_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+       * 
+ * + * bool creationTimeUnix = 3; + * @return This builder for chaining. + */ + public Builder clearCreationTimeUnix() { + bitField0_ = (bitField0_ & ~0x00000004); + creationTimeUnix_ = false; + onChanged(); + return this; + } + + private boolean lastUpdateTimeUnix_ ; + /** + *
+       * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+       * 
+ * + * bool lastUpdateTimeUnix = 4; + * @return The lastUpdateTimeUnix. + */ + @java.lang.Override + public boolean getLastUpdateTimeUnix() { + return lastUpdateTimeUnix_; + } + /** + *
+       * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+       * 
+ * + * bool lastUpdateTimeUnix = 4; + * @param value The lastUpdateTimeUnix to set. + * @return This builder for chaining. + */ + public Builder setLastUpdateTimeUnix(boolean value) { + + lastUpdateTimeUnix_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+       * 
+ * + * bool lastUpdateTimeUnix = 4; + * @return This builder for chaining. + */ + public Builder clearLastUpdateTimeUnix() { + bitField0_ = (bitField0_ & ~0x00000008); + lastUpdateTimeUnix_ = false; + onChanged(); + return this; + } + + private boolean distance_ ; + /** + * bool distance = 5; + * @return The distance. + */ + @java.lang.Override + public boolean getDistance() { + return distance_; + } + /** + * bool distance = 5; + * @param value The distance to set. + * @return This builder for chaining. + */ + public Builder setDistance(boolean value) { + + distance_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * bool distance = 5; + * @return This builder for chaining. + */ + public Builder clearDistance() { + bitField0_ = (bitField0_ & ~0x00000010); + distance_ = false; + onChanged(); + return this; + } + + private boolean certainty_ ; + /** + * bool certainty = 6; + * @return The certainty. + */ + @java.lang.Override + public boolean getCertainty() { + return certainty_; + } + /** + * bool certainty = 6; + * @param value The certainty to set. + * @return This builder for chaining. + */ + public Builder setCertainty(boolean value) { + + certainty_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * bool certainty = 6; + * @return This builder for chaining. + */ + public Builder clearCertainty() { + bitField0_ = (bitField0_ & ~0x00000020); + certainty_ = false; + onChanged(); + return this; + } + + private boolean score_ ; + /** + * bool score = 7; + * @return The score. + */ + @java.lang.Override + public boolean getScore() { + return score_; + } + /** + * bool score = 7; + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(boolean value) { + + score_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * bool score = 7; + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000040); + score_ = false; + onChanged(); + return this; + } + + private boolean explainScore_ ; + /** + *
+       * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+       * 
+ * + * bool explainScore = 8; + * @return The explainScore. + */ + @java.lang.Override + public boolean getExplainScore() { + return explainScore_; + } + /** + *
+       * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+       * 
+ * + * bool explainScore = 8; + * @param value The explainScore to set. + * @return This builder for chaining. + */ + public Builder setExplainScore(boolean value) { + + explainScore_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+       * 
+ * + * bool explainScore = 8; + * @return This builder for chaining. + */ + public Builder clearExplainScore() { + bitField0_ = (bitField0_ & ~0x00000080); + explainScore_ = false; + onChanged(); + return this; + } + + private boolean isConsistent_ ; + /** + * bool is_consistent = 9; + * @return The isConsistent. + */ + @java.lang.Override + public boolean getIsConsistent() { + return isConsistent_; + } + /** + * bool is_consistent = 9; + * @param value The isConsistent to set. + * @return This builder for chaining. + */ + public Builder setIsConsistent(boolean value) { + + isConsistent_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * bool is_consistent = 9; + * @return This builder for chaining. + */ + public Builder clearIsConsistent() { + bitField0_ = (bitField0_ & ~0x00000100); + isConsistent_ = false; + 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:weaviategrpc.AdditionalProperties) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.AdditionalProperties) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdditionalProperties 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.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PropertiesOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.Properties) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string non_ref_properties = 1; + * @return A list containing the nonRefProperties. + */ + java.util.List + getNonRefPropertiesList(); + /** + * repeated string non_ref_properties = 1; + * @return The count of nonRefProperties. + */ + int getNonRefPropertiesCount(); + /** + * repeated string non_ref_properties = 1; + * @param index The index of the element to return. + * @return The nonRefProperties at the given index. + */ + java.lang.String getNonRefProperties(int index); + /** + * repeated string non_ref_properties = 1; + * @param index The index of the value to return. + * @return The bytes of the nonRefProperties at the given index. + */ + com.google.protobuf.ByteString + getNonRefPropertiesBytes(int index); + + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + java.util.List + getRefPropertiesList(); + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties getRefProperties(int index); + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + int getRefPropertiesCount(); + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + java.util.List + getRefPropertiesOrBuilderList(); + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.RefPropertiesOrBuilder getRefPropertiesOrBuilder( + int index); + } + /** + * Protobuf type {@code weaviategrpc.Properties} + */ + public static final class Properties extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.Properties) + PropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use Properties.newBuilder() to construct. + private Properties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Properties() { + nonRefProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + refProperties_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Properties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_Properties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_Properties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.Properties.class, io.weaviate.client.grpc.protocol.WeaviateProto.Properties.Builder.class); + } + + public static final int NON_REF_PROPERTIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList nonRefProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string non_ref_properties = 1; + * @return A list containing the nonRefProperties. + */ + public com.google.protobuf.ProtocolStringList + getNonRefPropertiesList() { + return nonRefProperties_; + } + /** + * repeated string non_ref_properties = 1; + * @return The count of nonRefProperties. + */ + public int getNonRefPropertiesCount() { + return nonRefProperties_.size(); + } + /** + * repeated string non_ref_properties = 1; + * @param index The index of the element to return. + * @return The nonRefProperties at the given index. + */ + public java.lang.String getNonRefProperties(int index) { + return nonRefProperties_.get(index); + } + /** + * repeated string non_ref_properties = 1; + * @param index The index of the value to return. + * @return The bytes of the nonRefProperties at the given index. + */ + public com.google.protobuf.ByteString + getNonRefPropertiesBytes(int index) { + return nonRefProperties_.getByteString(index); + } + + public static final int REF_PROPERTIES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List refProperties_; + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + @java.lang.Override + public java.util.List getRefPropertiesList() { + return refProperties_; + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + @java.lang.Override + public java.util.List + getRefPropertiesOrBuilderList() { + return refProperties_; + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + @java.lang.Override + public int getRefPropertiesCount() { + return refProperties_.size(); + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties getRefProperties(int index) { + return refProperties_.get(index); + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.RefPropertiesOrBuilder getRefPropertiesOrBuilder( + int index) { + return refProperties_.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 < nonRefProperties_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nonRefProperties_.getRaw(i)); + } + for (int i = 0; i < refProperties_.size(); i++) { + output.writeMessage(2, refProperties_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < nonRefProperties_.size(); i++) { + dataSize += computeStringSizeNoTag(nonRefProperties_.getRaw(i)); + } + size += dataSize; + size += 1 * getNonRefPropertiesList().size(); + } + for (int i = 0; i < refProperties_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, refProperties_.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 io.weaviate.client.grpc.protocol.WeaviateProto.Properties)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.Properties other = (io.weaviate.client.grpc.protocol.WeaviateProto.Properties) obj; + + if (!getNonRefPropertiesList() + .equals(other.getNonRefPropertiesList())) return false; + if (!getRefPropertiesList() + .equals(other.getRefPropertiesList())) 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 (getNonRefPropertiesCount() > 0) { + hash = (37 * hash) + NON_REF_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getNonRefPropertiesList().hashCode(); + } + if (getRefPropertiesCount() > 0) { + hash = (37 * hash) + REF_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getRefPropertiesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.Properties parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.Properties parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.Properties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.Properties parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.Properties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.Properties parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.Properties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.Properties 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.weaviate.client.grpc.protocol.WeaviateProto.Properties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.Properties 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.weaviate.client.grpc.protocol.WeaviateProto.Properties parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.Properties 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.weaviate.client.grpc.protocol.WeaviateProto.Properties 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 weaviategrpc.Properties} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.Properties) + io.weaviate.client.grpc.protocol.WeaviateProto.PropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_Properties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_Properties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.Properties.class, io.weaviate.client.grpc.protocol.WeaviateProto.Properties.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.Properties.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + nonRefProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + if (refPropertiesBuilder_ == null) { + refProperties_ = java.util.Collections.emptyList(); + } else { + refProperties_ = null; + refPropertiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_Properties_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.Properties getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.Properties.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.Properties build() { + io.weaviate.client.grpc.protocol.WeaviateProto.Properties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.Properties buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.Properties result = new io.weaviate.client.grpc.protocol.WeaviateProto.Properties(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.WeaviateProto.Properties result) { + if (refPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + refProperties_ = java.util.Collections.unmodifiableList(refProperties_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.refProperties_ = refProperties_; + } else { + result.refProperties_ = refPropertiesBuilder_.build(); + } + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.Properties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + nonRefProperties_.makeImmutable(); + result.nonRefProperties_ = nonRefProperties_; + } + } + + @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.weaviate.client.grpc.protocol.WeaviateProto.Properties) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.Properties)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.Properties other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.Properties.getDefaultInstance()) return this; + if (!other.nonRefProperties_.isEmpty()) { + if (nonRefProperties_.isEmpty()) { + nonRefProperties_ = other.nonRefProperties_; + bitField0_ |= 0x00000001; + } else { + ensureNonRefPropertiesIsMutable(); + nonRefProperties_.addAll(other.nonRefProperties_); + } + onChanged(); + } + if (refPropertiesBuilder_ == null) { + if (!other.refProperties_.isEmpty()) { + if (refProperties_.isEmpty()) { + refProperties_ = other.refProperties_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRefPropertiesIsMutable(); + refProperties_.addAll(other.refProperties_); + } + onChanged(); + } + } else { + if (!other.refProperties_.isEmpty()) { + if (refPropertiesBuilder_.isEmpty()) { + refPropertiesBuilder_.dispose(); + refPropertiesBuilder_ = null; + refProperties_ = other.refProperties_; + bitField0_ = (bitField0_ & ~0x00000002); + refPropertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRefPropertiesFieldBuilder() : null; + } else { + refPropertiesBuilder_.addAllMessages(other.refProperties_); + } + } + } + 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: { + java.lang.String s = input.readStringRequireUtf8(); + ensureNonRefPropertiesIsMutable(); + nonRefProperties_.add(s); + break; + } // case 10 + case 18: { + io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties m = + input.readMessage( + io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.parser(), + extensionRegistry); + if (refPropertiesBuilder_ == null) { + ensureRefPropertiesIsMutable(); + refProperties_.add(m); + } else { + refPropertiesBuilder_.addMessage(m); + } + 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.google.protobuf.LazyStringArrayList nonRefProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureNonRefPropertiesIsMutable() { + if (!nonRefProperties_.isModifiable()) { + nonRefProperties_ = new com.google.protobuf.LazyStringArrayList(nonRefProperties_); + } + bitField0_ |= 0x00000001; + } + /** + * repeated string non_ref_properties = 1; + * @return A list containing the nonRefProperties. + */ + public com.google.protobuf.ProtocolStringList + getNonRefPropertiesList() { + nonRefProperties_.makeImmutable(); + return nonRefProperties_; + } + /** + * repeated string non_ref_properties = 1; + * @return The count of nonRefProperties. + */ + public int getNonRefPropertiesCount() { + return nonRefProperties_.size(); + } + /** + * repeated string non_ref_properties = 1; + * @param index The index of the element to return. + * @return The nonRefProperties at the given index. + */ + public java.lang.String getNonRefProperties(int index) { + return nonRefProperties_.get(index); + } + /** + * repeated string non_ref_properties = 1; + * @param index The index of the value to return. + * @return The bytes of the nonRefProperties at the given index. + */ + public com.google.protobuf.ByteString + getNonRefPropertiesBytes(int index) { + return nonRefProperties_.getByteString(index); + } + /** + * repeated string non_ref_properties = 1; + * @param index The index to set the value at. + * @param value The nonRefProperties to set. + * @return This builder for chaining. + */ + public Builder setNonRefProperties( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureNonRefPropertiesIsMutable(); + nonRefProperties_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string non_ref_properties = 1; + * @param value The nonRefProperties to add. + * @return This builder for chaining. + */ + public Builder addNonRefProperties( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureNonRefPropertiesIsMutable(); + nonRefProperties_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string non_ref_properties = 1; + * @param values The nonRefProperties to add. + * @return This builder for chaining. + */ + public Builder addAllNonRefProperties( + java.lang.Iterable values) { + ensureNonRefPropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nonRefProperties_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string non_ref_properties = 1; + * @return This builder for chaining. + */ + public Builder clearNonRefProperties() { + nonRefProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + * repeated string non_ref_properties = 1; + * @param value The bytes of the nonRefProperties to add. + * @return This builder for chaining. + */ + public Builder addNonRefPropertiesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureNonRefPropertiesIsMutable(); + nonRefProperties_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List refProperties_ = + java.util.Collections.emptyList(); + private void ensureRefPropertiesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + refProperties_ = new java.util.ArrayList(refProperties_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties, io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.RefPropertiesOrBuilder> refPropertiesBuilder_; + + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + public java.util.List getRefPropertiesList() { + if (refPropertiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(refProperties_); + } else { + return refPropertiesBuilder_.getMessageList(); + } + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + public int getRefPropertiesCount() { + if (refPropertiesBuilder_ == null) { + return refProperties_.size(); + } else { + return refPropertiesBuilder_.getCount(); + } + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties getRefProperties(int index) { + if (refPropertiesBuilder_ == null) { + return refProperties_.get(index); + } else { + return refPropertiesBuilder_.getMessage(index); + } + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + public Builder setRefProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties value) { + if (refPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefPropertiesIsMutable(); + refProperties_.set(index, value); + onChanged(); + } else { + refPropertiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + public Builder setRefProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.Builder builderForValue) { + if (refPropertiesBuilder_ == null) { + ensureRefPropertiesIsMutable(); + refProperties_.set(index, builderForValue.build()); + onChanged(); + } else { + refPropertiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + public Builder addRefProperties(io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties value) { + if (refPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefPropertiesIsMutable(); + refProperties_.add(value); + onChanged(); + } else { + refPropertiesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + public Builder addRefProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties value) { + if (refPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefPropertiesIsMutable(); + refProperties_.add(index, value); + onChanged(); + } else { + refPropertiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + public Builder addRefProperties( + io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.Builder builderForValue) { + if (refPropertiesBuilder_ == null) { + ensureRefPropertiesIsMutable(); + refProperties_.add(builderForValue.build()); + onChanged(); + } else { + refPropertiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + public Builder addRefProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.Builder builderForValue) { + if (refPropertiesBuilder_ == null) { + ensureRefPropertiesIsMutable(); + refProperties_.add(index, builderForValue.build()); + onChanged(); + } else { + refPropertiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + public Builder addAllRefProperties( + java.lang.Iterable values) { + if (refPropertiesBuilder_ == null) { + ensureRefPropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, refProperties_); + onChanged(); + } else { + refPropertiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + public Builder clearRefProperties() { + if (refPropertiesBuilder_ == null) { + refProperties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + refPropertiesBuilder_.clear(); + } + return this; + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + public Builder removeRefProperties(int index) { + if (refPropertiesBuilder_ == null) { + ensureRefPropertiesIsMutable(); + refProperties_.remove(index); + onChanged(); + } else { + refPropertiesBuilder_.remove(index); + } + return this; + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.Builder getRefPropertiesBuilder( + int index) { + return getRefPropertiesFieldBuilder().getBuilder(index); + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.RefPropertiesOrBuilder getRefPropertiesOrBuilder( + int index) { + if (refPropertiesBuilder_ == null) { + return refProperties_.get(index); } else { + return refPropertiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + public java.util.List + getRefPropertiesOrBuilderList() { + if (refPropertiesBuilder_ != null) { + return refPropertiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(refProperties_); + } + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.Builder addRefPropertiesBuilder() { + return getRefPropertiesFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.Builder addRefPropertiesBuilder( + int index) { + return getRefPropertiesFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.RefProperties ref_properties = 2; + */ + public java.util.List + getRefPropertiesBuilderList() { + return getRefPropertiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties, io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.RefPropertiesOrBuilder> + getRefPropertiesFieldBuilder() { + if (refPropertiesBuilder_ == null) { + refPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties, io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.RefPropertiesOrBuilder>( + refProperties_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + refProperties_ = null; + } + return refPropertiesBuilder_; + } + @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:weaviategrpc.Properties) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.Properties) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.Properties DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.Properties(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.Properties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Properties 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.weaviate.client.grpc.protocol.WeaviateProto.Properties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HybridSearchParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.HybridSearchParams) + com.google.protobuf.MessageOrBuilder { + + /** + * string query = 1; + * @return The query. + */ + java.lang.String getQuery(); + /** + * string query = 1; + * @return The bytes for query. + */ + com.google.protobuf.ByteString + getQueryBytes(); + + /** + * repeated string properties = 2; + * @return A list containing the properties. + */ + java.util.List + getPropertiesList(); + /** + * repeated string properties = 2; + * @return The count of properties. + */ + int getPropertiesCount(); + /** + * repeated string properties = 2; + * @param index The index of the element to return. + * @return The properties at the given index. + */ + java.lang.String getProperties(int index); + /** + * repeated string properties = 2; + * @param index The index of the value to return. + * @return The bytes of the properties at the given index. + */ + com.google.protobuf.ByteString + getPropertiesBytes(int index); + + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 3; + * @return A list containing the vector. + */ + java.util.List getVectorList(); + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 3; + * @return The count of vector. + */ + int getVectorCount(); + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 3; + * @param index The index of the element to return. + * @return The vector at the given index. + */ + float getVector(int index); + + /** + * float alpha = 4; + * @return The alpha. + */ + float getAlpha(); + + /** + * .weaviategrpc.HybridSearchParams.FusionType fusion_type = 5; + * @return The enum numeric value on the wire for fusionType. + */ + int getFusionTypeValue(); + /** + * .weaviategrpc.HybridSearchParams.FusionType fusion_type = 5; + * @return The fusionType. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType getFusionType(); + } + /** + * Protobuf type {@code weaviategrpc.HybridSearchParams} + */ + public static final class HybridSearchParams extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.HybridSearchParams) + HybridSearchParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use HybridSearchParams.newBuilder() to construct. + private HybridSearchParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HybridSearchParams() { + query_ = ""; + properties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + vector_ = emptyFloatList(); + fusionType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new HybridSearchParams(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_HybridSearchParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_HybridSearchParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.Builder.class); + } + + /** + * Protobuf enum {@code weaviategrpc.HybridSearchParams.FusionType} + */ + public enum FusionType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * FUSION_TYPE_UNSPECIFIED = 0; + */ + FUSION_TYPE_UNSPECIFIED(0), + /** + * FUSION_TYPE_RANKED = 1; + */ + FUSION_TYPE_RANKED(1), + /** + * FUSION_TYPE_RELATIVE_SCORE = 2; + */ + FUSION_TYPE_RELATIVE_SCORE(2), + UNRECOGNIZED(-1), + ; + + /** + * FUSION_TYPE_UNSPECIFIED = 0; + */ + public static final int FUSION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * FUSION_TYPE_RANKED = 1; + */ + public static final int FUSION_TYPE_RANKED_VALUE = 1; + /** + * FUSION_TYPE_RELATIVE_SCORE = 2; + */ + public static final int FUSION_TYPE_RELATIVE_SCORE_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FusionType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static FusionType forNumber(int value) { + switch (value) { + case 0: return FUSION_TYPE_UNSPECIFIED; + case 1: return FUSION_TYPE_RANKED; + case 2: return FUSION_TYPE_RELATIVE_SCORE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + FusionType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FusionType findValueByNumber(int number) { + return FusionType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.getDescriptor().getEnumTypes().get(0); + } + + private static final FusionType[] VALUES = values(); + + public static FusionType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FusionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:weaviategrpc.HybridSearchParams.FusionType) + } + + public static final int QUERY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + /** + * string query = 1; + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + 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(); + query_ = s; + return s; + } + } + /** + * string query = 1; + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTIES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList properties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string properties = 2; + * @return A list containing the properties. + */ + public com.google.protobuf.ProtocolStringList + getPropertiesList() { + return properties_; + } + /** + * repeated string properties = 2; + * @return The count of properties. + */ + public int getPropertiesCount() { + return properties_.size(); + } + /** + * repeated string properties = 2; + * @param index The index of the element to return. + * @return The properties at the given index. + */ + public java.lang.String getProperties(int index) { + return properties_.get(index); + } + /** + * repeated string properties = 2; + * @param index The index of the value to return. + * @return The bytes of the properties at the given index. + */ + public com.google.protobuf.ByteString + getPropertiesBytes(int index) { + return properties_.getByteString(index); + } + + public static final int VECTOR_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.FloatList vector_ = + emptyFloatList(); + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 3; + * @return A list containing the vector. + */ + @java.lang.Override + public java.util.List + getVectorList() { + return vector_; + } + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 3; + * @return The count of vector. + */ + public int getVectorCount() { + return vector_.size(); + } + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 3; + * @param index The index of the element to return. + * @return The vector at the given index. + */ + public float getVector(int index) { + return vector_.getFloat(index); + } + private int vectorMemoizedSerializedSize = -1; + + public static final int ALPHA_FIELD_NUMBER = 4; + private float alpha_ = 0F; + /** + * float alpha = 4; + * @return The alpha. + */ + @java.lang.Override + public float getAlpha() { + return alpha_; + } + + public static final int FUSION_TYPE_FIELD_NUMBER = 5; + private int fusionType_ = 0; + /** + * .weaviategrpc.HybridSearchParams.FusionType fusion_type = 5; + * @return The enum numeric value on the wire for fusionType. + */ + @java.lang.Override public int getFusionTypeValue() { + return fusionType_; + } + /** + * .weaviategrpc.HybridSearchParams.FusionType fusion_type = 5; + * @return The fusionType. + */ + @java.lang.Override public io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType getFusionType() { + io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType result = io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType.forNumber(fusionType_); + return result == null ? io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType.UNRECOGNIZED : result; + } + + 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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + for (int i = 0; i < properties_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, properties_.getRaw(i)); + } + if (getVectorList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(vectorMemoizedSerializedSize); + } + for (int i = 0; i < vector_.size(); i++) { + output.writeFloatNoTag(vector_.getFloat(i)); + } + if (java.lang.Float.floatToRawIntBits(alpha_) != 0) { + output.writeFloat(4, alpha_); + } + if (fusionType_ != io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType.FUSION_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, fusionType_); + } + 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(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + { + int dataSize = 0; + for (int i = 0; i < properties_.size(); i++) { + dataSize += computeStringSizeNoTag(properties_.getRaw(i)); + } + size += dataSize; + size += 1 * getPropertiesList().size(); + } + { + int dataSize = 0; + dataSize = 4 * getVectorList().size(); + size += dataSize; + if (!getVectorList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + vectorMemoizedSerializedSize = dataSize; + } + if (java.lang.Float.floatToRawIntBits(alpha_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, alpha_); + } + if (fusionType_ != io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType.FUSION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, fusionType_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams other = (io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams) obj; + + if (!getQuery() + .equals(other.getQuery())) return false; + if (!getPropertiesList() + .equals(other.getPropertiesList())) return false; + if (!getVectorList() + .equals(other.getVectorList())) return false; + if (java.lang.Float.floatToIntBits(getAlpha()) + != java.lang.Float.floatToIntBits( + other.getAlpha())) return false; + if (fusionType_ != other.fusionType_) 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) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (getPropertiesCount() > 0) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getPropertiesList().hashCode(); + } + if (getVectorCount() > 0) { + hash = (37 * hash) + VECTOR_FIELD_NUMBER; + hash = (53 * hash) + getVectorList().hashCode(); + } + hash = (37 * hash) + ALPHA_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getAlpha()); + hash = (37 * hash) + FUSION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + fusionType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams 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 weaviategrpc.HybridSearchParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.HybridSearchParams) + io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_HybridSearchParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_HybridSearchParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + query_ = ""; + properties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + vector_ = emptyFloatList(); + alpha_ = 0F; + fusionType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_HybridSearchParams_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams build() { + io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams result = new io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + properties_.makeImmutable(); + result.properties_ = properties_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + vector_.makeImmutable(); + result.vector_ = vector_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.alpha_ = alpha_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.fusionType_ = fusionType_; + } + } + + @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.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.getDefaultInstance()) return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.properties_.isEmpty()) { + if (properties_.isEmpty()) { + properties_ = other.properties_; + bitField0_ |= 0x00000002; + } else { + ensurePropertiesIsMutable(); + properties_.addAll(other.properties_); + } + onChanged(); + } + if (!other.vector_.isEmpty()) { + if (vector_.isEmpty()) { + vector_ = other.vector_; + vector_.makeImmutable(); + bitField0_ |= 0x00000004; + } else { + ensureVectorIsMutable(); + vector_.addAll(other.vector_); + } + onChanged(); + } + if (other.getAlpha() != 0F) { + setAlpha(other.getAlpha()); + } + if (other.fusionType_ != 0) { + setFusionTypeValue(other.getFusionTypeValue()); + } + 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: { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePropertiesIsMutable(); + properties_.add(s); + break; + } // case 18 + case 29: { + float v = input.readFloat(); + ensureVectorIsMutable(); + vector_.addFloat(v); + break; + } // case 29 + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + int alloc = length > 4096 ? 4096 : length; + ensureVectorIsMutable(alloc / 4); + while (input.getBytesUntilLimit() > 0) { + vector_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } // case 26 + case 37: { + alpha_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + case 40: { + fusionType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + 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 query_ = ""; + /** + * string query = 1; + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string query = 1; + * @return The bytes for query. + */ + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string query = 1; + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + query_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string query = 1; + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string query = 1; + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList properties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePropertiesIsMutable() { + if (!properties_.isModifiable()) { + properties_ = new com.google.protobuf.LazyStringArrayList(properties_); + } + bitField0_ |= 0x00000002; + } + /** + * repeated string properties = 2; + * @return A list containing the properties. + */ + public com.google.protobuf.ProtocolStringList + getPropertiesList() { + properties_.makeImmutable(); + return properties_; + } + /** + * repeated string properties = 2; + * @return The count of properties. + */ + public int getPropertiesCount() { + return properties_.size(); + } + /** + * repeated string properties = 2; + * @param index The index of the element to return. + * @return The properties at the given index. + */ + public java.lang.String getProperties(int index) { + return properties_.get(index); + } + /** + * repeated string properties = 2; + * @param index The index of the value to return. + * @return The bytes of the properties at the given index. + */ + public com.google.protobuf.ByteString + getPropertiesBytes(int index) { + return properties_.getByteString(index); + } + /** + * repeated string properties = 2; + * @param index The index to set the value at. + * @param value The properties to set. + * @return This builder for chaining. + */ + public Builder setProperties( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePropertiesIsMutable(); + properties_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string properties = 2; + * @param value The properties to add. + * @return This builder for chaining. + */ + public Builder addProperties( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePropertiesIsMutable(); + properties_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string properties = 2; + * @param values The properties to add. + * @return This builder for chaining. + */ + public Builder addAllProperties( + java.lang.Iterable values) { + ensurePropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, properties_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string properties = 2; + * @return This builder for chaining. + */ + public Builder clearProperties() { + properties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + * repeated string properties = 2; + * @param value The bytes of the properties to add. + * @return This builder for chaining. + */ + public Builder addPropertiesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensurePropertiesIsMutable(); + properties_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.FloatList vector_ = emptyFloatList(); + private void ensureVectorIsMutable() { + if (!vector_.isModifiable()) { + vector_ = makeMutableCopy(vector_); + } + bitField0_ |= 0x00000004; + } + private void ensureVectorIsMutable(int capacity) { + if (!vector_.isModifiable()) { + vector_ = makeMutableCopy(vector_, capacity); + } + bitField0_ |= 0x00000004; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 3; + * @return A list containing the vector. + */ + public java.util.List + getVectorList() { + vector_.makeImmutable(); + return vector_; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 3; + * @return The count of vector. + */ + public int getVectorCount() { + return vector_.size(); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 3; + * @param index The index of the element to return. + * @return The vector at the given index. + */ + public float getVector(int index) { + return vector_.getFloat(index); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 3; + * @param index The index to set the value at. + * @param value The vector to set. + * @return This builder for chaining. + */ + public Builder setVector( + int index, float value) { + + ensureVectorIsMutable(); + vector_.setFloat(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 3; + * @param value The vector to add. + * @return This builder for chaining. + */ + public Builder addVector(float value) { + + ensureVectorIsMutable(); + vector_.addFloat(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 3; + * @param values The vector to add. + * @return This builder for chaining. + */ + public Builder addAllVector( + java.lang.Iterable values) { + ensureVectorIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vector_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 3; + * @return This builder for chaining. + */ + public Builder clearVector() { + vector_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + private float alpha_ ; + /** + * float alpha = 4; + * @return The alpha. + */ + @java.lang.Override + public float getAlpha() { + return alpha_; + } + /** + * float alpha = 4; + * @param value The alpha to set. + * @return This builder for chaining. + */ + public Builder setAlpha(float value) { + + alpha_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * float alpha = 4; + * @return This builder for chaining. + */ + public Builder clearAlpha() { + bitField0_ = (bitField0_ & ~0x00000008); + alpha_ = 0F; + onChanged(); + return this; + } + + private int fusionType_ = 0; + /** + * .weaviategrpc.HybridSearchParams.FusionType fusion_type = 5; + * @return The enum numeric value on the wire for fusionType. + */ + @java.lang.Override public int getFusionTypeValue() { + return fusionType_; + } + /** + * .weaviategrpc.HybridSearchParams.FusionType fusion_type = 5; + * @param value The enum numeric value on the wire for fusionType to set. + * @return This builder for chaining. + */ + public Builder setFusionTypeValue(int value) { + fusionType_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .weaviategrpc.HybridSearchParams.FusionType fusion_type = 5; + * @return The fusionType. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType getFusionType() { + io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType result = io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType.forNumber(fusionType_); + return result == null ? io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType.UNRECOGNIZED : result; + } + /** + * .weaviategrpc.HybridSearchParams.FusionType fusion_type = 5; + * @param value The fusionType to set. + * @return This builder for chaining. + */ + public Builder setFusionType(io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + fusionType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .weaviategrpc.HybridSearchParams.FusionType fusion_type = 5; + * @return This builder for chaining. + */ + public Builder clearFusionType() { + bitField0_ = (bitField0_ & ~0x00000010); + fusionType_ = 0; + 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:weaviategrpc.HybridSearchParams) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.HybridSearchParams) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HybridSearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NearTextSearchParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.NearTextSearchParams) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated string query = 1; + * @return A list containing the query. + */ + java.util.List + getQueryList(); + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated string query = 1; + * @return The count of query. + */ + int getQueryCount(); + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated string query = 1; + * @param index The index of the element to return. + * @return The query at the given index. + */ + java.lang.String getQuery(int index); + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated string query = 1; + * @param index The index of the value to return. + * @return The bytes of the query at the given index. + */ + com.google.protobuf.ByteString + getQueryBytes(int index); + + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + boolean hasCertainty(); + /** + * optional double certainty = 2; + * @return The certainty. + */ + double getCertainty(); + + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + boolean hasDistance(); + /** + * optional double distance = 3; + * @return The distance. + */ + double getDistance(); + + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4; + * @return Whether the moveTo field is set. + */ + boolean hasMoveTo(); + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4; + * @return The moveTo. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move getMoveTo(); + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder getMoveToOrBuilder(); + + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5; + * @return Whether the moveAway field is set. + */ + boolean hasMoveAway(); + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5; + * @return The moveAway. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move getMoveAway(); + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder getMoveAwayOrBuilder(); + } + /** + * Protobuf type {@code weaviategrpc.NearTextSearchParams} + */ + public static final class NearTextSearchParams extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.NearTextSearchParams) + NearTextSearchParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use NearTextSearchParams.newBuilder() to construct. + private NearTextSearchParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NearTextSearchParams() { + query_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NearTextSearchParams(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearTextSearchParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearTextSearchParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Builder.class); + } + + public interface MoveOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.NearTextSearchParams.Move) + com.google.protobuf.MessageOrBuilder { + + /** + * float force = 1; + * @return The force. + */ + float getForce(); + + /** + * repeated string concepts = 2; + * @return A list containing the concepts. + */ + java.util.List + getConceptsList(); + /** + * repeated string concepts = 2; + * @return The count of concepts. + */ + int getConceptsCount(); + /** + * repeated string concepts = 2; + * @param index The index of the element to return. + * @return The concepts at the given index. + */ + java.lang.String getConcepts(int index); + /** + * repeated string concepts = 2; + * @param index The index of the value to return. + * @return The bytes of the concepts at the given index. + */ + com.google.protobuf.ByteString + getConceptsBytes(int index); + + /** + * repeated string uuids = 3; + * @return A list containing the uuids. + */ + java.util.List + getUuidsList(); + /** + * repeated string uuids = 3; + * @return The count of uuids. + */ + int getUuidsCount(); + /** + * repeated string uuids = 3; + * @param index The index of the element to return. + * @return The uuids at the given index. + */ + java.lang.String getUuids(int index); + /** + * repeated string uuids = 3; + * @param index The index of the value to return. + * @return The bytes of the uuids at the given index. + */ + com.google.protobuf.ByteString + getUuidsBytes(int index); + } + /** + * Protobuf type {@code weaviategrpc.NearTextSearchParams.Move} + */ + public static final class Move extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.NearTextSearchParams.Move) + MoveOrBuilder { + private static final long serialVersionUID = 0L; + // Use Move.newBuilder() to construct. + private Move(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Move() { + concepts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + uuids_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Move(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearTextSearchParams_Move_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearTextSearchParams_Move_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder.class); + } + + public static final int FORCE_FIELD_NUMBER = 1; + private float force_ = 0F; + /** + * float force = 1; + * @return The force. + */ + @java.lang.Override + public float getForce() { + return force_; + } + + public static final int CONCEPTS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList concepts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string concepts = 2; + * @return A list containing the concepts. + */ + public com.google.protobuf.ProtocolStringList + getConceptsList() { + return concepts_; + } + /** + * repeated string concepts = 2; + * @return The count of concepts. + */ + public int getConceptsCount() { + return concepts_.size(); + } + /** + * repeated string concepts = 2; + * @param index The index of the element to return. + * @return The concepts at the given index. + */ + public java.lang.String getConcepts(int index) { + return concepts_.get(index); + } + /** + * repeated string concepts = 2; + * @param index The index of the value to return. + * @return The bytes of the concepts at the given index. + */ + public com.google.protobuf.ByteString + getConceptsBytes(int index) { + return concepts_.getByteString(index); + } + + public static final int UUIDS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList uuids_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string uuids = 3; + * @return A list containing the uuids. + */ + public com.google.protobuf.ProtocolStringList + getUuidsList() { + return uuids_; + } + /** + * repeated string uuids = 3; + * @return The count of uuids. + */ + public int getUuidsCount() { + return uuids_.size(); + } + /** + * repeated string uuids = 3; + * @param index The index of the element to return. + * @return The uuids at the given index. + */ + public java.lang.String getUuids(int index) { + return uuids_.get(index); + } + /** + * repeated string uuids = 3; + * @param index The index of the value to return. + * @return The bytes of the uuids at the given index. + */ + public com.google.protobuf.ByteString + getUuidsBytes(int index) { + return uuids_.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 (java.lang.Float.floatToRawIntBits(force_) != 0) { + output.writeFloat(1, force_); + } + for (int i = 0; i < concepts_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, concepts_.getRaw(i)); + } + for (int i = 0; i < uuids_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uuids_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Float.floatToRawIntBits(force_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, force_); + } + { + int dataSize = 0; + for (int i = 0; i < concepts_.size(); i++) { + dataSize += computeStringSizeNoTag(concepts_.getRaw(i)); + } + size += dataSize; + size += 1 * getConceptsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < uuids_.size(); i++) { + dataSize += computeStringSizeNoTag(uuids_.getRaw(i)); + } + size += dataSize; + size += 1 * getUuidsList().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.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move other = (io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move) obj; + + if (java.lang.Float.floatToIntBits(getForce()) + != java.lang.Float.floatToIntBits( + other.getForce())) return false; + if (!getConceptsList() + .equals(other.getConceptsList())) return false; + if (!getUuidsList() + .equals(other.getUuidsList())) 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) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getForce()); + if (getConceptsCount() > 0) { + hash = (37 * hash) + CONCEPTS_FIELD_NUMBER; + hash = (53 * hash) + getConceptsList().hashCode(); + } + if (getUuidsCount() > 0) { + hash = (37 * hash) + UUIDS_FIELD_NUMBER; + hash = (53 * hash) + getUuidsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move 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.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move 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.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move 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.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move 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 weaviategrpc.NearTextSearchParams.Move} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.NearTextSearchParams.Move) + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearTextSearchParams_Move_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearTextSearchParams_Move_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + force_ = 0F; + concepts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + uuids_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearTextSearchParams_Move_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move build() { + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move result = new io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.force_ = force_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + concepts_.makeImmutable(); + result.concepts_ = concepts_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + uuids_.makeImmutable(); + result.uuids_ = uuids_; + } + } + + @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.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance()) return this; + if (other.getForce() != 0F) { + setForce(other.getForce()); + } + if (!other.concepts_.isEmpty()) { + if (concepts_.isEmpty()) { + concepts_ = other.concepts_; + bitField0_ |= 0x00000002; + } else { + ensureConceptsIsMutable(); + concepts_.addAll(other.concepts_); + } + onChanged(); + } + if (!other.uuids_.isEmpty()) { + if (uuids_.isEmpty()) { + uuids_ = other.uuids_; + bitField0_ |= 0x00000004; + } else { + ensureUuidsIsMutable(); + uuids_.addAll(other.uuids_); + } + 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 13: { + force_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureConceptsIsMutable(); + concepts_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUuidsIsMutable(); + uuids_.add(s); + break; + } // case 26 + 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 float force_ ; + /** + * float force = 1; + * @return The force. + */ + @java.lang.Override + public float getForce() { + return force_; + } + /** + * float force = 1; + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(float value) { + + force_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * float force = 1; + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000001); + force_ = 0F; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList concepts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureConceptsIsMutable() { + if (!concepts_.isModifiable()) { + concepts_ = new com.google.protobuf.LazyStringArrayList(concepts_); + } + bitField0_ |= 0x00000002; + } + /** + * repeated string concepts = 2; + * @return A list containing the concepts. + */ + public com.google.protobuf.ProtocolStringList + getConceptsList() { + concepts_.makeImmutable(); + return concepts_; + } + /** + * repeated string concepts = 2; + * @return The count of concepts. + */ + public int getConceptsCount() { + return concepts_.size(); + } + /** + * repeated string concepts = 2; + * @param index The index of the element to return. + * @return The concepts at the given index. + */ + public java.lang.String getConcepts(int index) { + return concepts_.get(index); + } + /** + * repeated string concepts = 2; + * @param index The index of the value to return. + * @return The bytes of the concepts at the given index. + */ + public com.google.protobuf.ByteString + getConceptsBytes(int index) { + return concepts_.getByteString(index); + } + /** + * repeated string concepts = 2; + * @param index The index to set the value at. + * @param value The concepts to set. + * @return This builder for chaining. + */ + public Builder setConcepts( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureConceptsIsMutable(); + concepts_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string concepts = 2; + * @param value The concepts to add. + * @return This builder for chaining. + */ + public Builder addConcepts( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureConceptsIsMutable(); + concepts_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string concepts = 2; + * @param values The concepts to add. + * @return This builder for chaining. + */ + public Builder addAllConcepts( + java.lang.Iterable values) { + ensureConceptsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, concepts_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string concepts = 2; + * @return This builder for chaining. + */ + public Builder clearConcepts() { + concepts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + * repeated string concepts = 2; + * @param value The bytes of the concepts to add. + * @return This builder for chaining. + */ + public Builder addConceptsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureConceptsIsMutable(); + concepts_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList uuids_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUuidsIsMutable() { + if (!uuids_.isModifiable()) { + uuids_ = new com.google.protobuf.LazyStringArrayList(uuids_); + } + bitField0_ |= 0x00000004; + } + /** + * repeated string uuids = 3; + * @return A list containing the uuids. + */ + public com.google.protobuf.ProtocolStringList + getUuidsList() { + uuids_.makeImmutable(); + return uuids_; + } + /** + * repeated string uuids = 3; + * @return The count of uuids. + */ + public int getUuidsCount() { + return uuids_.size(); + } + /** + * repeated string uuids = 3; + * @param index The index of the element to return. + * @return The uuids at the given index. + */ + public java.lang.String getUuids(int index) { + return uuids_.get(index); + } + /** + * repeated string uuids = 3; + * @param index The index of the value to return. + * @return The bytes of the uuids at the given index. + */ + public com.google.protobuf.ByteString + getUuidsBytes(int index) { + return uuids_.getByteString(index); + } + /** + * repeated string uuids = 3; + * @param index The index to set the value at. + * @param value The uuids to set. + * @return This builder for chaining. + */ + public Builder setUuids( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUuidsIsMutable(); + uuids_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string uuids = 3; + * @param value The uuids to add. + * @return This builder for chaining. + */ + public Builder addUuids( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUuidsIsMutable(); + uuids_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string uuids = 3; + * @param values The uuids to add. + * @return This builder for chaining. + */ + public Builder addAllUuids( + java.lang.Iterable values) { + ensureUuidsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uuids_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string uuids = 3; + * @return This builder for chaining. + */ + public Builder clearUuids() { + uuids_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + * repeated string uuids = 3; + * @param value The bytes of the uuids to add. + * @return This builder for chaining. + */ + public Builder addUuidsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureUuidsIsMutable(); + uuids_.add(value); + bitField0_ |= 0x00000004; + 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:weaviategrpc.NearTextSearchParams.Move) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.NearTextSearchParams.Move) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Move 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.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int QUERY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList query_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated string query = 1; + * @return A list containing the query. + */ + public com.google.protobuf.ProtocolStringList + getQueryList() { + return query_; + } + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated string query = 1; + * @return The count of query. + */ + public int getQueryCount() { + return query_.size(); + } + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated string query = 1; + * @param index The index of the element to return. + * @return The query at the given index. + */ + public java.lang.String getQuery(int index) { + return query_.get(index); + } + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated string query = 1; + * @param index The index of the value to return. + * @return The bytes of the query at the given index. + */ + public com.google.protobuf.ByteString + getQueryBytes(int index) { + return query_.getByteString(index); + } + + public static final int CERTAINTY_FIELD_NUMBER = 2; + private double certainty_ = 0D; + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + @java.lang.Override + public boolean hasCertainty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double certainty = 2; + * @return The certainty. + */ + @java.lang.Override + public double getCertainty() { + return certainty_; + } + + public static final int DISTANCE_FIELD_NUMBER = 3; + private double distance_ = 0D; + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + @java.lang.Override + public boolean hasDistance() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double distance = 3; + * @return The distance. + */ + @java.lang.Override + public double getDistance() { + return distance_; + } + + public static final int MOVE_TO_FIELD_NUMBER = 4; + private io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move moveTo_; + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4; + * @return Whether the moveTo field is set. + */ + @java.lang.Override + public boolean hasMoveTo() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4; + * @return The moveTo. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move getMoveTo() { + return moveTo_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance() : moveTo_; + } + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder getMoveToOrBuilder() { + return moveTo_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance() : moveTo_; + } + + public static final int MOVE_AWAY_FIELD_NUMBER = 5; + private io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move moveAway_; + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5; + * @return Whether the moveAway field is set. + */ + @java.lang.Override + public boolean hasMoveAway() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5; + * @return The moveAway. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move getMoveAway() { + return moveAway_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance() : moveAway_; + } + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder getMoveAwayOrBuilder() { + return moveAway_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance() : moveAway_; + } + + 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 < query_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(2, certainty_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(3, distance_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getMoveTo()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(5, getMoveAway()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < query_.size(); i++) { + dataSize += computeStringSizeNoTag(query_.getRaw(i)); + } + size += dataSize; + size += 1 * getQueryList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, certainty_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, distance_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMoveTo()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getMoveAway()); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams other = (io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams) obj; + + if (!getQueryList() + .equals(other.getQueryList())) return false; + if (hasCertainty() != other.hasCertainty()) return false; + if (hasCertainty()) { + if (java.lang.Double.doubleToLongBits(getCertainty()) + != java.lang.Double.doubleToLongBits( + other.getCertainty())) return false; + } + if (hasDistance() != other.hasDistance()) return false; + if (hasDistance()) { + if (java.lang.Double.doubleToLongBits(getDistance()) + != java.lang.Double.doubleToLongBits( + other.getDistance())) return false; + } + if (hasMoveTo() != other.hasMoveTo()) return false; + if (hasMoveTo()) { + if (!getMoveTo() + .equals(other.getMoveTo())) return false; + } + if (hasMoveAway() != other.hasMoveAway()) return false; + if (hasMoveAway()) { + if (!getMoveAway() + .equals(other.getMoveAway())) 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 (getQueryCount() > 0) { + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQueryList().hashCode(); + } + if (hasCertainty()) { + hash = (37 * hash) + CERTAINTY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCertainty())); + } + if (hasDistance()) { + hash = (37 * hash) + DISTANCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDistance())); + } + if (hasMoveTo()) { + hash = (37 * hash) + MOVE_TO_FIELD_NUMBER; + hash = (53 * hash) + getMoveTo().hashCode(); + } + if (hasMoveAway()) { + hash = (37 * hash) + MOVE_AWAY_FIELD_NUMBER; + hash = (53 * hash) + getMoveAway().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams 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 weaviategrpc.NearTextSearchParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.NearTextSearchParams) + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearTextSearchParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearTextSearchParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMoveToFieldBuilder(); + getMoveAwayFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + query_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + certainty_ = 0D; + distance_ = 0D; + moveTo_ = null; + if (moveToBuilder_ != null) { + moveToBuilder_.dispose(); + moveToBuilder_ = null; + } + moveAway_ = null; + if (moveAwayBuilder_ != null) { + moveAwayBuilder_.dispose(); + moveAwayBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearTextSearchParams_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams build() { + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams result = new io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + query_.makeImmutable(); + result.query_ = query_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.certainty_ = certainty_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.distance_ = distance_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.moveTo_ = moveToBuilder_ == null + ? moveTo_ + : moveToBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.moveAway_ = moveAwayBuilder_ == null + ? moveAway_ + : moveAwayBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + 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.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.getDefaultInstance()) return this; + if (!other.query_.isEmpty()) { + if (query_.isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000001; + } else { + ensureQueryIsMutable(); + query_.addAll(other.query_); + } + onChanged(); + } + if (other.hasCertainty()) { + setCertainty(other.getCertainty()); + } + if (other.hasDistance()) { + setDistance(other.getDistance()); + } + if (other.hasMoveTo()) { + mergeMoveTo(other.getMoveTo()); + } + if (other.hasMoveAway()) { + mergeMoveAway(other.getMoveAway()); + } + 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: { + java.lang.String s = input.readStringRequireUtf8(); + ensureQueryIsMutable(); + query_.add(s); + break; + } // case 10 + case 17: { + certainty_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: { + distance_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 34: { + input.readMessage( + getMoveToFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getMoveAwayFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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.google.protobuf.LazyStringArrayList query_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureQueryIsMutable() { + if (!query_.isModifiable()) { + query_ = new com.google.protobuf.LazyStringArrayList(query_); + } + bitField0_ |= 0x00000001; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string query = 1; + * @return A list containing the query. + */ + public com.google.protobuf.ProtocolStringList + getQueryList() { + query_.makeImmutable(); + return query_; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string query = 1; + * @return The count of query. + */ + public int getQueryCount() { + return query_.size(); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string query = 1; + * @param index The index of the element to return. + * @return The query at the given index. + */ + public java.lang.String getQuery(int index) { + return query_.get(index); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string query = 1; + * @param index The index of the value to return. + * @return The bytes of the query at the given index. + */ + public com.google.protobuf.ByteString + getQueryBytes(int index) { + return query_.getByteString(index); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string query = 1; + * @param index The index to set the value at. + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureQueryIsMutable(); + query_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string query = 1; + * @param value The query to add. + * @return This builder for chaining. + */ + public Builder addQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureQueryIsMutable(); + query_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string query = 1; + * @param values The query to add. + * @return This builder for chaining. + */ + public Builder addAllQuery( + java.lang.Iterable values) { + ensureQueryIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, query_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string query = 1; + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string query = 1; + * @param value The bytes of the query to add. + * @return This builder for chaining. + */ + public Builder addQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureQueryIsMutable(); + query_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private double certainty_ ; + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + @java.lang.Override + public boolean hasCertainty() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double certainty = 2; + * @return The certainty. + */ + @java.lang.Override + public double getCertainty() { + return certainty_; + } + /** + * optional double certainty = 2; + * @param value The certainty to set. + * @return This builder for chaining. + */ + public Builder setCertainty(double value) { + + certainty_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional double certainty = 2; + * @return This builder for chaining. + */ + public Builder clearCertainty() { + bitField0_ = (bitField0_ & ~0x00000002); + certainty_ = 0D; + onChanged(); + return this; + } + + private double distance_ ; + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + @java.lang.Override + public boolean hasDistance() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double distance = 3; + * @return The distance. + */ + @java.lang.Override + public double getDistance() { + return distance_; + } + /** + * optional double distance = 3; + * @param value The distance to set. + * @return This builder for chaining. + */ + public Builder setDistance(double value) { + + distance_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional double distance = 3; + * @return This builder for chaining. + */ + public Builder clearDistance() { + bitField0_ = (bitField0_ & ~0x00000004); + distance_ = 0D; + onChanged(); + return this; + } + + private io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move moveTo_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder> moveToBuilder_; + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4; + * @return Whether the moveTo field is set. + */ + public boolean hasMoveTo() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4; + * @return The moveTo. + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move getMoveTo() { + if (moveToBuilder_ == null) { + return moveTo_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance() : moveTo_; + } else { + return moveToBuilder_.getMessage(); + } + } + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4; + */ + public Builder setMoveTo(io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move value) { + if (moveToBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + moveTo_ = value; + } else { + moveToBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4; + */ + public Builder setMoveTo( + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder builderForValue) { + if (moveToBuilder_ == null) { + moveTo_ = builderForValue.build(); + } else { + moveToBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4; + */ + public Builder mergeMoveTo(io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move value) { + if (moveToBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + moveTo_ != null && + moveTo_ != io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance()) { + getMoveToBuilder().mergeFrom(value); + } else { + moveTo_ = value; + } + } else { + moveToBuilder_.mergeFrom(value); + } + if (moveTo_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4; + */ + public Builder clearMoveTo() { + bitField0_ = (bitField0_ & ~0x00000008); + moveTo_ = null; + if (moveToBuilder_ != null) { + moveToBuilder_.dispose(); + moveToBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder getMoveToBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getMoveToFieldBuilder().getBuilder(); + } + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder getMoveToOrBuilder() { + if (moveToBuilder_ != null) { + return moveToBuilder_.getMessageOrBuilder(); + } else { + return moveTo_ == null ? + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance() : moveTo_; + } + } + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder> + getMoveToFieldBuilder() { + if (moveToBuilder_ == null) { + moveToBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder>( + getMoveTo(), + getParentForChildren(), + isClean()); + moveTo_ = null; + } + return moveToBuilder_; + } + + private io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move moveAway_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder> moveAwayBuilder_; + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5; + * @return Whether the moveAway field is set. + */ + public boolean hasMoveAway() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5; + * @return The moveAway. + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move getMoveAway() { + if (moveAwayBuilder_ == null) { + return moveAway_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance() : moveAway_; + } else { + return moveAwayBuilder_.getMessage(); + } + } + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5; + */ + public Builder setMoveAway(io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move value) { + if (moveAwayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + moveAway_ = value; + } else { + moveAwayBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5; + */ + public Builder setMoveAway( + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder builderForValue) { + if (moveAwayBuilder_ == null) { + moveAway_ = builderForValue.build(); + } else { + moveAwayBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5; + */ + public Builder mergeMoveAway(io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move value) { + if (moveAwayBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + moveAway_ != null && + moveAway_ != io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance()) { + getMoveAwayBuilder().mergeFrom(value); + } else { + moveAway_ = value; + } + } else { + moveAwayBuilder_.mergeFrom(value); + } + if (moveAway_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5; + */ + public Builder clearMoveAway() { + bitField0_ = (bitField0_ & ~0x00000010); + moveAway_ = null; + if (moveAwayBuilder_ != null) { + moveAwayBuilder_.dispose(); + moveAwayBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder getMoveAwayBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getMoveAwayFieldBuilder().getBuilder(); + } + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder getMoveAwayOrBuilder() { + if (moveAwayBuilder_ != null) { + return moveAwayBuilder_.getMessageOrBuilder(); + } else { + return moveAway_ == null ? + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance() : moveAway_; + } + } + /** + * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder> + getMoveAwayFieldBuilder() { + if (moveAwayBuilder_ == null) { + moveAwayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder>( + getMoveAway(), + getParentForChildren(), + isClean()); + moveAway_ = null; + } + return moveAwayBuilder_; + } + @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:weaviategrpc.NearTextSearchParams) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.NearTextSearchParams) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NearTextSearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NearImageSearchParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.NearImageSearchParams) + com.google.protobuf.MessageOrBuilder { + + /** + * string image = 1; + * @return The image. + */ + java.lang.String getImage(); + /** + * string image = 1; + * @return The bytes for image. + */ + com.google.protobuf.ByteString + getImageBytes(); + + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + boolean hasCertainty(); + /** + * optional double certainty = 2; + * @return The certainty. + */ + double getCertainty(); + + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + boolean hasDistance(); + /** + * optional double distance = 3; + * @return The distance. + */ + double getDistance(); + } + /** + * Protobuf type {@code weaviategrpc.NearImageSearchParams} + */ + public static final class NearImageSearchParams extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.NearImageSearchParams) + NearImageSearchParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use NearImageSearchParams.newBuilder() to construct. + private NearImageSearchParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NearImageSearchParams() { + image_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NearImageSearchParams(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearImageSearchParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearImageSearchParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.Builder.class); + } + + private int bitField0_; + public static final int IMAGE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object image_ = ""; + /** + * string image = 1; + * @return The image. + */ + @java.lang.Override + public java.lang.String getImage() { + java.lang.Object ref = image_; + 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(); + image_ = s; + return s; + } + } + /** + * string image = 1; + * @return The bytes for image. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CERTAINTY_FIELD_NUMBER = 2; + private double certainty_ = 0D; + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + @java.lang.Override + public boolean hasCertainty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double certainty = 2; + * @return The certainty. + */ + @java.lang.Override + public double getCertainty() { + return certainty_; + } + + public static final int DISTANCE_FIELD_NUMBER = 3; + private double distance_ = 0D; + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + @java.lang.Override + public boolean hasDistance() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double distance = 3; + * @return The distance. + */ + @java.lang.Override + public double getDistance() { + return distance_; + } + + 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(image_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(2, certainty_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(3, distance_); + } + 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(image_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, certainty_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, distance_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams other = (io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams) obj; + + if (!getImage() + .equals(other.getImage())) return false; + if (hasCertainty() != other.hasCertainty()) return false; + if (hasCertainty()) { + if (java.lang.Double.doubleToLongBits(getCertainty()) + != java.lang.Double.doubleToLongBits( + other.getCertainty())) return false; + } + if (hasDistance() != other.hasDistance()) return false; + if (hasDistance()) { + if (java.lang.Double.doubleToLongBits(getDistance()) + != java.lang.Double.doubleToLongBits( + other.getDistance())) 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) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + if (hasCertainty()) { + hash = (37 * hash) + CERTAINTY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCertainty())); + } + if (hasDistance()) { + hash = (37 * hash) + DISTANCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDistance())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams 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 weaviategrpc.NearImageSearchParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.NearImageSearchParams) + io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearImageSearchParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearImageSearchParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + image_ = ""; + certainty_ = 0D; + distance_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearImageSearchParams_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams build() { + io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams result = new io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.image_ = image_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.certainty_ = certainty_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.distance_ = distance_; + 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 io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.getDefaultInstance()) return this; + if (!other.getImage().isEmpty()) { + image_ = other.image_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCertainty()) { + setCertainty(other.getCertainty()); + } + if (other.hasDistance()) { + setDistance(other.getDistance()); + } + 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: { + image_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: { + certainty_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: { + distance_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + 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 image_ = ""; + /** + * string image = 1; + * @return The image. + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string image = 1; + * @return The bytes for image. + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string image = 1; + * @param value The image to set. + * @return This builder for chaining. + */ + public Builder setImage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + image_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string image = 1; + * @return This builder for chaining. + */ + public Builder clearImage() { + image_ = getDefaultInstance().getImage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string image = 1; + * @param value The bytes for image to set. + * @return This builder for chaining. + */ + public Builder setImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + image_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private double certainty_ ; + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + @java.lang.Override + public boolean hasCertainty() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double certainty = 2; + * @return The certainty. + */ + @java.lang.Override + public double getCertainty() { + return certainty_; + } + /** + * optional double certainty = 2; + * @param value The certainty to set. + * @return This builder for chaining. + */ + public Builder setCertainty(double value) { + + certainty_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional double certainty = 2; + * @return This builder for chaining. + */ + public Builder clearCertainty() { + bitField0_ = (bitField0_ & ~0x00000002); + certainty_ = 0D; + onChanged(); + return this; + } + + private double distance_ ; + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + @java.lang.Override + public boolean hasDistance() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double distance = 3; + * @return The distance. + */ + @java.lang.Override + public double getDistance() { + return distance_; + } + /** + * optional double distance = 3; + * @param value The distance to set. + * @return This builder for chaining. + */ + public Builder setDistance(double value) { + + distance_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional double distance = 3; + * @return This builder for chaining. + */ + public Builder clearDistance() { + bitField0_ = (bitField0_ & ~0x00000004); + distance_ = 0D; + 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:weaviategrpc.NearImageSearchParams) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.NearImageSearchParams) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NearImageSearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NearAudioSearchParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.NearAudioSearchParams) + com.google.protobuf.MessageOrBuilder { + + /** + * string audio = 1; + * @return The audio. + */ + java.lang.String getAudio(); + /** + * string audio = 1; + * @return The bytes for audio. + */ + com.google.protobuf.ByteString + getAudioBytes(); + + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + boolean hasCertainty(); + /** + * optional double certainty = 2; + * @return The certainty. + */ + double getCertainty(); + + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + boolean hasDistance(); + /** + * optional double distance = 3; + * @return The distance. + */ + double getDistance(); + } + /** + * Protobuf type {@code weaviategrpc.NearAudioSearchParams} + */ + public static final class NearAudioSearchParams extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.NearAudioSearchParams) + NearAudioSearchParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use NearAudioSearchParams.newBuilder() to construct. + private NearAudioSearchParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NearAudioSearchParams() { + audio_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NearAudioSearchParams(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearAudioSearchParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearAudioSearchParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.Builder.class); + } + + private int bitField0_; + public static final int AUDIO_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object audio_ = ""; + /** + * string audio = 1; + * @return The audio. + */ + @java.lang.Override + public java.lang.String getAudio() { + java.lang.Object ref = audio_; + 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(); + audio_ = s; + return s; + } + } + /** + * string audio = 1; + * @return The bytes for audio. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAudioBytes() { + java.lang.Object ref = audio_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + audio_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CERTAINTY_FIELD_NUMBER = 2; + private double certainty_ = 0D; + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + @java.lang.Override + public boolean hasCertainty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double certainty = 2; + * @return The certainty. + */ + @java.lang.Override + public double getCertainty() { + return certainty_; + } + + public static final int DISTANCE_FIELD_NUMBER = 3; + private double distance_ = 0D; + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + @java.lang.Override + public boolean hasDistance() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double distance = 3; + * @return The distance. + */ + @java.lang.Override + public double getDistance() { + return distance_; + } + + 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(audio_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, audio_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(2, certainty_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(3, distance_); + } + 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(audio_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, audio_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, certainty_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, distance_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams other = (io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams) obj; + + if (!getAudio() + .equals(other.getAudio())) return false; + if (hasCertainty() != other.hasCertainty()) return false; + if (hasCertainty()) { + if (java.lang.Double.doubleToLongBits(getCertainty()) + != java.lang.Double.doubleToLongBits( + other.getCertainty())) return false; + } + if (hasDistance() != other.hasDistance()) return false; + if (hasDistance()) { + if (java.lang.Double.doubleToLongBits(getDistance()) + != java.lang.Double.doubleToLongBits( + other.getDistance())) 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) + AUDIO_FIELD_NUMBER; + hash = (53 * hash) + getAudio().hashCode(); + if (hasCertainty()) { + hash = (37 * hash) + CERTAINTY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCertainty())); + } + if (hasDistance()) { + hash = (37 * hash) + DISTANCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDistance())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams 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 weaviategrpc.NearAudioSearchParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.NearAudioSearchParams) + io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearAudioSearchParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearAudioSearchParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + audio_ = ""; + certainty_ = 0D; + distance_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearAudioSearchParams_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams build() { + io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams result = new io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.audio_ = audio_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.certainty_ = certainty_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.distance_ = distance_; + 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 io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.getDefaultInstance()) return this; + if (!other.getAudio().isEmpty()) { + audio_ = other.audio_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCertainty()) { + setCertainty(other.getCertainty()); + } + if (other.hasDistance()) { + setDistance(other.getDistance()); + } + 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: { + audio_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: { + certainty_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: { + distance_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + 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 audio_ = ""; + /** + * string audio = 1; + * @return The audio. + */ + public java.lang.String getAudio() { + java.lang.Object ref = audio_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + audio_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string audio = 1; + * @return The bytes for audio. + */ + public com.google.protobuf.ByteString + getAudioBytes() { + java.lang.Object ref = audio_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + audio_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string audio = 1; + * @param value The audio to set. + * @return This builder for chaining. + */ + public Builder setAudio( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + audio_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string audio = 1; + * @return This builder for chaining. + */ + public Builder clearAudio() { + audio_ = getDefaultInstance().getAudio(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string audio = 1; + * @param value The bytes for audio to set. + * @return This builder for chaining. + */ + public Builder setAudioBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + audio_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private double certainty_ ; + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + @java.lang.Override + public boolean hasCertainty() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double certainty = 2; + * @return The certainty. + */ + @java.lang.Override + public double getCertainty() { + return certainty_; + } + /** + * optional double certainty = 2; + * @param value The certainty to set. + * @return This builder for chaining. + */ + public Builder setCertainty(double value) { + + certainty_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional double certainty = 2; + * @return This builder for chaining. + */ + public Builder clearCertainty() { + bitField0_ = (bitField0_ & ~0x00000002); + certainty_ = 0D; + onChanged(); + return this; + } + + private double distance_ ; + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + @java.lang.Override + public boolean hasDistance() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double distance = 3; + * @return The distance. + */ + @java.lang.Override + public double getDistance() { + return distance_; + } + /** + * optional double distance = 3; + * @param value The distance to set. + * @return This builder for chaining. + */ + public Builder setDistance(double value) { + + distance_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional double distance = 3; + * @return This builder for chaining. + */ + public Builder clearDistance() { + bitField0_ = (bitField0_ & ~0x00000004); + distance_ = 0D; + 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:weaviategrpc.NearAudioSearchParams) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.NearAudioSearchParams) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NearAudioSearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NearVideoSearchParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.NearVideoSearchParams) + com.google.protobuf.MessageOrBuilder { + + /** + * string video = 1; + * @return The video. + */ + java.lang.String getVideo(); + /** + * string video = 1; + * @return The bytes for video. + */ + com.google.protobuf.ByteString + getVideoBytes(); + + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + boolean hasCertainty(); + /** + * optional double certainty = 2; + * @return The certainty. + */ + double getCertainty(); + + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + boolean hasDistance(); + /** + * optional double distance = 3; + * @return The distance. + */ + double getDistance(); + } + /** + * Protobuf type {@code weaviategrpc.NearVideoSearchParams} + */ + public static final class NearVideoSearchParams extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.NearVideoSearchParams) + NearVideoSearchParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use NearVideoSearchParams.newBuilder() to construct. + private NearVideoSearchParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NearVideoSearchParams() { + video_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NearVideoSearchParams(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearVideoSearchParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearVideoSearchParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.Builder.class); + } + + private int bitField0_; + public static final int VIDEO_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object video_ = ""; + /** + * string video = 1; + * @return The video. + */ + @java.lang.Override + public java.lang.String getVideo() { + java.lang.Object ref = video_; + 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(); + video_ = s; + return s; + } + } + /** + * string video = 1; + * @return The bytes for video. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVideoBytes() { + java.lang.Object ref = video_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + video_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CERTAINTY_FIELD_NUMBER = 2; + private double certainty_ = 0D; + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + @java.lang.Override + public boolean hasCertainty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double certainty = 2; + * @return The certainty. + */ + @java.lang.Override + public double getCertainty() { + return certainty_; + } + + public static final int DISTANCE_FIELD_NUMBER = 3; + private double distance_ = 0D; + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + @java.lang.Override + public boolean hasDistance() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double distance = 3; + * @return The distance. + */ + @java.lang.Override + public double getDistance() { + return distance_; + } + + 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(video_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, video_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(2, certainty_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(3, distance_); + } + 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(video_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, video_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, certainty_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, distance_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams other = (io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams) obj; + + if (!getVideo() + .equals(other.getVideo())) return false; + if (hasCertainty() != other.hasCertainty()) return false; + if (hasCertainty()) { + if (java.lang.Double.doubleToLongBits(getCertainty()) + != java.lang.Double.doubleToLongBits( + other.getCertainty())) return false; + } + if (hasDistance() != other.hasDistance()) return false; + if (hasDistance()) { + if (java.lang.Double.doubleToLongBits(getDistance()) + != java.lang.Double.doubleToLongBits( + other.getDistance())) 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) + VIDEO_FIELD_NUMBER; + hash = (53 * hash) + getVideo().hashCode(); + if (hasCertainty()) { + hash = (37 * hash) + CERTAINTY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCertainty())); + } + if (hasDistance()) { + hash = (37 * hash) + DISTANCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDistance())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams 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 weaviategrpc.NearVideoSearchParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.NearVideoSearchParams) + io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearVideoSearchParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearVideoSearchParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + video_ = ""; + certainty_ = 0D; + distance_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearVideoSearchParams_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams build() { + io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams result = new io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.video_ = video_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.certainty_ = certainty_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.distance_ = distance_; + 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 io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.getDefaultInstance()) return this; + if (!other.getVideo().isEmpty()) { + video_ = other.video_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCertainty()) { + setCertainty(other.getCertainty()); + } + if (other.hasDistance()) { + setDistance(other.getDistance()); + } + 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: { + video_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: { + certainty_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: { + distance_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + 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 video_ = ""; + /** + * string video = 1; + * @return The video. + */ + public java.lang.String getVideo() { + java.lang.Object ref = video_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + video_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string video = 1; + * @return The bytes for video. + */ + public com.google.protobuf.ByteString + getVideoBytes() { + java.lang.Object ref = video_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + video_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string video = 1; + * @param value The video to set. + * @return This builder for chaining. + */ + public Builder setVideo( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + video_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string video = 1; + * @return This builder for chaining. + */ + public Builder clearVideo() { + video_ = getDefaultInstance().getVideo(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string video = 1; + * @param value The bytes for video to set. + * @return This builder for chaining. + */ + public Builder setVideoBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + video_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private double certainty_ ; + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + @java.lang.Override + public boolean hasCertainty() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double certainty = 2; + * @return The certainty. + */ + @java.lang.Override + public double getCertainty() { + return certainty_; + } + /** + * optional double certainty = 2; + * @param value The certainty to set. + * @return This builder for chaining. + */ + public Builder setCertainty(double value) { + + certainty_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional double certainty = 2; + * @return This builder for chaining. + */ + public Builder clearCertainty() { + bitField0_ = (bitField0_ & ~0x00000002); + certainty_ = 0D; + onChanged(); + return this; + } + + private double distance_ ; + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + @java.lang.Override + public boolean hasDistance() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double distance = 3; + * @return The distance. + */ + @java.lang.Override + public double getDistance() { + return distance_; + } + /** + * optional double distance = 3; + * @param value The distance to set. + * @return This builder for chaining. + */ + public Builder setDistance(double value) { + + distance_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional double distance = 3; + * @return This builder for chaining. + */ + public Builder clearDistance() { + bitField0_ = (bitField0_ & ~0x00000004); + distance_ = 0D; + 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:weaviategrpc.NearVideoSearchParams) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.NearVideoSearchParams) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NearVideoSearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BM25SearchParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.BM25SearchParams) + com.google.protobuf.MessageOrBuilder { + + /** + * string query = 1; + * @return The query. + */ + java.lang.String getQuery(); + /** + * string query = 1; + * @return The bytes for query. + */ + com.google.protobuf.ByteString + getQueryBytes(); + + /** + * repeated string properties = 2; + * @return A list containing the properties. + */ + java.util.List + getPropertiesList(); + /** + * repeated string properties = 2; + * @return The count of properties. + */ + int getPropertiesCount(); + /** + * repeated string properties = 2; + * @param index The index of the element to return. + * @return The properties at the given index. + */ + java.lang.String getProperties(int index); + /** + * repeated string properties = 2; + * @param index The index of the value to return. + * @return The bytes of the properties at the given index. + */ + com.google.protobuf.ByteString + getPropertiesBytes(int index); + } + /** + * Protobuf type {@code weaviategrpc.BM25SearchParams} + */ + public static final class BM25SearchParams extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.BM25SearchParams) + BM25SearchParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use BM25SearchParams.newBuilder() to construct. + private BM25SearchParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BM25SearchParams() { + query_ = ""; + properties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BM25SearchParams(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BM25SearchParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BM25SearchParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.Builder.class); + } + + public static final int QUERY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + /** + * string query = 1; + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + 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(); + query_ = s; + return s; + } + } + /** + * string query = 1; + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTIES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList properties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string properties = 2; + * @return A list containing the properties. + */ + public com.google.protobuf.ProtocolStringList + getPropertiesList() { + return properties_; + } + /** + * repeated string properties = 2; + * @return The count of properties. + */ + public int getPropertiesCount() { + return properties_.size(); + } + /** + * repeated string properties = 2; + * @param index The index of the element to return. + * @return The properties at the given index. + */ + public java.lang.String getProperties(int index) { + return properties_.get(index); + } + /** + * repeated string properties = 2; + * @param index The index of the value to return. + * @return The bytes of the properties at the given index. + */ + public com.google.protobuf.ByteString + getPropertiesBytes(int index) { + return properties_.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(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + for (int i = 0; i < properties_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, properties_.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(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + { + int dataSize = 0; + for (int i = 0; i < properties_.size(); i++) { + dataSize += computeStringSizeNoTag(properties_.getRaw(i)); + } + size += dataSize; + size += 1 * getPropertiesList().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.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams other = (io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams) obj; + + if (!getQuery() + .equals(other.getQuery())) return false; + if (!getPropertiesList() + .equals(other.getPropertiesList())) 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) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (getPropertiesCount() > 0) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getPropertiesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams 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 weaviategrpc.BM25SearchParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.BM25SearchParams) + io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BM25SearchParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BM25SearchParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + query_ = ""; + properties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BM25SearchParams_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams build() { + io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams result = new io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + properties_.makeImmutable(); + result.properties_ = properties_; + } + } + + @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.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.getDefaultInstance()) return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.properties_.isEmpty()) { + if (properties_.isEmpty()) { + properties_ = other.properties_; + bitField0_ |= 0x00000002; + } else { + ensurePropertiesIsMutable(); + properties_.addAll(other.properties_); + } + 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: { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePropertiesIsMutable(); + properties_.add(s); + 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 java.lang.Object query_ = ""; + /** + * string query = 1; + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string query = 1; + * @return The bytes for query. + */ + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string query = 1; + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + query_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string query = 1; + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string query = 1; + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList properties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePropertiesIsMutable() { + if (!properties_.isModifiable()) { + properties_ = new com.google.protobuf.LazyStringArrayList(properties_); + } + bitField0_ |= 0x00000002; + } + /** + * repeated string properties = 2; + * @return A list containing the properties. + */ + public com.google.protobuf.ProtocolStringList + getPropertiesList() { + properties_.makeImmutable(); + return properties_; + } + /** + * repeated string properties = 2; + * @return The count of properties. + */ + public int getPropertiesCount() { + return properties_.size(); + } + /** + * repeated string properties = 2; + * @param index The index of the element to return. + * @return The properties at the given index. + */ + public java.lang.String getProperties(int index) { + return properties_.get(index); + } + /** + * repeated string properties = 2; + * @param index The index of the value to return. + * @return The bytes of the properties at the given index. + */ + public com.google.protobuf.ByteString + getPropertiesBytes(int index) { + return properties_.getByteString(index); + } + /** + * repeated string properties = 2; + * @param index The index to set the value at. + * @param value The properties to set. + * @return This builder for chaining. + */ + public Builder setProperties( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePropertiesIsMutable(); + properties_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string properties = 2; + * @param value The properties to add. + * @return This builder for chaining. + */ + public Builder addProperties( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePropertiesIsMutable(); + properties_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string properties = 2; + * @param values The properties to add. + * @return This builder for chaining. + */ + public Builder addAllProperties( + java.lang.Iterable values) { + ensurePropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, properties_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string properties = 2; + * @return This builder for chaining. + */ + public Builder clearProperties() { + properties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + * repeated string properties = 2; + * @param value The bytes of the properties to add. + * @return This builder for chaining. + */ + public Builder addPropertiesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensurePropertiesIsMutable(); + properties_.add(value); + bitField0_ |= 0x00000002; + 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:weaviategrpc.BM25SearchParams) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.BM25SearchParams) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BM25SearchParams 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.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RefPropertiesOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.RefProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * string reference_property = 2; + * @return The referenceProperty. + */ + java.lang.String getReferenceProperty(); + /** + * string reference_property = 2; + * @return The bytes for referenceProperty. + */ + com.google.protobuf.ByteString + getReferencePropertyBytes(); + + /** + * .weaviategrpc.Properties linked_properties = 3; + * @return Whether the linkedProperties field is set. + */ + boolean hasLinkedProperties(); + /** + * .weaviategrpc.Properties linked_properties = 3; + * @return The linkedProperties. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.Properties getLinkedProperties(); + /** + * .weaviategrpc.Properties linked_properties = 3; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.PropertiesOrBuilder getLinkedPropertiesOrBuilder(); + + /** + * .weaviategrpc.AdditionalProperties metadata = 4; + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * .weaviategrpc.AdditionalProperties metadata = 4; + * @return The metadata. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties getMetadata(); + /** + * .weaviategrpc.AdditionalProperties metadata = 4; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalPropertiesOrBuilder getMetadataOrBuilder(); + + /** + * string which_collection = 5; + * @return The whichCollection. + */ + java.lang.String getWhichCollection(); + /** + * string which_collection = 5; + * @return The bytes for whichCollection. + */ + com.google.protobuf.ByteString + getWhichCollectionBytes(); + } + /** + * Protobuf type {@code weaviategrpc.RefProperties} + */ + public static final class RefProperties extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.RefProperties) + RefPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use RefProperties.newBuilder() to construct. + private RefProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RefProperties() { + referenceProperty_ = ""; + whichCollection_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RefProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_RefProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_RefProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.class, io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.Builder.class); + } + + private int bitField0_; + public static final int REFERENCE_PROPERTY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object referenceProperty_ = ""; + /** + * string reference_property = 2; + * @return The referenceProperty. + */ + @java.lang.Override + public java.lang.String getReferenceProperty() { + java.lang.Object ref = referenceProperty_; + 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(); + referenceProperty_ = s; + return s; + } + } + /** + * string reference_property = 2; + * @return The bytes for referenceProperty. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getReferencePropertyBytes() { + java.lang.Object ref = referenceProperty_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + referenceProperty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LINKED_PROPERTIES_FIELD_NUMBER = 3; + private io.weaviate.client.grpc.protocol.WeaviateProto.Properties linkedProperties_; + /** + * .weaviategrpc.Properties linked_properties = 3; + * @return Whether the linkedProperties field is set. + */ + @java.lang.Override + public boolean hasLinkedProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .weaviategrpc.Properties linked_properties = 3; + * @return The linkedProperties. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.Properties getLinkedProperties() { + return linkedProperties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.Properties.getDefaultInstance() : linkedProperties_; + } + /** + * .weaviategrpc.Properties linked_properties = 3; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.PropertiesOrBuilder getLinkedPropertiesOrBuilder() { + return linkedProperties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.Properties.getDefaultInstance() : linkedProperties_; + } + + public static final int METADATA_FIELD_NUMBER = 4; + private io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties metadata_; + /** + * .weaviategrpc.AdditionalProperties metadata = 4; + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .weaviategrpc.AdditionalProperties metadata = 4; + * @return The metadata. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties getMetadata() { + return metadata_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.getDefaultInstance() : metadata_; + } + /** + * .weaviategrpc.AdditionalProperties metadata = 4; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalPropertiesOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.getDefaultInstance() : metadata_; + } + + public static final int WHICH_COLLECTION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object whichCollection_ = ""; + /** + * string which_collection = 5; + * @return The whichCollection. + */ + @java.lang.Override + public java.lang.String getWhichCollection() { + java.lang.Object ref = whichCollection_; + 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(); + whichCollection_ = s; + return s; + } + } + /** + * string which_collection = 5; + * @return The bytes for whichCollection. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWhichCollectionBytes() { + java.lang.Object ref = whichCollection_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + whichCollection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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(referenceProperty_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, referenceProperty_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getLinkedProperties()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getMetadata()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(whichCollection_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, whichCollection_); + } + 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(referenceProperty_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, referenceProperty_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getLinkedProperties()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMetadata()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(whichCollection_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, whichCollection_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.RefProperties)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties other = (io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties) obj; + + if (!getReferenceProperty() + .equals(other.getReferenceProperty())) return false; + if (hasLinkedProperties() != other.hasLinkedProperties()) return false; + if (hasLinkedProperties()) { + if (!getLinkedProperties() + .equals(other.getLinkedProperties())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!getWhichCollection() + .equals(other.getWhichCollection())) 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) + REFERENCE_PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getReferenceProperty().hashCode(); + if (hasLinkedProperties()) { + hash = (37 * hash) + LINKED_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getLinkedProperties().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (37 * hash) + WHICH_COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getWhichCollection().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties 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.weaviate.client.grpc.protocol.WeaviateProto.RefProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties 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.weaviate.client.grpc.protocol.WeaviateProto.RefProperties parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties 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.weaviate.client.grpc.protocol.WeaviateProto.RefProperties 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 weaviategrpc.RefProperties} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.RefProperties) + io.weaviate.client.grpc.protocol.WeaviateProto.RefPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_RefProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_RefProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.class, io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLinkedPropertiesFieldBuilder(); + getMetadataFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + referenceProperty_ = ""; + linkedProperties_ = null; + if (linkedPropertiesBuilder_ != null) { + linkedPropertiesBuilder_.dispose(); + linkedPropertiesBuilder_ = null; + } + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + whichCollection_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_RefProperties_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties build() { + io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties result = new io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.referenceProperty_ = referenceProperty_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.linkedProperties_ = linkedPropertiesBuilder_ == null + ? linkedProperties_ + : linkedPropertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.whichCollection_ = whichCollection_; + } + 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.weaviate.client.grpc.protocol.WeaviateProto.RefProperties) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.getDefaultInstance()) return this; + if (!other.getReferenceProperty().isEmpty()) { + referenceProperty_ = other.referenceProperty_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasLinkedProperties()) { + mergeLinkedProperties(other.getLinkedProperties()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (!other.getWhichCollection().isEmpty()) { + whichCollection_ = other.whichCollection_; + bitField0_ |= 0x00000008; + 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 18: { + referenceProperty_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: { + input.readMessage( + getLinkedPropertiesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + whichCollection_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + 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 referenceProperty_ = ""; + /** + * string reference_property = 2; + * @return The referenceProperty. + */ + public java.lang.String getReferenceProperty() { + java.lang.Object ref = referenceProperty_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + referenceProperty_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string reference_property = 2; + * @return The bytes for referenceProperty. + */ + public com.google.protobuf.ByteString + getReferencePropertyBytes() { + java.lang.Object ref = referenceProperty_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + referenceProperty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string reference_property = 2; + * @param value The referenceProperty to set. + * @return This builder for chaining. + */ + public Builder setReferenceProperty( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + referenceProperty_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string reference_property = 2; + * @return This builder for chaining. + */ + public Builder clearReferenceProperty() { + referenceProperty_ = getDefaultInstance().getReferenceProperty(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string reference_property = 2; + * @param value The bytes for referenceProperty to set. + * @return This builder for chaining. + */ + public Builder setReferencePropertyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + referenceProperty_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private io.weaviate.client.grpc.protocol.WeaviateProto.Properties linkedProperties_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.Properties, io.weaviate.client.grpc.protocol.WeaviateProto.Properties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.PropertiesOrBuilder> linkedPropertiesBuilder_; + /** + * .weaviategrpc.Properties linked_properties = 3; + * @return Whether the linkedProperties field is set. + */ + public boolean hasLinkedProperties() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .weaviategrpc.Properties linked_properties = 3; + * @return The linkedProperties. + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.Properties getLinkedProperties() { + if (linkedPropertiesBuilder_ == null) { + return linkedProperties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.Properties.getDefaultInstance() : linkedProperties_; + } else { + return linkedPropertiesBuilder_.getMessage(); + } + } + /** + * .weaviategrpc.Properties linked_properties = 3; + */ + public Builder setLinkedProperties(io.weaviate.client.grpc.protocol.WeaviateProto.Properties value) { + if (linkedPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + linkedProperties_ = value; + } else { + linkedPropertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .weaviategrpc.Properties linked_properties = 3; + */ + public Builder setLinkedProperties( + io.weaviate.client.grpc.protocol.WeaviateProto.Properties.Builder builderForValue) { + if (linkedPropertiesBuilder_ == null) { + linkedProperties_ = builderForValue.build(); + } else { + linkedPropertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .weaviategrpc.Properties linked_properties = 3; + */ + public Builder mergeLinkedProperties(io.weaviate.client.grpc.protocol.WeaviateProto.Properties value) { + if (linkedPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + linkedProperties_ != null && + linkedProperties_ != io.weaviate.client.grpc.protocol.WeaviateProto.Properties.getDefaultInstance()) { + getLinkedPropertiesBuilder().mergeFrom(value); + } else { + linkedProperties_ = value; + } + } else { + linkedPropertiesBuilder_.mergeFrom(value); + } + if (linkedProperties_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .weaviategrpc.Properties linked_properties = 3; + */ + public Builder clearLinkedProperties() { + bitField0_ = (bitField0_ & ~0x00000002); + linkedProperties_ = null; + if (linkedPropertiesBuilder_ != null) { + linkedPropertiesBuilder_.dispose(); + linkedPropertiesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .weaviategrpc.Properties linked_properties = 3; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.Properties.Builder getLinkedPropertiesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLinkedPropertiesFieldBuilder().getBuilder(); + } + /** + * .weaviategrpc.Properties linked_properties = 3; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.PropertiesOrBuilder getLinkedPropertiesOrBuilder() { + if (linkedPropertiesBuilder_ != null) { + return linkedPropertiesBuilder_.getMessageOrBuilder(); + } else { + return linkedProperties_ == null ? + io.weaviate.client.grpc.protocol.WeaviateProto.Properties.getDefaultInstance() : linkedProperties_; + } + } + /** + * .weaviategrpc.Properties linked_properties = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.Properties, io.weaviate.client.grpc.protocol.WeaviateProto.Properties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.PropertiesOrBuilder> + getLinkedPropertiesFieldBuilder() { + if (linkedPropertiesBuilder_ == null) { + linkedPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.Properties, io.weaviate.client.grpc.protocol.WeaviateProto.Properties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.PropertiesOrBuilder>( + getLinkedProperties(), + getParentForChildren(), + isClean()); + linkedProperties_ = null; + } + return linkedPropertiesBuilder_; + } + + private io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalPropertiesOrBuilder> metadataBuilder_; + /** + * .weaviategrpc.AdditionalProperties metadata = 4; + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .weaviategrpc.AdditionalProperties metadata = 4; + * @return The metadata. + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * .weaviategrpc.AdditionalProperties metadata = 4; + */ + public Builder setMetadata(io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .weaviategrpc.AdditionalProperties metadata = 4; + */ + public Builder setMetadata( + io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .weaviategrpc.AdditionalProperties metadata = 4; + */ + public Builder mergeMetadata(io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + metadata_ != null && + metadata_ != io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .weaviategrpc.AdditionalProperties metadata = 4; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .weaviategrpc.AdditionalProperties metadata = 4; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.Builder getMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * .weaviategrpc.AdditionalProperties metadata = 4; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalPropertiesOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.getDefaultInstance() : metadata_; + } + } + /** + * .weaviategrpc.AdditionalProperties metadata = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalPropertiesOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalPropertiesOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.lang.Object whichCollection_ = ""; + /** + * string which_collection = 5; + * @return The whichCollection. + */ + public java.lang.String getWhichCollection() { + java.lang.Object ref = whichCollection_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + whichCollection_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string which_collection = 5; + * @return The bytes for whichCollection. + */ + public com.google.protobuf.ByteString + getWhichCollectionBytes() { + java.lang.Object ref = whichCollection_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + whichCollection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string which_collection = 5; + * @param value The whichCollection to set. + * @return This builder for chaining. + */ + public Builder setWhichCollection( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + whichCollection_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string which_collection = 5; + * @return This builder for chaining. + */ + public Builder clearWhichCollection() { + whichCollection_ = getDefaultInstance().getWhichCollection(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string which_collection = 5; + * @param value The bytes for whichCollection to set. + * @return This builder for chaining. + */ + public Builder setWhichCollectionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + whichCollection_ = 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:weaviategrpc.RefProperties) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.RefProperties) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RefProperties 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.weaviate.client.grpc.protocol.WeaviateProto.RefProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NearVectorParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.NearVectorParams) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 1; + * @return A list containing the vector. + */ + java.util.List getVectorList(); + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 1; + * @return The count of vector. + */ + int getVectorCount(); + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 1; + * @param index The index of the element to return. + * @return The vector at the given index. + */ + float getVector(int index); + + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + boolean hasCertainty(); + /** + * optional double certainty = 2; + * @return The certainty. + */ + double getCertainty(); + + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + boolean hasDistance(); + /** + * optional double distance = 3; + * @return The distance. + */ + double getDistance(); + } + /** + * Protobuf type {@code weaviategrpc.NearVectorParams} + */ + public static final class NearVectorParams extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.NearVectorParams) + NearVectorParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use NearVectorParams.newBuilder() to construct. + private NearVectorParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NearVectorParams() { + vector_ = emptyFloatList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NearVectorParams(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearVectorParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearVectorParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.Builder.class); + } + + private int bitField0_; + public static final int VECTOR_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.FloatList vector_ = + emptyFloatList(); + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 1; + * @return A list containing the vector. + */ + @java.lang.Override + public java.util.List + getVectorList() { + return vector_; + } + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 1; + * @return The count of vector. + */ + public int getVectorCount() { + return vector_.size(); + } + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 1; + * @param index The index of the element to return. + * @return The vector at the given index. + */ + public float getVector(int index) { + return vector_.getFloat(index); + } + private int vectorMemoizedSerializedSize = -1; + + public static final int CERTAINTY_FIELD_NUMBER = 2; + private double certainty_ = 0D; + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + @java.lang.Override + public boolean hasCertainty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double certainty = 2; + * @return The certainty. + */ + @java.lang.Override + public double getCertainty() { + return certainty_; + } + + public static final int DISTANCE_FIELD_NUMBER = 3; + private double distance_ = 0D; + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + @java.lang.Override + public boolean hasDistance() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double distance = 3; + * @return The distance. + */ + @java.lang.Override + public double getDistance() { + return distance_; + } + + 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 { + getSerializedSize(); + if (getVectorList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(vectorMemoizedSerializedSize); + } + for (int i = 0; i < vector_.size(); i++) { + output.writeFloatNoTag(vector_.getFloat(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(2, certainty_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(3, distance_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + dataSize = 4 * getVectorList().size(); + size += dataSize; + if (!getVectorList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + vectorMemoizedSerializedSize = dataSize; + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, certainty_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, distance_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams other = (io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams) obj; + + if (!getVectorList() + .equals(other.getVectorList())) return false; + if (hasCertainty() != other.hasCertainty()) return false; + if (hasCertainty()) { + if (java.lang.Double.doubleToLongBits(getCertainty()) + != java.lang.Double.doubleToLongBits( + other.getCertainty())) return false; + } + if (hasDistance() != other.hasDistance()) return false; + if (hasDistance()) { + if (java.lang.Double.doubleToLongBits(getDistance()) + != java.lang.Double.doubleToLongBits( + other.getDistance())) 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 (getVectorCount() > 0) { + hash = (37 * hash) + VECTOR_FIELD_NUMBER; + hash = (53 * hash) + getVectorList().hashCode(); + } + if (hasCertainty()) { + hash = (37 * hash) + CERTAINTY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCertainty())); + } + if (hasDistance()) { + hash = (37 * hash) + DISTANCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDistance())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams 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 weaviategrpc.NearVectorParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.NearVectorParams) + io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearVectorParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearVectorParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + vector_ = emptyFloatList(); + certainty_ = 0D; + distance_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearVectorParams_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams build() { + io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams result = new io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + vector_.makeImmutable(); + result.vector_ = vector_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.certainty_ = certainty_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.distance_ = distance_; + 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 io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.getDefaultInstance()) return this; + if (!other.vector_.isEmpty()) { + if (vector_.isEmpty()) { + vector_ = other.vector_; + vector_.makeImmutable(); + bitField0_ |= 0x00000001; + } else { + ensureVectorIsMutable(); + vector_.addAll(other.vector_); + } + onChanged(); + } + if (other.hasCertainty()) { + setCertainty(other.getCertainty()); + } + if (other.hasDistance()) { + setDistance(other.getDistance()); + } + 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 13: { + float v = input.readFloat(); + ensureVectorIsMutable(); + vector_.addFloat(v); + break; + } // case 13 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + int alloc = length > 4096 ? 4096 : length; + ensureVectorIsMutable(alloc / 4); + while (input.getBytesUntilLimit() > 0) { + vector_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } // case 10 + case 17: { + certainty_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: { + distance_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + 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.google.protobuf.Internal.FloatList vector_ = emptyFloatList(); + private void ensureVectorIsMutable() { + if (!vector_.isModifiable()) { + vector_ = makeMutableCopy(vector_); + } + bitField0_ |= 0x00000001; + } + private void ensureVectorIsMutable(int capacity) { + if (!vector_.isModifiable()) { + vector_ = makeMutableCopy(vector_, capacity); + } + bitField0_ |= 0x00000001; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 1; + * @return A list containing the vector. + */ + public java.util.List + getVectorList() { + vector_.makeImmutable(); + return vector_; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 1; + * @return The count of vector. + */ + public int getVectorCount() { + return vector_.size(); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 1; + * @param index The index of the element to return. + * @return The vector at the given index. + */ + public float getVector(int index) { + return vector_.getFloat(index); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 1; + * @param index The index to set the value at. + * @param value The vector to set. + * @return This builder for chaining. + */ + public Builder setVector( + int index, float value) { + + ensureVectorIsMutable(); + vector_.setFloat(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 1; + * @param value The vector to add. + * @return This builder for chaining. + */ + public Builder addVector(float value) { + + ensureVectorIsMutable(); + vector_.addFloat(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 1; + * @param values The vector to add. + * @return This builder for chaining. + */ + public Builder addAllVector( + java.lang.Iterable values) { + ensureVectorIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vector_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 1; + * @return This builder for chaining. + */ + public Builder clearVector() { + vector_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private double certainty_ ; + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + @java.lang.Override + public boolean hasCertainty() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double certainty = 2; + * @return The certainty. + */ + @java.lang.Override + public double getCertainty() { + return certainty_; + } + /** + * optional double certainty = 2; + * @param value The certainty to set. + * @return This builder for chaining. + */ + public Builder setCertainty(double value) { + + certainty_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional double certainty = 2; + * @return This builder for chaining. + */ + public Builder clearCertainty() { + bitField0_ = (bitField0_ & ~0x00000002); + certainty_ = 0D; + onChanged(); + return this; + } + + private double distance_ ; + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + @java.lang.Override + public boolean hasDistance() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double distance = 3; + * @return The distance. + */ + @java.lang.Override + public double getDistance() { + return distance_; + } + /** + * optional double distance = 3; + * @param value The distance to set. + * @return This builder for chaining. + */ + public Builder setDistance(double value) { + + distance_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional double distance = 3; + * @return This builder for chaining. + */ + public Builder clearDistance() { + bitField0_ = (bitField0_ & ~0x00000004); + distance_ = 0D; + 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:weaviategrpc.NearVectorParams) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.NearVectorParams) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NearVectorParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NearObjectParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.NearObjectParams) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + boolean hasCertainty(); + /** + * optional double certainty = 2; + * @return The certainty. + */ + double getCertainty(); + + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + boolean hasDistance(); + /** + * optional double distance = 3; + * @return The distance. + */ + double getDistance(); + } + /** + * Protobuf type {@code weaviategrpc.NearObjectParams} + */ + public static final class NearObjectParams extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.NearObjectParams) + NearObjectParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use NearObjectParams.newBuilder() to construct. + private NearObjectParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NearObjectParams() { + id_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NearObjectParams(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearObjectParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearObjectParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * string id = 1; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CERTAINTY_FIELD_NUMBER = 2; + private double certainty_ = 0D; + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + @java.lang.Override + public boolean hasCertainty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double certainty = 2; + * @return The certainty. + */ + @java.lang.Override + public double getCertainty() { + return certainty_; + } + + public static final int DISTANCE_FIELD_NUMBER = 3; + private double distance_ = 0D; + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + @java.lang.Override + public boolean hasDistance() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double distance = 3; + * @return The distance. + */ + @java.lang.Override + public double getDistance() { + return distance_; + } + + 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(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(2, certainty_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(3, distance_); + } + 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(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, certainty_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, distance_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams other = (io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams) obj; + + if (!getId() + .equals(other.getId())) return false; + if (hasCertainty() != other.hasCertainty()) return false; + if (hasCertainty()) { + if (java.lang.Double.doubleToLongBits(getCertainty()) + != java.lang.Double.doubleToLongBits( + other.getCertainty())) return false; + } + if (hasDistance() != other.hasDistance()) return false; + if (hasDistance()) { + if (java.lang.Double.doubleToLongBits(getDistance()) + != java.lang.Double.doubleToLongBits( + other.getDistance())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasCertainty()) { + hash = (37 * hash) + CERTAINTY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCertainty())); + } + if (hasDistance()) { + hash = (37 * hash) + DISTANCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDistance())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams 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 weaviategrpc.NearObjectParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.NearObjectParams) + io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearObjectParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearObjectParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + certainty_ = 0D; + distance_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearObjectParams_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams build() { + io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams result = new io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.certainty_ = certainty_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.distance_ = distance_; + 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 io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCertainty()) { + setCertainty(other.getCertainty()); + } + if (other.hasDistance()) { + setDistance(other.getDistance()); + } + 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: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: { + certainty_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: { + distance_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + 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 id_ = ""; + /** + * string id = 1; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private double certainty_ ; + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + @java.lang.Override + public boolean hasCertainty() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double certainty = 2; + * @return The certainty. + */ + @java.lang.Override + public double getCertainty() { + return certainty_; + } + /** + * optional double certainty = 2; + * @param value The certainty to set. + * @return This builder for chaining. + */ + public Builder setCertainty(double value) { + + certainty_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional double certainty = 2; + * @return This builder for chaining. + */ + public Builder clearCertainty() { + bitField0_ = (bitField0_ & ~0x00000002); + certainty_ = 0D; + onChanged(); + return this; + } + + private double distance_ ; + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + @java.lang.Override + public boolean hasDistance() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double distance = 3; + * @return The distance. + */ + @java.lang.Override + public double getDistance() { + return distance_; + } + /** + * optional double distance = 3; + * @param value The distance to set. + * @return This builder for chaining. + */ + public Builder setDistance(double value) { + + distance_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional double distance = 3; + * @return This builder for chaining. + */ + public Builder clearDistance() { + bitField0_ = (bitField0_ & ~0x00000004); + distance_ = 0D; + 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:weaviategrpc.NearObjectParams) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.NearObjectParams) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NearObjectParams 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.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SearchReplyOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.SearchReply) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + java.util.List + getResultsList(); + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult getResults(int index); + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + int getResultsCount(); + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + java.util.List + getResultsOrBuilderList(); + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.SearchResultOrBuilder getResultsOrBuilder( + int index); + + /** + * float took = 2; + * @return The took. + */ + float getTook(); + + /** + * string generative_grouped_result = 3; + * @return The generativeGroupedResult. + */ + java.lang.String getGenerativeGroupedResult(); + /** + * string generative_grouped_result = 3; + * @return The bytes for generativeGroupedResult. + */ + com.google.protobuf.ByteString + getGenerativeGroupedResultBytes(); + } + /** + * Protobuf type {@code weaviategrpc.SearchReply} + */ + public static final class SearchReply extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.SearchReply) + SearchReplyOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchReply.newBuilder() to construct. + private SearchReply(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SearchReply() { + results_ = java.util.Collections.emptyList(); + generativeGroupedResult_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SearchReply(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_SearchReply_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_SearchReply_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply.class, io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply.Builder.class); + } + + public static final int RESULTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List results_; + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + @java.lang.Override + public java.util.List getResultsList() { + return results_; + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + @java.lang.Override + public java.util.List + getResultsOrBuilderList() { + return results_; + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + @java.lang.Override + public int getResultsCount() { + return results_.size(); + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult getResults(int index) { + return results_.get(index); + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.SearchResultOrBuilder getResultsOrBuilder( + int index) { + return results_.get(index); + } + + public static final int TOOK_FIELD_NUMBER = 2; + private float took_ = 0F; + /** + * float took = 2; + * @return The took. + */ + @java.lang.Override + public float getTook() { + return took_; + } + + public static final int GENERATIVE_GROUPED_RESULT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object generativeGroupedResult_ = ""; + /** + * string generative_grouped_result = 3; + * @return The generativeGroupedResult. + */ + @java.lang.Override + public java.lang.String getGenerativeGroupedResult() { + java.lang.Object ref = generativeGroupedResult_; + 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(); + generativeGroupedResult_ = s; + return s; + } + } + /** + * string generative_grouped_result = 3; + * @return The bytes for generativeGroupedResult. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGenerativeGroupedResultBytes() { + java.lang.Object ref = generativeGroupedResult_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + generativeGroupedResult_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 < results_.size(); i++) { + output.writeMessage(1, results_.get(i)); + } + if (java.lang.Float.floatToRawIntBits(took_) != 0) { + output.writeFloat(2, took_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(generativeGroupedResult_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, generativeGroupedResult_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < results_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, results_.get(i)); + } + if (java.lang.Float.floatToRawIntBits(took_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, took_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(generativeGroupedResult_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, generativeGroupedResult_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.SearchReply)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply other = (io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply) obj; + + if (!getResultsList() + .equals(other.getResultsList())) return false; + if (java.lang.Float.floatToIntBits(getTook()) + != java.lang.Float.floatToIntBits( + other.getTook())) return false; + if (!getGenerativeGroupedResult() + .equals(other.getGenerativeGroupedResult())) 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 (getResultsCount() > 0) { + hash = (37 * hash) + RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getResultsList().hashCode(); + } + hash = (37 * hash) + TOOK_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getTook()); + hash = (37 * hash) + GENERATIVE_GROUPED_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getGenerativeGroupedResult().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply 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.weaviate.client.grpc.protocol.WeaviateProto.SearchReply parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply 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.weaviate.client.grpc.protocol.WeaviateProto.SearchReply parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply 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.weaviate.client.grpc.protocol.WeaviateProto.SearchReply 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 weaviategrpc.SearchReply} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.SearchReply) + io.weaviate.client.grpc.protocol.WeaviateProto.SearchReplyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_SearchReply_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_SearchReply_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply.class, io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + } else { + results_ = null; + resultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + took_ = 0F; + generativeGroupedResult_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_SearchReply_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply build() { + io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply result = new io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply result) { + if (resultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + results_ = java.util.Collections.unmodifiableList(results_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.results_ = results_; + } else { + result.results_ = resultsBuilder_.build(); + } + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.took_ = took_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.generativeGroupedResult_ = generativeGroupedResult_; + } + } + + @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.weaviate.client.grpc.protocol.WeaviateProto.SearchReply) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply.getDefaultInstance()) return this; + if (resultsBuilder_ == null) { + if (!other.results_.isEmpty()) { + if (results_.isEmpty()) { + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResultsIsMutable(); + results_.addAll(other.results_); + } + onChanged(); + } + } else { + if (!other.results_.isEmpty()) { + if (resultsBuilder_.isEmpty()) { + resultsBuilder_.dispose(); + resultsBuilder_ = null; + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultsFieldBuilder() : null; + } else { + resultsBuilder_.addAllMessages(other.results_); + } + } + } + if (other.getTook() != 0F) { + setTook(other.getTook()); + } + if (!other.getGenerativeGroupedResult().isEmpty()) { + generativeGroupedResult_ = other.generativeGroupedResult_; + bitField0_ |= 0x00000004; + 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: { + io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult m = + input.readMessage( + io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult.parser(), + extensionRegistry); + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(m); + } else { + resultsBuilder_.addMessage(m); + } + break; + } // case 10 + case 21: { + took_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 26: { + generativeGroupedResult_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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 results_ = + java.util.Collections.emptyList(); + private void ensureResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + results_ = new java.util.ArrayList(results_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult, io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.SearchResultOrBuilder> resultsBuilder_; + + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + public java.util.List getResultsList() { + if (resultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(results_); + } else { + return resultsBuilder_.getMessageList(); + } + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + public int getResultsCount() { + if (resultsBuilder_ == null) { + return results_.size(); + } else { + return resultsBuilder_.getCount(); + } + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult getResults(int index) { + if (resultsBuilder_ == null) { + return results_.get(index); + } else { + return resultsBuilder_.getMessage(index); + } + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + public Builder setResults( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.set(index, value); + onChanged(); + } else { + resultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + public Builder setResults( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.set(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + public Builder addResults(io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(value); + onChanged(); + } else { + resultsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + public Builder addResults( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(index, value); + onChanged(); + } else { + resultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + public Builder addResults( + io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + public Builder addResults( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + public Builder addAllResults( + java.lang.Iterable values) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, results_); + onChanged(); + } else { + resultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + public Builder clearResults() { + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resultsBuilder_.clear(); + } + return this; + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + public Builder removeResults(int index) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.remove(index); + onChanged(); + } else { + resultsBuilder_.remove(index); + } + return this; + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult.Builder getResultsBuilder( + int index) { + return getResultsFieldBuilder().getBuilder(index); + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.SearchResultOrBuilder getResultsOrBuilder( + int index) { + if (resultsBuilder_ == null) { + return results_.get(index); } else { + return resultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + public java.util.List + getResultsOrBuilderList() { + if (resultsBuilder_ != null) { + return resultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(results_); + } + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult.Builder addResultsBuilder() { + return getResultsFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult.Builder addResultsBuilder( + int index) { + return getResultsFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.SearchResult results = 1; + */ + public java.util.List + getResultsBuilderList() { + return getResultsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult, io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.SearchResultOrBuilder> + getResultsFieldBuilder() { + if (resultsBuilder_ == null) { + resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult, io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.SearchResultOrBuilder>( + results_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + results_ = null; + } + return resultsBuilder_; + } + + private float took_ ; + /** + * float took = 2; + * @return The took. + */ + @java.lang.Override + public float getTook() { + return took_; + } + /** + * float took = 2; + * @param value The took to set. + * @return This builder for chaining. + */ + public Builder setTook(float value) { + + took_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * float took = 2; + * @return This builder for chaining. + */ + public Builder clearTook() { + bitField0_ = (bitField0_ & ~0x00000002); + took_ = 0F; + onChanged(); + return this; + } + + private java.lang.Object generativeGroupedResult_ = ""; + /** + * string generative_grouped_result = 3; + * @return The generativeGroupedResult. + */ + public java.lang.String getGenerativeGroupedResult() { + java.lang.Object ref = generativeGroupedResult_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + generativeGroupedResult_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string generative_grouped_result = 3; + * @return The bytes for generativeGroupedResult. + */ + public com.google.protobuf.ByteString + getGenerativeGroupedResultBytes() { + java.lang.Object ref = generativeGroupedResult_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + generativeGroupedResult_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string generative_grouped_result = 3; + * @param value The generativeGroupedResult to set. + * @return This builder for chaining. + */ + public Builder setGenerativeGroupedResult( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + generativeGroupedResult_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string generative_grouped_result = 3; + * @return This builder for chaining. + */ + public Builder clearGenerativeGroupedResult() { + generativeGroupedResult_ = getDefaultInstance().getGenerativeGroupedResult(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string generative_grouped_result = 3; + * @param value The bytes for generativeGroupedResult to set. + * @return This builder for chaining. + */ + public Builder setGenerativeGroupedResultBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + generativeGroupedResult_ = value; + bitField0_ |= 0x00000004; + 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:weaviategrpc.SearchReply) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.SearchReply) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchReply getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchReply 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.weaviate.client.grpc.protocol.WeaviateProto.SearchReply getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SearchResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.SearchResult) + com.google.protobuf.MessageOrBuilder { + + /** + * .weaviategrpc.ResultProperties properties = 1; + * @return Whether the properties field is set. + */ + boolean hasProperties(); + /** + * .weaviategrpc.ResultProperties properties = 1; + * @return The properties. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties getProperties(); + /** + * .weaviategrpc.ResultProperties properties = 1; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.ResultPropertiesOrBuilder getPropertiesOrBuilder(); + + /** + * .weaviategrpc.ResultAdditionalProps additional_properties = 2; + * @return Whether the additionalProperties field is set. + */ + boolean hasAdditionalProperties(); + /** + * .weaviategrpc.ResultAdditionalProps additional_properties = 2; + * @return The additionalProperties. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps getAdditionalProperties(); + /** + * .weaviategrpc.ResultAdditionalProps additional_properties = 2; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalPropsOrBuilder getAdditionalPropertiesOrBuilder(); + } + /** + * Protobuf type {@code weaviategrpc.SearchResult} + */ + public static final class SearchResult extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.SearchResult) + SearchResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchResult.newBuilder() to construct. + private SearchResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SearchResult() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SearchResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_SearchResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_SearchResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult.class, io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult.Builder.class); + } + + private int bitField0_; + public static final int PROPERTIES_FIELD_NUMBER = 1; + private io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties properties_; + /** + * .weaviategrpc.ResultProperties properties = 1; + * @return Whether the properties field is set. + */ + @java.lang.Override + public boolean hasProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .weaviategrpc.ResultProperties properties = 1; + * @return The properties. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties getProperties() { + return properties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.getDefaultInstance() : properties_; + } + /** + * .weaviategrpc.ResultProperties properties = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultPropertiesOrBuilder getPropertiesOrBuilder() { + return properties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.getDefaultInstance() : properties_; + } + + public static final int ADDITIONAL_PROPERTIES_FIELD_NUMBER = 2; + private io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps additionalProperties_; + /** + * .weaviategrpc.ResultAdditionalProps additional_properties = 2; + * @return Whether the additionalProperties field is set. + */ + @java.lang.Override + public boolean hasAdditionalProperties() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .weaviategrpc.ResultAdditionalProps additional_properties = 2; + * @return The additionalProperties. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps getAdditionalProperties() { + return additionalProperties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.getDefaultInstance() : additionalProperties_; + } + /** + * .weaviategrpc.ResultAdditionalProps additional_properties = 2; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalPropsOrBuilder getAdditionalPropertiesOrBuilder() { + return additionalProperties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.getDefaultInstance() : additionalProperties_; + } + + 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, getProperties()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAdditionalProperties()); + } + 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, getProperties()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAdditionalProperties()); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.SearchResult)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult other = (io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult) obj; + + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties() + .equals(other.getProperties())) return false; + } + if (hasAdditionalProperties() != other.hasAdditionalProperties()) return false; + if (hasAdditionalProperties()) { + if (!getAdditionalProperties() + .equals(other.getAdditionalProperties())) 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 (hasProperties()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getProperties().hashCode(); + } + if (hasAdditionalProperties()) { + hash = (37 * hash) + ADDITIONAL_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalProperties().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult 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.weaviate.client.grpc.protocol.WeaviateProto.SearchResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult 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.weaviate.client.grpc.protocol.WeaviateProto.SearchResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult 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.weaviate.client.grpc.protocol.WeaviateProto.SearchResult 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 weaviategrpc.SearchResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.SearchResult) + io.weaviate.client.grpc.protocol.WeaviateProto.SearchResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_SearchResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_SearchResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult.class, io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPropertiesFieldBuilder(); + getAdditionalPropertiesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + additionalProperties_ = null; + if (additionalPropertiesBuilder_ != null) { + additionalPropertiesBuilder_.dispose(); + additionalPropertiesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_SearchResult_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult build() { + io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult result = new io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.properties_ = propertiesBuilder_ == null + ? properties_ + : propertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.additionalProperties_ = additionalPropertiesBuilder_ == null + ? additionalProperties_ + : additionalPropertiesBuilder_.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 io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult.getDefaultInstance()) return this; + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + if (other.hasAdditionalProperties()) { + mergeAdditionalProperties(other.getAdditionalProperties()); + } + 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( + getPropertiesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getAdditionalPropertiesFieldBuilder().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 io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties properties_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties, io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.ResultPropertiesOrBuilder> propertiesBuilder_; + /** + * .weaviategrpc.ResultProperties properties = 1; + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .weaviategrpc.ResultProperties properties = 1; + * @return The properties. + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.getDefaultInstance() : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + /** + * .weaviategrpc.ResultProperties properties = 1; + */ + public Builder setProperties(io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + } else { + propertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .weaviategrpc.ResultProperties properties = 1; + */ + public Builder setProperties( + io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.Builder builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .weaviategrpc.ResultProperties properties = 1; + */ + public Builder mergeProperties(io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties value) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + properties_ != null && + properties_ != io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.getDefaultInstance()) { + getPropertiesBuilder().mergeFrom(value); + } else { + properties_ = value; + } + } else { + propertiesBuilder_.mergeFrom(value); + } + if (properties_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .weaviategrpc.ResultProperties properties = 1; + */ + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000001); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .weaviategrpc.ResultProperties properties = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.Builder getPropertiesBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + /** + * .weaviategrpc.ResultProperties properties = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultPropertiesOrBuilder getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null ? + io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.getDefaultInstance() : properties_; + } + } + /** + * .weaviategrpc.ResultProperties properties = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties, io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.ResultPropertiesOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties, io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.ResultPropertiesOrBuilder>( + getProperties(), + getParentForChildren(), + isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + private io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps additionalProperties_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps, io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalPropsOrBuilder> additionalPropertiesBuilder_; + /** + * .weaviategrpc.ResultAdditionalProps additional_properties = 2; + * @return Whether the additionalProperties field is set. + */ + public boolean hasAdditionalProperties() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .weaviategrpc.ResultAdditionalProps additional_properties = 2; + * @return The additionalProperties. + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps getAdditionalProperties() { + if (additionalPropertiesBuilder_ == null) { + return additionalProperties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.getDefaultInstance() : additionalProperties_; + } else { + return additionalPropertiesBuilder_.getMessage(); + } + } + /** + * .weaviategrpc.ResultAdditionalProps additional_properties = 2; + */ + public Builder setAdditionalProperties(io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps value) { + if (additionalPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + additionalProperties_ = value; + } else { + additionalPropertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .weaviategrpc.ResultAdditionalProps additional_properties = 2; + */ + public Builder setAdditionalProperties( + io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.Builder builderForValue) { + if (additionalPropertiesBuilder_ == null) { + additionalProperties_ = builderForValue.build(); + } else { + additionalPropertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .weaviategrpc.ResultAdditionalProps additional_properties = 2; + */ + public Builder mergeAdditionalProperties(io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps value) { + if (additionalPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + additionalProperties_ != null && + additionalProperties_ != io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.getDefaultInstance()) { + getAdditionalPropertiesBuilder().mergeFrom(value); + } else { + additionalProperties_ = value; + } + } else { + additionalPropertiesBuilder_.mergeFrom(value); + } + if (additionalProperties_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .weaviategrpc.ResultAdditionalProps additional_properties = 2; + */ + public Builder clearAdditionalProperties() { + bitField0_ = (bitField0_ & ~0x00000002); + additionalProperties_ = null; + if (additionalPropertiesBuilder_ != null) { + additionalPropertiesBuilder_.dispose(); + additionalPropertiesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .weaviategrpc.ResultAdditionalProps additional_properties = 2; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.Builder getAdditionalPropertiesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAdditionalPropertiesFieldBuilder().getBuilder(); + } + /** + * .weaviategrpc.ResultAdditionalProps additional_properties = 2; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalPropsOrBuilder getAdditionalPropertiesOrBuilder() { + if (additionalPropertiesBuilder_ != null) { + return additionalPropertiesBuilder_.getMessageOrBuilder(); + } else { + return additionalProperties_ == null ? + io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.getDefaultInstance() : additionalProperties_; + } + } + /** + * .weaviategrpc.ResultAdditionalProps additional_properties = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps, io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalPropsOrBuilder> + getAdditionalPropertiesFieldBuilder() { + if (additionalPropertiesBuilder_ == null) { + additionalPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps, io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalPropsOrBuilder>( + getAdditionalProperties(), + getParentForChildren(), + isClean()); + additionalProperties_ = null; + } + return additionalPropertiesBuilder_; + } + @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:weaviategrpc.SearchResult) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.SearchResult) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchResult 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.weaviate.client.grpc.protocol.WeaviateProto.SearchResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResultAdditionalPropsOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.ResultAdditionalProps) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 2; + * @return A list containing the vector. + */ + java.util.List getVectorList(); + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 2; + * @return The count of vector. + */ + int getVectorCount(); + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 2; + * @param index The index of the element to return. + * @return The vector at the given index. + */ + float getVector(int index); + + /** + * int64 creation_time_unix = 3; + * @return The creationTimeUnix. + */ + long getCreationTimeUnix(); + + /** + * bool creation_time_unix_present = 4; + * @return The creationTimeUnixPresent. + */ + boolean getCreationTimeUnixPresent(); + + /** + * int64 last_update_time_unix = 5; + * @return The lastUpdateTimeUnix. + */ + long getLastUpdateTimeUnix(); + + /** + * bool last_update_time_unix_present = 6; + * @return The lastUpdateTimeUnixPresent. + */ + boolean getLastUpdateTimeUnixPresent(); + + /** + * float distance = 7; + * @return The distance. + */ + float getDistance(); + + /** + * bool distance_present = 8; + * @return The distancePresent. + */ + boolean getDistancePresent(); + + /** + * float certainty = 9; + * @return The certainty. + */ + float getCertainty(); + + /** + * bool certainty_present = 10; + * @return The certaintyPresent. + */ + boolean getCertaintyPresent(); + + /** + * float score = 11; + * @return The score. + */ + float getScore(); + + /** + * bool score_present = 12; + * @return The scorePresent. + */ + boolean getScorePresent(); + + /** + * string explain_score = 13; + * @return The explainScore. + */ + java.lang.String getExplainScore(); + /** + * string explain_score = 13; + * @return The bytes for explainScore. + */ + com.google.protobuf.ByteString + getExplainScoreBytes(); + + /** + * bool explain_score_present = 14; + * @return The explainScorePresent. + */ + boolean getExplainScorePresent(); + + /** + * optional bool is_consistent = 15; + * @return Whether the isConsistent field is set. + */ + boolean hasIsConsistent(); + /** + * optional bool is_consistent = 15; + * @return The isConsistent. + */ + boolean getIsConsistent(); + + /** + * string generative = 16; + * @return The generative. + */ + java.lang.String getGenerative(); + /** + * string generative = 16; + * @return The bytes for generative. + */ + com.google.protobuf.ByteString + getGenerativeBytes(); + + /** + * bool generative_present = 17; + * @return The generativePresent. + */ + boolean getGenerativePresent(); + } + /** + * Protobuf type {@code weaviategrpc.ResultAdditionalProps} + */ + public static final class ResultAdditionalProps extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.ResultAdditionalProps) + ResultAdditionalPropsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResultAdditionalProps.newBuilder() to construct. + private ResultAdditionalProps(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResultAdditionalProps() { + id_ = ""; + vector_ = emptyFloatList(); + explainScore_ = ""; + generative_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ResultAdditionalProps(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_ResultAdditionalProps_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_ResultAdditionalProps_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.class, io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * string id = 1; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VECTOR_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.FloatList vector_ = + emptyFloatList(); + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 2; + * @return A list containing the vector. + */ + @java.lang.Override + public java.util.List + getVectorList() { + return vector_; + } + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 2; + * @return The count of vector. + */ + public int getVectorCount() { + return vector_.size(); + } + /** + *
+     * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+     * 
+ * + * repeated float vector = 2; + * @param index The index of the element to return. + * @return The vector at the given index. + */ + public float getVector(int index) { + return vector_.getFloat(index); + } + private int vectorMemoizedSerializedSize = -1; + + public static final int CREATION_TIME_UNIX_FIELD_NUMBER = 3; + private long creationTimeUnix_ = 0L; + /** + * int64 creation_time_unix = 3; + * @return The creationTimeUnix. + */ + @java.lang.Override + public long getCreationTimeUnix() { + return creationTimeUnix_; + } + + public static final int CREATION_TIME_UNIX_PRESENT_FIELD_NUMBER = 4; + private boolean creationTimeUnixPresent_ = false; + /** + * bool creation_time_unix_present = 4; + * @return The creationTimeUnixPresent. + */ + @java.lang.Override + public boolean getCreationTimeUnixPresent() { + return creationTimeUnixPresent_; + } + + public static final int LAST_UPDATE_TIME_UNIX_FIELD_NUMBER = 5; + private long lastUpdateTimeUnix_ = 0L; + /** + * int64 last_update_time_unix = 5; + * @return The lastUpdateTimeUnix. + */ + @java.lang.Override + public long getLastUpdateTimeUnix() { + return lastUpdateTimeUnix_; + } + + public static final int LAST_UPDATE_TIME_UNIX_PRESENT_FIELD_NUMBER = 6; + private boolean lastUpdateTimeUnixPresent_ = false; + /** + * bool last_update_time_unix_present = 6; + * @return The lastUpdateTimeUnixPresent. + */ + @java.lang.Override + public boolean getLastUpdateTimeUnixPresent() { + return lastUpdateTimeUnixPresent_; + } + + public static final int DISTANCE_FIELD_NUMBER = 7; + private float distance_ = 0F; + /** + * float distance = 7; + * @return The distance. + */ + @java.lang.Override + public float getDistance() { + return distance_; + } + + public static final int DISTANCE_PRESENT_FIELD_NUMBER = 8; + private boolean distancePresent_ = false; + /** + * bool distance_present = 8; + * @return The distancePresent. + */ + @java.lang.Override + public boolean getDistancePresent() { + return distancePresent_; + } + + public static final int CERTAINTY_FIELD_NUMBER = 9; + private float certainty_ = 0F; + /** + * float certainty = 9; + * @return The certainty. + */ + @java.lang.Override + public float getCertainty() { + return certainty_; + } + + public static final int CERTAINTY_PRESENT_FIELD_NUMBER = 10; + private boolean certaintyPresent_ = false; + /** + * bool certainty_present = 10; + * @return The certaintyPresent. + */ + @java.lang.Override + public boolean getCertaintyPresent() { + return certaintyPresent_; + } + + public static final int SCORE_FIELD_NUMBER = 11; + private float score_ = 0F; + /** + * float score = 11; + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + public static final int SCORE_PRESENT_FIELD_NUMBER = 12; + private boolean scorePresent_ = false; + /** + * bool score_present = 12; + * @return The scorePresent. + */ + @java.lang.Override + public boolean getScorePresent() { + return scorePresent_; + } + + public static final int EXPLAIN_SCORE_FIELD_NUMBER = 13; + @SuppressWarnings("serial") + private volatile java.lang.Object explainScore_ = ""; + /** + * string explain_score = 13; + * @return The explainScore. + */ + @java.lang.Override + public java.lang.String getExplainScore() { + java.lang.Object ref = explainScore_; + 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(); + explainScore_ = s; + return s; + } + } + /** + * string explain_score = 13; + * @return The bytes for explainScore. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getExplainScoreBytes() { + java.lang.Object ref = explainScore_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + explainScore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPLAIN_SCORE_PRESENT_FIELD_NUMBER = 14; + private boolean explainScorePresent_ = false; + /** + * bool explain_score_present = 14; + * @return The explainScorePresent. + */ + @java.lang.Override + public boolean getExplainScorePresent() { + return explainScorePresent_; + } + + public static final int IS_CONSISTENT_FIELD_NUMBER = 15; + private boolean isConsistent_ = false; + /** + * optional bool is_consistent = 15; + * @return Whether the isConsistent field is set. + */ + @java.lang.Override + public boolean hasIsConsistent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional bool is_consistent = 15; + * @return The isConsistent. + */ + @java.lang.Override + public boolean getIsConsistent() { + return isConsistent_; + } + + public static final int GENERATIVE_FIELD_NUMBER = 16; + @SuppressWarnings("serial") + private volatile java.lang.Object generative_ = ""; + /** + * string generative = 16; + * @return The generative. + */ + @java.lang.Override + public java.lang.String getGenerative() { + java.lang.Object ref = generative_; + 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(); + generative_ = s; + return s; + } + } + /** + * string generative = 16; + * @return The bytes for generative. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGenerativeBytes() { + java.lang.Object ref = generative_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + generative_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GENERATIVE_PRESENT_FIELD_NUMBER = 17; + private boolean generativePresent_ = false; + /** + * bool generative_present = 17; + * @return The generativePresent. + */ + @java.lang.Override + public boolean getGenerativePresent() { + return generativePresent_; + } + + 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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (getVectorList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(vectorMemoizedSerializedSize); + } + for (int i = 0; i < vector_.size(); i++) { + output.writeFloatNoTag(vector_.getFloat(i)); + } + if (creationTimeUnix_ != 0L) { + output.writeInt64(3, creationTimeUnix_); + } + if (creationTimeUnixPresent_ != false) { + output.writeBool(4, creationTimeUnixPresent_); + } + if (lastUpdateTimeUnix_ != 0L) { + output.writeInt64(5, lastUpdateTimeUnix_); + } + if (lastUpdateTimeUnixPresent_ != false) { + output.writeBool(6, lastUpdateTimeUnixPresent_); + } + if (java.lang.Float.floatToRawIntBits(distance_) != 0) { + output.writeFloat(7, distance_); + } + if (distancePresent_ != false) { + output.writeBool(8, distancePresent_); + } + if (java.lang.Float.floatToRawIntBits(certainty_) != 0) { + output.writeFloat(9, certainty_); + } + if (certaintyPresent_ != false) { + output.writeBool(10, certaintyPresent_); + } + if (java.lang.Float.floatToRawIntBits(score_) != 0) { + output.writeFloat(11, score_); + } + if (scorePresent_ != false) { + output.writeBool(12, scorePresent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(explainScore_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, explainScore_); + } + if (explainScorePresent_ != false) { + output.writeBool(14, explainScorePresent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(15, isConsistent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(generative_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, generative_); + } + if (generativePresent_ != false) { + output.writeBool(17, generativePresent_); + } + 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(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + { + int dataSize = 0; + dataSize = 4 * getVectorList().size(); + size += dataSize; + if (!getVectorList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + vectorMemoizedSerializedSize = dataSize; + } + if (creationTimeUnix_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, creationTimeUnix_); + } + if (creationTimeUnixPresent_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, creationTimeUnixPresent_); + } + if (lastUpdateTimeUnix_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, lastUpdateTimeUnix_); + } + if (lastUpdateTimeUnixPresent_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, lastUpdateTimeUnixPresent_); + } + if (java.lang.Float.floatToRawIntBits(distance_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(7, distance_); + } + if (distancePresent_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, distancePresent_); + } + if (java.lang.Float.floatToRawIntBits(certainty_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(9, certainty_); + } + if (certaintyPresent_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, certaintyPresent_); + } + if (java.lang.Float.floatToRawIntBits(score_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(11, score_); + } + if (scorePresent_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, scorePresent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(explainScore_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, explainScore_); + } + if (explainScorePresent_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, explainScorePresent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, isConsistent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(generative_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, generative_); + } + if (generativePresent_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(17, generativePresent_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps other = (io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getVectorList() + .equals(other.getVectorList())) return false; + if (getCreationTimeUnix() + != other.getCreationTimeUnix()) return false; + if (getCreationTimeUnixPresent() + != other.getCreationTimeUnixPresent()) return false; + if (getLastUpdateTimeUnix() + != other.getLastUpdateTimeUnix()) return false; + if (getLastUpdateTimeUnixPresent() + != other.getLastUpdateTimeUnixPresent()) return false; + if (java.lang.Float.floatToIntBits(getDistance()) + != java.lang.Float.floatToIntBits( + other.getDistance())) return false; + if (getDistancePresent() + != other.getDistancePresent()) return false; + if (java.lang.Float.floatToIntBits(getCertainty()) + != java.lang.Float.floatToIntBits( + other.getCertainty())) return false; + if (getCertaintyPresent() + != other.getCertaintyPresent()) return false; + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits( + other.getScore())) return false; + if (getScorePresent() + != other.getScorePresent()) return false; + if (!getExplainScore() + .equals(other.getExplainScore())) return false; + if (getExplainScorePresent() + != other.getExplainScorePresent()) return false; + if (hasIsConsistent() != other.hasIsConsistent()) return false; + if (hasIsConsistent()) { + if (getIsConsistent() + != other.getIsConsistent()) return false; + } + if (!getGenerative() + .equals(other.getGenerative())) return false; + if (getGenerativePresent() + != other.getGenerativePresent()) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (getVectorCount() > 0) { + hash = (37 * hash) + VECTOR_FIELD_NUMBER; + hash = (53 * hash) + getVectorList().hashCode(); + } + hash = (37 * hash) + CREATION_TIME_UNIX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCreationTimeUnix()); + hash = (37 * hash) + CREATION_TIME_UNIX_PRESENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCreationTimeUnixPresent()); + hash = (37 * hash) + LAST_UPDATE_TIME_UNIX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLastUpdateTimeUnix()); + hash = (37 * hash) + LAST_UPDATE_TIME_UNIX_PRESENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getLastUpdateTimeUnixPresent()); + hash = (37 * hash) + DISTANCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getDistance()); + hash = (37 * hash) + DISTANCE_PRESENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDistancePresent()); + hash = (37 * hash) + CERTAINTY_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getCertainty()); + hash = (37 * hash) + CERTAINTY_PRESENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCertaintyPresent()); + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); + hash = (37 * hash) + SCORE_PRESENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getScorePresent()); + hash = (37 * hash) + EXPLAIN_SCORE_FIELD_NUMBER; + hash = (53 * hash) + getExplainScore().hashCode(); + hash = (37 * hash) + EXPLAIN_SCORE_PRESENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getExplainScorePresent()); + if (hasIsConsistent()) { + hash = (37 * hash) + IS_CONSISTENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsConsistent()); + } + hash = (37 * hash) + GENERATIVE_FIELD_NUMBER; + hash = (53 * hash) + getGenerative().hashCode(); + hash = (37 * hash) + GENERATIVE_PRESENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getGenerativePresent()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps 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.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps 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.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps 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.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps 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 weaviategrpc.ResultAdditionalProps} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.ResultAdditionalProps) + io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalPropsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_ResultAdditionalProps_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_ResultAdditionalProps_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.class, io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + vector_ = emptyFloatList(); + creationTimeUnix_ = 0L; + creationTimeUnixPresent_ = false; + lastUpdateTimeUnix_ = 0L; + lastUpdateTimeUnixPresent_ = false; + distance_ = 0F; + distancePresent_ = false; + certainty_ = 0F; + certaintyPresent_ = false; + score_ = 0F; + scorePresent_ = false; + explainScore_ = ""; + explainScorePresent_ = false; + isConsistent_ = false; + generative_ = ""; + generativePresent_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_ResultAdditionalProps_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps build() { + io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps result = new io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + vector_.makeImmutable(); + result.vector_ = vector_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.creationTimeUnix_ = creationTimeUnix_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.creationTimeUnixPresent_ = creationTimeUnixPresent_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.lastUpdateTimeUnix_ = lastUpdateTimeUnix_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.lastUpdateTimeUnixPresent_ = lastUpdateTimeUnixPresent_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.distance_ = distance_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.distancePresent_ = distancePresent_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.certainty_ = certainty_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.certaintyPresent_ = certaintyPresent_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.score_ = score_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.scorePresent_ = scorePresent_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.explainScore_ = explainScore_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.explainScorePresent_ = explainScorePresent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00004000) != 0)) { + result.isConsistent_ = isConsistent_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.generative_ = generative_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.generativePresent_ = generativePresent_; + } + 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.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.vector_.isEmpty()) { + if (vector_.isEmpty()) { + vector_ = other.vector_; + vector_.makeImmutable(); + bitField0_ |= 0x00000002; + } else { + ensureVectorIsMutable(); + vector_.addAll(other.vector_); + } + onChanged(); + } + if (other.getCreationTimeUnix() != 0L) { + setCreationTimeUnix(other.getCreationTimeUnix()); + } + if (other.getCreationTimeUnixPresent() != false) { + setCreationTimeUnixPresent(other.getCreationTimeUnixPresent()); + } + if (other.getLastUpdateTimeUnix() != 0L) { + setLastUpdateTimeUnix(other.getLastUpdateTimeUnix()); + } + if (other.getLastUpdateTimeUnixPresent() != false) { + setLastUpdateTimeUnixPresent(other.getLastUpdateTimeUnixPresent()); + } + if (other.getDistance() != 0F) { + setDistance(other.getDistance()); + } + if (other.getDistancePresent() != false) { + setDistancePresent(other.getDistancePresent()); + } + if (other.getCertainty() != 0F) { + setCertainty(other.getCertainty()); + } + if (other.getCertaintyPresent() != false) { + setCertaintyPresent(other.getCertaintyPresent()); + } + if (other.getScore() != 0F) { + setScore(other.getScore()); + } + if (other.getScorePresent() != false) { + setScorePresent(other.getScorePresent()); + } + if (!other.getExplainScore().isEmpty()) { + explainScore_ = other.explainScore_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.getExplainScorePresent() != false) { + setExplainScorePresent(other.getExplainScorePresent()); + } + if (other.hasIsConsistent()) { + setIsConsistent(other.getIsConsistent()); + } + if (!other.getGenerative().isEmpty()) { + generative_ = other.generative_; + bitField0_ |= 0x00008000; + onChanged(); + } + if (other.getGenerativePresent() != false) { + setGenerativePresent(other.getGenerativePresent()); + } + 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: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + float v = input.readFloat(); + ensureVectorIsMutable(); + vector_.addFloat(v); + break; + } // case 21 + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + int alloc = length > 4096 ? 4096 : length; + ensureVectorIsMutable(alloc / 4); + while (input.getBytesUntilLimit() > 0) { + vector_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } // case 18 + case 24: { + creationTimeUnix_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + creationTimeUnixPresent_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + lastUpdateTimeUnix_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + lastUpdateTimeUnixPresent_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 61: { + distance_ = input.readFloat(); + bitField0_ |= 0x00000040; + break; + } // case 61 + case 64: { + distancePresent_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 77: { + certainty_ = input.readFloat(); + bitField0_ |= 0x00000100; + break; + } // case 77 + case 80: { + certaintyPresent_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 93: { + score_ = input.readFloat(); + bitField0_ |= 0x00000400; + break; + } // case 93 + case 96: { + scorePresent_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 106: { + explainScore_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 112: { + explainScorePresent_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 112 + case 120: { + isConsistent_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 120 + case 130: { + generative_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 136: { + generativePresent_ = input.readBool(); + bitField0_ |= 0x00010000; + break; + } // case 136 + 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 id_ = ""; + /** + * string id = 1; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.FloatList vector_ = emptyFloatList(); + private void ensureVectorIsMutable() { + if (!vector_.isModifiable()) { + vector_ = makeMutableCopy(vector_); + } + bitField0_ |= 0x00000002; + } + private void ensureVectorIsMutable(int capacity) { + if (!vector_.isModifiable()) { + vector_ = makeMutableCopy(vector_, capacity); + } + bitField0_ |= 0x00000002; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 2; + * @return A list containing the vector. + */ + public java.util.List + getVectorList() { + vector_.makeImmutable(); + return vector_; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 2; + * @return The count of vector. + */ + public int getVectorCount() { + return vector_.size(); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 2; + * @param index The index of the element to return. + * @return The vector at the given index. + */ + public float getVector(int index) { + return vector_.getFloat(index); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 2; + * @param index The index to set the value at. + * @param value The vector to set. + * @return This builder for chaining. + */ + public Builder setVector( + int index, float value) { + + ensureVectorIsMutable(); + vector_.setFloat(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 2; + * @param value The vector to add. + * @return This builder for chaining. + */ + public Builder addVector(float value) { + + ensureVectorIsMutable(); + vector_.addFloat(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 2; + * @param values The vector to add. + * @return This builder for chaining. + */ + public Builder addAllVector( + java.lang.Iterable values) { + ensureVectorIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vector_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated float vector = 2; + * @return This builder for chaining. + */ + public Builder clearVector() { + vector_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + private long creationTimeUnix_ ; + /** + * int64 creation_time_unix = 3; + * @return The creationTimeUnix. + */ + @java.lang.Override + public long getCreationTimeUnix() { + return creationTimeUnix_; + } + /** + * int64 creation_time_unix = 3; + * @param value The creationTimeUnix to set. + * @return This builder for chaining. + */ + public Builder setCreationTimeUnix(long value) { + + creationTimeUnix_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * int64 creation_time_unix = 3; + * @return This builder for chaining. + */ + public Builder clearCreationTimeUnix() { + bitField0_ = (bitField0_ & ~0x00000004); + creationTimeUnix_ = 0L; + onChanged(); + return this; + } + + private boolean creationTimeUnixPresent_ ; + /** + * bool creation_time_unix_present = 4; + * @return The creationTimeUnixPresent. + */ + @java.lang.Override + public boolean getCreationTimeUnixPresent() { + return creationTimeUnixPresent_; + } + /** + * bool creation_time_unix_present = 4; + * @param value The creationTimeUnixPresent to set. + * @return This builder for chaining. + */ + public Builder setCreationTimeUnixPresent(boolean value) { + + creationTimeUnixPresent_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * bool creation_time_unix_present = 4; + * @return This builder for chaining. + */ + public Builder clearCreationTimeUnixPresent() { + bitField0_ = (bitField0_ & ~0x00000008); + creationTimeUnixPresent_ = false; + onChanged(); + return this; + } + + private long lastUpdateTimeUnix_ ; + /** + * int64 last_update_time_unix = 5; + * @return The lastUpdateTimeUnix. + */ + @java.lang.Override + public long getLastUpdateTimeUnix() { + return lastUpdateTimeUnix_; + } + /** + * int64 last_update_time_unix = 5; + * @param value The lastUpdateTimeUnix to set. + * @return This builder for chaining. + */ + public Builder setLastUpdateTimeUnix(long value) { + + lastUpdateTimeUnix_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * int64 last_update_time_unix = 5; + * @return This builder for chaining. + */ + public Builder clearLastUpdateTimeUnix() { + bitField0_ = (bitField0_ & ~0x00000010); + lastUpdateTimeUnix_ = 0L; + onChanged(); + return this; + } + + private boolean lastUpdateTimeUnixPresent_ ; + /** + * bool last_update_time_unix_present = 6; + * @return The lastUpdateTimeUnixPresent. + */ + @java.lang.Override + public boolean getLastUpdateTimeUnixPresent() { + return lastUpdateTimeUnixPresent_; + } + /** + * bool last_update_time_unix_present = 6; + * @param value The lastUpdateTimeUnixPresent to set. + * @return This builder for chaining. + */ + public Builder setLastUpdateTimeUnixPresent(boolean value) { + + lastUpdateTimeUnixPresent_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * bool last_update_time_unix_present = 6; + * @return This builder for chaining. + */ + public Builder clearLastUpdateTimeUnixPresent() { + bitField0_ = (bitField0_ & ~0x00000020); + lastUpdateTimeUnixPresent_ = false; + onChanged(); + return this; + } + + private float distance_ ; + /** + * float distance = 7; + * @return The distance. + */ + @java.lang.Override + public float getDistance() { + return distance_; + } + /** + * float distance = 7; + * @param value The distance to set. + * @return This builder for chaining. + */ + public Builder setDistance(float value) { + + distance_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * float distance = 7; + * @return This builder for chaining. + */ + public Builder clearDistance() { + bitField0_ = (bitField0_ & ~0x00000040); + distance_ = 0F; + onChanged(); + return this; + } + + private boolean distancePresent_ ; + /** + * bool distance_present = 8; + * @return The distancePresent. + */ + @java.lang.Override + public boolean getDistancePresent() { + return distancePresent_; + } + /** + * bool distance_present = 8; + * @param value The distancePresent to set. + * @return This builder for chaining. + */ + public Builder setDistancePresent(boolean value) { + + distancePresent_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * bool distance_present = 8; + * @return This builder for chaining. + */ + public Builder clearDistancePresent() { + bitField0_ = (bitField0_ & ~0x00000080); + distancePresent_ = false; + onChanged(); + return this; + } + + private float certainty_ ; + /** + * float certainty = 9; + * @return The certainty. + */ + @java.lang.Override + public float getCertainty() { + return certainty_; + } + /** + * float certainty = 9; + * @param value The certainty to set. + * @return This builder for chaining. + */ + public Builder setCertainty(float value) { + + certainty_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * float certainty = 9; + * @return This builder for chaining. + */ + public Builder clearCertainty() { + bitField0_ = (bitField0_ & ~0x00000100); + certainty_ = 0F; + onChanged(); + return this; + } + + private boolean certaintyPresent_ ; + /** + * bool certainty_present = 10; + * @return The certaintyPresent. + */ + @java.lang.Override + public boolean getCertaintyPresent() { + return certaintyPresent_; + } + /** + * bool certainty_present = 10; + * @param value The certaintyPresent to set. + * @return This builder for chaining. + */ + public Builder setCertaintyPresent(boolean value) { + + certaintyPresent_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * bool certainty_present = 10; + * @return This builder for chaining. + */ + public Builder clearCertaintyPresent() { + bitField0_ = (bitField0_ & ~0x00000200); + certaintyPresent_ = false; + onChanged(); + return this; + } + + private float score_ ; + /** + * float score = 11; + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + /** + * float score = 11; + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(float value) { + + score_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * float score = 11; + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000400); + score_ = 0F; + onChanged(); + return this; + } + + private boolean scorePresent_ ; + /** + * bool score_present = 12; + * @return The scorePresent. + */ + @java.lang.Override + public boolean getScorePresent() { + return scorePresent_; + } + /** + * bool score_present = 12; + * @param value The scorePresent to set. + * @return This builder for chaining. + */ + public Builder setScorePresent(boolean value) { + + scorePresent_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * bool score_present = 12; + * @return This builder for chaining. + */ + public Builder clearScorePresent() { + bitField0_ = (bitField0_ & ~0x00000800); + scorePresent_ = false; + onChanged(); + return this; + } + + private java.lang.Object explainScore_ = ""; + /** + * string explain_score = 13; + * @return The explainScore. + */ + public java.lang.String getExplainScore() { + java.lang.Object ref = explainScore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + explainScore_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string explain_score = 13; + * @return The bytes for explainScore. + */ + public com.google.protobuf.ByteString + getExplainScoreBytes() { + java.lang.Object ref = explainScore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + explainScore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string explain_score = 13; + * @param value The explainScore to set. + * @return This builder for chaining. + */ + public Builder setExplainScore( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + explainScore_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * string explain_score = 13; + * @return This builder for chaining. + */ + public Builder clearExplainScore() { + explainScore_ = getDefaultInstance().getExplainScore(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + * string explain_score = 13; + * @param value The bytes for explainScore to set. + * @return This builder for chaining. + */ + public Builder setExplainScoreBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + explainScore_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private boolean explainScorePresent_ ; + /** + * bool explain_score_present = 14; + * @return The explainScorePresent. + */ + @java.lang.Override + public boolean getExplainScorePresent() { + return explainScorePresent_; + } + /** + * bool explain_score_present = 14; + * @param value The explainScorePresent to set. + * @return This builder for chaining. + */ + public Builder setExplainScorePresent(boolean value) { + + explainScorePresent_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * bool explain_score_present = 14; + * @return This builder for chaining. + */ + public Builder clearExplainScorePresent() { + bitField0_ = (bitField0_ & ~0x00002000); + explainScorePresent_ = false; + onChanged(); + return this; + } + + private boolean isConsistent_ ; + /** + * optional bool is_consistent = 15; + * @return Whether the isConsistent field is set. + */ + @java.lang.Override + public boolean hasIsConsistent() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * optional bool is_consistent = 15; + * @return The isConsistent. + */ + @java.lang.Override + public boolean getIsConsistent() { + return isConsistent_; + } + /** + * optional bool is_consistent = 15; + * @param value The isConsistent to set. + * @return This builder for chaining. + */ + public Builder setIsConsistent(boolean value) { + + isConsistent_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * optional bool is_consistent = 15; + * @return This builder for chaining. + */ + public Builder clearIsConsistent() { + bitField0_ = (bitField0_ & ~0x00004000); + isConsistent_ = false; + onChanged(); + return this; + } + + private java.lang.Object generative_ = ""; + /** + * string generative = 16; + * @return The generative. + */ + public java.lang.String getGenerative() { + java.lang.Object ref = generative_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + generative_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string generative = 16; + * @return The bytes for generative. + */ + public com.google.protobuf.ByteString + getGenerativeBytes() { + java.lang.Object ref = generative_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + generative_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string generative = 16; + * @param value The generative to set. + * @return This builder for chaining. + */ + public Builder setGenerative( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + generative_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * string generative = 16; + * @return This builder for chaining. + */ + public Builder clearGenerative() { + generative_ = getDefaultInstance().getGenerative(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + /** + * string generative = 16; + * @param value The bytes for generative to set. + * @return This builder for chaining. + */ + public Builder setGenerativeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + generative_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private boolean generativePresent_ ; + /** + * bool generative_present = 17; + * @return The generativePresent. + */ + @java.lang.Override + public boolean getGenerativePresent() { + return generativePresent_; + } + /** + * bool generative_present = 17; + * @param value The generativePresent to set. + * @return This builder for chaining. + */ + public Builder setGenerativePresent(boolean value) { + + generativePresent_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * bool generative_present = 17; + * @return This builder for chaining. + */ + public Builder clearGenerativePresent() { + bitField0_ = (bitField0_ & ~0x00010000); + generativePresent_ = false; + 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:weaviategrpc.ResultAdditionalProps) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.ResultAdditionalProps) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResultAdditionalProps 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.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NumberArrayPropertiesOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.NumberArrayProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated double values = 1; + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * repeated double values = 1; + * @return The count of values. + */ + int getValuesCount(); + /** + * repeated double values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + double getValues(int index); + + /** + * string prop_name = 2; + * @return The propName. + */ + java.lang.String getPropName(); + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + com.google.protobuf.ByteString + getPropNameBytes(); + } + /** + * Protobuf type {@code weaviategrpc.NumberArrayProperties} + */ + public static final class NumberArrayProperties extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.NumberArrayProperties) + NumberArrayPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use NumberArrayProperties.newBuilder() to construct. + private NumberArrayProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NumberArrayProperties() { + values_ = emptyDoubleList(); + propName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NumberArrayProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NumberArrayProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NumberArrayProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.class, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.DoubleList values_ = + emptyDoubleList(); + /** + * repeated double values = 1; + * @return A list containing the values. + */ + @java.lang.Override + public java.util.List + getValuesList() { + return values_; + } + /** + * repeated double values = 1; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated double values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + public double getValues(int index) { + return values_.getDouble(index); + } + private int valuesMemoizedSerializedSize = -1; + + public static final int PROP_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object propName_ = ""; + /** + * string prop_name = 2; + * @return The propName. + */ + @java.lang.Override + public java.lang.String getPropName() { + java.lang.Object ref = propName_; + 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(); + propName_ = s; + return s; + } + } + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPropNameBytes() { + java.lang.Object ref = propName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + propName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + getSerializedSize(); + if (getValuesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(valuesMemoizedSerializedSize); + } + for (int i = 0; i < values_.size(); i++) { + output.writeDoubleNoTag(values_.getDouble(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, propName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + dataSize = 8 * getValuesList().size(); + size += dataSize; + if (!getValuesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + valuesMemoizedSerializedSize = dataSize; + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, propName_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties other = (io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties) obj; + + if (!getValuesList() + .equals(other.getValuesList())) return false; + if (!getPropName() + .equals(other.getPropName())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (37 * hash) + PROP_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPropName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties 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.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties 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.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties 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.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties 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 weaviategrpc.NumberArrayProperties} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.NumberArrayProperties) + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NumberArrayProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NumberArrayProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.class, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = emptyDoubleList(); + propName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NumberArrayProperties_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties build() { + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties result = new io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.propName_ = propName_; + } + } + + @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.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + values_.makeImmutable(); + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (!other.getPropName().isEmpty()) { + propName_ = other.propName_; + bitField0_ |= 0x00000002; + 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 9: { + double v = input.readDouble(); + ensureValuesIsMutable(); + values_.addDouble(v); + break; + } // case 9 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + int alloc = length > 4096 ? 4096 : length; + ensureValuesIsMutable(alloc / 8); + while (input.getBytesUntilLimit() > 0) { + values_.addDouble(input.readDouble()); + } + input.popLimit(limit); + break; + } // case 10 + case 18: { + propName_ = input.readStringRequireUtf8(); + 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.google.protobuf.Internal.DoubleList values_ = emptyDoubleList(); + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = makeMutableCopy(values_); + } + bitField0_ |= 0x00000001; + } + private void ensureValuesIsMutable(int capacity) { + if (!values_.isModifiable()) { + values_ = makeMutableCopy(values_, capacity); + } + bitField0_ |= 0x00000001; + } + /** + * repeated double values = 1; + * @return A list containing the values. + */ + public java.util.List + getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * repeated double values = 1; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated double values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + public double getValues(int index) { + return values_.getDouble(index); + } + /** + * repeated double values = 1; + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues( + int index, double value) { + + ensureValuesIsMutable(); + values_.setDouble(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated double values = 1; + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(double value) { + + ensureValuesIsMutable(); + values_.addDouble(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated double values = 1; + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues( + java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated double values = 1; + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = emptyDoubleList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private java.lang.Object propName_ = ""; + /** + * string prop_name = 2; + * @return The propName. + */ + public java.lang.String getPropName() { + java.lang.Object ref = propName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + propName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + public com.google.protobuf.ByteString + getPropNameBytes() { + java.lang.Object ref = propName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + propName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string prop_name = 2; + * @param value The propName to set. + * @return This builder for chaining. + */ + public Builder setPropName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + propName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string prop_name = 2; + * @return This builder for chaining. + */ + public Builder clearPropName() { + propName_ = getDefaultInstance().getPropName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string prop_name = 2; + * @param value The bytes for propName to set. + * @return This builder for chaining. + */ + public Builder setPropNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + propName_ = value; + bitField0_ |= 0x00000002; + 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:weaviategrpc.NumberArrayProperties) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.NumberArrayProperties) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NumberArrayProperties 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.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IntArrayPropertiesOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.IntArrayProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated int64 values = 1; + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * repeated int64 values = 1; + * @return The count of values. + */ + int getValuesCount(); + /** + * repeated int64 values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + long getValues(int index); + + /** + * string prop_name = 2; + * @return The propName. + */ + java.lang.String getPropName(); + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + com.google.protobuf.ByteString + getPropNameBytes(); + } + /** + * Protobuf type {@code weaviategrpc.IntArrayProperties} + */ + public static final class IntArrayProperties extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.IntArrayProperties) + IntArrayPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use IntArrayProperties.newBuilder() to construct. + private IntArrayProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IntArrayProperties() { + values_ = emptyLongList(); + propName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new IntArrayProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_IntArrayProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_IntArrayProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.class, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.LongList values_ = + emptyLongList(); + /** + * repeated int64 values = 1; + * @return A list containing the values. + */ + @java.lang.Override + public java.util.List + getValuesList() { + return values_; + } + /** + * repeated int64 values = 1; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated int64 values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + public long getValues(int index) { + return values_.getLong(index); + } + private int valuesMemoizedSerializedSize = -1; + + public static final int PROP_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object propName_ = ""; + /** + * string prop_name = 2; + * @return The propName. + */ + @java.lang.Override + public java.lang.String getPropName() { + java.lang.Object ref = propName_; + 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(); + propName_ = s; + return s; + } + } + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPropNameBytes() { + java.lang.Object ref = propName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + propName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + getSerializedSize(); + if (getValuesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(valuesMemoizedSerializedSize); + } + for (int i = 0; i < values_.size(); i++) { + output.writeInt64NoTag(values_.getLong(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, propName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(values_.getLong(i)); + } + size += dataSize; + if (!getValuesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + valuesMemoizedSerializedSize = dataSize; + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, propName_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties other = (io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties) obj; + + if (!getValuesList() + .equals(other.getValuesList())) return false; + if (!getPropName() + .equals(other.getPropName())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (37 * hash) + PROP_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPropName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties 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.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties 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.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties 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.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties 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 weaviategrpc.IntArrayProperties} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.IntArrayProperties) + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_IntArrayProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_IntArrayProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.class, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = emptyLongList(); + propName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_IntArrayProperties_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties build() { + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties result = new io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.propName_ = propName_; + } + } + + @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.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + values_.makeImmutable(); + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (!other.getPropName().isEmpty()) { + propName_ = other.propName_; + bitField0_ |= 0x00000002; + 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 8: { + long v = input.readInt64(); + ensureValuesIsMutable(); + values_.addLong(v); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureValuesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + values_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 10 + case 18: { + propName_ = input.readStringRequireUtf8(); + 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.google.protobuf.Internal.LongList values_ = emptyLongList(); + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = makeMutableCopy(values_); + } + bitField0_ |= 0x00000001; + } + /** + * repeated int64 values = 1; + * @return A list containing the values. + */ + public java.util.List + getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * repeated int64 values = 1; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated int64 values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + public long getValues(int index) { + return values_.getLong(index); + } + /** + * repeated int64 values = 1; + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues( + int index, long value) { + + ensureValuesIsMutable(); + values_.setLong(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated int64 values = 1; + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(long value) { + + ensureValuesIsMutable(); + values_.addLong(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated int64 values = 1; + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues( + java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated int64 values = 1; + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private java.lang.Object propName_ = ""; + /** + * string prop_name = 2; + * @return The propName. + */ + public java.lang.String getPropName() { + java.lang.Object ref = propName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + propName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + public com.google.protobuf.ByteString + getPropNameBytes() { + java.lang.Object ref = propName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + propName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string prop_name = 2; + * @param value The propName to set. + * @return This builder for chaining. + */ + public Builder setPropName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + propName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string prop_name = 2; + * @return This builder for chaining. + */ + public Builder clearPropName() { + propName_ = getDefaultInstance().getPropName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string prop_name = 2; + * @param value The bytes for propName to set. + * @return This builder for chaining. + */ + public Builder setPropNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + propName_ = value; + bitField0_ |= 0x00000002; + 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:weaviategrpc.IntArrayProperties) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.IntArrayProperties) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IntArrayProperties 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.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TextArrayPropertiesOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.TextArrayProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string values = 1; + * @return A list containing the values. + */ + java.util.List + getValuesList(); + /** + * repeated string values = 1; + * @return The count of values. + */ + int getValuesCount(); + /** + * repeated string values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * repeated string values = 1; + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString + getValuesBytes(int index); + + /** + * string prop_name = 2; + * @return The propName. + */ + java.lang.String getPropName(); + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + com.google.protobuf.ByteString + getPropNameBytes(); + } + /** + * Protobuf type {@code weaviategrpc.TextArrayProperties} + */ + public static final class TextArrayProperties extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.TextArrayProperties) + TextArrayPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextArrayProperties.newBuilder() to construct. + private TextArrayProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TextArrayProperties() { + values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + propName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TextArrayProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_TextArrayProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_TextArrayProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.class, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string values = 1; + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + return values_; + } + /** + * repeated string values = 1; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string values = 1; + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString + getValuesBytes(int index) { + return values_.getByteString(index); + } + + public static final int PROP_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object propName_ = ""; + /** + * string prop_name = 2; + * @return The propName. + */ + @java.lang.Override + public java.lang.String getPropName() { + java.lang.Object ref = propName_; + 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(); + propName_ = s; + return s; + } + } + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPropNameBytes() { + java.lang.Object ref = propName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + propName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, propName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, propName_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties other = (io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties) obj; + + if (!getValuesList() + .equals(other.getValuesList())) return false; + if (!getPropName() + .equals(other.getPropName())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (37 * hash) + PROP_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPropName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties 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.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties 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.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties 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.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties 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 weaviategrpc.TextArrayProperties} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.TextArrayProperties) + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_TextArrayProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_TextArrayProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.class, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + propName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_TextArrayProperties_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties build() { + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties result = new io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.propName_ = propName_; + } + } + + @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.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (!other.getPropName().isEmpty()) { + propName_ = other.propName_; + bitField0_ |= 0x00000002; + 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: { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + case 18: { + propName_ = input.readStringRequireUtf8(); + 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.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000001; + } + /** + * repeated string values = 1; + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * repeated string values = 1; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string values = 1; + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString + getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * repeated string values = 1; + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureValuesIsMutable(); + values_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string values = 1; + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string values = 1; + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues( + java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string values = 1; + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + * repeated string values = 1; + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object propName_ = ""; + /** + * string prop_name = 2; + * @return The propName. + */ + public java.lang.String getPropName() { + java.lang.Object ref = propName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + propName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + public com.google.protobuf.ByteString + getPropNameBytes() { + java.lang.Object ref = propName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + propName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string prop_name = 2; + * @param value The propName to set. + * @return This builder for chaining. + */ + public Builder setPropName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + propName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string prop_name = 2; + * @return This builder for chaining. + */ + public Builder clearPropName() { + propName_ = getDefaultInstance().getPropName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string prop_name = 2; + * @param value The bytes for propName to set. + * @return This builder for chaining. + */ + public Builder setPropNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + propName_ = value; + bitField0_ |= 0x00000002; + 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:weaviategrpc.TextArrayProperties) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.TextArrayProperties) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextArrayProperties 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.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BooleanArrayPropertiesOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.BooleanArrayProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated bool values = 1; + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * repeated bool values = 1; + * @return The count of values. + */ + int getValuesCount(); + /** + * repeated bool values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + boolean getValues(int index); + + /** + * string prop_name = 2; + * @return The propName. + */ + java.lang.String getPropName(); + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + com.google.protobuf.ByteString + getPropNameBytes(); + } + /** + * Protobuf type {@code weaviategrpc.BooleanArrayProperties} + */ + public static final class BooleanArrayProperties extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.BooleanArrayProperties) + BooleanArrayPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use BooleanArrayProperties.newBuilder() to construct. + private BooleanArrayProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BooleanArrayProperties() { + values_ = emptyBooleanList(); + propName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BooleanArrayProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BooleanArrayProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BooleanArrayProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.class, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.BooleanList values_ = + emptyBooleanList(); + /** + * repeated bool values = 1; + * @return A list containing the values. + */ + @java.lang.Override + public java.util.List + getValuesList() { + return values_; + } + /** + * repeated bool values = 1; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated bool values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + public boolean getValues(int index) { + return values_.getBoolean(index); + } + private int valuesMemoizedSerializedSize = -1; + + public static final int PROP_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object propName_ = ""; + /** + * string prop_name = 2; + * @return The propName. + */ + @java.lang.Override + public java.lang.String getPropName() { + java.lang.Object ref = propName_; + 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(); + propName_ = s; + return s; + } + } + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPropNameBytes() { + java.lang.Object ref = propName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + propName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + getSerializedSize(); + if (getValuesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(valuesMemoizedSerializedSize); + } + for (int i = 0; i < values_.size(); i++) { + output.writeBoolNoTag(values_.getBoolean(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, propName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + dataSize = 1 * getValuesList().size(); + size += dataSize; + if (!getValuesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + valuesMemoizedSerializedSize = dataSize; + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, propName_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties other = (io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties) obj; + + if (!getValuesList() + .equals(other.getValuesList())) return false; + if (!getPropName() + .equals(other.getPropName())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (37 * hash) + PROP_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPropName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties 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.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties 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.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties 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.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties 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 weaviategrpc.BooleanArrayProperties} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.BooleanArrayProperties) + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BooleanArrayProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BooleanArrayProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.class, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = emptyBooleanList(); + propName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BooleanArrayProperties_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties build() { + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties result = new io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.propName_ = propName_; + } + } + + @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.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + values_.makeImmutable(); + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (!other.getPropName().isEmpty()) { + propName_ = other.propName_; + bitField0_ |= 0x00000002; + 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 8: { + boolean v = input.readBool(); + ensureValuesIsMutable(); + values_.addBoolean(v); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + int alloc = length > 4096 ? 4096 : length; + ensureValuesIsMutable(alloc / 1); + while (input.getBytesUntilLimit() > 0) { + values_.addBoolean(input.readBool()); + } + input.popLimit(limit); + break; + } // case 10 + case 18: { + propName_ = input.readStringRequireUtf8(); + 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.google.protobuf.Internal.BooleanList values_ = emptyBooleanList(); + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = makeMutableCopy(values_); + } + bitField0_ |= 0x00000001; + } + private void ensureValuesIsMutable(int capacity) { + if (!values_.isModifiable()) { + values_ = makeMutableCopy(values_, capacity); + } + bitField0_ |= 0x00000001; + } + /** + * repeated bool values = 1; + * @return A list containing the values. + */ + public java.util.List + getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * repeated bool values = 1; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated bool values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + public boolean getValues(int index) { + return values_.getBoolean(index); + } + /** + * repeated bool values = 1; + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues( + int index, boolean value) { + + ensureValuesIsMutable(); + values_.setBoolean(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated bool values = 1; + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(boolean value) { + + ensureValuesIsMutable(); + values_.addBoolean(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated bool values = 1; + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues( + java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated bool values = 1; + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = emptyBooleanList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private java.lang.Object propName_ = ""; + /** + * string prop_name = 2; + * @return The propName. + */ + public java.lang.String getPropName() { + java.lang.Object ref = propName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + propName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + public com.google.protobuf.ByteString + getPropNameBytes() { + java.lang.Object ref = propName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + propName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string prop_name = 2; + * @param value The propName to set. + * @return This builder for chaining. + */ + public Builder setPropName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + propName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string prop_name = 2; + * @return This builder for chaining. + */ + public Builder clearPropName() { + propName_ = getDefaultInstance().getPropName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string prop_name = 2; + * @param value The bytes for propName to set. + * @return This builder for chaining. + */ + public Builder setPropNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + propName_ = value; + bitField0_ |= 0x00000002; + 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:weaviategrpc.BooleanArrayProperties) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.BooleanArrayProperties) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BooleanArrayProperties 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.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResultPropertiesOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.ResultProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.protobuf.Struct non_ref_properties = 1; + * @return Whether the nonRefProperties field is set. + */ + boolean hasNonRefProperties(); + /** + * .google.protobuf.Struct non_ref_properties = 1; + * @return The nonRefProperties. + */ + com.google.protobuf.Struct getNonRefProperties(); + /** + * .google.protobuf.Struct non_ref_properties = 1; + */ + com.google.protobuf.StructOrBuilder getNonRefPropertiesOrBuilder(); + + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + java.util.List + getRefPropsList(); + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties getRefProps(int index); + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + int getRefPropsCount(); + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + java.util.List + getRefPropsOrBuilderList(); + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefPropertiesOrBuilder getRefPropsOrBuilder( + int index); + + /** + * string class_name = 3; + * @return The className. + */ + java.lang.String getClassName(); + /** + * string class_name = 3; + * @return The bytes for className. + */ + com.google.protobuf.ByteString + getClassNameBytes(); + + /** + * .weaviategrpc.ResultAdditionalProps metadata = 4; + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * .weaviategrpc.ResultAdditionalProps metadata = 4; + * @return The metadata. + */ + io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps getMetadata(); + /** + * .weaviategrpc.ResultAdditionalProps metadata = 4; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalPropsOrBuilder getMetadataOrBuilder(); + + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + java.util.List + getNumberArrayPropertiesList(); + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties getNumberArrayProperties(int index); + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + int getNumberArrayPropertiesCount(); + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + java.util.List + getNumberArrayPropertiesOrBuilderList(); + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayPropertiesOrBuilder getNumberArrayPropertiesOrBuilder( + int index); + + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + java.util.List + getIntArrayPropertiesList(); + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties getIntArrayProperties(int index); + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + int getIntArrayPropertiesCount(); + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + java.util.List + getIntArrayPropertiesOrBuilderList(); + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayPropertiesOrBuilder getIntArrayPropertiesOrBuilder( + int index); + + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + java.util.List + getTextArrayPropertiesList(); + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties getTextArrayProperties(int index); + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + int getTextArrayPropertiesCount(); + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + java.util.List + getTextArrayPropertiesOrBuilderList(); + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayPropertiesOrBuilder getTextArrayPropertiesOrBuilder( + int index); + + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + java.util.List + getBooleanArrayPropertiesList(); + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties getBooleanArrayProperties(int index); + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + int getBooleanArrayPropertiesCount(); + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + java.util.List + getBooleanArrayPropertiesOrBuilderList(); + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayPropertiesOrBuilder getBooleanArrayPropertiesOrBuilder( + int index); + } + /** + * Protobuf type {@code weaviategrpc.ResultProperties} + */ + public static final class ResultProperties extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.ResultProperties) + ResultPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResultProperties.newBuilder() to construct. + private ResultProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResultProperties() { + refProps_ = java.util.Collections.emptyList(); + className_ = ""; + numberArrayProperties_ = java.util.Collections.emptyList(); + intArrayProperties_ = java.util.Collections.emptyList(); + textArrayProperties_ = java.util.Collections.emptyList(); + booleanArrayProperties_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ResultProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_ResultProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_ResultProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.class, io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.Builder.class); + } + + private int bitField0_; + public static final int NON_REF_PROPERTIES_FIELD_NUMBER = 1; + private com.google.protobuf.Struct nonRefProperties_; + /** + * .google.protobuf.Struct non_ref_properties = 1; + * @return Whether the nonRefProperties field is set. + */ + @java.lang.Override + public boolean hasNonRefProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Struct non_ref_properties = 1; + * @return The nonRefProperties. + */ + @java.lang.Override + public com.google.protobuf.Struct getNonRefProperties() { + return nonRefProperties_ == null ? com.google.protobuf.Struct.getDefaultInstance() : nonRefProperties_; + } + /** + * .google.protobuf.Struct non_ref_properties = 1; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getNonRefPropertiesOrBuilder() { + return nonRefProperties_ == null ? com.google.protobuf.Struct.getDefaultInstance() : nonRefProperties_; + } + + public static final int REF_PROPS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List refProps_; + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + @java.lang.Override + public java.util.List getRefPropsList() { + return refProps_; + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + @java.lang.Override + public java.util.List + getRefPropsOrBuilderList() { + return refProps_; + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + @java.lang.Override + public int getRefPropsCount() { + return refProps_.size(); + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties getRefProps(int index) { + return refProps_.get(index); + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefPropertiesOrBuilder getRefPropsOrBuilder( + int index) { + return refProps_.get(index); + } + + public static final int CLASS_NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object className_ = ""; + /** + * string class_name = 3; + * @return The className. + */ + @java.lang.Override + public java.lang.String getClassName() { + java.lang.Object ref = className_; + 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(); + className_ = s; + return s; + } + } + /** + * string class_name = 3; + * @return The bytes for className. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getClassNameBytes() { + java.lang.Object ref = className_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + className_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 4; + private io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps metadata_; + /** + * .weaviategrpc.ResultAdditionalProps metadata = 4; + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .weaviategrpc.ResultAdditionalProps metadata = 4; + * @return The metadata. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps getMetadata() { + return metadata_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.getDefaultInstance() : metadata_; + } + /** + * .weaviategrpc.ResultAdditionalProps metadata = 4; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalPropsOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.getDefaultInstance() : metadata_; + } + + public static final int NUMBER_ARRAY_PROPERTIES_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private java.util.List numberArrayProperties_; + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + @java.lang.Override + public java.util.List getNumberArrayPropertiesList() { + return numberArrayProperties_; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + @java.lang.Override + public java.util.List + getNumberArrayPropertiesOrBuilderList() { + return numberArrayProperties_; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + @java.lang.Override + public int getNumberArrayPropertiesCount() { + return numberArrayProperties_.size(); + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties getNumberArrayProperties(int index) { + return numberArrayProperties_.get(index); + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayPropertiesOrBuilder getNumberArrayPropertiesOrBuilder( + int index) { + return numberArrayProperties_.get(index); + } + + public static final int INT_ARRAY_PROPERTIES_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private java.util.List intArrayProperties_; + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + @java.lang.Override + public java.util.List getIntArrayPropertiesList() { + return intArrayProperties_; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + @java.lang.Override + public java.util.List + getIntArrayPropertiesOrBuilderList() { + return intArrayProperties_; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + @java.lang.Override + public int getIntArrayPropertiesCount() { + return intArrayProperties_.size(); + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties getIntArrayProperties(int index) { + return intArrayProperties_.get(index); + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayPropertiesOrBuilder getIntArrayPropertiesOrBuilder( + int index) { + return intArrayProperties_.get(index); + } + + public static final int TEXT_ARRAY_PROPERTIES_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private java.util.List textArrayProperties_; + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + @java.lang.Override + public java.util.List getTextArrayPropertiesList() { + return textArrayProperties_; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + @java.lang.Override + public java.util.List + getTextArrayPropertiesOrBuilderList() { + return textArrayProperties_; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + @java.lang.Override + public int getTextArrayPropertiesCount() { + return textArrayProperties_.size(); + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties getTextArrayProperties(int index) { + return textArrayProperties_.get(index); + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayPropertiesOrBuilder getTextArrayPropertiesOrBuilder( + int index) { + return textArrayProperties_.get(index); + } + + public static final int BOOLEAN_ARRAY_PROPERTIES_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private java.util.List booleanArrayProperties_; + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + @java.lang.Override + public java.util.List getBooleanArrayPropertiesList() { + return booleanArrayProperties_; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + @java.lang.Override + public java.util.List + getBooleanArrayPropertiesOrBuilderList() { + return booleanArrayProperties_; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + @java.lang.Override + public int getBooleanArrayPropertiesCount() { + return booleanArrayProperties_.size(); + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties getBooleanArrayProperties(int index) { + return booleanArrayProperties_.get(index); + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayPropertiesOrBuilder getBooleanArrayPropertiesOrBuilder( + int index) { + return booleanArrayProperties_.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 { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getNonRefProperties()); + } + for (int i = 0; i < refProps_.size(); i++) { + output.writeMessage(2, refProps_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(className_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, className_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getMetadata()); + } + for (int i = 0; i < numberArrayProperties_.size(); i++) { + output.writeMessage(5, numberArrayProperties_.get(i)); + } + for (int i = 0; i < intArrayProperties_.size(); i++) { + output.writeMessage(6, intArrayProperties_.get(i)); + } + for (int i = 0; i < textArrayProperties_.size(); i++) { + output.writeMessage(7, textArrayProperties_.get(i)); + } + for (int i = 0; i < booleanArrayProperties_.size(); i++) { + output.writeMessage(8, booleanArrayProperties_.get(i)); + } + 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, getNonRefProperties()); + } + for (int i = 0; i < refProps_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, refProps_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(className_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, className_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMetadata()); + } + for (int i = 0; i < numberArrayProperties_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, numberArrayProperties_.get(i)); + } + for (int i = 0; i < intArrayProperties_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, intArrayProperties_.get(i)); + } + for (int i = 0; i < textArrayProperties_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, textArrayProperties_.get(i)); + } + for (int i = 0; i < booleanArrayProperties_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, booleanArrayProperties_.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 io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties other = (io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties) obj; + + if (hasNonRefProperties() != other.hasNonRefProperties()) return false; + if (hasNonRefProperties()) { + if (!getNonRefProperties() + .equals(other.getNonRefProperties())) return false; + } + if (!getRefPropsList() + .equals(other.getRefPropsList())) return false; + if (!getClassName() + .equals(other.getClassName())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!getNumberArrayPropertiesList() + .equals(other.getNumberArrayPropertiesList())) return false; + if (!getIntArrayPropertiesList() + .equals(other.getIntArrayPropertiesList())) return false; + if (!getTextArrayPropertiesList() + .equals(other.getTextArrayPropertiesList())) return false; + if (!getBooleanArrayPropertiesList() + .equals(other.getBooleanArrayPropertiesList())) 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 (hasNonRefProperties()) { + hash = (37 * hash) + NON_REF_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getNonRefProperties().hashCode(); + } + if (getRefPropsCount() > 0) { + hash = (37 * hash) + REF_PROPS_FIELD_NUMBER; + hash = (53 * hash) + getRefPropsList().hashCode(); + } + hash = (37 * hash) + CLASS_NAME_FIELD_NUMBER; + hash = (53 * hash) + getClassName().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getNumberArrayPropertiesCount() > 0) { + hash = (37 * hash) + NUMBER_ARRAY_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getNumberArrayPropertiesList().hashCode(); + } + if (getIntArrayPropertiesCount() > 0) { + hash = (37 * hash) + INT_ARRAY_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getIntArrayPropertiesList().hashCode(); + } + if (getTextArrayPropertiesCount() > 0) { + hash = (37 * hash) + TEXT_ARRAY_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getTextArrayPropertiesList().hashCode(); + } + if (getBooleanArrayPropertiesCount() > 0) { + hash = (37 * hash) + BOOLEAN_ARRAY_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getBooleanArrayPropertiesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties 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.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties 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.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties 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.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties 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 weaviategrpc.ResultProperties} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.ResultProperties) + io.weaviate.client.grpc.protocol.WeaviateProto.ResultPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_ResultProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_ResultProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.class, io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNonRefPropertiesFieldBuilder(); + getRefPropsFieldBuilder(); + getMetadataFieldBuilder(); + getNumberArrayPropertiesFieldBuilder(); + getIntArrayPropertiesFieldBuilder(); + getTextArrayPropertiesFieldBuilder(); + getBooleanArrayPropertiesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + nonRefProperties_ = null; + if (nonRefPropertiesBuilder_ != null) { + nonRefPropertiesBuilder_.dispose(); + nonRefPropertiesBuilder_ = null; + } + if (refPropsBuilder_ == null) { + refProps_ = java.util.Collections.emptyList(); + } else { + refProps_ = null; + refPropsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + className_ = ""; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + if (numberArrayPropertiesBuilder_ == null) { + numberArrayProperties_ = java.util.Collections.emptyList(); + } else { + numberArrayProperties_ = null; + numberArrayPropertiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (intArrayPropertiesBuilder_ == null) { + intArrayProperties_ = java.util.Collections.emptyList(); + } else { + intArrayProperties_ = null; + intArrayPropertiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (textArrayPropertiesBuilder_ == null) { + textArrayProperties_ = java.util.Collections.emptyList(); + } else { + textArrayProperties_ = null; + textArrayPropertiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + if (booleanArrayPropertiesBuilder_ == null) { + booleanArrayProperties_ = java.util.Collections.emptyList(); + } else { + booleanArrayProperties_ = null; + booleanArrayPropertiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_ResultProperties_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties build() { + io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties result = new io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties result) { + if (refPropsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + refProps_ = java.util.Collections.unmodifiableList(refProps_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.refProps_ = refProps_; + } else { + result.refProps_ = refPropsBuilder_.build(); + } + if (numberArrayPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + numberArrayProperties_ = java.util.Collections.unmodifiableList(numberArrayProperties_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.numberArrayProperties_ = numberArrayProperties_; + } else { + result.numberArrayProperties_ = numberArrayPropertiesBuilder_.build(); + } + if (intArrayPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + intArrayProperties_ = java.util.Collections.unmodifiableList(intArrayProperties_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.intArrayProperties_ = intArrayProperties_; + } else { + result.intArrayProperties_ = intArrayPropertiesBuilder_.build(); + } + if (textArrayPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + textArrayProperties_ = java.util.Collections.unmodifiableList(textArrayProperties_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.textArrayProperties_ = textArrayProperties_; + } else { + result.textArrayProperties_ = textArrayPropertiesBuilder_.build(); + } + if (booleanArrayPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + booleanArrayProperties_ = java.util.Collections.unmodifiableList(booleanArrayProperties_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.booleanArrayProperties_ = booleanArrayProperties_; + } else { + result.booleanArrayProperties_ = booleanArrayPropertiesBuilder_.build(); + } + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.nonRefProperties_ = nonRefPropertiesBuilder_ == null + ? nonRefProperties_ + : nonRefPropertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.className_ = className_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.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 io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.getDefaultInstance()) return this; + if (other.hasNonRefProperties()) { + mergeNonRefProperties(other.getNonRefProperties()); + } + if (refPropsBuilder_ == null) { + if (!other.refProps_.isEmpty()) { + if (refProps_.isEmpty()) { + refProps_ = other.refProps_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRefPropsIsMutable(); + refProps_.addAll(other.refProps_); + } + onChanged(); + } + } else { + if (!other.refProps_.isEmpty()) { + if (refPropsBuilder_.isEmpty()) { + refPropsBuilder_.dispose(); + refPropsBuilder_ = null; + refProps_ = other.refProps_; + bitField0_ = (bitField0_ & ~0x00000002); + refPropsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRefPropsFieldBuilder() : null; + } else { + refPropsBuilder_.addAllMessages(other.refProps_); + } + } + } + if (!other.getClassName().isEmpty()) { + className_ = other.className_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (numberArrayPropertiesBuilder_ == null) { + if (!other.numberArrayProperties_.isEmpty()) { + if (numberArrayProperties_.isEmpty()) { + numberArrayProperties_ = other.numberArrayProperties_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureNumberArrayPropertiesIsMutable(); + numberArrayProperties_.addAll(other.numberArrayProperties_); + } + onChanged(); + } + } else { + if (!other.numberArrayProperties_.isEmpty()) { + if (numberArrayPropertiesBuilder_.isEmpty()) { + numberArrayPropertiesBuilder_.dispose(); + numberArrayPropertiesBuilder_ = null; + numberArrayProperties_ = other.numberArrayProperties_; + bitField0_ = (bitField0_ & ~0x00000010); + numberArrayPropertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNumberArrayPropertiesFieldBuilder() : null; + } else { + numberArrayPropertiesBuilder_.addAllMessages(other.numberArrayProperties_); + } + } + } + if (intArrayPropertiesBuilder_ == null) { + if (!other.intArrayProperties_.isEmpty()) { + if (intArrayProperties_.isEmpty()) { + intArrayProperties_ = other.intArrayProperties_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureIntArrayPropertiesIsMutable(); + intArrayProperties_.addAll(other.intArrayProperties_); + } + onChanged(); + } + } else { + if (!other.intArrayProperties_.isEmpty()) { + if (intArrayPropertiesBuilder_.isEmpty()) { + intArrayPropertiesBuilder_.dispose(); + intArrayPropertiesBuilder_ = null; + intArrayProperties_ = other.intArrayProperties_; + bitField0_ = (bitField0_ & ~0x00000020); + intArrayPropertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getIntArrayPropertiesFieldBuilder() : null; + } else { + intArrayPropertiesBuilder_.addAllMessages(other.intArrayProperties_); + } + } + } + if (textArrayPropertiesBuilder_ == null) { + if (!other.textArrayProperties_.isEmpty()) { + if (textArrayProperties_.isEmpty()) { + textArrayProperties_ = other.textArrayProperties_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureTextArrayPropertiesIsMutable(); + textArrayProperties_.addAll(other.textArrayProperties_); + } + onChanged(); + } + } else { + if (!other.textArrayProperties_.isEmpty()) { + if (textArrayPropertiesBuilder_.isEmpty()) { + textArrayPropertiesBuilder_.dispose(); + textArrayPropertiesBuilder_ = null; + textArrayProperties_ = other.textArrayProperties_; + bitField0_ = (bitField0_ & ~0x00000040); + textArrayPropertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTextArrayPropertiesFieldBuilder() : null; + } else { + textArrayPropertiesBuilder_.addAllMessages(other.textArrayProperties_); + } + } + } + if (booleanArrayPropertiesBuilder_ == null) { + if (!other.booleanArrayProperties_.isEmpty()) { + if (booleanArrayProperties_.isEmpty()) { + booleanArrayProperties_ = other.booleanArrayProperties_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureBooleanArrayPropertiesIsMutable(); + booleanArrayProperties_.addAll(other.booleanArrayProperties_); + } + onChanged(); + } + } else { + if (!other.booleanArrayProperties_.isEmpty()) { + if (booleanArrayPropertiesBuilder_.isEmpty()) { + booleanArrayPropertiesBuilder_.dispose(); + booleanArrayPropertiesBuilder_ = null; + booleanArrayProperties_ = other.booleanArrayProperties_; + bitField0_ = (bitField0_ & ~0x00000080); + booleanArrayPropertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBooleanArrayPropertiesFieldBuilder() : null; + } else { + booleanArrayPropertiesBuilder_.addAllMessages(other.booleanArrayProperties_); + } + } + } + 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( + getNonRefPropertiesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties m = + input.readMessage( + io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties.parser(), + extensionRegistry); + if (refPropsBuilder_ == null) { + ensureRefPropsIsMutable(); + refProps_.add(m); + } else { + refPropsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + className_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties m = + input.readMessage( + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.parser(), + extensionRegistry); + if (numberArrayPropertiesBuilder_ == null) { + ensureNumberArrayPropertiesIsMutable(); + numberArrayProperties_.add(m); + } else { + numberArrayPropertiesBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties m = + input.readMessage( + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.parser(), + extensionRegistry); + if (intArrayPropertiesBuilder_ == null) { + ensureIntArrayPropertiesIsMutable(); + intArrayProperties_.add(m); + } else { + intArrayPropertiesBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: { + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties m = + input.readMessage( + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.parser(), + extensionRegistry); + if (textArrayPropertiesBuilder_ == null) { + ensureTextArrayPropertiesIsMutable(); + textArrayProperties_.add(m); + } else { + textArrayPropertiesBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: { + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties m = + input.readMessage( + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.parser(), + extensionRegistry); + if (booleanArrayPropertiesBuilder_ == null) { + ensureBooleanArrayPropertiesIsMutable(); + booleanArrayProperties_.add(m); + } else { + booleanArrayPropertiesBuilder_.addMessage(m); + } + break; + } // case 66 + 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.google.protobuf.Struct nonRefProperties_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> nonRefPropertiesBuilder_; + /** + * .google.protobuf.Struct non_ref_properties = 1; + * @return Whether the nonRefProperties field is set. + */ + public boolean hasNonRefProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Struct non_ref_properties = 1; + * @return The nonRefProperties. + */ + public com.google.protobuf.Struct getNonRefProperties() { + if (nonRefPropertiesBuilder_ == null) { + return nonRefProperties_ == null ? com.google.protobuf.Struct.getDefaultInstance() : nonRefProperties_; + } else { + return nonRefPropertiesBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Struct non_ref_properties = 1; + */ + public Builder setNonRefProperties(com.google.protobuf.Struct value) { + if (nonRefPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nonRefProperties_ = value; + } else { + nonRefPropertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.protobuf.Struct non_ref_properties = 1; + */ + public Builder setNonRefProperties( + com.google.protobuf.Struct.Builder builderForValue) { + if (nonRefPropertiesBuilder_ == null) { + nonRefProperties_ = builderForValue.build(); + } else { + nonRefPropertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.protobuf.Struct non_ref_properties = 1; + */ + public Builder mergeNonRefProperties(com.google.protobuf.Struct value) { + if (nonRefPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + nonRefProperties_ != null && + nonRefProperties_ != com.google.protobuf.Struct.getDefaultInstance()) { + getNonRefPropertiesBuilder().mergeFrom(value); + } else { + nonRefProperties_ = value; + } + } else { + nonRefPropertiesBuilder_.mergeFrom(value); + } + if (nonRefProperties_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Struct non_ref_properties = 1; + */ + public Builder clearNonRefProperties() { + bitField0_ = (bitField0_ & ~0x00000001); + nonRefProperties_ = null; + if (nonRefPropertiesBuilder_ != null) { + nonRefPropertiesBuilder_.dispose(); + nonRefPropertiesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Struct non_ref_properties = 1; + */ + public com.google.protobuf.Struct.Builder getNonRefPropertiesBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getNonRefPropertiesFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Struct non_ref_properties = 1; + */ + public com.google.protobuf.StructOrBuilder getNonRefPropertiesOrBuilder() { + if (nonRefPropertiesBuilder_ != null) { + return nonRefPropertiesBuilder_.getMessageOrBuilder(); + } else { + return nonRefProperties_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : nonRefProperties_; + } + } + /** + * .google.protobuf.Struct non_ref_properties = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getNonRefPropertiesFieldBuilder() { + if (nonRefPropertiesBuilder_ == null) { + nonRefPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getNonRefProperties(), + getParentForChildren(), + isClean()); + nonRefProperties_ = null; + } + return nonRefPropertiesBuilder_; + } + + private java.util.List refProps_ = + java.util.Collections.emptyList(); + private void ensureRefPropsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + refProps_ = new java.util.ArrayList(refProps_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties, io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefPropertiesOrBuilder> refPropsBuilder_; + + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + public java.util.List getRefPropsList() { + if (refPropsBuilder_ == null) { + return java.util.Collections.unmodifiableList(refProps_); + } else { + return refPropsBuilder_.getMessageList(); + } + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + public int getRefPropsCount() { + if (refPropsBuilder_ == null) { + return refProps_.size(); + } else { + return refPropsBuilder_.getCount(); + } + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties getRefProps(int index) { + if (refPropsBuilder_ == null) { + return refProps_.get(index); + } else { + return refPropsBuilder_.getMessage(index); + } + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + public Builder setRefProps( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties value) { + if (refPropsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefPropsIsMutable(); + refProps_.set(index, value); + onChanged(); + } else { + refPropsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + public Builder setRefProps( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties.Builder builderForValue) { + if (refPropsBuilder_ == null) { + ensureRefPropsIsMutable(); + refProps_.set(index, builderForValue.build()); + onChanged(); + } else { + refPropsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + public Builder addRefProps(io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties value) { + if (refPropsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefPropsIsMutable(); + refProps_.add(value); + onChanged(); + } else { + refPropsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + public Builder addRefProps( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties value) { + if (refPropsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefPropsIsMutable(); + refProps_.add(index, value); + onChanged(); + } else { + refPropsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + public Builder addRefProps( + io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties.Builder builderForValue) { + if (refPropsBuilder_ == null) { + ensureRefPropsIsMutable(); + refProps_.add(builderForValue.build()); + onChanged(); + } else { + refPropsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + public Builder addRefProps( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties.Builder builderForValue) { + if (refPropsBuilder_ == null) { + ensureRefPropsIsMutable(); + refProps_.add(index, builderForValue.build()); + onChanged(); + } else { + refPropsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + public Builder addAllRefProps( + java.lang.Iterable values) { + if (refPropsBuilder_ == null) { + ensureRefPropsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, refProps_); + onChanged(); + } else { + refPropsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + public Builder clearRefProps() { + if (refPropsBuilder_ == null) { + refProps_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + refPropsBuilder_.clear(); + } + return this; + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + public Builder removeRefProps(int index) { + if (refPropsBuilder_ == null) { + ensureRefPropsIsMutable(); + refProps_.remove(index); + onChanged(); + } else { + refPropsBuilder_.remove(index); + } + return this; + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties.Builder getRefPropsBuilder( + int index) { + return getRefPropsFieldBuilder().getBuilder(index); + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefPropertiesOrBuilder getRefPropsOrBuilder( + int index) { + if (refPropsBuilder_ == null) { + return refProps_.get(index); } else { + return refPropsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + public java.util.List + getRefPropsOrBuilderList() { + if (refPropsBuilder_ != null) { + return refPropsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(refProps_); + } + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties.Builder addRefPropsBuilder() { + return getRefPropsFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties.Builder addRefPropsBuilder( + int index) { + return getRefPropsFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.ReturnRefProperties ref_props = 2; + */ + public java.util.List + getRefPropsBuilderList() { + return getRefPropsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties, io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefPropertiesOrBuilder> + getRefPropsFieldBuilder() { + if (refPropsBuilder_ == null) { + refPropsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties, io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefPropertiesOrBuilder>( + refProps_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + refProps_ = null; + } + return refPropsBuilder_; + } + + private java.lang.Object className_ = ""; + /** + * string class_name = 3; + * @return The className. + */ + public java.lang.String getClassName() { + java.lang.Object ref = className_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + className_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string class_name = 3; + * @return The bytes for className. + */ + public com.google.protobuf.ByteString + getClassNameBytes() { + java.lang.Object ref = className_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + className_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string class_name = 3; + * @param value The className to set. + * @return This builder for chaining. + */ + public Builder setClassName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + className_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string class_name = 3; + * @return This builder for chaining. + */ + public Builder clearClassName() { + className_ = getDefaultInstance().getClassName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string class_name = 3; + * @param value The bytes for className to set. + * @return This builder for chaining. + */ + public Builder setClassNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + className_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps, io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalPropsOrBuilder> metadataBuilder_; + /** + * .weaviategrpc.ResultAdditionalProps metadata = 4; + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .weaviategrpc.ResultAdditionalProps metadata = 4; + * @return The metadata. + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * .weaviategrpc.ResultAdditionalProps metadata = 4; + */ + public Builder setMetadata(io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .weaviategrpc.ResultAdditionalProps metadata = 4; + */ + public Builder setMetadata( + io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .weaviategrpc.ResultAdditionalProps metadata = 4; + */ + public Builder mergeMetadata(io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + metadata_ != null && + metadata_ != io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * .weaviategrpc.ResultAdditionalProps metadata = 4; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000008); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .weaviategrpc.ResultAdditionalProps metadata = 4; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.Builder getMetadataBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * .weaviategrpc.ResultAdditionalProps metadata = 4; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalPropsOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.getDefaultInstance() : metadata_; + } + } + /** + * .weaviategrpc.ResultAdditionalProps metadata = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps, io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalPropsOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps, io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalProps.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.ResultAdditionalPropsOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List numberArrayProperties_ = + java.util.Collections.emptyList(); + private void ensureNumberArrayPropertiesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + numberArrayProperties_ = new java.util.ArrayList(numberArrayProperties_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayPropertiesOrBuilder> numberArrayPropertiesBuilder_; + + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + public java.util.List getNumberArrayPropertiesList() { + if (numberArrayPropertiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(numberArrayProperties_); + } else { + return numberArrayPropertiesBuilder_.getMessageList(); + } + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + public int getNumberArrayPropertiesCount() { + if (numberArrayPropertiesBuilder_ == null) { + return numberArrayProperties_.size(); + } else { + return numberArrayPropertiesBuilder_.getCount(); + } + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties getNumberArrayProperties(int index) { + if (numberArrayPropertiesBuilder_ == null) { + return numberArrayProperties_.get(index); + } else { + return numberArrayPropertiesBuilder_.getMessage(index); + } + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + public Builder setNumberArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties value) { + if (numberArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNumberArrayPropertiesIsMutable(); + numberArrayProperties_.set(index, value); + onChanged(); + } else { + numberArrayPropertiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + public Builder setNumberArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder builderForValue) { + if (numberArrayPropertiesBuilder_ == null) { + ensureNumberArrayPropertiesIsMutable(); + numberArrayProperties_.set(index, builderForValue.build()); + onChanged(); + } else { + numberArrayPropertiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + public Builder addNumberArrayProperties(io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties value) { + if (numberArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNumberArrayPropertiesIsMutable(); + numberArrayProperties_.add(value); + onChanged(); + } else { + numberArrayPropertiesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + public Builder addNumberArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties value) { + if (numberArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNumberArrayPropertiesIsMutable(); + numberArrayProperties_.add(index, value); + onChanged(); + } else { + numberArrayPropertiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + public Builder addNumberArrayProperties( + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder builderForValue) { + if (numberArrayPropertiesBuilder_ == null) { + ensureNumberArrayPropertiesIsMutable(); + numberArrayProperties_.add(builderForValue.build()); + onChanged(); + } else { + numberArrayPropertiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + public Builder addNumberArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder builderForValue) { + if (numberArrayPropertiesBuilder_ == null) { + ensureNumberArrayPropertiesIsMutable(); + numberArrayProperties_.add(index, builderForValue.build()); + onChanged(); + } else { + numberArrayPropertiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + public Builder addAllNumberArrayProperties( + java.lang.Iterable values) { + if (numberArrayPropertiesBuilder_ == null) { + ensureNumberArrayPropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, numberArrayProperties_); + onChanged(); + } else { + numberArrayPropertiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + public Builder clearNumberArrayProperties() { + if (numberArrayPropertiesBuilder_ == null) { + numberArrayProperties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + numberArrayPropertiesBuilder_.clear(); + } + return this; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + public Builder removeNumberArrayProperties(int index) { + if (numberArrayPropertiesBuilder_ == null) { + ensureNumberArrayPropertiesIsMutable(); + numberArrayProperties_.remove(index); + onChanged(); + } else { + numberArrayPropertiesBuilder_.remove(index); + } + return this; + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder getNumberArrayPropertiesBuilder( + int index) { + return getNumberArrayPropertiesFieldBuilder().getBuilder(index); + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayPropertiesOrBuilder getNumberArrayPropertiesOrBuilder( + int index) { + if (numberArrayPropertiesBuilder_ == null) { + return numberArrayProperties_.get(index); } else { + return numberArrayPropertiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + public java.util.List + getNumberArrayPropertiesOrBuilderList() { + if (numberArrayPropertiesBuilder_ != null) { + return numberArrayPropertiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(numberArrayProperties_); + } + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder addNumberArrayPropertiesBuilder() { + return getNumberArrayPropertiesFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder addNumberArrayPropertiesBuilder( + int index) { + return getNumberArrayPropertiesFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 5; + */ + public java.util.List + getNumberArrayPropertiesBuilderList() { + return getNumberArrayPropertiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayPropertiesOrBuilder> + getNumberArrayPropertiesFieldBuilder() { + if (numberArrayPropertiesBuilder_ == null) { + numberArrayPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayPropertiesOrBuilder>( + numberArrayProperties_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + numberArrayProperties_ = null; + } + return numberArrayPropertiesBuilder_; + } + + private java.util.List intArrayProperties_ = + java.util.Collections.emptyList(); + private void ensureIntArrayPropertiesIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + intArrayProperties_ = new java.util.ArrayList(intArrayProperties_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayPropertiesOrBuilder> intArrayPropertiesBuilder_; + + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + public java.util.List getIntArrayPropertiesList() { + if (intArrayPropertiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(intArrayProperties_); + } else { + return intArrayPropertiesBuilder_.getMessageList(); + } + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + public int getIntArrayPropertiesCount() { + if (intArrayPropertiesBuilder_ == null) { + return intArrayProperties_.size(); + } else { + return intArrayPropertiesBuilder_.getCount(); + } + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties getIntArrayProperties(int index) { + if (intArrayPropertiesBuilder_ == null) { + return intArrayProperties_.get(index); + } else { + return intArrayPropertiesBuilder_.getMessage(index); + } + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + public Builder setIntArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties value) { + if (intArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIntArrayPropertiesIsMutable(); + intArrayProperties_.set(index, value); + onChanged(); + } else { + intArrayPropertiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + public Builder setIntArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder builderForValue) { + if (intArrayPropertiesBuilder_ == null) { + ensureIntArrayPropertiesIsMutable(); + intArrayProperties_.set(index, builderForValue.build()); + onChanged(); + } else { + intArrayPropertiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + public Builder addIntArrayProperties(io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties value) { + if (intArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIntArrayPropertiesIsMutable(); + intArrayProperties_.add(value); + onChanged(); + } else { + intArrayPropertiesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + public Builder addIntArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties value) { + if (intArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIntArrayPropertiesIsMutable(); + intArrayProperties_.add(index, value); + onChanged(); + } else { + intArrayPropertiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + public Builder addIntArrayProperties( + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder builderForValue) { + if (intArrayPropertiesBuilder_ == null) { + ensureIntArrayPropertiesIsMutable(); + intArrayProperties_.add(builderForValue.build()); + onChanged(); + } else { + intArrayPropertiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + public Builder addIntArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder builderForValue) { + if (intArrayPropertiesBuilder_ == null) { + ensureIntArrayPropertiesIsMutable(); + intArrayProperties_.add(index, builderForValue.build()); + onChanged(); + } else { + intArrayPropertiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + public Builder addAllIntArrayProperties( + java.lang.Iterable values) { + if (intArrayPropertiesBuilder_ == null) { + ensureIntArrayPropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, intArrayProperties_); + onChanged(); + } else { + intArrayPropertiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + public Builder clearIntArrayProperties() { + if (intArrayPropertiesBuilder_ == null) { + intArrayProperties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + intArrayPropertiesBuilder_.clear(); + } + return this; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + public Builder removeIntArrayProperties(int index) { + if (intArrayPropertiesBuilder_ == null) { + ensureIntArrayPropertiesIsMutable(); + intArrayProperties_.remove(index); + onChanged(); + } else { + intArrayPropertiesBuilder_.remove(index); + } + return this; + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder getIntArrayPropertiesBuilder( + int index) { + return getIntArrayPropertiesFieldBuilder().getBuilder(index); + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayPropertiesOrBuilder getIntArrayPropertiesOrBuilder( + int index) { + if (intArrayPropertiesBuilder_ == null) { + return intArrayProperties_.get(index); } else { + return intArrayPropertiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + public java.util.List + getIntArrayPropertiesOrBuilderList() { + if (intArrayPropertiesBuilder_ != null) { + return intArrayPropertiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(intArrayProperties_); + } + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder addIntArrayPropertiesBuilder() { + return getIntArrayPropertiesFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder addIntArrayPropertiesBuilder( + int index) { + return getIntArrayPropertiesFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.IntArrayProperties int_array_properties = 6; + */ + public java.util.List + getIntArrayPropertiesBuilderList() { + return getIntArrayPropertiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayPropertiesOrBuilder> + getIntArrayPropertiesFieldBuilder() { + if (intArrayPropertiesBuilder_ == null) { + intArrayPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayPropertiesOrBuilder>( + intArrayProperties_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + intArrayProperties_ = null; + } + return intArrayPropertiesBuilder_; + } + + private java.util.List textArrayProperties_ = + java.util.Collections.emptyList(); + private void ensureTextArrayPropertiesIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + textArrayProperties_ = new java.util.ArrayList(textArrayProperties_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayPropertiesOrBuilder> textArrayPropertiesBuilder_; + + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + public java.util.List getTextArrayPropertiesList() { + if (textArrayPropertiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(textArrayProperties_); + } else { + return textArrayPropertiesBuilder_.getMessageList(); + } + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + public int getTextArrayPropertiesCount() { + if (textArrayPropertiesBuilder_ == null) { + return textArrayProperties_.size(); + } else { + return textArrayPropertiesBuilder_.getCount(); + } + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties getTextArrayProperties(int index) { + if (textArrayPropertiesBuilder_ == null) { + return textArrayProperties_.get(index); + } else { + return textArrayPropertiesBuilder_.getMessage(index); + } + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + public Builder setTextArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties value) { + if (textArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTextArrayPropertiesIsMutable(); + textArrayProperties_.set(index, value); + onChanged(); + } else { + textArrayPropertiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + public Builder setTextArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder builderForValue) { + if (textArrayPropertiesBuilder_ == null) { + ensureTextArrayPropertiesIsMutable(); + textArrayProperties_.set(index, builderForValue.build()); + onChanged(); + } else { + textArrayPropertiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + public Builder addTextArrayProperties(io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties value) { + if (textArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTextArrayPropertiesIsMutable(); + textArrayProperties_.add(value); + onChanged(); + } else { + textArrayPropertiesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + public Builder addTextArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties value) { + if (textArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTextArrayPropertiesIsMutable(); + textArrayProperties_.add(index, value); + onChanged(); + } else { + textArrayPropertiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + public Builder addTextArrayProperties( + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder builderForValue) { + if (textArrayPropertiesBuilder_ == null) { + ensureTextArrayPropertiesIsMutable(); + textArrayProperties_.add(builderForValue.build()); + onChanged(); + } else { + textArrayPropertiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + public Builder addTextArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder builderForValue) { + if (textArrayPropertiesBuilder_ == null) { + ensureTextArrayPropertiesIsMutable(); + textArrayProperties_.add(index, builderForValue.build()); + onChanged(); + } else { + textArrayPropertiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + public Builder addAllTextArrayProperties( + java.lang.Iterable values) { + if (textArrayPropertiesBuilder_ == null) { + ensureTextArrayPropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, textArrayProperties_); + onChanged(); + } else { + textArrayPropertiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + public Builder clearTextArrayProperties() { + if (textArrayPropertiesBuilder_ == null) { + textArrayProperties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + textArrayPropertiesBuilder_.clear(); + } + return this; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + public Builder removeTextArrayProperties(int index) { + if (textArrayPropertiesBuilder_ == null) { + ensureTextArrayPropertiesIsMutable(); + textArrayProperties_.remove(index); + onChanged(); + } else { + textArrayPropertiesBuilder_.remove(index); + } + return this; + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder getTextArrayPropertiesBuilder( + int index) { + return getTextArrayPropertiesFieldBuilder().getBuilder(index); + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayPropertiesOrBuilder getTextArrayPropertiesOrBuilder( + int index) { + if (textArrayPropertiesBuilder_ == null) { + return textArrayProperties_.get(index); } else { + return textArrayPropertiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + public java.util.List + getTextArrayPropertiesOrBuilderList() { + if (textArrayPropertiesBuilder_ != null) { + return textArrayPropertiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(textArrayProperties_); + } + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder addTextArrayPropertiesBuilder() { + return getTextArrayPropertiesFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder addTextArrayPropertiesBuilder( + int index) { + return getTextArrayPropertiesFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.TextArrayProperties text_array_properties = 7; + */ + public java.util.List + getTextArrayPropertiesBuilderList() { + return getTextArrayPropertiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayPropertiesOrBuilder> + getTextArrayPropertiesFieldBuilder() { + if (textArrayPropertiesBuilder_ == null) { + textArrayPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayPropertiesOrBuilder>( + textArrayProperties_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + textArrayProperties_ = null; + } + return textArrayPropertiesBuilder_; + } + + private java.util.List booleanArrayProperties_ = + java.util.Collections.emptyList(); + private void ensureBooleanArrayPropertiesIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + booleanArrayProperties_ = new java.util.ArrayList(booleanArrayProperties_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayPropertiesOrBuilder> booleanArrayPropertiesBuilder_; + + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + public java.util.List getBooleanArrayPropertiesList() { + if (booleanArrayPropertiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(booleanArrayProperties_); + } else { + return booleanArrayPropertiesBuilder_.getMessageList(); + } + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + public int getBooleanArrayPropertiesCount() { + if (booleanArrayPropertiesBuilder_ == null) { + return booleanArrayProperties_.size(); + } else { + return booleanArrayPropertiesBuilder_.getCount(); + } + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties getBooleanArrayProperties(int index) { + if (booleanArrayPropertiesBuilder_ == null) { + return booleanArrayProperties_.get(index); + } else { + return booleanArrayPropertiesBuilder_.getMessage(index); + } + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + public Builder setBooleanArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties value) { + if (booleanArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBooleanArrayPropertiesIsMutable(); + booleanArrayProperties_.set(index, value); + onChanged(); + } else { + booleanArrayPropertiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + public Builder setBooleanArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder builderForValue) { + if (booleanArrayPropertiesBuilder_ == null) { + ensureBooleanArrayPropertiesIsMutable(); + booleanArrayProperties_.set(index, builderForValue.build()); + onChanged(); + } else { + booleanArrayPropertiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + public Builder addBooleanArrayProperties(io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties value) { + if (booleanArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBooleanArrayPropertiesIsMutable(); + booleanArrayProperties_.add(value); + onChanged(); + } else { + booleanArrayPropertiesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + public Builder addBooleanArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties value) { + if (booleanArrayPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBooleanArrayPropertiesIsMutable(); + booleanArrayProperties_.add(index, value); + onChanged(); + } else { + booleanArrayPropertiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + public Builder addBooleanArrayProperties( + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder builderForValue) { + if (booleanArrayPropertiesBuilder_ == null) { + ensureBooleanArrayPropertiesIsMutable(); + booleanArrayProperties_.add(builderForValue.build()); + onChanged(); + } else { + booleanArrayPropertiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + public Builder addBooleanArrayProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder builderForValue) { + if (booleanArrayPropertiesBuilder_ == null) { + ensureBooleanArrayPropertiesIsMutable(); + booleanArrayProperties_.add(index, builderForValue.build()); + onChanged(); + } else { + booleanArrayPropertiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + public Builder addAllBooleanArrayProperties( + java.lang.Iterable values) { + if (booleanArrayPropertiesBuilder_ == null) { + ensureBooleanArrayPropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, booleanArrayProperties_); + onChanged(); + } else { + booleanArrayPropertiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + public Builder clearBooleanArrayProperties() { + if (booleanArrayPropertiesBuilder_ == null) { + booleanArrayProperties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + booleanArrayPropertiesBuilder_.clear(); + } + return this; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + public Builder removeBooleanArrayProperties(int index) { + if (booleanArrayPropertiesBuilder_ == null) { + ensureBooleanArrayPropertiesIsMutable(); + booleanArrayProperties_.remove(index); + onChanged(); + } else { + booleanArrayPropertiesBuilder_.remove(index); + } + return this; + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder getBooleanArrayPropertiesBuilder( + int index) { + return getBooleanArrayPropertiesFieldBuilder().getBuilder(index); + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayPropertiesOrBuilder getBooleanArrayPropertiesOrBuilder( + int index) { + if (booleanArrayPropertiesBuilder_ == null) { + return booleanArrayProperties_.get(index); } else { + return booleanArrayPropertiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + public java.util.List + getBooleanArrayPropertiesOrBuilderList() { + if (booleanArrayPropertiesBuilder_ != null) { + return booleanArrayPropertiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(booleanArrayProperties_); + } + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder addBooleanArrayPropertiesBuilder() { + return getBooleanArrayPropertiesFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder addBooleanArrayPropertiesBuilder( + int index) { + return getBooleanArrayPropertiesFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 8; + */ + public java.util.List + getBooleanArrayPropertiesBuilderList() { + return getBooleanArrayPropertiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayPropertiesOrBuilder> + getBooleanArrayPropertiesFieldBuilder() { + if (booleanArrayPropertiesBuilder_ == null) { + booleanArrayPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayPropertiesOrBuilder>( + booleanArrayProperties_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + booleanArrayProperties_ = null; + } + return booleanArrayPropertiesBuilder_; + } + @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:weaviategrpc.ResultProperties) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.ResultProperties) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResultProperties 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.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReturnRefPropertiesOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviategrpc.ReturnRefProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + java.util.List + getPropertiesList(); + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties getProperties(int index); + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + int getPropertiesCount(); + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + java.util.List + getPropertiesOrBuilderList(); + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + io.weaviate.client.grpc.protocol.WeaviateProto.ResultPropertiesOrBuilder getPropertiesOrBuilder( + int index); + + /** + * string prop_name = 2; + * @return The propName. + */ + java.lang.String getPropName(); + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + com.google.protobuf.ByteString + getPropNameBytes(); + } + /** + * Protobuf type {@code weaviategrpc.ReturnRefProperties} + */ + public static final class ReturnRefProperties extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviategrpc.ReturnRefProperties) + ReturnRefPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReturnRefProperties.newBuilder() to construct. + private ReturnRefProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ReturnRefProperties() { + properties_ = java.util.Collections.emptyList(); + propName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ReturnRefProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_ReturnRefProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_ReturnRefProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties.class, io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties.Builder.class); + } + + public static final int PROPERTIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List properties_; + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + @java.lang.Override + public java.util.List getPropertiesList() { + return properties_; + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + @java.lang.Override + public java.util.List + getPropertiesOrBuilderList() { + return properties_; + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + @java.lang.Override + public int getPropertiesCount() { + return properties_.size(); + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties getProperties(int index) { + return properties_.get(index); + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultPropertiesOrBuilder getPropertiesOrBuilder( + int index) { + return properties_.get(index); + } + + public static final int PROP_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object propName_ = ""; + /** + * string prop_name = 2; + * @return The propName. + */ + @java.lang.Override + public java.lang.String getPropName() { + java.lang.Object ref = propName_; + 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(); + propName_ = s; + return s; + } + } + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPropNameBytes() { + java.lang.Object ref = propName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + propName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 < properties_.size(); i++) { + output.writeMessage(1, properties_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, propName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < properties_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, properties_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, propName_); + } + 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.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties other = (io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties) obj; + + if (!getPropertiesList() + .equals(other.getPropertiesList())) return false; + if (!getPropName() + .equals(other.getPropName())) 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 (getPropertiesCount() > 0) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getPropertiesList().hashCode(); + } + hash = (37 * hash) + PROP_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPropName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties 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.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties 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.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties 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.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties 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 weaviategrpc.ReturnRefProperties} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviategrpc.ReturnRefProperties) + io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_ReturnRefProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_ReturnRefProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties.class, io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (propertiesBuilder_ == null) { + properties_ = java.util.Collections.emptyList(); + } else { + properties_ = null; + propertiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + propName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_ReturnRefProperties_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties build() { + io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties buildPartial() { + io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties result = new io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties result) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + properties_ = java.util.Collections.unmodifiableList(properties_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.properties_ = properties_; + } else { + result.properties_ = propertiesBuilder_.build(); + } + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.propName_ = propName_; + } + } + + @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.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties) { + return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties other) { + if (other == io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties.getDefaultInstance()) return this; + if (propertiesBuilder_ == null) { + if (!other.properties_.isEmpty()) { + if (properties_.isEmpty()) { + properties_ = other.properties_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePropertiesIsMutable(); + properties_.addAll(other.properties_); + } + onChanged(); + } + } else { + if (!other.properties_.isEmpty()) { + if (propertiesBuilder_.isEmpty()) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + properties_ = other.properties_; + bitField0_ = (bitField0_ & ~0x00000001); + propertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPropertiesFieldBuilder() : null; + } else { + propertiesBuilder_.addAllMessages(other.properties_); + } + } + } + if (!other.getPropName().isEmpty()) { + propName_ = other.propName_; + bitField0_ |= 0x00000002; + 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: { + io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties m = + input.readMessage( + io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.parser(), + extensionRegistry); + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(m); + } else { + propertiesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + propName_ = input.readStringRequireUtf8(); + 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 java.util.List properties_ = + java.util.Collections.emptyList(); + private void ensurePropertiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + properties_ = new java.util.ArrayList(properties_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties, io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.ResultPropertiesOrBuilder> propertiesBuilder_; + + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + public java.util.List getPropertiesList() { + if (propertiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(properties_); + } else { + return propertiesBuilder_.getMessageList(); + } + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + public int getPropertiesCount() { + if (propertiesBuilder_ == null) { + return properties_.size(); + } else { + return propertiesBuilder_.getCount(); + } + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties getProperties(int index) { + if (propertiesBuilder_ == null) { + return properties_.get(index); + } else { + return propertiesBuilder_.getMessage(index); + } + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + public Builder setProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertiesIsMutable(); + properties_.set(index, value); + onChanged(); + } else { + propertiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + public Builder setProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.Builder builderForValue) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.set(index, builderForValue.build()); + onChanged(); + } else { + propertiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + public Builder addProperties(io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertiesIsMutable(); + properties_.add(value); + onChanged(); + } else { + propertiesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + public Builder addProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertiesIsMutable(); + properties_.add(index, value); + onChanged(); + } else { + propertiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + public Builder addProperties( + io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.Builder builderForValue) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(builderForValue.build()); + onChanged(); + } else { + propertiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + public Builder addProperties( + int index, io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.Builder builderForValue) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(index, builderForValue.build()); + onChanged(); + } else { + propertiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + public Builder addAllProperties( + java.lang.Iterable values) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, properties_); + onChanged(); + } else { + propertiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + public Builder clearProperties() { + if (propertiesBuilder_ == null) { + properties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + propertiesBuilder_.clear(); + } + return this; + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + public Builder removeProperties(int index) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.remove(index); + onChanged(); + } else { + propertiesBuilder_.remove(index); + } + return this; + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.Builder getPropertiesBuilder( + int index) { + return getPropertiesFieldBuilder().getBuilder(index); + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultPropertiesOrBuilder getPropertiesOrBuilder( + int index) { + if (propertiesBuilder_ == null) { + return properties_.get(index); } else { + return propertiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + public java.util.List + getPropertiesOrBuilderList() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(properties_); + } + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.Builder addPropertiesBuilder() { + return getPropertiesFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + public io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.Builder addPropertiesBuilder( + int index) { + return getPropertiesFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.getDefaultInstance()); + } + /** + * repeated .weaviategrpc.ResultProperties properties = 1; + */ + public java.util.List + getPropertiesBuilderList() { + return getPropertiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties, io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.ResultPropertiesOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties, io.weaviate.client.grpc.protocol.WeaviateProto.ResultProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.ResultPropertiesOrBuilder>( + properties_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + private java.lang.Object propName_ = ""; + /** + * string prop_name = 2; + * @return The propName. + */ + public java.lang.String getPropName() { + java.lang.Object ref = propName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + propName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string prop_name = 2; + * @return The bytes for propName. + */ + public com.google.protobuf.ByteString + getPropNameBytes() { + java.lang.Object ref = propName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + propName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string prop_name = 2; + * @param value The propName to set. + * @return This builder for chaining. + */ + public Builder setPropName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + propName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string prop_name = 2; + * @return This builder for chaining. + */ + public Builder clearPropName() { + propName_ = getDefaultInstance().getPropName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string prop_name = 2; + * @param value The bytes for propName to set. + * @return This builder for chaining. + */ + public Builder setPropNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + propName_ = value; + bitField0_ |= 0x00000002; + 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:weaviategrpc.ReturnRefProperties) + } + + // @@protoc_insertion_point(class_scope:weaviategrpc.ReturnRefProperties) + private static final io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties(); + } + + public static io.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReturnRefProperties 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.weaviate.client.grpc.protocol.WeaviateProto.ReturnRefProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_BatchObjectsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_BatchObjectsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_BatchObject_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_BatchObject_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_BatchObject_Properties_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_BatchObject_Properties_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_BatchObject_RefPropertiesSingleTarget_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_BatchObject_RefPropertiesSingleTarget_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_BatchObject_RefPropertiesMultiTarget_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_BatchObject_RefPropertiesMultiTarget_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_BatchObjectsReply_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_BatchObjectsReply_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_BatchObjectsReply_BatchResults_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_BatchObjectsReply_BatchResults_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_SearchRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_SearchRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_GenerativeSearch_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_GenerativeSearch_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_TextArray_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_TextArray_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_IntArray_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_IntArray_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_NumberArray_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_NumberArray_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_BooleanArray_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_BooleanArray_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_Filters_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_Filters_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_AdditionalProperties_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_AdditionalProperties_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_Properties_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_Properties_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_HybridSearchParams_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_HybridSearchParams_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_NearTextSearchParams_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_NearTextSearchParams_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_NearTextSearchParams_Move_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_NearTextSearchParams_Move_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_NearImageSearchParams_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_NearImageSearchParams_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_NearAudioSearchParams_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_NearAudioSearchParams_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_NearVideoSearchParams_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_NearVideoSearchParams_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_BM25SearchParams_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_BM25SearchParams_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_RefProperties_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_RefProperties_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_NearVectorParams_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_NearVectorParams_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_NearObjectParams_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_NearObjectParams_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_SearchReply_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_SearchReply_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_SearchResult_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_SearchResult_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_ResultAdditionalProps_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_ResultAdditionalProps_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_NumberArrayProperties_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_NumberArrayProperties_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_IntArrayProperties_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_IntArrayProperties_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_TextArrayProperties_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_TextArrayProperties_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_BooleanArrayProperties_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_BooleanArrayProperties_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_ResultProperties_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_ResultProperties_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviategrpc_ReturnRefProperties_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviategrpc_ReturnRefProperties_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\016weaviate.proto\022\014weaviategrpc\032\034google/p" + + "rotobuf/struct.proto\"\227\001\n\023BatchObjectsReq" + + "uest\022*\n\007objects\030\001 \003(\0132\031.weaviategrpc.Bat" + + "chObject\022>\n\021consistency_level\030\002 \001(\0162\036.we" + + "aviategrpc.ConsistencyLevelH\000\210\001\001B\024\n\022_con" + + "sistency_level\"\221\006\n\013BatchObject\022\014\n\004uuid\030\001" + + " \001(\t\022\016\n\006vector\030\002 \003(\002\0228\n\nproperties\030\003 \001(\013" + + "2$.weaviategrpc.BatchObject.Properties\022\022" + + "\n\nclass_name\030\004 \001(\t\022\016\n\006tenant\030\005 \001(\t\032\355\003\n\nP" + + "roperties\0223\n\022non_ref_properties\030\001 \001(\0132\027." + + "google.protobuf.Struct\022M\n\020ref_props_sing" + + "le\030\002 \003(\01323.weaviategrpc.BatchObject.RefP" + + "ropertiesSingleTarget\022K\n\017ref_props_multi" + + "\030\003 \003(\01322.weaviategrpc.BatchObject.RefPro" + + "pertiesMultiTarget\022D\n\027number_array_prope" + + "rties\030\004 \003(\0132#.weaviategrpc.NumberArrayPr" + + "operties\022>\n\024int_array_properties\030\005 \003(\0132 " + + ".weaviategrpc.IntArrayProperties\022@\n\025text" + + "_array_properties\030\006 \003(\0132!.weaviategrpc.T" + + "extArrayProperties\022F\n\030boolean_array_prop" + + "erties\030\007 \003(\0132$.weaviategrpc.BooleanArray" + + "Properties\032=\n\031RefPropertiesSingleTarget\022" + + "\r\n\005uuids\030\001 \003(\t\022\021\n\tprop_name\030\002 \001(\t\032W\n\030Ref" + + "PropertiesMultiTarget\022\r\n\005uuids\030\001 \003(\t\022\021\n\t" + + "prop_name\030\002 \001(\t\022\031\n\021target_collection\030\003 \001" + + "(\t\"\216\001\n\021BatchObjectsReply\022=\n\007results\030\001 \003(" + + "\0132,.weaviategrpc.BatchObjectsReply.Batch" + + "Results\022\014\n\004took\030\002 \001(\002\032,\n\014BatchResults\022\r\n" + + "\005index\030\001 \001(\005\022\r\n\005error\030\002 \001(\t\"\303\007\n\rSearchRe" + + "quest\022\022\n\nclass_name\030\001 \001(\t\022\r\n\005limit\030\002 \001(\r" + + "\022A\n\025additional_properties\030\003 \001(\0132\".weavia" + + "tegrpc.AdditionalProperties\0223\n\013near_vect" + + "or\030\004 \001(\0132\036.weaviategrpc.NearVectorParams" + + "\0223\n\013near_object\030\005 \001(\0132\036.weaviategrpc.Nea" + + "rObjectParams\022,\n\nproperties\030\006 \001(\0132\030.weav" + + "iategrpc.Properties\0227\n\rhybrid_search\030\007 \001" + + "(\0132 .weaviategrpc.HybridSearchParams\0223\n\013" + + "bm25_search\030\010 \001(\0132\036.weaviategrpc.BM25Sea" + + "rchParams\022\016\n\006offset\030\t \001(\r\022\017\n\007autocut\030\n \001" + + "(\r\022\r\n\005after\030\013 \001(\t\022\016\n\006tenant\030\014 \001(\t\022+\n\007fil" + + "ters\030\r \001(\0132\025.weaviategrpc.FiltersH\000\210\001\001\022:" + + "\n\tnear_text\030\016 \001(\0132\".weaviategrpc.NearTex" + + "tSearchParamsH\001\210\001\001\022<\n\nnear_image\030\017 \001(\0132#" + + ".weaviategrpc.NearImageSearchParamsH\002\210\001\001" + + "\022<\n\nnear_audio\030\020 \001(\0132#.weaviategrpc.Near" + + "AudioSearchParamsH\003\210\001\001\022<\n\nnear_video\030\021 \001" + + "(\0132#.weaviategrpc.NearVideoSearchParamsH" + + "\004\210\001\001\022>\n\021consistency_level\030\022 \001(\0162\036.weavia" + + "tegrpc.ConsistencyLevelH\005\210\001\001\0227\n\ngenerati" + + "ve\030\023 \001(\0132\036.weaviategrpc.GenerativeSearch" + + "H\006\210\001\001B\n\n\010_filtersB\014\n\n_near_textB\r\n\013_near" + + "_imageB\r\n\013_near_audioB\r\n\013_near_videoB\024\n\022" + + "_consistency_levelB\r\n\013_generative\"m\n\020Gen" + + "erativeSearch\022\036\n\026single_response_prompt\030" + + "\001 \001(\t\022\035\n\025grouped_response_task\030\002 \001(\t\022\032\n\022" + + "grouped_properties\030\003 \003(\t\"\033\n\tTextArray\022\016\n" + + "\006values\030\001 \003(\t\"\032\n\010IntArray\022\016\n\006values\030\001 \003(" + + "\003\"\035\n\013NumberArray\022\016\n\006values\030\001 \003(\001\"\036\n\014Bool" + + "eanArray\022\016\n\006values\030\001 \003(\010\"\233\006\n\007Filters\0220\n\010" + + "operator\030\001 \001(\0162\036.weaviategrpc.Filters.Op" + + "erator\022\n\n\002on\030\002 \003(\t\022&\n\007filters\030\003 \003(\0132\025.we" + + "aviategrpc.Filters\022\024\n\nvalue_text\030\004 \001(\tH\000" + + "\022\023\n\tvalue_int\030\005 \001(\003H\000\022\027\n\rvalue_boolean\030\006" + + " \001(\010H\000\022\026\n\014value_number\030\007 \001(\002H\000\0223\n\020value_" + + "text_array\030\t \001(\0132\027.weaviategrpc.TextArra" + + "yH\000\0221\n\017value_int_array\030\n \001(\0132\026.weaviateg" + + "rpc.IntArrayH\000\0229\n\023value_boolean_array\030\013 " + + "\001(\0132\032.weaviategrpc.BooleanArrayH\000\0227\n\022val" + + "ue_number_array\030\014 \001(\0132\031.weaviategrpc.Num" + + "berArrayH\000\"\343\002\n\010Operator\022\030\n\024OPERATOR_UNSP" + + "ECIFIED\020\000\022\022\n\016OPERATOR_EQUAL\020\001\022\026\n\022OPERATO" + + "R_NOT_EQUAL\020\002\022\031\n\025OPERATOR_GREATER_THAN\020\003" + + "\022\037\n\033OPERATOR_GREATER_THAN_EQUAL\020\004\022\026\n\022OPE" + + "RATOR_LESS_THAN\020\005\022\034\n\030OPERATOR_LESS_THAN_" + + "EQUAL\020\006\022\020\n\014OPERATOR_AND\020\007\022\017\n\013OPERATOR_OR" + + "\020\010\022\035\n\031OPERATOR_WITHIN_GEO_RANGE\020\t\022\021\n\rOPE" + + "RATOR_LIKE\020\n\022\024\n\020OPERATOR_IS_NULL\020\013\022\031\n\025OP" + + "ERATOR_CONTAINS_ANY\020\014\022\031\n\025OPERATOR_CONTAI" + + "NS_ALL\020\rB\014\n\ntest_value\"\313\001\n\024AdditionalPro" + + "perties\022\014\n\004uuid\030\001 \001(\010\022\016\n\006vector\030\002 \001(\010\022\030\n" + + "\020creationTimeUnix\030\003 \001(\010\022\032\n\022lastUpdateTim" + + "eUnix\030\004 \001(\010\022\020\n\010distance\030\005 \001(\010\022\021\n\tcertain" + + "ty\030\006 \001(\010\022\r\n\005score\030\007 \001(\010\022\024\n\014explainScore\030" + + "\010 \001(\010\022\025\n\ris_consistent\030\t \001(\010\"]\n\nProperti" + + "es\022\032\n\022non_ref_properties\030\001 \003(\t\0223\n\016ref_pr" + + "operties\030\002 \003(\0132\033.weaviategrpc.RefPropert" + + "ies\"\373\001\n\022HybridSearchParams\022\r\n\005query\030\001 \001(" + + "\t\022\022\n\nproperties\030\002 \003(\t\022\016\n\006vector\030\003 \003(\002\022\r\n" + + "\005alpha\030\004 \001(\002\022@\n\013fusion_type\030\005 \001(\0162+.weav" + + "iategrpc.HybridSearchParams.FusionType\"a" + + "\n\nFusionType\022\033\n\027FUSION_TYPE_UNSPECIFIED\020" + + "\000\022\026\n\022FUSION_TYPE_RANKED\020\001\022\036\n\032FUSION_TYPE" + + "_RELATIVE_SCORE\020\002\"\301\002\n\024NearTextSearchPara" + + "ms\022\r\n\005query\030\001 \003(\t\022\026\n\tcertainty\030\002 \001(\001H\000\210\001" + + "\001\022\025\n\010distance\030\003 \001(\001H\001\210\001\001\022=\n\007move_to\030\004 \001(" + + "\0132\'.weaviategrpc.NearTextSearchParams.Mo" + + "veH\002\210\001\001\022?\n\tmove_away\030\005 \001(\0132\'.weaviategrp" + + "c.NearTextSearchParams.MoveH\003\210\001\001\0326\n\004Move" + + "\022\r\n\005force\030\001 \001(\002\022\020\n\010concepts\030\002 \003(\t\022\r\n\005uui" + + "ds\030\003 \003(\tB\014\n\n_certaintyB\013\n\t_distanceB\n\n\010_" + + "move_toB\014\n\n_move_away\"p\n\025NearImageSearch" + + "Params\022\r\n\005image\030\001 \001(\t\022\026\n\tcertainty\030\002 \001(\001" + + "H\000\210\001\001\022\025\n\010distance\030\003 \001(\001H\001\210\001\001B\014\n\n_certain" + + "tyB\013\n\t_distance\"p\n\025NearAudioSearchParams" + + "\022\r\n\005audio\030\001 \001(\t\022\026\n\tcertainty\030\002 \001(\001H\000\210\001\001\022" + + "\025\n\010distance\030\003 \001(\001H\001\210\001\001B\014\n\n_certaintyB\013\n\t" + + "_distance\"p\n\025NearVideoSearchParams\022\r\n\005vi" + + "deo\030\001 \001(\t\022\026\n\tcertainty\030\002 \001(\001H\000\210\001\001\022\025\n\010dis" + + "tance\030\003 \001(\001H\001\210\001\001B\014\n\n_certaintyB\013\n\t_dista" + + "nce\"5\n\020BM25SearchParams\022\r\n\005query\030\001 \001(\t\022\022" + + "\n\nproperties\030\002 \003(\t\"\260\001\n\rRefProperties\022\032\n\022" + + "reference_property\030\002 \001(\t\0223\n\021linked_prope" + + "rties\030\003 \001(\0132\030.weaviategrpc.Properties\0224\n" + + "\010metadata\030\004 \001(\0132\".weaviategrpc.Additiona" + + "lProperties\022\030\n\020which_collection\030\005 \001(\t\"l\n" + + "\020NearVectorParams\022\016\n\006vector\030\001 \003(\002\022\026\n\tcer" + + "tainty\030\002 \001(\001H\000\210\001\001\022\025\n\010distance\030\003 \001(\001H\001\210\001\001" + + "B\014\n\n_certaintyB\013\n\t_distance\"h\n\020NearObjec" + + "tParams\022\n\n\002id\030\001 \001(\t\022\026\n\tcertainty\030\002 \001(\001H\000" + + "\210\001\001\022\025\n\010distance\030\003 \001(\001H\001\210\001\001B\014\n\n_certainty" + + "B\013\n\t_distance\"k\n\013SearchReply\022+\n\007results\030" + + "\001 \003(\0132\032.weaviategrpc.SearchResult\022\014\n\004too" + + "k\030\002 \001(\002\022!\n\031generative_grouped_result\030\003 \001" + + "(\t\"\206\001\n\014SearchResult\0222\n\nproperties\030\001 \001(\0132" + + "\036.weaviategrpc.ResultProperties\022B\n\025addit" + + "ional_properties\030\002 \001(\0132#.weaviategrpc.Re" + + "sultAdditionalProps\"\315\003\n\025ResultAdditional" + + "Props\022\n\n\002id\030\001 \001(\t\022\016\n\006vector\030\002 \003(\002\022\032\n\022cre" + + "ation_time_unix\030\003 \001(\003\022\"\n\032creation_time_u" + + "nix_present\030\004 \001(\010\022\035\n\025last_update_time_un" + + "ix\030\005 \001(\003\022%\n\035last_update_time_unix_presen" + + "t\030\006 \001(\010\022\020\n\010distance\030\007 \001(\002\022\030\n\020distance_pr" + + "esent\030\010 \001(\010\022\021\n\tcertainty\030\t \001(\002\022\031\n\021certai" + + "nty_present\030\n \001(\010\022\r\n\005score\030\013 \001(\002\022\025\n\rscor" + + "e_present\030\014 \001(\010\022\025\n\rexplain_score\030\r \001(\t\022\035" + + "\n\025explain_score_present\030\016 \001(\010\022\032\n\ris_cons" + + "istent\030\017 \001(\010H\000\210\001\001\022\022\n\ngenerative\030\020 \001(\t\022\032\n" + + "\022generative_present\030\021 \001(\010B\020\n\016_is_consist" + + "ent\":\n\025NumberArrayProperties\022\016\n\006values\030\001" + + " \003(\001\022\021\n\tprop_name\030\002 \001(\t\"7\n\022IntArrayPrope" + + "rties\022\016\n\006values\030\001 \003(\003\022\021\n\tprop_name\030\002 \001(\t" + + "\"8\n\023TextArrayProperties\022\016\n\006values\030\001 \003(\t\022" + + "\021\n\tprop_name\030\002 \001(\t\";\n\026BooleanArrayProper" + + "ties\022\016\n\006values\030\001 \003(\010\022\021\n\tprop_name\030\002 \001(\t\"" + + "\330\003\n\020ResultProperties\0223\n\022non_ref_properti" + + "es\030\001 \001(\0132\027.google.protobuf.Struct\0224\n\tref" + + "_props\030\002 \003(\0132!.weaviategrpc.ReturnRefPro" + + "perties\022\022\n\nclass_name\030\003 \001(\t\0225\n\010metadata\030" + + "\004 \001(\0132#.weaviategrpc.ResultAdditionalPro" + + "ps\022D\n\027number_array_properties\030\005 \003(\0132#.we" + + "aviategrpc.NumberArrayProperties\022>\n\024int_" + + "array_properties\030\006 \003(\0132 .weaviategrpc.In" + + "tArrayProperties\022@\n\025text_array_propertie" + + "s\030\007 \003(\0132!.weaviategrpc.TextArrayProperti" + + "es\022F\n\030boolean_array_properties\030\010 \003(\0132$.w" + + "eaviategrpc.BooleanArrayProperties\"\\\n\023Re" + + "turnRefProperties\0222\n\nproperties\030\001 \003(\0132\036." + + "weaviategrpc.ResultProperties\022\021\n\tprop_na" + + "me\030\002 \001(\t*\211\001\n\020ConsistencyLevel\022!\n\035CONSIST" + + "ENCY_LEVEL_UNSPECIFIED\020\000\022\031\n\025CONSISTENCY_" + + "LEVEL_ONE\020\001\022\034\n\030CONSISTENCY_LEVEL_QUORUM\020" + + "\002\022\031\n\025CONSISTENCY_LEVEL_ALL\020\0032\244\001\n\010Weaviat" + + "e\022B\n\006Search\022\033.weaviategrpc.SearchRequest" + + "\032\031.weaviategrpc.SearchReply\"\000\022T\n\014BatchOb" + + "jects\022!.weaviategrpc.BatchObjectsRequest" + + "\032\037.weaviategrpc.BatchObjectsReply\"\000BT\n i" + + "o.weaviate.client.grpc.protocolB\rWeaviat" + + "eProtoZ!github.com/weaviate/weaviate/grp" + + "cb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_weaviategrpc_BatchObjectsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_weaviategrpc_BatchObjectsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_BatchObjectsRequest_descriptor, + new java.lang.String[] { "Objects", "ConsistencyLevel", "ConsistencyLevel", }); + internal_static_weaviategrpc_BatchObject_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_weaviategrpc_BatchObject_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_BatchObject_descriptor, + new java.lang.String[] { "Uuid", "Vector", "Properties", "ClassName", "Tenant", }); + internal_static_weaviategrpc_BatchObject_Properties_descriptor = + internal_static_weaviategrpc_BatchObject_descriptor.getNestedTypes().get(0); + internal_static_weaviategrpc_BatchObject_Properties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_BatchObject_Properties_descriptor, + new java.lang.String[] { "NonRefProperties", "RefPropsSingle", "RefPropsMulti", "NumberArrayProperties", "IntArrayProperties", "TextArrayProperties", "BooleanArrayProperties", }); + internal_static_weaviategrpc_BatchObject_RefPropertiesSingleTarget_descriptor = + internal_static_weaviategrpc_BatchObject_descriptor.getNestedTypes().get(1); + internal_static_weaviategrpc_BatchObject_RefPropertiesSingleTarget_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_BatchObject_RefPropertiesSingleTarget_descriptor, + new java.lang.String[] { "Uuids", "PropName", }); + internal_static_weaviategrpc_BatchObject_RefPropertiesMultiTarget_descriptor = + internal_static_weaviategrpc_BatchObject_descriptor.getNestedTypes().get(2); + internal_static_weaviategrpc_BatchObject_RefPropertiesMultiTarget_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_BatchObject_RefPropertiesMultiTarget_descriptor, + new java.lang.String[] { "Uuids", "PropName", "TargetCollection", }); + internal_static_weaviategrpc_BatchObjectsReply_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_weaviategrpc_BatchObjectsReply_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_BatchObjectsReply_descriptor, + new java.lang.String[] { "Results", "Took", }); + internal_static_weaviategrpc_BatchObjectsReply_BatchResults_descriptor = + internal_static_weaviategrpc_BatchObjectsReply_descriptor.getNestedTypes().get(0); + internal_static_weaviategrpc_BatchObjectsReply_BatchResults_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_BatchObjectsReply_BatchResults_descriptor, + new java.lang.String[] { "Index", "Error", }); + internal_static_weaviategrpc_SearchRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_weaviategrpc_SearchRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_SearchRequest_descriptor, + new java.lang.String[] { "ClassName", "Limit", "AdditionalProperties", "NearVector", "NearObject", "Properties", "HybridSearch", "Bm25Search", "Offset", "Autocut", "After", "Tenant", "Filters", "NearText", "NearImage", "NearAudio", "NearVideo", "ConsistencyLevel", "Generative", "Filters", "NearText", "NearImage", "NearAudio", "NearVideo", "ConsistencyLevel", "Generative", }); + internal_static_weaviategrpc_GenerativeSearch_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_weaviategrpc_GenerativeSearch_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_GenerativeSearch_descriptor, + new java.lang.String[] { "SingleResponsePrompt", "GroupedResponseTask", "GroupedProperties", }); + internal_static_weaviategrpc_TextArray_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_weaviategrpc_TextArray_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_TextArray_descriptor, + new java.lang.String[] { "Values", }); + internal_static_weaviategrpc_IntArray_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_weaviategrpc_IntArray_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_IntArray_descriptor, + new java.lang.String[] { "Values", }); + internal_static_weaviategrpc_NumberArray_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_weaviategrpc_NumberArray_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_NumberArray_descriptor, + new java.lang.String[] { "Values", }); + internal_static_weaviategrpc_BooleanArray_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_weaviategrpc_BooleanArray_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_BooleanArray_descriptor, + new java.lang.String[] { "Values", }); + internal_static_weaviategrpc_Filters_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_weaviategrpc_Filters_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_Filters_descriptor, + new java.lang.String[] { "Operator", "On", "Filters", "ValueText", "ValueInt", "ValueBoolean", "ValueNumber", "ValueTextArray", "ValueIntArray", "ValueBooleanArray", "ValueNumberArray", "TestValue", }); + internal_static_weaviategrpc_AdditionalProperties_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_weaviategrpc_AdditionalProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_AdditionalProperties_descriptor, + new java.lang.String[] { "Uuid", "Vector", "CreationTimeUnix", "LastUpdateTimeUnix", "Distance", "Certainty", "Score", "ExplainScore", "IsConsistent", }); + internal_static_weaviategrpc_Properties_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_weaviategrpc_Properties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_Properties_descriptor, + new java.lang.String[] { "NonRefProperties", "RefProperties", }); + internal_static_weaviategrpc_HybridSearchParams_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_weaviategrpc_HybridSearchParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_HybridSearchParams_descriptor, + new java.lang.String[] { "Query", "Properties", "Vector", "Alpha", "FusionType", }); + internal_static_weaviategrpc_NearTextSearchParams_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_weaviategrpc_NearTextSearchParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_NearTextSearchParams_descriptor, + new java.lang.String[] { "Query", "Certainty", "Distance", "MoveTo", "MoveAway", "Certainty", "Distance", "MoveTo", "MoveAway", }); + internal_static_weaviategrpc_NearTextSearchParams_Move_descriptor = + internal_static_weaviategrpc_NearTextSearchParams_descriptor.getNestedTypes().get(0); + internal_static_weaviategrpc_NearTextSearchParams_Move_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_NearTextSearchParams_Move_descriptor, + new java.lang.String[] { "Force", "Concepts", "Uuids", }); + internal_static_weaviategrpc_NearImageSearchParams_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_weaviategrpc_NearImageSearchParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_NearImageSearchParams_descriptor, + new java.lang.String[] { "Image", "Certainty", "Distance", "Certainty", "Distance", }); + internal_static_weaviategrpc_NearAudioSearchParams_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_weaviategrpc_NearAudioSearchParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_NearAudioSearchParams_descriptor, + new java.lang.String[] { "Audio", "Certainty", "Distance", "Certainty", "Distance", }); + internal_static_weaviategrpc_NearVideoSearchParams_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_weaviategrpc_NearVideoSearchParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_NearVideoSearchParams_descriptor, + new java.lang.String[] { "Video", "Certainty", "Distance", "Certainty", "Distance", }); + internal_static_weaviategrpc_BM25SearchParams_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_weaviategrpc_BM25SearchParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_BM25SearchParams_descriptor, + new java.lang.String[] { "Query", "Properties", }); + internal_static_weaviategrpc_RefProperties_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_weaviategrpc_RefProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_RefProperties_descriptor, + new java.lang.String[] { "ReferenceProperty", "LinkedProperties", "Metadata", "WhichCollection", }); + internal_static_weaviategrpc_NearVectorParams_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_weaviategrpc_NearVectorParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_NearVectorParams_descriptor, + new java.lang.String[] { "Vector", "Certainty", "Distance", "Certainty", "Distance", }); + internal_static_weaviategrpc_NearObjectParams_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_weaviategrpc_NearObjectParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_NearObjectParams_descriptor, + new java.lang.String[] { "Id", "Certainty", "Distance", "Certainty", "Distance", }); + internal_static_weaviategrpc_SearchReply_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_weaviategrpc_SearchReply_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_SearchReply_descriptor, + new java.lang.String[] { "Results", "Took", "GenerativeGroupedResult", }); + internal_static_weaviategrpc_SearchResult_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_weaviategrpc_SearchResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_SearchResult_descriptor, + new java.lang.String[] { "Properties", "AdditionalProperties", }); + internal_static_weaviategrpc_ResultAdditionalProps_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_weaviategrpc_ResultAdditionalProps_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_ResultAdditionalProps_descriptor, + new java.lang.String[] { "Id", "Vector", "CreationTimeUnix", "CreationTimeUnixPresent", "LastUpdateTimeUnix", "LastUpdateTimeUnixPresent", "Distance", "DistancePresent", "Certainty", "CertaintyPresent", "Score", "ScorePresent", "ExplainScore", "ExplainScorePresent", "IsConsistent", "Generative", "GenerativePresent", "IsConsistent", }); + internal_static_weaviategrpc_NumberArrayProperties_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_weaviategrpc_NumberArrayProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_NumberArrayProperties_descriptor, + new java.lang.String[] { "Values", "PropName", }); + internal_static_weaviategrpc_IntArrayProperties_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_weaviategrpc_IntArrayProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_IntArrayProperties_descriptor, + new java.lang.String[] { "Values", "PropName", }); + internal_static_weaviategrpc_TextArrayProperties_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_weaviategrpc_TextArrayProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_TextArrayProperties_descriptor, + new java.lang.String[] { "Values", "PropName", }); + internal_static_weaviategrpc_BooleanArrayProperties_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_weaviategrpc_BooleanArrayProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_BooleanArrayProperties_descriptor, + new java.lang.String[] { "Values", "PropName", }); + internal_static_weaviategrpc_ResultProperties_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_weaviategrpc_ResultProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_ResultProperties_descriptor, + new java.lang.String[] { "NonRefProperties", "RefProps", "ClassName", "Metadata", "NumberArrayProperties", "IntArrayProperties", "TextArrayProperties", "BooleanArrayProperties", }); + internal_static_weaviategrpc_ReturnRefProperties_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_weaviategrpc_ReturnRefProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviategrpc_ReturnRefProperties_descriptor, + new java.lang.String[] { "Properties", "PropName", }); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/io/weaviate/client/v1/batch/api/ObjectsBatcher.java b/src/main/java/io/weaviate/client/v1/batch/api/ObjectsBatcher.java index 430a0a57..a78fab73 100644 --- a/src/main/java/io/weaviate/client/v1/batch/api/ObjectsBatcher.java +++ b/src/main/java/io/weaviate/client/v1/batch/api/ObjectsBatcher.java @@ -1,10 +1,16 @@ package io.weaviate.client.v1.batch.api; +import io.weaviate.client.base.WeaviateError; +import io.weaviate.client.grpc.client.GrpcClient; +import io.weaviate.client.grpc.protocol.WeaviateGrpc; +import io.weaviate.client.grpc.protocol.WeaviateProto; +import io.weaviate.client.v1.batch.grpc.BatchObjectConverter; import io.weaviate.client.v1.batch.model.ObjectGetResponse; import io.weaviate.client.v1.batch.model.ObjectGetResponseStatus; import io.weaviate.client.v1.batch.model.ObjectsBatchRequestBody; import io.weaviate.client.v1.batch.model.ObjectsGetResponseAO2Result; import io.weaviate.client.v1.batch.util.ObjectsPath; +import io.weaviate.client.v1.data.replication.model.ConsistencyLevel; import lombok.AccessLevel; import lombok.Builder; import lombok.EqualsAndHashCode; @@ -14,6 +20,7 @@ import lombok.experimental.FieldDefaults; import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ObjectUtils; +import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.tuple.Pair; import io.weaviate.client.Config; import io.weaviate.client.base.BaseClient; @@ -61,11 +68,17 @@ public class ObjectsBatcher extends BaseClient private final List objects; private String consistencyLevel; private final List>> undoneFutures; + private WeaviateGrpc.WeaviateBlockingStub grpcClient; + private boolean useGRPC; private ObjectsBatcher(HttpClient httpClient, Config config, Data data, ObjectsPath objectsPath, BatchRetriesConfig batchRetriesConfig, AutoBatchConfig autoBatchConfig) { super(httpClient, config); + if (config.useGRPC()) { + this.useGRPC = config.useGRPC(); + this.grpcClient = GrpcClient.create(config); + } this.data = data; this.objectsPath = objectsPath; this.objects = new ArrayList<>(); @@ -217,7 +230,7 @@ private CompletableFuture> createRunFuture(List T runRecursively(List batch, int connectionErrorCount, int timeoutErrorCount, List combinedSingleResponses, DelayedExecutor delayedExecutor) { - Result result = internalRun(batch); + Result result = useGRPC ? internalGrpcRun(batch) : internalRun(batch); if (result.hasErrors()) { List messages = result.getError().getMessages(); @@ -274,6 +287,52 @@ private Result internalRun(List batch) { return new Result<>(resp); } + private Result internalGrpcRun(List batch) { + List batchObjects = batch.stream() + .map(BatchObjectConverter::toBatchObject) + .collect(Collectors.toList()); + WeaviateProto.BatchObjectsRequest.Builder batchObjectsRequestBuilder = WeaviateProto.BatchObjectsRequest.newBuilder(); + batchObjectsRequestBuilder.addAllObjects(batchObjects); + if (consistencyLevel != null) { + WeaviateProto.ConsistencyLevel cl = WeaviateProto.ConsistencyLevel.CONSISTENCY_LEVEL_ONE; + if (consistencyLevel.equals(ConsistencyLevel.ALL)) { + cl = WeaviateProto.ConsistencyLevel.CONSISTENCY_LEVEL_ALL; + } + if (consistencyLevel.equals(ConsistencyLevel.QUORUM)) { + cl = WeaviateProto.ConsistencyLevel.CONSISTENCY_LEVEL_QUORUM; + } + batchObjectsRequestBuilder.setConsistencyLevel(cl); + } + + WeaviateProto.BatchObjectsRequest batchObjectsRequest = batchObjectsRequestBuilder.build(); + WeaviateProto.BatchObjectsReply batchObjectsReply = this.grpcClient.batchObjects(batchObjectsRequest); + + List weaviateErrorMessages = batchObjectsReply.getResultsList().stream() + .map(WeaviateProto.BatchObjectsReply.BatchResults::getError) + .filter(e -> !e.isEmpty()) + .map(msg -> WeaviateErrorMessage.builder().message(msg).build()) + .collect(Collectors.toList()); + + if (!weaviateErrorMessages.isEmpty()) { + WeaviateErrorResponse weaviateErrorResponse = WeaviateErrorResponse.builder() + .code(422).message(StringUtils.join(weaviateErrorMessages, ",")).error(weaviateErrorMessages).build(); + return new Result<>(422, null, weaviateErrorResponse); + } + + ObjectGetResponse[] objectGetResponses = batch.stream().map(o -> { + ObjectGetResponse resp = new ObjectGetResponse(); + resp.setId(o.getId()); + resp.setClassName(o.getClassName()); + resp.setTenant(o.getTenant()); + ObjectsGetResponseAO2Result result = new ObjectsGetResponseAO2Result(); + result.setStatus(ObjectGetResponseStatus.SUCCESS); + resp.setResult(result); + return resp; + }).toArray(ObjectGetResponse[]::new); + + return new Result<>(200, objectGetResponses, null); + } + private Pair, List> fetchCreatedAndBuildBatchToReRun(List batch) { List rerunBatch = new ArrayList<>(batch.size()); List createdResponses = new ArrayList<>(batch.size()); diff --git a/src/main/java/io/weaviate/client/v1/batch/grpc/BatchObjectConverter.java b/src/main/java/io/weaviate/client/v1/batch/grpc/BatchObjectConverter.java new file mode 100644 index 00000000..4c287b53 --- /dev/null +++ b/src/main/java/io/weaviate/client/v1/batch/grpc/BatchObjectConverter.java @@ -0,0 +1,118 @@ +package io.weaviate.client.v1.batch.grpc; + +import com.google.protobuf.FloatValue; +import com.google.protobuf.Struct; +import com.google.protobuf.Value; +import io.weaviate.client.grpc.protocol.WeaviateGrpc; +import io.weaviate.client.grpc.protocol.WeaviateProto; +import io.weaviate.client.v1.data.model.WeaviateObject; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +public class BatchObjectConverter { + + public static WeaviateProto.BatchObject toBatchObject(WeaviateObject obj) { + WeaviateProto.BatchObject.Builder builder = WeaviateProto.BatchObject.newBuilder(); + if (obj.getId() != null) { + builder.setUuid(obj.getId()); + } + if (obj.getClassName() != null) { + builder.setClassName(obj.getClassName()); + } + if (obj.getVector() != null) { + builder.addAllVector(Arrays.asList(obj.getVector())); + } + if (obj.getTenant() != null) { + builder.setTenant(obj.getTenant()); + } + if (obj.getProperties() != null) { + builder.setProperties(buildProperties(obj.getProperties())); + } + return builder.build(); + } + + private static WeaviateProto.BatchObject.Properties buildProperties(Map properties) { + WeaviateProto.BatchObject.Properties.Builder builder = WeaviateProto.BatchObject.Properties.newBuilder(); + Map nonRefProperties = new HashMap<>(); + for (Map.Entry e : properties.entrySet()) { + String propName = e.getKey(); + Object propValue = e.getValue(); + if (propName.equals("_lastUpdateTimeUnix") || propName.equals("_creationTimeUnix")) { + // ignore for now _creationTimeUnix / _lastUpdateTimeUnix + continue; + } + if (propValue instanceof String) { + nonRefProperties.put(propName, Value.newBuilder().setStringValue((String) propValue).build()); + continue; + } + if (propValue instanceof Boolean) { + nonRefProperties.put(propName, Value.newBuilder().setBoolValue((Boolean) propValue).build()); + continue; + } + if (propValue instanceof Integer) { + nonRefProperties.put(propName, Value.newBuilder().setNumberValue(((Integer) propValue).doubleValue()).build()); + continue; + } + if (propValue instanceof Long) { + nonRefProperties.put(propName, Value.newBuilder().setNumberValue(((Long) propValue).doubleValue()).build()); + continue; + } + if (propValue instanceof Float) { + nonRefProperties.put(propName, Value.newBuilder().setNumberValue(((Float) propValue).doubleValue()).build()); + continue; + } + if (propValue instanceof Double) { + nonRefProperties.put(propName, Value.newBuilder().setNumberValue((Double) propValue).build()); + continue; + } + if (propValue instanceof String[]) { + // TODO: handle ref properties + WeaviateProto.TextArrayProperties textArrayProperties = WeaviateProto.TextArrayProperties.newBuilder() + .setPropName(propName).addAllValues(Arrays.asList((String[]) propValue)).build(); + builder.addTextArrayProperties(textArrayProperties); + continue; + } + if (propValue instanceof Boolean[]) { + WeaviateProto.BooleanArrayProperties booleanArrayProperties = WeaviateProto.BooleanArrayProperties.newBuilder() + .setPropName(propName).addAllValues(Arrays.asList((Boolean[]) propValue)).build(); + builder.addBooleanArrayProperties(booleanArrayProperties); + continue; + } + if (propValue instanceof Integer[]) { + List value = Arrays.stream((Integer[]) propValue).map(Integer::longValue).collect(Collectors.toList()); + WeaviateProto.IntArrayProperties intArrayProperties = WeaviateProto.IntArrayProperties.newBuilder() + .setPropName(propName).addAllValues(value).build(); + builder.addIntArrayProperties(intArrayProperties); + continue; + } + if (propValue instanceof Long[]) { + WeaviateProto.IntArrayProperties intArrayProperties = WeaviateProto.IntArrayProperties.newBuilder() + .setPropName(propName) + .addAllValues(Arrays.asList((Long[]) propValue)) + .build(); + builder.addIntArrayProperties(intArrayProperties); + continue; + } + if (propValue instanceof Float[]) { + List value = Arrays.stream((Float[]) propValue).map(Float::doubleValue).collect(Collectors.toList()); + WeaviateProto.NumberArrayProperties numberArrayProperties = WeaviateProto.NumberArrayProperties.newBuilder() + .setPropName(propName).addAllValues(value).build(); + builder.addNumberArrayProperties(numberArrayProperties); + continue; + } + if (propValue instanceof Double[]) { + WeaviateProto.NumberArrayProperties numberArrayProperties = WeaviateProto.NumberArrayProperties.newBuilder() + .setPropName(propName).addAllValues(Arrays.asList((Double[]) propValue)).build(); + builder.addNumberArrayProperties(numberArrayProperties); + } + } + if (!nonRefProperties.isEmpty()) { + builder.setNonRefProperties(Struct.newBuilder().putAllFields(nonRefProperties).build()); + } + + return builder.build(); + } +} diff --git a/src/main/proto/weaviate.proto b/src/main/proto/weaviate.proto new file mode 100644 index 00000000..efde9286 --- /dev/null +++ b/src/main/proto/weaviate.proto @@ -0,0 +1,310 @@ +syntax = "proto3"; + +package weaviategrpc; + +import "google/protobuf/struct.proto"; +option go_package = "github.com/weaviate/weaviate/grpc"; + +option java_package = "io.weaviate.client.grpc.protocol"; +option java_outer_classname = "WeaviateProto"; + + +service Weaviate { + rpc Search(SearchRequest) returns (SearchReply) {}; + rpc BatchObjects(BatchObjectsRequest) returns (BatchObjectsReply) {}; +} + +enum ConsistencyLevel { + CONSISTENCY_LEVEL_UNSPECIFIED = 0; + CONSISTENCY_LEVEL_ONE = 1; + CONSISTENCY_LEVEL_QUORUM = 2; + CONSISTENCY_LEVEL_ALL = 3; +} + + +message BatchObjectsRequest { + repeated BatchObject objects = 1; + optional ConsistencyLevel consistency_level = 2; +} + +message BatchObject { + message Properties { + google.protobuf.Struct non_ref_properties = 1; + // protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED + repeated RefPropertiesSingleTarget ref_props_single = 2; + // protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED + repeated RefPropertiesMultiTarget ref_props_multi = 3; + repeated NumberArrayProperties number_array_properties = 4; + repeated IntArrayProperties int_array_properties = 5; + repeated TextArrayProperties text_array_properties = 6; + repeated BooleanArrayProperties boolean_array_properties = 7; + } + + message RefPropertiesSingleTarget { + repeated string uuids = 1; + string prop_name = 2; + } + + message RefPropertiesMultiTarget { + repeated string uuids = 1; + string prop_name = 2; + string target_collection = 3; + } + + string uuid = 1; + // protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED + repeated float vector = 2; + Properties properties = 3; + string class_name = 4; + string tenant=5; +} + +message BatchObjectsReply { + message BatchResults { + int32 index = 1; + string error = 2; + } + + repeated BatchResults results = 1; + float took = 2; +} + +message SearchRequest { + string class_name = 1; + uint32 limit = 2; + AdditionalProperties additional_properties = 3; + NearVectorParams near_vector = 4; + NearObjectParams near_object = 5; + Properties properties = 6; + HybridSearchParams hybrid_search =7; + BM25SearchParams bm25_search =8; + uint32 offset = 9; + uint32 autocut = 10; + string after = 11; + string tenant = 12; + optional Filters filters = 13; + optional NearTextSearchParams near_text = 14; + optional NearImageSearchParams near_image = 15; + optional NearAudioSearchParams near_audio = 16; + optional NearVideoSearchParams near_video = 17; + optional ConsistencyLevel consistency_level = 18; + optional GenerativeSearch generative = 19; +} + +message GenerativeSearch { + string single_response_prompt = 1; + string grouped_response_task = 2; + repeated string grouped_properties = 3; +} + +message TextArray { + repeated string values = 1; +} +message IntArray { + repeated int64 values = 1; +} +message NumberArray { + repeated double values = 1; +} +message BooleanArray { + repeated bool values = 1; +} + +message Filters { + enum Operator { + OPERATOR_UNSPECIFIED = 0; + OPERATOR_EQUAL = 1; + OPERATOR_NOT_EQUAL = 2; + OPERATOR_GREATER_THAN = 3; + OPERATOR_GREATER_THAN_EQUAL = 4; + OPERATOR_LESS_THAN = 5; + OPERATOR_LESS_THAN_EQUAL = 6; + OPERATOR_AND = 7; + OPERATOR_OR = 8; + OPERATOR_WITHIN_GEO_RANGE = 9; + OPERATOR_LIKE = 10; + OPERATOR_IS_NULL = 11; + OPERATOR_CONTAINS_ANY = 12; + OPERATOR_CONTAINS_ALL = 13; + } + + + Operator operator = 1; + // protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED + repeated string on = 2; + repeated Filters filters = 3; + oneof test_value{ + string value_text = 4; + int64 value_int = 5; + bool value_boolean = 6; + float value_number = 7; + TextArray value_text_array = 9; + IntArray value_int_array = 10; + BooleanArray value_boolean_array = 11; + NumberArray value_number_array = 12; + }; +} + + +message AdditionalProperties { + bool uuid = 1; + bool vector = 2; + // protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE + bool creationTimeUnix = 3; + // protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE + bool lastUpdateTimeUnix = 4; + bool distance = 5; + bool certainty = 6; + bool score = 7; + // protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE + bool explainScore = 8; + bool is_consistent = 9; +} + + +message Properties { + repeated string non_ref_properties = 1; + repeated RefProperties ref_properties = 2; +} + +message HybridSearchParams { + string query = 1; + repeated string properties = 2; + // protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED + repeated float vector = 3; + float alpha = 4; + enum FusionType { + FUSION_TYPE_UNSPECIFIED = 0; + FUSION_TYPE_RANKED = 1; + FUSION_TYPE_RELATIVE_SCORE = 2; + } + FusionType fusion_type = 5; +} + +message NearTextSearchParams { + message Move{ + float force = 1; + repeated string concepts = 2; + repeated string uuids = 3; + } + + // protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED + repeated string query = 1; + optional double certainty = 2; + optional double distance = 3; + optional Move move_to = 4; + optional Move move_away = 5; +}; + +message NearImageSearchParams { + string image = 1; + optional double certainty = 2; + optional double distance = 3; +}; + +message NearAudioSearchParams { + string audio = 1; + optional double certainty = 2; + optional double distance = 3; +}; + +message NearVideoSearchParams { + string video = 1; + optional double certainty = 2; + optional double distance = 3; +}; + +message BM25SearchParams { + string query = 1; + repeated string properties = 2; +} + + +message RefProperties { + string reference_property = 2; + Properties linked_properties = 3; + AdditionalProperties metadata = 4; + string which_collection = 5; +} + +message NearVectorParams { + // protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED + repeated float vector = 1; + optional double certainty = 2; + optional double distance = 3; +} + +message NearObjectParams { + string id = 1; + optional double certainty = 2; + optional double distance = 3; +} + +message SearchReply { + repeated SearchResult results = 1; + float took = 2; + string generative_grouped_result = 3; +} + +message SearchResult { + ResultProperties properties = 1; + ResultAdditionalProps additional_properties = 2; +} + +message ResultAdditionalProps { + string id = 1; + // protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED + repeated float vector = 2; + int64 creation_time_unix = 3; + bool creation_time_unix_present = 4; + int64 last_update_time_unix = 5; + bool last_update_time_unix_present = 6; + float distance = 7; + bool distance_present = 8; + float certainty = 9; + bool certainty_present = 10; + float score = 11; + bool score_present = 12; + string explain_score = 13; + bool explain_score_present = 14; + optional bool is_consistent = 15; + string generative = 16; + bool generative_present = 17; +} + +message NumberArrayProperties { + repeated double values = 1; + string prop_name = 2; +} + +message IntArrayProperties { + repeated int64 values = 1; + string prop_name = 2; +} + +message TextArrayProperties { + repeated string values = 1; + string prop_name = 2; +} + +message BooleanArrayProperties { + repeated bool values = 1; + string prop_name = 2; +} + +message ResultProperties { + google.protobuf.Struct non_ref_properties = 1; + repeated ReturnRefProperties ref_props = 2; + string class_name = 3; + ResultAdditionalProps metadata = 4; + repeated NumberArrayProperties number_array_properties = 5; + repeated IntArrayProperties int_array_properties = 6; + repeated TextArrayProperties text_array_properties = 7; + repeated BooleanArrayProperties boolean_array_properties = 8; +} + +message ReturnRefProperties { + repeated ResultProperties properties = 1; + string prop_name = 2; +} + diff --git a/src/test/java/io/weaviate/integration/client/WeaviateTestGenerics.java b/src/test/java/io/weaviate/integration/client/WeaviateTestGenerics.java index eb2da6e0..e9340578 100644 --- a/src/test/java/io/weaviate/integration/client/WeaviateTestGenerics.java +++ b/src/test/java/io/weaviate/integration/client/WeaviateTestGenerics.java @@ -1,5 +1,6 @@ package io.weaviate.integration.client; +import io.weaviate.client.Config; import io.weaviate.client.WeaviateClient; import io.weaviate.client.base.Result; import io.weaviate.client.v1.batch.model.ObjectGetResponse; @@ -14,14 +15,21 @@ import io.weaviate.client.v1.schema.model.Tokenization; import io.weaviate.client.v1.schema.model.WeaviateClass; +import java.time.ZoneOffset; import java.util.ArrayList; import java.util.Arrays; +import java.util.Calendar; import java.util.Collections; +import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.TimeZone; +import java.util.function.Function; import java.util.function.Supplier; +import java.util.stream.IntStream; +import org.apache.commons.lang3.time.DateFormatUtils; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.InstanceOfAssertFactories.ARRAY; import static org.junit.Assert.assertEquals; @@ -758,6 +766,225 @@ public void cleanupWeaviate(WeaviateClient client) { } } + public static class AllPropertiesSchema { + + public String REF_CLASS = "RefClass"; + public String CLASS_NAME = "AllProperties"; + public void createSchema(WeaviateClient client) { + createAllPropertiesClass(client); + } + + public void createSchemaWithRefClass(WeaviateClient client) { + createAllPropertiesClass(client); + createRefClass(client); + } + + private void createAllPropertiesClass(WeaviateClient client) { + Result createResult = client.schema().classCreator() + .withClass(WeaviateClass.builder() + .className(CLASS_NAME) + .properties(Arrays.asList( + Property.builder() + .name("bool") + .dataType(Collections.singletonList(DataType.BOOLEAN)) + .build(), + Property.builder() + .name("bools") + .dataType(Collections.singletonList(DataType.BOOLEAN_ARRAY)) + .build(), + + Property.builder() + .name("int") + .dataType(Collections.singletonList(DataType.INT)) + .build(), + Property.builder() + .name("ints") + .dataType(Collections.singletonList(DataType.INT_ARRAY)) + .build(), + + Property.builder() + .name("number") + .dataType(Collections.singletonList(DataType.NUMBER)) + .build(), + Property.builder() + .name("numbers") + .dataType(Collections.singletonList(DataType.NUMBER_ARRAY)) + .build(), + + Property.builder() + .name("string") + .dataType(Collections.singletonList(DataType.STRING)) + .build(), + Property.builder() + .name("strings") + .dataType(Collections.singletonList(DataType.STRING_ARRAY)) + .build(), + + Property.builder() + .name("text") + .dataType(Collections.singletonList(DataType.TEXT)) + .build(), + Property.builder() + .name("texts") + .dataType(Collections.singletonList(DataType.TEXT_ARRAY)) + .build(), + + Property.builder() + .name("date") + .dataType(Collections.singletonList(DataType.DATE)) + .build(), + Property.builder() + .name("dates") + .dataType(Collections.singletonList(DataType.DATE_ARRAY)) + .build(), + + Property.builder() + .name("uuid") + .dataType(Collections.singletonList(DataType.UUID)) + .build(), + Property.builder() + .name("uuids") + .dataType(Collections.singletonList(DataType.UUID_ARRAY)) + .build() + )) + .build() + ) + .run(); + + assertThat(createResult).isNotNull() + .returns(false, Result::hasErrors) + .returns(true, Result::getResult); + } + + private void createRefClass(WeaviateClient client) { + WeaviateClass jeopardyClass = WeaviateClass.builder() + .className(REF_CLASS) + .properties(Arrays.asList( + Property.builder() + .name("category") + .dataType(Arrays.asList(DataType.TEXT)) + .build() + )) + .build(); + + Result result = client.schema().classCreator() + .withClass(jeopardyClass) + .run(); + + assertThat(result).isNotNull() + .withFailMessage(() -> result.getError().toString()) + .returns(false, Result::hasErrors) + .withFailMessage(null) + .returns(true, Result::getResult); + } + + public WeaviateObject[] objects() { + String id1 = "00000000-0000-0000-0000-000000000001"; + String id2 = "00000000-0000-0000-0000-000000000002"; + String id3 = "00000000-0000-0000-0000-000000000003"; + + TimeZone.setDefault(TimeZone.getTimeZone(ZoneOffset.UTC)); + Calendar cal1 = Calendar.getInstance(); + cal1.set(2023, Calendar.JANUARY, 15, 17, 1, 2); + Date date1 = cal1.getTime(); + Calendar cal2 = Calendar.getInstance(); + cal2.set(2023, Calendar.FEBRUARY, 15, 17, 1, 2); + Date date2 = cal2.getTime(); + Calendar cal3 = Calendar.getInstance(); + cal3.set(2023, Calendar.MARCH, 15, 17, 1, 2); + Date date3 = cal3.getTime(); + + String[] ids = new String[]{ + id1, id2, id3 + }; + Boolean[] bools = new Boolean[]{ + true, false, true + }; + Boolean[][] boolsArray = new Boolean[][]{ + {true, false, true}, + {true, false}, + {true}, + }; + Integer[] ints = new Integer[]{ + 1, 2, 3 + }; + Integer[][] intsArray = new Integer[][]{ + {1, 2, 3}, + {1, 2}, + {1}, + }; + Double[] numbers = new Double[]{ + 1.1, 2.2, 3.3 + }; + Double[][] numbersArray = new Double[][]{ + {1.1, 2.2, 3.3}, + {1.1, 2.2}, + {1.1}, + }; + String[] strings = new String[]{ + "string1", "string2", "string3" + }; + String[][] stringsArray = new String[][]{ + {"string1", "string2", "string3"}, + {"string1", "string2"}, + {"string1"}, + }; + String[] texts = new String[]{ + "text1", "text2", "text3" + }; + String[][] textsArray = new String[][]{ + {"text1", "text2", "text3"}, + {"text1", "text2"}, + {"text1"}, + }; + Date[] dates = new Date[]{ + date1, date2, date3 + }; + Date[][] datesArray = new Date[][]{ + {date1, date2, date3}, + {date1, date2}, + {date1}, + }; + String[] uuids = new String[]{ + id1, id2, id3 + }; + String[][] uuidsArray = new String[][]{ + {id1, id2, id3}, + {id1, id2}, + {id1}, + }; + + Function formatDate = date -> DateFormatUtils.format(date, "yyyy-MM-dd'T'HH:mm:ssZZZZZ"); + + WeaviateObject[] objects = IntStream.range(0, ids.length).mapToObj(i -> { + Map props = new HashMap<>(); + props.put("bool", bools[i]); + props.put("bools", boolsArray[i]); + props.put("int", ints[i]); + props.put("ints", intsArray[i]); + props.put("number", numbers[i]); + props.put("numbers", numbersArray[i]); + props.put("string", strings[i]); + props.put("strings", stringsArray[i]); + props.put("text", texts[i]); + props.put("texts", textsArray[i]); + props.put("date", formatDate.apply(dates[i])); + props.put("dates", Arrays.stream(datesArray[i]).map(formatDate).toArray(String[]::new)); + props.put("uuid", uuids[i]); + props.put("uuids", uuidsArray[i]); + + return WeaviateObject.builder() + .className(CLASS_NAME) + .id(ids[i]) + .properties(props) + .build(); + } + ).toArray(WeaviateObject[]::new); + + return objects; + } + } + public DocumentPassageSchema documentPassageSchema() { return new DocumentPassageSchema(); } diff --git a/src/test/java/io/weaviate/integration/client/WeaviateVersion.java b/src/test/java/io/weaviate/integration/client/WeaviateVersion.java index ae679bf3..301cecaf 100644 --- a/src/test/java/io/weaviate/integration/client/WeaviateVersion.java +++ b/src/test/java/io/weaviate/integration/client/WeaviateVersion.java @@ -3,9 +3,9 @@ public class WeaviateVersion { // to be set according to weaviate docker image - public static final String EXPECTED_WEAVIATE_VERSION = "1.21.0"; + public static final String EXPECTED_WEAVIATE_VERSION = "1.21.3"; // to be set according to weaviate docker image - public static final String EXPECTED_WEAVIATE_GIT_HASH = "8172acb"; + public static final String EXPECTED_WEAVIATE_GIT_HASH = "89078e7"; private WeaviateVersion() {} } diff --git a/src/test/java/io/weaviate/integration/client/batch/ClientBatchGrpcCreateTest.java b/src/test/java/io/weaviate/integration/client/batch/ClientBatchGrpcCreateTest.java new file mode 100644 index 00000000..bbb86f94 --- /dev/null +++ b/src/test/java/io/weaviate/integration/client/batch/ClientBatchGrpcCreateTest.java @@ -0,0 +1,88 @@ +package io.weaviate.integration.client.batch; + +import io.weaviate.client.Config; +import io.weaviate.client.WeaviateClient; +import io.weaviate.client.base.Result; +import io.weaviate.client.v1.batch.model.ObjectGetResponse; +import io.weaviate.client.v1.data.model.WeaviateObject; +import io.weaviate.integration.client.WeaviateTestGenerics; +import java.io.File; +import java.util.List; +import java.util.Map; +import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.api.InstanceOfAssertFactories.ARRAY; +import org.junit.Before; +import org.junit.ClassRule; +import org.junit.Test; +import org.testcontainers.containers.DockerComposeContainer; +import org.testcontainers.containers.wait.strategy.Wait; + +public class ClientBatchGrpcCreateTest { + + private static String host; + private static Integer port; + private static Integer grpcPort; + + @ClassRule + public static DockerComposeContainer compose = new DockerComposeContainer( + new File("src/test/resources/docker-compose-test.yaml") + ).withExposedService("weaviate_1", 8080, Wait.forHttp("/v1/.well-known/ready").forStatusCode(200)) + .withExposedService("weaviate_1", 50051) + .withTailChildContainers(true); + + @Before + public void before() { + host = compose.getServiceHost("weaviate_1", 8080); + port = compose.getServicePort("weaviate_1", 8080); + grpcPort = compose.getServicePort("weaviate_1", 50051); + } + + @Test + public void shouldCreateBatchUsingGRPC() { + testCreateBatch(true); + } + + @Test + public void shouldCreateBatchUsingRest() { + testCreateBatch(false); + } + + private void testCreateBatch(Boolean useGRPC) { + Config config = new Config("http", host + ":" + port); + config.setUseGRPC(useGRPC); + config.setGrpcAddress(host + ":" + grpcPort); + WeaviateClient client = new WeaviateClient(config); + // create schema + WeaviateTestGenerics.AllPropertiesSchema testData = new WeaviateTestGenerics.AllPropertiesSchema(); + testData.createSchema(client); + + WeaviateObject[] objects = testData.objects(); + Result result = client.batch().objectsBatcher() + .withObjects(objects) + .run(); + assertThat(result).isNotNull() + .returns(false, Result::hasErrors) + .extracting(Result::getResult).asInstanceOf(ARRAY) + .hasSize(objects.length); + + for (WeaviateObject obj : objects) { + Result> resultObj = client.data().objectsGetter() + .withID(obj.getId()).withClassName(obj.getTenant()) + .run(); + assertThat(resultObj).isNotNull() + .returns(false, Result::hasErrors) + .extracting(Result::getResult).isNotNull() + .extracting(r -> r.get(0)).isNotNull() + .satisfies(o -> { + assertThat(o.getId()).isEqualTo(obj.getId()); + assertThat(o.getProperties()).isNotNull() + .extracting(Map::size).isEqualTo(obj.getProperties().size()); + }); + } + // clean up + Result delete = client.schema().classDeleter().withClassName(testData.CLASS_NAME).run(); + assertThat(delete).isNotNull() + .returns(false, Result::hasErrors) + .extracting(Result::getResult).isEqualTo(Boolean.TRUE); + } +} diff --git a/src/test/resources/docker-compose-azure.yaml b/src/test/resources/docker-compose-azure.yaml index 8820688c..bb602e4a 100644 --- a/src/test/resources/docker-compose-azure.yaml +++ b/src/test/resources/docker-compose-azure.yaml @@ -10,7 +10,7 @@ services: - --scheme - http - --write-timeout=600s - image: semitechnologies/weaviate:1.21.0 + image: semitechnologies/weaviate:1.21.3 restart: on-failure:0 environment: PERSISTENCE_DATA_PATH: '/var/lib/weaviate' diff --git a/src/test/resources/docker-compose-cluster.yaml b/src/test/resources/docker-compose-cluster.yaml index 642765e0..a34a3d10 100644 --- a/src/test/resources/docker-compose-cluster.yaml +++ b/src/test/resources/docker-compose-cluster.yaml @@ -10,7 +10,7 @@ services: - --scheme - http - --write-timeout=600s - image: semitechnologies/weaviate:1.21.0 + image: semitechnologies/weaviate:1.21.3 restart: on-failure:0 environment: LOG_LEVEL: 'debug' @@ -41,7 +41,7 @@ services: - '8088' - --scheme - http - image: semitechnologies/weaviate:1.21.0 + image: semitechnologies/weaviate:1.21.3 restart: on-failure:0 environment: LOG_LEVEL: 'debug' diff --git a/src/test/resources/docker-compose-okta-cc.yaml b/src/test/resources/docker-compose-okta-cc.yaml index f81b4a21..0f4a486e 100644 --- a/src/test/resources/docker-compose-okta-cc.yaml +++ b/src/test/resources/docker-compose-okta-cc.yaml @@ -10,7 +10,7 @@ services: - --scheme - http - --write-timeout=600s - image: semitechnologies/weaviate:1.21.0 + image: semitechnologies/weaviate:1.21.3 restart: on-failure:0 environment: PERSISTENCE_DATA_PATH: '/var/lib/weaviate' diff --git a/src/test/resources/docker-compose-okta-users.yaml b/src/test/resources/docker-compose-okta-users.yaml index b7304138..0b892e21 100644 --- a/src/test/resources/docker-compose-okta-users.yaml +++ b/src/test/resources/docker-compose-okta-users.yaml @@ -10,7 +10,7 @@ services: - --scheme - http - --write-timeout=600s - image: semitechnologies/weaviate:1.21.0 + image: semitechnologies/weaviate:1.21.3 restart: on-failure:0 environment: PERSISTENCE_DATA_PATH: '/var/lib/weaviate' diff --git a/src/test/resources/docker-compose-proxy.yaml b/src/test/resources/docker-compose-proxy.yaml index cbe6dc62..2c026b6c 100644 --- a/src/test/resources/docker-compose-proxy.yaml +++ b/src/test/resources/docker-compose-proxy.yaml @@ -9,7 +9,7 @@ services: - '8080' - --scheme - http - image: semitechnologies/weaviate:1.21.0 + image: semitechnologies/weaviate:1.21.3 restart: on-failure:0 environment: LOG_LEVEL: "debug" diff --git a/src/test/resources/docker-compose-test.yaml b/src/test/resources/docker-compose-test.yaml index 8dec0f7d..fdab0573 100644 --- a/src/test/resources/docker-compose-test.yaml +++ b/src/test/resources/docker-compose-test.yaml @@ -9,7 +9,7 @@ services: - '8080' - --scheme - http - image: semitechnologies/weaviate:1.21.0 + image: semitechnologies/weaviate:1.21.3 links: - "contextionary:contextionary" restart: on-failure:0 diff --git a/src/test/resources/docker-compose-wcs.yaml b/src/test/resources/docker-compose-wcs.yaml index ffeb22dc..bf7cc032 100644 --- a/src/test/resources/docker-compose-wcs.yaml +++ b/src/test/resources/docker-compose-wcs.yaml @@ -10,7 +10,7 @@ services: - --scheme - http - --write-timeout=600s - image: semitechnologies/weaviate:1.21.0 + image: semitechnologies/weaviate:1.21.3 restart: on-failure:0 environment: PERSISTENCE_DATA_PATH: '/var/lib/weaviate'