package gaepb
import "cloud.google.com/go/datastore/internal/gaepb"
Package gaepb is a subset of protobufs, copied from google.golang.org/appengine/internal/datastore. It includes the Reference, Path, and Path_Element protos.
They are copied here to provide compatibility to decode keys generated by the google.golang.org/appengine/datastore package. Copying the minimal amount of protos to support key decoding means we don't need to add a dependency on the appengine/datastore package.
Index ¶
- type Path
- func (*Path) Descriptor() ([]byte, []int)
- func (m *Path) GetElement() []*Path_Element
- func (*Path) ProtoMessage()
- func (m *Path) Reset()
- func (m *Path) String() string
- func (m *Path) XXX_DiscardUnknown()
- func (m *Path) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Path) XXX_Merge(src proto.Message)
- func (m *Path) XXX_Size() int
- func (m *Path) XXX_Unmarshal(b []byte) error
- type Path_Element
- func (*Path_Element) Descriptor() ([]byte, []int)
- func (m *Path_Element) GetId() int64
- func (m *Path_Element) GetName() string
- func (m *Path_Element) GetType() string
- func (*Path_Element) ProtoMessage()
- func (m *Path_Element) Reset()
- func (m *Path_Element) String() string
- func (m *Path_Element) XXX_DiscardUnknown()
- func (m *Path_Element) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Path_Element) XXX_Merge(src proto.Message)
- func (m *Path_Element) XXX_Size() int
- func (m *Path_Element) XXX_Unmarshal(b []byte) error
- type Reference
- func (*Reference) Descriptor() ([]byte, []int)
- func (m *Reference) GetApp() string
- func (m *Reference) GetNameSpace() string
- func (m *Reference) GetPath() *Path
- func (*Reference) ProtoMessage()
- func (m *Reference) Reset()
- func (m *Reference) String() string
- func (m *Reference) XXX_DiscardUnknown()
- func (m *Reference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Reference) XXX_Merge(src proto.Message)
- func (m *Reference) XXX_Size() int
- func (m *Reference) XXX_Unmarshal(b []byte) error
Types ¶
type Path ¶
type Path struct { Element []*Path_Element `protobuf:"group,1,rep,name=Element,json=element" json:"element,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Path) Descriptor ¶
func (*Path) GetElement ¶
func (m *Path) GetElement() []*Path_Element
func (*Path) ProtoMessage ¶
func (*Path) ProtoMessage()
func (*Path) Reset ¶
func (m *Path) Reset()
func (*Path) String ¶
func (*Path) XXX_DiscardUnknown ¶
func (m *Path) XXX_DiscardUnknown()
func (*Path) XXX_Marshal ¶
func (*Path) XXX_Merge ¶
func (*Path) XXX_Size ¶
func (*Path) XXX_Unmarshal ¶
type Path_Element ¶
type Path_Element struct { Type *string `protobuf:"bytes,2,req,name=type" json:"type,omitempty"` Id *int64 `protobuf:"varint,3,opt,name=id" json:"id,omitempty"` Name *string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Path_Element) Descriptor ¶
func (*Path_Element) Descriptor() ([]byte, []int)
func (*Path_Element) GetId ¶
func (m *Path_Element) GetId() int64
func (*Path_Element) GetName ¶
func (m *Path_Element) GetName() string
func (*Path_Element) GetType ¶
func (m *Path_Element) GetType() string
func (*Path_Element) ProtoMessage ¶
func (*Path_Element) ProtoMessage()
func (*Path_Element) Reset ¶
func (m *Path_Element) Reset()
func (*Path_Element) String ¶
func (m *Path_Element) String() string
func (*Path_Element) XXX_DiscardUnknown ¶
func (m *Path_Element) XXX_DiscardUnknown()
func (*Path_Element) XXX_Marshal ¶
func (m *Path_Element) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Path_Element) XXX_Merge ¶
func (dst *Path_Element) XXX_Merge(src proto.Message)
func (*Path_Element) XXX_Size ¶
func (m *Path_Element) XXX_Size() int
func (*Path_Element) XXX_Unmarshal ¶
func (m *Path_Element) XXX_Unmarshal(b []byte) error
type Reference ¶
type Reference struct { App *string `protobuf:"bytes,13,req,name=app" json:"app,omitempty"` NameSpace *string `protobuf:"bytes,20,opt,name=name_space,json=nameSpace" json:"name_space,omitempty"` Path *Path `protobuf:"bytes,14,req,name=path" json:"path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Reference) Descriptor ¶
func (*Reference) GetApp ¶
func (*Reference) GetNameSpace ¶
func (*Reference) GetPath ¶
func (*Reference) ProtoMessage ¶
func (*Reference) ProtoMessage()
func (*Reference) Reset ¶
func (m *Reference) Reset()
func (*Reference) String ¶
func (*Reference) XXX_DiscardUnknown ¶
func (m *Reference) XXX_DiscardUnknown()
func (*Reference) XXX_Marshal ¶
func (*Reference) XXX_Merge ¶
func (*Reference) XXX_Size ¶
func (*Reference) XXX_Unmarshal ¶
Source Files ¶
datastore_v3.pb.go
- Version
- v0.44.0
- Published
- Aug 9, 2019
- Platform
- windows/amd64
- Imports
- 1 packages
- Last checked
- 1 hour ago –
Tools for package owners.