relations

package
v1.20.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_test_relations_relations_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Customer

type Customer struct {
	CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
	Name       string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Customer) Descriptor deprecated

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

Deprecated: Use Customer.ProtoReflect.Descriptor instead.

func (*Customer) GetCustomerId

func (x *Customer) GetCustomerId() string

func (*Customer) GetName

func (x *Customer) GetName() string

func (*Customer) ProtoMessage

func (*Customer) ProtoMessage()

func (*Customer) ProtoReflect

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

func (*Customer) Reset

func (x *Customer) Reset()

func (*Customer) String

func (x *Customer) String() string

type Entity

type Entity struct {

	// Types that are assignable to Entity:
	//
	//	*Entity_TypesTest
	//	*Entity_Customer
	//	*Entity_Order
	//	*Entity_Item
	Entity isEntity_Entity `protobuf_oneof:"entity"`
	// contains filtered or unexported fields
}

func (*Entity) Descriptor deprecated

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

Deprecated: Use Entity.ProtoReflect.Descriptor instead.

func (*Entity) GetCustomer

func (x *Entity) GetCustomer() *Customer

func (*Entity) GetEntity

func (m *Entity) GetEntity() isEntity_Entity

func (*Entity) GetItem

func (x *Entity) GetItem() *Item

func (*Entity) GetOrder

func (x *Entity) GetOrder() *Order

func (*Entity) GetTypesTest

func (x *Entity) GetTypesTest() *TypesTest

func (*Entity) ProtoMessage

func (*Entity) ProtoMessage()

func (*Entity) ProtoReflect

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

func (*Entity) Reset

func (x *Entity) Reset()

func (*Entity) String

func (x *Entity) String() string

type Entity_Customer

type Entity_Customer struct {
	Customer *Customer `protobuf:"bytes,10,opt,name=customer,proto3,oneof"`
}

type Entity_Item

type Entity_Item struct {
	Item *Item `protobuf:"bytes,12,opt,name=item,proto3,oneof"`
}

type Entity_Order

type Entity_Order struct {
	Order *Order `protobuf:"bytes,11,opt,name=order,proto3,oneof"`
}

type Entity_TypesTest

type Entity_TypesTest struct {
	TypesTest *TypesTest `protobuf:"bytes,1,opt,name=types_test,json=typesTest,proto3,oneof"`
}

type Item

type Item struct {
	ItemId string  `protobuf:"bytes,1,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
	Name   string  `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"`
	Price  float64 `protobuf:"fixed64,11,opt,name=price,proto3" json:"price,omitempty"`
	// contains filtered or unexported fields
}

func (*Item) Descriptor deprecated

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

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetItemId

func (x *Item) GetItemId() string

func (*Item) GetName

func (x *Item) GetName() string

func (*Item) GetPrice

func (x *Item) GetPrice() float64

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect

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

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

type NestedLevel1

type NestedLevel1 struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"`
	// contains filtered or unexported fields
}

func (*NestedLevel1) Descriptor deprecated

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

Deprecated: Use NestedLevel1.ProtoReflect.Descriptor instead.

func (*NestedLevel1) GetDesc

func (x *NestedLevel1) GetDesc() string

func (*NestedLevel1) GetName

func (x *NestedLevel1) GetName() string

func (*NestedLevel1) ProtoMessage

func (*NestedLevel1) ProtoMessage()

func (*NestedLevel1) ProtoReflect

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

func (*NestedLevel1) Reset

func (x *NestedLevel1) Reset()

func (*NestedLevel1) String

func (x *NestedLevel1) String() string

type Order

type Order struct {
	OrderId       string          `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	CustomerRefId string          `protobuf:"bytes,2,opt,name=customer_ref_id,json=customerRefId,proto3" json:"customer_ref_id,omitempty"`
	Items         []*OrderItem    `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`
	Extension     *OrderExtension `protobuf:"bytes,4,opt,name=extension,proto3" json:"extension,omitempty"`
	// contains filtered or unexported fields
}

func (*Order) Descriptor deprecated

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

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetCustomerRefId

func (x *Order) GetCustomerRefId() string

func (*Order) GetExtension

func (x *Order) GetExtension() *OrderExtension

func (*Order) GetItems

func (x *Order) GetItems() []*OrderItem

func (*Order) GetOrderId

func (x *Order) GetOrderId() string

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) ProtoReflect

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

func (*Order) Reset

func (x *Order) Reset()

func (*Order) String

func (x *Order) String() string

type OrderExtension

type OrderExtension struct {
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderExtension) Descriptor deprecated

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

Deprecated: Use OrderExtension.ProtoReflect.Descriptor instead.

func (*OrderExtension) GetDescription

func (x *OrderExtension) GetDescription() string

func (*OrderExtension) ProtoMessage

func (*OrderExtension) ProtoMessage()

func (*OrderExtension) ProtoReflect

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

func (*OrderExtension) Reset

func (x *OrderExtension) Reset()

func (*OrderExtension) String

func (x *OrderExtension) String() string

type OrderItem

type OrderItem struct {

	// can also leverage orders._id using "order on order_id" if order do not have a external unique identifier
	ItemId   string `protobuf:"bytes,2,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
	Quantity int64  `protobuf:"varint,11,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderItem) Descriptor deprecated

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

Deprecated: Use OrderItem.ProtoReflect.Descriptor instead.

func (*OrderItem) GetItemId

func (x *OrderItem) GetItemId() string

func (*OrderItem) GetQuantity

func (x *OrderItem) GetQuantity() int64

func (*OrderItem) ProtoMessage

func (*OrderItem) ProtoMessage()

func (*OrderItem) ProtoReflect

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

func (*OrderItem) Reset

func (x *OrderItem) Reset()

func (*OrderItem) String

func (x *OrderItem) String() string

type Output

type Output struct {
	Entities []*Entity `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"`
	// contains filtered or unexported fields
}

func (*Output) Descriptor deprecated

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

Deprecated: Use Output.ProtoReflect.Descriptor instead.

func (*Output) GetEntities

func (x *Output) GetEntities() []*Entity

func (*Output) ProtoMessage

func (*Output) ProtoMessage()

func (*Output) ProtoReflect

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

func (*Output) Reset

func (x *Output) Reset()

func (*Output) String

func (x *Output) String() string

type TypesTest

type TypesTest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// Field for each protobuf native type
	DoubleField              float64                `protobuf:"fixed64,2,opt,name=double_field,json=doubleField,proto3" json:"double_field,omitempty"`
	FloatField               float32                `protobuf:"fixed32,3,opt,name=float_field,json=floatField,proto3" json:"float_field,omitempty"`
	Int32Field               int32                  `protobuf:"varint,4,opt,name=int32_field,json=int32Field,proto3" json:"int32_field,omitempty"`
	Int64Field               int64                  `protobuf:"varint,5,opt,name=int64_field,json=int64Field,proto3" json:"int64_field,omitempty"`
	Uint32Field              uint32                 `protobuf:"varint,6,opt,name=uint32_field,json=uint32Field,proto3" json:"uint32_field,omitempty"`
	Uint64Field              uint64                 `protobuf:"varint,7,opt,name=uint64_field,json=uint64Field,proto3" json:"uint64_field,omitempty"`
	Sint32Field              int32                  `protobuf:"zigzag32,8,opt,name=sint32_field,json=sint32Field,proto3" json:"sint32_field,omitempty"`
	Sint64Field              int64                  `protobuf:"zigzag64,9,opt,name=sint64_field,json=sint64Field,proto3" json:"sint64_field,omitempty"`
	Fixed32Field             uint32                 `protobuf:"fixed32,10,opt,name=fixed32_field,json=fixed32Field,proto3" json:"fixed32_field,omitempty"`
	Fixed64Field             uint64                 `protobuf:"fixed64,11,opt,name=fixed64_field,json=fixed64Field,proto3" json:"fixed64_field,omitempty"`
	Sfixed32Field            int32                  `protobuf:"fixed32,12,opt,name=sfixed32_field,json=sfixed32Field,proto3" json:"sfixed32_field,omitempty"`
	Sfixed64Field            int64                  `protobuf:"fixed64,13,opt,name=sfixed64_field,json=sfixed64Field,proto3" json:"sfixed64_field,omitempty"`
	BoolField                bool                   `protobuf:"varint,14,opt,name=bool_field,json=boolField,proto3" json:"bool_field,omitempty"`
	StringField              string                 `protobuf:"bytes,15,opt,name=string_field,json=stringField,proto3" json:"string_field,omitempty"`
	BytesField               []byte                 `protobuf:"bytes,16,opt,name=bytes_field,json=bytesField,proto3" json:"bytes_field,omitempty"`
	OptionalStringSet        *string                `protobuf:"bytes,17,opt,name=optional_string_set,json=optionalStringSet,proto3,oneof" json:"optional_string_set,omitempty"`
	OptionalStringNotSet     *string                `` /* 132-byte string literal not displayed */
	OptionalInt32FieldSet    *int32                 `` /* 136-byte string literal not displayed */
	OptionalInt32FieldNotSet *int32                 `` /* 147-byte string literal not displayed */
	TimestampField           *timestamppb.Timestamp `protobuf:"bytes,30,opt,name=timestamp_field,json=timestampField,proto3" json:"timestamp_field,omitempty"`
	// Array fields for all supported proto types
	RepeatedInt32Field    []int32   `` /* 126-byte string literal not displayed */
	RepeatedInt64Field    []int64   `` /* 126-byte string literal not displayed */
	RepeatedUint32Field   []uint32  `` /* 129-byte string literal not displayed */
	RepeatedUint64Field   []uint64  `` /* 129-byte string literal not displayed */
	RepeatedSint32Field   []int32   `` /* 131-byte string literal not displayed */
	RepeatedSint64Field   []int64   `` /* 131-byte string literal not displayed */
	RepeatedFixed32Field  []uint32  `` /* 133-byte string literal not displayed */
	RepeatedFixed64Field  []uint64  `` /* 133-byte string literal not displayed */
	RepeatedSfixed32Field []int32   `` /* 136-byte string literal not displayed */
	RepeatedSfixed64Field []int64   `` /* 136-byte string literal not displayed */
	RepeatedDoubleField   []float64 `` /* 130-byte string literal not displayed */
	RepeatedFloatField    []float32 `` /* 127-byte string literal not displayed */
	RepeatedBoolField     []bool    `protobuf:"varint,62,rep,packed,name=repeated_bool_field,json=repeatedBoolField,proto3" json:"repeated_bool_field,omitempty"`
	RepeatedStringField   []string  `protobuf:"bytes,63,rep,name=repeated_string_field,json=repeatedStringField,proto3" json:"repeated_string_field,omitempty"`
	Str_2Int128           string    `protobuf:"bytes,100,opt,name=str_2_int128,json=str2Int128,proto3" json:"str_2_int128,omitempty"`
	Str_2Uint128          string    `protobuf:"bytes,101,opt,name=str_2_uint128,json=str2Uint128,proto3" json:"str_2_uint128,omitempty"`
	Str_2Int256           string    `protobuf:"bytes,102,opt,name=str_2_int256,json=str2Int256,proto3" json:"str_2_int256,omitempty"`
	Str_2Uint256          string    `protobuf:"bytes,103,opt,name=str_2_uint256,json=str2Uint256,proto3" json:"str_2_uint256,omitempty"`
	Str_2Decimal128       string    `protobuf:"bytes,104,opt,name=str_2_decimal128,json=str2Decimal128,proto3" json:"str_2_decimal128,omitempty"`
	Str_2Decimal256       string    `protobuf:"bytes,105,opt,name=str_2_decimal256,json=str2Decimal256,proto3" json:"str_2_decimal256,omitempty"`
	// Optional uint256 field to test empty string handling
	OptionalStr_2Uint256 *string `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TypesTest) Descriptor deprecated

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

Deprecated: Use TypesTest.ProtoReflect.Descriptor instead.

func (*TypesTest) GetBoolField

func (x *TypesTest) GetBoolField() bool

func (*TypesTest) GetBytesField

func (x *TypesTest) GetBytesField() []byte

func (*TypesTest) GetDoubleField

func (x *TypesTest) GetDoubleField() float64

func (*TypesTest) GetFixed32Field

func (x *TypesTest) GetFixed32Field() uint32

func (*TypesTest) GetFixed64Field

func (x *TypesTest) GetFixed64Field() uint64

func (*TypesTest) GetFloatField

func (x *TypesTest) GetFloatField() float32

func (*TypesTest) GetId

func (x *TypesTest) GetId() uint64

func (*TypesTest) GetInt32Field

func (x *TypesTest) GetInt32Field() int32

func (*TypesTest) GetInt64Field

func (x *TypesTest) GetInt64Field() int64

func (*TypesTest) GetOptionalInt32FieldNotSet

func (x *TypesTest) GetOptionalInt32FieldNotSet() int32

func (*TypesTest) GetOptionalInt32FieldSet

func (x *TypesTest) GetOptionalInt32FieldSet() int32

func (*TypesTest) GetOptionalStr_2Uint256

func (x *TypesTest) GetOptionalStr_2Uint256() string

func (*TypesTest) GetOptionalStringNotSet

func (x *TypesTest) GetOptionalStringNotSet() string

func (*TypesTest) GetOptionalStringSet

func (x *TypesTest) GetOptionalStringSet() string

func (*TypesTest) GetRepeatedBoolField

func (x *TypesTest) GetRepeatedBoolField() []bool

func (*TypesTest) GetRepeatedDoubleField

func (x *TypesTest) GetRepeatedDoubleField() []float64

func (*TypesTest) GetRepeatedFixed32Field

func (x *TypesTest) GetRepeatedFixed32Field() []uint32

func (*TypesTest) GetRepeatedFixed64Field

func (x *TypesTest) GetRepeatedFixed64Field() []uint64

func (*TypesTest) GetRepeatedFloatField

func (x *TypesTest) GetRepeatedFloatField() []float32

func (*TypesTest) GetRepeatedInt32Field

func (x *TypesTest) GetRepeatedInt32Field() []int32

func (*TypesTest) GetRepeatedInt64Field

func (x *TypesTest) GetRepeatedInt64Field() []int64

func (*TypesTest) GetRepeatedSfixed32Field

func (x *TypesTest) GetRepeatedSfixed32Field() []int32

func (*TypesTest) GetRepeatedSfixed64Field

func (x *TypesTest) GetRepeatedSfixed64Field() []int64

func (*TypesTest) GetRepeatedSint32Field

func (x *TypesTest) GetRepeatedSint32Field() []int32

func (*TypesTest) GetRepeatedSint64Field

func (x *TypesTest) GetRepeatedSint64Field() []int64

func (*TypesTest) GetRepeatedStringField

func (x *TypesTest) GetRepeatedStringField() []string

func (*TypesTest) GetRepeatedUint32Field

func (x *TypesTest) GetRepeatedUint32Field() []uint32

func (*TypesTest) GetRepeatedUint64Field

func (x *TypesTest) GetRepeatedUint64Field() []uint64

func (*TypesTest) GetSfixed32Field

func (x *TypesTest) GetSfixed32Field() int32

func (*TypesTest) GetSfixed64Field

func (x *TypesTest) GetSfixed64Field() int64

func (*TypesTest) GetSint32Field

func (x *TypesTest) GetSint32Field() int32

func (*TypesTest) GetSint64Field

func (x *TypesTest) GetSint64Field() int64

func (*TypesTest) GetStr_2Decimal128

func (x *TypesTest) GetStr_2Decimal128() string

func (*TypesTest) GetStr_2Decimal256

func (x *TypesTest) GetStr_2Decimal256() string

func (*TypesTest) GetStr_2Int128

func (x *TypesTest) GetStr_2Int128() string

func (*TypesTest) GetStr_2Int256

func (x *TypesTest) GetStr_2Int256() string

func (*TypesTest) GetStr_2Uint128

func (x *TypesTest) GetStr_2Uint128() string

func (*TypesTest) GetStr_2Uint256

func (x *TypesTest) GetStr_2Uint256() string

func (*TypesTest) GetStringField

func (x *TypesTest) GetStringField() string

func (*TypesTest) GetTimestampField

func (x *TypesTest) GetTimestampField() *timestamppb.Timestamp

func (*TypesTest) GetUint32Field

func (x *TypesTest) GetUint32Field() uint32

func (*TypesTest) GetUint64Field

func (x *TypesTest) GetUint64Field() uint64

func (*TypesTest) ProtoMessage

func (*TypesTest) ProtoMessage()

func (*TypesTest) ProtoReflect

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

func (*TypesTest) Reset

func (x *TypesTest) Reset()

func (*TypesTest) String

func (x *TypesTest) String() string

Jump to

Keyboard shortcuts

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