Moved to google.golang.org/genproto/googleapis/api/annotations
Fixes #52
This commit is contained in:
1424
vendor/google.golang.org/genproto/googleapis/datastore/v1/datastore.pb.go
generated
vendored
Normal file
1424
vendor/google.golang.org/genproto/googleapis/datastore/v1/datastore.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
763
vendor/google.golang.org/genproto/googleapis/datastore/v1/entity.pb.go
generated
vendored
Normal file
763
vendor/google.golang.org/genproto/googleapis/datastore/v1/entity.pb.go
generated
vendored
Normal file
@@ -0,0 +1,763 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: google/datastore/v1/entity.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
package datastore
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// A partition ID identifies a grouping of entities. The grouping is always
|
||||
// by project and namespace, however the namespace ID may be empty.
|
||||
//
|
||||
// A partition ID contains several dimensions:
|
||||
// project ID and namespace ID.
|
||||
//
|
||||
// Partition dimensions:
|
||||
//
|
||||
// - May be `""`.
|
||||
// - Must be valid UTF-8 bytes.
|
||||
// - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}`
|
||||
// If the value of any dimension matches regex `__.*__`, the partition is
|
||||
// reserved/read-only.
|
||||
// A reserved/read-only partition ID is forbidden in certain documented
|
||||
// contexts.
|
||||
//
|
||||
// Foreign partition IDs (in which the project ID does
|
||||
// not match the context project ID ) are discouraged.
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetProjectId() string {
|
||||
if m != nil {
|
||||
return m.ProjectId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PartitionId) GetNamespaceId() string {
|
||||
if m != nil {
|
||||
return m.NamespaceId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// A unique identifier for an entity.
|
||||
// If a key's partition ID or any of its path kinds or names are
|
||||
// reserved/read-only, the key is reserved/read-only.
|
||||
// A reserved/read-only key is forbidden in certain documented contexts.
|
||||
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"`
|
||||
// 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
|
||||
// element identifies a _root entity_, the second element identifies
|
||||
// a _child_ of the root entity, the third element identifies a child of the
|
||||
// second entity, and so forth. The entities identified by all prefixes of
|
||||
// the path are called the element's _ancestors_.
|
||||
//
|
||||
// An entity path is always fully complete: *all* of the entity's ancestors
|
||||
// are required to be in the path along with the entity identifier itself.
|
||||
// The only exception is that in some documented cases, the identifier in the
|
||||
// last path element (for the entity) itself may be omitted. For example,
|
||||
// the last path element of the key of `Mutation.insert` may have no
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetPartitionId() *PartitionId {
|
||||
if m != nil {
|
||||
return m.PartitionId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Key) GetPath() []*Key_PathElement {
|
||||
if m != nil {
|
||||
return m.Path
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A (kind, ID/name) pair used to construct a key path.
|
||||
//
|
||||
// If either name or ID is set, the element is complete.
|
||||
// If neither is set, the element is incomplete.
|
||||
type Key_PathElement struct {
|
||||
// The kind of the entity.
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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} }
|
||||
|
||||
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"`
|
||||
}
|
||||
|
||||
func (*Key_PathElement_Id) isKey_PathElement_IdType() {}
|
||||
func (*Key_PathElement_Name) isKey_PathElement_IdType() {}
|
||||
|
||||
func (m *Key_PathElement) GetIdType() isKey_PathElement_IdType {
|
||||
if m != nil {
|
||||
return m.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
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Key_PathElement) GetName() string {
|
||||
if x, ok := m.GetIdType().(*Key_PathElement_Name); ok {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*Key_PathElement) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _Key_PathElement_OneofMarshaler, _Key_PathElement_OneofUnmarshaler, _Key_PathElement_OneofSizer, []interface{}{
|
||||
(*Key_PathElement_Id)(nil),
|
||||
(*Key_PathElement_Name)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _Key_PathElement_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*Key_PathElement)
|
||||
// id_type
|
||||
switch x := m.IdType.(type) {
|
||||
case *Key_PathElement_Id:
|
||||
b.EncodeVarint(2<<3 | proto.WireVarint)
|
||||
b.EncodeVarint(uint64(x.Id))
|
||||
case *Key_PathElement_Name:
|
||||
b.EncodeVarint(3<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.Name)
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("Key_PathElement.IdType has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _Key_PathElement_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*Key_PathElement)
|
||||
switch tag {
|
||||
case 2: // id_type.id
|
||||
if wire != proto.WireVarint {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeVarint()
|
||||
m.IdType = &Key_PathElement_Id{int64(x)}
|
||||
return true, err
|
||||
case 3: // id_type.name
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.IdType = &Key_PathElement_Name{x}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _Key_PathElement_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*Key_PathElement)
|
||||
// id_type
|
||||
switch x := m.IdType.(type) {
|
||||
case *Key_PathElement_Id:
|
||||
n += proto.SizeVarint(2<<3 | proto.WireVarint)
|
||||
n += proto.SizeVarint(uint64(x.Id))
|
||||
case *Key_PathElement_Name:
|
||||
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(len(x.Name)))
|
||||
n += len(x.Name)
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// An array value.
|
||||
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"`
|
||||
}
|
||||
|
||||
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) GetValues() []*Value {
|
||||
if m != nil {
|
||||
return m.Values
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A message that can hold any of the supported value types and associated
|
||||
// metadata.
|
||||
type Value struct {
|
||||
// Must have a value set.
|
||||
//
|
||||
// Types that are valid to be assigned to ValueType:
|
||||
// *Value_NullValue
|
||||
// *Value_BooleanValue
|
||||
// *Value_IntegerValue
|
||||
// *Value_DoubleValue
|
||||
// *Value_TimestampValue
|
||||
// *Value_KeyValue
|
||||
// *Value_StringValue
|
||||
// *Value_BlobValue
|
||||
// *Value_GeoPointValue
|
||||
// *Value_EntityValue
|
||||
// *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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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} }
|
||||
|
||||
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"`
|
||||
}
|
||||
type Value_BooleanValue struct {
|
||||
BooleanValue bool `protobuf:"varint,1,opt,name=boolean_value,json=booleanValue,oneof"`
|
||||
}
|
||||
type Value_IntegerValue struct {
|
||||
IntegerValue int64 `protobuf:"varint,2,opt,name=integer_value,json=integerValue,oneof"`
|
||||
}
|
||||
type Value_DoubleValue struct {
|
||||
DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,oneof"`
|
||||
}
|
||||
type Value_TimestampValue struct {
|
||||
TimestampValue *google_protobuf2.Timestamp `protobuf:"bytes,10,opt,name=timestamp_value,json=timestampValue,oneof"`
|
||||
}
|
||||
type Value_KeyValue struct {
|
||||
KeyValue *Key `protobuf:"bytes,5,opt,name=key_value,json=keyValue,oneof"`
|
||||
}
|
||||
type Value_StringValue struct {
|
||||
StringValue string `protobuf:"bytes,17,opt,name=string_value,json=stringValue,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"`
|
||||
}
|
||||
|
||||
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 (m *Value) GetValueType() isValue_ValueType {
|
||||
if m != nil {
|
||||
return m.ValueType
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Value) GetNullValue() google_protobuf1.NullValue {
|
||||
if x, ok := m.GetValueType().(*Value_NullValue); ok {
|
||||
return x.NullValue
|
||||
}
|
||||
return google_protobuf1.NullValue_NULL_VALUE
|
||||
}
|
||||
|
||||
func (m *Value) GetBooleanValue() bool {
|
||||
if x, ok := m.GetValueType().(*Value_BooleanValue); ok {
|
||||
return x.BooleanValue
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *Value) GetIntegerValue() int64 {
|
||||
if x, ok := m.GetValueType().(*Value_IntegerValue); ok {
|
||||
return x.IntegerValue
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Value) GetDoubleValue() float64 {
|
||||
if x, ok := m.GetValueType().(*Value_DoubleValue); ok {
|
||||
return x.DoubleValue
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Value) GetTimestampValue() *google_protobuf2.Timestamp {
|
||||
if x, ok := m.GetValueType().(*Value_TimestampValue); ok {
|
||||
return x.TimestampValue
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Value) GetKeyValue() *Key {
|
||||
if x, ok := m.GetValueType().(*Value_KeyValue); ok {
|
||||
return x.KeyValue
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Value) GetStringValue() string {
|
||||
if x, ok := m.GetValueType().(*Value_StringValue); ok {
|
||||
return x.StringValue
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Value) GetBlobValue() []byte {
|
||||
if x, ok := m.GetValueType().(*Value_BlobValue); ok {
|
||||
return x.BlobValue
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Value) GetGeoPointValue() *google_type.LatLng {
|
||||
if x, ok := m.GetValueType().(*Value_GeoPointValue); ok {
|
||||
return x.GeoPointValue
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Value) GetEntityValue() *Entity {
|
||||
if x, ok := m.GetValueType().(*Value_EntityValue); ok {
|
||||
return x.EntityValue
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Value) GetArrayValue() *ArrayValue {
|
||||
if x, ok := m.GetValueType().(*Value_ArrayValue); ok {
|
||||
return x.ArrayValue
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Value) GetMeaning() int32 {
|
||||
if m != nil {
|
||||
return m.Meaning
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Value) GetExcludeFromIndexes() bool {
|
||||
if m != nil {
|
||||
return m.ExcludeFromIndexes
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*Value) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _Value_OneofMarshaler, _Value_OneofUnmarshaler, _Value_OneofSizer, []interface{}{
|
||||
(*Value_NullValue)(nil),
|
||||
(*Value_BooleanValue)(nil),
|
||||
(*Value_IntegerValue)(nil),
|
||||
(*Value_DoubleValue)(nil),
|
||||
(*Value_TimestampValue)(nil),
|
||||
(*Value_KeyValue)(nil),
|
||||
(*Value_StringValue)(nil),
|
||||
(*Value_BlobValue)(nil),
|
||||
(*Value_GeoPointValue)(nil),
|
||||
(*Value_EntityValue)(nil),
|
||||
(*Value_ArrayValue)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _Value_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*Value)
|
||||
// value_type
|
||||
switch x := m.ValueType.(type) {
|
||||
case *Value_NullValue:
|
||||
b.EncodeVarint(11<<3 | proto.WireVarint)
|
||||
b.EncodeVarint(uint64(x.NullValue))
|
||||
case *Value_BooleanValue:
|
||||
t := uint64(0)
|
||||
if x.BooleanValue {
|
||||
t = 1
|
||||
}
|
||||
b.EncodeVarint(1<<3 | proto.WireVarint)
|
||||
b.EncodeVarint(t)
|
||||
case *Value_IntegerValue:
|
||||
b.EncodeVarint(2<<3 | proto.WireVarint)
|
||||
b.EncodeVarint(uint64(x.IntegerValue))
|
||||
case *Value_DoubleValue:
|
||||
b.EncodeVarint(3<<3 | proto.WireFixed64)
|
||||
b.EncodeFixed64(math.Float64bits(x.DoubleValue))
|
||||
case *Value_TimestampValue:
|
||||
b.EncodeVarint(10<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.TimestampValue); err != nil {
|
||||
return err
|
||||
}
|
||||
case *Value_KeyValue:
|
||||
b.EncodeVarint(5<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.KeyValue); err != nil {
|
||||
return err
|
||||
}
|
||||
case *Value_StringValue:
|
||||
b.EncodeVarint(17<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.StringValue)
|
||||
case *Value_BlobValue:
|
||||
b.EncodeVarint(18<<3 | proto.WireBytes)
|
||||
b.EncodeRawBytes(x.BlobValue)
|
||||
case *Value_GeoPointValue:
|
||||
b.EncodeVarint(8<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.GeoPointValue); err != nil {
|
||||
return err
|
||||
}
|
||||
case *Value_EntityValue:
|
||||
b.EncodeVarint(6<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.EntityValue); err != nil {
|
||||
return err
|
||||
}
|
||||
case *Value_ArrayValue:
|
||||
b.EncodeVarint(9<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.ArrayValue); err != nil {
|
||||
return err
|
||||
}
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("Value.ValueType has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _Value_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*Value)
|
||||
switch tag {
|
||||
case 11: // value_type.null_value
|
||||
if wire != proto.WireVarint {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeVarint()
|
||||
m.ValueType = &Value_NullValue{google_protobuf1.NullValue(x)}
|
||||
return true, err
|
||||
case 1: // value_type.boolean_value
|
||||
if wire != proto.WireVarint {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeVarint()
|
||||
m.ValueType = &Value_BooleanValue{x != 0}
|
||||
return true, err
|
||||
case 2: // value_type.integer_value
|
||||
if wire != proto.WireVarint {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeVarint()
|
||||
m.ValueType = &Value_IntegerValue{int64(x)}
|
||||
return true, err
|
||||
case 3: // value_type.double_value
|
||||
if wire != proto.WireFixed64 {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeFixed64()
|
||||
m.ValueType = &Value_DoubleValue{math.Float64frombits(x)}
|
||||
return true, err
|
||||
case 10: // value_type.timestamp_value
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(google_protobuf2.Timestamp)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.ValueType = &Value_TimestampValue{msg}
|
||||
return true, err
|
||||
case 5: // value_type.key_value
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(Key)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.ValueType = &Value_KeyValue{msg}
|
||||
return true, err
|
||||
case 17: // value_type.string_value
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.ValueType = &Value_StringValue{x}
|
||||
return true, err
|
||||
case 18: // value_type.blob_value
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeRawBytes(true)
|
||||
m.ValueType = &Value_BlobValue{x}
|
||||
return true, err
|
||||
case 8: // value_type.geo_point_value
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(google_type.LatLng)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.ValueType = &Value_GeoPointValue{msg}
|
||||
return true, err
|
||||
case 6: // value_type.entity_value
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(Entity)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.ValueType = &Value_EntityValue{msg}
|
||||
return true, err
|
||||
case 9: // value_type.array_value
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(ArrayValue)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.ValueType = &Value_ArrayValue{msg}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _Value_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*Value)
|
||||
// value_type
|
||||
switch x := m.ValueType.(type) {
|
||||
case *Value_NullValue:
|
||||
n += proto.SizeVarint(11<<3 | proto.WireVarint)
|
||||
n += proto.SizeVarint(uint64(x.NullValue))
|
||||
case *Value_BooleanValue:
|
||||
n += proto.SizeVarint(1<<3 | proto.WireVarint)
|
||||
n += 1
|
||||
case *Value_IntegerValue:
|
||||
n += proto.SizeVarint(2<<3 | proto.WireVarint)
|
||||
n += proto.SizeVarint(uint64(x.IntegerValue))
|
||||
case *Value_DoubleValue:
|
||||
n += proto.SizeVarint(3<<3 | proto.WireFixed64)
|
||||
n += 8
|
||||
case *Value_TimestampValue:
|
||||
s := proto.Size(x.TimestampValue)
|
||||
n += proto.SizeVarint(10<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Value_KeyValue:
|
||||
s := proto.Size(x.KeyValue)
|
||||
n += proto.SizeVarint(5<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Value_StringValue:
|
||||
n += proto.SizeVarint(17<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(len(x.StringValue)))
|
||||
n += len(x.StringValue)
|
||||
case *Value_BlobValue:
|
||||
n += proto.SizeVarint(18<<3 | proto.WireBytes)
|
||||
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 += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Value_EntityValue:
|
||||
s := proto.Size(x.EntityValue)
|
||||
n += proto.SizeVarint(6<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Value_ArrayValue:
|
||||
s := proto.Size(x.ArrayValue)
|
||||
n += proto.SizeVarint(9<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// A Datastore data object.
|
||||
//
|
||||
// An entity is limited to 1 megabyte when stored. That _roughly_
|
||||
// corresponds to a limit of 1 megabyte for the serialized form of this
|
||||
// message.
|
||||
type Entity struct {
|
||||
// The entity's key.
|
||||
//
|
||||
// An entity must have a key, unless otherwise documented (for example,
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetKey() *Key {
|
||||
if m != nil {
|
||||
return m.Key
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Entity) GetProperties() map[string]*Value {
|
||||
if m != nil {
|
||||
return m.Properties
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*PartitionId)(nil), "google.datastore.v1.PartitionId")
|
||||
proto.RegisterType((*Key)(nil), "google.datastore.v1.Key")
|
||||
proto.RegisterType((*Key_PathElement)(nil), "google.datastore.v1.Key.PathElement")
|
||||
proto.RegisterType((*ArrayValue)(nil), "google.datastore.v1.ArrayValue")
|
||||
proto.RegisterType((*Value)(nil), "google.datastore.v1.Value")
|
||||
proto.RegisterType((*Entity)(nil), "google.datastore.v1.Entity")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/datastore/v1/entity.proto", fileDescriptor1) }
|
||||
|
||||
var fileDescriptor1 = []byte{
|
||||
// 767 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0xdf, 0x8e, 0xdb, 0x44,
|
||||
0x14, 0xc6, 0xed, 0x64, 0xb3, 0x5d, 0x1f, 0xbb, 0xbb, 0x65, 0xb6, 0x12, 0x26, 0x80, 0xd6, 0x04,
|
||||
0x90, 0x22, 0x90, 0xec, 0xee, 0x72, 0x41, 0x45, 0x41, 0x2a, 0x29, 0x01, 0x47, 0x5b, 0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0x56, 0x88, 0x36, 0x8b, 0x7f, 0xe8, 0x5f, 0xf4, 0xf2, 0x72, 0x7d, 0xac, 0x8b, 0x7c,
|
||||
0xf5, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x89, 0x5b, 0xc5, 0xcd, 0x29, 0x06, 0x00, 0x00,
|
||||
}
|
970
vendor/google.golang.org/genproto/googleapis/datastore/v1/query.pb.go
generated
vendored
Normal file
970
vendor/google.golang.org/genproto/googleapis/datastore/v1/query.pb.go
generated
vendored
Normal file
@@ -0,0 +1,970 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: google/datastore/v1/query.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
package datastore
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// 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
|
||||
// (for example, in message `QueryResultBatch`, field `entity_result_type`
|
||||
// specifies a `ResultType` for all the values in field `entity_results`).
|
||||
type EntityResult_ResultType int32
|
||||
|
||||
const (
|
||||
// Unspecified. This value is never used.
|
||||
EntityResult_RESULT_TYPE_UNSPECIFIED EntityResult_ResultType = 0
|
||||
// The key and properties.
|
||||
EntityResult_FULL EntityResult_ResultType = 1
|
||||
// A projected subset of properties. The entity may have no key.
|
||||
EntityResult_PROJECTION EntityResult_ResultType = 2
|
||||
// Only the key.
|
||||
EntityResult_KEY_ONLY EntityResult_ResultType = 3
|
||||
)
|
||||
|
||||
var EntityResult_ResultType_name = map[int32]string{
|
||||
0: "RESULT_TYPE_UNSPECIFIED",
|
||||
1: "FULL",
|
||||
2: "PROJECTION",
|
||||
3: "KEY_ONLY",
|
||||
}
|
||||
var EntityResult_ResultType_value = map[string]int32{
|
||||
"RESULT_TYPE_UNSPECIFIED": 0,
|
||||
"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} }
|
||||
|
||||
// The sort direction.
|
||||
type PropertyOrder_Direction int32
|
||||
|
||||
const (
|
||||
// Unspecified. This value must not be used.
|
||||
PropertyOrder_DIRECTION_UNSPECIFIED PropertyOrder_Direction = 0
|
||||
// Ascending.
|
||||
PropertyOrder_ASCENDING PropertyOrder_Direction = 1
|
||||
// Descending.
|
||||
PropertyOrder_DESCENDING PropertyOrder_Direction = 2
|
||||
)
|
||||
|
||||
var PropertyOrder_Direction_name = map[int32]string{
|
||||
0: "DIRECTION_UNSPECIFIED",
|
||||
1: "ASCENDING",
|
||||
2: "DESCENDING",
|
||||
}
|
||||
var PropertyOrder_Direction_value = map[string]int32{
|
||||
"DIRECTION_UNSPECIFIED": 0,
|
||||
"ASCENDING": 1,
|
||||
"DESCENDING": 2,
|
||||
}
|
||||
|
||||
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} }
|
||||
|
||||
// A composite filter operator.
|
||||
type CompositeFilter_Operator int32
|
||||
|
||||
const (
|
||||
// Unspecified. This value must not be used.
|
||||
CompositeFilter_OPERATOR_UNSPECIFIED CompositeFilter_Operator = 0
|
||||
// The results are required to satisfy each of the combined filters.
|
||||
CompositeFilter_AND CompositeFilter_Operator = 1
|
||||
)
|
||||
|
||||
var CompositeFilter_Operator_name = map[int32]string{
|
||||
0: "OPERATOR_UNSPECIFIED",
|
||||
1: "AND",
|
||||
}
|
||||
var CompositeFilter_Operator_value = map[string]int32{
|
||||
"OPERATOR_UNSPECIFIED": 0,
|
||||
"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} }
|
||||
|
||||
// A property filter operator.
|
||||
type PropertyFilter_Operator int32
|
||||
|
||||
const (
|
||||
// Unspecified. This value must not be used.
|
||||
PropertyFilter_OPERATOR_UNSPECIFIED PropertyFilter_Operator = 0
|
||||
// Less than.
|
||||
PropertyFilter_LESS_THAN PropertyFilter_Operator = 1
|
||||
// Less than or equal.
|
||||
PropertyFilter_LESS_THAN_OR_EQUAL PropertyFilter_Operator = 2
|
||||
// Greater than.
|
||||
PropertyFilter_GREATER_THAN PropertyFilter_Operator = 3
|
||||
// Greater than or equal.
|
||||
PropertyFilter_GREATER_THAN_OR_EQUAL PropertyFilter_Operator = 4
|
||||
// Equal.
|
||||
PropertyFilter_EQUAL PropertyFilter_Operator = 5
|
||||
// Has ancestor.
|
||||
PropertyFilter_HAS_ANCESTOR PropertyFilter_Operator = 11
|
||||
)
|
||||
|
||||
var PropertyFilter_Operator_name = map[int32]string{
|
||||
0: "OPERATOR_UNSPECIFIED",
|
||||
1: "LESS_THAN",
|
||||
2: "LESS_THAN_OR_EQUAL",
|
||||
3: "GREATER_THAN",
|
||||
4: "GREATER_THAN_OR_EQUAL",
|
||||
5: "EQUAL",
|
||||
11: "HAS_ANCESTOR",
|
||||
}
|
||||
var PropertyFilter_Operator_value = map[string]int32{
|
||||
"OPERATOR_UNSPECIFIED": 0,
|
||||
"LESS_THAN": 1,
|
||||
"LESS_THAN_OR_EQUAL": 2,
|
||||
"GREATER_THAN": 3,
|
||||
"GREATER_THAN_OR_EQUAL": 4,
|
||||
"EQUAL": 5,
|
||||
"HAS_ANCESTOR": 11,
|
||||
}
|
||||
|
||||
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} }
|
||||
|
||||
// The possible values for the `more_results` field.
|
||||
type QueryResultBatch_MoreResultsType int32
|
||||
|
||||
const (
|
||||
// Unspecified. This value is never used.
|
||||
QueryResultBatch_MORE_RESULTS_TYPE_UNSPECIFIED QueryResultBatch_MoreResultsType = 0
|
||||
// There may be additional batches to fetch from this query.
|
||||
QueryResultBatch_NOT_FINISHED QueryResultBatch_MoreResultsType = 1
|
||||
// The query is finished, but there may be more results after the limit.
|
||||
QueryResultBatch_MORE_RESULTS_AFTER_LIMIT QueryResultBatch_MoreResultsType = 2
|
||||
// The query is finished, but there may be more results after the end
|
||||
// cursor.
|
||||
QueryResultBatch_MORE_RESULTS_AFTER_CURSOR QueryResultBatch_MoreResultsType = 4
|
||||
// The query has been exhausted.
|
||||
QueryResultBatch_NO_MORE_RESULTS QueryResultBatch_MoreResultsType = 3
|
||||
)
|
||||
|
||||
var QueryResultBatch_MoreResultsType_name = map[int32]string{
|
||||
0: "MORE_RESULTS_TYPE_UNSPECIFIED",
|
||||
1: "NOT_FINISHED",
|
||||
2: "MORE_RESULTS_AFTER_LIMIT",
|
||||
4: "MORE_RESULTS_AFTER_CURSOR",
|
||||
3: "NO_MORE_RESULTS",
|
||||
}
|
||||
var QueryResultBatch_MoreResultsType_value = map[string]int32{
|
||||
"MORE_RESULTS_TYPE_UNSPECIFIED": 0,
|
||||
"NOT_FINISHED": 1,
|
||||
"MORE_RESULTS_AFTER_LIMIT": 2,
|
||||
"MORE_RESULTS_AFTER_CURSOR": 4,
|
||||
"NO_MORE_RESULTS": 3,
|
||||
}
|
||||
|
||||
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}
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// The version of the entity, a strictly positive number that monotonically
|
||||
// increases with changes to the entity.
|
||||
//
|
||||
// This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity
|
||||
// results.
|
||||
//
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetEntity() *Entity {
|
||||
if m != nil {
|
||||
return m.Entity
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *EntityResult) GetVersion() int64 {
|
||||
if m != nil {
|
||||
return m.Version
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *EntityResult) GetCursor() []byte {
|
||||
if m != nil {
|
||||
return m.Cursor
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// 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"`
|
||||
// The filter to apply.
|
||||
Filter *Filter `protobuf:"bytes,4,opt,name=filter" 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"`
|
||||
// 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"`
|
||||
// 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).
|
||||
StartCursor []byte `protobuf:"bytes,7,opt,name=start_cursor,json=startCursor,proto3" json:"start_cursor,omitempty"`
|
||||
// An ending point for the query results. Query cursors are
|
||||
// returned in query result batches and
|
||||
// [can only be used to limit the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
|
||||
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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetProjection() []*Projection {
|
||||
if m != nil {
|
||||
return m.Projection
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Query) GetKind() []*KindExpression {
|
||||
if m != nil {
|
||||
return m.Kind
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Query) GetFilter() *Filter {
|
||||
if m != nil {
|
||||
return m.Filter
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Query) GetOrder() []*PropertyOrder {
|
||||
if m != nil {
|
||||
return m.Order
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Query) GetDistinctOn() []*PropertyReference {
|
||||
if m != nil {
|
||||
return m.DistinctOn
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Query) GetStartCursor() []byte {
|
||||
if m != nil {
|
||||
return m.StartCursor
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Query) GetEndCursor() []byte {
|
||||
if m != nil {
|
||||
return m.EndCursor
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Query) GetOffset() int32 {
|
||||
if m != nil {
|
||||
return m.Offset
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Query) GetLimit() *google_protobuf3.Int32Value {
|
||||
if m != nil {
|
||||
return m.Limit
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A representation of a kind.
|
||||
type KindExpression struct {
|
||||
// The name of the kind.
|
||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// A reference to a property relative to the kind expressions.
|
||||
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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetProperty() *PropertyReference {
|
||||
if m != nil {
|
||||
return m.Property
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetProperty() *PropertyReference {
|
||||
if m != nil {
|
||||
return m.Property
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PropertyOrder) GetDirection() PropertyOrder_Direction {
|
||||
if m != nil {
|
||||
return m.Direction
|
||||
}
|
||||
return PropertyOrder_DIRECTION_UNSPECIFIED
|
||||
}
|
||||
|
||||
// A holder for any type of filter.
|
||||
type Filter struct {
|
||||
// The type of filter.
|
||||
//
|
||||
// Types that are valid to be assigned to FilterType:
|
||||
// *Filter_CompositeFilter
|
||||
// *Filter_PropertyFilter
|
||||
FilterType isFilter_FilterType `protobuf_oneof:"filter_type"`
|
||||
}
|
||||
|
||||
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} }
|
||||
|
||||
type isFilter_FilterType interface {
|
||||
isFilter_FilterType()
|
||||
}
|
||||
|
||||
type Filter_CompositeFilter struct {
|
||||
CompositeFilter *CompositeFilter `protobuf:"bytes,1,opt,name=composite_filter,json=compositeFilter,oneof"`
|
||||
}
|
||||
type Filter_PropertyFilter struct {
|
||||
PropertyFilter *PropertyFilter `protobuf:"bytes,2,opt,name=property_filter,json=propertyFilter,oneof"`
|
||||
}
|
||||
|
||||
func (*Filter_CompositeFilter) isFilter_FilterType() {}
|
||||
func (*Filter_PropertyFilter) isFilter_FilterType() {}
|
||||
|
||||
func (m *Filter) GetFilterType() isFilter_FilterType {
|
||||
if m != nil {
|
||||
return m.FilterType
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Filter) GetCompositeFilter() *CompositeFilter {
|
||||
if x, ok := m.GetFilterType().(*Filter_CompositeFilter); ok {
|
||||
return x.CompositeFilter
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Filter) GetPropertyFilter() *PropertyFilter {
|
||||
if x, ok := m.GetFilterType().(*Filter_PropertyFilter); ok {
|
||||
return x.PropertyFilter
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*Filter) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _Filter_OneofMarshaler, _Filter_OneofUnmarshaler, _Filter_OneofSizer, []interface{}{
|
||||
(*Filter_CompositeFilter)(nil),
|
||||
(*Filter_PropertyFilter)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _Filter_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*Filter)
|
||||
// filter_type
|
||||
switch x := m.FilterType.(type) {
|
||||
case *Filter_CompositeFilter:
|
||||
b.EncodeVarint(1<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.CompositeFilter); err != nil {
|
||||
return err
|
||||
}
|
||||
case *Filter_PropertyFilter:
|
||||
b.EncodeVarint(2<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.PropertyFilter); err != nil {
|
||||
return err
|
||||
}
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("Filter.FilterType has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _Filter_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*Filter)
|
||||
switch tag {
|
||||
case 1: // filter_type.composite_filter
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(CompositeFilter)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.FilterType = &Filter_CompositeFilter{msg}
|
||||
return true, err
|
||||
case 2: // filter_type.property_filter
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(PropertyFilter)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.FilterType = &Filter_PropertyFilter{msg}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _Filter_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*Filter)
|
||||
// filter_type
|
||||
switch x := m.FilterType.(type) {
|
||||
case *Filter_CompositeFilter:
|
||||
s := proto.Size(x.CompositeFilter)
|
||||
n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Filter_PropertyFilter:
|
||||
s := proto.Size(x.PropertyFilter)
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// The list of filters to combine.
|
||||
// Must contain at least one filter.
|
||||
Filters []*Filter `protobuf:"bytes,2,rep,name=filters" json:"filters,omitempty"`
|
||||
}
|
||||
|
||||
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) GetOp() CompositeFilter_Operator {
|
||||
if m != nil {
|
||||
return m.Op
|
||||
}
|
||||
return CompositeFilter_OPERATOR_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *CompositeFilter) GetFilters() []*Filter {
|
||||
if m != nil {
|
||||
return m.Filters
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// The operator to filter by.
|
||||
Op PropertyFilter_Operator `protobuf:"varint,2,opt,name=op,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"`
|
||||
}
|
||||
|
||||
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) GetProperty() *PropertyReference {
|
||||
if m != nil {
|
||||
return m.Property
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PropertyFilter) GetOp() PropertyFilter_Operator {
|
||||
if m != nil {
|
||||
return m.Op
|
||||
}
|
||||
return PropertyFilter_OPERATOR_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *PropertyFilter) GetValue() *Value {
|
||||
if m != nil {
|
||||
return m.Value
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
||||
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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetQueryString() string {
|
||||
if m != nil {
|
||||
return m.QueryString
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *GqlQuery) GetAllowLiterals() bool {
|
||||
if m != nil {
|
||||
return m.AllowLiterals
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *GqlQuery) GetNamedBindings() map[string]*GqlQueryParameter {
|
||||
if m != nil {
|
||||
return m.NamedBindings
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GqlQuery) GetPositionalBindings() []*GqlQueryParameter {
|
||||
if m != nil {
|
||||
return m.PositionalBindings
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A binding parameter for a GQL query.
|
||||
type GqlQueryParameter struct {
|
||||
// The type of parameter.
|
||||
//
|
||||
// Types that are valid to be assigned to ParameterType:
|
||||
// *GqlQueryParameter_Value
|
||||
// *GqlQueryParameter_Cursor
|
||||
ParameterType isGqlQueryParameter_ParameterType `protobuf_oneof:"parameter_type"`
|
||||
}
|
||||
|
||||
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} }
|
||||
|
||||
type isGqlQueryParameter_ParameterType interface {
|
||||
isGqlQueryParameter_ParameterType()
|
||||
}
|
||||
|
||||
type GqlQueryParameter_Value struct {
|
||||
Value *Value `protobuf:"bytes,2,opt,name=value,oneof"`
|
||||
}
|
||||
type GqlQueryParameter_Cursor struct {
|
||||
Cursor []byte `protobuf:"bytes,3,opt,name=cursor,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*GqlQueryParameter_Value) isGqlQueryParameter_ParameterType() {}
|
||||
func (*GqlQueryParameter_Cursor) isGqlQueryParameter_ParameterType() {}
|
||||
|
||||
func (m *GqlQueryParameter) GetParameterType() isGqlQueryParameter_ParameterType {
|
||||
if m != nil {
|
||||
return m.ParameterType
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GqlQueryParameter) GetValue() *Value {
|
||||
if x, ok := m.GetParameterType().(*GqlQueryParameter_Value); ok {
|
||||
return x.Value
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GqlQueryParameter) GetCursor() []byte {
|
||||
if x, ok := m.GetParameterType().(*GqlQueryParameter_Cursor); ok {
|
||||
return x.Cursor
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*GqlQueryParameter) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _GqlQueryParameter_OneofMarshaler, _GqlQueryParameter_OneofUnmarshaler, _GqlQueryParameter_OneofSizer, []interface{}{
|
||||
(*GqlQueryParameter_Value)(nil),
|
||||
(*GqlQueryParameter_Cursor)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _GqlQueryParameter_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*GqlQueryParameter)
|
||||
// parameter_type
|
||||
switch x := m.ParameterType.(type) {
|
||||
case *GqlQueryParameter_Value:
|
||||
b.EncodeVarint(2<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.Value); err != nil {
|
||||
return err
|
||||
}
|
||||
case *GqlQueryParameter_Cursor:
|
||||
b.EncodeVarint(3<<3 | proto.WireBytes)
|
||||
b.EncodeRawBytes(x.Cursor)
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("GqlQueryParameter.ParameterType has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _GqlQueryParameter_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*GqlQueryParameter)
|
||||
switch tag {
|
||||
case 2: // parameter_type.value
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(Value)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.ParameterType = &GqlQueryParameter_Value{msg}
|
||||
return true, err
|
||||
case 3: // parameter_type.cursor
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeRawBytes(true)
|
||||
m.ParameterType = &GqlQueryParameter_Cursor{x}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _GqlQueryParameter_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*GqlQueryParameter)
|
||||
// parameter_type
|
||||
switch x := m.ParameterType.(type) {
|
||||
case *GqlQueryParameter_Value:
|
||||
s := proto.Size(x.Value)
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *GqlQueryParameter_Cursor:
|
||||
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(len(x.Cursor)))
|
||||
n += len(x.Cursor)
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// 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"`
|
||||
// The results for this batch.
|
||||
EntityResults []*EntityResult `protobuf:"bytes,2,rep,name=entity_results,json=entityResults" 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"`
|
||||
// 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
|
||||
// `end_cursor` (not the query's `end_cursor`).
|
||||
//
|
||||
// In a single transaction, subsequent query result batches for the same query
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetSkippedResults() int32 {
|
||||
if m != nil {
|
||||
return m.SkippedResults
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *QueryResultBatch) GetSkippedCursor() []byte {
|
||||
if m != nil {
|
||||
return m.SkippedCursor
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *QueryResultBatch) GetEntityResultType() EntityResult_ResultType {
|
||||
if m != nil {
|
||||
return m.EntityResultType
|
||||
}
|
||||
return EntityResult_RESULT_TYPE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *QueryResultBatch) GetEntityResults() []*EntityResult {
|
||||
if m != nil {
|
||||
return m.EntityResults
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *QueryResultBatch) GetEndCursor() []byte {
|
||||
if m != nil {
|
||||
return m.EndCursor
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *QueryResultBatch) GetMoreResults() QueryResultBatch_MoreResultsType {
|
||||
if m != nil {
|
||||
return m.MoreResults
|
||||
}
|
||||
return QueryResultBatch_MORE_RESULTS_TYPE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *QueryResultBatch) GetSnapshotVersion() int64 {
|
||||
if m != nil {
|
||||
return m.SnapshotVersion
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*EntityResult)(nil), "google.datastore.v1.EntityResult")
|
||||
proto.RegisterType((*Query)(nil), "google.datastore.v1.Query")
|
||||
proto.RegisterType((*KindExpression)(nil), "google.datastore.v1.KindExpression")
|
||||
proto.RegisterType((*PropertyReference)(nil), "google.datastore.v1.PropertyReference")
|
||||
proto.RegisterType((*Projection)(nil), "google.datastore.v1.Projection")
|
||||
proto.RegisterType((*PropertyOrder)(nil), "google.datastore.v1.PropertyOrder")
|
||||
proto.RegisterType((*Filter)(nil), "google.datastore.v1.Filter")
|
||||
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.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)
|
||||
proto.RegisterEnum("google.datastore.v1.PropertyOrder_Direction", PropertyOrder_Direction_name, PropertyOrder_Direction_value)
|
||||
proto.RegisterEnum("google.datastore.v1.CompositeFilter_Operator", CompositeFilter_Operator_name, CompositeFilter_Operator_value)
|
||||
proto.RegisterEnum("google.datastore.v1.PropertyFilter_Operator", PropertyFilter_Operator_name, PropertyFilter_Operator_value)
|
||||
proto.RegisterEnum("google.datastore.v1.QueryResultBatch_MoreResultsType", QueryResultBatch_MoreResultsType_name, QueryResultBatch_MoreResultsType_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/datastore/v1/query.proto", fileDescriptor2) }
|
||||
|
||||
var fileDescriptor2 = []byte{
|
||||
// 1301 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdd, 0x92, 0xd3, 0xc6,
|
||||
0x12, 0x5e, 0xc9, 0x3f, 0x6b, 0xb7, 0xff, 0xc4, 0x70, 0x0e, 0x88, 0x05, 0x0e, 0xbb, 0x82, 0x73,
|
||||
0xd8, 0x53, 0x05, 0x36, 0x6b, 0x8a, 0x0a, 0x95, 0x90, 0x4a, 0xf9, 0x47, 0xbb, 0x36, 0x18, 0xcb,
|
||||
0x3b, 0xf6, 0x42, 0xe0, 0x46, 0x25, 0xec, 0x59, 0xa3, 0x20, 0x4b, 0x62, 0xa4, 0x5d, 0xb2, 0x97,
|
||||
0x79, 0x88, 0x54, 0xe5, 0x19, 0xf2, 0x00, 0xb9, 0xc8, 0x03, 0x24, 0x79, 0x88, 0x5c, 0xe7, 0x3a,
|
||||
0x8f, 0x90, 0xd2, 0xcc, 0xc8, 0x7f, 0x6b, 0xcc, 0x5e, 0x70, 0xa7, 0xe9, 0xf9, 0xbe, 0xaf, 0xa7,
|
||||
0x7b, 0x7a, 0x5a, 0x0d, 0xb7, 0xc6, 0x9e, 0x37, 0x76, 0x48, 0x65, 0x64, 0x85, 0x56, 0x10, 0x7a,
|
||||
0x94, 0x54, 0x4e, 0xf7, 0x2a, 0xef, 0x4f, 0x08, 0x3d, 0x2b, 0xfb, 0xd4, 0x0b, 0x3d, 0x74, 0x99,
|
||||
0x03, 0xca, 0x53, 0x40, 0xf9, 0x74, 0x6f, 0xeb, 0x86, 0x60, 0x59, 0xbe, 0x5d, 0xb1, 0x5c, 0xd7,
|
||||
0x0b, 0xad, 0xd0, 0xf6, 0xdc, 0x80, 0x53, 0xb6, 0xb6, 0x57, 0x69, 0x12, 0x37, 0xb4, 0x43, 0x21,
|
||||
0xba, 0xf5, 0x1f, 0x81, 0x60, 0xab, 0x37, 0x27, 0xc7, 0x95, 0x0f, 0xd4, 0xf2, 0x7d, 0x42, 0x63,
|
||||
0x05, 0x55, 0xec, 0x87, 0x67, 0x3e, 0xa9, 0x38, 0x56, 0xe8, 0xb8, 0x63, 0xbe, 0xa3, 0xfd, 0x21,
|
||||
0x41, 0x5e, 0x67, 0x52, 0x98, 0x04, 0x27, 0x4e, 0x88, 0x1e, 0x42, 0x9a, 0x4b, 0xab, 0xd2, 0xb6,
|
||||
0xb4, 0x9b, 0xab, 0x5e, 0x2f, 0xaf, 0x38, 0x70, 0x59, 0x50, 0x04, 0x14, 0xa9, 0xb0, 0x79, 0x4a,
|
||||
0x68, 0x60, 0x7b, 0xae, 0x9a, 0xdc, 0x96, 0x76, 0x13, 0x38, 0x5e, 0xa2, 0x2b, 0x90, 0x1e, 0x9e,
|
||||
0xd0, 0xc0, 0xa3, 0x6a, 0x62, 0x5b, 0xda, 0xcd, 0x63, 0xb1, 0xd2, 0x0e, 0x01, 0xb8, 0xc3, 0xc1,
|
||||
0x99, 0x4f, 0xd0, 0x75, 0xb8, 0x8a, 0xf5, 0xfe, 0x51, 0x67, 0x60, 0x0e, 0x5e, 0xf5, 0x74, 0xf3,
|
||||
0xa8, 0xdb, 0xef, 0xe9, 0x8d, 0xf6, 0x7e, 0x5b, 0x6f, 0x2a, 0x1b, 0x28, 0x03, 0xc9, 0xfd, 0xa3,
|
||||
0x4e, 0x47, 0x91, 0x50, 0x11, 0xa0, 0x87, 0x8d, 0xa7, 0x7a, 0x63, 0xd0, 0x36, 0xba, 0x8a, 0x8c,
|
||||
0xf2, 0x90, 0x79, 0xa6, 0xbf, 0x32, 0x8d, 0x6e, 0xe7, 0x95, 0x92, 0xd0, 0x7e, 0x4b, 0x40, 0xea,
|
||||
0x30, 0xca, 0x34, 0xfa, 0x06, 0xc0, 0xa7, 0xde, 0x77, 0x64, 0x18, 0x65, 0x51, 0x95, 0xb7, 0x13,
|
||||
0xbb, 0xb9, 0xea, 0xad, 0x95, 0x71, 0xf4, 0xa6, 0x30, 0x3c, 0x47, 0x41, 0x5f, 0x40, 0xf2, 0x9d,
|
||||
0xed, 0x8e, 0xd4, 0x04, 0xa3, 0xde, 0x5e, 0x49, 0x7d, 0x66, 0xbb, 0x23, 0xfd, 0x7b, 0x9f, 0x92,
|
||||
0x20, 0x0a, 0x14, 0x33, 0x42, 0x94, 0xbd, 0x63, 0xdb, 0x09, 0x09, 0x65, 0x79, 0xf8, 0x58, 0xf6,
|
||||
0xf6, 0x19, 0x04, 0x0b, 0x28, 0x7a, 0x0c, 0x29, 0x8f, 0x8e, 0x08, 0x55, 0x53, 0xcc, 0x9d, 0xf6,
|
||||
0xb1, 0x93, 0xfa, 0x84, 0x86, 0x67, 0x46, 0x84, 0xc4, 0x9c, 0x80, 0x0e, 0x20, 0x37, 0xb2, 0x83,
|
||||
0xd0, 0x76, 0x87, 0xa1, 0xe9, 0xb9, 0x6a, 0x9a, 0xf1, 0xff, 0xb7, 0x96, 0x8f, 0xc9, 0x31, 0xa1,
|
||||
0xc4, 0x1d, 0x12, 0x0c, 0x31, 0xd5, 0x70, 0xd1, 0x0e, 0xe4, 0x83, 0xd0, 0xa2, 0xa1, 0x29, 0x2e,
|
||||
0x6b, 0x93, 0x5d, 0x56, 0x8e, 0xd9, 0x1a, 0xcc, 0x84, 0x6e, 0x02, 0x10, 0x77, 0x14, 0x03, 0x32,
|
||||
0x0c, 0x90, 0x25, 0xee, 0x48, 0x6c, 0x5f, 0x81, 0xb4, 0x77, 0x7c, 0x1c, 0x90, 0x50, 0x85, 0x6d,
|
||||
0x69, 0x37, 0x85, 0xc5, 0x0a, 0xed, 0x41, 0xca, 0xb1, 0x27, 0x76, 0xa8, 0xe6, 0x17, 0x13, 0x12,
|
||||
0x97, 0x6a, 0xb9, 0xed, 0x86, 0x0f, 0xab, 0x2f, 0x2c, 0xe7, 0x84, 0x60, 0x8e, 0xd4, 0xee, 0x40,
|
||||
0x71, 0x31, 0xb9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, 0x7a, 0xff, 0x22, 0xe7, 0x2e, 0x1b, 0x3e, 0xa1, 0x56, 0xe8, 0x51, 0x2c, 0x7b, 0x3e, 0x7a,
|
||||
0x04, 0x9b, 0xdc, 0x43, 0x20, 0xba, 0xca, 0xda, 0xf7, 0x1d, 0x63, 0xb5, 0xfb, 0x90, 0x89, 0x65,
|
||||
0x90, 0x0a, 0xff, 0x32, 0x7a, 0x3a, 0xae, 0x0d, 0x0c, 0xbc, 0x74, 0x17, 0x9b, 0x90, 0xa8, 0x75,
|
||||
0x9b, 0x8a, 0xa4, 0xfd, 0x29, 0x43, 0x71, 0x31, 0xd8, 0xcf, 0x52, 0x5f, 0x4f, 0x58, 0xec, 0x17,
|
||||
0x29, 0xac, 0x55, 0xa1, 0x3f, 0x80, 0xd4, 0x69, 0xf4, 0x48, 0x59, 0x1f, 0xcf, 0x55, 0xb7, 0x56,
|
||||
0x0a, 0x88, 0x67, 0xcc, 0x80, 0xda, 0x8f, 0xd2, 0x85, 0xc2, 0x2e, 0x40, 0xb6, 0xa3, 0xf7, 0xfb,
|
||||
0xe6, 0xa0, 0x55, 0xeb, 0x2a, 0x12, 0xba, 0x02, 0x68, 0xba, 0x34, 0x0d, 0x6c, 0xea, 0x87, 0x47,
|
||||
0xb5, 0x8e, 0x22, 0x23, 0x05, 0xf2, 0x07, 0x58, 0xaf, 0x0d, 0x74, 0xcc, 0x91, 0x89, 0xa8, 0xac,
|
||||
0xe7, 0x2d, 0x33, 0x70, 0x12, 0x65, 0x21, 0xc5, 0x3f, 0x53, 0x11, 0xaf, 0x55, 0xeb, 0x9b, 0xb5,
|
||||
0x6e, 0x43, 0xef, 0x0f, 0x0c, 0xac, 0xe4, 0xb4, 0xbf, 0x65, 0xc8, 0x1c, 0xbc, 0x77, 0xf8, 0xaf,
|
||||
0x62, 0x07, 0xf2, 0xec, 0xef, 0x6c, 0x06, 0x21, 0xb5, 0xdd, 0xb1, 0xe8, 0x30, 0x39, 0x66, 0xeb,
|
||||
0x33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0x94, 0xba,
|
||||
0x86, 0x39, 0x8f, 0x50, 0x12, 0xf5, 0x1f, 0x24, 0xb8, 0x3a, 0xf4, 0x26, 0xab, 0xf2, 0x51, 0x07,
|
||||
0x5e, 0xd5, 0xd1, 0x34, 0xd3, 0x93, 0x5e, 0x3f, 0x11, 0x90, 0xb1, 0xe7, 0x58, 0xee, 0xb8, 0xec,
|
||||
0xd1, 0x71, 0x65, 0x4c, 0x5c, 0x36, 0xeb, 0x54, 0xf8, 0x96, 0xe5, 0xdb, 0xc1, 0xc2, 0x24, 0xff,
|
||||
0xd5, 0x74, 0xf1, 0xb3, 0x7c, 0xed, 0x80, 0xd3, 0x1b, 0x8e, 0x77, 0x32, 0x2a, 0x37, 0xa7, 0x7e,
|
||||
0x5e, 0xec, 0xbd, 0x49, 0x33, 0x91, 0x87, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0xfe, 0x2f, 0x61,
|
||||
0x5a, 0x61, 0x0c, 0x00, 0x00,
|
||||
}
|
1425
vendor/google.golang.org/genproto/googleapis/datastore/v1beta3/datastore.pb.go
generated
vendored
Normal file
1425
vendor/google.golang.org/genproto/googleapis/datastore/v1beta3/datastore.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
764
vendor/google.golang.org/genproto/googleapis/datastore/v1beta3/entity.pb.go
generated
vendored
Normal file
764
vendor/google.golang.org/genproto/googleapis/datastore/v1beta3/entity.pb.go
generated
vendored
Normal file
@@ -0,0 +1,764 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: google/datastore/v1beta3/entity.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
package datastore
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// A partition ID identifies a grouping of entities. The grouping is always
|
||||
// by project and namespace, however the namespace ID may be empty.
|
||||
//
|
||||
// A partition ID contains several dimensions:
|
||||
// project ID and namespace ID.
|
||||
//
|
||||
// Partition dimensions:
|
||||
//
|
||||
// - May be `""`.
|
||||
// - Must be valid UTF-8 bytes.
|
||||
// - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}`
|
||||
// If the value of any dimension matches regex `__.*__`, the partition is
|
||||
// reserved/read-only.
|
||||
// A reserved/read-only partition ID is forbidden in certain documented
|
||||
// contexts.
|
||||
//
|
||||
// Foreign partition IDs (in which the project ID does
|
||||
// not match the context project ID ) are discouraged.
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetProjectId() string {
|
||||
if m != nil {
|
||||
return m.ProjectId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PartitionId) GetNamespaceId() string {
|
||||
if m != nil {
|
||||
return m.NamespaceId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// A unique identifier for an entity.
|
||||
// If a key's partition ID or any of its path kinds or names are
|
||||
// reserved/read-only, the key is reserved/read-only.
|
||||
// A reserved/read-only key is forbidden in certain documented contexts.
|
||||
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"`
|
||||
// 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
|
||||
// element identifies a _root entity_, the second element identifies
|
||||
// a _child_ of the root entity, the third element identifies a child of the
|
||||
// second entity, and so forth. The entities identified by all prefixes of
|
||||
// the path are called the element's _ancestors_.
|
||||
//
|
||||
// An entity path is always fully complete: *all* of the entity's ancestors
|
||||
// are required to be in the path along with the entity identifier itself.
|
||||
// The only exception is that in some documented cases, the identifier in the
|
||||
// last path element (for the entity) itself may be omitted. For example,
|
||||
// the last path element of the key of `Mutation.insert` may have no
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetPartitionId() *PartitionId {
|
||||
if m != nil {
|
||||
return m.PartitionId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Key) GetPath() []*Key_PathElement {
|
||||
if m != nil {
|
||||
return m.Path
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A (kind, ID/name) pair used to construct a key path.
|
||||
//
|
||||
// If either name or ID is set, the element is complete.
|
||||
// If neither is set, the element is incomplete.
|
||||
type Key_PathElement struct {
|
||||
// The kind of the entity.
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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} }
|
||||
|
||||
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"`
|
||||
}
|
||||
|
||||
func (*Key_PathElement_Id) isKey_PathElement_IdType() {}
|
||||
func (*Key_PathElement_Name) isKey_PathElement_IdType() {}
|
||||
|
||||
func (m *Key_PathElement) GetIdType() isKey_PathElement_IdType {
|
||||
if m != nil {
|
||||
return m.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
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Key_PathElement) GetName() string {
|
||||
if x, ok := m.GetIdType().(*Key_PathElement_Name); ok {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*Key_PathElement) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _Key_PathElement_OneofMarshaler, _Key_PathElement_OneofUnmarshaler, _Key_PathElement_OneofSizer, []interface{}{
|
||||
(*Key_PathElement_Id)(nil),
|
||||
(*Key_PathElement_Name)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _Key_PathElement_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*Key_PathElement)
|
||||
// id_type
|
||||
switch x := m.IdType.(type) {
|
||||
case *Key_PathElement_Id:
|
||||
b.EncodeVarint(2<<3 | proto.WireVarint)
|
||||
b.EncodeVarint(uint64(x.Id))
|
||||
case *Key_PathElement_Name:
|
||||
b.EncodeVarint(3<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.Name)
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("Key_PathElement.IdType has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _Key_PathElement_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*Key_PathElement)
|
||||
switch tag {
|
||||
case 2: // id_type.id
|
||||
if wire != proto.WireVarint {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeVarint()
|
||||
m.IdType = &Key_PathElement_Id{int64(x)}
|
||||
return true, err
|
||||
case 3: // id_type.name
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.IdType = &Key_PathElement_Name{x}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _Key_PathElement_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*Key_PathElement)
|
||||
// id_type
|
||||
switch x := m.IdType.(type) {
|
||||
case *Key_PathElement_Id:
|
||||
n += proto.SizeVarint(2<<3 | proto.WireVarint)
|
||||
n += proto.SizeVarint(uint64(x.Id))
|
||||
case *Key_PathElement_Name:
|
||||
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(len(x.Name)))
|
||||
n += len(x.Name)
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// An array value.
|
||||
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"`
|
||||
}
|
||||
|
||||
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) GetValues() []*Value {
|
||||
if m != nil {
|
||||
return m.Values
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A message that can hold any of the supported value types and associated
|
||||
// metadata.
|
||||
type Value struct {
|
||||
// Must have a value set.
|
||||
//
|
||||
// Types that are valid to be assigned to ValueType:
|
||||
// *Value_NullValue
|
||||
// *Value_BooleanValue
|
||||
// *Value_IntegerValue
|
||||
// *Value_DoubleValue
|
||||
// *Value_TimestampValue
|
||||
// *Value_KeyValue
|
||||
// *Value_StringValue
|
||||
// *Value_BlobValue
|
||||
// *Value_GeoPointValue
|
||||
// *Value_EntityValue
|
||||
// *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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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} }
|
||||
|
||||
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"`
|
||||
}
|
||||
type Value_BooleanValue struct {
|
||||
BooleanValue bool `protobuf:"varint,1,opt,name=boolean_value,json=booleanValue,oneof"`
|
||||
}
|
||||
type Value_IntegerValue struct {
|
||||
IntegerValue int64 `protobuf:"varint,2,opt,name=integer_value,json=integerValue,oneof"`
|
||||
}
|
||||
type Value_DoubleValue struct {
|
||||
DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,oneof"`
|
||||
}
|
||||
type Value_TimestampValue struct {
|
||||
TimestampValue *google_protobuf2.Timestamp `protobuf:"bytes,10,opt,name=timestamp_value,json=timestampValue,oneof"`
|
||||
}
|
||||
type Value_KeyValue struct {
|
||||
KeyValue *Key `protobuf:"bytes,5,opt,name=key_value,json=keyValue,oneof"`
|
||||
}
|
||||
type Value_StringValue struct {
|
||||
StringValue string `protobuf:"bytes,17,opt,name=string_value,json=stringValue,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"`
|
||||
}
|
||||
|
||||
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 (m *Value) GetValueType() isValue_ValueType {
|
||||
if m != nil {
|
||||
return m.ValueType
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Value) GetNullValue() google_protobuf1.NullValue {
|
||||
if x, ok := m.GetValueType().(*Value_NullValue); ok {
|
||||
return x.NullValue
|
||||
}
|
||||
return google_protobuf1.NullValue_NULL_VALUE
|
||||
}
|
||||
|
||||
func (m *Value) GetBooleanValue() bool {
|
||||
if x, ok := m.GetValueType().(*Value_BooleanValue); ok {
|
||||
return x.BooleanValue
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *Value) GetIntegerValue() int64 {
|
||||
if x, ok := m.GetValueType().(*Value_IntegerValue); ok {
|
||||
return x.IntegerValue
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Value) GetDoubleValue() float64 {
|
||||
if x, ok := m.GetValueType().(*Value_DoubleValue); ok {
|
||||
return x.DoubleValue
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Value) GetTimestampValue() *google_protobuf2.Timestamp {
|
||||
if x, ok := m.GetValueType().(*Value_TimestampValue); ok {
|
||||
return x.TimestampValue
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Value) GetKeyValue() *Key {
|
||||
if x, ok := m.GetValueType().(*Value_KeyValue); ok {
|
||||
return x.KeyValue
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Value) GetStringValue() string {
|
||||
if x, ok := m.GetValueType().(*Value_StringValue); ok {
|
||||
return x.StringValue
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Value) GetBlobValue() []byte {
|
||||
if x, ok := m.GetValueType().(*Value_BlobValue); ok {
|
||||
return x.BlobValue
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Value) GetGeoPointValue() *google_type.LatLng {
|
||||
if x, ok := m.GetValueType().(*Value_GeoPointValue); ok {
|
||||
return x.GeoPointValue
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Value) GetEntityValue() *Entity {
|
||||
if x, ok := m.GetValueType().(*Value_EntityValue); ok {
|
||||
return x.EntityValue
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Value) GetArrayValue() *ArrayValue {
|
||||
if x, ok := m.GetValueType().(*Value_ArrayValue); ok {
|
||||
return x.ArrayValue
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Value) GetMeaning() int32 {
|
||||
if m != nil {
|
||||
return m.Meaning
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Value) GetExcludeFromIndexes() bool {
|
||||
if m != nil {
|
||||
return m.ExcludeFromIndexes
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*Value) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _Value_OneofMarshaler, _Value_OneofUnmarshaler, _Value_OneofSizer, []interface{}{
|
||||
(*Value_NullValue)(nil),
|
||||
(*Value_BooleanValue)(nil),
|
||||
(*Value_IntegerValue)(nil),
|
||||
(*Value_DoubleValue)(nil),
|
||||
(*Value_TimestampValue)(nil),
|
||||
(*Value_KeyValue)(nil),
|
||||
(*Value_StringValue)(nil),
|
||||
(*Value_BlobValue)(nil),
|
||||
(*Value_GeoPointValue)(nil),
|
||||
(*Value_EntityValue)(nil),
|
||||
(*Value_ArrayValue)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _Value_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*Value)
|
||||
// value_type
|
||||
switch x := m.ValueType.(type) {
|
||||
case *Value_NullValue:
|
||||
b.EncodeVarint(11<<3 | proto.WireVarint)
|
||||
b.EncodeVarint(uint64(x.NullValue))
|
||||
case *Value_BooleanValue:
|
||||
t := uint64(0)
|
||||
if x.BooleanValue {
|
||||
t = 1
|
||||
}
|
||||
b.EncodeVarint(1<<3 | proto.WireVarint)
|
||||
b.EncodeVarint(t)
|
||||
case *Value_IntegerValue:
|
||||
b.EncodeVarint(2<<3 | proto.WireVarint)
|
||||
b.EncodeVarint(uint64(x.IntegerValue))
|
||||
case *Value_DoubleValue:
|
||||
b.EncodeVarint(3<<3 | proto.WireFixed64)
|
||||
b.EncodeFixed64(math.Float64bits(x.DoubleValue))
|
||||
case *Value_TimestampValue:
|
||||
b.EncodeVarint(10<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.TimestampValue); err != nil {
|
||||
return err
|
||||
}
|
||||
case *Value_KeyValue:
|
||||
b.EncodeVarint(5<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.KeyValue); err != nil {
|
||||
return err
|
||||
}
|
||||
case *Value_StringValue:
|
||||
b.EncodeVarint(17<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.StringValue)
|
||||
case *Value_BlobValue:
|
||||
b.EncodeVarint(18<<3 | proto.WireBytes)
|
||||
b.EncodeRawBytes(x.BlobValue)
|
||||
case *Value_GeoPointValue:
|
||||
b.EncodeVarint(8<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.GeoPointValue); err != nil {
|
||||
return err
|
||||
}
|
||||
case *Value_EntityValue:
|
||||
b.EncodeVarint(6<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.EntityValue); err != nil {
|
||||
return err
|
||||
}
|
||||
case *Value_ArrayValue:
|
||||
b.EncodeVarint(9<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.ArrayValue); err != nil {
|
||||
return err
|
||||
}
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("Value.ValueType has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _Value_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*Value)
|
||||
switch tag {
|
||||
case 11: // value_type.null_value
|
||||
if wire != proto.WireVarint {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeVarint()
|
||||
m.ValueType = &Value_NullValue{google_protobuf1.NullValue(x)}
|
||||
return true, err
|
||||
case 1: // value_type.boolean_value
|
||||
if wire != proto.WireVarint {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeVarint()
|
||||
m.ValueType = &Value_BooleanValue{x != 0}
|
||||
return true, err
|
||||
case 2: // value_type.integer_value
|
||||
if wire != proto.WireVarint {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeVarint()
|
||||
m.ValueType = &Value_IntegerValue{int64(x)}
|
||||
return true, err
|
||||
case 3: // value_type.double_value
|
||||
if wire != proto.WireFixed64 {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeFixed64()
|
||||
m.ValueType = &Value_DoubleValue{math.Float64frombits(x)}
|
||||
return true, err
|
||||
case 10: // value_type.timestamp_value
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(google_protobuf2.Timestamp)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.ValueType = &Value_TimestampValue{msg}
|
||||
return true, err
|
||||
case 5: // value_type.key_value
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(Key)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.ValueType = &Value_KeyValue{msg}
|
||||
return true, err
|
||||
case 17: // value_type.string_value
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.ValueType = &Value_StringValue{x}
|
||||
return true, err
|
||||
case 18: // value_type.blob_value
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeRawBytes(true)
|
||||
m.ValueType = &Value_BlobValue{x}
|
||||
return true, err
|
||||
case 8: // value_type.geo_point_value
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(google_type.LatLng)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.ValueType = &Value_GeoPointValue{msg}
|
||||
return true, err
|
||||
case 6: // value_type.entity_value
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(Entity)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.ValueType = &Value_EntityValue{msg}
|
||||
return true, err
|
||||
case 9: // value_type.array_value
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(ArrayValue)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.ValueType = &Value_ArrayValue{msg}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _Value_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*Value)
|
||||
// value_type
|
||||
switch x := m.ValueType.(type) {
|
||||
case *Value_NullValue:
|
||||
n += proto.SizeVarint(11<<3 | proto.WireVarint)
|
||||
n += proto.SizeVarint(uint64(x.NullValue))
|
||||
case *Value_BooleanValue:
|
||||
n += proto.SizeVarint(1<<3 | proto.WireVarint)
|
||||
n += 1
|
||||
case *Value_IntegerValue:
|
||||
n += proto.SizeVarint(2<<3 | proto.WireVarint)
|
||||
n += proto.SizeVarint(uint64(x.IntegerValue))
|
||||
case *Value_DoubleValue:
|
||||
n += proto.SizeVarint(3<<3 | proto.WireFixed64)
|
||||
n += 8
|
||||
case *Value_TimestampValue:
|
||||
s := proto.Size(x.TimestampValue)
|
||||
n += proto.SizeVarint(10<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Value_KeyValue:
|
||||
s := proto.Size(x.KeyValue)
|
||||
n += proto.SizeVarint(5<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Value_StringValue:
|
||||
n += proto.SizeVarint(17<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(len(x.StringValue)))
|
||||
n += len(x.StringValue)
|
||||
case *Value_BlobValue:
|
||||
n += proto.SizeVarint(18<<3 | proto.WireBytes)
|
||||
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 += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Value_EntityValue:
|
||||
s := proto.Size(x.EntityValue)
|
||||
n += proto.SizeVarint(6<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Value_ArrayValue:
|
||||
s := proto.Size(x.ArrayValue)
|
||||
n += proto.SizeVarint(9<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// A Datastore data object.
|
||||
//
|
||||
// An entity is limited to 1 megabyte when stored. That _roughly_
|
||||
// corresponds to a limit of 1 megabyte for the serialized form of this
|
||||
// message.
|
||||
type Entity struct {
|
||||
// The entity's key.
|
||||
//
|
||||
// An entity must have a key, unless otherwise documented (for example,
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetKey() *Key {
|
||||
if m != nil {
|
||||
return m.Key
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Entity) GetProperties() map[string]*Value {
|
||||
if m != nil {
|
||||
return m.Properties
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*PartitionId)(nil), "google.datastore.v1beta3.PartitionId")
|
||||
proto.RegisterType((*Key)(nil), "google.datastore.v1beta3.Key")
|
||||
proto.RegisterType((*Key_PathElement)(nil), "google.datastore.v1beta3.Key.PathElement")
|
||||
proto.RegisterType((*ArrayValue)(nil), "google.datastore.v1beta3.ArrayValue")
|
||||
proto.RegisterType((*Value)(nil), "google.datastore.v1beta3.Value")
|
||||
proto.RegisterType((*Entity)(nil), "google.datastore.v1beta3.Entity")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/datastore/v1beta3/entity.proto", fileDescriptor1) }
|
||||
|
||||
var fileDescriptor1 = []byte{
|
||||
// 776 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x95, 0xcf, 0x8e, 0xdb, 0x36,
|
||||
0x10, 0xc6, 0x25, 0x7b, 0xed, 0xac, 0x46, 0xca, 0x6e, 0xca, 0xe4, 0x20, 0x18, 0x49, 0xd7, 0x75,
|
||||
0xbb, 0x80, 0x7b, 0x91, 0x92, 0x0d, 0x8a, 0x16, 0x4d, 0x73, 0x88, 0x5b, 0x37, 0x32, 0x12, 0xb4,
|
||||
0x06, 0x11, 0xe4, 0xd0, 0x43, 0x0d, 0xda, 0x62, 0x14, 0xd6, 0x12, 0x29, 0x48, 0x54, 0x10, 0x3d,
|
||||
0x46, 0x5f, 0xa3, 0x7d, 0xad, 0xde, 0xfa, 0x12, 0x05, 0xff, 0x48, 0x5e, 0x24, 0xf0, 0x36, 0x37,
|
||||
0x71, 0xe6, 0x37, 0x1f, 0x3f, 0x72, 0x86, 0x36, 0x5c, 0x66, 0x42, 0x64, 0x39, 0x8d, 0x53, 0x22,
|
||||
0x49, 0x2d, 0x45, 0x45, 0xe3, 0x77, 0x8f, 0xb6, 0x54, 0x92, 0xc7, 0x31, 0xe5, 0x92, 0xc9, 0x36,
|
||||
0x2a, 0x2b, 0x21, 0x05, 0x0a, 0x0d, 0x16, 0xf5, 0x58, 0x64, 0xb1, 0xc9, 0x7d, 0x2b, 0x40, 0x4a,
|
||||
0x16, 0x13, 0xce, 0x85, 0x24, 0x92, 0x09, 0x5e, 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54, 0x38, 0x54, 0x54, 0xe2, 0x60, 0xbd, 0x5a, 0x78, 0x70, 0x8b,
|
||||
0xa5, 0x1b, 0x75, 0x89, 0xb3, 0x25, 0xc0, 0xb3, 0xaa, 0x22, 0xed, 0x6b, 0x92, 0x37, 0x14, 0x7d,
|
||||
0x0b, 0xe3, 0x77, 0xea, 0xa3, 0x0e, 0x5d, 0x6d, 0xf2, 0xe2, 0xb8, 0x49, 0x5d, 0x80, 0x2d, 0x3e,
|
||||
0xfb, 0x7b, 0x04, 0x23, 0x23, 0xf1, 0x04, 0x80, 0x37, 0x79, 0xbe, 0xd1, 0x89, 0xd0, 0x9f, 0xba,
|
||||
0xf3, 0xb3, 0xab, 0x49, 0x27, 0xd3, 0x35, 0x36, 0xfa, 0xa5, 0xc9, 0x73, 0xcd, 0x27, 0x0e, 0xf6,
|
||||
0x78, 0xb7, 0x40, 0x97, 0x70, 0x7b, 0x2b, 0x44, 0x4e, 0x09, 0xb7, 0xf5, 0xea, 0x74, 0xa7, 0x89,
|
||||
0x83, 0x03, 0x1b, 0xee, 0x31, 0xc6, 0x25, 0xcd, 0x68, 0x65, 0xb1, 0xee, 0xc8, 0x81, 0x0d, 0x1b,
|
||||
0xec, 0x4b, 0x08, 0x52, 0xd1, 0x6c, 0x73, 0x6a, 0x29, 0x75, 0x09, 0x6e, 0xe2, 0x60, 0xdf, 0x44,
|
||||
0x0d, 0xb4, 0x84, 0xf3, 0x7e, 0xca, 0x2c, 0x07, 0xba, 0xc5, 0x1f, 0x9b, 0x7e, 0xd5, 0x71, 0x89,
|
||||
0x83, 0xcf, 0xfa, 0x22, 0x23, 0xf3, 0x03, 0x78, 0x7b, 0xda, 0x5a, 0x81, 0x91, 0x16, 0x78, 0x70,
|
||||
0x63, 0x87, 0x13, 0x07, 0x9f, 0xee, 0x69, 0xdb, 0x3b, 0xad, 0x65, 0xc5, 0x78, 0x66, 0x05, 0x3e,
|
||||
0xb3, 0xed, 0xf2, 0x4d, 0xd4, 0x40, 0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 0x5f, 0xb2, 0xe4, 0xb2, 0x6a, 0xf1, 0x35, 0x8d, 0xc9, 0xef, 0x70,
|
||||
0xfe, 0x41, 0x1a, 0xdd, 0x39, 0xb8, 0xf2, 0xcc, 0xb6, 0xdf, 0xc0, 0xe8, 0x30, 0xea, 0x9f, 0xf0,
|
||||
0x30, 0x0d, 0xfd, 0xfd, 0xe0, 0x3b, 0x77, 0xf1, 0xa7, 0x0b, 0xf7, 0x77, 0xa2, 0x38, 0x5a, 0xb1,
|
||||
0xf0, 0x8d, 0xc9, 0xb5, 0x9a, 0xf3, 0xb5, 0xfb, 0xdb, 0x33, 0x0b, 0x66, 0x22, 0x27, 0x3c, 0x8b,
|
||||
0x44, 0x95, 0xc5, 0x19, 0xe5, 0xfa, 0x15, 0xc4, 0x26, 0x45, 0x4a, 0x56, 0x7f, 0xfc, 0x0f, 0xf1,
|
||||
0xa4, 0x8f, 0xfc, 0x35, 0xf8, 0xfc, 0xb9, 0xd1, 0xf8, 0x31, 0x17, 0x4d, 0x1a, 0xfd, 0xd4, 0x6f,
|
||||
0xf9, 0xfa, 0xd1, 0x42, 0xa1, 0xdb, 0xb1, 0x96, 0x7b, 0xfc, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff,
|
||||
0x7e, 0x53, 0x2d, 0x57, 0x6f, 0x06, 0x00, 0x00,
|
||||
}
|
970
vendor/google.golang.org/genproto/googleapis/datastore/v1beta3/query.pb.go
generated
vendored
Normal file
970
vendor/google.golang.org/genproto/googleapis/datastore/v1beta3/query.pb.go
generated
vendored
Normal file
@@ -0,0 +1,970 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: google/datastore/v1beta3/query.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
package datastore
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// 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
|
||||
// (for example, in message `QueryResultBatch`, field `entity_result_type`
|
||||
// specifies a `ResultType` for all the values in field `entity_results`).
|
||||
type EntityResult_ResultType int32
|
||||
|
||||
const (
|
||||
// Unspecified. This value is never used.
|
||||
EntityResult_RESULT_TYPE_UNSPECIFIED EntityResult_ResultType = 0
|
||||
// The key and properties.
|
||||
EntityResult_FULL EntityResult_ResultType = 1
|
||||
// A projected subset of properties. The entity may have no key.
|
||||
EntityResult_PROJECTION EntityResult_ResultType = 2
|
||||
// Only the key.
|
||||
EntityResult_KEY_ONLY EntityResult_ResultType = 3
|
||||
)
|
||||
|
||||
var EntityResult_ResultType_name = map[int32]string{
|
||||
0: "RESULT_TYPE_UNSPECIFIED",
|
||||
1: "FULL",
|
||||
2: "PROJECTION",
|
||||
3: "KEY_ONLY",
|
||||
}
|
||||
var EntityResult_ResultType_value = map[string]int32{
|
||||
"RESULT_TYPE_UNSPECIFIED": 0,
|
||||
"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} }
|
||||
|
||||
// The sort direction.
|
||||
type PropertyOrder_Direction int32
|
||||
|
||||
const (
|
||||
// Unspecified. This value must not be used.
|
||||
PropertyOrder_DIRECTION_UNSPECIFIED PropertyOrder_Direction = 0
|
||||
// Ascending.
|
||||
PropertyOrder_ASCENDING PropertyOrder_Direction = 1
|
||||
// Descending.
|
||||
PropertyOrder_DESCENDING PropertyOrder_Direction = 2
|
||||
)
|
||||
|
||||
var PropertyOrder_Direction_name = map[int32]string{
|
||||
0: "DIRECTION_UNSPECIFIED",
|
||||
1: "ASCENDING",
|
||||
2: "DESCENDING",
|
||||
}
|
||||
var PropertyOrder_Direction_value = map[string]int32{
|
||||
"DIRECTION_UNSPECIFIED": 0,
|
||||
"ASCENDING": 1,
|
||||
"DESCENDING": 2,
|
||||
}
|
||||
|
||||
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} }
|
||||
|
||||
// A composite filter operator.
|
||||
type CompositeFilter_Operator int32
|
||||
|
||||
const (
|
||||
// Unspecified. This value must not be used.
|
||||
CompositeFilter_OPERATOR_UNSPECIFIED CompositeFilter_Operator = 0
|
||||
// The results are required to satisfy each of the combined filters.
|
||||
CompositeFilter_AND CompositeFilter_Operator = 1
|
||||
)
|
||||
|
||||
var CompositeFilter_Operator_name = map[int32]string{
|
||||
0: "OPERATOR_UNSPECIFIED",
|
||||
1: "AND",
|
||||
}
|
||||
var CompositeFilter_Operator_value = map[string]int32{
|
||||
"OPERATOR_UNSPECIFIED": 0,
|
||||
"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} }
|
||||
|
||||
// A property filter operator.
|
||||
type PropertyFilter_Operator int32
|
||||
|
||||
const (
|
||||
// Unspecified. This value must not be used.
|
||||
PropertyFilter_OPERATOR_UNSPECIFIED PropertyFilter_Operator = 0
|
||||
// Less than.
|
||||
PropertyFilter_LESS_THAN PropertyFilter_Operator = 1
|
||||
// Less than or equal.
|
||||
PropertyFilter_LESS_THAN_OR_EQUAL PropertyFilter_Operator = 2
|
||||
// Greater than.
|
||||
PropertyFilter_GREATER_THAN PropertyFilter_Operator = 3
|
||||
// Greater than or equal.
|
||||
PropertyFilter_GREATER_THAN_OR_EQUAL PropertyFilter_Operator = 4
|
||||
// Equal.
|
||||
PropertyFilter_EQUAL PropertyFilter_Operator = 5
|
||||
// Has ancestor.
|
||||
PropertyFilter_HAS_ANCESTOR PropertyFilter_Operator = 11
|
||||
)
|
||||
|
||||
var PropertyFilter_Operator_name = map[int32]string{
|
||||
0: "OPERATOR_UNSPECIFIED",
|
||||
1: "LESS_THAN",
|
||||
2: "LESS_THAN_OR_EQUAL",
|
||||
3: "GREATER_THAN",
|
||||
4: "GREATER_THAN_OR_EQUAL",
|
||||
5: "EQUAL",
|
||||
11: "HAS_ANCESTOR",
|
||||
}
|
||||
var PropertyFilter_Operator_value = map[string]int32{
|
||||
"OPERATOR_UNSPECIFIED": 0,
|
||||
"LESS_THAN": 1,
|
||||
"LESS_THAN_OR_EQUAL": 2,
|
||||
"GREATER_THAN": 3,
|
||||
"GREATER_THAN_OR_EQUAL": 4,
|
||||
"EQUAL": 5,
|
||||
"HAS_ANCESTOR": 11,
|
||||
}
|
||||
|
||||
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} }
|
||||
|
||||
// The possible values for the `more_results` field.
|
||||
type QueryResultBatch_MoreResultsType int32
|
||||
|
||||
const (
|
||||
// Unspecified. This value is never used.
|
||||
QueryResultBatch_MORE_RESULTS_TYPE_UNSPECIFIED QueryResultBatch_MoreResultsType = 0
|
||||
// There may be additional batches to fetch from this query.
|
||||
QueryResultBatch_NOT_FINISHED QueryResultBatch_MoreResultsType = 1
|
||||
// The query is finished, but there may be more results after the limit.
|
||||
QueryResultBatch_MORE_RESULTS_AFTER_LIMIT QueryResultBatch_MoreResultsType = 2
|
||||
// The query is finished, but there may be more results after the end
|
||||
// cursor.
|
||||
QueryResultBatch_MORE_RESULTS_AFTER_CURSOR QueryResultBatch_MoreResultsType = 4
|
||||
// The query has been exhausted.
|
||||
QueryResultBatch_NO_MORE_RESULTS QueryResultBatch_MoreResultsType = 3
|
||||
)
|
||||
|
||||
var QueryResultBatch_MoreResultsType_name = map[int32]string{
|
||||
0: "MORE_RESULTS_TYPE_UNSPECIFIED",
|
||||
1: "NOT_FINISHED",
|
||||
2: "MORE_RESULTS_AFTER_LIMIT",
|
||||
4: "MORE_RESULTS_AFTER_CURSOR",
|
||||
3: "NO_MORE_RESULTS",
|
||||
}
|
||||
var QueryResultBatch_MoreResultsType_value = map[string]int32{
|
||||
"MORE_RESULTS_TYPE_UNSPECIFIED": 0,
|
||||
"NOT_FINISHED": 1,
|
||||
"MORE_RESULTS_AFTER_LIMIT": 2,
|
||||
"MORE_RESULTS_AFTER_CURSOR": 4,
|
||||
"NO_MORE_RESULTS": 3,
|
||||
}
|
||||
|
||||
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}
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// The version of the entity, a strictly positive number that monotonically
|
||||
// increases with changes to the entity.
|
||||
//
|
||||
// This field is set for [`FULL`][google.datastore.v1beta3.EntityResult.ResultType.FULL] entity
|
||||
// results.
|
||||
//
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetEntity() *Entity {
|
||||
if m != nil {
|
||||
return m.Entity
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *EntityResult) GetVersion() int64 {
|
||||
if m != nil {
|
||||
return m.Version
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *EntityResult) GetCursor() []byte {
|
||||
if m != nil {
|
||||
return m.Cursor
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// 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"`
|
||||
// The filter to apply.
|
||||
Filter *Filter `protobuf:"bytes,4,opt,name=filter" 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"`
|
||||
// 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"`
|
||||
// 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).
|
||||
StartCursor []byte `protobuf:"bytes,7,opt,name=start_cursor,json=startCursor,proto3" json:"start_cursor,omitempty"`
|
||||
// An ending point for the query results. Query cursors are
|
||||
// returned in query result batches and
|
||||
// [can only be used to limit the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
|
||||
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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetProjection() []*Projection {
|
||||
if m != nil {
|
||||
return m.Projection
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Query) GetKind() []*KindExpression {
|
||||
if m != nil {
|
||||
return m.Kind
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Query) GetFilter() *Filter {
|
||||
if m != nil {
|
||||
return m.Filter
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Query) GetOrder() []*PropertyOrder {
|
||||
if m != nil {
|
||||
return m.Order
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Query) GetDistinctOn() []*PropertyReference {
|
||||
if m != nil {
|
||||
return m.DistinctOn
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Query) GetStartCursor() []byte {
|
||||
if m != nil {
|
||||
return m.StartCursor
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Query) GetEndCursor() []byte {
|
||||
if m != nil {
|
||||
return m.EndCursor
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Query) GetOffset() int32 {
|
||||
if m != nil {
|
||||
return m.Offset
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Query) GetLimit() *google_protobuf3.Int32Value {
|
||||
if m != nil {
|
||||
return m.Limit
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A representation of a kind.
|
||||
type KindExpression struct {
|
||||
// The name of the kind.
|
||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// A reference to a property relative to the kind expressions.
|
||||
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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetProperty() *PropertyReference {
|
||||
if m != nil {
|
||||
return m.Property
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetProperty() *PropertyReference {
|
||||
if m != nil {
|
||||
return m.Property
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PropertyOrder) GetDirection() PropertyOrder_Direction {
|
||||
if m != nil {
|
||||
return m.Direction
|
||||
}
|
||||
return PropertyOrder_DIRECTION_UNSPECIFIED
|
||||
}
|
||||
|
||||
// A holder for any type of filter.
|
||||
type Filter struct {
|
||||
// The type of filter.
|
||||
//
|
||||
// Types that are valid to be assigned to FilterType:
|
||||
// *Filter_CompositeFilter
|
||||
// *Filter_PropertyFilter
|
||||
FilterType isFilter_FilterType `protobuf_oneof:"filter_type"`
|
||||
}
|
||||
|
||||
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} }
|
||||
|
||||
type isFilter_FilterType interface {
|
||||
isFilter_FilterType()
|
||||
}
|
||||
|
||||
type Filter_CompositeFilter struct {
|
||||
CompositeFilter *CompositeFilter `protobuf:"bytes,1,opt,name=composite_filter,json=compositeFilter,oneof"`
|
||||
}
|
||||
type Filter_PropertyFilter struct {
|
||||
PropertyFilter *PropertyFilter `protobuf:"bytes,2,opt,name=property_filter,json=propertyFilter,oneof"`
|
||||
}
|
||||
|
||||
func (*Filter_CompositeFilter) isFilter_FilterType() {}
|
||||
func (*Filter_PropertyFilter) isFilter_FilterType() {}
|
||||
|
||||
func (m *Filter) GetFilterType() isFilter_FilterType {
|
||||
if m != nil {
|
||||
return m.FilterType
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Filter) GetCompositeFilter() *CompositeFilter {
|
||||
if x, ok := m.GetFilterType().(*Filter_CompositeFilter); ok {
|
||||
return x.CompositeFilter
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Filter) GetPropertyFilter() *PropertyFilter {
|
||||
if x, ok := m.GetFilterType().(*Filter_PropertyFilter); ok {
|
||||
return x.PropertyFilter
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*Filter) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _Filter_OneofMarshaler, _Filter_OneofUnmarshaler, _Filter_OneofSizer, []interface{}{
|
||||
(*Filter_CompositeFilter)(nil),
|
||||
(*Filter_PropertyFilter)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _Filter_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*Filter)
|
||||
// filter_type
|
||||
switch x := m.FilterType.(type) {
|
||||
case *Filter_CompositeFilter:
|
||||
b.EncodeVarint(1<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.CompositeFilter); err != nil {
|
||||
return err
|
||||
}
|
||||
case *Filter_PropertyFilter:
|
||||
b.EncodeVarint(2<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.PropertyFilter); err != nil {
|
||||
return err
|
||||
}
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("Filter.FilterType has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _Filter_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*Filter)
|
||||
switch tag {
|
||||
case 1: // filter_type.composite_filter
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(CompositeFilter)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.FilterType = &Filter_CompositeFilter{msg}
|
||||
return true, err
|
||||
case 2: // filter_type.property_filter
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(PropertyFilter)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.FilterType = &Filter_PropertyFilter{msg}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _Filter_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*Filter)
|
||||
// filter_type
|
||||
switch x := m.FilterType.(type) {
|
||||
case *Filter_CompositeFilter:
|
||||
s := proto.Size(x.CompositeFilter)
|
||||
n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Filter_PropertyFilter:
|
||||
s := proto.Size(x.PropertyFilter)
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// The list of filters to combine.
|
||||
// Must contain at least one filter.
|
||||
Filters []*Filter `protobuf:"bytes,2,rep,name=filters" json:"filters,omitempty"`
|
||||
}
|
||||
|
||||
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) GetOp() CompositeFilter_Operator {
|
||||
if m != nil {
|
||||
return m.Op
|
||||
}
|
||||
return CompositeFilter_OPERATOR_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *CompositeFilter) GetFilters() []*Filter {
|
||||
if m != nil {
|
||||
return m.Filters
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// The operator to filter by.
|
||||
Op PropertyFilter_Operator `protobuf:"varint,2,opt,name=op,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"`
|
||||
}
|
||||
|
||||
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) GetProperty() *PropertyReference {
|
||||
if m != nil {
|
||||
return m.Property
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PropertyFilter) GetOp() PropertyFilter_Operator {
|
||||
if m != nil {
|
||||
return m.Op
|
||||
}
|
||||
return PropertyFilter_OPERATOR_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *PropertyFilter) GetValue() *Value {
|
||||
if m != nil {
|
||||
return m.Value
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
||||
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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetQueryString() string {
|
||||
if m != nil {
|
||||
return m.QueryString
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *GqlQuery) GetAllowLiterals() bool {
|
||||
if m != nil {
|
||||
return m.AllowLiterals
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *GqlQuery) GetNamedBindings() map[string]*GqlQueryParameter {
|
||||
if m != nil {
|
||||
return m.NamedBindings
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GqlQuery) GetPositionalBindings() []*GqlQueryParameter {
|
||||
if m != nil {
|
||||
return m.PositionalBindings
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A binding parameter for a GQL query.
|
||||
type GqlQueryParameter struct {
|
||||
// The type of parameter.
|
||||
//
|
||||
// Types that are valid to be assigned to ParameterType:
|
||||
// *GqlQueryParameter_Value
|
||||
// *GqlQueryParameter_Cursor
|
||||
ParameterType isGqlQueryParameter_ParameterType `protobuf_oneof:"parameter_type"`
|
||||
}
|
||||
|
||||
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} }
|
||||
|
||||
type isGqlQueryParameter_ParameterType interface {
|
||||
isGqlQueryParameter_ParameterType()
|
||||
}
|
||||
|
||||
type GqlQueryParameter_Value struct {
|
||||
Value *Value `protobuf:"bytes,2,opt,name=value,oneof"`
|
||||
}
|
||||
type GqlQueryParameter_Cursor struct {
|
||||
Cursor []byte `protobuf:"bytes,3,opt,name=cursor,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*GqlQueryParameter_Value) isGqlQueryParameter_ParameterType() {}
|
||||
func (*GqlQueryParameter_Cursor) isGqlQueryParameter_ParameterType() {}
|
||||
|
||||
func (m *GqlQueryParameter) GetParameterType() isGqlQueryParameter_ParameterType {
|
||||
if m != nil {
|
||||
return m.ParameterType
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GqlQueryParameter) GetValue() *Value {
|
||||
if x, ok := m.GetParameterType().(*GqlQueryParameter_Value); ok {
|
||||
return x.Value
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GqlQueryParameter) GetCursor() []byte {
|
||||
if x, ok := m.GetParameterType().(*GqlQueryParameter_Cursor); ok {
|
||||
return x.Cursor
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*GqlQueryParameter) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _GqlQueryParameter_OneofMarshaler, _GqlQueryParameter_OneofUnmarshaler, _GqlQueryParameter_OneofSizer, []interface{}{
|
||||
(*GqlQueryParameter_Value)(nil),
|
||||
(*GqlQueryParameter_Cursor)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _GqlQueryParameter_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*GqlQueryParameter)
|
||||
// parameter_type
|
||||
switch x := m.ParameterType.(type) {
|
||||
case *GqlQueryParameter_Value:
|
||||
b.EncodeVarint(2<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.Value); err != nil {
|
||||
return err
|
||||
}
|
||||
case *GqlQueryParameter_Cursor:
|
||||
b.EncodeVarint(3<<3 | proto.WireBytes)
|
||||
b.EncodeRawBytes(x.Cursor)
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("GqlQueryParameter.ParameterType has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _GqlQueryParameter_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*GqlQueryParameter)
|
||||
switch tag {
|
||||
case 2: // parameter_type.value
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(Value)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.ParameterType = &GqlQueryParameter_Value{msg}
|
||||
return true, err
|
||||
case 3: // parameter_type.cursor
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeRawBytes(true)
|
||||
m.ParameterType = &GqlQueryParameter_Cursor{x}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _GqlQueryParameter_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*GqlQueryParameter)
|
||||
// parameter_type
|
||||
switch x := m.ParameterType.(type) {
|
||||
case *GqlQueryParameter_Value:
|
||||
s := proto.Size(x.Value)
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *GqlQueryParameter_Cursor:
|
||||
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(len(x.Cursor)))
|
||||
n += len(x.Cursor)
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// 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"`
|
||||
// The results for this batch.
|
||||
EntityResults []*EntityResult `protobuf:"bytes,2,rep,name=entity_results,json=entityResults" 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"`
|
||||
// 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
|
||||
// `end_cursor` (not the query's `end_cursor`).
|
||||
//
|
||||
// In a single transaction, subsequent query result batches for the same query
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetSkippedResults() int32 {
|
||||
if m != nil {
|
||||
return m.SkippedResults
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *QueryResultBatch) GetSkippedCursor() []byte {
|
||||
if m != nil {
|
||||
return m.SkippedCursor
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *QueryResultBatch) GetEntityResultType() EntityResult_ResultType {
|
||||
if m != nil {
|
||||
return m.EntityResultType
|
||||
}
|
||||
return EntityResult_RESULT_TYPE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *QueryResultBatch) GetEntityResults() []*EntityResult {
|
||||
if m != nil {
|
||||
return m.EntityResults
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *QueryResultBatch) GetEndCursor() []byte {
|
||||
if m != nil {
|
||||
return m.EndCursor
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *QueryResultBatch) GetMoreResults() QueryResultBatch_MoreResultsType {
|
||||
if m != nil {
|
||||
return m.MoreResults
|
||||
}
|
||||
return QueryResultBatch_MORE_RESULTS_TYPE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *QueryResultBatch) GetSnapshotVersion() int64 {
|
||||
if m != nil {
|
||||
return m.SnapshotVersion
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*EntityResult)(nil), "google.datastore.v1beta3.EntityResult")
|
||||
proto.RegisterType((*Query)(nil), "google.datastore.v1beta3.Query")
|
||||
proto.RegisterType((*KindExpression)(nil), "google.datastore.v1beta3.KindExpression")
|
||||
proto.RegisterType((*PropertyReference)(nil), "google.datastore.v1beta3.PropertyReference")
|
||||
proto.RegisterType((*Projection)(nil), "google.datastore.v1beta3.Projection")
|
||||
proto.RegisterType((*PropertyOrder)(nil), "google.datastore.v1beta3.PropertyOrder")
|
||||
proto.RegisterType((*Filter)(nil), "google.datastore.v1beta3.Filter")
|
||||
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.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)
|
||||
proto.RegisterEnum("google.datastore.v1beta3.PropertyOrder_Direction", PropertyOrder_Direction_name, PropertyOrder_Direction_value)
|
||||
proto.RegisterEnum("google.datastore.v1beta3.CompositeFilter_Operator", CompositeFilter_Operator_name, CompositeFilter_Operator_value)
|
||||
proto.RegisterEnum("google.datastore.v1beta3.PropertyFilter_Operator", PropertyFilter_Operator_name, PropertyFilter_Operator_value)
|
||||
proto.RegisterEnum("google.datastore.v1beta3.QueryResultBatch_MoreResultsType", QueryResultBatch_MoreResultsType_name, QueryResultBatch_MoreResultsType_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/datastore/v1beta3/query.proto", fileDescriptor2) }
|
||||
|
||||
var fileDescriptor2 = []byte{
|
||||
// 1312 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcb, 0x6e, 0xdb, 0x46,
|
||||
0x17, 0x36, 0x29, 0xc9, 0x97, 0xa3, 0x1b, 0x33, 0xf9, 0xff, 0x94, 0x71, 0x2e, 0x75, 0x88, 0xa4,
|
||||
0x51, 0x50, 0x54, 0x82, 0x15, 0x04, 0x0d, 0xd2, 0x76, 0xa1, 0x0b, 0x6d, 0xab, 0x91, 0x45, 0x65,
|
||||
0x24, 0x1b, 0x48, 0x91, 0x82, 0xa0, 0xa5, 0xb1, 0xc2, 0x86, 0x22, 0x99, 0xe1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42, 0xc4, 0x53, 0x0d, 0xc3, 0x84, 0xad, 0x49,
|
||||
0x1c, 0x5d, 0x87, 0xff, 0x37, 0x5b, 0x58, 0x9c, 0xae, 0x85, 0x33, 0x98, 0x87, 0xad, 0x5a, 0xaf,
|
||||
0x61, 0x76, 0x9a, 0xad, 0xce, 0xbe, 0x38, 0x88, 0x4d, 0x73, 0x32, 0x56, 0x8d, 0xdf, 0x14, 0x58,
|
||||
0x17, 0x55, 0x8c, 0x8e, 0x41, 0x1b, 0x04, 0xe3, 0x30, 0x88, 0x5c, 0x46, 0x6c, 0x79, 0x02, 0xc4,
|
||||
0x9e, 0x1f, 0x2c, 0x5f, 0x69, 0x23, 0x61, 0x08, 0x91, 0x83, 0x35, 0x5c, 0x1c, 0xcc, 0x87, 0x50,
|
||||
0x0f, 0x8a, 0x89, 0x0d, 0x89, 0xac, 0xca, 0x65, 0x4b, 0xab, 0x0d, 0x98, 0xa8, 0x16, 0xc2, 0xb9,
|
||||
0x48, 0x3d, 0x0f, 0x59, 0xa1, 0x65, 0xc7, 0xd7, 0xa3, 0xf1, 0xab, 0x02, 0xc5, 0x85, 0xa5, 0xa0,
|
||||
0x3a, 0xa8, 0x41, 0xc8, 0x77, 0x50, 0xa8, 0x56, 0x2f, 0xbd, 0x83, 0xb2, 0x15, 0x12, 0xea, 0xb0,
|
||||
0x80, 0x62, 0x35, 0x08, 0xd1, 0x13, 0xd8, 0x10, 0x69, 0x22, 0x79, 0x19, 0xad, 0xbe, 0x0c, 0x12,
|
||||
0x82, 0xf1, 0x05, 0x6c, 0x26, 0x5a, 0x48, 0x87, 0xff, 0x59, 0x5d, 0x13, 0xd7, 0xfa, 0x16, 0x5e,
|
||||
0xf8, 0x3e, 0x1b, 0x90, 0xaa, 0x75, 0x9a, 0x9a, 0x62, 0xfc, 0xa5, 0x42, 0x61, 0x7e, 0xdb, 0x1f,
|
||||
0xaf, 0xfa, 0x6a, 0xdc, 0x8a, 0x4b, 0x97, 0xdd, 0xfb, 0x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, 0xe0, 0x6c, 0x58, 0x6e, 0x4e, 0x32, 0x1e, 0xef, 0xd6, 0x63, 0xe8, 0xc9, 0x3a, 0x97,
|
||||
0x7b, 0xf8, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4a, 0xc8, 0xc3, 0x34, 0xf2, 0x0c, 0x00, 0x00,
|
||||
}
|
Reference in New Issue
Block a user