File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
src/main/java/com/google/cloud/datastore Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 40
40
</exclusion >
41
41
</exclusions >
42
42
</dependency >
43
+ <dependency >
44
+ <groupId >io.grpc</groupId >
45
+ <artifactId >grpc-core</artifactId >
46
+ </dependency >
43
47
<dependency >
44
48
<groupId >${project.groupId} </groupId >
45
49
<artifactId >google-cloud-core</artifactId >
Original file line number Diff line number Diff line change 27
27
import com .google .common .primitives .Booleans ;
28
28
import com .google .common .primitives .Doubles ;
29
29
import com .google .common .primitives .Longs ;
30
-
30
+ import io . grpc . Status ;
31
31
import java .io .Serializable ;
32
32
import java .util .ArrayList ;
33
33
import java .util .Arrays ;
@@ -282,9 +282,9 @@ public Builder<V> setBinding(String name, Key... value) {
282
282
* @param value a {@link FullEntity} object or a list of {@link FullEntity} objects that binds
283
283
* to a given name
284
284
*/
285
+ @ Deprecated
285
286
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" );
288
288
}
289
289
290
290
/**
@@ -378,9 +378,9 @@ public Builder<V> addBinding(Key... value) {
378
378
* @param value a {@link FullEntity} object or a list of {@link FullEntity} objects to be set as
379
379
* a new positional binding
380
380
*/
381
+ @ Deprecated
381
382
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" );
384
384
}
385
385
386
386
/**
You can’t perform that action at this time.
0 commit comments