File tree Expand file tree Collapse file tree
src/main/java/com/google/cloud/datastore Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040 </exclusion >
4141 </exclusions >
4242 </dependency >
43+ <dependency >
44+ <groupId >io.grpc</groupId >
45+ <artifactId >grpc-core</artifactId >
46+ </dependency >
4347 <dependency >
4448 <groupId >${project.groupId} </groupId >
4549 <artifactId >google-cloud-core</artifactId >
Original file line number Diff line number Diff line change 2727import com .google .common .primitives .Booleans ;
2828import com .google .common .primitives .Doubles ;
2929import com .google .common .primitives .Longs ;
30-
30+ import io . grpc . Status ;
3131import java .io .Serializable ;
3232import java .util .ArrayList ;
3333import java .util .Arrays ;
@@ -282,9 +282,9 @@ public Builder<V> setBinding(String name, Key... value) {
282282 * @param value a {@link FullEntity} object or a list of {@link FullEntity} objects that binds
283283 * to a given name
284284 */
285+ @ Deprecated
285286 public Builder <V > setBinding (String name , FullEntity <?>... value ) {
286- namedBindings .put (name , toBinding (EntityValue .MARSHALLER , Arrays .asList (value )));
287- return this ;
287+ throw new DatastoreException (Status .Code .UNIMPLEMENTED .value (), "Binding entities is not supported." , "UNIMPLEMENTED" );
288288 }
289289
290290 /**
@@ -378,9 +378,9 @@ public Builder<V> addBinding(Key... value) {
378378 * @param value a {@link FullEntity} object or a list of {@link FullEntity} objects to be set as
379379 * a new positional binding
380380 */
381+ @ Deprecated
381382 public Builder <V > addBinding (FullEntity <?>... value ) {
382- positionalBindings .add (toBinding (EntityValue .MARSHALLER , Arrays .asList (value )));
383- return this ;
383+ throw new DatastoreException (Status .Code .UNIMPLEMENTED .value (), "Binding entities is not supported." , "UNIMPLEMENTED" );
384384 }
385385
386386 /**
You can’t perform that action at this time.
0 commit comments