OSDN Git Service

Hulk did something
[bytom/vapor.git] / vendor / google.golang.org / genproto / googleapis / datastore / v1beta3 / entity.pb.go
diff --git a/vendor/google.golang.org/genproto/googleapis/datastore/v1beta3/entity.pb.go b/vendor/google.golang.org/genproto/googleapis/datastore/v1beta3/entity.pb.go
new file mode 100644 (file)
index 0000000..c44916d
--- /dev/null
@@ -0,0 +1,763 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// source: google/datastore/v1beta3/entity.proto
+
+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, 0x9b, 0xba, 0x3e, 0xab, 0x57, 0xdb, 0xe6, 0x4d,
+       0x5c, 0xcb, 0xaa, 0xd9, 0x49, 0x9b, 0xbd, 0xf8, 0x30, 0x2b, 0x59, 0x41, 0x6b, 0x49, 0x8a, 0xd2,
+       0x02, 0x76, 0xdb, 0x58, 0xb6, 0x25, 0x8d, 0x73, 0x22, 0x73, 0x9e, 0x99, 0xcc, 0xec, 0x57, 0xf0,
+       0xd7, 0xa4, 0x92, 0x4c, 0x6d, 0xb6, 0x4a, 0xd1, 0x03, 0x80, 0xb2, 0x12, 0x7f, 0xd0, 0x9d, 0xdc,
+       0xb0, 0x34, 0x1c, 0x4c, 0xdd, 0xb9, 0x87, 0x3d, 0x1b, 0x59, 0xa5, 0xe8, 0x0b, 0x08, 0x38, 0x29,
+       0x68, 0x5d, 0x92, 0x1d, 0x55, 0xc0, 0x89, 0x06, 0xfc, 0x3e, 0xb6, 0x4a, 0x67, 0xff, 0xb8, 0x30,
+       0x7c, 0x41, 0x5b, 0x94, 0x40, 0x50, 0x76, 0xc2, 0x0a, 0x75, 0xa7, 0xee, 0xdc, 0xbf, 0xba, 0x8c,
+       0x8e, 0x5d, 0x40, 0x74, 0xcd, 0x06, 0xf6, 0xcb, 0x6b, 0x9e, 0x9e, 0xc2, 0x49, 0x49, 0xe4, 0xdb,
+       0x70, 0x30, 0x1d, 0xce, 0xfd, 0xab, 0xaf, 0x8f, 0x2b, 0xbc, 0xa0, 0x6d, 0xb4, 0x26, 0xf2, 0xed,
+       0x32, 0xa7, 0x05, 0xe5, 0x12, 0xeb, 0xb2, 0xc9, 0x2b, 0x75, 0xc2, 0x3e, 0x88, 0x10, 0x9c, 0xec,
+       0x19, 0x37, 0x7e, 0x3c, 0xac, 0xbf, 0xd1, 0x1d, 0x18, 0xd8, 0xd3, 0x0e, 0x13, 0x07, 0x0f, 0x58,
+       0x8a, 0xee, 0xc1, 0x89, 0x3a, 0x54, 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, 0x17, 0x00, 0xdb, 0x5c, 0x6c, 0x2d, 0x82, 0xa6, 0xee, 0x3c,
+       0x50, 0xb7, 0xa7, 0x62, 0x06, 0x78, 0x0a, 0xe7, 0x19, 0x15, 0x9b, 0x52, 0x30, 0x2e, 0x2d, 0x75,
+       0xaa, 0x9d, 0xdc, 0xed, 0x9c, 0xa8, 0x96, 0x47, 0x2f, 0x89, 0x7c, 0xc9, 0xb3, 0xc4, 0xc1, 0xb7,
+       0x33, 0x2a, 0xd6, 0x0a, 0xee, 0x6e, 0x22, 0x30, 0x6f, 0xdc, 0xd6, 0x8e, 0x75, 0xed, 0xf4, 0xf8,
+       0x29, 0x96, 0x9a, 0x56, 0x36, 0x4d, 0x9d, 0x91, 0x79, 0x0e, 0x3e, 0x51, 0x13, 0x65, 0x55, 0x3c,
+       0xad, 0xf2, 0xd5, 0x71, 0x95, 0xc3, 0xf8, 0x25, 0x0e, 0x06, 0x72, 0x18, 0xc6, 0x10, 0x6e, 0x15,
+       0x94, 0x70, 0xc6, 0xb3, 0xf0, 0x6c, 0xea, 0xce, 0x47, 0xb8, 0x5b, 0xa2, 0x87, 0x70, 0x8f, 0xbe,
+       0xdf, 0xe5, 0x4d, 0x4a, 0x37, 0x6f, 0x2a, 0x51, 0x6c, 0x18, 0x4f, 0xe9, 0x7b, 0x5a, 0x87, 0x77,
+       0xd5, 0xb4, 0x60, 0x64, 0x73, 0x3f, 0x57, 0xa2, 0x58, 0x99, 0xcc, 0x22, 0x00, 0xd0, 0x76, 0xcc,
+       0xd0, 0xff, 0xeb, 0xc2, 0xd8, 0x98, 0x47, 0x31, 0x0c, 0xf7, 0xb4, 0xb5, 0xaf, 0xfa, 0xe6, 0x8e,
+       0x61, 0x45, 0xa2, 0xb5, 0xfe, 0x65, 0x29, 0x69, 0x25, 0x19, 0xad, 0xc3, 0xa1, 0x7e, 0x26, 0x0f,
+       0xff, 0xef, 0x8e, 0xa2, 0x75, 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,
+}