Documentation
¶
Index ¶
- Variables
- type Color
- func (Color) Descriptor() protoreflect.EnumDescriptor
- func (x Color) Enum() *Color
- func (Color) EnumDescriptor() ([]byte, []int)deprecated
- func (x Color) Number() protoreflect.EnumNumber
- func (x Color) String() string
- func (Color) Type() protoreflect.EnumType
- func (x *Color) UnmarshalJSON(b []byte) errordeprecated
- type Customer
- func (*Customer) Descriptor() ([]byte, []int)deprecated
- func (x *Customer) GetCustomerId() int64
- func (x *Customer) GetEmail() string
- func (x *Customer) GetName() string
- func (x *Customer) GetPrice() int32
- func (m *Customer) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Customer) MarshalToVT(dAtA []byte) (int, error)
- func (m *Customer) MarshalVT() (dAtA []byte, err error)
- func (*Customer) ProtoMessage()
- func (x *Customer) ProtoReflect() protoreflect.Message
- func (x *Customer) Reset()
- func (m *Customer) ResetVT()
- func (m *Customer) ReturnToVTPool()
- func (m *Customer) SizeVT() (n int)
- func (x *Customer) String() string
- func (m *Customer) UnmarshalVT(dAtA []byte) error
- type Flower
- func (*Flower) Descriptor() ([]byte, []int)deprecated
- func (x *Flower) GetColor() Color
- func (x *Flower) GetType() string
- func (m *Flower) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Flower) MarshalToVT(dAtA []byte) (int, error)
- func (m *Flower) MarshalVT() (dAtA []byte, err error)
- func (*Flower) ProtoMessage()
- func (x *Flower) ProtoReflect() protoreflect.Message
- func (x *Flower) Reset()
- func (m *Flower) ResetVT()
- func (m *Flower) ReturnToVTPool()
- func (m *Flower) SizeVT() (n int)
- func (x *Flower) String() string
- func (m *Flower) UnmarshalVT(dAtA []byte) error
- type Order
- func (*Order) Descriptor() ([]byte, []int)deprecated
- func (x *Order) GetCoordX() int64
- func (x *Order) GetCoordY() int64
- func (x *Order) GetFlower() *Flower
- func (x *Order) GetOrderId() int64
- func (x *Order) GetPrice() int32
- func (x *Order) GetQuantity() int32
- func (x *Order) GetTags() []string
- func (x *Order) GetVectorData() []byte
- func (m *Order) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Order) MarshalToVT(dAtA []byte) (int, error)
- func (m *Order) MarshalVT() (dAtA []byte, err error)
- func (*Order) ProtoMessage()
- func (x *Order) ProtoReflect() protoreflect.Message
- func (x *Order) Reset()
- func (m *Order) ResetVT()
- func (m *Order) ReturnToVTPool()
- func (m *Order) SizeVT() (n int)
- func (x *Order) String() string
- func (m *Order) UnmarshalVT(dAtA []byte) error
- type TypedRecord
- func (*TypedRecord) Descriptor() ([]byte, []int)deprecated
- func (x *TypedRecord) GetId() int64
- func (x *TypedRecord) GetPrice() int32
- func (x *TypedRecord) GetValBool() bool
- func (x *TypedRecord) GetValBytes() []byte
- func (x *TypedRecord) GetValDouble() float64
- func (x *TypedRecord) GetValEnum() Color
- func (x *TypedRecord) GetValFloat() float32
- func (x *TypedRecord) GetValInt32() int32
- func (x *TypedRecord) GetValInt64() int64
- func (x *TypedRecord) GetValSfixed32() int32
- func (x *TypedRecord) GetValSfixed64() int64
- func (x *TypedRecord) GetValSint32() int32
- func (x *TypedRecord) GetValSint64() int64
- func (x *TypedRecord) GetValString() string
- func (m *TypedRecord) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TypedRecord) MarshalToVT(dAtA []byte) (int, error)
- func (m *TypedRecord) MarshalVT() (dAtA []byte, err error)
- func (*TypedRecord) ProtoMessage()
- func (x *TypedRecord) ProtoReflect() protoreflect.Message
- func (x *TypedRecord) Reset()
- func (m *TypedRecord) ResetVT()
- func (m *TypedRecord) ReturnToVTPool()
- func (m *TypedRecord) SizeVT() (n int)
- func (x *TypedRecord) String() string
- func (m *TypedRecord) UnmarshalVT(dAtA []byte) error
- type UnionDescriptor
- func (*UnionDescriptor) Descriptor() ([]byte, []int)deprecated
- func (x *UnionDescriptor) GetXCustomer() *Customer
- func (x *UnionDescriptor) GetXOrder() *Order
- func (x *UnionDescriptor) GetXTypedRecord() *TypedRecord
- func (m *UnionDescriptor) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UnionDescriptor) MarshalToVT(dAtA []byte) (int, error)
- func (m *UnionDescriptor) MarshalVT() (dAtA []byte, err error)
- func (*UnionDescriptor) ProtoMessage()
- func (x *UnionDescriptor) ProtoReflect() protoreflect.Message
- func (x *UnionDescriptor) Reset()
- func (m *UnionDescriptor) ResetVT()
- func (m *UnionDescriptor) ReturnToVTPool()
- func (m *UnionDescriptor) SizeVT() (n int)
- func (x *UnionDescriptor) String() string
- func (m *UnionDescriptor) UnmarshalVT(dAtA []byte) error
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
func (Color) Descriptor ¶
func (Color) Descriptor() protoreflect.EnumDescriptor
func (Color) EnumDescriptor
deprecated
func (Color) Number ¶
func (x Color) Number() protoreflect.EnumNumber
func (Color) Type ¶
func (Color) Type() protoreflect.EnumType
func (*Color) UnmarshalJSON
deprecated
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) GetCustomerId ¶
func (*Customer) MarshalToSizedBufferVT ¶
func (*Customer) ProtoMessage ¶
func (*Customer) ProtoMessage()
func (*Customer) ProtoReflect ¶
func (x *Customer) ProtoReflect() protoreflect.Message
func (*Customer) ReturnToVTPool ¶
func (m *Customer) ReturnToVTPool()
func (*Customer) UnmarshalVT ¶
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) MarshalToSizedBufferVT ¶
func (*Flower) ProtoMessage ¶
func (*Flower) ProtoMessage()
func (*Flower) ProtoReflect ¶
func (x *Flower) ProtoReflect() protoreflect.Message
func (*Flower) ReturnToVTPool ¶
func (m *Flower) ReturnToVTPool()
func (*Flower) UnmarshalVT ¶
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) GetOrderId ¶
func (*Order) GetQuantity ¶
func (*Order) GetVectorData ¶
func (*Order) MarshalToSizedBufferVT ¶
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) ProtoReflect ¶
func (x *Order) ProtoReflect() protoreflect.Message
func (*Order) ReturnToVTPool ¶
func (m *Order) ReturnToVTPool()
func (*Order) UnmarshalVT ¶
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
Click to show internal directories.
Click to hide internal directories.