Debian Codegraph @

datastore/admin/apiv1/adminpb/migration.pb.go

raw symbols SCIP
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/datastore/admin/v1/migration.proto
20
21 package adminpb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 // States for a migration.
38 type MigrationState int32
39
40 const (
41 // Unspecified.
42 MigrationState_MIGRATION_STATE_UNSPECIFIED MigrationState = 0
43 // The migration is running.
44 MigrationState_RUNNING MigrationState = 1
45 // The migration is paused.
46 MigrationState_PAUSED MigrationState = 2
47 // The migration is complete.
48 MigrationState_COMPLETE MigrationState = 3
49 )
50
51 // Enum value maps for MigrationState.
52 var (
53 MigrationState_name = map[int32]string{
54 0: "MIGRATION_STATE_UNSPECIFIED",
55 1: "RUNNING",
56 2: "PAUSED",
57 3: "COMPLETE",
58 }
59 MigrationState_value = map[string]int32{
60 "MIGRATION_STATE_UNSPECIFIED": 0,
61 "RUNNING": 1,
62 "PAUSED": 2,
63 "COMPLETE": 3,
64 }
65 )
66
67 func (x MigrationState) Enum() *MigrationState {
68 p := new(MigrationState)
69 *p = x
70 return p
71 }
72
73 func (x MigrationState) String() string {
74 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
75 }
76
77 func (MigrationState) Descriptor() protoreflect.EnumDescriptor {
78 return file_google_datastore_admin_v1_migration_proto_enumTypes[0].Descriptor()
79 }
80
81 func (MigrationState) Type() protoreflect.EnumType {
82 return &file_google_datastore_admin_v1_migration_proto_enumTypes[0]
83 }
84
85 func (x MigrationState) Number() protoreflect.EnumNumber {
86 return protoreflect.EnumNumber(x)
87 }
88
89 // Deprecated: Use MigrationState.Descriptor instead.
90 func (MigrationState) EnumDescriptor() ([]byte, []int) {
91 return file_google_datastore_admin_v1_migration_proto_rawDescGZIP(), []int{0}
92 }
93
94 // Steps in a migration.
95 type MigrationStep int32
96
97 const (
98 // Unspecified.
99 MigrationStep_MIGRATION_STEP_UNSPECIFIED MigrationStep = 0
100 // Pre-migration: the database is prepared for migration.
101 MigrationStep_PREPARE MigrationStep = 6
102 // Start of migration.
103 MigrationStep_START MigrationStep = 1
104 // Writes are applied synchronously to at least one replica.
105 MigrationStep_APPLY_WRITES_SYNCHRONOUSLY MigrationStep = 7
106 // Data is copied to Cloud Firestore and then verified to match the data in
107 // Cloud Datastore.
108 MigrationStep_COPY_AND_VERIFY MigrationStep = 2
109 // Eventually-consistent reads are redirected to Cloud Firestore.
110 MigrationStep_REDIRECT_EVENTUALLY_CONSISTENT_READS MigrationStep = 3
111 // Strongly-consistent reads are redirected to Cloud Firestore.
112 MigrationStep_REDIRECT_STRONGLY_CONSISTENT_READS MigrationStep = 4
113 // Writes are redirected to Cloud Firestore.
114 MigrationStep_REDIRECT_WRITES MigrationStep = 5
115 )
116
117 // Enum value maps for MigrationStep.
118 var (
119 MigrationStep_name = map[int32]string{
120 0: "MIGRATION_STEP_UNSPECIFIED",
121 6: "PREPARE",
122 1: "START",
123 7: "APPLY_WRITES_SYNCHRONOUSLY",
124 2: "COPY_AND_VERIFY",
125 3: "REDIRECT_EVENTUALLY_CONSISTENT_READS",
126 4: "REDIRECT_STRONGLY_CONSISTENT_READS",
127 5: "REDIRECT_WRITES",
128 }
129 MigrationStep_value = map[string]int32{
130 "MIGRATION_STEP_UNSPECIFIED": 0,
131 "PREPARE": 6,
132 "START": 1,
133 "APPLY_WRITES_SYNCHRONOUSLY": 7,
134 "COPY_AND_VERIFY": 2,
135 "REDIRECT_EVENTUALLY_CONSISTENT_READS": 3,
136 "REDIRECT_STRONGLY_CONSISTENT_READS": 4,
137 "REDIRECT_WRITES": 5,
138 }
139 )
140
141 func (x MigrationStep) Enum() *MigrationStep {
142 p := new(MigrationStep)
143 *p = x
144 return p
145 }
146
147 func (x MigrationStep) String() string {
148 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
149 }
150
151 func (MigrationStep) Descriptor() protoreflect.EnumDescriptor {
152 return file_google_datastore_admin_v1_migration_proto_enumTypes[1].Descriptor()
153 }
154
155 func (MigrationStep) Type() protoreflect.EnumType {
156 return &file_google_datastore_admin_v1_migration_proto_enumTypes[1]
157 }
158
159 func (x MigrationStep) Number() protoreflect.EnumNumber {
160 return protoreflect.EnumNumber(x)
161 }
162
163 // Deprecated: Use MigrationStep.Descriptor instead.
164 func (MigrationStep) EnumDescriptor() ([]byte, []int) {
165 return file_google_datastore_admin_v1_migration_proto_rawDescGZIP(), []int{1}
166 }
167
168 // Concurrency modes for transactions in Cloud Firestore.
169 type MigrationProgressEvent_ConcurrencyMode int32
170
171 const (
172 // Unspecified.
173 MigrationProgressEvent_CONCURRENCY_MODE_UNSPECIFIED MigrationProgressEvent_ConcurrencyMode = 0
174 // Pessimistic concurrency.
175 MigrationProgressEvent_PESSIMISTIC MigrationProgressEvent_ConcurrencyMode = 1
176 // Optimistic concurrency.
177 MigrationProgressEvent_OPTIMISTIC MigrationProgressEvent_ConcurrencyMode = 2
178 // Optimistic concurrency with entity groups.
179 MigrationProgressEvent_OPTIMISTIC_WITH_ENTITY_GROUPS MigrationProgressEvent_ConcurrencyMode = 3
180 )
181
182 // Enum value maps for MigrationProgressEvent_ConcurrencyMode.
183 var (
184 MigrationProgressEvent_ConcurrencyMode_name = map[int32]string{
185 0: "CONCURRENCY_MODE_UNSPECIFIED",
186 1: "PESSIMISTIC",
187 2: "OPTIMISTIC",
188 3: "OPTIMISTIC_WITH_ENTITY_GROUPS",
189 }
190 MigrationProgressEvent_ConcurrencyMode_value = map[string]int32{
191 "CONCURRENCY_MODE_UNSPECIFIED": 0,
192 "PESSIMISTIC": 1,
193 "OPTIMISTIC": 2,
194 "OPTIMISTIC_WITH_ENTITY_GROUPS": 3,
195 }
196 )
197
198 func (x MigrationProgressEvent_ConcurrencyMode) Enum() *MigrationProgressEvent_ConcurrencyMode {
199 p := new(MigrationProgressEvent_ConcurrencyMode)
200 *p = x
201 return p
202 }
203
204 func (x MigrationProgressEvent_ConcurrencyMode) String() string {
205 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
206 }
207
208 func (MigrationProgressEvent_ConcurrencyMode) Descriptor() protoreflect.EnumDescriptor {
209 return file_google_datastore_admin_v1_migration_proto_enumTypes[2].Descriptor()
210 }
211
212 func (MigrationProgressEvent_ConcurrencyMode) Type() protoreflect.EnumType {
213 return &file_google_datastore_admin_v1_migration_proto_enumTypes[2]
214 }
215
216 func (x MigrationProgressEvent_ConcurrencyMode) Number() protoreflect.EnumNumber {
217 return protoreflect.EnumNumber(x)
218 }
219
220 // Deprecated: Use MigrationProgressEvent_ConcurrencyMode.Descriptor instead.
221 func (MigrationProgressEvent_ConcurrencyMode) EnumDescriptor() ([]byte, []int) {
222 return file_google_datastore_admin_v1_migration_proto_rawDescGZIP(), []int{1, 0}
223 }
224
225 // An event signifying a change in state of a [migration from Cloud Datastore to
226 // Cloud Firestore in Datastore
227 // mode](https://cloud.google.com/datastore/docs/upgrade-to-firestore).
228 type MigrationStateEvent struct {
229 state protoimpl.MessageState
230 sizeCache protoimpl.SizeCache
231 unknownFields protoimpl.UnknownFields
232
233 // The new state of the migration.
234 State MigrationState `protobuf:"varint,1,opt,name=state,proto3,enum=google.datastore.admin.v1.MigrationState" json:"state,omitempty"`
235 }
236
237 func (x *MigrationStateEvent) Reset() {
238 *x = MigrationStateEvent{}
239 mi := &file_google_datastore_admin_v1_migration_proto_msgTypes[0]
240 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
241 ms.StoreMessageInfo(mi)
242 }
243
244 func (x *MigrationStateEvent) String() string {
245 return protoimpl.X.MessageStringOf(x)
246 }
247
248 func (*MigrationStateEvent) ProtoMessage() {}
249
250 func (x *MigrationStateEvent) ProtoReflect() protoreflect.Message {
251 mi := &file_google_datastore_admin_v1_migration_proto_msgTypes[0]
252 if x != nil {
253 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
254 if ms.LoadMessageInfo() == nil {
255 ms.StoreMessageInfo(mi)
256 }
257 return ms
258 }
259 return mi.MessageOf(x)
260 }
261
262 // Deprecated: Use MigrationStateEvent.ProtoReflect.Descriptor instead.
263 func (*MigrationStateEvent) Descriptor() ([]byte, []int) {
264 return file_google_datastore_admin_v1_migration_proto_rawDescGZIP(), []int{0}
265 }
266
267 func (x *MigrationStateEvent) GetState() MigrationState {
268 if x != nil {
269 return x.State
270 }
271 return MigrationState_MIGRATION_STATE_UNSPECIFIED
272 }
273
274 // An event signifying the start of a new step in a [migration from Cloud
275 // Datastore to Cloud Firestore in Datastore
276 // mode](https://cloud.google.com/datastore/docs/upgrade-to-firestore).
277 type MigrationProgressEvent struct {
278 state protoimpl.MessageState
279 sizeCache protoimpl.SizeCache
280 unknownFields protoimpl.UnknownFields
281
282 // The step that is starting.
283 //
284 // An event with step set to `START` indicates that the migration
285 // has been reverted back to the initial pre-migration state.
286 Step MigrationStep `protobuf:"varint,1,opt,name=step,proto3,enum=google.datastore.admin.v1.MigrationStep" json:"step,omitempty"`
287 // Details about this step.
288 //
289 // Types that are assignable to StepDetails:
290 //
291 // *MigrationProgressEvent_PrepareStepDetails_
292 // *MigrationProgressEvent_RedirectWritesStepDetails_
293 StepDetails isMigrationProgressEvent_StepDetails `protobuf_oneof:"step_details"`
294 }
295
296 func (x *MigrationProgressEvent) Reset() {
297 *x = MigrationProgressEvent{}
298 mi := &file_google_datastore_admin_v1_migration_proto_msgTypes[1]
299 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
300 ms.StoreMessageInfo(mi)
301 }
302
303 func (x *MigrationProgressEvent) String() string {
304 return protoimpl.X.MessageStringOf(x)
305 }
306
307 func (*MigrationProgressEvent) ProtoMessage() {}
308
309 func (x *MigrationProgressEvent) ProtoReflect() protoreflect.Message {
310 mi := &file_google_datastore_admin_v1_migration_proto_msgTypes[1]
311 if x != nil {
312 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
313 if ms.LoadMessageInfo() == nil {
314 ms.StoreMessageInfo(mi)
315 }
316 return ms
317 }
318 return mi.MessageOf(x)
319 }
320
321 // Deprecated: Use MigrationProgressEvent.ProtoReflect.Descriptor instead.
322 func (*MigrationProgressEvent) Descriptor() ([]byte, []int) {
323 return file_google_datastore_admin_v1_migration_proto_rawDescGZIP(), []int{1}
324 }
325
326 func (x *MigrationProgressEvent) GetStep() MigrationStep {
327 if x != nil {
328 return x.Step
329 }
330 return MigrationStep_MIGRATION_STEP_UNSPECIFIED
331 }
332
333 func (m *MigrationProgressEvent) GetStepDetails() isMigrationProgressEvent_StepDetails {
334 if m != nil {
335 return m.StepDetails
336 }
337 return nil
338 }
339
340 func (x *MigrationProgressEvent) GetPrepareStepDetails() *MigrationProgressEvent_PrepareStepDetails {
341 if x, ok := x.GetStepDetails().(*MigrationProgressEvent_PrepareStepDetails_); ok {
342 return x.PrepareStepDetails
343 }
344 return nil
345 }
346
347 func (x *MigrationProgressEvent) GetRedirectWritesStepDetails() *MigrationProgressEvent_RedirectWritesStepDetails {
348 if x, ok := x.GetStepDetails().(*MigrationProgressEvent_RedirectWritesStepDetails_); ok {
349 return x.RedirectWritesStepDetails
350 }
351 return nil
352 }
353
354 type isMigrationProgressEvent_StepDetails interface {
355 isMigrationProgressEvent_StepDetails()
356 }
357
358 type MigrationProgressEvent_PrepareStepDetails_ struct {
359 // Details for the `PREPARE` step.
360 PrepareStepDetails *MigrationProgressEvent_PrepareStepDetails `protobuf:"bytes,2,opt,name=prepare_step_details,json=prepareStepDetails,proto3,oneof"`
361 }
362
363 type MigrationProgressEvent_RedirectWritesStepDetails_ struct {
364 // Details for the `REDIRECT_WRITES` step.
365 RedirectWritesStepDetails *MigrationProgressEvent_RedirectWritesStepDetails `protobuf:"bytes,3,opt,name=redirect_writes_step_details,json=redirectWritesStepDetails,proto3,oneof"`
366 }
367
368 func (*MigrationProgressEvent_PrepareStepDetails_) isMigrationProgressEvent_StepDetails() {}
369
370 func (*MigrationProgressEvent_RedirectWritesStepDetails_) isMigrationProgressEvent_StepDetails() {}
371
372 // Details for the `PREPARE` step.
373 type MigrationProgressEvent_PrepareStepDetails struct {
374 state protoimpl.MessageState
375 sizeCache protoimpl.SizeCache
376 unknownFields protoimpl.UnknownFields
377
378 // The concurrency mode this database will use when it reaches the
379 // `REDIRECT_WRITES` step.
380 ConcurrencyMode MigrationProgressEvent_ConcurrencyMode `protobuf:"varint,1,opt,name=concurrency_mode,json=concurrencyMode,proto3,enum=google.datastore.admin.v1.MigrationProgressEvent_ConcurrencyMode" json:"concurrency_mode,omitempty"`
381 }
382
383 func (x *MigrationProgressEvent_PrepareStepDetails) Reset() {
384 *x = MigrationProgressEvent_PrepareStepDetails{}
385 mi := &file_google_datastore_admin_v1_migration_proto_msgTypes[2]
386 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
387 ms.StoreMessageInfo(mi)
388 }
389
390 func (x *MigrationProgressEvent_PrepareStepDetails) String() string {
391 return protoimpl.X.MessageStringOf(x)
392 }
393
394 func (*MigrationProgressEvent_PrepareStepDetails) ProtoMessage() {}
395
396 func (x *MigrationProgressEvent_PrepareStepDetails) ProtoReflect() protoreflect.Message {
397 mi := &file_google_datastore_admin_v1_migration_proto_msgTypes[2]
398 if x != nil {
399 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
400 if ms.LoadMessageInfo() == nil {
401 ms.StoreMessageInfo(mi)
402 }
403 return ms
404 }
405 return mi.MessageOf(x)
406 }
407
408 // Deprecated: Use MigrationProgressEvent_PrepareStepDetails.ProtoReflect.Descriptor instead.
409 func (*MigrationProgressEvent_PrepareStepDetails) Descriptor() ([]byte, []int) {
410 return file_google_datastore_admin_v1_migration_proto_rawDescGZIP(), []int{1, 0}
411 }
412
413 func (x *MigrationProgressEvent_PrepareStepDetails) GetConcurrencyMode() MigrationProgressEvent_ConcurrencyMode {
414 if x != nil {
415 return x.ConcurrencyMode
416 }
417 return MigrationProgressEvent_CONCURRENCY_MODE_UNSPECIFIED
418 }
419
420 // Details for the `REDIRECT_WRITES` step.
421 type MigrationProgressEvent_RedirectWritesStepDetails struct {
422 state protoimpl.MessageState
423 sizeCache protoimpl.SizeCache
424 unknownFields protoimpl.UnknownFields
425
426 // Ths concurrency mode for this database.
427 ConcurrencyMode MigrationProgressEvent_ConcurrencyMode `protobuf:"varint,1,opt,name=concurrency_mode,json=concurrencyMode,proto3,enum=google.datastore.admin.v1.MigrationProgressEvent_ConcurrencyMode" json:"concurrency_mode,omitempty"`
428 }
429
430 func (x *MigrationProgressEvent_RedirectWritesStepDetails) Reset() {
431 *x = MigrationProgressEvent_RedirectWritesStepDetails{}
432 mi := &file_google_datastore_admin_v1_migration_proto_msgTypes[3]
433 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
434 ms.StoreMessageInfo(mi)
435 }
436
437 func (x *MigrationProgressEvent_RedirectWritesStepDetails) String() string {
438 return protoimpl.X.MessageStringOf(x)
439 }
440
441 func (*MigrationProgressEvent_RedirectWritesStepDetails) ProtoMessage() {}
442
443 func (x *MigrationProgressEvent_RedirectWritesStepDetails) ProtoReflect() protoreflect.Message {
444 mi := &file_google_datastore_admin_v1_migration_proto_msgTypes[3]
445 if x != nil {
446 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
447 if ms.LoadMessageInfo() == nil {
448 ms.StoreMessageInfo(mi)
449 }
450 return ms
451 }
452 return mi.MessageOf(x)
453 }
454
455 // Deprecated: Use MigrationProgressEvent_RedirectWritesStepDetails.ProtoReflect.Descriptor instead.
456 func (*MigrationProgressEvent_RedirectWritesStepDetails) Descriptor() ([]byte, []int) {
457 return file_google_datastore_admin_v1_migration_proto_rawDescGZIP(), []int{1, 1}
458 }
459
460 func (x *MigrationProgressEvent_RedirectWritesStepDetails) GetConcurrencyMode() MigrationProgressEvent_ConcurrencyMode {
461 if x != nil {
462 return x.ConcurrencyMode
463 }
464 return MigrationProgressEvent_CONCURRENCY_MODE_UNSPECIFIED
465 }
466
467 var File_google_datastore_admin_v1_migration_proto protoreflect.FileDescriptor
468
469 var file_google_datastore_admin_v1_migration_proto_rawDesc = []byte{
470 0x0a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f,
471 0x72, 0x65, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x69, 0x67, 0x72,
472 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x67, 0x6f, 0x6f,
473 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64,
474 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x22, 0x56, 0x0a, 0x13, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74,
475 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x3f, 0x0a,
476 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x67,
477 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,
478 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69,
479 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0xfb,
480 0x05, 0x0a, 0x16, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x67,
481 0x72, 0x65, 0x73, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x3c, 0x0a, 0x04, 0x73, 0x74, 0x65,
482 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
483 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e,
484 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x65,
485 0x70, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x12, 0x78, 0x0a, 0x14, 0x70, 0x72, 0x65, 0x70, 0x61,
486 0x72, 0x65, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18,
487 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64,
488 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76,
489 0x31, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x67, 0x72,
490 0x65, 0x73, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65,
491 0x53, 0x74, 0x65, 0x70, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x48, 0x00, 0x52, 0x12, 0x70,
492 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x53, 0x74, 0x65, 0x70, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c,
493 0x73, 0x12, 0x8e, 0x01, 0x0a, 0x1c, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x5f, 0x77,
494 0x72, 0x69, 0x74, 0x65, 0x73, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69,
495 0x6c, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
496 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69,
497 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72,
498 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x64, 0x69,
499 0x72, 0x65, 0x63, 0x74, 0x57, 0x72, 0x69, 0x74, 0x65, 0x73, 0x53, 0x74, 0x65, 0x70, 0x44, 0x65,
500 0x74, 0x61, 0x69, 0x6c, 0x73, 0x48, 0x00, 0x52, 0x19, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63,
501 0x74, 0x57, 0x72, 0x69, 0x74, 0x65, 0x73, 0x53, 0x74, 0x65, 0x70, 0x44, 0x65, 0x74, 0x61, 0x69,
502 0x6c, 0x73, 0x1a, 0x82, 0x01, 0x0a, 0x12, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x53, 0x74,
503 0x65, 0x70, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x6c, 0x0a, 0x10, 0x63, 0x6f, 0x6e,
504 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
505 0x01, 0x28, 0x0e, 0x32, 0x41, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74,
506 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e,
507 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73,
508 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,
509 0x63, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65,
510 0x6e, 0x63, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x1a, 0x89, 0x01, 0x0a, 0x19, 0x52, 0x65, 0x64, 0x69,
511 0x72, 0x65, 0x63, 0x74, 0x57, 0x72, 0x69, 0x74, 0x65, 0x73, 0x53, 0x74, 0x65, 0x70, 0x44, 0x65,
512 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x6c, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72,
513 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,
514 0x41, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f,
515 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x67, 0x72,
516 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x45, 0x76, 0x65,
517 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x4d, 0x6f,
518 0x64, 0x65, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x4d,
519 0x6f, 0x64, 0x65, 0x22, 0x77, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,
520 0x63, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x43, 0x4f, 0x4e, 0x43, 0x55, 0x52,
521 0x52, 0x45, 0x4e, 0x43, 0x59, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
522 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x50, 0x45, 0x53, 0x53,
523 0x49, 0x4d, 0x49, 0x53, 0x54, 0x49, 0x43, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x50, 0x54,
524 0x49, 0x4d, 0x49, 0x53, 0x54, 0x49, 0x43, 0x10, 0x02, 0x12, 0x21, 0x0a, 0x1d, 0x4f, 0x50, 0x54,
525 0x49, 0x4d, 0x49, 0x53, 0x54, 0x49, 0x43, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x5f, 0x45, 0x4e, 0x54,
526 0x49, 0x54, 0x59, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x53, 0x10, 0x03, 0x42, 0x0e, 0x0a, 0x0c,
527 0x73, 0x74, 0x65, 0x70, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2a, 0x58, 0x0a, 0x0e,
528 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1f,
529 0x0a, 0x1b, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54,
530 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
531 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06,
532 0x50, 0x41, 0x55, 0x53, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x4f, 0x4d, 0x50,
533 0x4c, 0x45, 0x54, 0x45, 0x10, 0x03, 0x2a, 0xe3, 0x01, 0x0a, 0x0d, 0x4d, 0x69, 0x67, 0x72, 0x61,
534 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x65, 0x70, 0x12, 0x1e, 0x0a, 0x1a, 0x4d, 0x49, 0x47, 0x52,
535 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
536 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x45, 0x50,
537 0x41, 0x52, 0x45, 0x10, 0x06, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x54, 0x41, 0x52, 0x54, 0x10, 0x01,
538 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x50, 0x50, 0x4c, 0x59, 0x5f, 0x57, 0x52, 0x49, 0x54, 0x45, 0x53,
539 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x48, 0x52, 0x4f, 0x4e, 0x4f, 0x55, 0x53, 0x4c, 0x59, 0x10, 0x07,
540 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x50, 0x59, 0x5f, 0x41, 0x4e, 0x44, 0x5f, 0x56, 0x45, 0x52,
541 0x49, 0x46, 0x59, 0x10, 0x02, 0x12, 0x28, 0x0a, 0x24, 0x52, 0x45, 0x44, 0x49, 0x52, 0x45, 0x43,
542 0x54, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x55, 0x41, 0x4c, 0x4c, 0x59, 0x5f, 0x43, 0x4f, 0x4e,
543 0x53, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x53, 0x10, 0x03, 0x12,
544 0x26, 0x0a, 0x22, 0x52, 0x45, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x54, 0x52, 0x4f,
545 0x4e, 0x47, 0x4c, 0x59, 0x5f, 0x43, 0x4f, 0x4e, 0x53, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x5f,
546 0x52, 0x45, 0x41, 0x44, 0x53, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x52, 0x45, 0x44, 0x49, 0x52,
547 0x45, 0x43, 0x54, 0x5f, 0x57, 0x52, 0x49, 0x54, 0x45, 0x53, 0x10, 0x05, 0x42, 0xd6, 0x01, 0x0a,
548 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61,
549 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0e,
550 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
551 0x5a, 0x39, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
552 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f,
553 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69,
554 0x6e, 0x70, 0x62, 0x3b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x70, 0x62, 0xaa, 0x02, 0x1f, 0x47, 0x6f,
555 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73,
556 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1f,
557 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x44, 0x61, 0x74,
558 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x56, 0x31, 0xea,
559 0x02, 0x23, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a,
560 0x3a, 0x44, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69,
561 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
562 }
563
564 var (
565 file_google_datastore_admin_v1_migration_proto_rawDescOnce sync.Once
566 file_google_datastore_admin_v1_migration_proto_rawDescData = file_google_datastore_admin_v1_migration_proto_rawDesc
567 )
568
569 func file_google_datastore_admin_v1_migration_proto_rawDescGZIP() []byte {
570 file_google_datastore_admin_v1_migration_proto_rawDescOnce.Do(func() {
571 file_google_datastore_admin_v1_migration_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_datastore_admin_v1_migration_proto_rawDescData)
572 })
573 return file_google_datastore_admin_v1_migration_proto_rawDescData
574 }
575
576 var file_google_datastore_admin_v1_migration_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
577 var file_google_datastore_admin_v1_migration_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
578 var file_google_datastore_admin_v1_migration_proto_goTypes = []any{
579 (MigrationState)(0), // 0: google.datastore.admin.v1.MigrationState
580 (MigrationStep)(0), // 1: google.datastore.admin.v1.MigrationStep
581 (MigrationProgressEvent_ConcurrencyMode)(0), // 2: google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode
582 (*MigrationStateEvent)(nil), // 3: google.datastore.admin.v1.MigrationStateEvent
583 (*MigrationProgressEvent)(nil), // 4: google.datastore.admin.v1.MigrationProgressEvent
584 (*MigrationProgressEvent_PrepareStepDetails)(nil), // 5: google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails
585 (*MigrationProgressEvent_RedirectWritesStepDetails)(nil), // 6: google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails
586 }
587 var file_google_datastore_admin_v1_migration_proto_depIdxs = []int32{
588 0, // 0: google.datastore.admin.v1.MigrationStateEvent.state:type_name -> google.datastore.admin.v1.MigrationState
589 1, // 1: google.datastore.admin.v1.MigrationProgressEvent.step:type_name -> google.datastore.admin.v1.MigrationStep
590 5, // 2: google.datastore.admin.v1.MigrationProgressEvent.prepare_step_details:type_name -> google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails
591 6, // 3: google.datastore.admin.v1.MigrationProgressEvent.redirect_writes_step_details:type_name -> google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails
592 2, // 4: google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails.concurrency_mode:type_name -> google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode
593 2, // 5: google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails.concurrency_mode:type_name -> google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode
594 6, // [6:6] is the sub-list for method output_type
595 6, // [6:6] is the sub-list for method input_type
596 6, // [6:6] is the sub-list for extension type_name
597 6, // [6:6] is the sub-list for extension extendee
598 0, // [0:6] is the sub-list for field type_name
599 }
600
601 func init() { file_google_datastore_admin_v1_migration_proto_init() }
602 func file_google_datastore_admin_v1_migration_proto_init() {
603 if File_google_datastore_admin_v1_migration_proto != nil {
604 return
605 }
606 file_google_datastore_admin_v1_migration_proto_msgTypes[1].OneofWrappers = []any{
607 (*MigrationProgressEvent_PrepareStepDetails_)(nil),
608 (*MigrationProgressEvent_RedirectWritesStepDetails_)(nil),
609 }
610 type x struct{}
611 out := protoimpl.TypeBuilder{
612 File: protoimpl.DescBuilder{
613 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
614 RawDescriptor: file_google_datastore_admin_v1_migration_proto_rawDesc,
615 NumEnums: 3,
616 NumMessages: 4,
617 NumExtensions: 0,
618 NumServices: 0,
619 },
620 GoTypes: file_google_datastore_admin_v1_migration_proto_goTypes,
621 DependencyIndexes: file_google_datastore_admin_v1_migration_proto_depIdxs,
622 EnumInfos: file_google_datastore_admin_v1_migration_proto_enumTypes,
623 MessageInfos: file_google_datastore_admin_v1_migration_proto_msgTypes,
624 }.Build()
625 File_google_datastore_admin_v1_migration_proto = out.File
626 file_google_datastore_admin_v1_migration_proto_rawDesc = nil
627 file_google_datastore_admin_v1_migration_proto_goTypes = nil
628 file_google_datastore_admin_v1_migration_proto_depIdxs = nil
629 }