mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
vendor update for CSI 0.3.0
This commit is contained in:
897
vendor/google.golang.org/genproto/googleapis/datastore/admin/v1/datastore_admin.pb.go
generated
vendored
Normal file
897
vendor/google.golang.org/genproto/googleapis/datastore/admin/v1/datastore_admin.pb.go
generated
vendored
Normal file
@ -0,0 +1,897 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/datastore/admin/v1/datastore_admin.proto
|
||||
|
||||
package admin // import "google.golang.org/genproto/googleapis/datastore/admin/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import longrunning "google.golang.org/genproto/googleapis/longrunning"
|
||||
|
||||
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 fileDescriptor_datastore_admin_975ad63a4fcacb5f, []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 fileDescriptor_datastore_admin_975ad63a4fcacb5f, []int{0, 0}
|
||||
}
|
||||
|
||||
// Metadata common to all Datastore Admin operations.
|
||||
type CommonMetadata struct {
|
||||
// The time that work began on the operation.
|
||||
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 *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,proto3,enum=google.datastore.admin.v1.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,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,proto3,enum=google.datastore.admin.v1.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 fileDescriptor_datastore_admin_975ad63a4fcacb5f, []int{0}
|
||||
}
|
||||
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 (dst *CommonMetadata) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CommonMetadata.Merge(dst, 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() *timestamp.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,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,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 fileDescriptor_datastore_admin_975ad63a4fcacb5f, []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 (dst *Progress) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Progress.Merge(dst, 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 {
|
||||
return m.WorkCompleted
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Progress) GetWorkEstimated() int64 {
|
||||
if m != nil {
|
||||
return m.WorkEstimated
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// The request for
|
||||
// [google.datastore.admin.v1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1.DatastoreAdmin.ExportEntities].
|
||||
type ExportEntitiesRequest struct {
|
||||
// Project ID against which to make the request.
|
||||
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,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,proto3" 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.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.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,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 fileDescriptor_datastore_admin_975ad63a4fcacb5f, []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 (dst *ExportEntitiesRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ExportEntitiesRequest.Merge(dst, 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 {
|
||||
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.v1.DatastoreAdmin.ImportEntities][google.datastore.admin.v1.DatastoreAdmin.ImportEntities].
|
||||
type ImportEntitiesRequest struct {
|
||||
// Project ID against which to make the request.
|
||||
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,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
|
||||
// `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.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url].
|
||||
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,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 fileDescriptor_datastore_admin_975ad63a4fcacb5f, []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 (dst *ImportEntitiesRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ImportEntitiesRequest.Merge(dst, 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 {
|
||||
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.v1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1.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.v1.ImportEntitiesRequest.input_url][google.datastore.admin.v1.ImportEntitiesRequest.input_url].
|
||||
// Only present if the operation completed successfully.
|
||||
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 fileDescriptor_datastore_admin_975ad63a4fcacb5f, []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 (dst *ExportEntitiesResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ExportEntitiesResponse.Merge(dst, 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 {
|
||||
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,proto3" json:"common,omitempty"`
|
||||
// An estimate of the number of entities processed.
|
||||
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,proto3" json:"progress_bytes,omitempty"`
|
||||
// Description of which entities are being exported.
|
||||
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.v1.ExportEntitiesRequest.output_url_prefix][google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix]
|
||||
// field. The final output location is provided in
|
||||
// [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url].
|
||||
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 fileDescriptor_datastore_admin_975ad63a4fcacb5f, []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 (dst *ExportEntitiesMetadata) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ExportEntitiesMetadata.Merge(dst, 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 {
|
||||
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,proto3" json:"common,omitempty"`
|
||||
// An estimate of the number of entities processed.
|
||||
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,proto3" json:"progress_bytes,omitempty"`
|
||||
// Description of which entities are being imported.
|
||||
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.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
|
||||
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 fileDescriptor_datastore_admin_975ad63a4fcacb5f, []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 (dst *ImportEntitiesMetadata) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ImportEntitiesMetadata.Merge(dst, 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 {
|
||||
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,proto3" 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,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 fileDescriptor_datastore_admin_975ad63a4fcacb5f, []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 (dst *EntityFilter) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_EntityFilter.Merge(dst, 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 {
|
||||
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.v1.CommonMetadata")
|
||||
proto.RegisterMapType((map[string]string)(nil), "google.datastore.admin.v1.CommonMetadata.LabelsEntry")
|
||||
proto.RegisterType((*Progress)(nil), "google.datastore.admin.v1.Progress")
|
||||
proto.RegisterType((*ExportEntitiesRequest)(nil), "google.datastore.admin.v1.ExportEntitiesRequest")
|
||||
proto.RegisterMapType((map[string]string)(nil), "google.datastore.admin.v1.ExportEntitiesRequest.LabelsEntry")
|
||||
proto.RegisterType((*ImportEntitiesRequest)(nil), "google.datastore.admin.v1.ImportEntitiesRequest")
|
||||
proto.RegisterMapType((map[string]string)(nil), "google.datastore.admin.v1.ImportEntitiesRequest.LabelsEntry")
|
||||
proto.RegisterType((*ExportEntitiesResponse)(nil), "google.datastore.admin.v1.ExportEntitiesResponse")
|
||||
proto.RegisterType((*ExportEntitiesMetadata)(nil), "google.datastore.admin.v1.ExportEntitiesMetadata")
|
||||
proto.RegisterType((*ImportEntitiesMetadata)(nil), "google.datastore.admin.v1.ImportEntitiesMetadata")
|
||||
proto.RegisterType((*EntityFilter)(nil), "google.datastore.admin.v1.EntityFilter")
|
||||
proto.RegisterEnum("google.datastore.admin.v1.OperationType", OperationType_name, OperationType_value)
|
||||
proto.RegisterEnum("google.datastore.admin.v1.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
|
||||
|
||||
// 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.v1.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.v1.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.v1.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.v1.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.v1.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/v1/datastore_admin.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/datastore/admin/v1/datastore_admin.proto", fileDescriptor_datastore_admin_975ad63a4fcacb5f)
|
||||
}
|
||||
|
||||
var fileDescriptor_datastore_admin_975ad63a4fcacb5f = []byte{
|
||||
// 987 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xdd, 0x6e, 0xe3, 0x44,
|
||||
0x14, 0xc6, 0xce, 0xcf, 0x36, 0xa7, 0x4d, 0x36, 0x9d, 0xa5, 0xab, 0x10, 0x28, 0x1b, 0xa5, 0x5a,
|
||||
0x51, 0x8a, 0x64, 0xd3, 0xa0, 0x15, 0x6c, 0x41, 0x48, 0x69, 0xea, 0xac, 0x8c, 0xd2, 0xc4, 0x72,
|
||||
0x1c, 0xb4, 0xbb, 0x37, 0x96, 0x1b, 0x4f, 0x23, 0x53, 0xdb, 0x63, 0xec, 0x49, 0xd9, 0x08, 0x71,
|
||||
0xc3, 0x2d, 0x12, 0x37, 0xdc, 0xf0, 0x0c, 0x5c, 0xf6, 0x0d, 0x78, 0x06, 0x5e, 0x61, 0xdf, 0x80,
|
||||
0x17, 0x40, 0x33, 0xb6, 0x93, 0xb8, 0x64, 0x43, 0xa1, 0xcb, 0xdd, 0xde, 0xf9, 0x9c, 0x39, 0xdf,
|
||||
0x37, 0x67, 0xbe, 0x99, 0x73, 0x7c, 0x40, 0x9e, 0x10, 0x32, 0x71, 0xb1, 0x6c, 0x5b, 0xd4, 0x8a,
|
||||
0x28, 0x09, 0xb1, 0x6c, 0xd9, 0x9e, 0xe3, 0xcb, 0x97, 0x87, 0x0b, 0x97, 0xc9, 0x5d, 0x52, 0x10,
|
||||
0x12, 0x4a, 0xd0, 0x3b, 0x31, 0x40, 0x9a, 0xaf, 0x4a, 0xf1, 0xea, 0xe5, 0x61, 0xfd, 0xbd, 0x84,
|
||||
0xcb, 0x0a, 0x1c, 0xd9, 0xf2, 0x7d, 0x42, 0x2d, 0xea, 0x10, 0x3f, 0x8a, 0x81, 0xf5, 0xbd, 0x64,
|
||||
0xd5, 0x25, 0xfe, 0x24, 0x9c, 0xfa, 0xbe, 0xe3, 0x4f, 0x64, 0x12, 0xe0, 0x30, 0x13, 0xf4, 0x20,
|
||||
0x09, 0xe2, 0xd6, 0xd9, 0xf4, 0x5c, 0xa6, 0x8e, 0x87, 0x23, 0x6a, 0x79, 0x41, 0x1c, 0xd0, 0xbc,
|
||||
0xca, 0x43, 0xa5, 0x43, 0x3c, 0x8f, 0xf8, 0xa7, 0x98, 0x5a, 0x2c, 0x09, 0xf4, 0x18, 0x20, 0xa2,
|
||||
0x56, 0x48, 0x4d, 0x16, 0x5b, 0x13, 0x1a, 0xc2, 0xfe, 0x66, 0xab, 0x2e, 0x25, 0x69, 0xa6, 0x44,
|
||||
0x92, 0x91, 0x12, 0xe9, 0x25, 0x1e, 0xcd, 0x6c, 0xf4, 0x08, 0x36, 0xb0, 0x6f, 0xc7, 0x40, 0xf1,
|
||||
0x1f, 0x81, 0x77, 0xb0, 0x6f, 0x73, 0xd8, 0x00, 0x2a, 0xf3, 0xcc, 0x4d, 0x3a, 0x0b, 0x70, 0x2d,
|
||||
0xd7, 0x10, 0xf6, 0x2b, 0xad, 0x7d, 0xe9, 0x95, 0xe2, 0x48, 0x83, 0x14, 0x60, 0xcc, 0x02, 0xac,
|
||||
0x97, 0xc9, 0xb2, 0x89, 0x4e, 0xa1, 0xe8, 0x5a, 0x67, 0xd8, 0x8d, 0x6a, 0xf9, 0x46, 0x6e, 0x7f,
|
||||
0xb3, 0xf5, 0x68, 0x0d, 0x51, 0xf6, 0xf4, 0x52, 0x8f, 0xe3, 0x14, 0x9f, 0x86, 0x33, 0x3d, 0x21,
|
||||
0x41, 0x0a, 0x14, 0x22, 0x6a, 0x51, 0x5c, 0x2b, 0xf0, 0xb4, 0xe4, 0x9b, 0xb3, 0x0d, 0x19, 0x4c,
|
||||
0x8f, 0xd1, 0xf5, 0xc7, 0xb0, 0xb9, 0xc4, 0x8e, 0xaa, 0x90, 0xbb, 0xc0, 0x33, 0x2e, 0x70, 0x49,
|
||||
0x67, 0x9f, 0xe8, 0x6d, 0x28, 0x5c, 0x5a, 0xee, 0x34, 0xd6, 0xae, 0xa4, 0xc7, 0xc6, 0x91, 0xf8,
|
||||
0x99, 0xd0, 0xfc, 0x49, 0x80, 0x02, 0xe7, 0x42, 0x3b, 0xb0, 0x3d, 0x34, 0xda, 0x86, 0x62, 0x8e,
|
||||
0xfa, 0x43, 0x4d, 0xe9, 0xa8, 0x5d, 0x55, 0x39, 0xa9, 0xbe, 0x85, 0xaa, 0xb0, 0xa5, 0xf6, 0x55,
|
||||
0x43, 0x6d, 0xf7, 0xd4, 0xe7, 0x6a, 0xff, 0x49, 0x55, 0x40, 0x15, 0x00, 0x4d, 0x1f, 0x74, 0x94,
|
||||
0xe1, 0x90, 0xd9, 0x22, 0xb3, 0x3b, 0xed, 0x7e, 0x47, 0xe9, 0xf5, 0x98, 0x9d, 0x63, 0x76, 0x57,
|
||||
0xed, 0xa7, 0xf1, 0x79, 0x66, 0x0f, 0x47, 0x1d, 0x16, 0xdf, 0x1d, 0xf5, 0xaa, 0x05, 0x04, 0x50,
|
||||
0xec, 0xb6, 0xd5, 0x9e, 0x72, 0x52, 0x2d, 0xa2, 0x32, 0x94, 0x12, 0xac, 0x72, 0x52, 0xbd, 0xd3,
|
||||
0x7c, 0x0a, 0x1b, 0x5a, 0x48, 0x26, 0x21, 0x8e, 0x22, 0xf4, 0x10, 0x2a, 0xdf, 0x91, 0xf0, 0xc2,
|
||||
0x1c, 0x13, 0x2f, 0x70, 0x31, 0xc5, 0x36, 0x3f, 0x50, 0x4e, 0x2f, 0x33, 0x6f, 0x27, 0x75, 0xce,
|
||||
0xc3, 0x70, 0x44, 0x1d, 0xcf, 0x62, 0x61, 0xe2, 0x22, 0x4c, 0x49, 0x9d, 0xcd, 0xdf, 0x45, 0xd8,
|
||||
0x51, 0x5e, 0x04, 0x24, 0xa4, 0x8a, 0x4f, 0x1d, 0xea, 0xe0, 0x48, 0xc7, 0xdf, 0x4e, 0x71, 0x44,
|
||||
0xd1, 0x2e, 0x40, 0x10, 0x92, 0x6f, 0xf0, 0x98, 0x9a, 0x8e, 0x9d, 0x88, 0x56, 0x4a, 0x3c, 0xaa,
|
||||
0x8d, 0x8c, 0xf9, 0x8d, 0x8b, 0xfc, 0xc6, 0xbf, 0x58, 0x73, 0x47, 0x2b, 0x37, 0x58, 0x79, 0xf1,
|
||||
0x3d, 0x28, 0x63, 0x16, 0x36, 0x33, 0xcf, 0x1d, 0x97, 0xe2, 0x90, 0xbf, 0xcb, 0xcd, 0xd6, 0x07,
|
||||
0xeb, 0xc8, 0x79, 0x7c, 0x97, 0x87, 0xeb, 0x5b, 0x78, 0xc9, 0x42, 0x07, 0xb0, 0x4d, 0xa6, 0x34,
|
||||
0x98, 0x52, 0x73, 0x1a, 0xba, 0x66, 0x10, 0xe2, 0x73, 0xe7, 0x45, 0x2d, 0xcf, 0x4f, 0x72, 0x37,
|
||||
0x5e, 0x18, 0x85, 0xae, 0xc6, 0xdd, 0xb7, 0x79, 0x2b, 0x57, 0x22, 0xec, 0xa8, 0xde, 0xff, 0xac,
|
||||
0xe1, 0xca, 0x0d, 0x56, 0x6a, 0xf8, 0x2e, 0x94, 0x1c, 0x3f, 0x39, 0x34, 0xd7, 0xaf, 0xa4, 0x6f,
|
||||
0x70, 0xc7, 0x28, 0x74, 0xff, 0x2e, 0x70, 0xfe, 0x16, 0x02, 0xdf, 0x46, 0xb4, 0x4f, 0xe1, 0xfe,
|
||||
0xf5, 0x67, 0x11, 0x05, 0xc4, 0x8f, 0x30, 0x13, 0x6d, 0x71, 0x6b, 0xa9, 0x68, 0xf3, 0xeb, 0x6a,
|
||||
0xfe, 0x29, 0x5e, 0x47, 0xce, 0x1b, 0x69, 0x1b, 0x8a, 0x63, 0xde, 0x0e, 0x92, 0x26, 0xfa, 0xe1,
|
||||
0x8d, 0xfb, 0x86, 0x9e, 0x00, 0x91, 0x06, 0xdb, 0x41, 0x52, 0x69, 0x26, 0x4e, 0xf8, 0x93, 0xce,
|
||||
0xba, 0xb7, 0x86, 0x2d, 0xad, 0x4e, 0xbd, 0x9a, 0xa2, 0xd3, 0xe4, 0xd0, 0x57, 0x50, 0x99, 0x33,
|
||||
0x9e, 0xcd, 0x28, 0x8e, 0x92, 0x37, 0x7d, 0x23, 0xba, 0x72, 0x0a, 0x3d, 0x66, 0xc8, 0xd7, 0x7b,
|
||||
0x7b, 0xab, 0xcb, 0xa3, 0xb0, 0xb2, 0x3c, 0x9a, 0x2f, 0x45, 0xb8, 0x9f, 0x7d, 0x82, 0x6f, 0x54,
|
||||
0xff, 0x6f, 0xaa, 0x67, 0xca, 0xb3, 0x90, 0x2d, 0xcf, 0xa6, 0x0a, 0x5b, 0xcb, 0x50, 0x56, 0x3f,
|
||||
0x17, 0x8e, 0x6f, 0x47, 0x35, 0xa1, 0x91, 0x63, 0xf5, 0xc3, 0x0d, 0xb4, 0x07, 0x65, 0xdf, 0xf2,
|
||||
0x70, 0x14, 0x58, 0x63, 0x6c, 0x3a, 0x76, 0xdc, 0x3e, 0x4a, 0xfa, 0xd6, 0xdc, 0xa9, 0xda, 0xd1,
|
||||
0xc1, 0x33, 0x28, 0x67, 0x7e, 0xd9, 0xe8, 0x7d, 0xa8, 0x0f, 0x34, 0x45, 0x6f, 0x1b, 0xea, 0xa0,
|
||||
0x6f, 0x1a, 0xcf, 0xb4, 0xeb, 0x7f, 0xb4, 0x7b, 0x70, 0x57, 0x79, 0xaa, 0x0d, 0x74, 0xc3, 0x54,
|
||||
0xfa, 0x86, 0x6a, 0xa8, 0xca, 0xb0, 0x2a, 0x30, 0xa7, 0x7a, 0x9a, 0x75, 0x8a, 0xad, 0x2b, 0x11,
|
||||
0x2a, 0x27, 0xe9, 0xa1, 0xdb, 0xec, 0xcc, 0xe8, 0x67, 0x01, 0x2a, 0xd9, 0xaa, 0x44, 0x1f, 0xff,
|
||||
0xdb, 0x3f, 0x42, 0x7d, 0x37, 0x45, 0x2c, 0x8d, 0x58, 0x8b, 0xb9, 0xa3, 0xf9, 0xd1, 0x8f, 0x7f,
|
||||
0xbc, 0xfc, 0x45, 0x7c, 0xd8, 0x6c, 0xb0, 0xe1, 0x2e, 0xe9, 0xa2, 0x91, 0xfc, 0xfd, 0xa2, 0xc3,
|
||||
0xfe, 0x70, 0x84, 0x39, 0xef, 0x91, 0x70, 0xc0, 0x13, 0xca, 0x3e, 0xd8, 0xb5, 0x09, 0xad, 0x6c,
|
||||
0xaf, 0xaf, 0x21, 0x21, 0xc7, 0x4b, 0x12, 0x3a, 0xfe, 0x55, 0x80, 0xdd, 0x31, 0xf1, 0x5e, 0x9d,
|
||||
0xc3, 0xf1, 0xbd, 0xac, 0xa6, 0x1a, 0x1b, 0xe0, 0x34, 0xe1, 0xf9, 0x97, 0x09, 0x62, 0x42, 0x5c,
|
||||
0xcb, 0x9f, 0x48, 0x24, 0x9c, 0xc8, 0x13, 0xec, 0xf3, 0xf1, 0x2e, 0x19, 0x7e, 0xad, 0xc0, 0x89,
|
||||
0x56, 0x0c, 0xc0, 0x9f, 0xf3, 0x8f, 0xdf, 0xc4, 0x07, 0x4f, 0x62, 0x82, 0x8e, 0x4b, 0xa6, 0xb6,
|
||||
0x34, 0xdf, 0x44, 0xe2, 0xbb, 0x48, 0x5f, 0x1f, 0x9e, 0x15, 0x39, 0xd9, 0x27, 0x7f, 0x05, 0x00,
|
||||
0x00, 0xff, 0xff, 0xb6, 0xdd, 0x44, 0x86, 0x4c, 0x0b, 0x00, 0x00,
|
||||
}
|
365
vendor/google.golang.org/genproto/googleapis/datastore/admin/v1beta1/datastore_admin.pb.go
generated
vendored
365
vendor/google.golang.org/genproto/googleapis/datastore/admin/v1beta1/datastore_admin.pb.go
generated
vendored
@ -1,30 +1,14 @@
|
||||
// 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
|
||||
package admin // import "google.golang.org/genproto/googleapis/datastore/admin/v1beta1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
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 longrunning "google.golang.org/genproto/googleapis/longrunning"
|
||||
|
||||
import (
|
||||
context "golang.org/x/net/context"
|
||||
@ -68,7 +52,9 @@ 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_datastore_admin_55d05b81962cd4ab, []int{0}
|
||||
}
|
||||
|
||||
// The various possible states for an ongoing Operation.
|
||||
type CommonMetadata_State int32
|
||||
@ -118,37 +104,61 @@ 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_datastore_admin_55d05b81962cd4ab, []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_datastore_admin_55d05b81962cd4ab, []int{0}
|
||||
}
|
||||
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 (dst *CommonMetadata) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CommonMetadata.Merge(dst, src)
|
||||
}
|
||||
func (m *CommonMetadata) XXX_Size() int {
|
||||
return xxx_messageInfo_CommonMetadata.Size(m)
|
||||
}
|
||||
func (m *CommonMetadata) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CommonMetadata.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
func (m *CommonMetadata) GetStartTime() *google_protobuf3.Timestamp {
|
||||
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 +190,38 @@ 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_datastore_admin_55d05b81962cd4ab, []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 (dst *Progress) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Progress.Merge(dst, 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 +241,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 +264,35 @@ 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_datastore_admin_55d05b81962cd4ab, []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 (dst *ExportEntitiesRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ExportEntitiesRequest.Merge(dst, 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 +326,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 +342,40 @@ 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_datastore_admin_55d05b81962cd4ab, []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 (dst *ImportEntitiesRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ImportEntitiesRequest.Merge(dst, 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 +412,35 @@ 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_datastore_admin_55d05b81962cd4ab, []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 (dst *ExportEntitiesResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ExportEntitiesResponse.Merge(dst, 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 +452,47 @@ 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_datastore_admin_55d05b81962cd4ab, []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 (dst *ExportEntitiesMetadata) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ExportEntitiesMetadata.Merge(dst, 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 +532,45 @@ 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_datastore_admin_55d05b81962cd4ab, []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 (dst *ImportEntitiesMetadata) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ImportEntitiesMetadata.Merge(dst, 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 +628,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 +636,35 @@ 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_datastore_admin_55d05b81962cd4ab, []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 (dst *EntityFilter) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_EntityFilter.Merge(dst, 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 {
|
||||
@ -518,9 +682,12 @@ func (m *EntityFilter) GetNamespaceIds() []string {
|
||||
|
||||
func init() {
|
||||
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")
|
||||
@ -537,8 +704,9 @@ var _ grpc.ClientConn
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4
|
||||
|
||||
// Client API for DatastoreAdmin service
|
||||
|
||||
// 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
|
||||
@ -548,13 +716,13 @@ type DatastoreAdminClient interface {
|
||||
// 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)
|
||||
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) (*google_longrunning.Operation, error)
|
||||
ImportEntities(ctx context.Context, in *ImportEntitiesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
|
||||
}
|
||||
|
||||
type datastoreAdminClient struct {
|
||||
@ -565,26 +733,25 @@ 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...)
|
||||
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) (*google_longrunning.Operation, error) {
|
||||
out := new(google_longrunning.Operation)
|
||||
err := grpc.Invoke(ctx, "/google.datastore.admin.v1beta1.DatastoreAdmin/ImportEntities", in, out, c.cc, opts...)
|
||||
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
|
||||
}
|
||||
|
||||
// Server API for DatastoreAdmin service
|
||||
|
||||
// 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
|
||||
@ -594,13 +761,13 @@ type DatastoreAdminServer interface {
|
||||
// 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)
|
||||
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) (*google_longrunning.Operation, error)
|
||||
ImportEntities(context.Context, *ImportEntitiesRequest) (*longrunning.Operation, error)
|
||||
}
|
||||
|
||||
func RegisterDatastoreAdminServer(s *grpc.Server, srv DatastoreAdminServer) {
|
||||
@ -661,10 +828,10 @@ var _DatastoreAdmin_serviceDesc = grpc.ServiceDesc{
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/datastore/admin/v1beta1/datastore_admin.proto", fileDescriptor0)
|
||||
proto.RegisterFile("google/datastore/admin/v1beta1/datastore_admin.proto", fileDescriptor_datastore_admin_55d05b81962cd4ab)
|
||||
}
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
var fileDescriptor_datastore_admin_55d05b81962cd4ab = []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,
|
||||
|
911
vendor/google.golang.org/genproto/googleapis/datastore/v1/datastore.pb.go
generated
vendored
911
vendor/google.golang.org/genproto/googleapis/datastore/v1/datastore.pb.go
generated
vendored
File diff suppressed because it is too large
Load Diff
357
vendor/google.golang.org/genproto/googleapis/datastore/v1/entity.pb.go
generated
vendored
357
vendor/google.golang.org/genproto/googleapis/datastore/v1/entity.pb.go
generated
vendored
@ -1,21 +1,27 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/datastore/v1/entity.proto
|
||||
|
||||
package datastore
|
||||
package datastore // import "google.golang.org/genproto/googleapis/datastore/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _struct "github.com/golang/protobuf/ptypes/struct"
|
||||
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import google_protobuf1 "github.com/golang/protobuf/ptypes/struct"
|
||||
import google_protobuf2 "github.com/golang/protobuf/ptypes/timestamp"
|
||||
import google_type "google.golang.org/genproto/googleapis/type/latlng"
|
||||
import latlng "google.golang.org/genproto/googleapis/type/latlng"
|
||||
|
||||
// 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
|
||||
|
||||
// A partition ID identifies a grouping of entities. The grouping is always
|
||||
// by project and namespace, however the namespace ID may be empty.
|
||||
//
|
||||
@ -37,15 +43,37 @@ var _ = math.Inf
|
||||
// Reads and writes of foreign partition IDs may fail if the project is not in an active state.
|
||||
type PartitionId struct {
|
||||
// The ID of the project to which the entities belong.
|
||||
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
|
||||
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
|
||||
// If not empty, the ID of the namespace to which the entities belong.
|
||||
NamespaceId string `protobuf:"bytes,4,opt,name=namespace_id,json=namespaceId" json:"namespace_id,omitempty"`
|
||||
NamespaceId string `protobuf:"bytes,4,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PartitionId) Reset() { *m = PartitionId{} }
|
||||
func (m *PartitionId) String() string { return proto.CompactTextString(m) }
|
||||
func (*PartitionId) ProtoMessage() {}
|
||||
func (*PartitionId) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
|
||||
func (m *PartitionId) Reset() { *m = PartitionId{} }
|
||||
func (m *PartitionId) String() string { return proto.CompactTextString(m) }
|
||||
func (*PartitionId) ProtoMessage() {}
|
||||
func (*PartitionId) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_entity_45da7198f13d942c, []int{0}
|
||||
}
|
||||
func (m *PartitionId) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PartitionId.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PartitionId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PartitionId.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *PartitionId) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PartitionId.Merge(dst, src)
|
||||
}
|
||||
func (m *PartitionId) XXX_Size() int {
|
||||
return xxx_messageInfo_PartitionId.Size(m)
|
||||
}
|
||||
func (m *PartitionId) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PartitionId.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PartitionId proto.InternalMessageInfo
|
||||
|
||||
func (m *PartitionId) GetProjectId() string {
|
||||
if m != nil {
|
||||
@ -69,7 +97,7 @@ type Key struct {
|
||||
// Entities are partitioned into subsets, currently identified by a project
|
||||
// ID and namespace ID.
|
||||
// Queries are scoped to a single partition.
|
||||
PartitionId *PartitionId `protobuf:"bytes,1,opt,name=partition_id,json=partitionId" json:"partition_id,omitempty"`
|
||||
PartitionId *PartitionId `protobuf:"bytes,1,opt,name=partition_id,json=partitionId,proto3" json:"partition_id,omitempty"`
|
||||
// The entity path.
|
||||
// An entity path consists of one or more elements composed of a kind and a
|
||||
// string or numerical identifier, which identify entities. The first
|
||||
@ -86,13 +114,35 @@ type Key struct {
|
||||
// identifier.
|
||||
//
|
||||
// A path can never be empty, and a path can have at most 100 elements.
|
||||
Path []*Key_PathElement `protobuf:"bytes,2,rep,name=path" json:"path,omitempty"`
|
||||
Path []*Key_PathElement `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Key) Reset() { *m = Key{} }
|
||||
func (m *Key) String() string { return proto.CompactTextString(m) }
|
||||
func (*Key) ProtoMessage() {}
|
||||
func (*Key) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
|
||||
func (m *Key) Reset() { *m = Key{} }
|
||||
func (m *Key) String() string { return proto.CompactTextString(m) }
|
||||
func (*Key) ProtoMessage() {}
|
||||
func (*Key) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_entity_45da7198f13d942c, []int{1}
|
||||
}
|
||||
func (m *Key) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Key.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Key.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Key) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Key.Merge(dst, src)
|
||||
}
|
||||
func (m *Key) XXX_Size() int {
|
||||
return xxx_messageInfo_Key.Size(m)
|
||||
}
|
||||
func (m *Key) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Key.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Key proto.InternalMessageInfo
|
||||
|
||||
func (m *Key) GetPartitionId() *PartitionId {
|
||||
if m != nil {
|
||||
@ -117,32 +167,63 @@ type Key_PathElement struct {
|
||||
// A kind matching regex `__.*__` is reserved/read-only.
|
||||
// A kind must not contain more than 1500 bytes when UTF-8 encoded.
|
||||
// Cannot be `""`.
|
||||
Kind string `protobuf:"bytes,1,opt,name=kind" json:"kind,omitempty"`
|
||||
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
|
||||
// The type of ID.
|
||||
//
|
||||
// Types that are valid to be assigned to IdType:
|
||||
// *Key_PathElement_Id
|
||||
// *Key_PathElement_Name
|
||||
IdType isKey_PathElement_IdType `protobuf_oneof:"id_type"`
|
||||
IdType isKey_PathElement_IdType `protobuf_oneof:"id_type"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Key_PathElement) Reset() { *m = Key_PathElement{} }
|
||||
func (m *Key_PathElement) String() string { return proto.CompactTextString(m) }
|
||||
func (*Key_PathElement) ProtoMessage() {}
|
||||
func (*Key_PathElement) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1, 0} }
|
||||
func (m *Key_PathElement) Reset() { *m = Key_PathElement{} }
|
||||
func (m *Key_PathElement) String() string { return proto.CompactTextString(m) }
|
||||
func (*Key_PathElement) ProtoMessage() {}
|
||||
func (*Key_PathElement) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_entity_45da7198f13d942c, []int{1, 0}
|
||||
}
|
||||
func (m *Key_PathElement) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Key_PathElement.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Key_PathElement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Key_PathElement.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Key_PathElement) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Key_PathElement.Merge(dst, src)
|
||||
}
|
||||
func (m *Key_PathElement) XXX_Size() int {
|
||||
return xxx_messageInfo_Key_PathElement.Size(m)
|
||||
}
|
||||
func (m *Key_PathElement) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Key_PathElement.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Key_PathElement proto.InternalMessageInfo
|
||||
|
||||
func (m *Key_PathElement) GetKind() string {
|
||||
if m != nil {
|
||||
return m.Kind
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type isKey_PathElement_IdType interface {
|
||||
isKey_PathElement_IdType()
|
||||
}
|
||||
|
||||
type Key_PathElement_Id struct {
|
||||
Id int64 `protobuf:"varint,2,opt,name=id,oneof"`
|
||||
}
|
||||
type Key_PathElement_Name struct {
|
||||
Name string `protobuf:"bytes,3,opt,name=name,oneof"`
|
||||
Id int64 `protobuf:"varint,2,opt,name=id,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*Key_PathElement_Id) isKey_PathElement_IdType() {}
|
||||
type Key_PathElement_Name struct {
|
||||
Name string `protobuf:"bytes,3,opt,name=name,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*Key_PathElement_Id) isKey_PathElement_IdType() {}
|
||||
|
||||
func (*Key_PathElement_Name) isKey_PathElement_IdType() {}
|
||||
|
||||
func (m *Key_PathElement) GetIdType() isKey_PathElement_IdType {
|
||||
@ -152,13 +233,6 @@ func (m *Key_PathElement) GetIdType() isKey_PathElement_IdType {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Key_PathElement) GetKind() string {
|
||||
if m != nil {
|
||||
return m.Kind
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Key_PathElement) GetId() int64 {
|
||||
if x, ok := m.GetIdType().(*Key_PathElement_Id); ok {
|
||||
return x.Id
|
||||
@ -225,10 +299,10 @@ func _Key_PathElement_OneofSizer(msg proto.Message) (n int) {
|
||||
// id_type
|
||||
switch x := m.IdType.(type) {
|
||||
case *Key_PathElement_Id:
|
||||
n += proto.SizeVarint(2<<3 | proto.WireVarint)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(x.Id))
|
||||
case *Key_PathElement_Name:
|
||||
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.Name)))
|
||||
n += len(x.Name)
|
||||
case nil:
|
||||
@ -243,13 +317,35 @@ type ArrayValue struct {
|
||||
// Values in the array.
|
||||
// The order of this array may not be preserved if it contains a mix of
|
||||
// indexed and unindexed values.
|
||||
Values []*Value `protobuf:"bytes,1,rep,name=values" json:"values,omitempty"`
|
||||
Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ArrayValue) Reset() { *m = ArrayValue{} }
|
||||
func (m *ArrayValue) String() string { return proto.CompactTextString(m) }
|
||||
func (*ArrayValue) ProtoMessage() {}
|
||||
func (*ArrayValue) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
|
||||
func (m *ArrayValue) Reset() { *m = ArrayValue{} }
|
||||
func (m *ArrayValue) String() string { return proto.CompactTextString(m) }
|
||||
func (*ArrayValue) ProtoMessage() {}
|
||||
func (*ArrayValue) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_entity_45da7198f13d942c, []int{2}
|
||||
}
|
||||
func (m *ArrayValue) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ArrayValue.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ArrayValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ArrayValue.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ArrayValue) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ArrayValue.Merge(dst, src)
|
||||
}
|
||||
func (m *ArrayValue) XXX_Size() int {
|
||||
return xxx_messageInfo_ArrayValue.Size(m)
|
||||
}
|
||||
func (m *ArrayValue) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ArrayValue.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ArrayValue proto.InternalMessageInfo
|
||||
|
||||
func (m *ArrayValue) GetValues() []*Value {
|
||||
if m != nil {
|
||||
@ -277,66 +373,108 @@ type Value struct {
|
||||
// *Value_ArrayValue
|
||||
ValueType isValue_ValueType `protobuf_oneof:"value_type"`
|
||||
// The `meaning` field should only be populated for backwards compatibility.
|
||||
Meaning int32 `protobuf:"varint,14,opt,name=meaning" json:"meaning,omitempty"`
|
||||
Meaning int32 `protobuf:"varint,14,opt,name=meaning,proto3" json:"meaning,omitempty"`
|
||||
// If the value should be excluded from all indexes including those defined
|
||||
// explicitly.
|
||||
ExcludeFromIndexes bool `protobuf:"varint,19,opt,name=exclude_from_indexes,json=excludeFromIndexes" json:"exclude_from_indexes,omitempty"`
|
||||
ExcludeFromIndexes bool `protobuf:"varint,19,opt,name=exclude_from_indexes,json=excludeFromIndexes,proto3" json:"exclude_from_indexes,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Value) Reset() { *m = Value{} }
|
||||
func (m *Value) String() string { return proto.CompactTextString(m) }
|
||||
func (*Value) ProtoMessage() {}
|
||||
func (*Value) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
|
||||
func (m *Value) Reset() { *m = Value{} }
|
||||
func (m *Value) String() string { return proto.CompactTextString(m) }
|
||||
func (*Value) ProtoMessage() {}
|
||||
func (*Value) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_entity_45da7198f13d942c, []int{3}
|
||||
}
|
||||
func (m *Value) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Value.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Value.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Value) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Value.Merge(dst, src)
|
||||
}
|
||||
func (m *Value) XXX_Size() int {
|
||||
return xxx_messageInfo_Value.Size(m)
|
||||
}
|
||||
func (m *Value) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Value.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Value proto.InternalMessageInfo
|
||||
|
||||
type isValue_ValueType interface {
|
||||
isValue_ValueType()
|
||||
}
|
||||
|
||||
type Value_NullValue struct {
|
||||
NullValue google_protobuf1.NullValue `protobuf:"varint,11,opt,name=null_value,json=nullValue,enum=google.protobuf.NullValue,oneof"`
|
||||
NullValue _struct.NullValue `protobuf:"varint,11,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"`
|
||||
}
|
||||
|
||||
type Value_BooleanValue struct {
|
||||
BooleanValue bool `protobuf:"varint,1,opt,name=boolean_value,json=booleanValue,oneof"`
|
||||
BooleanValue bool `protobuf:"varint,1,opt,name=boolean_value,json=booleanValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Value_IntegerValue struct {
|
||||
IntegerValue int64 `protobuf:"varint,2,opt,name=integer_value,json=integerValue,oneof"`
|
||||
IntegerValue int64 `protobuf:"varint,2,opt,name=integer_value,json=integerValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Value_DoubleValue struct {
|
||||
DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,oneof"`
|
||||
DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Value_TimestampValue struct {
|
||||
TimestampValue *google_protobuf2.Timestamp `protobuf:"bytes,10,opt,name=timestamp_value,json=timestampValue,oneof"`
|
||||
TimestampValue *timestamp.Timestamp `protobuf:"bytes,10,opt,name=timestamp_value,json=timestampValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Value_KeyValue struct {
|
||||
KeyValue *Key `protobuf:"bytes,5,opt,name=key_value,json=keyValue,oneof"`
|
||||
KeyValue *Key `protobuf:"bytes,5,opt,name=key_value,json=keyValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Value_StringValue struct {
|
||||
StringValue string `protobuf:"bytes,17,opt,name=string_value,json=stringValue,oneof"`
|
||||
StringValue string `protobuf:"bytes,17,opt,name=string_value,json=stringValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Value_BlobValue struct {
|
||||
BlobValue []byte `protobuf:"bytes,18,opt,name=blob_value,json=blobValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Value_GeoPointValue struct {
|
||||
GeoPointValue *google_type.LatLng `protobuf:"bytes,8,opt,name=geo_point_value,json=geoPointValue,oneof"`
|
||||
}
|
||||
type Value_EntityValue struct {
|
||||
EntityValue *Entity `protobuf:"bytes,6,opt,name=entity_value,json=entityValue,oneof"`
|
||||
}
|
||||
type Value_ArrayValue struct {
|
||||
ArrayValue *ArrayValue `protobuf:"bytes,9,opt,name=array_value,json=arrayValue,oneof"`
|
||||
GeoPointValue *latlng.LatLng `protobuf:"bytes,8,opt,name=geo_point_value,json=geoPointValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*Value_NullValue) isValue_ValueType() {}
|
||||
func (*Value_BooleanValue) isValue_ValueType() {}
|
||||
func (*Value_IntegerValue) isValue_ValueType() {}
|
||||
func (*Value_DoubleValue) isValue_ValueType() {}
|
||||
type Value_EntityValue struct {
|
||||
EntityValue *Entity `protobuf:"bytes,6,opt,name=entity_value,json=entityValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Value_ArrayValue struct {
|
||||
ArrayValue *ArrayValue `protobuf:"bytes,9,opt,name=array_value,json=arrayValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*Value_NullValue) isValue_ValueType() {}
|
||||
|
||||
func (*Value_BooleanValue) isValue_ValueType() {}
|
||||
|
||||
func (*Value_IntegerValue) isValue_ValueType() {}
|
||||
|
||||
func (*Value_DoubleValue) isValue_ValueType() {}
|
||||
|
||||
func (*Value_TimestampValue) isValue_ValueType() {}
|
||||
func (*Value_KeyValue) isValue_ValueType() {}
|
||||
func (*Value_StringValue) isValue_ValueType() {}
|
||||
func (*Value_BlobValue) isValue_ValueType() {}
|
||||
func (*Value_GeoPointValue) isValue_ValueType() {}
|
||||
func (*Value_EntityValue) isValue_ValueType() {}
|
||||
func (*Value_ArrayValue) isValue_ValueType() {}
|
||||
|
||||
func (*Value_KeyValue) isValue_ValueType() {}
|
||||
|
||||
func (*Value_StringValue) isValue_ValueType() {}
|
||||
|
||||
func (*Value_BlobValue) isValue_ValueType() {}
|
||||
|
||||
func (*Value_GeoPointValue) isValue_ValueType() {}
|
||||
|
||||
func (*Value_EntityValue) isValue_ValueType() {}
|
||||
|
||||
func (*Value_ArrayValue) isValue_ValueType() {}
|
||||
|
||||
func (m *Value) GetValueType() isValue_ValueType {
|
||||
if m != nil {
|
||||
@ -345,11 +483,11 @@ func (m *Value) GetValueType() isValue_ValueType {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Value) GetNullValue() google_protobuf1.NullValue {
|
||||
func (m *Value) GetNullValue() _struct.NullValue {
|
||||
if x, ok := m.GetValueType().(*Value_NullValue); ok {
|
||||
return x.NullValue
|
||||
}
|
||||
return google_protobuf1.NullValue_NULL_VALUE
|
||||
return _struct.NullValue_NULL_VALUE
|
||||
}
|
||||
|
||||
func (m *Value) GetBooleanValue() bool {
|
||||
@ -373,7 +511,7 @@ func (m *Value) GetDoubleValue() float64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Value) GetTimestampValue() *google_protobuf2.Timestamp {
|
||||
func (m *Value) GetTimestampValue() *timestamp.Timestamp {
|
||||
if x, ok := m.GetValueType().(*Value_TimestampValue); ok {
|
||||
return x.TimestampValue
|
||||
}
|
||||
@ -401,7 +539,7 @@ func (m *Value) GetBlobValue() []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Value) GetGeoPointValue() *google_type.LatLng {
|
||||
func (m *Value) GetGeoPointValue() *latlng.LatLng {
|
||||
if x, ok := m.GetValueType().(*Value_GeoPointValue); ok {
|
||||
return x.GeoPointValue
|
||||
}
|
||||
@ -519,7 +657,7 @@ func _Value_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer)
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeVarint()
|
||||
m.ValueType = &Value_NullValue{google_protobuf1.NullValue(x)}
|
||||
m.ValueType = &Value_NullValue{_struct.NullValue(x)}
|
||||
return true, err
|
||||
case 1: // value_type.boolean_value
|
||||
if wire != proto.WireVarint {
|
||||
@ -546,7 +684,7 @@ func _Value_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer)
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(google_protobuf2.Timestamp)
|
||||
msg := new(timestamp.Timestamp)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.ValueType = &Value_TimestampValue{msg}
|
||||
return true, err
|
||||
@ -576,7 +714,7 @@ func _Value_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer)
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(google_type.LatLng)
|
||||
msg := new(latlng.LatLng)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.ValueType = &Value_GeoPointValue{msg}
|
||||
return true, err
|
||||
@ -606,48 +744,48 @@ func _Value_OneofSizer(msg proto.Message) (n int) {
|
||||
// value_type
|
||||
switch x := m.ValueType.(type) {
|
||||
case *Value_NullValue:
|
||||
n += proto.SizeVarint(11<<3 | proto.WireVarint)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(x.NullValue))
|
||||
case *Value_BooleanValue:
|
||||
n += proto.SizeVarint(1<<3 | proto.WireVarint)
|
||||
n += 1 // tag and wire
|
||||
n += 1
|
||||
case *Value_IntegerValue:
|
||||
n += proto.SizeVarint(2<<3 | proto.WireVarint)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(x.IntegerValue))
|
||||
case *Value_DoubleValue:
|
||||
n += proto.SizeVarint(3<<3 | proto.WireFixed64)
|
||||
n += 1 // tag and wire
|
||||
n += 8
|
||||
case *Value_TimestampValue:
|
||||
s := proto.Size(x.TimestampValue)
|
||||
n += proto.SizeVarint(10<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Value_KeyValue:
|
||||
s := proto.Size(x.KeyValue)
|
||||
n += proto.SizeVarint(5<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Value_StringValue:
|
||||
n += proto.SizeVarint(17<<3 | proto.WireBytes)
|
||||
n += 2 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.StringValue)))
|
||||
n += len(x.StringValue)
|
||||
case *Value_BlobValue:
|
||||
n += proto.SizeVarint(18<<3 | proto.WireBytes)
|
||||
n += 2 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.BlobValue)))
|
||||
n += len(x.BlobValue)
|
||||
case *Value_GeoPointValue:
|
||||
s := proto.Size(x.GeoPointValue)
|
||||
n += proto.SizeVarint(8<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Value_EntityValue:
|
||||
s := proto.Size(x.EntityValue)
|
||||
n += proto.SizeVarint(6<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Value_ArrayValue:
|
||||
s := proto.Size(x.ArrayValue)
|
||||
n += proto.SizeVarint(9<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
@ -669,20 +807,42 @@ type Entity struct {
|
||||
// an entity in `Value.entity_value` may have no key).
|
||||
// An entity's kind is its key path's last element's kind,
|
||||
// or null if it has no key.
|
||||
Key *Key `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
|
||||
Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
||||
// The entity's properties.
|
||||
// The map's keys are property names.
|
||||
// A property name matching regex `__.*__` is reserved.
|
||||
// A reserved property name is forbidden in certain documented contexts.
|
||||
// The name must not contain more than 500 characters.
|
||||
// The name cannot be `""`.
|
||||
Properties map[string]*Value `protobuf:"bytes,3,rep,name=properties" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
Properties map[string]*Value `protobuf:"bytes,3,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Entity) Reset() { *m = Entity{} }
|
||||
func (m *Entity) String() string { return proto.CompactTextString(m) }
|
||||
func (*Entity) ProtoMessage() {}
|
||||
func (*Entity) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
|
||||
func (m *Entity) Reset() { *m = Entity{} }
|
||||
func (m *Entity) String() string { return proto.CompactTextString(m) }
|
||||
func (*Entity) ProtoMessage() {}
|
||||
func (*Entity) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_entity_45da7198f13d942c, []int{4}
|
||||
}
|
||||
func (m *Entity) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Entity.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Entity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Entity.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Entity) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Entity.Merge(dst, src)
|
||||
}
|
||||
func (m *Entity) XXX_Size() int {
|
||||
return xxx_messageInfo_Entity.Size(m)
|
||||
}
|
||||
func (m *Entity) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Entity.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Entity proto.InternalMessageInfo
|
||||
|
||||
func (m *Entity) GetKey() *Key {
|
||||
if m != nil {
|
||||
@ -705,11 +865,14 @@ func init() {
|
||||
proto.RegisterType((*ArrayValue)(nil), "google.datastore.v1.ArrayValue")
|
||||
proto.RegisterType((*Value)(nil), "google.datastore.v1.Value")
|
||||
proto.RegisterType((*Entity)(nil), "google.datastore.v1.Entity")
|
||||
proto.RegisterMapType((map[string]*Value)(nil), "google.datastore.v1.Entity.PropertiesEntry")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/datastore/v1/entity.proto", fileDescriptor1) }
|
||||
func init() {
|
||||
proto.RegisterFile("google/datastore/v1/entity.proto", fileDescriptor_entity_45da7198f13d942c)
|
||||
}
|
||||
|
||||
var fileDescriptor1 = []byte{
|
||||
var fileDescriptor_entity_45da7198f13d942c = []byte{
|
||||
// 780 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0xff, 0x6e, 0xdc, 0x44,
|
||||
0x10, 0xc7, 0xed, 0xbb, 0x5c, 0x1a, 0x8f, 0xdd, 0xa4, 0x6c, 0x2a, 0x61, 0x02, 0x28, 0x26, 0x80,
|
||||
|
489
vendor/google.golang.org/genproto/googleapis/datastore/v1/query.pb.go
generated
vendored
489
vendor/google.golang.org/genproto/googleapis/datastore/v1/query.pb.go
generated
vendored
@ -1,13 +1,13 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/datastore/v1/query.proto
|
||||
|
||||
package datastore
|
||||
package datastore // import "google.golang.org/genproto/googleapis/datastore/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import wrappers "github.com/golang/protobuf/ptypes/wrappers"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import google_protobuf3 "github.com/golang/protobuf/ptypes/wrappers"
|
||||
import _ "google.golang.org/genproto/googleapis/type/latlng"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@ -15,6 +15,12 @@ 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
|
||||
|
||||
// Specifies what data the 'entity' field contains.
|
||||
// A `ResultType` is either implied (for example, in `LookupResponse.missing`
|
||||
// from `datastore.proto`, it is always `KEY_ONLY`) or specified by context
|
||||
@ -41,15 +47,17 @@ var EntityResult_ResultType_name = map[int32]string{
|
||||
}
|
||||
var EntityResult_ResultType_value = map[string]int32{
|
||||
"RESULT_TYPE_UNSPECIFIED": 0,
|
||||
"FULL": 1,
|
||||
"PROJECTION": 2,
|
||||
"KEY_ONLY": 3,
|
||||
"FULL": 1,
|
||||
"PROJECTION": 2,
|
||||
"KEY_ONLY": 3,
|
||||
}
|
||||
|
||||
func (x EntityResult_ResultType) String() string {
|
||||
return proto.EnumName(EntityResult_ResultType_name, int32(x))
|
||||
}
|
||||
func (EntityResult_ResultType) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 0} }
|
||||
func (EntityResult_ResultType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_2312a1dfc5fd06f2, []int{0, 0}
|
||||
}
|
||||
|
||||
// The sort direction.
|
||||
type PropertyOrder_Direction int32
|
||||
@ -77,7 +85,9 @@ var PropertyOrder_Direction_value = map[string]int32{
|
||||
func (x PropertyOrder_Direction) String() string {
|
||||
return proto.EnumName(PropertyOrder_Direction_name, int32(x))
|
||||
}
|
||||
func (PropertyOrder_Direction) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{5, 0} }
|
||||
func (PropertyOrder_Direction) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_2312a1dfc5fd06f2, []int{5, 0}
|
||||
}
|
||||
|
||||
// A composite filter operator.
|
||||
type CompositeFilter_Operator int32
|
||||
@ -95,13 +105,15 @@ var CompositeFilter_Operator_name = map[int32]string{
|
||||
}
|
||||
var CompositeFilter_Operator_value = map[string]int32{
|
||||
"OPERATOR_UNSPECIFIED": 0,
|
||||
"AND": 1,
|
||||
"AND": 1,
|
||||
}
|
||||
|
||||
func (x CompositeFilter_Operator) String() string {
|
||||
return proto.EnumName(CompositeFilter_Operator_name, int32(x))
|
||||
}
|
||||
func (CompositeFilter_Operator) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{7, 0} }
|
||||
func (CompositeFilter_Operator) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_2312a1dfc5fd06f2, []int{7, 0}
|
||||
}
|
||||
|
||||
// A property filter operator.
|
||||
type PropertyFilter_Operator int32
|
||||
@ -145,7 +157,9 @@ var PropertyFilter_Operator_value = map[string]int32{
|
||||
func (x PropertyFilter_Operator) String() string {
|
||||
return proto.EnumName(PropertyFilter_Operator_name, int32(x))
|
||||
}
|
||||
func (PropertyFilter_Operator) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{8, 0} }
|
||||
func (PropertyFilter_Operator) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_2312a1dfc5fd06f2, []int{8, 0}
|
||||
}
|
||||
|
||||
// The possible values for the `more_results` field.
|
||||
type QueryResultBatch_MoreResultsType int32
|
||||
@ -183,13 +197,13 @@ func (x QueryResultBatch_MoreResultsType) String() string {
|
||||
return proto.EnumName(QueryResultBatch_MoreResultsType_name, int32(x))
|
||||
}
|
||||
func (QueryResultBatch_MoreResultsType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor2, []int{11, 0}
|
||||
return fileDescriptor_query_2312a1dfc5fd06f2, []int{11, 0}
|
||||
}
|
||||
|
||||
// The result of fetching an entity from Datastore.
|
||||
type EntityResult struct {
|
||||
// The resulting entity.
|
||||
Entity *Entity `protobuf:"bytes,1,opt,name=entity" json:"entity,omitempty"`
|
||||
Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
|
||||
// The version of the entity, a strictly positive number that monotonically
|
||||
// increases with changes to the entity.
|
||||
//
|
||||
@ -199,16 +213,38 @@ type EntityResult struct {
|
||||
// For [missing][google.datastore.v1.LookupResponse.missing] entities in `LookupResponse`, this
|
||||
// is the version of the snapshot that was used to look up the entity, and it
|
||||
// is always set except for eventually consistent reads.
|
||||
Version int64 `protobuf:"varint,4,opt,name=version" json:"version,omitempty"`
|
||||
Version int64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
|
||||
// A cursor that points to the position after the result entity.
|
||||
// Set only when the `EntityResult` is part of a `QueryResultBatch` message.
|
||||
Cursor []byte `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"`
|
||||
Cursor []byte `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *EntityResult) Reset() { *m = EntityResult{} }
|
||||
func (m *EntityResult) String() string { return proto.CompactTextString(m) }
|
||||
func (*EntityResult) ProtoMessage() {}
|
||||
func (*EntityResult) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
|
||||
func (m *EntityResult) Reset() { *m = EntityResult{} }
|
||||
func (m *EntityResult) String() string { return proto.CompactTextString(m) }
|
||||
func (*EntityResult) ProtoMessage() {}
|
||||
func (*EntityResult) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_2312a1dfc5fd06f2, []int{0}
|
||||
}
|
||||
func (m *EntityResult) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_EntityResult.Unmarshal(m, b)
|
||||
}
|
||||
func (m *EntityResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_EntityResult.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *EntityResult) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_EntityResult.Merge(dst, src)
|
||||
}
|
||||
func (m *EntityResult) XXX_Size() int {
|
||||
return xxx_messageInfo_EntityResult.Size(m)
|
||||
}
|
||||
func (m *EntityResult) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_EntityResult.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_EntityResult proto.InternalMessageInfo
|
||||
|
||||
func (m *EntityResult) GetEntity() *Entity {
|
||||
if m != nil {
|
||||
@ -234,18 +270,18 @@ func (m *EntityResult) GetCursor() []byte {
|
||||
// A query for entities.
|
||||
type Query struct {
|
||||
// The projection to return. Defaults to returning all properties.
|
||||
Projection []*Projection `protobuf:"bytes,2,rep,name=projection" json:"projection,omitempty"`
|
||||
Projection []*Projection `protobuf:"bytes,2,rep,name=projection,proto3" json:"projection,omitempty"`
|
||||
// The kinds to query (if empty, returns entities of all kinds).
|
||||
// Currently at most 1 kind may be specified.
|
||||
Kind []*KindExpression `protobuf:"bytes,3,rep,name=kind" json:"kind,omitempty"`
|
||||
Kind []*KindExpression `protobuf:"bytes,3,rep,name=kind,proto3" json:"kind,omitempty"`
|
||||
// The filter to apply.
|
||||
Filter *Filter `protobuf:"bytes,4,opt,name=filter" json:"filter,omitempty"`
|
||||
Filter *Filter `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
|
||||
// The order to apply to the query results (if empty, order is unspecified).
|
||||
Order []*PropertyOrder `protobuf:"bytes,5,rep,name=order" json:"order,omitempty"`
|
||||
Order []*PropertyOrder `protobuf:"bytes,5,rep,name=order,proto3" json:"order,omitempty"`
|
||||
// The properties to make distinct. The query results will contain the first
|
||||
// result for each distinct combination of values for the given properties
|
||||
// (if empty, all results are returned).
|
||||
DistinctOn []*PropertyReference `protobuf:"bytes,6,rep,name=distinct_on,json=distinctOn" json:"distinct_on,omitempty"`
|
||||
DistinctOn []*PropertyReference `protobuf:"bytes,6,rep,name=distinct_on,json=distinctOn,proto3" json:"distinct_on,omitempty"`
|
||||
// A starting point for the query results. Query cursors are
|
||||
// returned in query result batches and
|
||||
// [can only be used to continue the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
|
||||
@ -256,18 +292,40 @@ type Query struct {
|
||||
EndCursor []byte `protobuf:"bytes,8,opt,name=end_cursor,json=endCursor,proto3" json:"end_cursor,omitempty"`
|
||||
// The number of results to skip. Applies before limit, but after all other
|
||||
// constraints. Optional. Must be >= 0 if specified.
|
||||
Offset int32 `protobuf:"varint,10,opt,name=offset" json:"offset,omitempty"`
|
||||
Offset int32 `protobuf:"varint,10,opt,name=offset,proto3" json:"offset,omitempty"`
|
||||
// The maximum number of results to return. Applies after all other
|
||||
// constraints. Optional.
|
||||
// Unspecified is interpreted as no limit.
|
||||
// Must be >= 0 if specified.
|
||||
Limit *google_protobuf3.Int32Value `protobuf:"bytes,12,opt,name=limit" json:"limit,omitempty"`
|
||||
Limit *wrappers.Int32Value `protobuf:"bytes,12,opt,name=limit,proto3" json:"limit,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Query) Reset() { *m = Query{} }
|
||||
func (m *Query) String() string { return proto.CompactTextString(m) }
|
||||
func (*Query) ProtoMessage() {}
|
||||
func (*Query) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
|
||||
func (m *Query) Reset() { *m = Query{} }
|
||||
func (m *Query) String() string { return proto.CompactTextString(m) }
|
||||
func (*Query) ProtoMessage() {}
|
||||
func (*Query) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_2312a1dfc5fd06f2, []int{1}
|
||||
}
|
||||
func (m *Query) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Query.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Query.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Query) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Query.Merge(dst, src)
|
||||
}
|
||||
func (m *Query) XXX_Size() int {
|
||||
return xxx_messageInfo_Query.Size(m)
|
||||
}
|
||||
func (m *Query) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Query.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Query proto.InternalMessageInfo
|
||||
|
||||
func (m *Query) GetProjection() []*Projection {
|
||||
if m != nil {
|
||||
@ -325,7 +383,7 @@ func (m *Query) GetOffset() int32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Query) GetLimit() *google_protobuf3.Int32Value {
|
||||
func (m *Query) GetLimit() *wrappers.Int32Value {
|
||||
if m != nil {
|
||||
return m.Limit
|
||||
}
|
||||
@ -335,13 +393,35 @@ func (m *Query) GetLimit() *google_protobuf3.Int32Value {
|
||||
// A representation of a kind.
|
||||
type KindExpression struct {
|
||||
// The name of the kind.
|
||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *KindExpression) Reset() { *m = KindExpression{} }
|
||||
func (m *KindExpression) String() string { return proto.CompactTextString(m) }
|
||||
func (*KindExpression) ProtoMessage() {}
|
||||
func (*KindExpression) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
|
||||
func (m *KindExpression) Reset() { *m = KindExpression{} }
|
||||
func (m *KindExpression) String() string { return proto.CompactTextString(m) }
|
||||
func (*KindExpression) ProtoMessage() {}
|
||||
func (*KindExpression) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_2312a1dfc5fd06f2, []int{2}
|
||||
}
|
||||
func (m *KindExpression) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_KindExpression.Unmarshal(m, b)
|
||||
}
|
||||
func (m *KindExpression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_KindExpression.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *KindExpression) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_KindExpression.Merge(dst, src)
|
||||
}
|
||||
func (m *KindExpression) XXX_Size() int {
|
||||
return xxx_messageInfo_KindExpression.Size(m)
|
||||
}
|
||||
func (m *KindExpression) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_KindExpression.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_KindExpression proto.InternalMessageInfo
|
||||
|
||||
func (m *KindExpression) GetName() string {
|
||||
if m != nil {
|
||||
@ -354,13 +434,35 @@ func (m *KindExpression) GetName() string {
|
||||
type PropertyReference struct {
|
||||
// The name of the property.
|
||||
// If name includes "."s, it may be interpreted as a property name path.
|
||||
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
|
||||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PropertyReference) Reset() { *m = PropertyReference{} }
|
||||
func (m *PropertyReference) String() string { return proto.CompactTextString(m) }
|
||||
func (*PropertyReference) ProtoMessage() {}
|
||||
func (*PropertyReference) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
|
||||
func (m *PropertyReference) Reset() { *m = PropertyReference{} }
|
||||
func (m *PropertyReference) String() string { return proto.CompactTextString(m) }
|
||||
func (*PropertyReference) ProtoMessage() {}
|
||||
func (*PropertyReference) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_2312a1dfc5fd06f2, []int{3}
|
||||
}
|
||||
func (m *PropertyReference) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PropertyReference.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PropertyReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PropertyReference.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *PropertyReference) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PropertyReference.Merge(dst, src)
|
||||
}
|
||||
func (m *PropertyReference) XXX_Size() int {
|
||||
return xxx_messageInfo_PropertyReference.Size(m)
|
||||
}
|
||||
func (m *PropertyReference) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PropertyReference.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PropertyReference proto.InternalMessageInfo
|
||||
|
||||
func (m *PropertyReference) GetName() string {
|
||||
if m != nil {
|
||||
@ -372,13 +474,35 @@ func (m *PropertyReference) GetName() string {
|
||||
// A representation of a property in a projection.
|
||||
type Projection struct {
|
||||
// The property to project.
|
||||
Property *PropertyReference `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
Property *PropertyReference `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Projection) Reset() { *m = Projection{} }
|
||||
func (m *Projection) String() string { return proto.CompactTextString(m) }
|
||||
func (*Projection) ProtoMessage() {}
|
||||
func (*Projection) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} }
|
||||
func (m *Projection) Reset() { *m = Projection{} }
|
||||
func (m *Projection) String() string { return proto.CompactTextString(m) }
|
||||
func (*Projection) ProtoMessage() {}
|
||||
func (*Projection) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_2312a1dfc5fd06f2, []int{4}
|
||||
}
|
||||
func (m *Projection) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Projection.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Projection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Projection.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Projection) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Projection.Merge(dst, src)
|
||||
}
|
||||
func (m *Projection) XXX_Size() int {
|
||||
return xxx_messageInfo_Projection.Size(m)
|
||||
}
|
||||
func (m *Projection) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Projection.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Projection proto.InternalMessageInfo
|
||||
|
||||
func (m *Projection) GetProperty() *PropertyReference {
|
||||
if m != nil {
|
||||
@ -390,15 +514,37 @@ func (m *Projection) GetProperty() *PropertyReference {
|
||||
// The desired order for a specific property.
|
||||
type PropertyOrder struct {
|
||||
// The property to order by.
|
||||
Property *PropertyReference `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
Property *PropertyReference `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// The direction to order by. Defaults to `ASCENDING`.
|
||||
Direction PropertyOrder_Direction `protobuf:"varint,2,opt,name=direction,enum=google.datastore.v1.PropertyOrder_Direction" json:"direction,omitempty"`
|
||||
Direction PropertyOrder_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=google.datastore.v1.PropertyOrder_Direction" json:"direction,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PropertyOrder) Reset() { *m = PropertyOrder{} }
|
||||
func (m *PropertyOrder) String() string { return proto.CompactTextString(m) }
|
||||
func (*PropertyOrder) ProtoMessage() {}
|
||||
func (*PropertyOrder) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} }
|
||||
func (m *PropertyOrder) Reset() { *m = PropertyOrder{} }
|
||||
func (m *PropertyOrder) String() string { return proto.CompactTextString(m) }
|
||||
func (*PropertyOrder) ProtoMessage() {}
|
||||
func (*PropertyOrder) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_2312a1dfc5fd06f2, []int{5}
|
||||
}
|
||||
func (m *PropertyOrder) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PropertyOrder.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PropertyOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PropertyOrder.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *PropertyOrder) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PropertyOrder.Merge(dst, src)
|
||||
}
|
||||
func (m *PropertyOrder) XXX_Size() int {
|
||||
return xxx_messageInfo_PropertyOrder.Size(m)
|
||||
}
|
||||
func (m *PropertyOrder) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PropertyOrder.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PropertyOrder proto.InternalMessageInfo
|
||||
|
||||
func (m *PropertyOrder) GetProperty() *PropertyReference {
|
||||
if m != nil {
|
||||
@ -421,27 +567,51 @@ type Filter struct {
|
||||
// Types that are valid to be assigned to FilterType:
|
||||
// *Filter_CompositeFilter
|
||||
// *Filter_PropertyFilter
|
||||
FilterType isFilter_FilterType `protobuf_oneof:"filter_type"`
|
||||
FilterType isFilter_FilterType `protobuf_oneof:"filter_type"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Filter) Reset() { *m = Filter{} }
|
||||
func (m *Filter) String() string { return proto.CompactTextString(m) }
|
||||
func (*Filter) ProtoMessage() {}
|
||||
func (*Filter) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{6} }
|
||||
func (m *Filter) Reset() { *m = Filter{} }
|
||||
func (m *Filter) String() string { return proto.CompactTextString(m) }
|
||||
func (*Filter) ProtoMessage() {}
|
||||
func (*Filter) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_2312a1dfc5fd06f2, []int{6}
|
||||
}
|
||||
func (m *Filter) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Filter.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Filter.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Filter) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Filter.Merge(dst, src)
|
||||
}
|
||||
func (m *Filter) XXX_Size() int {
|
||||
return xxx_messageInfo_Filter.Size(m)
|
||||
}
|
||||
func (m *Filter) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Filter.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Filter proto.InternalMessageInfo
|
||||
|
||||
type isFilter_FilterType interface {
|
||||
isFilter_FilterType()
|
||||
}
|
||||
|
||||
type Filter_CompositeFilter struct {
|
||||
CompositeFilter *CompositeFilter `protobuf:"bytes,1,opt,name=composite_filter,json=compositeFilter,oneof"`
|
||||
CompositeFilter *CompositeFilter `protobuf:"bytes,1,opt,name=composite_filter,json=compositeFilter,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Filter_PropertyFilter struct {
|
||||
PropertyFilter *PropertyFilter `protobuf:"bytes,2,opt,name=property_filter,json=propertyFilter,oneof"`
|
||||
PropertyFilter *PropertyFilter `protobuf:"bytes,2,opt,name=property_filter,json=propertyFilter,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*Filter_CompositeFilter) isFilter_FilterType() {}
|
||||
func (*Filter_PropertyFilter) isFilter_FilterType() {}
|
||||
|
||||
func (*Filter_PropertyFilter) isFilter_FilterType() {}
|
||||
|
||||
func (m *Filter) GetFilterType() isFilter_FilterType {
|
||||
if m != nil {
|
||||
@ -523,12 +693,12 @@ func _Filter_OneofSizer(msg proto.Message) (n int) {
|
||||
switch x := m.FilterType.(type) {
|
||||
case *Filter_CompositeFilter:
|
||||
s := proto.Size(x.CompositeFilter)
|
||||
n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Filter_PropertyFilter:
|
||||
s := proto.Size(x.PropertyFilter)
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
@ -541,16 +711,38 @@ func _Filter_OneofSizer(msg proto.Message) (n int) {
|
||||
// A filter that merges multiple other filters using the given operator.
|
||||
type CompositeFilter struct {
|
||||
// The operator for combining multiple filters.
|
||||
Op CompositeFilter_Operator `protobuf:"varint,1,opt,name=op,enum=google.datastore.v1.CompositeFilter_Operator" json:"op,omitempty"`
|
||||
Op CompositeFilter_Operator `protobuf:"varint,1,opt,name=op,proto3,enum=google.datastore.v1.CompositeFilter_Operator" json:"op,omitempty"`
|
||||
// The list of filters to combine.
|
||||
// Must contain at least one filter.
|
||||
Filters []*Filter `protobuf:"bytes,2,rep,name=filters" json:"filters,omitempty"`
|
||||
Filters []*Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CompositeFilter) Reset() { *m = CompositeFilter{} }
|
||||
func (m *CompositeFilter) String() string { return proto.CompactTextString(m) }
|
||||
func (*CompositeFilter) ProtoMessage() {}
|
||||
func (*CompositeFilter) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{7} }
|
||||
func (m *CompositeFilter) Reset() { *m = CompositeFilter{} }
|
||||
func (m *CompositeFilter) String() string { return proto.CompactTextString(m) }
|
||||
func (*CompositeFilter) ProtoMessage() {}
|
||||
func (*CompositeFilter) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_2312a1dfc5fd06f2, []int{7}
|
||||
}
|
||||
func (m *CompositeFilter) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CompositeFilter.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CompositeFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CompositeFilter.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *CompositeFilter) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CompositeFilter.Merge(dst, src)
|
||||
}
|
||||
func (m *CompositeFilter) XXX_Size() int {
|
||||
return xxx_messageInfo_CompositeFilter.Size(m)
|
||||
}
|
||||
func (m *CompositeFilter) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CompositeFilter.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CompositeFilter proto.InternalMessageInfo
|
||||
|
||||
func (m *CompositeFilter) GetOp() CompositeFilter_Operator {
|
||||
if m != nil {
|
||||
@ -569,17 +761,39 @@ func (m *CompositeFilter) GetFilters() []*Filter {
|
||||
// A filter on a specific property.
|
||||
type PropertyFilter struct {
|
||||
// The property to filter by.
|
||||
Property *PropertyReference `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
Property *PropertyReference `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// The operator to filter by.
|
||||
Op PropertyFilter_Operator `protobuf:"varint,2,opt,name=op,enum=google.datastore.v1.PropertyFilter_Operator" json:"op,omitempty"`
|
||||
Op PropertyFilter_Operator `protobuf:"varint,2,opt,name=op,proto3,enum=google.datastore.v1.PropertyFilter_Operator" json:"op,omitempty"`
|
||||
// The value to compare the property to.
|
||||
Value *Value `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"`
|
||||
Value *Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PropertyFilter) Reset() { *m = PropertyFilter{} }
|
||||
func (m *PropertyFilter) String() string { return proto.CompactTextString(m) }
|
||||
func (*PropertyFilter) ProtoMessage() {}
|
||||
func (*PropertyFilter) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{8} }
|
||||
func (m *PropertyFilter) Reset() { *m = PropertyFilter{} }
|
||||
func (m *PropertyFilter) String() string { return proto.CompactTextString(m) }
|
||||
func (*PropertyFilter) ProtoMessage() {}
|
||||
func (*PropertyFilter) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_2312a1dfc5fd06f2, []int{8}
|
||||
}
|
||||
func (m *PropertyFilter) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PropertyFilter.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PropertyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PropertyFilter.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *PropertyFilter) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PropertyFilter.Merge(dst, src)
|
||||
}
|
||||
func (m *PropertyFilter) XXX_Size() int {
|
||||
return xxx_messageInfo_PropertyFilter.Size(m)
|
||||
}
|
||||
func (m *PropertyFilter) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PropertyFilter.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PropertyFilter proto.InternalMessageInfo
|
||||
|
||||
func (m *PropertyFilter) GetProperty() *PropertyReference {
|
||||
if m != nil {
|
||||
@ -606,30 +820,52 @@ func (m *PropertyFilter) GetValue() *Value {
|
||||
type GqlQuery struct {
|
||||
// A string of the format described
|
||||
// [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
||||
QueryString string `protobuf:"bytes,1,opt,name=query_string,json=queryString" json:"query_string,omitempty"`
|
||||
QueryString string `protobuf:"bytes,1,opt,name=query_string,json=queryString,proto3" json:"query_string,omitempty"`
|
||||
// When false, the query string must not contain any literals and instead must
|
||||
// bind all values. For example,
|
||||
// `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while
|
||||
// `SELECT * FROM Kind WHERE a = @value` is.
|
||||
AllowLiterals bool `protobuf:"varint,2,opt,name=allow_literals,json=allowLiterals" json:"allow_literals,omitempty"`
|
||||
AllowLiterals bool `protobuf:"varint,2,opt,name=allow_literals,json=allowLiterals,proto3" json:"allow_literals,omitempty"`
|
||||
// For each non-reserved named binding site in the query string, there must be
|
||||
// a named parameter with that name, but not necessarily the inverse.
|
||||
//
|
||||
// Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex
|
||||
// `__.*__`, and must not be `""`.
|
||||
NamedBindings map[string]*GqlQueryParameter `protobuf:"bytes,5,rep,name=named_bindings,json=namedBindings" json:"named_bindings,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
NamedBindings map[string]*GqlQueryParameter `protobuf:"bytes,5,rep,name=named_bindings,json=namedBindings,proto3" json:"named_bindings,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
// Numbered binding site @1 references the first numbered parameter,
|
||||
// effectively using 1-based indexing, rather than the usual 0.
|
||||
//
|
||||
// For each binding site numbered i in `query_string`, there must be an i-th
|
||||
// numbered parameter. The inverse must also be true.
|
||||
PositionalBindings []*GqlQueryParameter `protobuf:"bytes,4,rep,name=positional_bindings,json=positionalBindings" json:"positional_bindings,omitempty"`
|
||||
PositionalBindings []*GqlQueryParameter `protobuf:"bytes,4,rep,name=positional_bindings,json=positionalBindings,proto3" json:"positional_bindings,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GqlQuery) Reset() { *m = GqlQuery{} }
|
||||
func (m *GqlQuery) String() string { return proto.CompactTextString(m) }
|
||||
func (*GqlQuery) ProtoMessage() {}
|
||||
func (*GqlQuery) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{9} }
|
||||
func (m *GqlQuery) Reset() { *m = GqlQuery{} }
|
||||
func (m *GqlQuery) String() string { return proto.CompactTextString(m) }
|
||||
func (*GqlQuery) ProtoMessage() {}
|
||||
func (*GqlQuery) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_2312a1dfc5fd06f2, []int{9}
|
||||
}
|
||||
func (m *GqlQuery) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GqlQuery.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GqlQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GqlQuery.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *GqlQuery) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GqlQuery.Merge(dst, src)
|
||||
}
|
||||
func (m *GqlQuery) XXX_Size() int {
|
||||
return xxx_messageInfo_GqlQuery.Size(m)
|
||||
}
|
||||
func (m *GqlQuery) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GqlQuery.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GqlQuery proto.InternalMessageInfo
|
||||
|
||||
func (m *GqlQuery) GetQueryString() string {
|
||||
if m != nil {
|
||||
@ -666,26 +902,50 @@ type GqlQueryParameter struct {
|
||||
// Types that are valid to be assigned to ParameterType:
|
||||
// *GqlQueryParameter_Value
|
||||
// *GqlQueryParameter_Cursor
|
||||
ParameterType isGqlQueryParameter_ParameterType `protobuf_oneof:"parameter_type"`
|
||||
ParameterType isGqlQueryParameter_ParameterType `protobuf_oneof:"parameter_type"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GqlQueryParameter) Reset() { *m = GqlQueryParameter{} }
|
||||
func (m *GqlQueryParameter) String() string { return proto.CompactTextString(m) }
|
||||
func (*GqlQueryParameter) ProtoMessage() {}
|
||||
func (*GqlQueryParameter) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{10} }
|
||||
func (m *GqlQueryParameter) Reset() { *m = GqlQueryParameter{} }
|
||||
func (m *GqlQueryParameter) String() string { return proto.CompactTextString(m) }
|
||||
func (*GqlQueryParameter) ProtoMessage() {}
|
||||
func (*GqlQueryParameter) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_2312a1dfc5fd06f2, []int{10}
|
||||
}
|
||||
func (m *GqlQueryParameter) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GqlQueryParameter.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GqlQueryParameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GqlQueryParameter.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *GqlQueryParameter) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GqlQueryParameter.Merge(dst, src)
|
||||
}
|
||||
func (m *GqlQueryParameter) XXX_Size() int {
|
||||
return xxx_messageInfo_GqlQueryParameter.Size(m)
|
||||
}
|
||||
func (m *GqlQueryParameter) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GqlQueryParameter.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GqlQueryParameter proto.InternalMessageInfo
|
||||
|
||||
type isGqlQueryParameter_ParameterType interface {
|
||||
isGqlQueryParameter_ParameterType()
|
||||
}
|
||||
|
||||
type GqlQueryParameter_Value struct {
|
||||
Value *Value `protobuf:"bytes,2,opt,name=value,oneof"`
|
||||
Value *Value `protobuf:"bytes,2,opt,name=value,proto3,oneof"`
|
||||
}
|
||||
|
||||
type GqlQueryParameter_Cursor struct {
|
||||
Cursor []byte `protobuf:"bytes,3,opt,name=cursor,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*GqlQueryParameter_Value) isGqlQueryParameter_ParameterType() {}
|
||||
func (*GqlQueryParameter_Value) isGqlQueryParameter_ParameterType() {}
|
||||
|
||||
func (*GqlQueryParameter_Cursor) isGqlQueryParameter_ParameterType() {}
|
||||
|
||||
func (m *GqlQueryParameter) GetParameterType() isGqlQueryParameter_ParameterType {
|
||||
@ -765,11 +1025,11 @@ func _GqlQueryParameter_OneofSizer(msg proto.Message) (n int) {
|
||||
switch x := m.ParameterType.(type) {
|
||||
case *GqlQueryParameter_Value:
|
||||
s := proto.Size(x.Value)
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *GqlQueryParameter_Cursor:
|
||||
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.Cursor)))
|
||||
n += len(x.Cursor)
|
||||
case nil:
|
||||
@ -782,18 +1042,18 @@ func _GqlQueryParameter_OneofSizer(msg proto.Message) (n int) {
|
||||
// A batch of results produced by a query.
|
||||
type QueryResultBatch struct {
|
||||
// The number of results skipped, typically because of an offset.
|
||||
SkippedResults int32 `protobuf:"varint,6,opt,name=skipped_results,json=skippedResults" json:"skipped_results,omitempty"`
|
||||
SkippedResults int32 `protobuf:"varint,6,opt,name=skipped_results,json=skippedResults,proto3" json:"skipped_results,omitempty"`
|
||||
// A cursor that points to the position after the last skipped result.
|
||||
// Will be set when `skipped_results` != 0.
|
||||
SkippedCursor []byte `protobuf:"bytes,3,opt,name=skipped_cursor,json=skippedCursor,proto3" json:"skipped_cursor,omitempty"`
|
||||
// The result type for every entity in `entity_results`.
|
||||
EntityResultType EntityResult_ResultType `protobuf:"varint,1,opt,name=entity_result_type,json=entityResultType,enum=google.datastore.v1.EntityResult_ResultType" json:"entity_result_type,omitempty"`
|
||||
EntityResultType EntityResult_ResultType `protobuf:"varint,1,opt,name=entity_result_type,json=entityResultType,proto3,enum=google.datastore.v1.EntityResult_ResultType" json:"entity_result_type,omitempty"`
|
||||
// The results for this batch.
|
||||
EntityResults []*EntityResult `protobuf:"bytes,2,rep,name=entity_results,json=entityResults" json:"entity_results,omitempty"`
|
||||
EntityResults []*EntityResult `protobuf:"bytes,2,rep,name=entity_results,json=entityResults,proto3" json:"entity_results,omitempty"`
|
||||
// A cursor that points to the position after the last result in the batch.
|
||||
EndCursor []byte `protobuf:"bytes,4,opt,name=end_cursor,json=endCursor,proto3" json:"end_cursor,omitempty"`
|
||||
// The state of the query after the current batch.
|
||||
MoreResults QueryResultBatch_MoreResultsType `protobuf:"varint,5,opt,name=more_results,json=moreResults,enum=google.datastore.v1.QueryResultBatch_MoreResultsType" json:"more_results,omitempty"`
|
||||
MoreResults QueryResultBatch_MoreResultsType `protobuf:"varint,5,opt,name=more_results,json=moreResults,proto3,enum=google.datastore.v1.QueryResultBatch_MoreResultsType" json:"more_results,omitempty"`
|
||||
// The version number of the snapshot this batch was returned from.
|
||||
// This applies to the range of results from the query's `start_cursor` (or
|
||||
// the beginning of the query if no cursor was given) to this batch's
|
||||
@ -803,13 +1063,35 @@ type QueryResultBatch struct {
|
||||
// can have a greater snapshot version number. Each batch's snapshot version
|
||||
// is valid for all preceding batches.
|
||||
// The value will be zero for eventually consistent queries.
|
||||
SnapshotVersion int64 `protobuf:"varint,7,opt,name=snapshot_version,json=snapshotVersion" json:"snapshot_version,omitempty"`
|
||||
SnapshotVersion int64 `protobuf:"varint,7,opt,name=snapshot_version,json=snapshotVersion,proto3" json:"snapshot_version,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *QueryResultBatch) Reset() { *m = QueryResultBatch{} }
|
||||
func (m *QueryResultBatch) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryResultBatch) ProtoMessage() {}
|
||||
func (*QueryResultBatch) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{11} }
|
||||
func (m *QueryResultBatch) Reset() { *m = QueryResultBatch{} }
|
||||
func (m *QueryResultBatch) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryResultBatch) ProtoMessage() {}
|
||||
func (*QueryResultBatch) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_2312a1dfc5fd06f2, []int{11}
|
||||
}
|
||||
func (m *QueryResultBatch) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_QueryResultBatch.Unmarshal(m, b)
|
||||
}
|
||||
func (m *QueryResultBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_QueryResultBatch.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *QueryResultBatch) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_QueryResultBatch.Merge(dst, src)
|
||||
}
|
||||
func (m *QueryResultBatch) XXX_Size() int {
|
||||
return xxx_messageInfo_QueryResultBatch.Size(m)
|
||||
}
|
||||
func (m *QueryResultBatch) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_QueryResultBatch.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_QueryResultBatch proto.InternalMessageInfo
|
||||
|
||||
func (m *QueryResultBatch) GetSkippedResults() int32 {
|
||||
if m != nil {
|
||||
@ -871,6 +1153,7 @@ func init() {
|
||||
proto.RegisterType((*CompositeFilter)(nil), "google.datastore.v1.CompositeFilter")
|
||||
proto.RegisterType((*PropertyFilter)(nil), "google.datastore.v1.PropertyFilter")
|
||||
proto.RegisterType((*GqlQuery)(nil), "google.datastore.v1.GqlQuery")
|
||||
proto.RegisterMapType((map[string]*GqlQueryParameter)(nil), "google.datastore.v1.GqlQuery.NamedBindingsEntry")
|
||||
proto.RegisterType((*GqlQueryParameter)(nil), "google.datastore.v1.GqlQueryParameter")
|
||||
proto.RegisterType((*QueryResultBatch)(nil), "google.datastore.v1.QueryResultBatch")
|
||||
proto.RegisterEnum("google.datastore.v1.EntityResult_ResultType", EntityResult_ResultType_name, EntityResult_ResultType_value)
|
||||
@ -880,9 +1163,11 @@ func init() {
|
||||
proto.RegisterEnum("google.datastore.v1.QueryResultBatch_MoreResultsType", QueryResultBatch_MoreResultsType_name, QueryResultBatch_MoreResultsType_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/datastore/v1/query.proto", fileDescriptor2) }
|
||||
func init() {
|
||||
proto.RegisterFile("google/datastore/v1/query.proto", fileDescriptor_query_2312a1dfc5fd06f2)
|
||||
}
|
||||
|
||||
var fileDescriptor2 = []byte{
|
||||
var fileDescriptor_query_2312a1dfc5fd06f2 = []byte{
|
||||
// 1313 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdd, 0x72, 0xd3, 0x46,
|
||||
0x14, 0x8e, 0x64, 0x3b, 0x89, 0x8f, 0xff, 0xc4, 0xd2, 0x82, 0x08, 0x50, 0x12, 0x41, 0x4b, 0x3a,
|
||||
|
911
vendor/google.golang.org/genproto/googleapis/datastore/v1beta3/datastore.pb.go
generated
vendored
911
vendor/google.golang.org/genproto/googleapis/datastore/v1beta3/datastore.pb.go
generated
vendored
File diff suppressed because it is too large
Load Diff
357
vendor/google.golang.org/genproto/googleapis/datastore/v1beta3/entity.pb.go
generated
vendored
357
vendor/google.golang.org/genproto/googleapis/datastore/v1beta3/entity.pb.go
generated
vendored
@ -1,21 +1,27 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/datastore/v1beta3/entity.proto
|
||||
|
||||
package datastore
|
||||
package datastore // import "google.golang.org/genproto/googleapis/datastore/v1beta3"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _struct "github.com/golang/protobuf/ptypes/struct"
|
||||
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import google_protobuf1 "github.com/golang/protobuf/ptypes/struct"
|
||||
import google_protobuf2 "github.com/golang/protobuf/ptypes/timestamp"
|
||||
import google_type "google.golang.org/genproto/googleapis/type/latlng"
|
||||
import latlng "google.golang.org/genproto/googleapis/type/latlng"
|
||||
|
||||
// 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
|
||||
|
||||
// A partition ID identifies a grouping of entities. The grouping is always
|
||||
// by project and namespace, however the namespace ID may be empty.
|
||||
//
|
||||
@ -37,15 +43,37 @@ var _ = math.Inf
|
||||
// Reads and writes of foreign partition IDs may fail if the project is not in an active state.
|
||||
type PartitionId struct {
|
||||
// The ID of the project to which the entities belong.
|
||||
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
|
||||
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
|
||||
// If not empty, the ID of the namespace to which the entities belong.
|
||||
NamespaceId string `protobuf:"bytes,4,opt,name=namespace_id,json=namespaceId" json:"namespace_id,omitempty"`
|
||||
NamespaceId string `protobuf:"bytes,4,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PartitionId) Reset() { *m = PartitionId{} }
|
||||
func (m *PartitionId) String() string { return proto.CompactTextString(m) }
|
||||
func (*PartitionId) ProtoMessage() {}
|
||||
func (*PartitionId) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
|
||||
func (m *PartitionId) Reset() { *m = PartitionId{} }
|
||||
func (m *PartitionId) String() string { return proto.CompactTextString(m) }
|
||||
func (*PartitionId) ProtoMessage() {}
|
||||
func (*PartitionId) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_entity_01235876269a0b39, []int{0}
|
||||
}
|
||||
func (m *PartitionId) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PartitionId.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PartitionId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PartitionId.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *PartitionId) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PartitionId.Merge(dst, src)
|
||||
}
|
||||
func (m *PartitionId) XXX_Size() int {
|
||||
return xxx_messageInfo_PartitionId.Size(m)
|
||||
}
|
||||
func (m *PartitionId) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PartitionId.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PartitionId proto.InternalMessageInfo
|
||||
|
||||
func (m *PartitionId) GetProjectId() string {
|
||||
if m != nil {
|
||||
@ -69,7 +97,7 @@ type Key struct {
|
||||
// Entities are partitioned into subsets, currently identified by a project
|
||||
// ID and namespace ID.
|
||||
// Queries are scoped to a single partition.
|
||||
PartitionId *PartitionId `protobuf:"bytes,1,opt,name=partition_id,json=partitionId" json:"partition_id,omitempty"`
|
||||
PartitionId *PartitionId `protobuf:"bytes,1,opt,name=partition_id,json=partitionId,proto3" json:"partition_id,omitempty"`
|
||||
// The entity path.
|
||||
// An entity path consists of one or more elements composed of a kind and a
|
||||
// string or numerical identifier, which identify entities. The first
|
||||
@ -86,13 +114,35 @@ type Key struct {
|
||||
// identifier.
|
||||
//
|
||||
// A path can never be empty, and a path can have at most 100 elements.
|
||||
Path []*Key_PathElement `protobuf:"bytes,2,rep,name=path" json:"path,omitempty"`
|
||||
Path []*Key_PathElement `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Key) Reset() { *m = Key{} }
|
||||
func (m *Key) String() string { return proto.CompactTextString(m) }
|
||||
func (*Key) ProtoMessage() {}
|
||||
func (*Key) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
|
||||
func (m *Key) Reset() { *m = Key{} }
|
||||
func (m *Key) String() string { return proto.CompactTextString(m) }
|
||||
func (*Key) ProtoMessage() {}
|
||||
func (*Key) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_entity_01235876269a0b39, []int{1}
|
||||
}
|
||||
func (m *Key) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Key.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Key.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Key) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Key.Merge(dst, src)
|
||||
}
|
||||
func (m *Key) XXX_Size() int {
|
||||
return xxx_messageInfo_Key.Size(m)
|
||||
}
|
||||
func (m *Key) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Key.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Key proto.InternalMessageInfo
|
||||
|
||||
func (m *Key) GetPartitionId() *PartitionId {
|
||||
if m != nil {
|
||||
@ -117,32 +167,63 @@ type Key_PathElement struct {
|
||||
// A kind matching regex `__.*__` is reserved/read-only.
|
||||
// A kind must not contain more than 1500 bytes when UTF-8 encoded.
|
||||
// Cannot be `""`.
|
||||
Kind string `protobuf:"bytes,1,opt,name=kind" json:"kind,omitempty"`
|
||||
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
|
||||
// The type of ID.
|
||||
//
|
||||
// Types that are valid to be assigned to IdType:
|
||||
// *Key_PathElement_Id
|
||||
// *Key_PathElement_Name
|
||||
IdType isKey_PathElement_IdType `protobuf_oneof:"id_type"`
|
||||
IdType isKey_PathElement_IdType `protobuf_oneof:"id_type"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Key_PathElement) Reset() { *m = Key_PathElement{} }
|
||||
func (m *Key_PathElement) String() string { return proto.CompactTextString(m) }
|
||||
func (*Key_PathElement) ProtoMessage() {}
|
||||
func (*Key_PathElement) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1, 0} }
|
||||
func (m *Key_PathElement) Reset() { *m = Key_PathElement{} }
|
||||
func (m *Key_PathElement) String() string { return proto.CompactTextString(m) }
|
||||
func (*Key_PathElement) ProtoMessage() {}
|
||||
func (*Key_PathElement) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_entity_01235876269a0b39, []int{1, 0}
|
||||
}
|
||||
func (m *Key_PathElement) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Key_PathElement.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Key_PathElement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Key_PathElement.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Key_PathElement) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Key_PathElement.Merge(dst, src)
|
||||
}
|
||||
func (m *Key_PathElement) XXX_Size() int {
|
||||
return xxx_messageInfo_Key_PathElement.Size(m)
|
||||
}
|
||||
func (m *Key_PathElement) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Key_PathElement.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Key_PathElement proto.InternalMessageInfo
|
||||
|
||||
func (m *Key_PathElement) GetKind() string {
|
||||
if m != nil {
|
||||
return m.Kind
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type isKey_PathElement_IdType interface {
|
||||
isKey_PathElement_IdType()
|
||||
}
|
||||
|
||||
type Key_PathElement_Id struct {
|
||||
Id int64 `protobuf:"varint,2,opt,name=id,oneof"`
|
||||
}
|
||||
type Key_PathElement_Name struct {
|
||||
Name string `protobuf:"bytes,3,opt,name=name,oneof"`
|
||||
Id int64 `protobuf:"varint,2,opt,name=id,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*Key_PathElement_Id) isKey_PathElement_IdType() {}
|
||||
type Key_PathElement_Name struct {
|
||||
Name string `protobuf:"bytes,3,opt,name=name,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*Key_PathElement_Id) isKey_PathElement_IdType() {}
|
||||
|
||||
func (*Key_PathElement_Name) isKey_PathElement_IdType() {}
|
||||
|
||||
func (m *Key_PathElement) GetIdType() isKey_PathElement_IdType {
|
||||
@ -152,13 +233,6 @@ func (m *Key_PathElement) GetIdType() isKey_PathElement_IdType {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Key_PathElement) GetKind() string {
|
||||
if m != nil {
|
||||
return m.Kind
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Key_PathElement) GetId() int64 {
|
||||
if x, ok := m.GetIdType().(*Key_PathElement_Id); ok {
|
||||
return x.Id
|
||||
@ -225,10 +299,10 @@ func _Key_PathElement_OneofSizer(msg proto.Message) (n int) {
|
||||
// id_type
|
||||
switch x := m.IdType.(type) {
|
||||
case *Key_PathElement_Id:
|
||||
n += proto.SizeVarint(2<<3 | proto.WireVarint)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(x.Id))
|
||||
case *Key_PathElement_Name:
|
||||
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.Name)))
|
||||
n += len(x.Name)
|
||||
case nil:
|
||||
@ -243,13 +317,35 @@ type ArrayValue struct {
|
||||
// Values in the array.
|
||||
// The order of this array may not be preserved if it contains a mix of
|
||||
// indexed and unindexed values.
|
||||
Values []*Value `protobuf:"bytes,1,rep,name=values" json:"values,omitempty"`
|
||||
Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ArrayValue) Reset() { *m = ArrayValue{} }
|
||||
func (m *ArrayValue) String() string { return proto.CompactTextString(m) }
|
||||
func (*ArrayValue) ProtoMessage() {}
|
||||
func (*ArrayValue) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
|
||||
func (m *ArrayValue) Reset() { *m = ArrayValue{} }
|
||||
func (m *ArrayValue) String() string { return proto.CompactTextString(m) }
|
||||
func (*ArrayValue) ProtoMessage() {}
|
||||
func (*ArrayValue) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_entity_01235876269a0b39, []int{2}
|
||||
}
|
||||
func (m *ArrayValue) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ArrayValue.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ArrayValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ArrayValue.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ArrayValue) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ArrayValue.Merge(dst, src)
|
||||
}
|
||||
func (m *ArrayValue) XXX_Size() int {
|
||||
return xxx_messageInfo_ArrayValue.Size(m)
|
||||
}
|
||||
func (m *ArrayValue) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ArrayValue.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ArrayValue proto.InternalMessageInfo
|
||||
|
||||
func (m *ArrayValue) GetValues() []*Value {
|
||||
if m != nil {
|
||||
@ -277,66 +373,108 @@ type Value struct {
|
||||
// *Value_ArrayValue
|
||||
ValueType isValue_ValueType `protobuf_oneof:"value_type"`
|
||||
// The `meaning` field should only be populated for backwards compatibility.
|
||||
Meaning int32 `protobuf:"varint,14,opt,name=meaning" json:"meaning,omitempty"`
|
||||
Meaning int32 `protobuf:"varint,14,opt,name=meaning,proto3" json:"meaning,omitempty"`
|
||||
// If the value should be excluded from all indexes including those defined
|
||||
// explicitly.
|
||||
ExcludeFromIndexes bool `protobuf:"varint,19,opt,name=exclude_from_indexes,json=excludeFromIndexes" json:"exclude_from_indexes,omitempty"`
|
||||
ExcludeFromIndexes bool `protobuf:"varint,19,opt,name=exclude_from_indexes,json=excludeFromIndexes,proto3" json:"exclude_from_indexes,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Value) Reset() { *m = Value{} }
|
||||
func (m *Value) String() string { return proto.CompactTextString(m) }
|
||||
func (*Value) ProtoMessage() {}
|
||||
func (*Value) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
|
||||
func (m *Value) Reset() { *m = Value{} }
|
||||
func (m *Value) String() string { return proto.CompactTextString(m) }
|
||||
func (*Value) ProtoMessage() {}
|
||||
func (*Value) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_entity_01235876269a0b39, []int{3}
|
||||
}
|
||||
func (m *Value) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Value.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Value.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Value) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Value.Merge(dst, src)
|
||||
}
|
||||
func (m *Value) XXX_Size() int {
|
||||
return xxx_messageInfo_Value.Size(m)
|
||||
}
|
||||
func (m *Value) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Value.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Value proto.InternalMessageInfo
|
||||
|
||||
type isValue_ValueType interface {
|
||||
isValue_ValueType()
|
||||
}
|
||||
|
||||
type Value_NullValue struct {
|
||||
NullValue google_protobuf1.NullValue `protobuf:"varint,11,opt,name=null_value,json=nullValue,enum=google.protobuf.NullValue,oneof"`
|
||||
NullValue _struct.NullValue `protobuf:"varint,11,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"`
|
||||
}
|
||||
|
||||
type Value_BooleanValue struct {
|
||||
BooleanValue bool `protobuf:"varint,1,opt,name=boolean_value,json=booleanValue,oneof"`
|
||||
BooleanValue bool `protobuf:"varint,1,opt,name=boolean_value,json=booleanValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Value_IntegerValue struct {
|
||||
IntegerValue int64 `protobuf:"varint,2,opt,name=integer_value,json=integerValue,oneof"`
|
||||
IntegerValue int64 `protobuf:"varint,2,opt,name=integer_value,json=integerValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Value_DoubleValue struct {
|
||||
DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,oneof"`
|
||||
DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Value_TimestampValue struct {
|
||||
TimestampValue *google_protobuf2.Timestamp `protobuf:"bytes,10,opt,name=timestamp_value,json=timestampValue,oneof"`
|
||||
TimestampValue *timestamp.Timestamp `protobuf:"bytes,10,opt,name=timestamp_value,json=timestampValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Value_KeyValue struct {
|
||||
KeyValue *Key `protobuf:"bytes,5,opt,name=key_value,json=keyValue,oneof"`
|
||||
KeyValue *Key `protobuf:"bytes,5,opt,name=key_value,json=keyValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Value_StringValue struct {
|
||||
StringValue string `protobuf:"bytes,17,opt,name=string_value,json=stringValue,oneof"`
|
||||
StringValue string `protobuf:"bytes,17,opt,name=string_value,json=stringValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Value_BlobValue struct {
|
||||
BlobValue []byte `protobuf:"bytes,18,opt,name=blob_value,json=blobValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Value_GeoPointValue struct {
|
||||
GeoPointValue *google_type.LatLng `protobuf:"bytes,8,opt,name=geo_point_value,json=geoPointValue,oneof"`
|
||||
}
|
||||
type Value_EntityValue struct {
|
||||
EntityValue *Entity `protobuf:"bytes,6,opt,name=entity_value,json=entityValue,oneof"`
|
||||
}
|
||||
type Value_ArrayValue struct {
|
||||
ArrayValue *ArrayValue `protobuf:"bytes,9,opt,name=array_value,json=arrayValue,oneof"`
|
||||
GeoPointValue *latlng.LatLng `protobuf:"bytes,8,opt,name=geo_point_value,json=geoPointValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*Value_NullValue) isValue_ValueType() {}
|
||||
func (*Value_BooleanValue) isValue_ValueType() {}
|
||||
func (*Value_IntegerValue) isValue_ValueType() {}
|
||||
func (*Value_DoubleValue) isValue_ValueType() {}
|
||||
type Value_EntityValue struct {
|
||||
EntityValue *Entity `protobuf:"bytes,6,opt,name=entity_value,json=entityValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Value_ArrayValue struct {
|
||||
ArrayValue *ArrayValue `protobuf:"bytes,9,opt,name=array_value,json=arrayValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*Value_NullValue) isValue_ValueType() {}
|
||||
|
||||
func (*Value_BooleanValue) isValue_ValueType() {}
|
||||
|
||||
func (*Value_IntegerValue) isValue_ValueType() {}
|
||||
|
||||
func (*Value_DoubleValue) isValue_ValueType() {}
|
||||
|
||||
func (*Value_TimestampValue) isValue_ValueType() {}
|
||||
func (*Value_KeyValue) isValue_ValueType() {}
|
||||
func (*Value_StringValue) isValue_ValueType() {}
|
||||
func (*Value_BlobValue) isValue_ValueType() {}
|
||||
func (*Value_GeoPointValue) isValue_ValueType() {}
|
||||
func (*Value_EntityValue) isValue_ValueType() {}
|
||||
func (*Value_ArrayValue) isValue_ValueType() {}
|
||||
|
||||
func (*Value_KeyValue) isValue_ValueType() {}
|
||||
|
||||
func (*Value_StringValue) isValue_ValueType() {}
|
||||
|
||||
func (*Value_BlobValue) isValue_ValueType() {}
|
||||
|
||||
func (*Value_GeoPointValue) isValue_ValueType() {}
|
||||
|
||||
func (*Value_EntityValue) isValue_ValueType() {}
|
||||
|
||||
func (*Value_ArrayValue) isValue_ValueType() {}
|
||||
|
||||
func (m *Value) GetValueType() isValue_ValueType {
|
||||
if m != nil {
|
||||
@ -345,11 +483,11 @@ func (m *Value) GetValueType() isValue_ValueType {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Value) GetNullValue() google_protobuf1.NullValue {
|
||||
func (m *Value) GetNullValue() _struct.NullValue {
|
||||
if x, ok := m.GetValueType().(*Value_NullValue); ok {
|
||||
return x.NullValue
|
||||
}
|
||||
return google_protobuf1.NullValue_NULL_VALUE
|
||||
return _struct.NullValue_NULL_VALUE
|
||||
}
|
||||
|
||||
func (m *Value) GetBooleanValue() bool {
|
||||
@ -373,7 +511,7 @@ func (m *Value) GetDoubleValue() float64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Value) GetTimestampValue() *google_protobuf2.Timestamp {
|
||||
func (m *Value) GetTimestampValue() *timestamp.Timestamp {
|
||||
if x, ok := m.GetValueType().(*Value_TimestampValue); ok {
|
||||
return x.TimestampValue
|
||||
}
|
||||
@ -401,7 +539,7 @@ func (m *Value) GetBlobValue() []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Value) GetGeoPointValue() *google_type.LatLng {
|
||||
func (m *Value) GetGeoPointValue() *latlng.LatLng {
|
||||
if x, ok := m.GetValueType().(*Value_GeoPointValue); ok {
|
||||
return x.GeoPointValue
|
||||
}
|
||||
@ -519,7 +657,7 @@ func _Value_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer)
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeVarint()
|
||||
m.ValueType = &Value_NullValue{google_protobuf1.NullValue(x)}
|
||||
m.ValueType = &Value_NullValue{_struct.NullValue(x)}
|
||||
return true, err
|
||||
case 1: // value_type.boolean_value
|
||||
if wire != proto.WireVarint {
|
||||
@ -546,7 +684,7 @@ func _Value_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer)
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(google_protobuf2.Timestamp)
|
||||
msg := new(timestamp.Timestamp)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.ValueType = &Value_TimestampValue{msg}
|
||||
return true, err
|
||||
@ -576,7 +714,7 @@ func _Value_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer)
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(google_type.LatLng)
|
||||
msg := new(latlng.LatLng)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.ValueType = &Value_GeoPointValue{msg}
|
||||
return true, err
|
||||
@ -606,48 +744,48 @@ func _Value_OneofSizer(msg proto.Message) (n int) {
|
||||
// value_type
|
||||
switch x := m.ValueType.(type) {
|
||||
case *Value_NullValue:
|
||||
n += proto.SizeVarint(11<<3 | proto.WireVarint)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(x.NullValue))
|
||||
case *Value_BooleanValue:
|
||||
n += proto.SizeVarint(1<<3 | proto.WireVarint)
|
||||
n += 1 // tag and wire
|
||||
n += 1
|
||||
case *Value_IntegerValue:
|
||||
n += proto.SizeVarint(2<<3 | proto.WireVarint)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(x.IntegerValue))
|
||||
case *Value_DoubleValue:
|
||||
n += proto.SizeVarint(3<<3 | proto.WireFixed64)
|
||||
n += 1 // tag and wire
|
||||
n += 8
|
||||
case *Value_TimestampValue:
|
||||
s := proto.Size(x.TimestampValue)
|
||||
n += proto.SizeVarint(10<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Value_KeyValue:
|
||||
s := proto.Size(x.KeyValue)
|
||||
n += proto.SizeVarint(5<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Value_StringValue:
|
||||
n += proto.SizeVarint(17<<3 | proto.WireBytes)
|
||||
n += 2 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.StringValue)))
|
||||
n += len(x.StringValue)
|
||||
case *Value_BlobValue:
|
||||
n += proto.SizeVarint(18<<3 | proto.WireBytes)
|
||||
n += 2 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.BlobValue)))
|
||||
n += len(x.BlobValue)
|
||||
case *Value_GeoPointValue:
|
||||
s := proto.Size(x.GeoPointValue)
|
||||
n += proto.SizeVarint(8<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Value_EntityValue:
|
||||
s := proto.Size(x.EntityValue)
|
||||
n += proto.SizeVarint(6<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Value_ArrayValue:
|
||||
s := proto.Size(x.ArrayValue)
|
||||
n += proto.SizeVarint(9<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
@ -669,20 +807,42 @@ type Entity struct {
|
||||
// an entity in `Value.entity_value` may have no key).
|
||||
// An entity's kind is its key path's last element's kind,
|
||||
// or null if it has no key.
|
||||
Key *Key `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
|
||||
Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
||||
// The entity's properties.
|
||||
// The map's keys are property names.
|
||||
// A property name matching regex `__.*__` is reserved.
|
||||
// A reserved property name is forbidden in certain documented contexts.
|
||||
// The name must not contain more than 500 characters.
|
||||
// The name cannot be `""`.
|
||||
Properties map[string]*Value `protobuf:"bytes,3,rep,name=properties" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
Properties map[string]*Value `protobuf:"bytes,3,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Entity) Reset() { *m = Entity{} }
|
||||
func (m *Entity) String() string { return proto.CompactTextString(m) }
|
||||
func (*Entity) ProtoMessage() {}
|
||||
func (*Entity) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
|
||||
func (m *Entity) Reset() { *m = Entity{} }
|
||||
func (m *Entity) String() string { return proto.CompactTextString(m) }
|
||||
func (*Entity) ProtoMessage() {}
|
||||
func (*Entity) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_entity_01235876269a0b39, []int{4}
|
||||
}
|
||||
func (m *Entity) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Entity.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Entity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Entity.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Entity) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Entity.Merge(dst, src)
|
||||
}
|
||||
func (m *Entity) XXX_Size() int {
|
||||
return xxx_messageInfo_Entity.Size(m)
|
||||
}
|
||||
func (m *Entity) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Entity.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Entity proto.InternalMessageInfo
|
||||
|
||||
func (m *Entity) GetKey() *Key {
|
||||
if m != nil {
|
||||
@ -705,11 +865,14 @@ func init() {
|
||||
proto.RegisterType((*ArrayValue)(nil), "google.datastore.v1beta3.ArrayValue")
|
||||
proto.RegisterType((*Value)(nil), "google.datastore.v1beta3.Value")
|
||||
proto.RegisterType((*Entity)(nil), "google.datastore.v1beta3.Entity")
|
||||
proto.RegisterMapType((map[string]*Value)(nil), "google.datastore.v1beta3.Entity.PropertiesEntry")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/datastore/v1beta3/entity.proto", fileDescriptor1) }
|
||||
func init() {
|
||||
proto.RegisterFile("google/datastore/v1beta3/entity.proto", fileDescriptor_entity_01235876269a0b39)
|
||||
}
|
||||
|
||||
var fileDescriptor1 = []byte{
|
||||
var fileDescriptor_entity_01235876269a0b39 = []byte{
|
||||
// 789 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x95, 0xdf, 0x8e, 0xdb, 0x44,
|
||||
0x14, 0xc6, 0xed, 0x64, 0xb3, 0x5d, 0x1f, 0xbb, 0xbb, 0x65, 0xda, 0x0b, 0x2b, 0x6a, 0xd9, 0x10,
|
||||
|
489
vendor/google.golang.org/genproto/googleapis/datastore/v1beta3/query.pb.go
generated
vendored
489
vendor/google.golang.org/genproto/googleapis/datastore/v1beta3/query.pb.go
generated
vendored
@ -1,13 +1,13 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/datastore/v1beta3/query.proto
|
||||
|
||||
package datastore
|
||||
package datastore // import "google.golang.org/genproto/googleapis/datastore/v1beta3"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import wrappers "github.com/golang/protobuf/ptypes/wrappers"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import google_protobuf3 "github.com/golang/protobuf/ptypes/wrappers"
|
||||
import _ "google.golang.org/genproto/googleapis/type/latlng"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@ -15,6 +15,12 @@ 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
|
||||
|
||||
// Specifies what data the 'entity' field contains.
|
||||
// A `ResultType` is either implied (for example, in `LookupResponse.missing`
|
||||
// from `datastore.proto`, it is always `KEY_ONLY`) or specified by context
|
||||
@ -41,15 +47,17 @@ var EntityResult_ResultType_name = map[int32]string{
|
||||
}
|
||||
var EntityResult_ResultType_value = map[string]int32{
|
||||
"RESULT_TYPE_UNSPECIFIED": 0,
|
||||
"FULL": 1,
|
||||
"PROJECTION": 2,
|
||||
"KEY_ONLY": 3,
|
||||
"FULL": 1,
|
||||
"PROJECTION": 2,
|
||||
"KEY_ONLY": 3,
|
||||
}
|
||||
|
||||
func (x EntityResult_ResultType) String() string {
|
||||
return proto.EnumName(EntityResult_ResultType_name, int32(x))
|
||||
}
|
||||
func (EntityResult_ResultType) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 0} }
|
||||
func (EntityResult_ResultType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_756a9031b51ce9dc, []int{0, 0}
|
||||
}
|
||||
|
||||
// The sort direction.
|
||||
type PropertyOrder_Direction int32
|
||||
@ -77,7 +85,9 @@ var PropertyOrder_Direction_value = map[string]int32{
|
||||
func (x PropertyOrder_Direction) String() string {
|
||||
return proto.EnumName(PropertyOrder_Direction_name, int32(x))
|
||||
}
|
||||
func (PropertyOrder_Direction) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{5, 0} }
|
||||
func (PropertyOrder_Direction) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_756a9031b51ce9dc, []int{5, 0}
|
||||
}
|
||||
|
||||
// A composite filter operator.
|
||||
type CompositeFilter_Operator int32
|
||||
@ -95,13 +105,15 @@ var CompositeFilter_Operator_name = map[int32]string{
|
||||
}
|
||||
var CompositeFilter_Operator_value = map[string]int32{
|
||||
"OPERATOR_UNSPECIFIED": 0,
|
||||
"AND": 1,
|
||||
"AND": 1,
|
||||
}
|
||||
|
||||
func (x CompositeFilter_Operator) String() string {
|
||||
return proto.EnumName(CompositeFilter_Operator_name, int32(x))
|
||||
}
|
||||
func (CompositeFilter_Operator) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{7, 0} }
|
||||
func (CompositeFilter_Operator) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_756a9031b51ce9dc, []int{7, 0}
|
||||
}
|
||||
|
||||
// A property filter operator.
|
||||
type PropertyFilter_Operator int32
|
||||
@ -145,7 +157,9 @@ var PropertyFilter_Operator_value = map[string]int32{
|
||||
func (x PropertyFilter_Operator) String() string {
|
||||
return proto.EnumName(PropertyFilter_Operator_name, int32(x))
|
||||
}
|
||||
func (PropertyFilter_Operator) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{8, 0} }
|
||||
func (PropertyFilter_Operator) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_756a9031b51ce9dc, []int{8, 0}
|
||||
}
|
||||
|
||||
// The possible values for the `more_results` field.
|
||||
type QueryResultBatch_MoreResultsType int32
|
||||
@ -183,13 +197,13 @@ func (x QueryResultBatch_MoreResultsType) String() string {
|
||||
return proto.EnumName(QueryResultBatch_MoreResultsType_name, int32(x))
|
||||
}
|
||||
func (QueryResultBatch_MoreResultsType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor2, []int{11, 0}
|
||||
return fileDescriptor_query_756a9031b51ce9dc, []int{11, 0}
|
||||
}
|
||||
|
||||
// The result of fetching an entity from Datastore.
|
||||
type EntityResult struct {
|
||||
// The resulting entity.
|
||||
Entity *Entity `protobuf:"bytes,1,opt,name=entity" json:"entity,omitempty"`
|
||||
Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
|
||||
// The version of the entity, a strictly positive number that monotonically
|
||||
// increases with changes to the entity.
|
||||
//
|
||||
@ -199,16 +213,38 @@ type EntityResult struct {
|
||||
// For [missing][google.datastore.v1beta3.LookupResponse.missing] entities in `LookupResponse`, this
|
||||
// is the version of the snapshot that was used to look up the entity, and it
|
||||
// is always set except for eventually consistent reads.
|
||||
Version int64 `protobuf:"varint,4,opt,name=version" json:"version,omitempty"`
|
||||
Version int64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
|
||||
// A cursor that points to the position after the result entity.
|
||||
// Set only when the `EntityResult` is part of a `QueryResultBatch` message.
|
||||
Cursor []byte `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"`
|
||||
Cursor []byte `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *EntityResult) Reset() { *m = EntityResult{} }
|
||||
func (m *EntityResult) String() string { return proto.CompactTextString(m) }
|
||||
func (*EntityResult) ProtoMessage() {}
|
||||
func (*EntityResult) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
|
||||
func (m *EntityResult) Reset() { *m = EntityResult{} }
|
||||
func (m *EntityResult) String() string { return proto.CompactTextString(m) }
|
||||
func (*EntityResult) ProtoMessage() {}
|
||||
func (*EntityResult) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_756a9031b51ce9dc, []int{0}
|
||||
}
|
||||
func (m *EntityResult) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_EntityResult.Unmarshal(m, b)
|
||||
}
|
||||
func (m *EntityResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_EntityResult.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *EntityResult) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_EntityResult.Merge(dst, src)
|
||||
}
|
||||
func (m *EntityResult) XXX_Size() int {
|
||||
return xxx_messageInfo_EntityResult.Size(m)
|
||||
}
|
||||
func (m *EntityResult) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_EntityResult.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_EntityResult proto.InternalMessageInfo
|
||||
|
||||
func (m *EntityResult) GetEntity() *Entity {
|
||||
if m != nil {
|
||||
@ -234,18 +270,18 @@ func (m *EntityResult) GetCursor() []byte {
|
||||
// A query for entities.
|
||||
type Query struct {
|
||||
// The projection to return. Defaults to returning all properties.
|
||||
Projection []*Projection `protobuf:"bytes,2,rep,name=projection" json:"projection,omitempty"`
|
||||
Projection []*Projection `protobuf:"bytes,2,rep,name=projection,proto3" json:"projection,omitempty"`
|
||||
// The kinds to query (if empty, returns entities of all kinds).
|
||||
// Currently at most 1 kind may be specified.
|
||||
Kind []*KindExpression `protobuf:"bytes,3,rep,name=kind" json:"kind,omitempty"`
|
||||
Kind []*KindExpression `protobuf:"bytes,3,rep,name=kind,proto3" json:"kind,omitempty"`
|
||||
// The filter to apply.
|
||||
Filter *Filter `protobuf:"bytes,4,opt,name=filter" json:"filter,omitempty"`
|
||||
Filter *Filter `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
|
||||
// The order to apply to the query results (if empty, order is unspecified).
|
||||
Order []*PropertyOrder `protobuf:"bytes,5,rep,name=order" json:"order,omitempty"`
|
||||
Order []*PropertyOrder `protobuf:"bytes,5,rep,name=order,proto3" json:"order,omitempty"`
|
||||
// The properties to make distinct. The query results will contain the first
|
||||
// result for each distinct combination of values for the given properties
|
||||
// (if empty, all results are returned).
|
||||
DistinctOn []*PropertyReference `protobuf:"bytes,6,rep,name=distinct_on,json=distinctOn" json:"distinct_on,omitempty"`
|
||||
DistinctOn []*PropertyReference `protobuf:"bytes,6,rep,name=distinct_on,json=distinctOn,proto3" json:"distinct_on,omitempty"`
|
||||
// A starting point for the query results. Query cursors are
|
||||
// returned in query result batches and
|
||||
// [can only be used to continue the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
|
||||
@ -256,18 +292,40 @@ type Query struct {
|
||||
EndCursor []byte `protobuf:"bytes,8,opt,name=end_cursor,json=endCursor,proto3" json:"end_cursor,omitempty"`
|
||||
// The number of results to skip. Applies before limit, but after all other
|
||||
// constraints. Optional. Must be >= 0 if specified.
|
||||
Offset int32 `protobuf:"varint,10,opt,name=offset" json:"offset,omitempty"`
|
||||
Offset int32 `protobuf:"varint,10,opt,name=offset,proto3" json:"offset,omitempty"`
|
||||
// The maximum number of results to return. Applies after all other
|
||||
// constraints. Optional.
|
||||
// Unspecified is interpreted as no limit.
|
||||
// Must be >= 0 if specified.
|
||||
Limit *google_protobuf3.Int32Value `protobuf:"bytes,12,opt,name=limit" json:"limit,omitempty"`
|
||||
Limit *wrappers.Int32Value `protobuf:"bytes,12,opt,name=limit,proto3" json:"limit,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Query) Reset() { *m = Query{} }
|
||||
func (m *Query) String() string { return proto.CompactTextString(m) }
|
||||
func (*Query) ProtoMessage() {}
|
||||
func (*Query) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
|
||||
func (m *Query) Reset() { *m = Query{} }
|
||||
func (m *Query) String() string { return proto.CompactTextString(m) }
|
||||
func (*Query) ProtoMessage() {}
|
||||
func (*Query) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_756a9031b51ce9dc, []int{1}
|
||||
}
|
||||
func (m *Query) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Query.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Query.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Query) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Query.Merge(dst, src)
|
||||
}
|
||||
func (m *Query) XXX_Size() int {
|
||||
return xxx_messageInfo_Query.Size(m)
|
||||
}
|
||||
func (m *Query) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Query.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Query proto.InternalMessageInfo
|
||||
|
||||
func (m *Query) GetProjection() []*Projection {
|
||||
if m != nil {
|
||||
@ -325,7 +383,7 @@ func (m *Query) GetOffset() int32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Query) GetLimit() *google_protobuf3.Int32Value {
|
||||
func (m *Query) GetLimit() *wrappers.Int32Value {
|
||||
if m != nil {
|
||||
return m.Limit
|
||||
}
|
||||
@ -335,13 +393,35 @@ func (m *Query) GetLimit() *google_protobuf3.Int32Value {
|
||||
// A representation of a kind.
|
||||
type KindExpression struct {
|
||||
// The name of the kind.
|
||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *KindExpression) Reset() { *m = KindExpression{} }
|
||||
func (m *KindExpression) String() string { return proto.CompactTextString(m) }
|
||||
func (*KindExpression) ProtoMessage() {}
|
||||
func (*KindExpression) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
|
||||
func (m *KindExpression) Reset() { *m = KindExpression{} }
|
||||
func (m *KindExpression) String() string { return proto.CompactTextString(m) }
|
||||
func (*KindExpression) ProtoMessage() {}
|
||||
func (*KindExpression) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_756a9031b51ce9dc, []int{2}
|
||||
}
|
||||
func (m *KindExpression) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_KindExpression.Unmarshal(m, b)
|
||||
}
|
||||
func (m *KindExpression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_KindExpression.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *KindExpression) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_KindExpression.Merge(dst, src)
|
||||
}
|
||||
func (m *KindExpression) XXX_Size() int {
|
||||
return xxx_messageInfo_KindExpression.Size(m)
|
||||
}
|
||||
func (m *KindExpression) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_KindExpression.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_KindExpression proto.InternalMessageInfo
|
||||
|
||||
func (m *KindExpression) GetName() string {
|
||||
if m != nil {
|
||||
@ -354,13 +434,35 @@ func (m *KindExpression) GetName() string {
|
||||
type PropertyReference struct {
|
||||
// The name of the property.
|
||||
// If name includes "."s, it may be interpreted as a property name path.
|
||||
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
|
||||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PropertyReference) Reset() { *m = PropertyReference{} }
|
||||
func (m *PropertyReference) String() string { return proto.CompactTextString(m) }
|
||||
func (*PropertyReference) ProtoMessage() {}
|
||||
func (*PropertyReference) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
|
||||
func (m *PropertyReference) Reset() { *m = PropertyReference{} }
|
||||
func (m *PropertyReference) String() string { return proto.CompactTextString(m) }
|
||||
func (*PropertyReference) ProtoMessage() {}
|
||||
func (*PropertyReference) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_756a9031b51ce9dc, []int{3}
|
||||
}
|
||||
func (m *PropertyReference) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PropertyReference.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PropertyReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PropertyReference.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *PropertyReference) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PropertyReference.Merge(dst, src)
|
||||
}
|
||||
func (m *PropertyReference) XXX_Size() int {
|
||||
return xxx_messageInfo_PropertyReference.Size(m)
|
||||
}
|
||||
func (m *PropertyReference) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PropertyReference.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PropertyReference proto.InternalMessageInfo
|
||||
|
||||
func (m *PropertyReference) GetName() string {
|
||||
if m != nil {
|
||||
@ -372,13 +474,35 @@ func (m *PropertyReference) GetName() string {
|
||||
// A representation of a property in a projection.
|
||||
type Projection struct {
|
||||
// The property to project.
|
||||
Property *PropertyReference `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
Property *PropertyReference `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Projection) Reset() { *m = Projection{} }
|
||||
func (m *Projection) String() string { return proto.CompactTextString(m) }
|
||||
func (*Projection) ProtoMessage() {}
|
||||
func (*Projection) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} }
|
||||
func (m *Projection) Reset() { *m = Projection{} }
|
||||
func (m *Projection) String() string { return proto.CompactTextString(m) }
|
||||
func (*Projection) ProtoMessage() {}
|
||||
func (*Projection) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_756a9031b51ce9dc, []int{4}
|
||||
}
|
||||
func (m *Projection) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Projection.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Projection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Projection.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Projection) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Projection.Merge(dst, src)
|
||||
}
|
||||
func (m *Projection) XXX_Size() int {
|
||||
return xxx_messageInfo_Projection.Size(m)
|
||||
}
|
||||
func (m *Projection) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Projection.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Projection proto.InternalMessageInfo
|
||||
|
||||
func (m *Projection) GetProperty() *PropertyReference {
|
||||
if m != nil {
|
||||
@ -390,15 +514,37 @@ func (m *Projection) GetProperty() *PropertyReference {
|
||||
// The desired order for a specific property.
|
||||
type PropertyOrder struct {
|
||||
// The property to order by.
|
||||
Property *PropertyReference `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
Property *PropertyReference `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// The direction to order by. Defaults to `ASCENDING`.
|
||||
Direction PropertyOrder_Direction `protobuf:"varint,2,opt,name=direction,enum=google.datastore.v1beta3.PropertyOrder_Direction" json:"direction,omitempty"`
|
||||
Direction PropertyOrder_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=google.datastore.v1beta3.PropertyOrder_Direction" json:"direction,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PropertyOrder) Reset() { *m = PropertyOrder{} }
|
||||
func (m *PropertyOrder) String() string { return proto.CompactTextString(m) }
|
||||
func (*PropertyOrder) ProtoMessage() {}
|
||||
func (*PropertyOrder) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} }
|
||||
func (m *PropertyOrder) Reset() { *m = PropertyOrder{} }
|
||||
func (m *PropertyOrder) String() string { return proto.CompactTextString(m) }
|
||||
func (*PropertyOrder) ProtoMessage() {}
|
||||
func (*PropertyOrder) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_756a9031b51ce9dc, []int{5}
|
||||
}
|
||||
func (m *PropertyOrder) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PropertyOrder.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PropertyOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PropertyOrder.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *PropertyOrder) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PropertyOrder.Merge(dst, src)
|
||||
}
|
||||
func (m *PropertyOrder) XXX_Size() int {
|
||||
return xxx_messageInfo_PropertyOrder.Size(m)
|
||||
}
|
||||
func (m *PropertyOrder) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PropertyOrder.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PropertyOrder proto.InternalMessageInfo
|
||||
|
||||
func (m *PropertyOrder) GetProperty() *PropertyReference {
|
||||
if m != nil {
|
||||
@ -421,27 +567,51 @@ type Filter struct {
|
||||
// Types that are valid to be assigned to FilterType:
|
||||
// *Filter_CompositeFilter
|
||||
// *Filter_PropertyFilter
|
||||
FilterType isFilter_FilterType `protobuf_oneof:"filter_type"`
|
||||
FilterType isFilter_FilterType `protobuf_oneof:"filter_type"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Filter) Reset() { *m = Filter{} }
|
||||
func (m *Filter) String() string { return proto.CompactTextString(m) }
|
||||
func (*Filter) ProtoMessage() {}
|
||||
func (*Filter) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{6} }
|
||||
func (m *Filter) Reset() { *m = Filter{} }
|
||||
func (m *Filter) String() string { return proto.CompactTextString(m) }
|
||||
func (*Filter) ProtoMessage() {}
|
||||
func (*Filter) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_756a9031b51ce9dc, []int{6}
|
||||
}
|
||||
func (m *Filter) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Filter.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Filter.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Filter) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Filter.Merge(dst, src)
|
||||
}
|
||||
func (m *Filter) XXX_Size() int {
|
||||
return xxx_messageInfo_Filter.Size(m)
|
||||
}
|
||||
func (m *Filter) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Filter.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Filter proto.InternalMessageInfo
|
||||
|
||||
type isFilter_FilterType interface {
|
||||
isFilter_FilterType()
|
||||
}
|
||||
|
||||
type Filter_CompositeFilter struct {
|
||||
CompositeFilter *CompositeFilter `protobuf:"bytes,1,opt,name=composite_filter,json=compositeFilter,oneof"`
|
||||
CompositeFilter *CompositeFilter `protobuf:"bytes,1,opt,name=composite_filter,json=compositeFilter,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Filter_PropertyFilter struct {
|
||||
PropertyFilter *PropertyFilter `protobuf:"bytes,2,opt,name=property_filter,json=propertyFilter,oneof"`
|
||||
PropertyFilter *PropertyFilter `protobuf:"bytes,2,opt,name=property_filter,json=propertyFilter,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*Filter_CompositeFilter) isFilter_FilterType() {}
|
||||
func (*Filter_PropertyFilter) isFilter_FilterType() {}
|
||||
|
||||
func (*Filter_PropertyFilter) isFilter_FilterType() {}
|
||||
|
||||
func (m *Filter) GetFilterType() isFilter_FilterType {
|
||||
if m != nil {
|
||||
@ -523,12 +693,12 @@ func _Filter_OneofSizer(msg proto.Message) (n int) {
|
||||
switch x := m.FilterType.(type) {
|
||||
case *Filter_CompositeFilter:
|
||||
s := proto.Size(x.CompositeFilter)
|
||||
n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Filter_PropertyFilter:
|
||||
s := proto.Size(x.PropertyFilter)
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
@ -541,16 +711,38 @@ func _Filter_OneofSizer(msg proto.Message) (n int) {
|
||||
// A filter that merges multiple other filters using the given operator.
|
||||
type CompositeFilter struct {
|
||||
// The operator for combining multiple filters.
|
||||
Op CompositeFilter_Operator `protobuf:"varint,1,opt,name=op,enum=google.datastore.v1beta3.CompositeFilter_Operator" json:"op,omitempty"`
|
||||
Op CompositeFilter_Operator `protobuf:"varint,1,opt,name=op,proto3,enum=google.datastore.v1beta3.CompositeFilter_Operator" json:"op,omitempty"`
|
||||
// The list of filters to combine.
|
||||
// Must contain at least one filter.
|
||||
Filters []*Filter `protobuf:"bytes,2,rep,name=filters" json:"filters,omitempty"`
|
||||
Filters []*Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CompositeFilter) Reset() { *m = CompositeFilter{} }
|
||||
func (m *CompositeFilter) String() string { return proto.CompactTextString(m) }
|
||||
func (*CompositeFilter) ProtoMessage() {}
|
||||
func (*CompositeFilter) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{7} }
|
||||
func (m *CompositeFilter) Reset() { *m = CompositeFilter{} }
|
||||
func (m *CompositeFilter) String() string { return proto.CompactTextString(m) }
|
||||
func (*CompositeFilter) ProtoMessage() {}
|
||||
func (*CompositeFilter) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_756a9031b51ce9dc, []int{7}
|
||||
}
|
||||
func (m *CompositeFilter) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CompositeFilter.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CompositeFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CompositeFilter.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *CompositeFilter) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CompositeFilter.Merge(dst, src)
|
||||
}
|
||||
func (m *CompositeFilter) XXX_Size() int {
|
||||
return xxx_messageInfo_CompositeFilter.Size(m)
|
||||
}
|
||||
func (m *CompositeFilter) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CompositeFilter.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CompositeFilter proto.InternalMessageInfo
|
||||
|
||||
func (m *CompositeFilter) GetOp() CompositeFilter_Operator {
|
||||
if m != nil {
|
||||
@ -569,17 +761,39 @@ func (m *CompositeFilter) GetFilters() []*Filter {
|
||||
// A filter on a specific property.
|
||||
type PropertyFilter struct {
|
||||
// The property to filter by.
|
||||
Property *PropertyReference `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
Property *PropertyReference `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// The operator to filter by.
|
||||
Op PropertyFilter_Operator `protobuf:"varint,2,opt,name=op,enum=google.datastore.v1beta3.PropertyFilter_Operator" json:"op,omitempty"`
|
||||
Op PropertyFilter_Operator `protobuf:"varint,2,opt,name=op,proto3,enum=google.datastore.v1beta3.PropertyFilter_Operator" json:"op,omitempty"`
|
||||
// The value to compare the property to.
|
||||
Value *Value `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"`
|
||||
Value *Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PropertyFilter) Reset() { *m = PropertyFilter{} }
|
||||
func (m *PropertyFilter) String() string { return proto.CompactTextString(m) }
|
||||
func (*PropertyFilter) ProtoMessage() {}
|
||||
func (*PropertyFilter) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{8} }
|
||||
func (m *PropertyFilter) Reset() { *m = PropertyFilter{} }
|
||||
func (m *PropertyFilter) String() string { return proto.CompactTextString(m) }
|
||||
func (*PropertyFilter) ProtoMessage() {}
|
||||
func (*PropertyFilter) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_756a9031b51ce9dc, []int{8}
|
||||
}
|
||||
func (m *PropertyFilter) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PropertyFilter.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PropertyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PropertyFilter.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *PropertyFilter) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PropertyFilter.Merge(dst, src)
|
||||
}
|
||||
func (m *PropertyFilter) XXX_Size() int {
|
||||
return xxx_messageInfo_PropertyFilter.Size(m)
|
||||
}
|
||||
func (m *PropertyFilter) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PropertyFilter.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PropertyFilter proto.InternalMessageInfo
|
||||
|
||||
func (m *PropertyFilter) GetProperty() *PropertyReference {
|
||||
if m != nil {
|
||||
@ -606,30 +820,52 @@ func (m *PropertyFilter) GetValue() *Value {
|
||||
type GqlQuery struct {
|
||||
// A string of the format described
|
||||
// [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
||||
QueryString string `protobuf:"bytes,1,opt,name=query_string,json=queryString" json:"query_string,omitempty"`
|
||||
QueryString string `protobuf:"bytes,1,opt,name=query_string,json=queryString,proto3" json:"query_string,omitempty"`
|
||||
// When false, the query string must not contain any literals and instead must
|
||||
// bind all values. For example,
|
||||
// `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while
|
||||
// `SELECT * FROM Kind WHERE a = @value` is.
|
||||
AllowLiterals bool `protobuf:"varint,2,opt,name=allow_literals,json=allowLiterals" json:"allow_literals,omitempty"`
|
||||
AllowLiterals bool `protobuf:"varint,2,opt,name=allow_literals,json=allowLiterals,proto3" json:"allow_literals,omitempty"`
|
||||
// For each non-reserved named binding site in the query string, there must be
|
||||
// a named parameter with that name, but not necessarily the inverse.
|
||||
//
|
||||
// Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex
|
||||
// `__.*__`, and must not be `""`.
|
||||
NamedBindings map[string]*GqlQueryParameter `protobuf:"bytes,5,rep,name=named_bindings,json=namedBindings" json:"named_bindings,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
NamedBindings map[string]*GqlQueryParameter `protobuf:"bytes,5,rep,name=named_bindings,json=namedBindings,proto3" json:"named_bindings,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
// Numbered binding site @1 references the first numbered parameter,
|
||||
// effectively using 1-based indexing, rather than the usual 0.
|
||||
//
|
||||
// For each binding site numbered i in `query_string`, there must be an i-th
|
||||
// numbered parameter. The inverse must also be true.
|
||||
PositionalBindings []*GqlQueryParameter `protobuf:"bytes,4,rep,name=positional_bindings,json=positionalBindings" json:"positional_bindings,omitempty"`
|
||||
PositionalBindings []*GqlQueryParameter `protobuf:"bytes,4,rep,name=positional_bindings,json=positionalBindings,proto3" json:"positional_bindings,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GqlQuery) Reset() { *m = GqlQuery{} }
|
||||
func (m *GqlQuery) String() string { return proto.CompactTextString(m) }
|
||||
func (*GqlQuery) ProtoMessage() {}
|
||||
func (*GqlQuery) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{9} }
|
||||
func (m *GqlQuery) Reset() { *m = GqlQuery{} }
|
||||
func (m *GqlQuery) String() string { return proto.CompactTextString(m) }
|
||||
func (*GqlQuery) ProtoMessage() {}
|
||||
func (*GqlQuery) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_756a9031b51ce9dc, []int{9}
|
||||
}
|
||||
func (m *GqlQuery) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GqlQuery.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GqlQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GqlQuery.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *GqlQuery) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GqlQuery.Merge(dst, src)
|
||||
}
|
||||
func (m *GqlQuery) XXX_Size() int {
|
||||
return xxx_messageInfo_GqlQuery.Size(m)
|
||||
}
|
||||
func (m *GqlQuery) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GqlQuery.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GqlQuery proto.InternalMessageInfo
|
||||
|
||||
func (m *GqlQuery) GetQueryString() string {
|
||||
if m != nil {
|
||||
@ -666,26 +902,50 @@ type GqlQueryParameter struct {
|
||||
// Types that are valid to be assigned to ParameterType:
|
||||
// *GqlQueryParameter_Value
|
||||
// *GqlQueryParameter_Cursor
|
||||
ParameterType isGqlQueryParameter_ParameterType `protobuf_oneof:"parameter_type"`
|
||||
ParameterType isGqlQueryParameter_ParameterType `protobuf_oneof:"parameter_type"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GqlQueryParameter) Reset() { *m = GqlQueryParameter{} }
|
||||
func (m *GqlQueryParameter) String() string { return proto.CompactTextString(m) }
|
||||
func (*GqlQueryParameter) ProtoMessage() {}
|
||||
func (*GqlQueryParameter) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{10} }
|
||||
func (m *GqlQueryParameter) Reset() { *m = GqlQueryParameter{} }
|
||||
func (m *GqlQueryParameter) String() string { return proto.CompactTextString(m) }
|
||||
func (*GqlQueryParameter) ProtoMessage() {}
|
||||
func (*GqlQueryParameter) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_756a9031b51ce9dc, []int{10}
|
||||
}
|
||||
func (m *GqlQueryParameter) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GqlQueryParameter.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GqlQueryParameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GqlQueryParameter.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *GqlQueryParameter) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GqlQueryParameter.Merge(dst, src)
|
||||
}
|
||||
func (m *GqlQueryParameter) XXX_Size() int {
|
||||
return xxx_messageInfo_GqlQueryParameter.Size(m)
|
||||
}
|
||||
func (m *GqlQueryParameter) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GqlQueryParameter.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GqlQueryParameter proto.InternalMessageInfo
|
||||
|
||||
type isGqlQueryParameter_ParameterType interface {
|
||||
isGqlQueryParameter_ParameterType()
|
||||
}
|
||||
|
||||
type GqlQueryParameter_Value struct {
|
||||
Value *Value `protobuf:"bytes,2,opt,name=value,oneof"`
|
||||
Value *Value `protobuf:"bytes,2,opt,name=value,proto3,oneof"`
|
||||
}
|
||||
|
||||
type GqlQueryParameter_Cursor struct {
|
||||
Cursor []byte `protobuf:"bytes,3,opt,name=cursor,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*GqlQueryParameter_Value) isGqlQueryParameter_ParameterType() {}
|
||||
func (*GqlQueryParameter_Value) isGqlQueryParameter_ParameterType() {}
|
||||
|
||||
func (*GqlQueryParameter_Cursor) isGqlQueryParameter_ParameterType() {}
|
||||
|
||||
func (m *GqlQueryParameter) GetParameterType() isGqlQueryParameter_ParameterType {
|
||||
@ -765,11 +1025,11 @@ func _GqlQueryParameter_OneofSizer(msg proto.Message) (n int) {
|
||||
switch x := m.ParameterType.(type) {
|
||||
case *GqlQueryParameter_Value:
|
||||
s := proto.Size(x.Value)
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *GqlQueryParameter_Cursor:
|
||||
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.Cursor)))
|
||||
n += len(x.Cursor)
|
||||
case nil:
|
||||
@ -782,18 +1042,18 @@ func _GqlQueryParameter_OneofSizer(msg proto.Message) (n int) {
|
||||
// A batch of results produced by a query.
|
||||
type QueryResultBatch struct {
|
||||
// The number of results skipped, typically because of an offset.
|
||||
SkippedResults int32 `protobuf:"varint,6,opt,name=skipped_results,json=skippedResults" json:"skipped_results,omitempty"`
|
||||
SkippedResults int32 `protobuf:"varint,6,opt,name=skipped_results,json=skippedResults,proto3" json:"skipped_results,omitempty"`
|
||||
// A cursor that points to the position after the last skipped result.
|
||||
// Will be set when `skipped_results` != 0.
|
||||
SkippedCursor []byte `protobuf:"bytes,3,opt,name=skipped_cursor,json=skippedCursor,proto3" json:"skipped_cursor,omitempty"`
|
||||
// The result type for every entity in `entity_results`.
|
||||
EntityResultType EntityResult_ResultType `protobuf:"varint,1,opt,name=entity_result_type,json=entityResultType,enum=google.datastore.v1beta3.EntityResult_ResultType" json:"entity_result_type,omitempty"`
|
||||
EntityResultType EntityResult_ResultType `protobuf:"varint,1,opt,name=entity_result_type,json=entityResultType,proto3,enum=google.datastore.v1beta3.EntityResult_ResultType" json:"entity_result_type,omitempty"`
|
||||
// The results for this batch.
|
||||
EntityResults []*EntityResult `protobuf:"bytes,2,rep,name=entity_results,json=entityResults" json:"entity_results,omitempty"`
|
||||
EntityResults []*EntityResult `protobuf:"bytes,2,rep,name=entity_results,json=entityResults,proto3" json:"entity_results,omitempty"`
|
||||
// A cursor that points to the position after the last result in the batch.
|
||||
EndCursor []byte `protobuf:"bytes,4,opt,name=end_cursor,json=endCursor,proto3" json:"end_cursor,omitempty"`
|
||||
// The state of the query after the current batch.
|
||||
MoreResults QueryResultBatch_MoreResultsType `protobuf:"varint,5,opt,name=more_results,json=moreResults,enum=google.datastore.v1beta3.QueryResultBatch_MoreResultsType" json:"more_results,omitempty"`
|
||||
MoreResults QueryResultBatch_MoreResultsType `protobuf:"varint,5,opt,name=more_results,json=moreResults,proto3,enum=google.datastore.v1beta3.QueryResultBatch_MoreResultsType" json:"more_results,omitempty"`
|
||||
// The version number of the snapshot this batch was returned from.
|
||||
// This applies to the range of results from the query's `start_cursor` (or
|
||||
// the beginning of the query if no cursor was given) to this batch's
|
||||
@ -803,13 +1063,35 @@ type QueryResultBatch struct {
|
||||
// can have a greater snapshot version number. Each batch's snapshot version
|
||||
// is valid for all preceding batches.
|
||||
// The value will be zero for eventually consistent queries.
|
||||
SnapshotVersion int64 `protobuf:"varint,7,opt,name=snapshot_version,json=snapshotVersion" json:"snapshot_version,omitempty"`
|
||||
SnapshotVersion int64 `protobuf:"varint,7,opt,name=snapshot_version,json=snapshotVersion,proto3" json:"snapshot_version,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *QueryResultBatch) Reset() { *m = QueryResultBatch{} }
|
||||
func (m *QueryResultBatch) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryResultBatch) ProtoMessage() {}
|
||||
func (*QueryResultBatch) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{11} }
|
||||
func (m *QueryResultBatch) Reset() { *m = QueryResultBatch{} }
|
||||
func (m *QueryResultBatch) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryResultBatch) ProtoMessage() {}
|
||||
func (*QueryResultBatch) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_756a9031b51ce9dc, []int{11}
|
||||
}
|
||||
func (m *QueryResultBatch) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_QueryResultBatch.Unmarshal(m, b)
|
||||
}
|
||||
func (m *QueryResultBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_QueryResultBatch.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *QueryResultBatch) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_QueryResultBatch.Merge(dst, src)
|
||||
}
|
||||
func (m *QueryResultBatch) XXX_Size() int {
|
||||
return xxx_messageInfo_QueryResultBatch.Size(m)
|
||||
}
|
||||
func (m *QueryResultBatch) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_QueryResultBatch.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_QueryResultBatch proto.InternalMessageInfo
|
||||
|
||||
func (m *QueryResultBatch) GetSkippedResults() int32 {
|
||||
if m != nil {
|
||||
@ -871,6 +1153,7 @@ func init() {
|
||||
proto.RegisterType((*CompositeFilter)(nil), "google.datastore.v1beta3.CompositeFilter")
|
||||
proto.RegisterType((*PropertyFilter)(nil), "google.datastore.v1beta3.PropertyFilter")
|
||||
proto.RegisterType((*GqlQuery)(nil), "google.datastore.v1beta3.GqlQuery")
|
||||
proto.RegisterMapType((map[string]*GqlQueryParameter)(nil), "google.datastore.v1beta3.GqlQuery.NamedBindingsEntry")
|
||||
proto.RegisterType((*GqlQueryParameter)(nil), "google.datastore.v1beta3.GqlQueryParameter")
|
||||
proto.RegisterType((*QueryResultBatch)(nil), "google.datastore.v1beta3.QueryResultBatch")
|
||||
proto.RegisterEnum("google.datastore.v1beta3.EntityResult_ResultType", EntityResult_ResultType_name, EntityResult_ResultType_value)
|
||||
@ -880,9 +1163,11 @@ func init() {
|
||||
proto.RegisterEnum("google.datastore.v1beta3.QueryResultBatch_MoreResultsType", QueryResultBatch_MoreResultsType_name, QueryResultBatch_MoreResultsType_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/datastore/v1beta3/query.proto", fileDescriptor2) }
|
||||
func init() {
|
||||
proto.RegisterFile("google/datastore/v1beta3/query.proto", fileDescriptor_query_756a9031b51ce9dc)
|
||||
}
|
||||
|
||||
var fileDescriptor2 = []byte{
|
||||
var fileDescriptor_query_756a9031b51ce9dc = []byte{
|
||||
// 1323 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcb, 0x6e, 0xdb, 0x46,
|
||||
0x14, 0x35, 0xa9, 0x87, 0xa5, 0xab, 0x17, 0x33, 0x69, 0x53, 0xc6, 0x79, 0xd4, 0x21, 0x92, 0x46,
|
||||
|
Reference in New Issue
Block a user