pb

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Note.ProtoReflect.Descriptor instead.

func (*Note) GetContents

func (x *Note) GetContents() []uint64

func (*Note) GetId

func (x *Note) GetId() uint64

func (*Note) GetIndicators

func (x *Note) GetIndicators() []string

func (*Note) GetLocators

func (x *Note) GetLocators() []string

func (*Note) GetStatus

func (x *Note) GetStatus() Status

func (*Note) GetSupertypes

func (x *Note) GetSupertypes() []uint64

func (*Note) GetTypes

func (x *Note) GetTypes() []uint64

func (*Note) GetValue

func (x *Note) GetValue() *Note_Value

func (*Note) ProtoMessage

func (*Note) ProtoMessage()

func (*Note) ProtoReflect

func (x *Note) ProtoReflect() protoreflect.Message

func (*Note) Reset

func (x *Note) Reset()

func (*Note) String

func (x *Note) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Note_Role.ProtoReflect.Descriptor instead.

func (*Note_Role) GetPlayer

func (x *Note_Role) GetPlayer() uint64

func (*Note_Role) GetType

func (x *Note_Role) GetType() uint64

func (*Note_Role) ProtoMessage

func (*Note_Role) ProtoMessage()

func (*Note_Role) ProtoReflect

func (x *Note_Role) ProtoReflect() protoreflect.Message

func (*Note_Role) Reset

func (x *Note_Role) Reset()

func (*Note_Role) String

func (x *Note_Role) String() string

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
const (
	Status_New       Status = 0
	Status_Created   Status = 1
	Status_Archived  Status = 2
	Status_Discarded Status = 3
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

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

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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