Documentation
¶
Overview ¶
Package notespb defines protocol buffer message types intended for use in note maps data storage APIs.
These messages are meant for use in implementation-agnostic interfaces for storing and retrieving the contents of a note map.
Index ¶
- Variables
- type Note
- func (*Note) Descriptor() ([]byte, []int)deprecated
- func (x *Note) GetContents() []uint64
- func (x *Note) GetId() uint64
- func (x *Note) GetIndicators() []string
- func (x *Note) GetLocators() []string
- func (x *Note) GetStatus() Status
- func (x *Note) GetSupertypes() []uint64
- func (x *Note) GetTypes() []uint64
- func (x *Note) GetValue() *Note_Value
- func (*Note) ProtoMessage()
- func (x *Note) ProtoReflect() protoreflect.Message
- func (x *Note) Reset()
- func (x *Note) String() string
- type Note_Role
- type Note_Value
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Status_name = map[int32]string{ 0: "New", 1: "Created", 2: "Archived", 3: "Discarded", } Status_value = map[string]int32{ "New": 0, "Created": 1, "Archived": 2, "Discarded": 3, } )
Enum value maps for Status.
View Source
var File_pb_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Note ¶
type Note struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Types []uint64 `protobuf:"varint,2,rep,packed,name=types,proto3" json:"types,omitempty"`
Supertypes []uint64 `protobuf:"varint,3,rep,packed,name=supertypes,proto3" json:"supertypes,omitempty"`
Indicators []string `protobuf:"bytes,4,rep,name=indicators,proto3" json:"indicators,omitempty"`
Locators []string `protobuf:"bytes,5,rep,name=locators,proto3" json:"locators,omitempty"`
Value *Note_Value `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty"`
Contents []uint64 `protobuf:"varint,7,rep,packed,name=contents,proto3" json:"contents,omitempty"`
Status Status `protobuf:"varint,8,opt,name=status,proto3,enum=notemaps.notes.pbdb.pb.Status" json:"status,omitempty"`
// contains filtered or unexported fields
}
func (*Note) Descriptor
deprecated
func (*Note) GetContents ¶
func (*Note) GetIndicators ¶
func (*Note) GetLocators ¶
func (*Note) GetSupertypes ¶
func (*Note) GetValue ¶
func (x *Note) GetValue() *Note_Value
func (*Note) ProtoMessage ¶
func (*Note) ProtoMessage()
func (*Note) ProtoReflect ¶
func (x *Note) ProtoReflect() protoreflect.Message
type Note_Role ¶
type Note_Role struct {
Type uint64 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
Player uint64 `protobuf:"varint,2,opt,name=player,proto3" json:"player,omitempty"`
// contains filtered or unexported fields
}
func (*Note_Role) Descriptor
deprecated
func (*Note_Role) ProtoMessage ¶
func (*Note_Role) ProtoMessage()
func (*Note_Role) ProtoReflect ¶
func (x *Note_Role) ProtoReflect() protoreflect.Message
type Note_Value ¶
type Note_Value struct {
Lexical string `protobuf:"bytes,1,opt,name=lexical,proto3" json:"lexical,omitempty"`
Datatype uint64 `protobuf:"varint,2,opt,name=datatype,proto3" json:"datatype,omitempty"`
// contains filtered or unexported fields
}
func (*Note_Value) Descriptor
deprecated
func (*Note_Value) Descriptor() ([]byte, []int)
Deprecated: Use Note_Value.ProtoReflect.Descriptor instead.
func (*Note_Value) GetDatatype ¶
func (x *Note_Value) GetDatatype() uint64
func (*Note_Value) GetLexical ¶
func (x *Note_Value) GetLexical() string
func (*Note_Value) ProtoMessage ¶
func (*Note_Value) ProtoMessage()
func (*Note_Value) ProtoReflect ¶
func (x *Note_Value) ProtoReflect() protoreflect.Message
func (*Note_Value) Reset ¶
func (x *Note_Value) Reset()
func (*Note_Value) String ¶
func (x *Note_Value) String() string
type Status ¶
type Status int32
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.