@@ -86,6 +86,21 @@ private CommitResponse(
8686 case 32 :
8787 {
8888 indexUpdates_ = input .readInt32 ();
89+ break ;
90+ }
91+ case 66 :
92+ {
93+ com .google .protobuf .Timestamp .Builder subBuilder = null ;
94+ if (commitTime_ != null ) {
95+ subBuilder = commitTime_ .toBuilder ();
96+ }
97+ commitTime_ =
98+ input .readMessage (com .google .protobuf .Timestamp .parser (), extensionRegistry );
99+ if (subBuilder != null ) {
100+ subBuilder .mergeFrom (commitTime_ );
101+ commitTime_ = subBuilder .buildPartial ();
102+ }
103+
89104 break ;
90105 }
91106 default :
@@ -218,6 +233,52 @@ public int getIndexUpdates() {
218233 return indexUpdates_ ;
219234 }
220235
236+ public static final int COMMIT_TIME_FIELD_NUMBER = 8 ;
237+ private com .google .protobuf .Timestamp commitTime_ ;
238+ /**
239+ *
240+ *
241+ * <pre>
242+ * The transaction commit timestamp. Not set for non-transactional commits.
243+ * </pre>
244+ *
245+ * <code>.google.protobuf.Timestamp commit_time = 8;</code>
246+ *
247+ * @return Whether the commitTime field is set.
248+ */
249+ @ java .lang .Override
250+ public boolean hasCommitTime () {
251+ return commitTime_ != null ;
252+ }
253+ /**
254+ *
255+ *
256+ * <pre>
257+ * The transaction commit timestamp. Not set for non-transactional commits.
258+ * </pre>
259+ *
260+ * <code>.google.protobuf.Timestamp commit_time = 8;</code>
261+ *
262+ * @return The commitTime.
263+ */
264+ @ java .lang .Override
265+ public com .google .protobuf .Timestamp getCommitTime () {
266+ return commitTime_ == null ? com .google .protobuf .Timestamp .getDefaultInstance () : commitTime_ ;
267+ }
268+ /**
269+ *
270+ *
271+ * <pre>
272+ * The transaction commit timestamp. Not set for non-transactional commits.
273+ * </pre>
274+ *
275+ * <code>.google.protobuf.Timestamp commit_time = 8;</code>
276+ */
277+ @ java .lang .Override
278+ public com .google .protobuf .TimestampOrBuilder getCommitTimeOrBuilder () {
279+ return getCommitTime ();
280+ }
281+
221282 private byte memoizedIsInitialized = -1 ;
222283
223284 @ java .lang .Override
@@ -238,6 +299,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
238299 if (indexUpdates_ != 0 ) {
239300 output .writeInt32 (4 , indexUpdates_ );
240301 }
302+ if (commitTime_ != null ) {
303+ output .writeMessage (8 , getCommitTime ());
304+ }
241305 unknownFields .writeTo (output );
242306 }
243307
@@ -253,6 +317,9 @@ public int getSerializedSize() {
253317 if (indexUpdates_ != 0 ) {
254318 size += com .google .protobuf .CodedOutputStream .computeInt32Size (4 , indexUpdates_ );
255319 }
320+ if (commitTime_ != null ) {
321+ size += com .google .protobuf .CodedOutputStream .computeMessageSize (8 , getCommitTime ());
322+ }
256323 size += unknownFields .getSerializedSize ();
257324 memoizedSize = size ;
258325 return size ;
@@ -270,6 +337,10 @@ public boolean equals(final java.lang.Object obj) {
270337
271338 if (!getMutationResultsList ().equals (other .getMutationResultsList ())) return false ;
272339 if (getIndexUpdates () != other .getIndexUpdates ()) return false ;
340+ if (hasCommitTime () != other .hasCommitTime ()) return false ;
341+ if (hasCommitTime ()) {
342+ if (!getCommitTime ().equals (other .getCommitTime ())) return false ;
343+ }
273344 if (!unknownFields .equals (other .unknownFields )) return false ;
274345 return true ;
275346 }
@@ -287,6 +358,10 @@ public int hashCode() {
287358 }
288359 hash = (37 * hash ) + INDEX_UPDATES_FIELD_NUMBER ;
289360 hash = (53 * hash ) + getIndexUpdates ();
361+ if (hasCommitTime ()) {
362+ hash = (37 * hash ) + COMMIT_TIME_FIELD_NUMBER ;
363+ hash = (53 * hash ) + getCommitTime ().hashCode ();
364+ }
290365 hash = (29 * hash ) + unknownFields .hashCode ();
291366 memoizedHashCode = hash ;
292367 return hash ;
@@ -442,6 +517,12 @@ public Builder clear() {
442517 }
443518 indexUpdates_ = 0 ;
444519
520+ if (commitTimeBuilder_ == null ) {
521+ commitTime_ = null ;
522+ } else {
523+ commitTime_ = null ;
524+ commitTimeBuilder_ = null ;
525+ }
445526 return this ;
446527 }
447528
@@ -480,6 +561,11 @@ public com.google.datastore.v1.CommitResponse buildPartial() {
480561 result .mutationResults_ = mutationResultsBuilder_ .build ();
481562 }
482563 result .indexUpdates_ = indexUpdates_ ;
564+ if (commitTimeBuilder_ == null ) {
565+ result .commitTime_ = commitTime_ ;
566+ } else {
567+ result .commitTime_ = commitTimeBuilder_ .build ();
568+ }
483569 onBuilt ();
484570 return result ;
485571 }
@@ -559,6 +645,9 @@ public Builder mergeFrom(com.google.datastore.v1.CommitResponse other) {
559645 if (other .getIndexUpdates () != 0 ) {
560646 setIndexUpdates (other .getIndexUpdates ());
561647 }
648+ if (other .hasCommitTime ()) {
649+ mergeCommitTime (other .getCommitTime ());
650+ }
562651 this .mergeUnknownFields (other .unknownFields );
563652 onChanged ();
564653 return this ;
@@ -1017,6 +1106,189 @@ public Builder clearIndexUpdates() {
10171106 return this ;
10181107 }
10191108
1109+ private com .google .protobuf .Timestamp commitTime_ ;
1110+ private com .google .protobuf .SingleFieldBuilderV3 <
1111+ com .google .protobuf .Timestamp ,
1112+ com .google .protobuf .Timestamp .Builder ,
1113+ com .google .protobuf .TimestampOrBuilder >
1114+ commitTimeBuilder_ ;
1115+ /**
1116+ *
1117+ *
1118+ * <pre>
1119+ * The transaction commit timestamp. Not set for non-transactional commits.
1120+ * </pre>
1121+ *
1122+ * <code>.google.protobuf.Timestamp commit_time = 8;</code>
1123+ *
1124+ * @return Whether the commitTime field is set.
1125+ */
1126+ public boolean hasCommitTime () {
1127+ return commitTimeBuilder_ != null || commitTime_ != null ;
1128+ }
1129+ /**
1130+ *
1131+ *
1132+ * <pre>
1133+ * The transaction commit timestamp. Not set for non-transactional commits.
1134+ * </pre>
1135+ *
1136+ * <code>.google.protobuf.Timestamp commit_time = 8;</code>
1137+ *
1138+ * @return The commitTime.
1139+ */
1140+ public com .google .protobuf .Timestamp getCommitTime () {
1141+ if (commitTimeBuilder_ == null ) {
1142+ return commitTime_ == null
1143+ ? com .google .protobuf .Timestamp .getDefaultInstance ()
1144+ : commitTime_ ;
1145+ } else {
1146+ return commitTimeBuilder_ .getMessage ();
1147+ }
1148+ }
1149+ /**
1150+ *
1151+ *
1152+ * <pre>
1153+ * The transaction commit timestamp. Not set for non-transactional commits.
1154+ * </pre>
1155+ *
1156+ * <code>.google.protobuf.Timestamp commit_time = 8;</code>
1157+ */
1158+ public Builder setCommitTime (com .google .protobuf .Timestamp value ) {
1159+ if (commitTimeBuilder_ == null ) {
1160+ if (value == null ) {
1161+ throw new NullPointerException ();
1162+ }
1163+ commitTime_ = value ;
1164+ onChanged ();
1165+ } else {
1166+ commitTimeBuilder_ .setMessage (value );
1167+ }
1168+
1169+ return this ;
1170+ }
1171+ /**
1172+ *
1173+ *
1174+ * <pre>
1175+ * The transaction commit timestamp. Not set for non-transactional commits.
1176+ * </pre>
1177+ *
1178+ * <code>.google.protobuf.Timestamp commit_time = 8;</code>
1179+ */
1180+ public Builder setCommitTime (com .google .protobuf .Timestamp .Builder builderForValue ) {
1181+ if (commitTimeBuilder_ == null ) {
1182+ commitTime_ = builderForValue .build ();
1183+ onChanged ();
1184+ } else {
1185+ commitTimeBuilder_ .setMessage (builderForValue .build ());
1186+ }
1187+
1188+ return this ;
1189+ }
1190+ /**
1191+ *
1192+ *
1193+ * <pre>
1194+ * The transaction commit timestamp. Not set for non-transactional commits.
1195+ * </pre>
1196+ *
1197+ * <code>.google.protobuf.Timestamp commit_time = 8;</code>
1198+ */
1199+ public Builder mergeCommitTime (com .google .protobuf .Timestamp value ) {
1200+ if (commitTimeBuilder_ == null ) {
1201+ if (commitTime_ != null ) {
1202+ commitTime_ =
1203+ com .google .protobuf .Timestamp .newBuilder (commitTime_ ).mergeFrom (value ).buildPartial ();
1204+ } else {
1205+ commitTime_ = value ;
1206+ }
1207+ onChanged ();
1208+ } else {
1209+ commitTimeBuilder_ .mergeFrom (value );
1210+ }
1211+
1212+ return this ;
1213+ }
1214+ /**
1215+ *
1216+ *
1217+ * <pre>
1218+ * The transaction commit timestamp. Not set for non-transactional commits.
1219+ * </pre>
1220+ *
1221+ * <code>.google.protobuf.Timestamp commit_time = 8;</code>
1222+ */
1223+ public Builder clearCommitTime () {
1224+ if (commitTimeBuilder_ == null ) {
1225+ commitTime_ = null ;
1226+ onChanged ();
1227+ } else {
1228+ commitTime_ = null ;
1229+ commitTimeBuilder_ = null ;
1230+ }
1231+
1232+ return this ;
1233+ }
1234+ /**
1235+ *
1236+ *
1237+ * <pre>
1238+ * The transaction commit timestamp. Not set for non-transactional commits.
1239+ * </pre>
1240+ *
1241+ * <code>.google.protobuf.Timestamp commit_time = 8;</code>
1242+ */
1243+ public com .google .protobuf .Timestamp .Builder getCommitTimeBuilder () {
1244+
1245+ onChanged ();
1246+ return getCommitTimeFieldBuilder ().getBuilder ();
1247+ }
1248+ /**
1249+ *
1250+ *
1251+ * <pre>
1252+ * The transaction commit timestamp. Not set for non-transactional commits.
1253+ * </pre>
1254+ *
1255+ * <code>.google.protobuf.Timestamp commit_time = 8;</code>
1256+ */
1257+ public com .google .protobuf .TimestampOrBuilder getCommitTimeOrBuilder () {
1258+ if (commitTimeBuilder_ != null ) {
1259+ return commitTimeBuilder_ .getMessageOrBuilder ();
1260+ } else {
1261+ return commitTime_ == null
1262+ ? com .google .protobuf .Timestamp .getDefaultInstance ()
1263+ : commitTime_ ;
1264+ }
1265+ }
1266+ /**
1267+ *
1268+ *
1269+ * <pre>
1270+ * The transaction commit timestamp. Not set for non-transactional commits.
1271+ * </pre>
1272+ *
1273+ * <code>.google.protobuf.Timestamp commit_time = 8;</code>
1274+ */
1275+ private com .google .protobuf .SingleFieldBuilderV3 <
1276+ com .google .protobuf .Timestamp ,
1277+ com .google .protobuf .Timestamp .Builder ,
1278+ com .google .protobuf .TimestampOrBuilder >
1279+ getCommitTimeFieldBuilder () {
1280+ if (commitTimeBuilder_ == null ) {
1281+ commitTimeBuilder_ =
1282+ new com .google .protobuf .SingleFieldBuilderV3 <
1283+ com .google .protobuf .Timestamp ,
1284+ com .google .protobuf .Timestamp .Builder ,
1285+ com .google .protobuf .TimestampOrBuilder >(
1286+ getCommitTime (), getParentForChildren (), isClean ());
1287+ commitTime_ = null ;
1288+ }
1289+ return commitTimeBuilder_ ;
1290+ }
1291+
10201292 @ java .lang .Override
10211293 public final Builder setUnknownFields (final com .google .protobuf .UnknownFieldSet unknownFields ) {
10221294 return super .setUnknownFields (unknownFields );
0 commit comments