@@ -39,6 +39,7 @@ private AllocateIdsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> bui
39
39
40
40
private AllocateIdsRequest () {
41
41
projectId_ = "" ;
42
+ databaseId_ = "" ;
42
43
keys_ = java .util .Collections .emptyList ();
43
44
}
44
45
@@ -88,6 +89,13 @@ private AllocateIdsRequest(
88
89
projectId_ = s ;
89
90
break ;
90
91
}
92
+ case 74 :
93
+ {
94
+ java .lang .String s = input .readStringRequireUtf8 ();
95
+
96
+ databaseId_ = s ;
97
+ break ;
98
+ }
91
99
default :
92
100
{
93
101
if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
@@ -176,6 +184,59 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
176
184
}
177
185
}
178
186
187
+ public static final int DATABASE_ID_FIELD_NUMBER = 9 ;
188
+ private volatile java .lang .Object databaseId_ ;
189
+ /**
190
+ *
191
+ *
192
+ * <pre>
193
+ * The ID of the database against which to make the request.
194
+ * '(default)' is not allowed; please use empty string '' to refer the default
195
+ * database.
196
+ * </pre>
197
+ *
198
+ * <code>string database_id = 9;</code>
199
+ *
200
+ * @return The databaseId.
201
+ */
202
+ @ java .lang .Override
203
+ public java .lang .String getDatabaseId () {
204
+ java .lang .Object ref = databaseId_ ;
205
+ if (ref instanceof java .lang .String ) {
206
+ return (java .lang .String ) ref ;
207
+ } else {
208
+ com .google .protobuf .ByteString bs = (com .google .protobuf .ByteString ) ref ;
209
+ java .lang .String s = bs .toStringUtf8 ();
210
+ databaseId_ = s ;
211
+ return s ;
212
+ }
213
+ }
214
+ /**
215
+ *
216
+ *
217
+ * <pre>
218
+ * The ID of the database against which to make the request.
219
+ * '(default)' is not allowed; please use empty string '' to refer the default
220
+ * database.
221
+ * </pre>
222
+ *
223
+ * <code>string database_id = 9;</code>
224
+ *
225
+ * @return The bytes for databaseId.
226
+ */
227
+ @ java .lang .Override
228
+ public com .google .protobuf .ByteString getDatabaseIdBytes () {
229
+ java .lang .Object ref = databaseId_ ;
230
+ if (ref instanceof java .lang .String ) {
231
+ com .google .protobuf .ByteString b =
232
+ com .google .protobuf .ByteString .copyFromUtf8 ((java .lang .String ) ref );
233
+ databaseId_ = b ;
234
+ return b ;
235
+ } else {
236
+ return (com .google .protobuf .ByteString ) ref ;
237
+ }
238
+ }
239
+
179
240
public static final int KEYS_FIELD_NUMBER = 1 ;
180
241
private java .util .List <com .google .datastore .v1 .Key > keys_ ;
181
242
/**
@@ -274,6 +335,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
274
335
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (projectId_ )) {
275
336
com .google .protobuf .GeneratedMessageV3 .writeString (output , 8 , projectId_ );
276
337
}
338
+ if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (databaseId_ )) {
339
+ com .google .protobuf .GeneratedMessageV3 .writeString (output , 9 , databaseId_ );
340
+ }
277
341
unknownFields .writeTo (output );
278
342
}
279
343
@@ -289,6 +353,9 @@ public int getSerializedSize() {
289
353
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (projectId_ )) {
290
354
size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (8 , projectId_ );
291
355
}
356
+ if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (databaseId_ )) {
357
+ size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (9 , databaseId_ );
358
+ }
292
359
size += unknownFields .getSerializedSize ();
293
360
memoizedSize = size ;
294
361
return size ;
@@ -306,6 +373,7 @@ public boolean equals(final java.lang.Object obj) {
306
373
(com .google .datastore .v1 .AllocateIdsRequest ) obj ;
307
374
308
375
if (!getProjectId ().equals (other .getProjectId ())) return false ;
376
+ if (!getDatabaseId ().equals (other .getDatabaseId ())) return false ;
309
377
if (!getKeysList ().equals (other .getKeysList ())) return false ;
310
378
if (!unknownFields .equals (other .unknownFields )) return false ;
311
379
return true ;
@@ -320,6 +388,8 @@ public int hashCode() {
320
388
hash = (19 * hash ) + getDescriptor ().hashCode ();
321
389
hash = (37 * hash ) + PROJECT_ID_FIELD_NUMBER ;
322
390
hash = (53 * hash ) + getProjectId ().hashCode ();
391
+ hash = (37 * hash ) + DATABASE_ID_FIELD_NUMBER ;
392
+ hash = (53 * hash ) + getDatabaseId ().hashCode ();
323
393
if (getKeysCount () > 0 ) {
324
394
hash = (37 * hash ) + KEYS_FIELD_NUMBER ;
325
395
hash = (53 * hash ) + getKeysList ().hashCode ();
@@ -473,6 +543,8 @@ public Builder clear() {
473
543
super .clear ();
474
544
projectId_ = "" ;
475
545
546
+ databaseId_ = "" ;
547
+
476
548
if (keysBuilder_ == null ) {
477
549
keys_ = java .util .Collections .emptyList ();
478
550
bitField0_ = (bitField0_ & ~0x00000001 );
@@ -508,6 +580,7 @@ public com.google.datastore.v1.AllocateIdsRequest buildPartial() {
508
580
new com .google .datastore .v1 .AllocateIdsRequest (this );
509
581
int from_bitField0_ = bitField0_ ;
510
582
result .projectId_ = projectId_ ;
583
+ result .databaseId_ = databaseId_ ;
511
584
if (keysBuilder_ == null ) {
512
585
if (((bitField0_ & 0x00000001 ) != 0 )) {
513
586
keys_ = java .util .Collections .unmodifiableList (keys_ );
@@ -570,6 +643,10 @@ public Builder mergeFrom(com.google.datastore.v1.AllocateIdsRequest other) {
570
643
projectId_ = other .projectId_ ;
571
644
onChanged ();
572
645
}
646
+ if (!other .getDatabaseId ().isEmpty ()) {
647
+ databaseId_ = other .databaseId_ ;
648
+ onChanged ();
649
+ }
573
650
if (keysBuilder_ == null ) {
574
651
if (!other .keys_ .isEmpty ()) {
575
652
if (keys_ .isEmpty ()) {
@@ -734,6 +811,122 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
734
811
return this ;
735
812
}
736
813
814
+ private java .lang .Object databaseId_ = "" ;
815
+ /**
816
+ *
817
+ *
818
+ * <pre>
819
+ * The ID of the database against which to make the request.
820
+ * '(default)' is not allowed; please use empty string '' to refer the default
821
+ * database.
822
+ * </pre>
823
+ *
824
+ * <code>string database_id = 9;</code>
825
+ *
826
+ * @return The databaseId.
827
+ */
828
+ public java .lang .String getDatabaseId () {
829
+ java .lang .Object ref = databaseId_ ;
830
+ if (!(ref instanceof java .lang .String )) {
831
+ com .google .protobuf .ByteString bs = (com .google .protobuf .ByteString ) ref ;
832
+ java .lang .String s = bs .toStringUtf8 ();
833
+ databaseId_ = s ;
834
+ return s ;
835
+ } else {
836
+ return (java .lang .String ) ref ;
837
+ }
838
+ }
839
+ /**
840
+ *
841
+ *
842
+ * <pre>
843
+ * The ID of the database against which to make the request.
844
+ * '(default)' is not allowed; please use empty string '' to refer the default
845
+ * database.
846
+ * </pre>
847
+ *
848
+ * <code>string database_id = 9;</code>
849
+ *
850
+ * @return The bytes for databaseId.
851
+ */
852
+ public com .google .protobuf .ByteString getDatabaseIdBytes () {
853
+ java .lang .Object ref = databaseId_ ;
854
+ if (ref instanceof String ) {
855
+ com .google .protobuf .ByteString b =
856
+ com .google .protobuf .ByteString .copyFromUtf8 ((java .lang .String ) ref );
857
+ databaseId_ = b ;
858
+ return b ;
859
+ } else {
860
+ return (com .google .protobuf .ByteString ) ref ;
861
+ }
862
+ }
863
+ /**
864
+ *
865
+ *
866
+ * <pre>
867
+ * The ID of the database against which to make the request.
868
+ * '(default)' is not allowed; please use empty string '' to refer the default
869
+ * database.
870
+ * </pre>
871
+ *
872
+ * <code>string database_id = 9;</code>
873
+ *
874
+ * @param value The databaseId to set.
875
+ * @return This builder for chaining.
876
+ */
877
+ public Builder setDatabaseId (java .lang .String value ) {
878
+ if (value == null ) {
879
+ throw new NullPointerException ();
880
+ }
881
+
882
+ databaseId_ = value ;
883
+ onChanged ();
884
+ return this ;
885
+ }
886
+ /**
887
+ *
888
+ *
889
+ * <pre>
890
+ * The ID of the database against which to make the request.
891
+ * '(default)' is not allowed; please use empty string '' to refer the default
892
+ * database.
893
+ * </pre>
894
+ *
895
+ * <code>string database_id = 9;</code>
896
+ *
897
+ * @return This builder for chaining.
898
+ */
899
+ public Builder clearDatabaseId () {
900
+
901
+ databaseId_ = getDefaultInstance ().getDatabaseId ();
902
+ onChanged ();
903
+ return this ;
904
+ }
905
+ /**
906
+ *
907
+ *
908
+ * <pre>
909
+ * The ID of the database against which to make the request.
910
+ * '(default)' is not allowed; please use empty string '' to refer the default
911
+ * database.
912
+ * </pre>
913
+ *
914
+ * <code>string database_id = 9;</code>
915
+ *
916
+ * @param value The bytes for databaseId to set.
917
+ * @return This builder for chaining.
918
+ */
919
+ public Builder setDatabaseIdBytes (com .google .protobuf .ByteString value ) {
920
+ if (value == null ) {
921
+ throw new NullPointerException ();
922
+ }
923
+ checkByteStringIsUtf8 (value );
924
+
925
+ databaseId_ = value ;
926
+ onChanged ();
927
+ return this ;
928
+ }
929
+
737
930
private java .util .List <com .google .datastore .v1 .Key > keys_ = java .util .Collections .emptyList ();
738
931
739
932
private void ensureKeysIsMutable () {
0 commit comments