tuplepb

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package tuplepb is a generated protocol buffer package.

It is generated from these files:

tuple.proto

It has these top-level messages:

Table
KeyField
Field

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTuple = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTuple   = fmt.Errorf("proto: integer overflow")
)
View Source
var ValueType_name = map[int32]string{
	0: "TYPE_ANY",
	1: "TYPE_BYTES",
	2: "TYPE_STRING",
	3: "TYPE_UINT",
	4: "TYPE_INT",
	5: "TYPE_BOOL",
	6: "TYPE_TIME",
	7: "TYPE_FLOAT",
}
View Source
var ValueType_value = map[string]int32{
	"TYPE_ANY":    0,
	"TYPE_BYTES":  1,
	"TYPE_STRING": 2,
	"TYPE_UINT":   3,
	"TYPE_INT":    4,
	"TYPE_BOOL":   5,
	"TYPE_TIME":   6,
	"TYPE_FLOAT":  7,
}

Functions

func MarshalTable

func MarshalTable(t *tuple.Header) ([]byte, error)

func UnmarshalTable

func UnmarshalTable(p []byte) (*tuple.Header, error)

Types

type Field

type Field struct {
	Name string    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type ValueType `protobuf:"varint,2,opt,name=type,proto3,enum=nwca.hidalgo.tuple.ValueType" json:"type,omitempty"`
}

func (*Field) Descriptor

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

func (*Field) GetName

func (m *Field) GetName() string

func (*Field) GetType

func (m *Field) GetType() ValueType

func (*Field) Marshal

func (m *Field) Marshal() (dAtA []byte, err error)

func (*Field) MarshalTo

func (m *Field) MarshalTo(dAtA []byte) (int, error)

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) ProtoSize

func (m *Field) ProtoSize() (n int)

func (*Field) Reset

func (m *Field) Reset()

func (*Field) String

func (m *Field) String() string

func (*Field) Unmarshal

func (m *Field) Unmarshal(dAtA []byte) error

type KeyField

type KeyField struct {
	Name string    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type ValueType `protobuf:"varint,2,opt,name=type,proto3,enum=nwca.hidalgo.tuple.ValueType" json:"type,omitempty"`
	Auto bool      `protobuf:"varint,3,opt,name=auto,proto3" json:"auto,omitempty"`
}

func (*KeyField) Descriptor

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

func (*KeyField) GetAuto

func (m *KeyField) GetAuto() bool

func (*KeyField) GetName

func (m *KeyField) GetName() string

func (*KeyField) GetType

func (m *KeyField) GetType() ValueType

func (*KeyField) Marshal

func (m *KeyField) Marshal() (dAtA []byte, err error)

func (*KeyField) MarshalTo

func (m *KeyField) MarshalTo(dAtA []byte) (int, error)

func (*KeyField) ProtoMessage

func (*KeyField) ProtoMessage()

func (*KeyField) ProtoSize

func (m *KeyField) ProtoSize() (n int)

func (*KeyField) Reset

func (m *KeyField) Reset()

func (*KeyField) String

func (m *KeyField) String() string

func (*KeyField) Unmarshal

func (m *KeyField) Unmarshal(dAtA []byte) error

type Table

type Table struct {
	Name string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Key  []KeyField `protobuf:"bytes,2,rep,name=key" json:"key"`
	Data []Field    `protobuf:"bytes,3,rep,name=data" json:"data"`
}

func (*Table) Descriptor

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

func (*Table) GetData

func (m *Table) GetData() []Field

func (*Table) GetKey

func (m *Table) GetKey() []KeyField

func (*Table) GetName

func (m *Table) GetName() string

func (*Table) Marshal

func (m *Table) Marshal() (dAtA []byte, err error)

func (*Table) MarshalTo

func (m *Table) MarshalTo(dAtA []byte) (int, error)

func (*Table) ProtoMessage

func (*Table) ProtoMessage()

func (*Table) ProtoSize

func (m *Table) ProtoSize() (n int)

func (*Table) Reset

func (m *Table) Reset()

func (*Table) String

func (m *Table) String() string

func (*Table) Unmarshal

func (m *Table) Unmarshal(dAtA []byte) error

type ValueType

type ValueType int32
const (
	ValueType_TYPE_ANY    ValueType = 0
	ValueType_TYPE_BYTES  ValueType = 1
	ValueType_TYPE_STRING ValueType = 2
	ValueType_TYPE_UINT   ValueType = 3
	ValueType_TYPE_INT    ValueType = 4
	ValueType_TYPE_BOOL   ValueType = 5
	ValueType_TYPE_TIME   ValueType = 6
	ValueType_TYPE_FLOAT  ValueType = 7
)

func (ValueType) EnumDescriptor

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

func (ValueType) String

func (x ValueType) String() string

Jump to

Keyboard shortcuts

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