| 1 |
// Copyright 2022 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 aliasgen. DO NOT EDIT. |
| 16 |
|
| 17 |
// Package admin aliases all exported identifiers in package |
| 18 |
// "cloud.google.com/go/datastore/admin/apiv1/adminpb". |
| 19 |
// |
| 20 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb. |
| 21 |
// Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md |
| 22 |
// for more details. |
| 23 |
package admin |
| 24 |
|
| 25 |
import ( |
| 26 |
src "cloud.google.com/go/datastore/admin/apiv1/adminpb" |
| 27 |
grpc "google.golang.org/grpc" |
| 28 |
) |
| 29 |
|
| 30 |
// Deprecated: Please use consts in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 31 |
const ( |
| 32 |
CommonMetadata_CANCELLED = src.CommonMetadata_CANCELLED |
| 33 |
CommonMetadata_CANCELLING = src.CommonMetadata_CANCELLING |
| 34 |
CommonMetadata_FAILED = src.CommonMetadata_FAILED |
| 35 |
CommonMetadata_FINALIZING = src.CommonMetadata_FINALIZING |
| 36 |
CommonMetadata_INITIALIZING = src.CommonMetadata_INITIALIZING |
| 37 |
CommonMetadata_PROCESSING = src.CommonMetadata_PROCESSING |
| 38 |
CommonMetadata_STATE_UNSPECIFIED = src.CommonMetadata_STATE_UNSPECIFIED |
| 39 |
CommonMetadata_SUCCESSFUL = src.CommonMetadata_SUCCESSFUL |
| 40 |
Index_ALL_ANCESTORS = src.Index_ALL_ANCESTORS |
| 41 |
Index_ANCESTOR_MODE_UNSPECIFIED = src.Index_ANCESTOR_MODE_UNSPECIFIED |
| 42 |
Index_ASCENDING = src.Index_ASCENDING |
| 43 |
Index_CREATING = src.Index_CREATING |
| 44 |
Index_DELETING = src.Index_DELETING |
| 45 |
Index_DESCENDING = src.Index_DESCENDING |
| 46 |
Index_DIRECTION_UNSPECIFIED = src.Index_DIRECTION_UNSPECIFIED |
| 47 |
Index_ERROR = src.Index_ERROR |
| 48 |
Index_NONE = src.Index_NONE |
| 49 |
Index_READY = src.Index_READY |
| 50 |
Index_STATE_UNSPECIFIED = src.Index_STATE_UNSPECIFIED |
| 51 |
MigrationProgressEvent_CONCURRENCY_MODE_UNSPECIFIED = src.MigrationProgressEvent_CONCURRENCY_MODE_UNSPECIFIED |
| 52 |
MigrationProgressEvent_OPTIMISTIC = src.MigrationProgressEvent_OPTIMISTIC |
| 53 |
MigrationProgressEvent_OPTIMISTIC_WITH_ENTITY_GROUPS = src.MigrationProgressEvent_OPTIMISTIC_WITH_ENTITY_GROUPS |
| 54 |
MigrationProgressEvent_PESSIMISTIC = src.MigrationProgressEvent_PESSIMISTIC |
| 55 |
MigrationState_COMPLETE = src.MigrationState_COMPLETE |
| 56 |
MigrationState_MIGRATION_STATE_UNSPECIFIED = src.MigrationState_MIGRATION_STATE_UNSPECIFIED |
| 57 |
MigrationState_PAUSED = src.MigrationState_PAUSED |
| 58 |
MigrationState_RUNNING = src.MigrationState_RUNNING |
| 59 |
MigrationStep_APPLY_WRITES_SYNCHRONOUSLY = src.MigrationStep_APPLY_WRITES_SYNCHRONOUSLY |
| 60 |
MigrationStep_COPY_AND_VERIFY = src.MigrationStep_COPY_AND_VERIFY |
| 61 |
MigrationStep_MIGRATION_STEP_UNSPECIFIED = src.MigrationStep_MIGRATION_STEP_UNSPECIFIED |
| 62 |
MigrationStep_PREPARE = src.MigrationStep_PREPARE |
| 63 |
MigrationStep_REDIRECT_EVENTUALLY_CONSISTENT_READS = src.MigrationStep_REDIRECT_EVENTUALLY_CONSISTENT_READS |
| 64 |
MigrationStep_REDIRECT_STRONGLY_CONSISTENT_READS = src.MigrationStep_REDIRECT_STRONGLY_CONSISTENT_READS |
| 65 |
MigrationStep_REDIRECT_WRITES = src.MigrationStep_REDIRECT_WRITES |
| 66 |
MigrationStep_START = src.MigrationStep_START |
| 67 |
OperationType_CREATE_INDEX = src.OperationType_CREATE_INDEX |
| 68 |
OperationType_DELETE_INDEX = src.OperationType_DELETE_INDEX |
| 69 |
OperationType_EXPORT_ENTITIES = src.OperationType_EXPORT_ENTITIES |
| 70 |
OperationType_IMPORT_ENTITIES = src.OperationType_IMPORT_ENTITIES |
| 71 |
OperationType_OPERATION_TYPE_UNSPECIFIED = src.OperationType_OPERATION_TYPE_UNSPECIFIED |
| 72 |
) |
| 73 |
|
| 74 |
// Deprecated: Please use vars in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 75 |
var ( |
| 76 |
CommonMetadata_State_name = src.CommonMetadata_State_name |
| 77 |
CommonMetadata_State_value = src.CommonMetadata_State_value |
| 78 |
File_google_datastore_admin_v1_datastore_admin_proto = src.File_google_datastore_admin_v1_datastore_admin_proto |
| 79 |
File_google_datastore_admin_v1_index_proto = src.File_google_datastore_admin_v1_index_proto |
| 80 |
File_google_datastore_admin_v1_migration_proto = src.File_google_datastore_admin_v1_migration_proto |
| 81 |
Index_AncestorMode_name = src.Index_AncestorMode_name |
| 82 |
Index_AncestorMode_value = src.Index_AncestorMode_value |
| 83 |
Index_Direction_name = src.Index_Direction_name |
| 84 |
Index_Direction_value = src.Index_Direction_value |
| 85 |
Index_State_name = src.Index_State_name |
| 86 |
Index_State_value = src.Index_State_value |
| 87 |
MigrationProgressEvent_ConcurrencyMode_name = src.MigrationProgressEvent_ConcurrencyMode_name |
| 88 |
MigrationProgressEvent_ConcurrencyMode_value = src.MigrationProgressEvent_ConcurrencyMode_value |
| 89 |
MigrationState_name = src.MigrationState_name |
| 90 |
MigrationState_value = src.MigrationState_value |
| 91 |
MigrationStep_name = src.MigrationStep_name |
| 92 |
MigrationStep_value = src.MigrationStep_value |
| 93 |
OperationType_name = src.OperationType_name |
| 94 |
OperationType_value = src.OperationType_value |
| 95 |
) |
| 96 |
|
| 97 |
// Metadata common to all Datastore Admin operations. |
| 98 |
// |
| 99 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 100 |
type CommonMetadata = src.CommonMetadata |
| 101 |
|
| 102 |
// The various possible states for an ongoing Operation. |
| 103 |
// |
| 104 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 105 |
type CommonMetadata_State = src.CommonMetadata_State |
| 106 |
|
| 107 |
// The request for |
| 108 |
// [google.datastore.admin.v1.DatastoreAdmin.CreateIndex][google.datastore.admin.v1.DatastoreAdmin.CreateIndex]. |
| 109 |
// |
| 110 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 111 |
type CreateIndexRequest = src.CreateIndexRequest |
| 112 |
|
| 113 |
// DatastoreAdminClient is the client API for DatastoreAdmin service. For |
| 114 |
// semantics around ctx use and closing/ending streaming RPCs, please refer to |
| 115 |
// https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 116 |
// |
| 117 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 118 |
type DatastoreAdminClient = src.DatastoreAdminClient |
| 119 |
|
| 120 |
// DatastoreAdminServer is the server API for DatastoreAdmin service. |
| 121 |
// |
| 122 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 123 |
type DatastoreAdminServer = src.DatastoreAdminServer |
| 124 |
|
| 125 |
// Metadata for Datastore to Firestore migration operations. The |
| 126 |
// DatastoreFirestoreMigration operation is not started by the end-user via an |
| 127 |
// explicit "creation" method. This is an intentional deviation from the LRO |
| 128 |
// design pattern. This singleton resource can be accessed at: |
| 129 |
// "projects/{project_id}/operations/datastore-firestore-migration" |
| 130 |
// |
| 131 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 132 |
type DatastoreFirestoreMigrationMetadata = src.DatastoreFirestoreMigrationMetadata |
| 133 |
|
| 134 |
// The request for |
| 135 |
// [google.datastore.admin.v1.DatastoreAdmin.DeleteIndex][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex]. |
| 136 |
// |
| 137 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 138 |
type DeleteIndexRequest = src.DeleteIndexRequest |
| 139 |
|
| 140 |
// Identifies a subset of entities in a project. This is specified as |
| 141 |
// combinations of kinds and namespaces (either or both of which may be all, as |
| 142 |
// described in the following examples). Example usage: Entire project: |
| 143 |
// kinds=[], namespace_ids=[] Kinds Foo and Bar in all namespaces: |
| 144 |
// kinds=['Foo', 'Bar'], namespace_ids=[] Kinds Foo and Bar only in the default |
| 145 |
// namespace: kinds=['Foo', 'Bar'], namespace_ids=[”] Kinds Foo and Bar in |
| 146 |
// both the default and Baz namespaces: kinds=['Foo', 'Bar'], |
| 147 |
// namespace_ids=[”, 'Baz'] The entire Baz namespace: kinds=[], |
| 148 |
// namespace_ids=['Baz'] |
| 149 |
// |
| 150 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 151 |
type EntityFilter = src.EntityFilter |
| 152 |
|
| 153 |
// Metadata for ExportEntities operations. |
| 154 |
// |
| 155 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 156 |
type ExportEntitiesMetadata = src.ExportEntitiesMetadata |
| 157 |
|
| 158 |
// The request for |
| 159 |
// [google.datastore.admin.v1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1.DatastoreAdmin.ExportEntities]. |
| 160 |
// |
| 161 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 162 |
type ExportEntitiesRequest = src.ExportEntitiesRequest |
| 163 |
|
| 164 |
// The response for |
| 165 |
// [google.datastore.admin.v1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1.DatastoreAdmin.ExportEntities]. |
| 166 |
// |
| 167 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 168 |
type ExportEntitiesResponse = src.ExportEntitiesResponse |
| 169 |
|
| 170 |
// The request for |
| 171 |
// [google.datastore.admin.v1.DatastoreAdmin.GetIndex][google.datastore.admin.v1.DatastoreAdmin.GetIndex]. |
| 172 |
// |
| 173 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 174 |
type GetIndexRequest = src.GetIndexRequest |
| 175 |
|
| 176 |
// Metadata for ImportEntities operations. |
| 177 |
// |
| 178 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 179 |
type ImportEntitiesMetadata = src.ImportEntitiesMetadata |
| 180 |
|
| 181 |
// The request for |
| 182 |
// [google.datastore.admin.v1.DatastoreAdmin.ImportEntities][google.datastore.admin.v1.DatastoreAdmin.ImportEntities]. |
| 183 |
// |
| 184 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 185 |
type ImportEntitiesRequest = src.ImportEntitiesRequest |
| 186 |
|
| 187 |
// Datastore composite index definition. |
| 188 |
// |
| 189 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 190 |
type Index = src.Index |
| 191 |
|
| 192 |
// Metadata for Index operations. |
| 193 |
// |
| 194 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 195 |
type IndexOperationMetadata = src.IndexOperationMetadata |
| 196 |
|
| 197 |
// For an ordered index, specifies whether each of the entity's ancestors will |
| 198 |
// be included. |
| 199 |
// |
| 200 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 201 |
type Index_AncestorMode = src.Index_AncestorMode |
| 202 |
|
| 203 |
// The direction determines how a property is indexed. |
| 204 |
// |
| 205 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 206 |
type Index_Direction = src.Index_Direction |
| 207 |
|
| 208 |
// A property of an index. |
| 209 |
// |
| 210 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 211 |
type Index_IndexedProperty = src.Index_IndexedProperty |
| 212 |
|
| 213 |
// The possible set of states of an index. |
| 214 |
// |
| 215 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 216 |
type Index_State = src.Index_State |
| 217 |
|
| 218 |
// The request for |
| 219 |
// [google.datastore.admin.v1.DatastoreAdmin.ListIndexes][google.datastore.admin.v1.DatastoreAdmin.ListIndexes]. |
| 220 |
// |
| 221 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 222 |
type ListIndexesRequest = src.ListIndexesRequest |
| 223 |
|
| 224 |
// The response for |
| 225 |
// [google.datastore.admin.v1.DatastoreAdmin.ListIndexes][google.datastore.admin.v1.DatastoreAdmin.ListIndexes]. |
| 226 |
// |
| 227 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 228 |
type ListIndexesResponse = src.ListIndexesResponse |
| 229 |
|
| 230 |
// An event signifying the start of a new step in a [migration from Cloud |
| 231 |
// Datastore to Cloud Firestore in Datastore |
| 232 |
// mode](https://cloud.google.com/datastore/docs/upgrade-to-firestore). |
| 233 |
// |
| 234 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 235 |
type MigrationProgressEvent = src.MigrationProgressEvent |
| 236 |
|
| 237 |
// Concurrency modes for transactions in Cloud Firestore. |
| 238 |
// |
| 239 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 240 |
type MigrationProgressEvent_ConcurrencyMode = src.MigrationProgressEvent_ConcurrencyMode |
| 241 |
|
| 242 |
// Details for the `PREPARE` step. |
| 243 |
// |
| 244 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 245 |
type MigrationProgressEvent_PrepareStepDetails = src.MigrationProgressEvent_PrepareStepDetails |
| 246 |
type MigrationProgressEvent_PrepareStepDetails_ = src.MigrationProgressEvent_PrepareStepDetails_ |
| 247 |
|
| 248 |
// Details for the `REDIRECT_WRITES` step. |
| 249 |
// |
| 250 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 251 |
type MigrationProgressEvent_RedirectWritesStepDetails = src.MigrationProgressEvent_RedirectWritesStepDetails |
| 252 |
type MigrationProgressEvent_RedirectWritesStepDetails_ = src.MigrationProgressEvent_RedirectWritesStepDetails_ |
| 253 |
|
| 254 |
// States for a migration. |
| 255 |
// |
| 256 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 257 |
type MigrationState = src.MigrationState |
| 258 |
|
| 259 |
// An event signifying a change in state of a [migration from Cloud Datastore |
| 260 |
// to Cloud Firestore in Datastore |
| 261 |
// mode](https://cloud.google.com/datastore/docs/upgrade-to-firestore). |
| 262 |
// |
| 263 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 264 |
type MigrationStateEvent = src.MigrationStateEvent |
| 265 |
|
| 266 |
// Steps in a migration. |
| 267 |
// |
| 268 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 269 |
type MigrationStep = src.MigrationStep |
| 270 |
|
| 271 |
// Operation types. |
| 272 |
// |
| 273 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 274 |
type OperationType = src.OperationType |
| 275 |
|
| 276 |
// Measures the progress of a particular metric. |
| 277 |
// |
| 278 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 279 |
type Progress = src.Progress |
| 280 |
|
| 281 |
// UnimplementedDatastoreAdminServer can be embedded to have forward |
| 282 |
// compatible implementations. |
| 283 |
// |
| 284 |
// Deprecated: Please use types in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 285 |
type UnimplementedDatastoreAdminServer = src.UnimplementedDatastoreAdminServer |
| 286 |
|
| 287 |
// Deprecated: Please use funcs in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 288 |
func NewDatastoreAdminClient(cc grpc.ClientConnInterface) DatastoreAdminClient { |
| 289 |
return src.NewDatastoreAdminClient(cc) |
| 290 |
} |
| 291 |
|
| 292 |
// Deprecated: Please use funcs in: cloud.google.com/go/datastore/admin/apiv1/adminpb |
| 293 |
func RegisterDatastoreAdminServer(s *grpc.Server, srv DatastoreAdminServer) { |
| 294 |
src.RegisterDatastoreAdminServer(s, srv) |
| 295 |
} |