Documentation
¶
Index ¶
- Variables
- type Customer
- type Entity
- func (*Entity) Descriptor() ([]byte, []int)deprecated
- func (x *Entity) GetCustomer() *Customer
- func (m *Entity) GetEntity() isEntity_Entity
- func (x *Entity) GetItem() *Item
- func (x *Entity) GetOrder() *Order
- func (x *Entity) GetTypesTest() *TypesTest
- func (*Entity) ProtoMessage()
- func (x *Entity) ProtoReflect() protoreflect.Message
- func (x *Entity) Reset()
- func (x *Entity) String() string
- type Entity_Customer
- type Entity_Item
- type Entity_Order
- type Entity_TypesTest
- type Item
- type NestedLevel1
- func (*NestedLevel1) Descriptor() ([]byte, []int)deprecated
- func (x *NestedLevel1) GetDesc() string
- func (x *NestedLevel1) GetName() string
- func (*NestedLevel1) ProtoMessage()
- func (x *NestedLevel1) ProtoReflect() protoreflect.Message
- func (x *NestedLevel1) Reset()
- func (x *NestedLevel1) String() string
- type Order
- func (*Order) Descriptor() ([]byte, []int)deprecated
- func (x *Order) GetCustomerRefId() string
- func (x *Order) GetExtension() *OrderExtension
- func (x *Order) GetItems() []*OrderItem
- func (x *Order) GetOrderId() string
- func (*Order) ProtoMessage()
- func (x *Order) ProtoReflect() protoreflect.Message
- func (x *Order) Reset()
- func (x *Order) String() string
- type OrderExtension
- type OrderItem
- type Output
- type TypesTest
- func (*TypesTest) Descriptor() ([]byte, []int)deprecated
- func (x *TypesTest) GetBoolField() bool
- func (x *TypesTest) GetBytesField() []byte
- func (x *TypesTest) GetDoubleField() float64
- func (x *TypesTest) GetFixed32Field() uint32
- func (x *TypesTest) GetFixed64Field() uint64
- func (x *TypesTest) GetFloatField() float32
- func (x *TypesTest) GetId() uint64
- func (x *TypesTest) GetInt32Field() int32
- func (x *TypesTest) GetInt64Field() int64
- func (x *TypesTest) GetOptionalInt32FieldNotSet() int32
- func (x *TypesTest) GetOptionalInt32FieldSet() int32
- func (x *TypesTest) GetOptionalStr_2Uint256() string
- func (x *TypesTest) GetOptionalStringNotSet() string
- func (x *TypesTest) GetOptionalStringSet() string
- func (x *TypesTest) GetRepeatedBoolField() []bool
- func (x *TypesTest) GetRepeatedDoubleField() []float64
- func (x *TypesTest) GetRepeatedFixed32Field() []uint32
- func (x *TypesTest) GetRepeatedFixed64Field() []uint64
- func (x *TypesTest) GetRepeatedFloatField() []float32
- func (x *TypesTest) GetRepeatedInt32Field() []int32
- func (x *TypesTest) GetRepeatedInt64Field() []int64
- func (x *TypesTest) GetRepeatedSfixed32Field() []int32
- func (x *TypesTest) GetRepeatedSfixed64Field() []int64
- func (x *TypesTest) GetRepeatedSint32Field() []int32
- func (x *TypesTest) GetRepeatedSint64Field() []int64
- func (x *TypesTest) GetRepeatedStringField() []string
- func (x *TypesTest) GetRepeatedUint32Field() []uint32
- func (x *TypesTest) GetRepeatedUint64Field() []uint64
- func (x *TypesTest) GetSfixed32Field() int32
- func (x *TypesTest) GetSfixed64Field() int64
- func (x *TypesTest) GetSint32Field() int32
- func (x *TypesTest) GetSint64Field() int64
- func (x *TypesTest) GetStr_2Decimal128() string
- func (x *TypesTest) GetStr_2Decimal256() string
- func (x *TypesTest) GetStr_2Int128() string
- func (x *TypesTest) GetStr_2Int256() string
- func (x *TypesTest) GetStr_2Uint128() string
- func (x *TypesTest) GetStr_2Uint256() string
- func (x *TypesTest) GetStringField() string
- func (x *TypesTest) GetTimestampField() *timestamppb.Timestamp
- func (x *TypesTest) GetUint32Field() uint32
- func (x *TypesTest) GetUint64Field() uint64
- func (*TypesTest) ProtoMessage()
- func (x *TypesTest) ProtoReflect() protoreflect.Message
- func (x *TypesTest) Reset()
- func (x *TypesTest) String() string
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) GetCustomerId ¶
func (*Customer) ProtoMessage ¶
func (*Customer) ProtoMessage()
func (*Customer) ProtoReflect ¶
func (x *Customer) ProtoReflect() protoreflect.Message
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) GetCustomer ¶
func (*Entity) GetTypesTest ¶
func (*Entity) ProtoMessage ¶
func (*Entity) ProtoMessage()
func (*Entity) ProtoReflect ¶
func (x *Entity) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) ProtoReflect ¶
func (x *Item) ProtoReflect() protoreflect.Message
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) GetCustomerRefId ¶
func (*Order) GetExtension ¶
func (x *Order) GetExtension() *OrderExtension
func (*Order) GetOrderId ¶
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) ProtoReflect ¶
func (x *Order) ProtoReflect() protoreflect.Message
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) GetQuantity ¶
func (*OrderItem) ProtoMessage ¶
func (*OrderItem) ProtoMessage()
func (*OrderItem) ProtoReflect ¶
func (x *OrderItem) ProtoReflect() protoreflect.Message
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) GetEntities ¶
func (*Output) ProtoMessage ¶
func (*Output) ProtoMessage()
func (*Output) ProtoReflect ¶
func (x *Output) ProtoReflect() protoreflect.Message
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) GetBoolField ¶
func (*TypesTest) GetBytesField ¶
func (*TypesTest) GetDoubleField ¶
func (*TypesTest) GetFixed32Field ¶
func (*TypesTest) GetFixed64Field ¶
func (*TypesTest) GetFloatField ¶
func (*TypesTest) GetInt32Field ¶
func (*TypesTest) GetInt64Field ¶
func (*TypesTest) GetOptionalInt32FieldNotSet ¶
func (*TypesTest) GetOptionalInt32FieldSet ¶
func (*TypesTest) GetOptionalStr_2Uint256 ¶
func (*TypesTest) GetOptionalStringNotSet ¶
func (*TypesTest) GetOptionalStringSet ¶
func (*TypesTest) GetRepeatedBoolField ¶
func (*TypesTest) GetRepeatedDoubleField ¶
func (*TypesTest) GetRepeatedFixed32Field ¶
func (*TypesTest) GetRepeatedFixed64Field ¶
func (*TypesTest) GetRepeatedFloatField ¶
func (*TypesTest) GetRepeatedInt32Field ¶
func (*TypesTest) GetRepeatedInt64Field ¶
func (*TypesTest) GetRepeatedSfixed32Field ¶
func (*TypesTest) GetRepeatedSfixed64Field ¶
func (*TypesTest) GetRepeatedSint32Field ¶
func (*TypesTest) GetRepeatedSint64Field ¶
func (*TypesTest) GetRepeatedStringField ¶
func (*TypesTest) GetRepeatedUint32Field ¶
func (*TypesTest) GetRepeatedUint64Field ¶
func (*TypesTest) GetSfixed32Field ¶
func (*TypesTest) GetSfixed64Field ¶
func (*TypesTest) GetSint32Field ¶
func (*TypesTest) GetSint64Field ¶
func (*TypesTest) GetStr_2Decimal128 ¶
func (*TypesTest) GetStr_2Decimal256 ¶
func (*TypesTest) GetStr_2Int128 ¶
func (*TypesTest) GetStr_2Int256 ¶
func (*TypesTest) GetStr_2Uint128 ¶
func (*TypesTest) GetStr_2Uint256 ¶
func (*TypesTest) GetStringField ¶
func (*TypesTest) GetTimestampField ¶
func (x *TypesTest) GetTimestampField() *timestamppb.Timestamp
func (*TypesTest) GetUint32Field ¶
func (*TypesTest) GetUint64Field ¶
func (*TypesTest) ProtoMessage ¶
func (*TypesTest) ProtoMessage()
func (*TypesTest) ProtoReflect ¶
func (x *TypesTest) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.