1- // Copyright 2021 Google LLC
1+ // Copyright 2022 Google LLC
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
@@ -16,8 +16,6 @@ syntax = "proto3";
1616
1717package google.datastore.admin.v1 ;
1818
19- import "google/api/annotations.proto" ;
20-
2119option csharp_namespace = "Google.Cloud.Datastore.Admin.V1" ;
2220option go_package = "google.golang.org/genproto/googleapis/datastore/admin/v1;admin" ;
2321option java_multiple_files = true ;
@@ -38,6 +36,21 @@ message MigrationStateEvent {
3836// Datastore to Cloud Firestore in Datastore
3937// mode](https://cloud.google.com/datastore/docs/upgrade-to-firestore).
4038message MigrationProgressEvent {
39+ // Concurrency modes for transactions in Cloud Firestore.
40+ enum ConcurrencyMode {
41+ // Unspecified.
42+ CONCURRENCY_MODE_UNSPECIFIED = 0 ;
43+
44+ // Pessimistic concurrency.
45+ PESSIMISTIC = 1 ;
46+
47+ // Optimistic concurrency.
48+ OPTIMISTIC = 2 ;
49+
50+ // Optimistic concurrency with entity groups.
51+ OPTIMISTIC_WITH_ENTITY_GROUPS = 3 ;
52+ }
53+
4154 // Details for the `PREPARE` step.
4255 message PrepareStepDetails {
4356 // The concurrency mode this database will use when it reaches the
@@ -51,18 +64,6 @@ message MigrationProgressEvent {
5164 ConcurrencyMode concurrency_mode = 1 ;
5265 }
5366
54- // Concurrency modes for transactions in Cloud Firestore.
55- enum ConcurrencyMode {
56- // Unspecified.
57- CONCURRENCY_MODE_UNSPECIFIED = 0 ;
58-
59- // Pessimistic concurrency.
60- PESSIMISTIC = 1 ;
61-
62- // Optimistic concurrency.
63- OPTIMISTIC = 2 ;
64- }
65-
6667 // The step that is starting.
6768 //
6869 // An event with step set to `START` indicates that the migration
0 commit comments