Bumping k8s dependencies to 1.13

This commit is contained in:
Cheng Xing
2018-11-16 14:08:25 -08:00
parent 305407125c
commit b4c0b68ec7
8002 changed files with 884099 additions and 276228 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,334 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/datastore/admin/v1/index.proto
package admin
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
// 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
// For an ordered index, specifies whether each of the entity's ancestors
// will be included.
type Index_AncestorMode int32
const (
// The ancestor mode is unspecified.
Index_ANCESTOR_MODE_UNSPECIFIED Index_AncestorMode = 0
// Do not include the entity's ancestors in the index.
Index_NONE Index_AncestorMode = 1
// Include all the entity's ancestors in the index.
Index_ALL_ANCESTORS Index_AncestorMode = 2
)
var Index_AncestorMode_name = map[int32]string{
0: "ANCESTOR_MODE_UNSPECIFIED",
1: "NONE",
2: "ALL_ANCESTORS",
}
var Index_AncestorMode_value = map[string]int32{
"ANCESTOR_MODE_UNSPECIFIED": 0,
"NONE": 1,
"ALL_ANCESTORS": 2,
}
func (x Index_AncestorMode) String() string {
return proto.EnumName(Index_AncestorMode_name, int32(x))
}
func (Index_AncestorMode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_809cc5775e1cdeb3, []int{0, 0}
}
// The direction determines how a property is indexed.
type Index_Direction int32
const (
// The direction is unspecified.
Index_DIRECTION_UNSPECIFIED Index_Direction = 0
// The property's values are indexed so as to support sequencing in
// ascending order and also query by <, >, <=, >=, and =.
Index_ASCENDING Index_Direction = 1
// The property's values are indexed so as to support sequencing in
// descending order and also query by <, >, <=, >=, and =.
Index_DESCENDING Index_Direction = 2
)
var Index_Direction_name = map[int32]string{
0: "DIRECTION_UNSPECIFIED",
1: "ASCENDING",
2: "DESCENDING",
}
var Index_Direction_value = map[string]int32{
"DIRECTION_UNSPECIFIED": 0,
"ASCENDING": 1,
"DESCENDING": 2,
}
func (x Index_Direction) String() string {
return proto.EnumName(Index_Direction_name, int32(x))
}
func (Index_Direction) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_809cc5775e1cdeb3, []int{0, 1}
}
// The possible set of states of an index.
type Index_State int32
const (
// The state is unspecified.
Index_STATE_UNSPECIFIED Index_State = 0
// The index is being created, and cannot be used by queries.
// There is an active long-running operation for the index.
// The index is updated when writing an entity.
// Some index data may exist.
Index_CREATING Index_State = 1
// The index is ready to be used.
// The index is updated when writing an entity.
// The index is fully populated from all stored entities it applies to.
Index_READY Index_State = 2
// The index is being deleted, and cannot be used by queries.
// There is an active long-running operation for the index.
// The index is not updated when writing an entity.
// Some index data may exist.
Index_DELETING Index_State = 3
// The index was being created or deleted, but something went wrong.
// The index cannot by used by queries.
// There is no active long-running operation for the index,
// and the most recently finished long-running operation failed.
// The index is not updated when writing an entity.
// Some index data may exist.
Index_ERROR Index_State = 4
)
var Index_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "READY",
3: "DELETING",
4: "ERROR",
}
var Index_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"READY": 2,
"DELETING": 3,
"ERROR": 4,
}
func (x Index_State) String() string {
return proto.EnumName(Index_State_name, int32(x))
}
func (Index_State) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_809cc5775e1cdeb3, []int{0, 2}
}
// A minimal index definition.
// Next tag: 8
type Index struct {
// Project ID.
// Output only.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// The resource ID of the index.
// Output only.
IndexId string `protobuf:"bytes,3,opt,name=index_id,json=indexId,proto3" json:"index_id,omitempty"`
// The entity kind to which this index applies.
// Required.
Kind string `protobuf:"bytes,4,opt,name=kind,proto3" json:"kind,omitempty"`
// The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED.
// Required.
Ancestor Index_AncestorMode `protobuf:"varint,5,opt,name=ancestor,proto3,enum=google.datastore.admin.v1.Index_AncestorMode" json:"ancestor,omitempty"`
// An ordered sequence of property names and their index attributes.
// Required.
Properties []*Index_IndexedProperty `protobuf:"bytes,6,rep,name=properties,proto3" json:"properties,omitempty"`
// The state of the index.
// Output only.
State Index_State `protobuf:"varint,7,opt,name=state,proto3,enum=google.datastore.admin.v1.Index_State" json:"state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Index) Reset() { *m = Index{} }
func (m *Index) String() string { return proto.CompactTextString(m) }
func (*Index) ProtoMessage() {}
func (*Index) Descriptor() ([]byte, []int) {
return fileDescriptor_809cc5775e1cdeb3, []int{0}
}
func (m *Index) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Index.Unmarshal(m, b)
}
func (m *Index) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Index.Marshal(b, m, deterministic)
}
func (m *Index) XXX_Merge(src proto.Message) {
xxx_messageInfo_Index.Merge(m, src)
}
func (m *Index) XXX_Size() int {
return xxx_messageInfo_Index.Size(m)
}
func (m *Index) XXX_DiscardUnknown() {
xxx_messageInfo_Index.DiscardUnknown(m)
}
var xxx_messageInfo_Index proto.InternalMessageInfo
func (m *Index) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *Index) GetIndexId() string {
if m != nil {
return m.IndexId
}
return ""
}
func (m *Index) GetKind() string {
if m != nil {
return m.Kind
}
return ""
}
func (m *Index) GetAncestor() Index_AncestorMode {
if m != nil {
return m.Ancestor
}
return Index_ANCESTOR_MODE_UNSPECIFIED
}
func (m *Index) GetProperties() []*Index_IndexedProperty {
if m != nil {
return m.Properties
}
return nil
}
func (m *Index) GetState() Index_State {
if m != nil {
return m.State
}
return Index_STATE_UNSPECIFIED
}
// Next tag: 3
type Index_IndexedProperty struct {
// The property name to index.
// Required.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The indexed property's direction. Must not be DIRECTION_UNSPECIFIED.
// Required.
Direction Index_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=google.datastore.admin.v1.Index_Direction" json:"direction,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Index_IndexedProperty) Reset() { *m = Index_IndexedProperty{} }
func (m *Index_IndexedProperty) String() string { return proto.CompactTextString(m) }
func (*Index_IndexedProperty) ProtoMessage() {}
func (*Index_IndexedProperty) Descriptor() ([]byte, []int) {
return fileDescriptor_809cc5775e1cdeb3, []int{0, 0}
}
func (m *Index_IndexedProperty) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Index_IndexedProperty.Unmarshal(m, b)
}
func (m *Index_IndexedProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Index_IndexedProperty.Marshal(b, m, deterministic)
}
func (m *Index_IndexedProperty) XXX_Merge(src proto.Message) {
xxx_messageInfo_Index_IndexedProperty.Merge(m, src)
}
func (m *Index_IndexedProperty) XXX_Size() int {
return xxx_messageInfo_Index_IndexedProperty.Size(m)
}
func (m *Index_IndexedProperty) XXX_DiscardUnknown() {
xxx_messageInfo_Index_IndexedProperty.DiscardUnknown(m)
}
var xxx_messageInfo_Index_IndexedProperty proto.InternalMessageInfo
func (m *Index_IndexedProperty) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Index_IndexedProperty) GetDirection() Index_Direction {
if m != nil {
return m.Direction
}
return Index_DIRECTION_UNSPECIFIED
}
func init() {
proto.RegisterEnum("google.datastore.admin.v1.Index_AncestorMode", Index_AncestorMode_name, Index_AncestorMode_value)
proto.RegisterEnum("google.datastore.admin.v1.Index_Direction", Index_Direction_name, Index_Direction_value)
proto.RegisterEnum("google.datastore.admin.v1.Index_State", Index_State_name, Index_State_value)
proto.RegisterType((*Index)(nil), "google.datastore.admin.v1.Index")
proto.RegisterType((*Index_IndexedProperty)(nil), "google.datastore.admin.v1.Index.IndexedProperty")
}
func init() {
proto.RegisterFile("google/datastore/admin/v1/index.proto", fileDescriptor_809cc5775e1cdeb3)
}
var fileDescriptor_809cc5775e1cdeb3 = []byte{
// 492 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0x6f, 0x6b, 0xd3, 0x4e,
0x1c, 0xff, 0xa5, 0x6d, 0xb6, 0xe6, 0xfb, 0xdb, 0x66, 0x76, 0x30, 0x48, 0x87, 0xc5, 0x52, 0x50,
0x8a, 0x60, 0x62, 0xe7, 0x43, 0x45, 0xc8, 0x92, 0x73, 0x46, 0xba, 0x34, 0x5c, 0xa2, 0xa0, 0x4f,
0xca, 0xd9, 0x3b, 0x42, 0xb4, 0xbd, 0x0b, 0x49, 0x1c, 0xfa, 0x06, 0x7c, 0xea, 0xfb, 0xf0, 0x55,
0x4a, 0x2e, 0x59, 0x1c, 0xc5, 0xd1, 0x27, 0xe1, 0x7b, 0xf7, 0xfd, 0xfc, 0xe3, 0xc3, 0x05, 0x1e,
0xa7, 0x52, 0xa6, 0x1b, 0xee, 0x30, 0x5a, 0xd1, 0xb2, 0x92, 0x05, 0x77, 0x28, 0xdb, 0x66, 0xc2,
0xb9, 0x99, 0x3b, 0x99, 0x60, 0xfc, 0xbb, 0x9d, 0x17, 0xb2, 0x92, 0x68, 0xd4, 0xc0, 0xec, 0x0e,
0x66, 0x2b, 0x98, 0x7d, 0x33, 0x3f, 0x7f, 0xd8, 0x2a, 0xd0, 0x3c, 0x73, 0xa8, 0x10, 0xb2, 0xa2,
0x55, 0x26, 0x45, 0xd9, 0x10, 0xa7, 0x3f, 0x75, 0xd0, 0x83, 0x5a, 0x08, 0x8d, 0x01, 0xf2, 0x42,
0x7e, 0xe1, 0xeb, 0x6a, 0x95, 0x31, 0x4b, 0x9b, 0x68, 0x33, 0x83, 0x18, 0xed, 0x4d, 0xc0, 0xd0,
0x08, 0x86, 0xca, 0xb0, 0x5e, 0xf6, 0xd5, 0xf2, 0x50, 0x9d, 0x03, 0x86, 0x10, 0x0c, 0xbe, 0x66,
0x82, 0x59, 0x03, 0x75, 0xad, 0x66, 0x14, 0xc0, 0x90, 0x8a, 0x35, 0xaf, 0xb3, 0x58, 0xfa, 0x44,
0x9b, 0x9d, 0x5c, 0x3c, 0xb3, 0xef, 0xcd, 0x68, 0xab, 0x04, 0xb6, 0xdb, 0x12, 0xae, 0x25, 0xe3,
0xa4, 0xa3, 0xa3, 0x48, 0x05, 0xcb, 0x79, 0x51, 0x65, 0xbc, 0xb4, 0x0e, 0x26, 0xfd, 0xd9, 0xff,
0x17, 0xcf, 0xf7, 0x8a, 0xa9, 0x2f, 0x67, 0x51, 0xc3, 0xfc, 0x41, 0xee, 0x68, 0xa0, 0x57, 0xa0,
0x97, 0x15, 0xad, 0xb8, 0x75, 0xa8, 0x92, 0x3d, 0xd9, 0x2b, 0x16, 0xd7, 0x68, 0xd2, 0x90, 0xce,
0x25, 0x3c, 0xd8, 0x11, 0xaf, 0x1b, 0x10, 0x74, 0xcb, 0xdb, 0xd6, 0xd4, 0x8c, 0xde, 0x82, 0xc1,
0xb2, 0x82, 0xaf, 0xeb, 0xb6, 0xad, 0x9e, 0x32, 0x7a, 0xba, 0xd7, 0xc8, 0xbf, 0x65, 0x90, 0xbf,
0xe4, 0xe9, 0x3b, 0x38, 0xba, 0x5b, 0x0d, 0x1a, 0xc3, 0xc8, 0x0d, 0x3d, 0x1c, 0x27, 0x4b, 0xb2,
0xba, 0x5e, 0xfa, 0x78, 0xf5, 0x3e, 0x8c, 0x23, 0xec, 0x05, 0x6f, 0x02, 0xec, 0x9b, 0xff, 0xa1,
0x21, 0x0c, 0xc2, 0x65, 0x88, 0x4d, 0x0d, 0x9d, 0xc2, 0xb1, 0xbb, 0x58, 0xac, 0x6e, 0xc1, 0xb1,
0xd9, 0x9b, 0x62, 0x30, 0x3a, 0x0f, 0x34, 0x82, 0x33, 0x3f, 0x20, 0xd8, 0x4b, 0x82, 0x65, 0xb8,
0x23, 0x72, 0x0c, 0x86, 0x1b, 0x7b, 0x38, 0xf4, 0x83, 0xf0, 0xca, 0xd4, 0xd0, 0x09, 0x80, 0x8f,
0xbb, 0x73, 0x6f, 0x1a, 0x81, 0xae, 0x3a, 0x41, 0x67, 0x70, 0x1a, 0x27, 0x6e, 0xb2, 0x9b, 0xe1,
0x08, 0x86, 0x1e, 0xc1, 0x6e, 0xd2, 0xb0, 0x0d, 0xd0, 0x09, 0x76, 0xfd, 0x8f, 0x66, 0xaf, 0x5e,
0xf8, 0x78, 0x81, 0xd5, 0xa2, 0x5f, 0x2f, 0x30, 0x21, 0x4b, 0x62, 0x0e, 0x2e, 0x7f, 0x69, 0x30,
0x5e, 0xcb, 0xed, 0xfd, 0x0d, 0x5d, 0x82, 0xaa, 0x28, 0xaa, 0x9f, 0x6d, 0xa4, 0x7d, 0x7a, 0xdd,
0x02, 0x53, 0xb9, 0xa1, 0x22, 0xb5, 0x65, 0x91, 0x3a, 0x29, 0x17, 0xea, 0x51, 0x3b, 0xcd, 0x8a,
0xe6, 0x59, 0xf9, 0x8f, 0xff, 0xe6, 0xa5, 0x1a, 0x7e, 0xf7, 0x1e, 0x5d, 0x35, 0x02, 0xde, 0x46,
0x7e, 0x63, 0xb6, 0xdf, 0xf9, 0xb9, 0xca, 0xef, 0xc3, 0xfc, 0xf3, 0x81, 0x12, 0x7b, 0xf1, 0x27,
0x00, 0x00, 0xff, 0xff, 0x3b, 0x8d, 0xf4, 0xff, 0x83, 0x03, 0x00, 0x00,
}

View File

@@ -1,34 +1,17 @@
// 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"
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
longrunning "google.golang.org/genproto/googleapis/longrunning"
grpc "google.golang.org/grpc"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
@@ -59,6 +42,7 @@ var OperationType_name = map[int32]string{
1: "EXPORT_ENTITIES",
2: "IMPORT_ENTITIES",
}
var OperationType_value = map[string]int32{
"OPERATION_TYPE_UNSPECIFIED": 0,
"EXPORT_ENTITIES": 1,
@@ -68,7 +52,10 @@ var OperationType_value = map[string]int32{
func (x OperationType) String() string {
return proto.EnumName(OperationType_name, int32(x))
}
func (OperationType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (OperationType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_b63216f38706ce20, []int{0}
}
// The various possible states for an ongoing Operation.
type CommonMetadata_State int32
@@ -104,6 +91,7 @@ var CommonMetadata_State_name = map[int32]string{
6: "FAILED",
7: "CANCELLED",
}
var CommonMetadata_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"INITIALIZING": 1,
@@ -118,37 +106,63 @@ var CommonMetadata_State_value = map[string]int32{
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} }
func (CommonMetadata_State) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_b63216f38706ce20, []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"`
StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" 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"`
EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" 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"`
OperationType OperationType `protobuf:"varint,3,opt,name=operation_type,json=operationType,proto3,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"`
Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// 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"`
State CommonMetadata_State `protobuf:"varint,5,opt,name=state,proto3,enum=google.datastore.admin.v1beta1.CommonMetadata_State" json:"state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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) Reset() { *m = CommonMetadata{} }
func (m *CommonMetadata) String() string { return proto.CompactTextString(m) }
func (*CommonMetadata) ProtoMessage() {}
func (*CommonMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_b63216f38706ce20, []int{0}
}
func (m *CommonMetadata) GetStartTime() *google_protobuf3.Timestamp {
func (m *CommonMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommonMetadata.Unmarshal(m, b)
}
func (m *CommonMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommonMetadata.Marshal(b, m, deterministic)
}
func (m *CommonMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommonMetadata.Merge(m, src)
}
func (m *CommonMetadata) XXX_Size() int {
return xxx_messageInfo_CommonMetadata.Size(m)
}
func (m *CommonMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_CommonMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_CommonMetadata proto.InternalMessageInfo
func (m *CommonMetadata) GetStartTime() *timestamp.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *CommonMetadata) GetEndTime() *google_protobuf3.Timestamp {
func (m *CommonMetadata) GetEndTime() *timestamp.Timestamp {
if m != nil {
return m.EndTime
}
@@ -180,16 +194,39 @@ func (m *CommonMetadata) GetState() CommonMetadata_State {
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"`
WorkCompleted int64 `protobuf:"varint,1,opt,name=work_completed,json=workCompleted,proto3" 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"`
WorkEstimated int64 `protobuf:"varint,2,opt,name=work_estimated,json=workEstimated,proto3" json:"work_estimated,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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) Reset() { *m = Progress{} }
func (m *Progress) String() string { return proto.CompactTextString(m) }
func (*Progress) ProtoMessage() {}
func (*Progress) Descriptor() ([]byte, []int) {
return fileDescriptor_b63216f38706ce20, []int{1}
}
func (m *Progress) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Progress.Unmarshal(m, b)
}
func (m *Progress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Progress.Marshal(b, m, deterministic)
}
func (m *Progress) XXX_Merge(src proto.Message) {
xxx_messageInfo_Progress.Merge(m, src)
}
func (m *Progress) XXX_Size() int {
return xxx_messageInfo_Progress.Size(m)
}
func (m *Progress) XXX_DiscardUnknown() {
xxx_messageInfo_Progress.DiscardUnknown(m)
}
var xxx_messageInfo_Progress proto.InternalMessageInfo
func (m *Progress) GetWorkCompleted() int64 {
if m != nil {
@@ -209,11 +246,11 @@ func (m *Progress) GetWorkEstimated() int64 {
// [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"`
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" 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"`
Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// 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"`
EntityFilter *EntityFilter `protobuf:"bytes,3,opt,name=entity_filter,json=entityFilter,proto3" json:"entity_filter,omitempty"`
// Location for the export metadata and data files.
//
// The full resource URL of the external storage location. Currently, only
@@ -232,13 +269,36 @@ type ExportEntitiesRequest struct {
//
// 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"`
OutputUrlPrefix string `protobuf:"bytes,4,opt,name=output_url_prefix,json=outputUrlPrefix,proto3" json:"output_url_prefix,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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) Reset() { *m = ExportEntitiesRequest{} }
func (m *ExportEntitiesRequest) String() string { return proto.CompactTextString(m) }
func (*ExportEntitiesRequest) ProtoMessage() {}
func (*ExportEntitiesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b63216f38706ce20, []int{2}
}
func (m *ExportEntitiesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExportEntitiesRequest.Unmarshal(m, b)
}
func (m *ExportEntitiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExportEntitiesRequest.Marshal(b, m, deterministic)
}
func (m *ExportEntitiesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExportEntitiesRequest.Merge(m, src)
}
func (m *ExportEntitiesRequest) XXX_Size() int {
return xxx_messageInfo_ExportEntitiesRequest.Size(m)
}
func (m *ExportEntitiesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ExportEntitiesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ExportEntitiesRequest proto.InternalMessageInfo
func (m *ExportEntitiesRequest) GetProjectId() string {
if m != nil {
@@ -272,9 +332,9 @@ func (m *ExportEntitiesRequest) GetOutputUrlPrefix() string {
// [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"`
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" 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"`
Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// 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
@@ -288,18 +348,41 @@ type ImportEntitiesRequest struct {
//
// 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"`
InputUrl string `protobuf:"bytes,3,opt,name=input_url,json=inputUrl,proto3" 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"`
EntityFilter *EntityFilter `protobuf:"bytes,4,opt,name=entity_filter,json=entityFilter,proto3" json:"entity_filter,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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) Reset() { *m = ImportEntitiesRequest{} }
func (m *ImportEntitiesRequest) String() string { return proto.CompactTextString(m) }
func (*ImportEntitiesRequest) ProtoMessage() {}
func (*ImportEntitiesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b63216f38706ce20, []int{3}
}
func (m *ImportEntitiesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImportEntitiesRequest.Unmarshal(m, b)
}
func (m *ImportEntitiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImportEntitiesRequest.Marshal(b, m, deterministic)
}
func (m *ImportEntitiesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImportEntitiesRequest.Merge(m, src)
}
func (m *ImportEntitiesRequest) XXX_Size() int {
return xxx_messageInfo_ImportEntitiesRequest.Size(m)
}
func (m *ImportEntitiesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ImportEntitiesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ImportEntitiesRequest proto.InternalMessageInfo
func (m *ImportEntitiesRequest) GetProjectId() string {
if m != nil {
@@ -336,13 +419,36 @@ type ExportEntitiesResponse struct {
// 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"`
OutputUrl string `protobuf:"bytes,1,opt,name=output_url,json=outputUrl,proto3" json:"output_url,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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) Reset() { *m = ExportEntitiesResponse{} }
func (m *ExportEntitiesResponse) String() string { return proto.CompactTextString(m) }
func (*ExportEntitiesResponse) ProtoMessage() {}
func (*ExportEntitiesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b63216f38706ce20, []int{4}
}
func (m *ExportEntitiesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExportEntitiesResponse.Unmarshal(m, b)
}
func (m *ExportEntitiesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExportEntitiesResponse.Marshal(b, m, deterministic)
}
func (m *ExportEntitiesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExportEntitiesResponse.Merge(m, src)
}
func (m *ExportEntitiesResponse) XXX_Size() int {
return xxx_messageInfo_ExportEntitiesResponse.Size(m)
}
func (m *ExportEntitiesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ExportEntitiesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ExportEntitiesResponse proto.InternalMessageInfo
func (m *ExportEntitiesResponse) GetOutputUrl() string {
if m != nil {
@@ -354,25 +460,48 @@ func (m *ExportEntitiesResponse) GetOutputUrl() string {
// 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"`
Common *CommonMetadata `protobuf:"bytes,1,opt,name=common,proto3" 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"`
ProgressEntities *Progress `protobuf:"bytes,2,opt,name=progress_entities,json=progressEntities,proto3" 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"`
ProgressBytes *Progress `protobuf:"bytes,3,opt,name=progress_bytes,json=progressBytes,proto3" 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"`
EntityFilter *EntityFilter `protobuf:"bytes,4,opt,name=entity_filter,json=entityFilter,proto3" 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"`
OutputUrlPrefix string `protobuf:"bytes,5,opt,name=output_url_prefix,json=outputUrlPrefix,proto3" json:"output_url_prefix,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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) Reset() { *m = ExportEntitiesMetadata{} }
func (m *ExportEntitiesMetadata) String() string { return proto.CompactTextString(m) }
func (*ExportEntitiesMetadata) ProtoMessage() {}
func (*ExportEntitiesMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_b63216f38706ce20, []int{5}
}
func (m *ExportEntitiesMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExportEntitiesMetadata.Unmarshal(m, b)
}
func (m *ExportEntitiesMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExportEntitiesMetadata.Marshal(b, m, deterministic)
}
func (m *ExportEntitiesMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExportEntitiesMetadata.Merge(m, src)
}
func (m *ExportEntitiesMetadata) XXX_Size() int {
return xxx_messageInfo_ExportEntitiesMetadata.Size(m)
}
func (m *ExportEntitiesMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_ExportEntitiesMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_ExportEntitiesMetadata proto.InternalMessageInfo
func (m *ExportEntitiesMetadata) GetCommon() *CommonMetadata {
if m != nil {
@@ -412,23 +541,46 @@ func (m *ExportEntitiesMetadata) GetOutputUrlPrefix() string {
// 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"`
Common *CommonMetadata `protobuf:"bytes,1,opt,name=common,proto3" 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"`
ProgressEntities *Progress `protobuf:"bytes,2,opt,name=progress_entities,json=progressEntities,proto3" 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"`
ProgressBytes *Progress `protobuf:"bytes,3,opt,name=progress_bytes,json=progressBytes,proto3" 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"`
EntityFilter *EntityFilter `protobuf:"bytes,4,opt,name=entity_filter,json=entityFilter,proto3" 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"`
InputUrl string `protobuf:"bytes,5,opt,name=input_url,json=inputUrl,proto3" json:"input_url,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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) Reset() { *m = ImportEntitiesMetadata{} }
func (m *ImportEntitiesMetadata) String() string { return proto.CompactTextString(m) }
func (*ImportEntitiesMetadata) ProtoMessage() {}
func (*ImportEntitiesMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_b63216f38706ce20, []int{6}
}
func (m *ImportEntitiesMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImportEntitiesMetadata.Unmarshal(m, b)
}
func (m *ImportEntitiesMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImportEntitiesMetadata.Marshal(b, m, deterministic)
}
func (m *ImportEntitiesMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImportEntitiesMetadata.Merge(m, src)
}
func (m *ImportEntitiesMetadata) XXX_Size() int {
return xxx_messageInfo_ImportEntitiesMetadata.Size(m)
}
func (m *ImportEntitiesMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_ImportEntitiesMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_ImportEntitiesMetadata proto.InternalMessageInfo
func (m *ImportEntitiesMetadata) GetCommon() *CommonMetadata {
if m != nil {
@@ -486,7 +638,7 @@ func (m *ImportEntitiesMetadata) GetInputUrl() string {
// 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"`
Kinds []string `protobuf:"bytes,1,rep,name=kinds,proto3" json:"kinds,omitempty"`
// An empty list represents all namespaces. This is the preferred
// usage for projects that don't use namespaces.
//
@@ -494,13 +646,36 @@ type EntityFilter struct {
// 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"`
NamespaceIds []string `protobuf:"bytes,2,rep,name=namespace_ids,json=namespaceIds,proto3" json:"namespace_ids,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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) Reset() { *m = EntityFilter{} }
func (m *EntityFilter) String() string { return proto.CompactTextString(m) }
func (*EntityFilter) ProtoMessage() {}
func (*EntityFilter) Descriptor() ([]byte, []int) {
return fileDescriptor_b63216f38706ce20, []int{7}
}
func (m *EntityFilter) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EntityFilter.Unmarshal(m, b)
}
func (m *EntityFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EntityFilter.Marshal(b, m, deterministic)
}
func (m *EntityFilter) XXX_Merge(src proto.Message) {
xxx_messageInfo_EntityFilter.Merge(m, src)
}
func (m *EntityFilter) XXX_Size() int {
return xxx_messageInfo_EntityFilter.Size(m)
}
func (m *EntityFilter) XXX_DiscardUnknown() {
xxx_messageInfo_EntityFilter.DiscardUnknown(m)
}
var xxx_messageInfo_EntityFilter proto.InternalMessageInfo
func (m *EntityFilter) GetKinds() []string {
if m != nil {
@@ -517,154 +692,26 @@ func (m *EntityFilter) GetNamespaceIds() []string {
}
func init() {
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)
proto.RegisterType((*CommonMetadata)(nil), "google.datastore.admin.v1beta1.CommonMetadata")
proto.RegisterMapType((map[string]string)(nil), "google.datastore.admin.v1beta1.CommonMetadata.LabelsEntry")
proto.RegisterType((*Progress)(nil), "google.datastore.admin.v1beta1.Progress")
proto.RegisterType((*ExportEntitiesRequest)(nil), "google.datastore.admin.v1beta1.ExportEntitiesRequest")
proto.RegisterMapType((map[string]string)(nil), "google.datastore.admin.v1beta1.ExportEntitiesRequest.LabelsEntry")
proto.RegisterType((*ImportEntitiesRequest)(nil), "google.datastore.admin.v1beta1.ImportEntitiesRequest")
proto.RegisterMapType((map[string]string)(nil), "google.datastore.admin.v1beta1.ImportEntitiesRequest.LabelsEntry")
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)
proto.RegisterFile("google/datastore/admin/v1beta1/datastore_admin.proto", fileDescriptor_b63216f38706ce20)
}
var fileDescriptor0 = []byte{
var fileDescriptor_b63216f38706ce20 = []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,
@@ -730,3 +777,134 @@ var fileDescriptor0 = []byte{
0x05, 0x4f, 0x4a, 0x9c, 0xf6, 0xdd, 0xdf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x77, 0x71, 0x2d, 0x88,
0xc4, 0x0b, 0x00, 0x00,
}
// 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
// DatastoreAdminClient is the client API for DatastoreAdmin service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
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) (*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) (*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) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/google.datastore.admin.v1beta1.DatastoreAdmin/ExportEntities", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *datastoreAdminClient) ImportEntities(ctx context.Context, in *ImportEntitiesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/google.datastore.admin.v1beta1.DatastoreAdmin/ImportEntities", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// DatastoreAdminServer is the 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) (*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) (*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",
}