@@ -39,6 +39,7 @@ private AllocateIdsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> bui
3939
4040 private AllocateIdsRequest () {
4141 projectId_ = "" ;
42+ databaseId_ = "" ;
4243 keys_ = java .util .Collections .emptyList ();
4344 }
4445
@@ -88,6 +89,13 @@ private AllocateIdsRequest(
8889 projectId_ = s ;
8990 break ;
9091 }
92+ case 74 :
93+ {
94+ java .lang .String s = input .readStringRequireUtf8 ();
95+
96+ databaseId_ = s ;
97+ break ;
98+ }
9199 default :
92100 {
93101 if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
@@ -176,6 +184,59 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
176184 }
177185 }
178186
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+
179240 public static final int KEYS_FIELD_NUMBER = 1 ;
180241 private java .util .List <com .google .datastore .v1 .Key > keys_ ;
181242 /**
@@ -274,6 +335,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
274335 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (projectId_ )) {
275336 com .google .protobuf .GeneratedMessageV3 .writeString (output , 8 , projectId_ );
276337 }
338+ if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (databaseId_ )) {
339+ com .google .protobuf .GeneratedMessageV3 .writeString (output , 9 , databaseId_ );
340+ }
277341 unknownFields .writeTo (output );
278342 }
279343
@@ -289,6 +353,9 @@ public int getSerializedSize() {
289353 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (projectId_ )) {
290354 size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (8 , projectId_ );
291355 }
356+ if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (databaseId_ )) {
357+ size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (9 , databaseId_ );
358+ }
292359 size += unknownFields .getSerializedSize ();
293360 memoizedSize = size ;
294361 return size ;
@@ -306,6 +373,7 @@ public boolean equals(final java.lang.Object obj) {
306373 (com .google .datastore .v1 .AllocateIdsRequest ) obj ;
307374
308375 if (!getProjectId ().equals (other .getProjectId ())) return false ;
376+ if (!getDatabaseId ().equals (other .getDatabaseId ())) return false ;
309377 if (!getKeysList ().equals (other .getKeysList ())) return false ;
310378 if (!unknownFields .equals (other .unknownFields )) return false ;
311379 return true ;
@@ -320,6 +388,8 @@ public int hashCode() {
320388 hash = (19 * hash ) + getDescriptor ().hashCode ();
321389 hash = (37 * hash ) + PROJECT_ID_FIELD_NUMBER ;
322390 hash = (53 * hash ) + getProjectId ().hashCode ();
391+ hash = (37 * hash ) + DATABASE_ID_FIELD_NUMBER ;
392+ hash = (53 * hash ) + getDatabaseId ().hashCode ();
323393 if (getKeysCount () > 0 ) {
324394 hash = (37 * hash ) + KEYS_FIELD_NUMBER ;
325395 hash = (53 * hash ) + getKeysList ().hashCode ();
@@ -473,6 +543,8 @@ public Builder clear() {
473543 super .clear ();
474544 projectId_ = "" ;
475545
546+ databaseId_ = "" ;
547+
476548 if (keysBuilder_ == null ) {
477549 keys_ = java .util .Collections .emptyList ();
478550 bitField0_ = (bitField0_ & ~0x00000001 );
@@ -508,6 +580,7 @@ public com.google.datastore.v1.AllocateIdsRequest buildPartial() {
508580 new com .google .datastore .v1 .AllocateIdsRequest (this );
509581 int from_bitField0_ = bitField0_ ;
510582 result .projectId_ = projectId_ ;
583+ result .databaseId_ = databaseId_ ;
511584 if (keysBuilder_ == null ) {
512585 if (((bitField0_ & 0x00000001 ) != 0 )) {
513586 keys_ = java .util .Collections .unmodifiableList (keys_ );
@@ -570,6 +643,10 @@ public Builder mergeFrom(com.google.datastore.v1.AllocateIdsRequest other) {
570643 projectId_ = other .projectId_ ;
571644 onChanged ();
572645 }
646+ if (!other .getDatabaseId ().isEmpty ()) {
647+ databaseId_ = other .databaseId_ ;
648+ onChanged ();
649+ }
573650 if (keysBuilder_ == null ) {
574651 if (!other .keys_ .isEmpty ()) {
575652 if (keys_ .isEmpty ()) {
@@ -734,6 +811,122 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
734811 return this ;
735812 }
736813
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+
737930 private java .util .List <com .google .datastore .v1 .Key > keys_ = java .util .Collections .emptyList ();
738931
739932 private void ensureKeysIsMutable () {
0 commit comments