diff --git a/google-cloud-datastore/pom.xml b/google-cloud-datastore/pom.xml index 7700059cb37c..17c889ef8025 100644 --- a/google-cloud-datastore/pom.xml +++ b/google-cloud-datastore/pom.xml @@ -40,6 +40,10 @@ + + io.grpc + grpc-core + ${project.groupId} google-cloud-core diff --git a/google-cloud-datastore/src/main/java/com/google/cloud/datastore/GqlQuery.java b/google-cloud-datastore/src/main/java/com/google/cloud/datastore/GqlQuery.java index fc63f781e52f..c3c40a3d3e2f 100644 --- a/google-cloud-datastore/src/main/java/com/google/cloud/datastore/GqlQuery.java +++ b/google-cloud-datastore/src/main/java/com/google/cloud/datastore/GqlQuery.java @@ -27,7 +27,7 @@ import com.google.common.primitives.Booleans; import com.google.common.primitives.Doubles; import com.google.common.primitives.Longs; - +import io.grpc.Status; import java.io.Serializable; import java.util.ArrayList; import java.util.Arrays; @@ -282,9 +282,9 @@ public Builder setBinding(String name, Key... value) { * @param value a {@link FullEntity} object or a list of {@link FullEntity} objects that binds * to a given name */ + @Deprecated public Builder setBinding(String name, FullEntity... value) { - namedBindings.put(name, toBinding(EntityValue.MARSHALLER, Arrays.asList(value))); - return this; + throw new DatastoreException(Status.Code.UNIMPLEMENTED.value(), "Binding entities is not supported.", "UNIMPLEMENTED"); } /** @@ -378,9 +378,9 @@ public Builder addBinding(Key... value) { * @param value a {@link FullEntity} object or a list of {@link FullEntity} objects to be set as * a new positional binding */ + @Deprecated public Builder addBinding(FullEntity... value) { - positionalBindings.add(toBinding(EntityValue.MARSHALLER, Arrays.asList(value))); - return this; + throw new DatastoreException(Status.Code.UNIMPLEMENTED.value(), "Binding entities is not supported.", "UNIMPLEMENTED"); } /**