schema

package
v0.0.0-...-95d4a42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package schema includes all the backend data types and helper functions for Pixur.

Index

Constants

View Source
const (
	Z_99        = 1.95996398612
	PicScoreMin = 0
	PicScoreMax = 1<<31 - 1
)
View Source
const NoCommentParentId = 0

Variables

View Source
var AnonymousUserId int64 = 0

*

  • The user id of the anonymous user. Due to proto3, this is not distinguishable
  • from not being set, so bugs in the code will appear to set anonymous when they
  • shouldn't. This seems okay, since tests can check most of this. 0 will mean
  • that "we don't know". This means that either the user was actually anonymous,
  • or the data was created at a time when the user wasn't known, which are both
  • correct. In the event of data corruption, we still don't know who the correct
  • user was, so 0 would be the unfortuantely correct answer.
View Source
var PicCommentVote_Vote_name = map[int32]string{
	0: "UNKNOWN",
	1: "UP",
	2: "DOWN",
	3: "NEUTRAL",
}
View Source
var PicCommentVote_Vote_value = map[string]int32{
	"UNKNOWN": 0,
	"UP":      1,
	"DOWN":    2,
	"NEUTRAL": 3,
}
View Source
var PicIdent_Type_name = map[int32]string{
	0: "UNKNOWN",
	2: "SHA1",
	3: "MD5",
	4: "DCT_0",
	5: "SHA512_256",
}
View Source
var PicIdent_Type_value = map[string]int32{
	"UNKNOWN":    0,
	"SHA1":       2,
	"MD5":        3,
	"DCT_0":      4,
	"SHA512_256": 5,
}
View Source
var PicVote_Vote_name = map[int32]string{
	0: "UNKNOWN",
	1: "UP",
	2: "DOWN",
	3: "NEUTRAL",
}
View Source
var PicVote_Vote_value = map[string]int32{
	"UNKNOWN": 0,
	"UP":      1,
	"DOWN":    2,
	"NEUTRAL": 3,
}
View Source
var Pic_DeletionStatus_Reason_name = map[int32]string{
	0: "UNKNOWN",
	1: "NONE",
	2: "RULE_VIOLATION",
}
View Source
var Pic_DeletionStatus_Reason_value = map[string]int32{
	"UNKNOWN":        0,
	"NONE":           1,
	"RULE_VIOLATION": 2,
}
View Source
var Pic_File_Mime_name = map[int32]string{
	0: "UNKNOWN",
	1: "JPEG",
	2: "GIF",
	3: "PNG",
	4: "WEBM",
	5: "MP4",
}
View Source
var Pic_File_Mime_value = map[string]int32{
	"UNKNOWN": 0,
	"JPEG":    1,
	"GIF":     2,
	"PNG":     3,
	"WEBM":    4,
	"MP4":     5,
}
View Source
var User_Capability_name = map[int32]string{
	0:  "UNKNOWN",
	1:  "PIC_CREATE",
	2:  "PIC_READ",
	3:  "PIC_INDEX",
	5:  "PIC_SOFT_DELETE",
	6:  "PIC_HARD_DELETE",
	7:  "PIC_PURGE",
	8:  "PIC_UPDATE_VIEW_COUNTER",
	9:  "PIC_TAG_CREATE",
	10: "PIC_COMMENT_CREATE",
	11: "PIC_VOTE_CREATE",
	4:  "USER_CREATE",
	12: "USER_UPDATE_CAPABILITY",
	13: "USER_READ_SELF",
	14: "USER_READ_ALL",
	15: "PIC_EXTENSION_CREATE",
	16: "PIC_EXTENSION_READ",
	17: "PIC_COMMENT_EXTENSION_CREATE",
	18: "PIC_COMMENT_EXTENSION_READ",
	19: "PIC_TAG_EXTENSION_CREATE",
	20: "PIC_TAG_EXTENSION_READ",
	21: "PIC_VOTE_EXTENSION_CREATE",
	22: "PIC_VOTE_EXTENSION_READ",
	23: "USER_READ_PUBLIC",
	24: "USER_READ_PICS",
	25: "USER_READ_PIC_TAG",
	26: "USER_READ_PIC_COMMENT",
	27: "USER_READ_PIC_VOTE",
	28: "PIC_COMMENT_VOTE_CREATE",
	29: "PIC_COMMENT_VOTE_EXTENSION_CREATE",
}
View Source
var User_Capability_value = map[string]int32{
	"UNKNOWN":                           0,
	"PIC_CREATE":                        1,
	"PIC_READ":                          2,
	"PIC_INDEX":                         3,
	"PIC_SOFT_DELETE":                   5,
	"PIC_HARD_DELETE":                   6,
	"PIC_PURGE":                         7,
	"PIC_UPDATE_VIEW_COUNTER":           8,
	"PIC_TAG_CREATE":                    9,
	"PIC_COMMENT_CREATE":                10,
	"PIC_VOTE_CREATE":                   11,
	"USER_CREATE":                       4,
	"USER_UPDATE_CAPABILITY":            12,
	"USER_READ_SELF":                    13,
	"USER_READ_ALL":                     14,
	"PIC_EXTENSION_CREATE":              15,
	"PIC_EXTENSION_READ":                16,
	"PIC_COMMENT_EXTENSION_CREATE":      17,
	"PIC_COMMENT_EXTENSION_READ":        18,
	"PIC_TAG_EXTENSION_CREATE":          19,
	"PIC_TAG_EXTENSION_READ":            20,
	"PIC_VOTE_EXTENSION_CREATE":         21,
	"PIC_VOTE_EXTENSION_READ":           22,
	"USER_READ_PUBLIC":                  23,
	"USER_READ_PICS":                    24,
	"USER_READ_PIC_TAG":                 25,
	"USER_READ_PIC_COMMENT":             26,
	"USER_READ_PIC_VOTE":                27,
	"PIC_COMMENT_VOTE_CREATE":           28,
	"PIC_COMMENT_VOTE_EXTENSION_CREATE": 29,
}

Functions

func MergeConfiguration

func MergeConfiguration(dst, src *Configuration)

MergeConfiguration merges two configuration values. Unknown fields are dropped. Unlike proto.Merge, only top level fields are considered.

func PicBaseDir

func PicBaseDir(pixPath string, id int64) string

func PicFileDerivedPath

func PicFileDerivedPath(
	pixPath string, picId, index int64, mime Pic_File_Mime) (string, status.S)

func PicFilePath

func PicFilePath(pixPath string, picId int64, mime Pic_File_Mime) (string, status.S)

func TagUniqueName

func TagUniqueName(s string) string

TagUniqueName normalizes a name for uniqueness constraints

func ToDuration

func ToDuration(dur *durpb.Duration) time.Duration

ToDuration converts from a proto duration to a Go duration. It panics if it cannot losslessly convert. Do not use this function on untrusted input.

func ToDurpb

func ToDurpb(d time.Duration) *durpb.Duration

ToDurpb converts from a Go duration to proto duration. It panics if it cannot losslessly convert. Do not use this function on untrusted input.

func ToTime

func ToTime(ts *tspb.Timestamp) time.Time

ToTime converts from a proto timestamp to a Go time. It panics if it cannot losslessly convert. Do not use this function on untrusted input.

func ToTspb

func ToTspb(t time.Time) *tspb.Timestamp

ToTspb converts from a Go time to proto timestamp. It panics if it cannot losslessly convert. Do not use this function on untrusted input.

func UserEventCreatedTsCol

func UserEventCreatedTsCol(createdTs *tspb.Timestamp) int64

func UserUniqueIdent

func UserUniqueIdent(s string) string

UserUniqueIdent normalizes an identity for uniqueness constraints

func VerifyCapSubset

func VerifyCapSubset(have, want *CapSet) status.S

TODO: test

Types

type AnimationInfo

type AnimationInfo struct {
	// How long this animated image in time.  There must be more than 1 frame
	// for this value to be set.
	Duration             *duration.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*AnimationInfo) Descriptor

func (*AnimationInfo) Descriptor() ([]byte, []int)

func (*AnimationInfo) GetDuration

func (m *AnimationInfo) GetDuration() *duration.Duration

func (*AnimationInfo) ProtoMessage

func (*AnimationInfo) ProtoMessage()

func (*AnimationInfo) Reset

func (m *AnimationInfo) Reset()

func (*AnimationInfo) String

func (m *AnimationInfo) String() string

func (*AnimationInfo) XXX_DiscardUnknown

func (m *AnimationInfo) XXX_DiscardUnknown()

func (*AnimationInfo) XXX_Marshal

func (m *AnimationInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnimationInfo) XXX_Merge

func (m *AnimationInfo) XXX_Merge(src proto.Message)

func (*AnimationInfo) XXX_Size

func (m *AnimationInfo) XXX_Size() int

func (*AnimationInfo) XXX_Unmarshal

func (m *AnimationInfo) XXX_Unmarshal(b []byte) error

type CapSet

type CapSet struct {
	// contains filtered or unexported fields
}

func CapIntersect

func CapIntersect(left, right *CapSet) (both, leftonly, rightonly *CapSet)

func CapSetOf

func CapSetOf(caps ...User_Capability) *CapSet

func (*CapSet) Add

func (cs *CapSet) Add(c User_Capability)

func (*CapSet) Has

func (cs *CapSet) Has(c User_Capability) bool

func (*CapSet) Size

func (cs *CapSet) Size() int

func (*CapSet) Slice

func (cs *CapSet) Slice() []User_Capability

func (*CapSet) String

func (cs *CapSet) String() string

type Configuration

type Configuration struct {
	// the minimum comment length in bytes.
	MinCommentLength *wrappers.Int64Value `protobuf:"bytes,1,opt,name=min_comment_length,json=minCommentLength,proto3" json:"min_comment_length,omitempty"`
	// the maximum comment length in bytes.
	MaxCommentLength *wrappers.Int64Value `protobuf:"bytes,2,opt,name=max_comment_length,json=maxCommentLength,proto3" json:"max_comment_length,omitempty"`
	// the minimum ident length for a user in bytes.
	MinIdentLength *wrappers.Int64Value `protobuf:"bytes,3,opt,name=min_ident_length,json=minIdentLength,proto3" json:"min_ident_length,omitempty"`
	// the maximum ident length for a user in bytes.
	MaxIdentLength *wrappers.Int64Value `protobuf:"bytes,4,opt,name=max_ident_length,json=maxIdentLength,proto3" json:"max_ident_length,omitempty"`
	// the minimum file name length in bytes.
	MinFileNameLength *wrappers.Int64Value `protobuf:"bytes,5,opt,name=min_file_name_length,json=minFileNameLength,proto3" json:"min_file_name_length,omitempty"`
	// the maximum file name length in bytes.
	MaxFileNameLength *wrappers.Int64Value `protobuf:"bytes,6,opt,name=max_file_name_length,json=maxFileNameLength,proto3" json:"max_file_name_length,omitempty"`
	// the minimum url length for pic upsert in bytes.
	MinUrlLength *wrappers.Int64Value `protobuf:"bytes,7,opt,name=min_url_length,json=minUrlLength,proto3" json:"min_url_length,omitempty"`
	// the maximum url length for pic upsert in bytes.
	MaxUrlLength *wrappers.Int64Value `protobuf:"bytes,8,opt,name=max_url_length,json=maxUrlLength,proto3" json:"max_url_length,omitempty"`
	// the minimum tag length in bytes.
	MinTagLength *wrappers.Int64Value `protobuf:"bytes,9,opt,name=min_tag_length,json=minTagLength,proto3" json:"min_tag_length,omitempty"`
	// the maximum tag length in bytes.
	MaxTagLength *wrappers.Int64Value `protobuf:"bytes,10,opt,name=max_tag_length,json=maxTagLength,proto3" json:"max_tag_length,omitempty"`
	// the capabilities of the anonymous user.
	AnonymousCapability *Configuration_CapabilitySet `protobuf:"bytes,11,opt,name=anonymous_capability,json=anonymousCapability,proto3" json:"anonymous_capability,omitempty"`
	// the capabilities of a newly created user.
	NewUserCapability *Configuration_CapabilitySet `protobuf:"bytes,12,opt,name=new_user_capability,json=newUserCapability,proto3" json:"new_user_capability,omitempty"`
	// the default number of index pics to return
	DefaultFindIndexPics *wrappers.Int64Value `` /* 126-byte string literal not displayed */
	// the max number of index pics to return
	MaxFindIndexPics *wrappers.Int64Value `protobuf:"bytes,14,opt,name=max_find_index_pics,json=maxFindIndexPics,proto3" json:"max_find_index_pics,omitempty"`
	// the max duration a WEBM/MP4 pic can be
	MaxVideoDuration *duration.Duration `protobuf:"bytes,15,opt,name=max_video_duration,json=maxVideoDuration,proto3" json:"max_video_duration,omitempty"`
	// allows users to reply to their own comments
	EnablePicCommentSelfReply *wrappers.BoolValue `` /* 143-byte string literal not displayed */
	// allows a single user to reply multiple times to one comment
	EnablePicCommentSiblingReply *wrappers.BoolValue `` /* 152-byte string literal not displayed */
	// the default number of user events to return
	DefaultFindUserEvents *wrappers.Int64Value `` /* 129-byte string literal not displayed */
	// the max number of user events to return
	MaxFindUserEvents    *wrappers.Int64Value `protobuf:"bytes,19,opt,name=max_find_user_events,json=maxFindUserEvents,proto3" json:"max_find_user_events,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func GetDefaultConfiguration

func GetDefaultConfiguration() *Configuration

GetDefaultConfiguration returns a copy of the default configuration. All fields are set.

func (*Configuration) Descriptor

func (*Configuration) Descriptor() ([]byte, []int)

func (*Configuration) GetAnonymousCapability

func (m *Configuration) GetAnonymousCapability() *Configuration_CapabilitySet

func (*Configuration) GetDefaultFindIndexPics

func (m *Configuration) GetDefaultFindIndexPics() *wrappers.Int64Value

func (*Configuration) GetDefaultFindUserEvents

func (m *Configuration) GetDefaultFindUserEvents() *wrappers.Int64Value

func (*Configuration) GetEnablePicCommentSelfReply

func (m *Configuration) GetEnablePicCommentSelfReply() *wrappers.BoolValue

func (*Configuration) GetEnablePicCommentSiblingReply

func (m *Configuration) GetEnablePicCommentSiblingReply() *wrappers.BoolValue

func (*Configuration) GetMaxCommentLength

func (m *Configuration) GetMaxCommentLength() *wrappers.Int64Value

func (*Configuration) GetMaxFileNameLength

func (m *Configuration) GetMaxFileNameLength() *wrappers.Int64Value

func (*Configuration) GetMaxFindIndexPics

func (m *Configuration) GetMaxFindIndexPics() *wrappers.Int64Value

func (*Configuration) GetMaxFindUserEvents

func (m *Configuration) GetMaxFindUserEvents() *wrappers.Int64Value

func (*Configuration) GetMaxIdentLength

func (m *Configuration) GetMaxIdentLength() *wrappers.Int64Value

func (*Configuration) GetMaxTagLength

func (m *Configuration) GetMaxTagLength() *wrappers.Int64Value

func (*Configuration) GetMaxUrlLength

func (m *Configuration) GetMaxUrlLength() *wrappers.Int64Value

func (*Configuration) GetMaxVideoDuration

func (m *Configuration) GetMaxVideoDuration() *duration.Duration

func (*Configuration) GetMinCommentLength

func (m *Configuration) GetMinCommentLength() *wrappers.Int64Value

func (*Configuration) GetMinFileNameLength

func (m *Configuration) GetMinFileNameLength() *wrappers.Int64Value

func (*Configuration) GetMinIdentLength

func (m *Configuration) GetMinIdentLength() *wrappers.Int64Value

func (*Configuration) GetMinTagLength

func (m *Configuration) GetMinTagLength() *wrappers.Int64Value

func (*Configuration) GetMinUrlLength

func (m *Configuration) GetMinUrlLength() *wrappers.Int64Value

func (*Configuration) GetNewUserCapability

func (m *Configuration) GetNewUserCapability() *Configuration_CapabilitySet

func (*Configuration) ProtoMessage

func (*Configuration) ProtoMessage()

func (*Configuration) Reset

func (m *Configuration) Reset()

func (*Configuration) String

func (m *Configuration) String() string

func (*Configuration) XXX_DiscardUnknown

func (m *Configuration) XXX_DiscardUnknown()

func (*Configuration) XXX_Marshal

func (m *Configuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Configuration) XXX_Merge

func (m *Configuration) XXX_Merge(src proto.Message)

func (*Configuration) XXX_Size

func (m *Configuration) XXX_Size() int

func (*Configuration) XXX_Unmarshal

func (m *Configuration) XXX_Unmarshal(b []byte) error

type Configuration_CapabilitySet

type Configuration_CapabilitySet struct {
	Capability           []User_Capability `protobuf:"varint,1,rep,packed,name=capability,proto3,enum=pixur.be.schema.User_Capability" json:"capability,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*Configuration_CapabilitySet) Descriptor

func (*Configuration_CapabilitySet) Descriptor() ([]byte, []int)

func (*Configuration_CapabilitySet) GetCapability

func (m *Configuration_CapabilitySet) GetCapability() []User_Capability

func (*Configuration_CapabilitySet) ProtoMessage

func (*Configuration_CapabilitySet) ProtoMessage()

func (*Configuration_CapabilitySet) Reset

func (m *Configuration_CapabilitySet) Reset()

func (*Configuration_CapabilitySet) String

func (m *Configuration_CapabilitySet) String() string

func (*Configuration_CapabilitySet) XXX_DiscardUnknown

func (m *Configuration_CapabilitySet) XXX_DiscardUnknown()

func (*Configuration_CapabilitySet) XXX_Marshal

func (m *Configuration_CapabilitySet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Configuration_CapabilitySet) XXX_Merge

func (m *Configuration_CapabilitySet) XXX_Merge(src proto.Message)

func (*Configuration_CapabilitySet) XXX_Size

func (m *Configuration_CapabilitySet) XXX_Size() int

func (*Configuration_CapabilitySet) XXX_Unmarshal

func (m *Configuration_CapabilitySet) XXX_Unmarshal(b []byte) error

type CustomData

type CustomData struct {
	// The key type.  Pixur reserves types 0-127, inclusive.
	KeyType              int64                `protobuf:"varint,1,opt,name=key_type,json=keyType,proto3" json:"key_type,omitempty"`
	Key1                 int64                `protobuf:"varint,2,opt,name=key1,proto3" json:"key1,omitempty"`
	Key2                 int64                `protobuf:"varint,3,opt,name=key2,proto3" json:"key2,omitempty"`
	Key3                 int64                `protobuf:"varint,4,opt,name=key3,proto3" json:"key3,omitempty"`
	Key4                 int64                `protobuf:"varint,5,opt,name=key4,proto3" json:"key4,omitempty"`
	Key5                 int64                `protobuf:"varint,6,opt,name=key5,proto3" json:"key5,omitempty"`
	CreatedTs            *timestamp.Timestamp `protobuf:"bytes,7,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"`
	ModifiedTs           *timestamp.Timestamp `protobuf:"bytes,8,opt,name=modified_ts,json=modifiedTs,proto3" json:"modified_ts,omitempty"`
	Data                 *any.Any             `protobuf:"bytes,9,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

CustomData is a free form message that can be used for experimental data. It contains a 5-tuple of long keys which are indexed as a prefix. The keys must be unique.

func (*CustomData) Descriptor

func (*CustomData) Descriptor() ([]byte, []int)

func (*CustomData) GetCreatedTs

func (m *CustomData) GetCreatedTs() *timestamp.Timestamp

func (*CustomData) GetData

func (m *CustomData) GetData() *any.Any

func (*CustomData) GetKey1

func (m *CustomData) GetKey1() int64

func (*CustomData) GetKey2

func (m *CustomData) GetKey2() int64

func (*CustomData) GetKey3

func (m *CustomData) GetKey3() int64

func (*CustomData) GetKey4

func (m *CustomData) GetKey4() int64

func (*CustomData) GetKey5

func (m *CustomData) GetKey5() int64

func (*CustomData) GetKeyType

func (m *CustomData) GetKeyType() int64

func (*CustomData) GetModifiedTs

func (m *CustomData) GetModifiedTs() *timestamp.Timestamp

func (*CustomData) Key1Col

func (cd *CustomData) Key1Col() int64

func (*CustomData) Key2Col

func (cd *CustomData) Key2Col() int64

func (*CustomData) Key3Col

func (cd *CustomData) Key3Col() int64

func (*CustomData) Key4Col

func (cd *CustomData) Key4Col() int64

func (*CustomData) Key5Col

func (cd *CustomData) Key5Col() int64

func (*CustomData) KeyTypeCol

func (cd *CustomData) KeyTypeCol() int64

func (*CustomData) ProtoMessage

func (*CustomData) ProtoMessage()

func (*CustomData) Reset

func (m *CustomData) Reset()

func (*CustomData) String

func (m *CustomData) String() string

func (*CustomData) XXX_DiscardUnknown

func (m *CustomData) XXX_DiscardUnknown()

func (*CustomData) XXX_Marshal

func (m *CustomData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CustomData) XXX_Merge

func (m *CustomData) XXX_Merge(src proto.Message)

func (*CustomData) XXX_Size

func (m *CustomData) XXX_Size() int

func (*CustomData) XXX_Unmarshal

func (m *CustomData) XXX_Unmarshal(b []byte) error

type Pic

type Pic struct {
	PicId      int64                `protobuf:"varint,1,opt,name=pic_id,json=picId,proto3" json:"pic_id,omitempty"`
	File       *Pic_File            `protobuf:"bytes,22,opt,name=file,proto3" json:"file,omitempty"`
	CreatedTs  *timestamp.Timestamp `protobuf:"bytes,10,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"`
	ModifiedTs *timestamp.Timestamp `protobuf:"bytes,11,opt,name=modified_ts,json=modifiedTs,proto3" json:"modified_ts,omitempty"`
	// If present, the pic is on the path to removal.  When the pic is marked
	// for deletion, it is delisted from normal indexing operations.  When the
	// pic is actually "deleted" only the pic object is removed.
	DeletionStatus *Pic_DeletionStatus `protobuf:"bytes,12,opt,name=deletion_status,json=deletionStatus,proto3" json:"deletion_status,omitempty"`
	ViewCount      int64               `protobuf:"varint,14,opt,name=view_count,json=viewCount,proto3" json:"view_count,omitempty"`
	Source         []*Pic_FileSource   `protobuf:"bytes,15,rep,name=source,proto3" json:"source,omitempty"`
	// The denormalized sum of upvotes for this pic
	VoteUp int64 `protobuf:"varint,17,opt,name=vote_up,json=voteUp,proto3" json:"vote_up,omitempty"`
	// The denormalized sum of downvotes for this pic
	VoteDown int64 `protobuf:"varint,18,opt,name=vote_down,json=voteDown,proto3" json:"vote_down,omitempty"`
	// Extra information that may not fit into the schema
	Ext map[string]*any.Any `` /* 148-byte string literal not displayed */
	// represents thumbnails for this pic
	Thumbnail []*Pic_File `protobuf:"bytes,21,rep,name=thumbnail,proto3" json:"thumbnail,omitempty"`
	// alternate but equivalent forms of this file.
	Derived              []*Pic_File `protobuf:"bytes,23,rep,name=derived,proto3" json:"derived,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*Pic) Descriptor

func (*Pic) Descriptor() ([]byte, []int)

func (*Pic) GetCreatedTime

func (p *Pic) GetCreatedTime() time.Time

func (*Pic) GetCreatedTs

func (m *Pic) GetCreatedTs() *timestamp.Timestamp

func (*Pic) GetDeletionStatus

func (m *Pic) GetDeletionStatus() *Pic_DeletionStatus

func (*Pic) GetDerived

func (m *Pic) GetDerived() []*Pic_File

func (*Pic) GetExt

func (m *Pic) GetExt() map[string]*any.Any

func (*Pic) GetFile

func (m *Pic) GetFile() *Pic_File

func (*Pic) GetModifiedTime

func (p *Pic) GetModifiedTime() time.Time

func (*Pic) GetModifiedTs

func (m *Pic) GetModifiedTs() *timestamp.Timestamp

func (*Pic) GetPicId

func (m *Pic) GetPicId() int64

func (*Pic) GetSource

func (m *Pic) GetSource() []*Pic_FileSource

func (*Pic) GetThumbnail

func (m *Pic) GetThumbnail() []*Pic_File

func (*Pic) GetVarPicId

func (p *Pic) GetVarPicId() string

func (*Pic) GetViewCount

func (m *Pic) GetViewCount() int64

func (*Pic) GetVoteDown

func (m *Pic) GetVoteDown() int64

func (*Pic) GetVoteUp

func (m *Pic) GetVoteUp() int64

func (*Pic) HardDeleted

func (p *Pic) HardDeleted() bool

func (*Pic) IdCol

func (p *Pic) IdCol() int64

func (*Pic) IndexOrder

func (p *Pic) IndexOrder() int64

func (*Pic) IndexOrderCol

func (p *Pic) IndexOrderCol() int64

func (*Pic) LowerScoreBound

func (p *Pic) LowerScoreBound() int32

Just use 30 bits, incase of accidental float overflow In a perfect world, wilson assures that the value is 0<=x<=1

func (*Pic) NonHiddenIndexOrder

func (p *Pic) NonHiddenIndexOrder() int64

func (*Pic) ProtoMessage

func (*Pic) ProtoMessage()

func (*Pic) Reset

func (m *Pic) Reset()

func (*Pic) SetCreatedTime

func (p *Pic) SetCreatedTime(now time.Time)

func (*Pic) SetModifiedTime

func (p *Pic) SetModifiedTime(now time.Time)

func (*Pic) SoftDeleted

func (p *Pic) SoftDeleted() bool

func (*Pic) String

func (m *Pic) String() string

func (*Pic) UpperScoreBound

func (p *Pic) UpperScoreBound() int32

func (*Pic) Version

func (p *Pic) Version() int64

func (*Pic) WilsonScoreInterval

func (p *Pic) WilsonScoreInterval(z float64) (lo float64, hi float64)

TODO: test

func (*Pic) XXX_DiscardUnknown

func (m *Pic) XXX_DiscardUnknown()

func (*Pic) XXX_Marshal

func (m *Pic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Pic) XXX_Merge

func (m *Pic) XXX_Merge(src proto.Message)

func (*Pic) XXX_Size

func (m *Pic) XXX_Size() int

func (*Pic) XXX_Unmarshal

func (m *Pic) XXX_Unmarshal(b []byte) error

type PicComment

type PicComment struct {
	PicId     int64 `protobuf:"varint,1,opt,name=pic_id,json=picId,proto3" json:"pic_id,omitempty"`
	CommentId int64 `protobuf:"varint,2,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
	// parent id of this comment.  0 if root.
	CommentParentId int64 `protobuf:"varint,3,opt,name=comment_parent_id,json=commentParentId,proto3" json:"comment_parent_id,omitempty"`
	// author
	UserId int64  `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Text   string `protobuf:"bytes,7,opt,name=text,proto3" json:"text,omitempty"`
	// The denormalized sum of upvotes for this comment
	VoteUp int64 `protobuf:"varint,9,opt,name=vote_up,json=voteUp,proto3" json:"vote_up,omitempty"`
	// The denormalized sum of downvotes for this comment
	VoteDown   int64                `protobuf:"varint,10,opt,name=vote_down,json=voteDown,proto3" json:"vote_down,omitempty"`
	CreatedTs  *timestamp.Timestamp `protobuf:"bytes,5,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"`
	ModifiedTs *timestamp.Timestamp `protobuf:"bytes,6,opt,name=modified_ts,json=modifiedTs,proto3" json:"modified_ts,omitempty"`
	// Extra information that may not fit into the schema
	Ext                  map[string]*any.Any `` /* 147-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*PicComment) CommentIdCol

func (pc *PicComment) CommentIdCol() int64

func (*PicComment) Descriptor

func (*PicComment) Descriptor() ([]byte, []int)

func (*PicComment) GetCommentId

func (m *PicComment) GetCommentId() int64

func (*PicComment) GetCommentParentId

func (m *PicComment) GetCommentParentId() int64

func (*PicComment) GetCreatedTime

func (pc *PicComment) GetCreatedTime() time.Time

func (*PicComment) GetCreatedTs

func (m *PicComment) GetCreatedTs() *timestamp.Timestamp

func (*PicComment) GetExt

func (m *PicComment) GetExt() map[string]*any.Any

func (*PicComment) GetModifiedTime

func (pc *PicComment) GetModifiedTime() time.Time

func (*PicComment) GetModifiedTs

func (m *PicComment) GetModifiedTs() *timestamp.Timestamp

func (*PicComment) GetPicId

func (m *PicComment) GetPicId() int64

func (*PicComment) GetText

func (m *PicComment) GetText() string

func (*PicComment) GetUserId

func (m *PicComment) GetUserId() int64

func (*PicComment) GetVoteDown

func (m *PicComment) GetVoteDown() int64

func (*PicComment) GetVoteUp

func (m *PicComment) GetVoteUp() int64

func (*PicComment) PicIdCol

func (pc *PicComment) PicIdCol() int64

func (*PicComment) ProtoMessage

func (*PicComment) ProtoMessage()

func (*PicComment) Reset

func (m *PicComment) Reset()

func (*PicComment) SetCreatedTime

func (pc *PicComment) SetCreatedTime(now time.Time)

func (*PicComment) SetModifiedTime

func (pc *PicComment) SetModifiedTime(now time.Time)

func (*PicComment) String

func (m *PicComment) String() string

func (*PicComment) Version

func (pc *PicComment) Version() int64

func (*PicComment) XXX_DiscardUnknown

func (m *PicComment) XXX_DiscardUnknown()

func (*PicComment) XXX_Marshal

func (m *PicComment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PicComment) XXX_Merge

func (m *PicComment) XXX_Merge(src proto.Message)

func (*PicComment) XXX_Size

func (m *PicComment) XXX_Size() int

func (*PicComment) XXX_Unmarshal

func (m *PicComment) XXX_Unmarshal(b []byte) error

type PicCommentVote

type PicCommentVote struct {
	PicId     int64 `protobuf:"varint,1,opt,name=pic_id,json=picId,proto3" json:"pic_id,omitempty"`
	CommentId int64 `protobuf:"varint,2,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
	UserId    int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// Index is a tie breaker for anonymous votes.  It is always 0 if user_id is not 0.  It is
	// always positive.
	Index      int64                `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
	Vote       PicCommentVote_Vote  `protobuf:"varint,5,opt,name=vote,proto3,enum=pixur.be.schema.PicCommentVote_Vote" json:"vote,omitempty"`
	CreatedTs  *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"`
	ModifiedTs *timestamp.Timestamp `protobuf:"bytes,7,opt,name=modified_ts,json=modifiedTs,proto3" json:"modified_ts,omitempty"`
	// Extra information that may not fit into the schema
	Ext                  map[string]*any.Any `` /* 147-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*PicCommentVote) CommentIdCol

func (pcv *PicCommentVote) CommentIdCol() int64

func (*PicCommentVote) Descriptor

func (*PicCommentVote) Descriptor() ([]byte, []int)

func (*PicCommentVote) GetCommentId

func (m *PicCommentVote) GetCommentId() int64

func (*PicCommentVote) GetCreatedTs

func (m *PicCommentVote) GetCreatedTs() *timestamp.Timestamp

func (*PicCommentVote) GetExt

func (m *PicCommentVote) GetExt() map[string]*any.Any

func (*PicCommentVote) GetIndex

func (m *PicCommentVote) GetIndex() int64

func (*PicCommentVote) GetModifiedTs

func (m *PicCommentVote) GetModifiedTs() *timestamp.Timestamp

func (*PicCommentVote) GetPicId

func (m *PicCommentVote) GetPicId() int64

func (*PicCommentVote) GetUserId

func (m *PicCommentVote) GetUserId() int64

func (*PicCommentVote) GetVote

func (m *PicCommentVote) GetVote() PicCommentVote_Vote

func (*PicCommentVote) IndexCol

func (pcv *PicCommentVote) IndexCol() int64

func (*PicCommentVote) PicIdCol

func (pcv *PicCommentVote) PicIdCol() int64

func (*PicCommentVote) ProtoMessage

func (*PicCommentVote) ProtoMessage()

func (*PicCommentVote) Reset

func (m *PicCommentVote) Reset()

func (*PicCommentVote) String

func (m *PicCommentVote) String() string

func (*PicCommentVote) UserIdCol

func (pcv *PicCommentVote) UserIdCol() int64

func (*PicCommentVote) Version

func (pcv *PicCommentVote) Version() int64

func (*PicCommentVote) XXX_DiscardUnknown

func (m *PicCommentVote) XXX_DiscardUnknown()

func (*PicCommentVote) XXX_Marshal

func (m *PicCommentVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PicCommentVote) XXX_Merge

func (m *PicCommentVote) XXX_Merge(src proto.Message)

func (*PicCommentVote) XXX_Size

func (m *PicCommentVote) XXX_Size() int

func (*PicCommentVote) XXX_Unmarshal

func (m *PicCommentVote) XXX_Unmarshal(b []byte) error

type PicCommentVote_Vote

type PicCommentVote_Vote int32
const (
	PicCommentVote_UNKNOWN PicCommentVote_Vote = 0
	PicCommentVote_UP      PicCommentVote_Vote = 1
	PicCommentVote_DOWN    PicCommentVote_Vote = 2
	PicCommentVote_NEUTRAL PicCommentVote_Vote = 3
)

func (PicCommentVote_Vote) EnumDescriptor

func (PicCommentVote_Vote) EnumDescriptor() ([]byte, []int)

func (PicCommentVote_Vote) String

func (x PicCommentVote_Vote) String() string

type PicIdent

type PicIdent struct {
	PicId int64         `protobuf:"varint,1,opt,name=pic_id,json=picId,proto3" json:"pic_id,omitempty"`
	Type  PicIdent_Type `protobuf:"varint,2,opt,name=type,proto3,enum=pixur.be.schema.PicIdent_Type" json:"type,omitempty"`
	Value []byte        `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// dct0 are the upper 8x8 corner of the 32x32 dct of the image
	Dct0Values []float32 `protobuf:"fixed32,4,rep,packed,name=dct0_values,json=dct0Values,proto3" json:"dct0_values,omitempty"`
	// Extra information that may not fit into the schema
	Ext                  map[string]*any.Any `` /* 147-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

A picture identifier

func (*PicIdent) Descriptor

func (*PicIdent) Descriptor() ([]byte, []int)

func (*PicIdent) GetDct0Values

func (m *PicIdent) GetDct0Values() []float32

func (*PicIdent) GetExt

func (m *PicIdent) GetExt() map[string]*any.Any

func (*PicIdent) GetPicId

func (m *PicIdent) GetPicId() int64

func (*PicIdent) GetType

func (m *PicIdent) GetType() PicIdent_Type

func (*PicIdent) GetValue

func (m *PicIdent) GetValue() []byte

func (*PicIdent) PicIdCol

func (pi *PicIdent) PicIdCol() int64

func (*PicIdent) ProtoMessage

func (*PicIdent) ProtoMessage()

func (*PicIdent) Reset

func (m *PicIdent) Reset()

func (*PicIdent) String

func (m *PicIdent) String() string

func (*PicIdent) TypeCol

func (pi *PicIdent) TypeCol() PicIdent_Type

func (*PicIdent) ValueCol

func (pi *PicIdent) ValueCol() []byte

func (*PicIdent) XXX_DiscardUnknown

func (m *PicIdent) XXX_DiscardUnknown()

func (*PicIdent) XXX_Marshal

func (m *PicIdent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PicIdent) XXX_Merge

func (m *PicIdent) XXX_Merge(src proto.Message)

func (*PicIdent) XXX_Size

func (m *PicIdent) XXX_Size() int

func (*PicIdent) XXX_Unmarshal

func (m *PicIdent) XXX_Unmarshal(b []byte) error

type PicIdent_Type

type PicIdent_Type int32
const (
	PicIdent_UNKNOWN    PicIdent_Type = 0
	PicIdent_SHA1       PicIdent_Type = 2
	PicIdent_MD5        PicIdent_Type = 3
	PicIdent_DCT_0      PicIdent_Type = 4
	PicIdent_SHA512_256 PicIdent_Type = 5
)

func (PicIdent_Type) EnumDescriptor

func (PicIdent_Type) EnumDescriptor() ([]byte, []int)

func (PicIdent_Type) String

func (x PicIdent_Type) String() string

type PicTag

type PicTag struct {
	PicId int64  `protobuf:"varint,1,opt,name=pic_id,json=picId,proto3" json:"pic_id,omitempty"`
	TagId int64  `protobuf:"varint,2,opt,name=tag_id,json=tagId,proto3" json:"tag_id,omitempty"`
	Name  string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// The user who originally created this tag.  optional.
	UserId     int64                `protobuf:"varint,8,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	CreatedTs  *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"`
	ModifiedTs *timestamp.Timestamp `protobuf:"bytes,7,opt,name=modified_ts,json=modifiedTs,proto3" json:"modified_ts,omitempty"`
	// Extra information that may not fit into the schema
	Ext                  map[string]*any.Any `` /* 147-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*PicTag) Descriptor

func (*PicTag) Descriptor() ([]byte, []int)

func (*PicTag) GetCreatedTime

func (pt *PicTag) GetCreatedTime() time.Time

func (*PicTag) GetCreatedTs

func (m *PicTag) GetCreatedTs() *timestamp.Timestamp

func (*PicTag) GetExt

func (m *PicTag) GetExt() map[string]*any.Any

func (*PicTag) GetModifiedTime

func (pt *PicTag) GetModifiedTime() time.Time

func (*PicTag) GetModifiedTs

func (m *PicTag) GetModifiedTs() *timestamp.Timestamp

func (*PicTag) GetName

func (m *PicTag) GetName() string

func (*PicTag) GetPicId

func (m *PicTag) GetPicId() int64

func (*PicTag) GetTagId

func (m *PicTag) GetTagId() int64

func (*PicTag) GetUserId

func (m *PicTag) GetUserId() int64

func (*PicTag) PicIdCol

func (pt *PicTag) PicIdCol() int64

func (*PicTag) ProtoMessage

func (*PicTag) ProtoMessage()

func (*PicTag) Reset

func (m *PicTag) Reset()

func (*PicTag) SetCreatedTime

func (pt *PicTag) SetCreatedTime(now time.Time)

func (*PicTag) SetModifiedTime

func (pt *PicTag) SetModifiedTime(now time.Time)

func (*PicTag) String

func (m *PicTag) String() string

func (*PicTag) TagIdCol

func (pt *PicTag) TagIdCol() int64

func (*PicTag) Version

func (pt *PicTag) Version() int64

func (*PicTag) XXX_DiscardUnknown

func (m *PicTag) XXX_DiscardUnknown()

func (*PicTag) XXX_Marshal

func (m *PicTag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PicTag) XXX_Merge

func (m *PicTag) XXX_Merge(src proto.Message)

func (*PicTag) XXX_Size

func (m *PicTag) XXX_Size() int

func (*PicTag) XXX_Unmarshal

func (m *PicTag) XXX_Unmarshal(b []byte) error

type PicVote

type PicVote struct {
	PicId  int64 `protobuf:"varint,1,opt,name=pic_id,json=picId,proto3" json:"pic_id,omitempty"`
	UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// Index is a tie breaker for anonymous votes.  It is always 0 if user_id is not 0.  It is
	// always positive.
	Index      int64                `protobuf:"varint,7,opt,name=index,proto3" json:"index,omitempty"`
	Vote       PicVote_Vote         `protobuf:"varint,3,opt,name=vote,proto3,enum=pixur.be.schema.PicVote_Vote" json:"vote,omitempty"`
	CreatedTs  *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"`
	ModifiedTs *timestamp.Timestamp `protobuf:"bytes,5,opt,name=modified_ts,json=modifiedTs,proto3" json:"modified_ts,omitempty"`
	// Extra information that may not fit into the schema
	Ext                  map[string]*any.Any `` /* 147-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*PicVote) Descriptor

func (*PicVote) Descriptor() ([]byte, []int)

func (*PicVote) GetCreatedTime

func (pv *PicVote) GetCreatedTime() time.Time

func (*PicVote) GetCreatedTs

func (m *PicVote) GetCreatedTs() *timestamp.Timestamp

func (*PicVote) GetExt

func (m *PicVote) GetExt() map[string]*any.Any

func (*PicVote) GetIndex

func (m *PicVote) GetIndex() int64

func (*PicVote) GetModifiedTime

func (pv *PicVote) GetModifiedTime() time.Time

func (*PicVote) GetModifiedTs

func (m *PicVote) GetModifiedTs() *timestamp.Timestamp

func (*PicVote) GetPicId

func (m *PicVote) GetPicId() int64

func (*PicVote) GetUserId

func (m *PicVote) GetUserId() int64

func (*PicVote) GetVote

func (m *PicVote) GetVote() PicVote_Vote

func (*PicVote) IndexCol

func (pv *PicVote) IndexCol() int64

func (*PicVote) PicIdCol

func (pv *PicVote) PicIdCol() int64

func (*PicVote) ProtoMessage

func (*PicVote) ProtoMessage()

func (*PicVote) Reset

func (m *PicVote) Reset()

func (*PicVote) SetCreatedTime

func (pv *PicVote) SetCreatedTime(now time.Time)

func (*PicVote) SetModifiedTime

func (pv *PicVote) SetModifiedTime(now time.Time)

func (*PicVote) String

func (m *PicVote) String() string

func (*PicVote) UserIdCol

func (pv *PicVote) UserIdCol() int64

func (*PicVote) Version

func (pv *PicVote) Version() int64

func (*PicVote) XXX_DiscardUnknown

func (m *PicVote) XXX_DiscardUnknown()

func (*PicVote) XXX_Marshal

func (m *PicVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PicVote) XXX_Merge

func (m *PicVote) XXX_Merge(src proto.Message)

func (*PicVote) XXX_Size

func (m *PicVote) XXX_Size() int

func (*PicVote) XXX_Unmarshal

func (m *PicVote) XXX_Unmarshal(b []byte) error

type PicVote_Vote

type PicVote_Vote int32
const (
	PicVote_UNKNOWN PicVote_Vote = 0
	PicVote_UP      PicVote_Vote = 1
	PicVote_DOWN    PicVote_Vote = 2
	PicVote_NEUTRAL PicVote_Vote = 3
)

func (PicVote_Vote) EnumDescriptor

func (PicVote_Vote) EnumDescriptor() ([]byte, []int)

func (PicVote_Vote) String

func (x PicVote_Vote) String() string

type Pic_DeletionStatus

type Pic_DeletionStatus struct {
	// Represents when this Pic was marked for deletion
	MarkedDeletedTs *timestamp.Timestamp `protobuf:"bytes,1,opt,name=marked_deleted_ts,json=markedDeletedTs,proto3" json:"marked_deleted_ts,omitempty"`
	// Represents when this picture will be auto deleted.  Note that the Pic
	// may exist for a short period after this time.  (may be absent)
	PendingDeletedTs *timestamp.Timestamp `protobuf:"bytes,2,opt,name=pending_deleted_ts,json=pendingDeletedTs,proto3" json:"pending_deleted_ts,omitempty"`
	// Determines when Pic was actually deleted.  (present after the Pic is
	// hard deleted, a.k.a purging)
	ActualDeletedTs *timestamp.Timestamp `protobuf:"bytes,3,opt,name=actual_deleted_ts,json=actualDeletedTs,proto3" json:"actual_deleted_ts,omitempty"`
	// Gives an explanation for why this pic was removed.
	Details string `protobuf:"bytes,4,opt,name=details,proto3" json:"details,omitempty"`
	// The reason the pic was removed.
	Reason Pic_DeletionStatus_Reason `protobuf:"varint,5,opt,name=reason,proto3,enum=pixur.be.schema.Pic_DeletionStatus_Reason" json:"reason,omitempty"`
	// Determines if this pic can be undeleted if re uploaded.  Currently the
	// only reason is due to disk space concerns.
	Temporary            bool     `protobuf:"varint,6,opt,name=temporary,proto3" json:"temporary,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Pic_DeletionStatus) Descriptor

func (*Pic_DeletionStatus) Descriptor() ([]byte, []int)

func (*Pic_DeletionStatus) GetActualDeletedTs

func (m *Pic_DeletionStatus) GetActualDeletedTs() *timestamp.Timestamp

func (*Pic_DeletionStatus) GetDetails

func (m *Pic_DeletionStatus) GetDetails() string

func (*Pic_DeletionStatus) GetMarkedDeletedTs

func (m *Pic_DeletionStatus) GetMarkedDeletedTs() *timestamp.Timestamp

func (*Pic_DeletionStatus) GetPendingDeletedTs

func (m *Pic_DeletionStatus) GetPendingDeletedTs() *timestamp.Timestamp

func (*Pic_DeletionStatus) GetReason

func (*Pic_DeletionStatus) GetTemporary

func (m *Pic_DeletionStatus) GetTemporary() bool

func (*Pic_DeletionStatus) ProtoMessage

func (*Pic_DeletionStatus) ProtoMessage()

func (*Pic_DeletionStatus) Reset

func (m *Pic_DeletionStatus) Reset()

func (*Pic_DeletionStatus) String

func (m *Pic_DeletionStatus) String() string

func (*Pic_DeletionStatus) XXX_DiscardUnknown

func (m *Pic_DeletionStatus) XXX_DiscardUnknown()

func (*Pic_DeletionStatus) XXX_Marshal

func (m *Pic_DeletionStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Pic_DeletionStatus) XXX_Merge

func (m *Pic_DeletionStatus) XXX_Merge(src proto.Message)

func (*Pic_DeletionStatus) XXX_Size

func (m *Pic_DeletionStatus) XXX_Size() int

func (*Pic_DeletionStatus) XXX_Unmarshal

func (m *Pic_DeletionStatus) XXX_Unmarshal(b []byte) error

type Pic_DeletionStatus_Reason

type Pic_DeletionStatus_Reason int32
const (
	// The reason is not know, due to limitations of proto
	Pic_DeletionStatus_UNKNOWN Pic_DeletionStatus_Reason = 0
	// No specific reason.  This is a catch-all reason.
	Pic_DeletionStatus_NONE Pic_DeletionStatus_Reason = 1
	// The pic is in violation of the rules.
	Pic_DeletionStatus_RULE_VIOLATION Pic_DeletionStatus_Reason = 2
)

func (Pic_DeletionStatus_Reason) EnumDescriptor

func (Pic_DeletionStatus_Reason) EnumDescriptor() ([]byte, []int)

func (Pic_DeletionStatus_Reason) String

func (x Pic_DeletionStatus_Reason) String() string

type Pic_File

type Pic_File struct {
	Index      int64                `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Size       int64                `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	Mime       Pic_File_Mime        `protobuf:"varint,3,opt,name=mime,proto3,enum=pixur.be.schema.Pic_File_Mime" json:"mime,omitempty"`
	Width      int64                `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"`
	Height     int64                `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
	CreatedTs  *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"`
	ModifiedTs *timestamp.Timestamp `protobuf:"bytes,7,opt,name=modified_ts,json=modifiedTs,proto3" json:"modified_ts,omitempty"`
	// Only present on animated images.
	AnimationInfo        *AnimationInfo `protobuf:"bytes,8,opt,name=animation_info,json=animationInfo,proto3" json:"animation_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*Pic_File) Descriptor

func (*Pic_File) Descriptor() ([]byte, []int)

func (*Pic_File) GetAnimationInfo

func (m *Pic_File) GetAnimationInfo() *AnimationInfo

func (*Pic_File) GetCreatedTs

func (m *Pic_File) GetCreatedTs() *timestamp.Timestamp

func (*Pic_File) GetHeight

func (m *Pic_File) GetHeight() int64

func (*Pic_File) GetIndex

func (m *Pic_File) GetIndex() int64

func (*Pic_File) GetMime

func (m *Pic_File) GetMime() Pic_File_Mime

func (*Pic_File) GetModifiedTs

func (m *Pic_File) GetModifiedTs() *timestamp.Timestamp

func (*Pic_File) GetSize

func (m *Pic_File) GetSize() int64

func (*Pic_File) GetWidth

func (m *Pic_File) GetWidth() int64

func (*Pic_File) ProtoMessage

func (*Pic_File) ProtoMessage()

func (*Pic_File) Reset

func (m *Pic_File) Reset()

func (*Pic_File) String

func (m *Pic_File) String() string

func (*Pic_File) XXX_DiscardUnknown

func (m *Pic_File) XXX_DiscardUnknown()

func (*Pic_File) XXX_Marshal

func (m *Pic_File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Pic_File) XXX_Merge

func (m *Pic_File) XXX_Merge(src proto.Message)

func (*Pic_File) XXX_Size

func (m *Pic_File) XXX_Size() int

func (*Pic_File) XXX_Unmarshal

func (m *Pic_File) XXX_Unmarshal(b []byte) error

type Pic_FileSource

type Pic_FileSource struct {
	// url is optional and is the location the pic came from.
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// referrer is optional and is what website the pic was linked to from.
	Referrer string `protobuf:"bytes,2,opt,name=referrer,proto3" json:"referrer,omitempty"`
	// created_ts is the time the file source was added.
	CreatedTs *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"`
	// user_id is usually unique, but there may be occasional duplicates
	UserId int64 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// name is optional and the file name for this source.  It may be derived
	// from the url, from the content-disposition, or from the user who
	// upload the file.
	Name                 string   `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Pic_FileSource) Descriptor

func (*Pic_FileSource) Descriptor() ([]byte, []int)

func (*Pic_FileSource) GetCreatedTs

func (m *Pic_FileSource) GetCreatedTs() *timestamp.Timestamp

func (*Pic_FileSource) GetName

func (m *Pic_FileSource) GetName() string

func (*Pic_FileSource) GetReferrer

func (m *Pic_FileSource) GetReferrer() string

func (*Pic_FileSource) GetUrl

func (m *Pic_FileSource) GetUrl() string

func (*Pic_FileSource) GetUserId

func (m *Pic_FileSource) GetUserId() int64

func (*Pic_FileSource) ProtoMessage

func (*Pic_FileSource) ProtoMessage()

func (*Pic_FileSource) Reset

func (m *Pic_FileSource) Reset()

func (*Pic_FileSource) String

func (m *Pic_FileSource) String() string

func (*Pic_FileSource) XXX_DiscardUnknown

func (m *Pic_FileSource) XXX_DiscardUnknown()

func (*Pic_FileSource) XXX_Marshal

func (m *Pic_FileSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Pic_FileSource) XXX_Merge

func (m *Pic_FileSource) XXX_Merge(src proto.Message)

func (*Pic_FileSource) XXX_Size

func (m *Pic_FileSource) XXX_Size() int

func (*Pic_FileSource) XXX_Unmarshal

func (m *Pic_FileSource) XXX_Unmarshal(b []byte) error

type Pic_File_Mime

type Pic_File_Mime int32
const (
	Pic_File_UNKNOWN Pic_File_Mime = 0
	Pic_File_JPEG    Pic_File_Mime = 1
	Pic_File_GIF     Pic_File_Mime = 2
	Pic_File_PNG     Pic_File_Mime = 3
	Pic_File_WEBM    Pic_File_Mime = 4
	Pic_File_MP4     Pic_File_Mime = 5
)

func (Pic_File_Mime) EnumDescriptor

func (Pic_File_Mime) EnumDescriptor() ([]byte, []int)

func (Pic_File_Mime) String

func (x Pic_File_Mime) String() string

type Tag

type Tag struct {
	TagId      int64                `protobuf:"varint,1,opt,name=tag_id,json=tagId,proto3" json:"tag_id,omitempty"`
	Name       string               `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	UsageCount int64                `protobuf:"varint,3,opt,name=usage_count,json=usageCount,proto3" json:"usage_count,omitempty"`
	CreatedTs  *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"`
	ModifiedTs *timestamp.Timestamp `protobuf:"bytes,7,opt,name=modified_ts,json=modifiedTs,proto3" json:"modified_ts,omitempty"`
	// Extra information that may not fit into the schema
	Ext                  map[string]*any.Any `` /* 147-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*Tag) Descriptor

func (*Tag) Descriptor() ([]byte, []int)

func (*Tag) GetCreatedTime

func (t *Tag) GetCreatedTime() time.Time

func (*Tag) GetCreatedTs

func (m *Tag) GetCreatedTs() *timestamp.Timestamp

func (*Tag) GetExt

func (m *Tag) GetExt() map[string]*any.Any

func (*Tag) GetModifiedTime

func (t *Tag) GetModifiedTime() time.Time

func (*Tag) GetModifiedTs

func (m *Tag) GetModifiedTs() *timestamp.Timestamp

func (*Tag) GetName

func (m *Tag) GetName() string

func (*Tag) GetTagId

func (m *Tag) GetTagId() int64

func (*Tag) GetUsageCount

func (m *Tag) GetUsageCount() int64

func (*Tag) IdCol

func (t *Tag) IdCol() int64

func (*Tag) NameCol

func (t *Tag) NameCol() string

func (*Tag) ProtoMessage

func (*Tag) ProtoMessage()

func (*Tag) Reset

func (m *Tag) Reset()

func (*Tag) SetCreatedTime

func (t *Tag) SetCreatedTime(now time.Time)

func (*Tag) SetModifiedTime

func (t *Tag) SetModifiedTime(now time.Time)

func (*Tag) String

func (m *Tag) String() string

func (*Tag) Version

func (t *Tag) Version() int64

func (*Tag) XXX_DiscardUnknown

func (m *Tag) XXX_DiscardUnknown()

func (*Tag) XXX_Marshal

func (m *Tag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Tag) XXX_Merge

func (m *Tag) XXX_Merge(src proto.Message)

func (*Tag) XXX_Size

func (m *Tag) XXX_Size() int

func (*Tag) XXX_Unmarshal

func (m *Tag) XXX_Unmarshal(b []byte) error

type User

type User struct {
	UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// Hashed secret token
	Secret []byte `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
	// Identity of the user, usually an email.
	Ident      string               `protobuf:"bytes,3,opt,name=ident,proto3" json:"ident,omitempty"`
	CreatedTs  *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"`
	ModifiedTs *timestamp.Timestamp `protobuf:"bytes,5,opt,name=modified_ts,json=modifiedTs,proto3" json:"modified_ts,omitempty"`
	LastSeenTs *timestamp.Timestamp `protobuf:"bytes,6,opt,name=last_seen_ts,json=lastSeenTs,proto3" json:"last_seen_ts,omitempty"`
	Capability []User_Capability    `protobuf:"varint,7,rep,packed,name=capability,proto3,enum=pixur.be.schema.User_Capability" json:"capability,omitempty"`
	// Always increment-then-get
	NextTokenId int64        `protobuf:"varint,8,opt,name=next_token_id,json=nextTokenId,proto3" json:"next_token_id,omitempty"`
	UserToken   []*UserToken `protobuf:"bytes,9,rep,name=user_token,json=userToken,proto3" json:"user_token,omitempty"`
	// Extra information that may not fit into the schema
	Ext                  map[string]*any.Any `` /* 148-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*User) Descriptor

func (*User) Descriptor() ([]byte, []int)

func (*User) GetCapability

func (m *User) GetCapability() []User_Capability

func (*User) GetCreatedTime

func (u *User) GetCreatedTime() time.Time

func (*User) GetCreatedTs

func (m *User) GetCreatedTs() *timestamp.Timestamp

func (*User) GetExt

func (m *User) GetExt() map[string]*any.Any

func (*User) GetIdent

func (m *User) GetIdent() string

func (*User) GetLastSeenTime

func (u *User) GetLastSeenTime() *time.Time

func (*User) GetLastSeenTs

func (m *User) GetLastSeenTs() *timestamp.Timestamp

func (*User) GetModifiedTime

func (u *User) GetModifiedTime() time.Time

func (*User) GetModifiedTs

func (m *User) GetModifiedTs() *timestamp.Timestamp

func (*User) GetNextTokenId

func (m *User) GetNextTokenId() int64

func (*User) GetSecret

func (m *User) GetSecret() []byte

func (*User) GetUserId

func (m *User) GetUserId() int64

func (*User) GetUserToken

func (m *User) GetUserToken() []*UserToken

func (*User) IdCol

func (u *User) IdCol() int64

func (*User) IdentCol

func (u *User) IdentCol() string

func (*User) IsAnon

func (u *User) IsAnon() bool

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) SetCreatedTime

func (u *User) SetCreatedTime(now time.Time)

func (*User) SetLastSeenTime

func (u *User) SetLastSeenTime(now time.Time)

func (*User) SetModifiedTime

func (u *User) SetModifiedTime(now time.Time)

func (*User) String

func (m *User) String() string

func (*User) Version

func (u *User) Version() int64

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*User) XXX_Merge

func (m *User) XXX_Merge(src proto.Message)

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

func (m *User) XXX_Unmarshal(b []byte) error

type UserEvent

type UserEvent struct {
	UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// If multiple events are being created for a single pic, this acts as a tie breaker.
	Index int64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	// Indexed and can't change
	CreatedTs  *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"`
	ModifiedTs *timestamp.Timestamp `protobuf:"bytes,4,opt,name=modified_ts,json=modifiedTs,proto3" json:"modified_ts,omitempty"`
	// Types that are valid to be assigned to Evt:
	//	*UserEvent_OutgoingUpsertPicVote_
	//	*UserEvent_IncomingUpsertPicVote_
	//	*UserEvent_OutgoingPicComment_
	//	*UserEvent_IncomingPicComment_
	//	*UserEvent_UpsertPic_
	Evt                  isUserEvent_Evt `protobuf_oneof:"evt"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*UserEvent) CreatedTsCol

func (ue *UserEvent) CreatedTsCol() int64

func (*UserEvent) Descriptor

func (*UserEvent) Descriptor() ([]byte, []int)

func (*UserEvent) GetCreatedTs

func (m *UserEvent) GetCreatedTs() *timestamp.Timestamp

func (*UserEvent) GetEvt

func (m *UserEvent) GetEvt() isUserEvent_Evt

func (*UserEvent) GetIncomingPicComment

func (m *UserEvent) GetIncomingPicComment() *UserEvent_IncomingPicComment

func (*UserEvent) GetIncomingUpsertPicVote

func (m *UserEvent) GetIncomingUpsertPicVote() *UserEvent_IncomingUpsertPicVote

func (*UserEvent) GetIndex

func (m *UserEvent) GetIndex() int64

func (*UserEvent) GetModifiedTs

func (m *UserEvent) GetModifiedTs() *timestamp.Timestamp

func (*UserEvent) GetOutgoingPicComment

func (m *UserEvent) GetOutgoingPicComment() *UserEvent_OutgoingPicComment

func (*UserEvent) GetOutgoingUpsertPicVote

func (m *UserEvent) GetOutgoingUpsertPicVote() *UserEvent_OutgoingUpsertPicVote

func (*UserEvent) GetUpsertPic

func (m *UserEvent) GetUpsertPic() *UserEvent_UpsertPic

func (*UserEvent) GetUserId

func (m *UserEvent) GetUserId() int64

func (*UserEvent) IndexCol

func (ue *UserEvent) IndexCol() int64

func (*UserEvent) ProtoMessage

func (*UserEvent) ProtoMessage()

func (*UserEvent) Reset

func (m *UserEvent) Reset()

func (*UserEvent) String

func (m *UserEvent) String() string

func (*UserEvent) UserIdCol

func (ue *UserEvent) UserIdCol() int64

func (*UserEvent) XXX_DiscardUnknown

func (m *UserEvent) XXX_DiscardUnknown()

func (*UserEvent) XXX_Marshal

func (m *UserEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserEvent) XXX_Merge

func (m *UserEvent) XXX_Merge(src proto.Message)

func (*UserEvent) XXX_OneofWrappers

func (*UserEvent) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*UserEvent) XXX_Size

func (m *UserEvent) XXX_Size() int

func (*UserEvent) XXX_Unmarshal

func (m *UserEvent) XXX_Unmarshal(b []byte) error

type UserEvent_IncomingPicComment

type UserEvent_IncomingPicComment struct {
	// comment_id is the newly created child comment, **not** the one owned by user_id.
	CommentId            int64    `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
	PicId                int64    `protobuf:"varint,2,opt,name=pic_id,json=picId,proto3" json:"pic_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

IncomingPicComment represents commenting on someone else's pic. If a user comments on their own pic, OutgoingPicComment will be used instead of IncomingPicComment.

func (*UserEvent_IncomingPicComment) Descriptor

func (*UserEvent_IncomingPicComment) Descriptor() ([]byte, []int)

func (*UserEvent_IncomingPicComment) GetCommentId

func (m *UserEvent_IncomingPicComment) GetCommentId() int64

func (*UserEvent_IncomingPicComment) GetPicId

func (m *UserEvent_IncomingPicComment) GetPicId() int64

func (*UserEvent_IncomingPicComment) ProtoMessage

func (*UserEvent_IncomingPicComment) ProtoMessage()

func (*UserEvent_IncomingPicComment) Reset

func (m *UserEvent_IncomingPicComment) Reset()

func (*UserEvent_IncomingPicComment) String

func (*UserEvent_IncomingPicComment) XXX_DiscardUnknown

func (m *UserEvent_IncomingPicComment) XXX_DiscardUnknown()

func (*UserEvent_IncomingPicComment) XXX_Marshal

func (m *UserEvent_IncomingPicComment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserEvent_IncomingPicComment) XXX_Merge

func (m *UserEvent_IncomingPicComment) XXX_Merge(src proto.Message)

func (*UserEvent_IncomingPicComment) XXX_Size

func (m *UserEvent_IncomingPicComment) XXX_Size() int

func (*UserEvent_IncomingPicComment) XXX_Unmarshal

func (m *UserEvent_IncomingPicComment) XXX_Unmarshal(b []byte) error

type UserEvent_IncomingPicComment_

type UserEvent_IncomingPicComment_ struct {
	IncomingPicComment *UserEvent_IncomingPicComment `protobuf:"bytes,8,opt,name=incoming_pic_comment,json=incomingPicComment,proto3,oneof"`
}

type UserEvent_IncomingUpsertPicVote

type UserEvent_IncomingUpsertPicVote struct {
	// The user who made the vote
	SubjectUserId        int64    `protobuf:"varint,1,opt,name=subject_user_id,json=subjectUserId,proto3" json:"subject_user_id,omitempty"`
	PicId                int64    `protobuf:"varint,2,opt,name=pic_id,json=picId,proto3" json:"pic_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

IncomingUpsertPicVote represents receiving a vote on a pic they made. If a user self-votes, OutgoingUpsertPicVote will be created instead of IncomingUpsertPicVote.

func (*UserEvent_IncomingUpsertPicVote) Descriptor

func (*UserEvent_IncomingUpsertPicVote) Descriptor() ([]byte, []int)

func (*UserEvent_IncomingUpsertPicVote) GetPicId

func (m *UserEvent_IncomingUpsertPicVote) GetPicId() int64

func (*UserEvent_IncomingUpsertPicVote) GetSubjectUserId

func (m *UserEvent_IncomingUpsertPicVote) GetSubjectUserId() int64

func (*UserEvent_IncomingUpsertPicVote) ProtoMessage

func (*UserEvent_IncomingUpsertPicVote) ProtoMessage()

func (*UserEvent_IncomingUpsertPicVote) Reset

func (*UserEvent_IncomingUpsertPicVote) String

func (*UserEvent_IncomingUpsertPicVote) XXX_DiscardUnknown

func (m *UserEvent_IncomingUpsertPicVote) XXX_DiscardUnknown()

func (*UserEvent_IncomingUpsertPicVote) XXX_Marshal

func (m *UserEvent_IncomingUpsertPicVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserEvent_IncomingUpsertPicVote) XXX_Merge

func (m *UserEvent_IncomingUpsertPicVote) XXX_Merge(src proto.Message)

func (*UserEvent_IncomingUpsertPicVote) XXX_Size

func (m *UserEvent_IncomingUpsertPicVote) XXX_Size() int

func (*UserEvent_IncomingUpsertPicVote) XXX_Unmarshal

func (m *UserEvent_IncomingUpsertPicVote) XXX_Unmarshal(b []byte) error

type UserEvent_IncomingUpsertPicVote_

type UserEvent_IncomingUpsertPicVote_ struct {
	IncomingUpsertPicVote *UserEvent_IncomingUpsertPicVote `protobuf:"bytes,6,opt,name=incoming_upsert_pic_vote,json=incomingUpsertPicVote,proto3,oneof"`
}

type UserEvent_OutgoingPicComment

type UserEvent_OutgoingPicComment struct {
	// comment_id is the comment that this user created.
	CommentId            int64    `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
	PicId                int64    `protobuf:"varint,2,opt,name=pic_id,json=picId,proto3" json:"pic_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

OutgoingPicComment represents commenting on someone else's pic. If a user comments on their own pic, OutgoingPicComment will be used instead of IncomingPicComment.

func (*UserEvent_OutgoingPicComment) Descriptor

func (*UserEvent_OutgoingPicComment) Descriptor() ([]byte, []int)

func (*UserEvent_OutgoingPicComment) GetCommentId

func (m *UserEvent_OutgoingPicComment) GetCommentId() int64

func (*UserEvent_OutgoingPicComment) GetPicId

func (m *UserEvent_OutgoingPicComment) GetPicId() int64

func (*UserEvent_OutgoingPicComment) ProtoMessage

func (*UserEvent_OutgoingPicComment) ProtoMessage()

func (*UserEvent_OutgoingPicComment) Reset

func (m *UserEvent_OutgoingPicComment) Reset()

func (*UserEvent_OutgoingPicComment) String

func (*UserEvent_OutgoingPicComment) XXX_DiscardUnknown

func (m *UserEvent_OutgoingPicComment) XXX_DiscardUnknown()

func (*UserEvent_OutgoingPicComment) XXX_Marshal

func (m *UserEvent_OutgoingPicComment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserEvent_OutgoingPicComment) XXX_Merge

func (m *UserEvent_OutgoingPicComment) XXX_Merge(src proto.Message)

func (*UserEvent_OutgoingPicComment) XXX_Size

func (m *UserEvent_OutgoingPicComment) XXX_Size() int

func (*UserEvent_OutgoingPicComment) XXX_Unmarshal

func (m *UserEvent_OutgoingPicComment) XXX_Unmarshal(b []byte) error

type UserEvent_OutgoingPicComment_

type UserEvent_OutgoingPicComment_ struct {
	OutgoingPicComment *UserEvent_OutgoingPicComment `protobuf:"bytes,7,opt,name=outgoing_pic_comment,json=outgoingPicComment,proto3,oneof"`
}

type UserEvent_OutgoingUpsertPicVote

type UserEvent_OutgoingUpsertPicVote struct {
	PicId                int64    `protobuf:"varint,1,opt,name=pic_id,json=picId,proto3" json:"pic_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

IncomingUpsertPicVote represents sending a vote on a pic another user made. If a user self-votes, OutgoingUpsertPicVote will be created instead of IncomingUpsertPicVote.

func (*UserEvent_OutgoingUpsertPicVote) Descriptor

func (*UserEvent_OutgoingUpsertPicVote) Descriptor() ([]byte, []int)

func (*UserEvent_OutgoingUpsertPicVote) GetPicId

func (m *UserEvent_OutgoingUpsertPicVote) GetPicId() int64

func (*UserEvent_OutgoingUpsertPicVote) ProtoMessage

func (*UserEvent_OutgoingUpsertPicVote) ProtoMessage()

func (*UserEvent_OutgoingUpsertPicVote) Reset

func (*UserEvent_OutgoingUpsertPicVote) String

func (*UserEvent_OutgoingUpsertPicVote) XXX_DiscardUnknown

func (m *UserEvent_OutgoingUpsertPicVote) XXX_DiscardUnknown()

func (*UserEvent_OutgoingUpsertPicVote) XXX_Marshal

func (m *UserEvent_OutgoingUpsertPicVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserEvent_OutgoingUpsertPicVote) XXX_Merge

func (m *UserEvent_OutgoingUpsertPicVote) XXX_Merge(src proto.Message)

func (*UserEvent_OutgoingUpsertPicVote) XXX_Size

func (m *UserEvent_OutgoingUpsertPicVote) XXX_Size() int

func (*UserEvent_OutgoingUpsertPicVote) XXX_Unmarshal

func (m *UserEvent_OutgoingUpsertPicVote) XXX_Unmarshal(b []byte) error

type UserEvent_OutgoingUpsertPicVote_

type UserEvent_OutgoingUpsertPicVote_ struct {
	OutgoingUpsertPicVote *UserEvent_OutgoingUpsertPicVote `protobuf:"bytes,5,opt,name=outgoing_upsert_pic_vote,json=outgoingUpsertPicVote,proto3,oneof"`
}

type UserEvent_UpsertPic

type UserEvent_UpsertPic struct {
	PicId                int64    `protobuf:"varint,1,opt,name=pic_id,json=picId,proto3" json:"pic_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserEvent_UpsertPic) Descriptor

func (*UserEvent_UpsertPic) Descriptor() ([]byte, []int)

func (*UserEvent_UpsertPic) GetPicId

func (m *UserEvent_UpsertPic) GetPicId() int64

func (*UserEvent_UpsertPic) ProtoMessage

func (*UserEvent_UpsertPic) ProtoMessage()

func (*UserEvent_UpsertPic) Reset

func (m *UserEvent_UpsertPic) Reset()

func (*UserEvent_UpsertPic) String

func (m *UserEvent_UpsertPic) String() string

func (*UserEvent_UpsertPic) XXX_DiscardUnknown

func (m *UserEvent_UpsertPic) XXX_DiscardUnknown()

func (*UserEvent_UpsertPic) XXX_Marshal

func (m *UserEvent_UpsertPic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserEvent_UpsertPic) XXX_Merge

func (m *UserEvent_UpsertPic) XXX_Merge(src proto.Message)

func (*UserEvent_UpsertPic) XXX_Size

func (m *UserEvent_UpsertPic) XXX_Size() int

func (*UserEvent_UpsertPic) XXX_Unmarshal

func (m *UserEvent_UpsertPic) XXX_Unmarshal(b []byte) error

type UserEvent_UpsertPic_

type UserEvent_UpsertPic_ struct {
	UpsertPic *UserEvent_UpsertPic `protobuf:"bytes,9,opt,name=upsert_pic,json=upsertPic,proto3,oneof"`
}

type UserToken

type UserToken struct {
	TokenId              int64                `protobuf:"varint,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
	CreatedTs            *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"`
	LastSeenTs           *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_seen_ts,json=lastSeenTs,proto3" json:"last_seen_ts,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Represent the valid auth tokens. When a user logs out, these will be deleted.

func (*UserToken) Descriptor

func (*UserToken) Descriptor() ([]byte, []int)

func (*UserToken) GetCreatedTs

func (m *UserToken) GetCreatedTs() *timestamp.Timestamp

func (*UserToken) GetLastSeenTs

func (m *UserToken) GetLastSeenTs() *timestamp.Timestamp

func (*UserToken) GetTokenId

func (m *UserToken) GetTokenId() int64

func (*UserToken) ProtoMessage

func (*UserToken) ProtoMessage()

func (*UserToken) Reset

func (m *UserToken) Reset()

func (*UserToken) String

func (m *UserToken) String() string

func (*UserToken) XXX_DiscardUnknown

func (m *UserToken) XXX_DiscardUnknown()

func (*UserToken) XXX_Marshal

func (m *UserToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserToken) XXX_Merge

func (m *UserToken) XXX_Merge(src proto.Message)

func (*UserToken) XXX_Size

func (m *UserToken) XXX_Size() int

func (*UserToken) XXX_Unmarshal

func (m *UserToken) XXX_Unmarshal(b []byte) error

type User_Capability

type User_Capability int32
const (
	User_UNKNOWN User_Capability = 0
	// Can this user create and upload pictures
	User_PIC_CREATE User_Capability = 1
	// Can this user view the actual image data (grants pic token)
	User_PIC_READ User_Capability = 2
	// Can this user perform general pic index queries?
	User_PIC_INDEX User_Capability = 3
	// Can this user soft delete a pic?
	User_PIC_SOFT_DELETE User_Capability = 5
	// Can this user hard delete a pic?
	User_PIC_HARD_DELETE User_Capability = 6
	// Can this user purge a pic?
	User_PIC_PURGE User_Capability = 7
	// Can this user increment the pic view counter?
	User_PIC_UPDATE_VIEW_COUNTER User_Capability = 8
	// Can this user add tags and pic tags?
	User_PIC_TAG_CREATE User_Capability = 9
	// Can this user create comments?
	User_PIC_COMMENT_CREATE User_Capability = 10
	// Can this user vote?
	User_PIC_VOTE_CREATE User_Capability = 11
	// Can this user create other users?
	User_USER_CREATE User_Capability = 4
	// Can this user modify capabilities?
	User_USER_UPDATE_CAPABILITY User_Capability = 12
	// Can this user read information about themselves?  This includes
	// everything from USER_READ_PUBLIC, as well as LastSeen, Version, Caps,
	// and Incoming user events.  Also implies USER_READ_PICS,
	// USER_READ_PIC_TAG, USER_READ_PIC_COMMENT, and USER_READ_PIC_VOTE.
	User_USER_READ_SELF User_Capability = 13
	// Can this user read infortmation about others?  This is the same as
	// USER_READ_SELF but for any user.
	User_USER_READ_ALL User_Capability = 14
	// Can this user create arbitrary extension data on a pic?
	User_PIC_EXTENSION_CREATE User_Capability = 15
	// Can this user read arbitrary extension data on a pic?
	User_PIC_EXTENSION_READ User_Capability = 16
	// Can this user create arbitrary extension data on a comment?
	User_PIC_COMMENT_EXTENSION_CREATE User_Capability = 17
	// Can this user read arbitrary extension data on a comment?
	User_PIC_COMMENT_EXTENSION_READ User_Capability = 18
	// Can this user create arbitrary extension data on a pic tag?
	User_PIC_TAG_EXTENSION_CREATE User_Capability = 19
	// Can this user read arbitrary extension data on a pic tag?
	User_PIC_TAG_EXTENSION_READ User_Capability = 20
	// Can this user create arbitrary extension data on a pic vote?
	User_PIC_VOTE_EXTENSION_CREATE User_Capability = 21
	// Can this user read arbitrary extension data on a pic vote?
	User_PIC_VOTE_EXTENSION_READ User_Capability = 22
	// Can this user read public information about other users?  Currently,
	// public means user id, user name, and created time
	User_USER_READ_PUBLIC User_Capability = 23
	// Can this user read pics that other users have created?  Currently,
	// this is Pic.FileSource.User and UserEvents.UpsertPic.
	User_USER_READ_PICS User_Capability = 24
	// Can this user read pic tags that other users have created?  Currently,
	// this is PicTag.UserId.
	User_USER_READ_PIC_TAG User_Capability = 25
	// Can this user read pic comments that other users have created?  This
	// implies that a user can see who else made comments.
	User_USER_READ_PIC_COMMENT User_Capability = 26
	// Can this user read pic votes that other users have created?  This
	// implies that a user can see who voted on a pic, and what votes they
	// have made.
	User_USER_READ_PIC_VOTE User_Capability = 27
	// Can this user vote on pic comments?
	User_PIC_COMMENT_VOTE_CREATE User_Capability = 28
	// Can this user create arbitrary extension data on a comment vote?
	User_PIC_COMMENT_VOTE_EXTENSION_CREATE User_Capability = 29
)

func (User_Capability) EnumDescriptor

func (User_Capability) EnumDescriptor() ([]byte, []int)

func (User_Capability) String

func (x User_Capability) String() string

type Varint

type Varint int64

func (Varint) Append

func (v Varint) Append(dest []byte) []byte

func (*Varint) Decode

func (v *Varint) Decode(raw string) (int, error)

func (*Varint) DecodeAll

func (v *Varint) DecodeAll(raw string) error

func (*Varint) DecodeBytes

func (v *Varint) DecodeBytes(raw []byte) (int, error)

DecodeBytes sets v to the value of raw, and returns the number of bytes consumed.

func (Varint) Encode

func (v Varint) Encode() string

func (Varint) EncodeBytes

func (v Varint) EncodeBytes() []byte

func (Varint) String

func (v Varint) String() string

Directories

Path Synopsis
db
Package db includes database functionality for Pixur.
Package db includes database functionality for Pixur.
model
Package model described the model format for tables
Package model described the model format for tables
protoc-gen-pxrtab
protoc-grn-pxrtab is a protoc plugin for generating Pixur tables.
protoc-grn-pxrtab is a protoc plugin for generating Pixur tables.
protoc-gen-pxrtab/generator
Package generator is a protoc generator library for Pixur tables.
Package generator is a protoc generator library for Pixur tables.
Package tables includes all generated tables for Pixur.
Package tables includes all generated tables for Pixur.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL