/usr/share/gocode/src/google.golang.org/genproto/googleapis/datastore/admin/v1beta1/datastore_admin.pb.go is in golang-google-genproto-dev 0.0~git20171123.7f0da29-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/datastore/admin/v1beta1/datastore_admin.proto
/*
Package admin is a generated protocol buffer package.
It is generated from these files:
google/datastore/admin/v1beta1/datastore_admin.proto
It has these top-level messages:
CommonMetadata
Progress
ExportEntitiesRequest
ImportEntitiesRequest
ExportEntitiesResponse
ExportEntitiesMetadata
ImportEntitiesMetadata
EntityFilter
*/
package admin
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_longrunning "google.golang.org/genproto/googleapis/longrunning"
import google_protobuf3 "github.com/golang/protobuf/ptypes/timestamp"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Operation types.
type OperationType int32
const (
// Unspecified.
OperationType_OPERATION_TYPE_UNSPECIFIED OperationType = 0
// ExportEntities.
OperationType_EXPORT_ENTITIES OperationType = 1
// ImportEntities.
OperationType_IMPORT_ENTITIES OperationType = 2
)
var OperationType_name = map[int32]string{
0: "OPERATION_TYPE_UNSPECIFIED",
1: "EXPORT_ENTITIES",
2: "IMPORT_ENTITIES",
}
var OperationType_value = map[string]int32{
"OPERATION_TYPE_UNSPECIFIED": 0,
"EXPORT_ENTITIES": 1,
"IMPORT_ENTITIES": 2,
}
func (x OperationType) String() string {
return proto.EnumName(OperationType_name, int32(x))
}
func (OperationType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
// The various possible states for an ongoing Operation.
type CommonMetadata_State int32
const (
// Unspecified.
CommonMetadata_STATE_UNSPECIFIED CommonMetadata_State = 0
// Request is being prepared for processing.
CommonMetadata_INITIALIZING CommonMetadata_State = 1
// Request is actively being processed.
CommonMetadata_PROCESSING CommonMetadata_State = 2
// Request is in the process of being cancelled after user called
// google.longrunning.Operations.CancelOperation on the operation.
CommonMetadata_CANCELLING CommonMetadata_State = 3
// Request has been processed and is in its finalization stage.
CommonMetadata_FINALIZING CommonMetadata_State = 4
// Request has completed successfully.
CommonMetadata_SUCCESSFUL CommonMetadata_State = 5
// Request has finished being processed, but encountered an error.
CommonMetadata_FAILED CommonMetadata_State = 6
// Request has finished being cancelled after user called
// google.longrunning.Operations.CancelOperation.
CommonMetadata_CANCELLED CommonMetadata_State = 7
)
var CommonMetadata_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "INITIALIZING",
2: "PROCESSING",
3: "CANCELLING",
4: "FINALIZING",
5: "SUCCESSFUL",
6: "FAILED",
7: "CANCELLED",
}
var CommonMetadata_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"INITIALIZING": 1,
"PROCESSING": 2,
"CANCELLING": 3,
"FINALIZING": 4,
"SUCCESSFUL": 5,
"FAILED": 6,
"CANCELLED": 7,
}
func (x CommonMetadata_State) String() string {
return proto.EnumName(CommonMetadata_State_name, int32(x))
}
func (CommonMetadata_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
// Metadata common to all Datastore Admin operations.
type CommonMetadata struct {
// The time that work began on the operation.
StartTime *google_protobuf3.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
// The time the operation ended, either successfully or otherwise.
EndTime *google_protobuf3.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
// The type of the operation. Can be used as a filter in
// ListOperationsRequest.
OperationType OperationType `protobuf:"varint,3,opt,name=operation_type,json=operationType,enum=google.datastore.admin.v1beta1.OperationType" json:"operation_type,omitempty"`
// The client-assigned labels which were provided when the operation was
// created. May also include additional labels.
Labels map[string]string `protobuf:"bytes,4,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// The current state of the Operation.
State CommonMetadata_State `protobuf:"varint,5,opt,name=state,enum=google.datastore.admin.v1beta1.CommonMetadata_State" json:"state,omitempty"`
}
func (m *CommonMetadata) Reset() { *m = CommonMetadata{} }
func (m *CommonMetadata) String() string { return proto.CompactTextString(m) }
func (*CommonMetadata) ProtoMessage() {}
func (*CommonMetadata) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *CommonMetadata) GetStartTime() *google_protobuf3.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *CommonMetadata) GetEndTime() *google_protobuf3.Timestamp {
if m != nil {
return m.EndTime
}
return nil
}
func (m *CommonMetadata) GetOperationType() OperationType {
if m != nil {
return m.OperationType
}
return OperationType_OPERATION_TYPE_UNSPECIFIED
}
func (m *CommonMetadata) GetLabels() map[string]string {
if m != nil {
return m.Labels
}
return nil
}
func (m *CommonMetadata) GetState() CommonMetadata_State {
if m != nil {
return m.State
}
return CommonMetadata_STATE_UNSPECIFIED
}
// Measures the progress of a particular metric.
type Progress struct {
// The amount of work that has been completed. Note that this may be greater
// than work_estimated.
WorkCompleted int64 `protobuf:"varint,1,opt,name=work_completed,json=workCompleted" json:"work_completed,omitempty"`
// An estimate of how much work needs to be performed. May be zero if the
// work estimate is unavailable.
WorkEstimated int64 `protobuf:"varint,2,opt,name=work_estimated,json=workEstimated" json:"work_estimated,omitempty"`
}
func (m *Progress) Reset() { *m = Progress{} }
func (m *Progress) String() string { return proto.CompactTextString(m) }
func (*Progress) ProtoMessage() {}
func (*Progress) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *Progress) GetWorkCompleted() int64 {
if m != nil {
return m.WorkCompleted
}
return 0
}
func (m *Progress) GetWorkEstimated() int64 {
if m != nil {
return m.WorkEstimated
}
return 0
}
// The request for
// [google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities].
type ExportEntitiesRequest struct {
// Project ID against which to make the request.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
// Client-assigned labels.
Labels map[string]string `protobuf:"bytes,2,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// Description of what data from the project is included in the export.
EntityFilter *EntityFilter `protobuf:"bytes,3,opt,name=entity_filter,json=entityFilter" json:"entity_filter,omitempty"`
// Location for the export metadata and data files.
//
// The full resource URL of the external storage location. Currently, only
// Google Cloud Storage is supported. So output_url_prefix should be of the
// form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the
// name of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud
// Storage namespace path (this is not a Cloud Datastore namespace). For more
// information about Cloud Storage namespace paths, see
// [Object name
// considerations](https://cloud.google.com/storage/docs/naming#object-considerations).
//
// The resulting files will be nested deeper than the specified URL prefix.
// The final output URL will be provided in the
// [google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url][google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url]
// field. That value should be used for subsequent ImportEntities operations.
//
// By nesting the data files deeper, the same Cloud Storage bucket can be used
// in multiple ExportEntities operations without conflict.
OutputUrlPrefix string `protobuf:"bytes,4,opt,name=output_url_prefix,json=outputUrlPrefix" json:"output_url_prefix,omitempty"`
}
func (m *ExportEntitiesRequest) Reset() { *m = ExportEntitiesRequest{} }
func (m *ExportEntitiesRequest) String() string { return proto.CompactTextString(m) }
func (*ExportEntitiesRequest) ProtoMessage() {}
func (*ExportEntitiesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *ExportEntitiesRequest) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *ExportEntitiesRequest) GetLabels() map[string]string {
if m != nil {
return m.Labels
}
return nil
}
func (m *ExportEntitiesRequest) GetEntityFilter() *EntityFilter {
if m != nil {
return m.EntityFilter
}
return nil
}
func (m *ExportEntitiesRequest) GetOutputUrlPrefix() string {
if m != nil {
return m.OutputUrlPrefix
}
return ""
}
// The request for
// [google.datastore.admin.v1beta1.DatastoreAdmin.ImportEntities][google.datastore.admin.v1beta1.DatastoreAdmin.ImportEntities].
type ImportEntitiesRequest struct {
// Project ID against which to make the request.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
// Client-assigned labels.
Labels map[string]string `protobuf:"bytes,2,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// The full resource URL of the external storage location. Currently, only
// Google Cloud Storage is supported. So input_url should be of the form:
// `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where
// `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is
// an optional Cloud Storage namespace path (this is not a Cloud Datastore
// namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written
// by the ExportEntities operation. For more information about Cloud Storage
// namespace paths, see
// [Object name
// considerations](https://cloud.google.com/storage/docs/naming#object-considerations).
//
// For more information, see
// [google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url][google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url].
InputUrl string `protobuf:"bytes,3,opt,name=input_url,json=inputUrl" json:"input_url,omitempty"`
// Optionally specify which kinds/namespaces are to be imported. If provided,
// the list must be a subset of the EntityFilter used in creating the export,
// otherwise a FAILED_PRECONDITION error will be returned. If no filter is
// specified then all entities from the export are imported.
EntityFilter *EntityFilter `protobuf:"bytes,4,opt,name=entity_filter,json=entityFilter" json:"entity_filter,omitempty"`
}
func (m *ImportEntitiesRequest) Reset() { *m = ImportEntitiesRequest{} }
func (m *ImportEntitiesRequest) String() string { return proto.CompactTextString(m) }
func (*ImportEntitiesRequest) ProtoMessage() {}
func (*ImportEntitiesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *ImportEntitiesRequest) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *ImportEntitiesRequest) GetLabels() map[string]string {
if m != nil {
return m.Labels
}
return nil
}
func (m *ImportEntitiesRequest) GetInputUrl() string {
if m != nil {
return m.InputUrl
}
return ""
}
func (m *ImportEntitiesRequest) GetEntityFilter() *EntityFilter {
if m != nil {
return m.EntityFilter
}
return nil
}
// The response for
// [google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities].
type ExportEntitiesResponse struct {
// Location of the output metadata file. This can be used to begin an import
// into Cloud Datastore (this project or another project). See
// [google.datastore.admin.v1beta1.ImportEntitiesRequest.input_url][google.datastore.admin.v1beta1.ImportEntitiesRequest.input_url].
// Only present if the operation completed successfully.
OutputUrl string `protobuf:"bytes,1,opt,name=output_url,json=outputUrl" json:"output_url,omitempty"`
}
func (m *ExportEntitiesResponse) Reset() { *m = ExportEntitiesResponse{} }
func (m *ExportEntitiesResponse) String() string { return proto.CompactTextString(m) }
func (*ExportEntitiesResponse) ProtoMessage() {}
func (*ExportEntitiesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *ExportEntitiesResponse) GetOutputUrl() string {
if m != nil {
return m.OutputUrl
}
return ""
}
// Metadata for ExportEntities operations.
type ExportEntitiesMetadata struct {
// Metadata common to all Datastore Admin operations.
Common *CommonMetadata `protobuf:"bytes,1,opt,name=common" json:"common,omitempty"`
// An estimate of the number of entities processed.
ProgressEntities *Progress `protobuf:"bytes,2,opt,name=progress_entities,json=progressEntities" json:"progress_entities,omitempty"`
// An estimate of the number of bytes processed.
ProgressBytes *Progress `protobuf:"bytes,3,opt,name=progress_bytes,json=progressBytes" json:"progress_bytes,omitempty"`
// Description of which entities are being exported.
EntityFilter *EntityFilter `protobuf:"bytes,4,opt,name=entity_filter,json=entityFilter" json:"entity_filter,omitempty"`
// Location for the export metadata and data files. This will be the same
// value as the
// [google.datastore.admin.v1beta1.ExportEntitiesRequest.output_url_prefix][google.datastore.admin.v1beta1.ExportEntitiesRequest.output_url_prefix]
// field. The final output location is provided in
// [google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url][google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url].
OutputUrlPrefix string `protobuf:"bytes,5,opt,name=output_url_prefix,json=outputUrlPrefix" json:"output_url_prefix,omitempty"`
}
func (m *ExportEntitiesMetadata) Reset() { *m = ExportEntitiesMetadata{} }
func (m *ExportEntitiesMetadata) String() string { return proto.CompactTextString(m) }
func (*ExportEntitiesMetadata) ProtoMessage() {}
func (*ExportEntitiesMetadata) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *ExportEntitiesMetadata) GetCommon() *CommonMetadata {
if m != nil {
return m.Common
}
return nil
}
func (m *ExportEntitiesMetadata) GetProgressEntities() *Progress {
if m != nil {
return m.ProgressEntities
}
return nil
}
func (m *ExportEntitiesMetadata) GetProgressBytes() *Progress {
if m != nil {
return m.ProgressBytes
}
return nil
}
func (m *ExportEntitiesMetadata) GetEntityFilter() *EntityFilter {
if m != nil {
return m.EntityFilter
}
return nil
}
func (m *ExportEntitiesMetadata) GetOutputUrlPrefix() string {
if m != nil {
return m.OutputUrlPrefix
}
return ""
}
// Metadata for ImportEntities operations.
type ImportEntitiesMetadata struct {
// Metadata common to all Datastore Admin operations.
Common *CommonMetadata `protobuf:"bytes,1,opt,name=common" json:"common,omitempty"`
// An estimate of the number of entities processed.
ProgressEntities *Progress `protobuf:"bytes,2,opt,name=progress_entities,json=progressEntities" json:"progress_entities,omitempty"`
// An estimate of the number of bytes processed.
ProgressBytes *Progress `protobuf:"bytes,3,opt,name=progress_bytes,json=progressBytes" json:"progress_bytes,omitempty"`
// Description of which entities are being imported.
EntityFilter *EntityFilter `protobuf:"bytes,4,opt,name=entity_filter,json=entityFilter" json:"entity_filter,omitempty"`
// The location of the import metadata file. This will be the same value as
// the [google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url][google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url]
// field.
InputUrl string `protobuf:"bytes,5,opt,name=input_url,json=inputUrl" json:"input_url,omitempty"`
}
func (m *ImportEntitiesMetadata) Reset() { *m = ImportEntitiesMetadata{} }
func (m *ImportEntitiesMetadata) String() string { return proto.CompactTextString(m) }
func (*ImportEntitiesMetadata) ProtoMessage() {}
func (*ImportEntitiesMetadata) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *ImportEntitiesMetadata) GetCommon() *CommonMetadata {
if m != nil {
return m.Common
}
return nil
}
func (m *ImportEntitiesMetadata) GetProgressEntities() *Progress {
if m != nil {
return m.ProgressEntities
}
return nil
}
func (m *ImportEntitiesMetadata) GetProgressBytes() *Progress {
if m != nil {
return m.ProgressBytes
}
return nil
}
func (m *ImportEntitiesMetadata) GetEntityFilter() *EntityFilter {
if m != nil {
return m.EntityFilter
}
return nil
}
func (m *ImportEntitiesMetadata) GetInputUrl() string {
if m != nil {
return m.InputUrl
}
return ""
}
// Identifies a subset of entities in a project. This is specified as
// combinations of kinds and namespaces (either or both of which may be all, as
// described in the following examples).
// Example usage:
//
// Entire project:
// kinds=[], namespace_ids=[]
//
// Kinds Foo and Bar in all namespaces:
// kinds=['Foo', 'Bar'], namespace_ids=[]
//
// Kinds Foo and Bar only in the default namespace:
// kinds=['Foo', 'Bar'], namespace_ids=['']
//
// Kinds Foo and Bar in both the default and Baz namespaces:
// kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']
//
// The entire Baz namespace:
// kinds=[], namespace_ids=['Baz']
type EntityFilter struct {
// If empty, then this represents all kinds.
Kinds []string `protobuf:"bytes,1,rep,name=kinds" json:"kinds,omitempty"`
// An empty list represents all namespaces. This is the preferred
// usage for projects that don't use namespaces.
//
// An empty string element represents the default namespace. This should be
// used if the project has data in non-default namespaces, but doesn't want to
// include them.
// Each namespace in this list must be unique.
NamespaceIds []string `protobuf:"bytes,2,rep,name=namespace_ids,json=namespaceIds" json:"namespace_ids,omitempty"`
}
func (m *EntityFilter) Reset() { *m = EntityFilter{} }
func (m *EntityFilter) String() string { return proto.CompactTextString(m) }
func (*EntityFilter) ProtoMessage() {}
func (*EntityFilter) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *EntityFilter) GetKinds() []string {
if m != nil {
return m.Kinds
}
return nil
}
func (m *EntityFilter) GetNamespaceIds() []string {
if m != nil {
return m.NamespaceIds
}
return nil
}
func init() {
proto.RegisterType((*CommonMetadata)(nil), "google.datastore.admin.v1beta1.CommonMetadata")
proto.RegisterType((*Progress)(nil), "google.datastore.admin.v1beta1.Progress")
proto.RegisterType((*ExportEntitiesRequest)(nil), "google.datastore.admin.v1beta1.ExportEntitiesRequest")
proto.RegisterType((*ImportEntitiesRequest)(nil), "google.datastore.admin.v1beta1.ImportEntitiesRequest")
proto.RegisterType((*ExportEntitiesResponse)(nil), "google.datastore.admin.v1beta1.ExportEntitiesResponse")
proto.RegisterType((*ExportEntitiesMetadata)(nil), "google.datastore.admin.v1beta1.ExportEntitiesMetadata")
proto.RegisterType((*ImportEntitiesMetadata)(nil), "google.datastore.admin.v1beta1.ImportEntitiesMetadata")
proto.RegisterType((*EntityFilter)(nil), "google.datastore.admin.v1beta1.EntityFilter")
proto.RegisterEnum("google.datastore.admin.v1beta1.OperationType", OperationType_name, OperationType_value)
proto.RegisterEnum("google.datastore.admin.v1beta1.CommonMetadata_State", CommonMetadata_State_name, CommonMetadata_State_value)
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for DatastoreAdmin service
type DatastoreAdminClient interface {
// Exports a copy of all or a subset of entities from Google Cloud Datastore
// to another storage system, such as Google Cloud Storage. Recent updates to
// entities may not be reflected in the export. The export occurs in the
// background and its progress can be monitored and managed via the
// Operation resource that is created. The output of an export may only be
// used once the associated operation is done. If an export operation is
// cancelled before completion it may leave partial data behind in Google
// Cloud Storage.
ExportEntities(ctx context.Context, in *ExportEntitiesRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
// Imports entities into Google Cloud Datastore. Existing entities with the
// same key are overwritten. The import occurs in the background and its
// progress can be monitored and managed via the Operation resource that is
// created. If an ImportEntities operation is cancelled, it is possible
// that a subset of the data has already been imported to Cloud Datastore.
ImportEntities(ctx context.Context, in *ImportEntitiesRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
}
type datastoreAdminClient struct {
cc *grpc.ClientConn
}
func NewDatastoreAdminClient(cc *grpc.ClientConn) DatastoreAdminClient {
return &datastoreAdminClient{cc}
}
func (c *datastoreAdminClient) ExportEntities(ctx context.Context, in *ExportEntitiesRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.datastore.admin.v1beta1.DatastoreAdmin/ExportEntities", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *datastoreAdminClient) ImportEntities(ctx context.Context, in *ImportEntitiesRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.datastore.admin.v1beta1.DatastoreAdmin/ImportEntities", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for DatastoreAdmin service
type DatastoreAdminServer interface {
// Exports a copy of all or a subset of entities from Google Cloud Datastore
// to another storage system, such as Google Cloud Storage. Recent updates to
// entities may not be reflected in the export. The export occurs in the
// background and its progress can be monitored and managed via the
// Operation resource that is created. The output of an export may only be
// used once the associated operation is done. If an export operation is
// cancelled before completion it may leave partial data behind in Google
// Cloud Storage.
ExportEntities(context.Context, *ExportEntitiesRequest) (*google_longrunning.Operation, error)
// Imports entities into Google Cloud Datastore. Existing entities with the
// same key are overwritten. The import occurs in the background and its
// progress can be monitored and managed via the Operation resource that is
// created. If an ImportEntities operation is cancelled, it is possible
// that a subset of the data has already been imported to Cloud Datastore.
ImportEntities(context.Context, *ImportEntitiesRequest) (*google_longrunning.Operation, error)
}
func RegisterDatastoreAdminServer(s *grpc.Server, srv DatastoreAdminServer) {
s.RegisterService(&_DatastoreAdmin_serviceDesc, srv)
}
func _DatastoreAdmin_ExportEntities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ExportEntitiesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DatastoreAdminServer).ExportEntities(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.datastore.admin.v1beta1.DatastoreAdmin/ExportEntities",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DatastoreAdminServer).ExportEntities(ctx, req.(*ExportEntitiesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _DatastoreAdmin_ImportEntities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ImportEntitiesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DatastoreAdminServer).ImportEntities(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.datastore.admin.v1beta1.DatastoreAdmin/ImportEntities",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DatastoreAdminServer).ImportEntities(ctx, req.(*ImportEntitiesRequest))
}
return interceptor(ctx, in, info, handler)
}
var _DatastoreAdmin_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.datastore.admin.v1beta1.DatastoreAdmin",
HandlerType: (*DatastoreAdminServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ExportEntities",
Handler: _DatastoreAdmin_ExportEntities_Handler,
},
{
MethodName: "ImportEntities",
Handler: _DatastoreAdmin_ImportEntities_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/datastore/admin/v1beta1/datastore_admin.proto",
}
func init() {
proto.RegisterFile("google/datastore/admin/v1beta1/datastore_admin.proto", fileDescriptor0)
}
var fileDescriptor0 = []byte{
// 996 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0x41, 0x8f, 0xdb, 0x44,
0x14, 0xc6, 0xce, 0x26, 0x6d, 0xde, 0x6e, 0xd2, 0xec, 0x94, 0xad, 0xa2, 0x40, 0xcb, 0xca, 0xa5,
0xd2, 0x6a, 0x05, 0x0e, 0x1b, 0x5a, 0x41, 0x97, 0x53, 0x36, 0xeb, 0x54, 0x46, 0x69, 0x12, 0x1c,
0x07, 0x75, 0x7b, 0xb1, 0x9c, 0x78, 0x36, 0x32, 0x6b, 0x7b, 0x8c, 0x3d, 0x29, 0x8d, 0x10, 0x17,
0x2e, 0x1c, 0x38, 0x72, 0xe1, 0x1f, 0x20, 0xf1, 0x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