demopb

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Color_name = map[int32]string{
		1: "RED",
		2: "BLUE",
		3: "YELLOW",
		4: "PINK",
	}
	Color_value = map[string]int32{
		"RED":    1,
		"BLUE":   2,
		"YELLOW": 3,
		"PINK":   4,
	}
)

Enum value maps for Color.

View Source
var File_record_layer_demo_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Color

type Color int32
const (
	Color_RED    Color = 1
	Color_BLUE   Color = 2
	Color_YELLOW Color = 3
	Color_PINK   Color = 4
)

func (Color) Descriptor

func (Color) Descriptor() protoreflect.EnumDescriptor

func (Color) Enum

func (x Color) Enum() *Color

func (Color) EnumDescriptor deprecated

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

Deprecated: Use Color.Descriptor instead.

func (Color) Number

func (x Color) Number() protoreflect.EnumNumber

func (Color) String

func (x Color) String() string

func (Color) Type

func (Color) Type() protoreflect.EnumType

func (*Color) UnmarshalJSON deprecated

func (x *Color) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Customer

type Customer struct {
	CustomerId *int64  `protobuf:"varint,1,opt,name=customer_id,json=customerId" json:"customer_id,omitempty"`
	Name       *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Email      *string `protobuf:"bytes,3,opt,name=email" json:"email,omitempty"`
	Price      *int32  `protobuf:"varint,4,opt,name=price" json:"price,omitempty"`
	// contains filtered or unexported fields
}

func CustomerFromVTPool

func CustomerFromVTPool() *Customer

func (*Customer) Descriptor deprecated

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

Deprecated: Use Customer.ProtoReflect.Descriptor instead.

func (*Customer) GetCustomerId

func (x *Customer) GetCustomerId() int64

func (*Customer) GetEmail

func (x *Customer) GetEmail() string

func (*Customer) GetName

func (x *Customer) GetName() string

func (*Customer) GetPrice

func (x *Customer) GetPrice() int32

func (*Customer) MarshalToSizedBufferVT

func (m *Customer) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Customer) MarshalToVT

func (m *Customer) MarshalToVT(dAtA []byte) (int, error)

func (*Customer) MarshalVT

func (m *Customer) MarshalVT() (dAtA []byte, err error)

func (*Customer) ProtoMessage

func (*Customer) ProtoMessage()

func (*Customer) ProtoReflect

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

func (*Customer) Reset

func (x *Customer) Reset()

func (*Customer) ResetVT

func (m *Customer) ResetVT()

func (*Customer) ReturnToVTPool

func (m *Customer) ReturnToVTPool()

func (*Customer) SizeVT

func (m *Customer) SizeVT() (n int)

func (*Customer) String

func (x *Customer) String() string

func (*Customer) UnmarshalVT

func (m *Customer) UnmarshalVT(dAtA []byte) error

type Flower

type Flower struct {
	Type  *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
	Color *Color  `protobuf:"varint,2,opt,name=color,enum=com.apple.foundationdb.record.Color" json:"color,omitempty"`
	// contains filtered or unexported fields
}

func FlowerFromVTPool

func FlowerFromVTPool() *Flower

func (*Flower) Descriptor deprecated

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

Deprecated: Use Flower.ProtoReflect.Descriptor instead.

func (*Flower) GetColor

func (x *Flower) GetColor() Color

func (*Flower) GetType

func (x *Flower) GetType() string

func (*Flower) MarshalToSizedBufferVT

func (m *Flower) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Flower) MarshalToVT

func (m *Flower) MarshalToVT(dAtA []byte) (int, error)

func (*Flower) MarshalVT

func (m *Flower) MarshalVT() (dAtA []byte, err error)

func (*Flower) ProtoMessage

func (*Flower) ProtoMessage()

func (*Flower) ProtoReflect

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

func (*Flower) Reset

func (x *Flower) Reset()

func (*Flower) ResetVT

func (m *Flower) ResetVT()

func (*Flower) ReturnToVTPool

func (m *Flower) ReturnToVTPool()

func (*Flower) SizeVT

func (m *Flower) SizeVT() (n int)

func (*Flower) String

func (x *Flower) String() string

func (*Flower) UnmarshalVT

func (m *Flower) UnmarshalVT(dAtA []byte) error

type Order

type Order struct {
	OrderId    *int64   `protobuf:"varint,1,opt,name=order_id,json=orderId" json:"order_id,omitempty"`
	Flower     *Flower  `protobuf:"bytes,2,opt,name=flower" json:"flower,omitempty"`
	Price      *int32   `protobuf:"varint,3,opt,name=price" json:"price,omitempty"`
	Tags       []string `protobuf:"bytes,4,rep,name=tags" json:"tags,omitempty"`
	Quantity   *int32   `protobuf:"varint,5,opt,name=quantity" json:"quantity,omitempty"`
	CoordX     *int64   `protobuf:"varint,6,opt,name=coord_x,json=coordX" json:"coord_x,omitempty"`
	CoordY     *int64   `protobuf:"varint,7,opt,name=coord_y,json=coordY" json:"coord_y,omitempty"`
	VectorData []byte   `protobuf:"bytes,8,opt,name=vector_data,json=vectorData" json:"vector_data,omitempty"`
	// contains filtered or unexported fields
}

func OrderFromVTPool

func OrderFromVTPool() *Order

func (*Order) Descriptor deprecated

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

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetCoordX

func (x *Order) GetCoordX() int64

func (*Order) GetCoordY

func (x *Order) GetCoordY() int64

func (*Order) GetFlower

func (x *Order) GetFlower() *Flower

func (*Order) GetOrderId

func (x *Order) GetOrderId() int64

func (*Order) GetPrice

func (x *Order) GetPrice() int32

func (*Order) GetQuantity

func (x *Order) GetQuantity() int32

func (*Order) GetTags

func (x *Order) GetTags() []string

func (*Order) GetVectorData

func (x *Order) GetVectorData() []byte

func (*Order) MarshalToSizedBufferVT

func (m *Order) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Order) MarshalToVT

func (m *Order) MarshalToVT(dAtA []byte) (int, error)

func (*Order) MarshalVT

func (m *Order) MarshalVT() (dAtA []byte, err error)

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) ProtoReflect

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

func (*Order) Reset

func (x *Order) Reset()

func (*Order) ResetVT

func (m *Order) ResetVT()

func (*Order) ReturnToVTPool

func (m *Order) ReturnToVTPool()

func (*Order) SizeVT

func (m *Order) SizeVT() (n int)

func (*Order) String

func (x *Order) String() string

func (*Order) UnmarshalVT

func (m *Order) UnmarshalVT(dAtA []byte) error

type TypedRecord

type TypedRecord struct {
	Id          *int64   `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	ValInt32    *int32   `protobuf:"varint,2,opt,name=val_int32,json=valInt32" json:"val_int32,omitempty"`
	ValInt64    *int64   `protobuf:"varint,3,opt,name=val_int64,json=valInt64" json:"val_int64,omitempty"`
	ValSint32   *int32   `protobuf:"zigzag32,4,opt,name=val_sint32,json=valSint32" json:"val_sint32,omitempty"`
	ValSint64   *int64   `protobuf:"zigzag64,5,opt,name=val_sint64,json=valSint64" json:"val_sint64,omitempty"`
	ValSfixed32 *int32   `protobuf:"fixed32,6,opt,name=val_sfixed32,json=valSfixed32" json:"val_sfixed32,omitempty"`
	ValSfixed64 *int64   `protobuf:"fixed64,7,opt,name=val_sfixed64,json=valSfixed64" json:"val_sfixed64,omitempty"`
	ValFloat    *float32 `protobuf:"fixed32,8,opt,name=val_float,json=valFloat" json:"val_float,omitempty"`
	ValDouble   *float64 `protobuf:"fixed64,9,opt,name=val_double,json=valDouble" json:"val_double,omitempty"`
	ValBool     *bool    `protobuf:"varint,10,opt,name=val_bool,json=valBool" json:"val_bool,omitempty"`
	ValString   *string  `protobuf:"bytes,11,opt,name=val_string,json=valString" json:"val_string,omitempty"`
	ValBytes    []byte   `protobuf:"bytes,12,opt,name=val_bytes,json=valBytes" json:"val_bytes,omitempty"`
	ValEnum     *Color   `protobuf:"varint,13,opt,name=val_enum,json=valEnum,enum=com.apple.foundationdb.record.Color" json:"val_enum,omitempty"`
	Price       *int32   `protobuf:"varint,14,opt,name=price" json:"price,omitempty"`
	// contains filtered or unexported fields
}

TypedRecord exercises every proto field type that Java Record Layer supports for cross-language FDB tuple encoding conformance. NOTE: Java rejects unsigned types (uint32, uint64, fixed32, fixed64) at metadata validation time, so they are intentionally excluded.

func TypedRecordFromVTPool

func TypedRecordFromVTPool() *TypedRecord

func (*TypedRecord) Descriptor deprecated

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

Deprecated: Use TypedRecord.ProtoReflect.Descriptor instead.

func (*TypedRecord) GetId

func (x *TypedRecord) GetId() int64

func (*TypedRecord) GetPrice

func (x *TypedRecord) GetPrice() int32

func (*TypedRecord) GetValBool

func (x *TypedRecord) GetValBool() bool

func (*TypedRecord) GetValBytes

func (x *TypedRecord) GetValBytes() []byte

func (*TypedRecord) GetValDouble

func (x *TypedRecord) GetValDouble() float64

func (*TypedRecord) GetValEnum

func (x *TypedRecord) GetValEnum() Color

func (*TypedRecord) GetValFloat

func (x *TypedRecord) GetValFloat() float32

func (*TypedRecord) GetValInt32

func (x *TypedRecord) GetValInt32() int32

func (*TypedRecord) GetValInt64

func (x *TypedRecord) GetValInt64() int64

func (*TypedRecord) GetValSfixed32

func (x *TypedRecord) GetValSfixed32() int32

func (*TypedRecord) GetValSfixed64

func (x *TypedRecord) GetValSfixed64() int64

func (*TypedRecord) GetValSint32

func (x *TypedRecord) GetValSint32() int32

func (*TypedRecord) GetValSint64

func (x *TypedRecord) GetValSint64() int64

func (*TypedRecord) GetValString

func (x *TypedRecord) GetValString() string

func (*TypedRecord) MarshalToSizedBufferVT

func (m *TypedRecord) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*TypedRecord) MarshalToVT

func (m *TypedRecord) MarshalToVT(dAtA []byte) (int, error)

func (*TypedRecord) MarshalVT

func (m *TypedRecord) MarshalVT() (dAtA []byte, err error)

func (*TypedRecord) ProtoMessage

func (*TypedRecord) ProtoMessage()

func (*TypedRecord) ProtoReflect

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

func (*TypedRecord) Reset

func (x *TypedRecord) Reset()

func (*TypedRecord) ResetVT

func (m *TypedRecord) ResetVT()

func (*TypedRecord) ReturnToVTPool

func (m *TypedRecord) ReturnToVTPool()

func (*TypedRecord) SizeVT

func (m *TypedRecord) SizeVT() (n int)

func (*TypedRecord) String

func (x *TypedRecord) String() string

func (*TypedRecord) UnmarshalVT

func (m *TypedRecord) UnmarshalVT(dAtA []byte) error

type UnionDescriptor

type UnionDescriptor struct {
	XOrder       *Order       `protobuf:"bytes,1,opt,name=_Order,json=Order" json:"_Order,omitempty"`
	XCustomer    *Customer    `protobuf:"bytes,2,opt,name=_Customer,json=Customer" json:"_Customer,omitempty"`
	XTypedRecord *TypedRecord `protobuf:"bytes,3,opt,name=_TypedRecord,json=TypedRecord" json:"_TypedRecord,omitempty"`
	// contains filtered or unexported fields
}

func UnionDescriptorFromVTPool

func UnionDescriptorFromVTPool() *UnionDescriptor

func (*UnionDescriptor) Descriptor deprecated

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

Deprecated: Use UnionDescriptor.ProtoReflect.Descriptor instead.

func (*UnionDescriptor) GetXCustomer

func (x *UnionDescriptor) GetXCustomer() *Customer

func (*UnionDescriptor) GetXOrder

func (x *UnionDescriptor) GetXOrder() *Order

func (*UnionDescriptor) GetXTypedRecord

func (x *UnionDescriptor) GetXTypedRecord() *TypedRecord

func (*UnionDescriptor) MarshalToSizedBufferVT

func (m *UnionDescriptor) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UnionDescriptor) MarshalToVT

func (m *UnionDescriptor) MarshalToVT(dAtA []byte) (int, error)

func (*UnionDescriptor) MarshalVT

func (m *UnionDescriptor) MarshalVT() (dAtA []byte, err error)

func (*UnionDescriptor) ProtoMessage

func (*UnionDescriptor) ProtoMessage()

func (*UnionDescriptor) ProtoReflect

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

func (*UnionDescriptor) Reset

func (x *UnionDescriptor) Reset()

func (*UnionDescriptor) ResetVT

func (m *UnionDescriptor) ResetVT()

func (*UnionDescriptor) ReturnToVTPool

func (m *UnionDescriptor) ReturnToVTPool()

func (*UnionDescriptor) SizeVT

func (m *UnionDescriptor) SizeVT() (n int)

func (*UnionDescriptor) String

func (x *UnionDescriptor) String() string

func (*UnionDescriptor) UnmarshalVT

func (m *UnionDescriptor) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

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