messagev1

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package messagev1 hold generated Go code

Index

Constants

This section is empty.

Variables

View Source
var (
	Dirtyness_name = map[int32]string{
		0: "DIRTYNESS_UNSPECIFIED",
		1: "DIRTYNESS_CLEAN",
	}
	Dirtyness_value = map[string]int32{
		"DIRTYNESS_UNSPECIFIED": 0,
		"DIRTYNESS_CLEAN":       1,
	}
)

Enum value maps for Dirtyness.

View Source
var File_example_message_v1_message_proto protoreflect.FileDescriptor
View Source
var File_example_message_v1_other_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Appliance

type Appliance struct {

	// brand of the appliance
	Brand string `protobuf:"bytes,1,opt,name=brand,proto3" json:"brand,omitempty"`
	// contains filtered or unexported fields
}

Appliance in the kitchen

func (*Appliance) Descriptor deprecated

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

Deprecated: Use Appliance.ProtoReflect.Descriptor instead.

func (*Appliance) GetBrand

func (x *Appliance) GetBrand() string

func (*Appliance) MarshalDynamoItem

func (x *Appliance) MarshalDynamoItem() (m map[string]types.AttributeValue, err error)

MarshalDynamoItem marshals data into a dynamodb attribute map

func (*Appliance) ProtoMessage

func (*Appliance) ProtoMessage()

func (*Appliance) ProtoReflect

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

func (*Appliance) Reset

func (x *Appliance) Reset()

func (*Appliance) String

func (x *Appliance) String() string

func (*Appliance) UnmarshalDynamoItem

func (x *Appliance) UnmarshalDynamoItem(m map[string]types.AttributeValue) (err error)

UnmarshalDynamoItem unmarshals data from a dynamodb attribute map

type Car

type Car struct {

	// kitchen sink
	Engine *Engine `protobuf:"bytes,1,opt,name=engine,proto3" json:"engine,omitempty"`
	// how many wheels does the car have
	NrOfWheels int64 `protobuf:"varint,3,opt,name=nr_of_wheels,json=nrOfWheels,proto3" json:"nr_of_wheels,omitempty"`
	// name of the car
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Car message

func (*Car) Descriptor deprecated

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

Deprecated: Use Car.ProtoReflect.Descriptor instead.

func (*Car) DynamoKeyNames added in v0.2.4

func (x *Car) DynamoKeyNames() (v []string)

DynamoKeyNames returns the attribute names of the partition and sort keys respectively

func (*Car) DynamoPartitionKey added in v0.2.4

func (x *Car) DynamoPartitionKey() (v expression.KeyBuilder)

DynamoPartitionKey returns a key builder for the partition key

func (*Car) DynamoPartitionKeyName added in v0.2.4

func (x *Car) DynamoPartitionKeyName() (v expression.NameBuilder)

DynamoPartitionKeyName returns a key builder for the partition key

func (*Car) GetEngine

func (x *Car) GetEngine() *Engine

func (*Car) GetName

func (x *Car) GetName() string

func (*Car) GetNrOfWheels added in v0.1.0

func (x *Car) GetNrOfWheels() int64

func (*Car) MarshalDynamoItem

func (x *Car) MarshalDynamoItem() (m map[string]types.AttributeValue, err error)

MarshalDynamoItem marshals data into a dynamodb attribute map

func (*Car) ProtoMessage

func (*Car) ProtoMessage()

func (*Car) ProtoReflect

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

func (*Car) Reset

func (x *Car) Reset()

func (*Car) String

func (x *Car) String() string

func (*Car) UnmarshalDynamoItem

func (x *Car) UnmarshalDynamoItem(m map[string]types.AttributeValue) (err error)

UnmarshalDynamoItem unmarshals data from a dynamodb attribute map

type Dirtyness

type Dirtyness int32

DirtyNess describes how dirty a sink is

const (
	// unknown amount of dirtyness
	Dirtyness_DIRTYNESS_UNSPECIFIED Dirtyness = 0
	// no dirtyness
	Dirtyness_DIRTYNESS_CLEAN Dirtyness = 1
)

func (Dirtyness) Descriptor

func (Dirtyness) Descriptor() protoreflect.EnumDescriptor

func (Dirtyness) Enum

func (x Dirtyness) Enum() *Dirtyness

func (Dirtyness) EnumDescriptor deprecated

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

Deprecated: Use Dirtyness.Descriptor instead.

func (Dirtyness) Number

func (x Dirtyness) Number() protoreflect.EnumNumber

func (Dirtyness) String

func (x Dirtyness) String() string

func (Dirtyness) Type

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

Empty message

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) MarshalDynamoItem

func (x *Empty) MarshalDynamoItem() (m map[string]types.AttributeValue, err error)

MarshalDynamoItem marshals data into a dynamodb attribute map

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

func (*Empty) UnmarshalDynamoItem

func (x *Empty) UnmarshalDynamoItem(m map[string]types.AttributeValue) (err error)

UnmarshalDynamoItem unmarshals data from a dynamodb attribute map

type Engine

type Engine struct {

	// brand name
	Brand string `protobuf:"bytes,1,opt,name=brand,proto3" json:"brand,omitempty"`
	// how dirty is the sink
	Dirtyness Dirtyness `protobuf:"varint,2,opt,name=dirtyness,proto3,enum=example.message.v1.Dirtyness" json:"dirtyness,omitempty"`
	// contains filtered or unexported fields
}

Engine of a car

func (*Engine) Descriptor deprecated

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

Deprecated: Use Engine.ProtoReflect.Descriptor instead.

func (*Engine) GetBrand

func (x *Engine) GetBrand() string

func (*Engine) GetDirtyness

func (x *Engine) GetDirtyness() Dirtyness

func (*Engine) MarshalDynamoItem

func (x *Engine) MarshalDynamoItem() (m map[string]types.AttributeValue, err error)

MarshalDynamoItem marshals data into a dynamodb attribute map

func (*Engine) ProtoMessage

func (*Engine) ProtoMessage()

func (*Engine) ProtoReflect

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

func (*Engine) Reset

func (x *Engine) Reset()

func (*Engine) String

func (x *Engine) String() string

func (*Engine) UnmarshalDynamoItem

func (x *Engine) UnmarshalDynamoItem(m map[string]types.AttributeValue) (err error)

UnmarshalDynamoItem unmarshals data from a dynamodb attribute map

type FieldPresence

type FieldPresence struct {

	// string field
	Str string `protobuf:"bytes,1,opt,name=str,proto3" json:"str,omitempty"`
	// optional string field
	OptStr *string `protobuf:"bytes,2,opt,name=opt_str,json=optStr,proto3,oneof" json:"opt_str,omitempty"`
	// msg field
	Msg *Engine `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	// optional message field
	OptMsg *Engine `protobuf:"bytes,4,opt,name=opt_msg,json=optMsg,proto3,oneof" json:"opt_msg,omitempty"`
	// list of strings
	StrList []string `protobuf:"bytes,5,rep,name=str_list,json=strList,proto3" json:"str_list,omitempty"`
	// list of messages
	MsgList []*Engine `protobuf:"bytes,6,rep,name=msg_list,json=msgList,proto3" json:"msg_list,omitempty"`
	// map of strings
	StrMap map[string]string `` /* 167-byte string literal not displayed */
	// map of messages
	MsgMap map[string]*Engine `` /* 167-byte string literal not displayed */
	// enum field
	Enum Dirtyness `protobuf:"varint,9,opt,name=enum,proto3,enum=example.message.v1.Dirtyness" json:"enum,omitempty"`
	// enum field
	OptEnum *Dirtyness `protobuf:"varint,10,opt,name=opt_enum,json=optEnum,proto3,enum=example.message.v1.Dirtyness,oneof" json:"opt_enum,omitempty"`
	// one of field
	//
	// Types that are assignable to Oo:
	//
	//	*FieldPresence_OneofStr
	//	*FieldPresence_OneofMsg
	Oo isFieldPresence_Oo `protobuf_oneof:"oo"`
	// string wrapper
	StrVal *wrapperspb.StringValue `protobuf:"bytes,13,opt,name=str_val,json=strVal,proto3" json:"str_val,omitempty"`
	// bool wrapper
	BoolVal *wrapperspb.BoolValue `protobuf:"bytes,14,opt,name=bool_val,json=boolVal,proto3" json:"bool_val,omitempty"`
	// bytes wrapper
	BytesVal *wrapperspb.BytesValue `protobuf:"bytes,15,opt,name=bytes_val,json=bytesVal,proto3" json:"bytes_val,omitempty"`
	// double wrapper
	DoubleVal *wrapperspb.DoubleValue `protobuf:"bytes,16,opt,name=double_val,json=doubleVal,proto3" json:"double_val,omitempty"`
	// float wrapper
	FloatVal *wrapperspb.FloatValue `protobuf:"bytes,17,opt,name=float_val,json=floatVal,proto3" json:"float_val,omitempty"`
	// // in32 wrapper
	Int32Val *wrapperspb.Int32Value `protobuf:"bytes,18,opt,name=int32_val,json=int32Val,proto3" json:"int32_val,omitempty"`
	// // int64 wrapper
	Int64Val *wrapperspb.Int64Value `protobuf:"bytes,19,opt,name=int64_val,json=int64Val,proto3" json:"int64_val,omitempty"`
	// // uint32 wrapper
	Uint32Val *wrapperspb.UInt32Value `protobuf:"bytes,20,opt,name=uint32_val,json=uint32Val,proto3" json:"uint32_val,omitempty"`
	// // uint64 wrapper
	Uint64Val *wrapperspb.UInt64Value `protobuf:"bytes,21,opt,name=uint64_val,json=uint64Val,proto3" json:"uint64_val,omitempty"`
	// contains filtered or unexported fields
}

FieldPresence message is used to experiment and assert field presence in the generated attribute map

func (*FieldPresence) Descriptor deprecated

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

Deprecated: Use FieldPresence.ProtoReflect.Descriptor instead.

func (*FieldPresence) GetBoolVal

func (x *FieldPresence) GetBoolVal() *wrapperspb.BoolValue

func (*FieldPresence) GetBytesVal

func (x *FieldPresence) GetBytesVal() *wrapperspb.BytesValue

func (*FieldPresence) GetDoubleVal

func (x *FieldPresence) GetDoubleVal() *wrapperspb.DoubleValue

func (*FieldPresence) GetEnum

func (x *FieldPresence) GetEnum() Dirtyness

func (*FieldPresence) GetFloatVal

func (x *FieldPresence) GetFloatVal() *wrapperspb.FloatValue

func (*FieldPresence) GetInt32Val

func (x *FieldPresence) GetInt32Val() *wrapperspb.Int32Value

func (*FieldPresence) GetInt64Val

func (x *FieldPresence) GetInt64Val() *wrapperspb.Int64Value

func (*FieldPresence) GetMsg

func (x *FieldPresence) GetMsg() *Engine

func (*FieldPresence) GetMsgList

func (x *FieldPresence) GetMsgList() []*Engine

func (*FieldPresence) GetMsgMap

func (x *FieldPresence) GetMsgMap() map[string]*Engine

func (*FieldPresence) GetOneofMsg

func (x *FieldPresence) GetOneofMsg() *Engine

func (*FieldPresence) GetOneofStr

func (x *FieldPresence) GetOneofStr() string

func (*FieldPresence) GetOo

func (m *FieldPresence) GetOo() isFieldPresence_Oo

func (*FieldPresence) GetOptEnum

func (x *FieldPresence) GetOptEnum() Dirtyness

func (*FieldPresence) GetOptMsg

func (x *FieldPresence) GetOptMsg() *Engine

func (*FieldPresence) GetOptStr

func (x *FieldPresence) GetOptStr() string

func (*FieldPresence) GetStr

func (x *FieldPresence) GetStr() string

func (*FieldPresence) GetStrList

func (x *FieldPresence) GetStrList() []string

func (*FieldPresence) GetStrMap

func (x *FieldPresence) GetStrMap() map[string]string

func (*FieldPresence) GetStrVal

func (x *FieldPresence) GetStrVal() *wrapperspb.StringValue

func (*FieldPresence) GetUint32Val

func (x *FieldPresence) GetUint32Val() *wrapperspb.UInt32Value

func (*FieldPresence) GetUint64Val

func (x *FieldPresence) GetUint64Val() *wrapperspb.UInt64Value

func (*FieldPresence) MarshalDynamoItem

func (x *FieldPresence) MarshalDynamoItem() (m map[string]types.AttributeValue, err error)

MarshalDynamoItem marshals data into a dynamodb attribute map

func (*FieldPresence) ProtoMessage

func (*FieldPresence) ProtoMessage()

func (*FieldPresence) ProtoReflect

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

func (*FieldPresence) Reset

func (x *FieldPresence) Reset()

func (*FieldPresence) String

func (x *FieldPresence) String() string

func (*FieldPresence) UnmarshalDynamoItem

func (x *FieldPresence) UnmarshalDynamoItem(m map[string]types.AttributeValue) (err error)

UnmarshalDynamoItem unmarshals data from a dynamodb attribute map

type FieldPresence_OneofMsg

type FieldPresence_OneofMsg struct {
	// msg one option
	OneofMsg *Engine `protobuf:"bytes,12,opt,name=oneof_msg,json=oneofMsg,proto3,oneof"`
}

type FieldPresence_OneofStr

type FieldPresence_OneofStr struct {
	// string option
	OneofStr string `protobuf:"bytes,11,opt,name=oneof_str,json=oneofStr,proto3,oneof"`
}

type Ignored added in v0.2.0

type Ignored struct {

	// pk is omitted
	Pk string `protobuf:"bytes,1,opt,name=pk,proto3" json:"pk,omitempty"`
	// sk is omitted
	Sk string `protobuf:"bytes,2,opt,name=sk,proto3" json:"sk,omitempty"`
	// other field is also omitted
	Other string `protobuf:"bytes,3,opt,name=other,proto3" json:"other,omitempty"`
	// visible method is not omitted
	Visible string `protobuf:"bytes,4,opt,name=visible,proto3" json:"visible,omitempty"`
	// contains filtered or unexported fields
}

Ignored message tests omitting of fields works correctly

func (*Ignored) Descriptor deprecated added in v0.2.0

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

Deprecated: Use Ignored.ProtoReflect.Descriptor instead.

func (*Ignored) GetOther added in v0.2.0

func (x *Ignored) GetOther() string

func (*Ignored) GetPk added in v0.2.0

func (x *Ignored) GetPk() string

func (*Ignored) GetSk added in v0.2.0

func (x *Ignored) GetSk() string

func (*Ignored) GetVisible added in v0.2.0

func (x *Ignored) GetVisible() string

func (*Ignored) MarshalDynamoItem added in v0.2.0

func (x *Ignored) MarshalDynamoItem() (m map[string]types.AttributeValue, err error)

MarshalDynamoItem marshals data into a dynamodb attribute map

func (*Ignored) ProtoMessage added in v0.2.0

func (*Ignored) ProtoMessage()

func (*Ignored) ProtoReflect added in v0.2.0

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

func (*Ignored) Reset added in v0.2.0

func (x *Ignored) Reset()

func (*Ignored) String added in v0.2.0

func (x *Ignored) String() string

func (*Ignored) UnmarshalDynamoItem added in v0.2.0

func (x *Ignored) UnmarshalDynamoItem(m map[string]types.AttributeValue) (err error)

UnmarshalDynamoItem unmarshals data from a dynamodb attribute map

type JsonFields added in v0.2.0

type JsonFields struct {

	// encode a list of basic types into json
	JsonStrList []string `protobuf:"bytes,1,rep,name=json_str_list,json=jsonStrList,proto3" json:"json_str_list,omitempty"`
	// embed a json message directly with custom name
	JsonEngine *Engine `protobuf:"bytes,3,opt,name=json_engine,json=jsonEngine,proto3" json:"json_engine,omitempty"`
	// map with an iteger key
	JsonIntMap map[int64]string `` /* 182-byte string literal not displayed */
	// encode a list of messages
	JsonEngineList []*Engine `protobuf:"bytes,2,rep,name=json_engine_list,json=jsonEngineList,proto3" json:"json_engine_list,omitempty"`
	// map with bool key, and message type
	JsonEngineMap map[bool]*Engine `` /* 191-byte string literal not displayed */
	// json encoding of a set
	JsonNrSet []int64 `protobuf:"varint,6,rep,packed,name=json_nr_set,json=jsonNrSet,proto3" json:"json_nr_set,omitempty"`
	// contains filtered or unexported fields
}

JsonFields is a message with different fields encoding as json

func (*JsonFields) Descriptor deprecated added in v0.2.0

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

Deprecated: Use JsonFields.ProtoReflect.Descriptor instead.

func (*JsonFields) GetJsonEngine added in v0.2.0

func (x *JsonFields) GetJsonEngine() *Engine

func (*JsonFields) GetJsonEngineList added in v0.2.0

func (x *JsonFields) GetJsonEngineList() []*Engine

func (*JsonFields) GetJsonEngineMap added in v0.2.0

func (x *JsonFields) GetJsonEngineMap() map[bool]*Engine

func (*JsonFields) GetJsonIntMap added in v0.2.0

func (x *JsonFields) GetJsonIntMap() map[int64]string

func (*JsonFields) GetJsonNrSet added in v0.2.0

func (x *JsonFields) GetJsonNrSet() []int64

func (*JsonFields) GetJsonStrList added in v0.2.0

func (x *JsonFields) GetJsonStrList() []string

func (*JsonFields) MarshalDynamoItem added in v0.2.0

func (x *JsonFields) MarshalDynamoItem() (m map[string]types.AttributeValue, err error)

MarshalDynamoItem marshals data into a dynamodb attribute map

func (*JsonFields) ProtoMessage added in v0.2.0

func (*JsonFields) ProtoMessage()

func (*JsonFields) ProtoReflect added in v0.2.0

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

func (*JsonFields) Reset added in v0.2.0

func (x *JsonFields) Reset()

func (*JsonFields) String added in v0.2.0

func (x *JsonFields) String() string

func (*JsonFields) UnmarshalDynamoItem added in v0.2.0

func (x *JsonFields) UnmarshalDynamoItem(m map[string]types.AttributeValue) (err error)

UnmarshalDynamoItem unmarshals data from a dynamodb attribute map

type JsonOneofs added in v0.2.0

type JsonOneofs struct {

	// one of field
	//
	// Types that are assignable to JsonOo:
	//
	//	*JsonOneofs_OneofStr
	//	*JsonOneofs_OneofMsg
	JsonOo isJsonOneofs_JsonOo `protobuf_oneof:"json_oo"`
	// contains filtered or unexported fields
}

JsonOneOfs for testing json message with oneof field

func (*JsonOneofs) Descriptor deprecated added in v0.2.0

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

Deprecated: Use JsonOneofs.ProtoReflect.Descriptor instead.

func (*JsonOneofs) GetJsonOo added in v0.2.0

func (m *JsonOneofs) GetJsonOo() isJsonOneofs_JsonOo

func (*JsonOneofs) GetOneofMsg added in v0.2.0

func (x *JsonOneofs) GetOneofMsg() *Engine

func (*JsonOneofs) GetOneofStr added in v0.2.0

func (x *JsonOneofs) GetOneofStr() string

func (*JsonOneofs) MarshalDynamoItem added in v0.2.0

func (x *JsonOneofs) MarshalDynamoItem() (m map[string]types.AttributeValue, err error)

MarshalDynamoItem marshals data into a dynamodb attribute map

func (*JsonOneofs) ProtoMessage added in v0.2.0

func (*JsonOneofs) ProtoMessage()

func (*JsonOneofs) ProtoReflect added in v0.2.0

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

func (*JsonOneofs) Reset added in v0.2.0

func (x *JsonOneofs) Reset()

func (*JsonOneofs) String added in v0.2.0

func (x *JsonOneofs) String() string

func (*JsonOneofs) UnmarshalDynamoItem added in v0.2.0

func (x *JsonOneofs) UnmarshalDynamoItem(m map[string]types.AttributeValue) (err error)

UnmarshalDynamoItem unmarshals data from a dynamodb attribute map

type JsonOneofs_OneofMsg added in v0.2.0

type JsonOneofs_OneofMsg struct {
	// msg one option
	OneofMsg *Engine `protobuf:"bytes,8,opt,name=oneof_msg,json=oneofMsg,proto3,oneof"`
}

type JsonOneofs_OneofStr added in v0.2.0

type JsonOneofs_OneofStr struct {
	// string option
	OneofStr string `protobuf:"bytes,7,opt,name=oneof_str,json=oneofStr,proto3,oneof"`
}

type Kitchen

type Kitchen struct {

	// brand of kitchen
	Brand string `protobuf:"bytes,1,opt,name=brand,proto3" json:"brand,omitempty"`
	// is the kitchen renovated
	IsRenovated bool `protobuf:"varint,2,opt,name=is_renovated,json=isRenovated,proto3" json:"is_renovated,omitempty"`
	// some data
	QrCode []byte `protobuf:"bytes,3,opt,name=qr_code,json=qrCode,proto3" json:"qr_code,omitempty"`
	// small knife count
	NumSmallKnifes int32 `protobuf:"varint,4,opt,name=num_small_knifes,json=numSmallKnifes,proto3" json:"num_small_knifes,omitempty"`
	// sharp kife count
	NumSharpKnifes uint32 `protobuf:"fixed32,5,opt,name=num_sharp_knifes,json=numSharpKnifes,proto3" json:"num_sharp_knifes,omitempty"`
	// blunt knife count
	NumBluntKnifes uint32 `protobuf:"varint,6,opt,name=num_blunt_knifes,json=numBluntKnifes,proto3" json:"num_blunt_knifes,omitempty"`
	// num small forks
	NumSmallForks int64 `protobuf:"varint,7,opt,name=num_small_forks,json=numSmallForks,proto3" json:"num_small_forks,omitempty"`
	// num medium forks
	NumMediumForks uint64 `protobuf:"fixed64,8,opt,name=num_medium_forks,json=numMediumForks,proto3" json:"num_medium_forks,omitempty"`
	// large forks count
	NumLargeForks uint64 `protobuf:"varint,9,opt,name=num_large_forks,json=numLargeForks,proto3" json:"num_large_forks,omitempty"`
	// how many of the tiles are black
	PercentBlackTiles float32 `protobuf:"fixed32,10,opt,name=percent_black_tiles,json=percentBlackTiles,proto3" json:"percent_black_tiles,omitempty"`
	// precent white tiles
	PercentWhiteTiles float64 `protobuf:"fixed64,11,opt,name=percent_white_tiles,json=percentWhiteTiles,proto3" json:"percent_white_tiles,omitempty"`
	// dirtyness enum
	Dirtyness Dirtyness `protobuf:"varint,12,opt,name=dirtyness,proto3,enum=example.message.v1.Dirtyness" json:"dirtyness,omitempty"`
	// map with messages
	Furniture map[int64]*Appliance `` /* 161-byte string literal not displayed */
	// map with numbers
	Calendar map[string]int64 `` /* 159-byte string literal not displayed */
	// nested message
	WasherEngine *Engine `protobuf:"bytes,15,opt,name=washer_engine,json=washerEngine,proto3" json:"washer_engine,omitempty"`
	// extra nested message to test recursion
	ExtraKitchen *Kitchen `protobuf:"bytes,16,opt,name=extra_kitchen,json=extraKitchen,proto3" json:"extra_kitchen,omitempty"`
	// well-known Duration
	Timer *durationpb.Duration `protobuf:"bytes,17,opt,name=timer,proto3" json:"timer,omitempty"`
	// well-known Timestamp
	WallTime *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=wall_time,json=wallTime,proto3" json:"wall_time,omitempty"`
	// nested list of messages
	ApplianceEngines []*Engine `protobuf:"bytes,19,rep,name=appliance_engines,json=applianceEngines,proto3" json:"appliance_engines,omitempty"`
	// repeated basic type
	OtherBrands []string `protobuf:"bytes,20,rep,name=other_brands,json=otherBrands,proto3" json:"other_brands,omitempty"`
	// well-known Any field
	SomeAny *anypb.Any `protobuf:"bytes,21,opt,name=some_any,json=someAny,proto3" json:"some_any,omitempty"`
	// well-known FieldMask field
	SomeMask *fieldmaskpb.FieldMask `protobuf:"bytes,22,opt,name=some_mask,json=someMask,proto3" json:"some_mask,omitempty"`
	// struct value
	SomeValue *structpb.Value `protobuf:"bytes,23,opt,name=some_value,json=someValue,proto3" json:"some_value,omitempty"`
	// optional string
	OptString *string `protobuf:"bytes,24,opt,name=opt_string,json=optString,proto3,oneof" json:"opt_string,omitempty"`
	// string value (other kind of optional)
	ValStr *wrapperspb.StringValue `protobuf:"bytes,25,opt,name=val_str,json=valStr,proto3" json:"val_str,omitempty"`
	// string value (other kind of optional)
	ValBytes *wrapperspb.BytesValue `protobuf:"bytes,26,opt,name=val_bytes,json=valBytes,proto3" json:"val_bytes,omitempty"`
	// list of timestamps
	ListOfTs []*timestamppb.Timestamp `protobuf:"bytes,27,rep,name=list_of_ts,json=listOfTs,proto3" json:"list_of_ts,omitempty"`
	// set of strings
	StringSet []string `protobuf:"bytes,28,rep,name=string_set,json=stringSet,proto3" json:"string_set,omitempty"`
	// set of numbers
	NumberSet []int64 `protobuf:"varint,29,rep,packed,name=number_set,json=numberSet,proto3" json:"number_set,omitempty"`
	// set of bytes
	BytesSet [][]byte `protobuf:"bytes,30,rep,name=bytes_set,json=bytesSet,proto3" json:"bytes_set,omitempty"`
	// list of any
	RepeatedAny []*anypb.Any `protobuf:"bytes,31,rep,name=repeated_any,json=repeatedAny,proto3" json:"repeated_any,omitempty"`
	// map of any
	MappedAny map[string]*anypb.Any `` /* 177-byte string literal not displayed */
	// list of fieldmask
	RepeatedFmask []*fieldmaskpb.FieldMask `protobuf:"bytes,33,rep,name=repeated_fmask,json=repeatedFmask,proto3" json:"repeated_fmask,omitempty"`
	// map of fieldmask
	MappedFmask map[int32]*fieldmaskpb.FieldMask `` /* 184-byte string literal not displayed */
	// contains filtered or unexported fields
}

Kitchen holds all possible Protobuf field types

func (*Kitchen) Descriptor deprecated

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

Deprecated: Use Kitchen.ProtoReflect.Descriptor instead.

func (*Kitchen) DynamoKeyNames added in v0.2.4

func (x *Kitchen) DynamoKeyNames() (v []string)

DynamoKeyNames returns the attribute names of the partition and sort keys respectively

func (*Kitchen) DynamoPartitionKey added in v0.2.4

func (x *Kitchen) DynamoPartitionKey() (v expression.KeyBuilder)

DynamoPartitionKey returns a key builder for the partition key

func (*Kitchen) DynamoPartitionKeyName added in v0.2.4

func (x *Kitchen) DynamoPartitionKeyName() (v expression.NameBuilder)

DynamoPartitionKeyName returns a key builder for the partition key

func (*Kitchen) DynamoSortKey added in v0.2.4

func (x *Kitchen) DynamoSortKey() (v expression.KeyBuilder)

DynamoSortKey returns a key builder for the sort key

func (*Kitchen) DynamoSortKeyName added in v0.2.4

func (x *Kitchen) DynamoSortKeyName() (v expression.NameBuilder)

DynamoSortKeyName returns a key builder for the sort key

func (*Kitchen) GetApplianceEngines

func (x *Kitchen) GetApplianceEngines() []*Engine

func (*Kitchen) GetBrand

func (x *Kitchen) GetBrand() string

func (*Kitchen) GetBytesSet added in v0.2.0

func (x *Kitchen) GetBytesSet() [][]byte

func (*Kitchen) GetCalendar

func (x *Kitchen) GetCalendar() map[string]int64

func (*Kitchen) GetDirtyness

func (x *Kitchen) GetDirtyness() Dirtyness

func (*Kitchen) GetExtraKitchen

func (x *Kitchen) GetExtraKitchen() *Kitchen

func (*Kitchen) GetFurniture

func (x *Kitchen) GetFurniture() map[int64]*Appliance

func (*Kitchen) GetIsRenovated

func (x *Kitchen) GetIsRenovated() bool

func (*Kitchen) GetListOfTs added in v0.2.0

func (x *Kitchen) GetListOfTs() []*timestamppb.Timestamp

func (*Kitchen) GetMappedAny added in v0.2.6

func (x *Kitchen) GetMappedAny() map[string]*anypb.Any

func (*Kitchen) GetMappedFmask added in v0.2.6

func (x *Kitchen) GetMappedFmask() map[int32]*fieldmaskpb.FieldMask

func (*Kitchen) GetNumBluntKnifes

func (x *Kitchen) GetNumBluntKnifes() uint32

func (*Kitchen) GetNumLargeForks

func (x *Kitchen) GetNumLargeForks() uint64

func (*Kitchen) GetNumMediumForks

func (x *Kitchen) GetNumMediumForks() uint64

func (*Kitchen) GetNumSharpKnifes

func (x *Kitchen) GetNumSharpKnifes() uint32

func (*Kitchen) GetNumSmallForks

func (x *Kitchen) GetNumSmallForks() int64

func (*Kitchen) GetNumSmallKnifes

func (x *Kitchen) GetNumSmallKnifes() int32

func (*Kitchen) GetNumberSet added in v0.2.0

func (x *Kitchen) GetNumberSet() []int64

func (*Kitchen) GetOptString

func (x *Kitchen) GetOptString() string

func (*Kitchen) GetOtherBrands

func (x *Kitchen) GetOtherBrands() []string

func (*Kitchen) GetPercentBlackTiles

func (x *Kitchen) GetPercentBlackTiles() float32

func (*Kitchen) GetPercentWhiteTiles

func (x *Kitchen) GetPercentWhiteTiles() float64

func (*Kitchen) GetQrCode

func (x *Kitchen) GetQrCode() []byte

func (*Kitchen) GetRepeatedAny added in v0.2.6

func (x *Kitchen) GetRepeatedAny() []*anypb.Any

func (*Kitchen) GetRepeatedFmask added in v0.2.6

func (x *Kitchen) GetRepeatedFmask() []*fieldmaskpb.FieldMask

func (*Kitchen) GetSomeAny

func (x *Kitchen) GetSomeAny() *anypb.Any

func (*Kitchen) GetSomeMask

func (x *Kitchen) GetSomeMask() *fieldmaskpb.FieldMask

func (*Kitchen) GetSomeValue

func (x *Kitchen) GetSomeValue() *structpb.Value

func (*Kitchen) GetStringSet added in v0.2.0

func (x *Kitchen) GetStringSet() []string

func (*Kitchen) GetTimer

func (x *Kitchen) GetTimer() *durationpb.Duration

func (*Kitchen) GetValBytes

func (x *Kitchen) GetValBytes() *wrapperspb.BytesValue

func (*Kitchen) GetValStr

func (x *Kitchen) GetValStr() *wrapperspb.StringValue

func (*Kitchen) GetWallTime

func (x *Kitchen) GetWallTime() *timestamppb.Timestamp

func (*Kitchen) GetWasherEngine

func (x *Kitchen) GetWasherEngine() *Engine

func (*Kitchen) MarshalDynamoItem

func (x *Kitchen) MarshalDynamoItem() (m map[string]types.AttributeValue, err error)

MarshalDynamoItem marshals data into a dynamodb attribute map

func (*Kitchen) ProtoMessage

func (*Kitchen) ProtoMessage()

func (*Kitchen) ProtoReflect

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

func (*Kitchen) Reset

func (x *Kitchen) Reset()

func (*Kitchen) String

func (x *Kitchen) String() string

func (*Kitchen) UnmarshalDynamoItem

func (x *Kitchen) UnmarshalDynamoItem(m map[string]types.AttributeValue) (err error)

UnmarshalDynamoItem unmarshals data from a dynamodb attribute map

type MapGalore

type MapGalore struct {

	// all supported key types
	// int64/int64
	Int64Int64 map[int64]int64 `` /* 163-byte string literal not displayed */
	// uint64/uint64
	Uint64Uint64 map[uint64]uint64 `` /* 167-byte string literal not displayed */
	// fixed64/fixed64
	Fixed64Fixed64 map[uint64]uint64 `` /* 173-byte string literal not displayed */
	// sint64/sint64
	Sint64Sint64 map[int64]int64 `` /* 171-byte string literal not displayed */
	// sfixed64/sfixed64
	Sfixed64Sfixed64 map[int64]int64 `` /* 177-byte string literal not displayed */
	// int32/int32
	Int32Int32 map[int32]int32 `` /* 163-byte string literal not displayed */
	// uint32/uint32
	Uint32Uint32 map[uint32]uint32 `` /* 167-byte string literal not displayed */
	// fixed32/fixed32
	Fixed32Fixed32 map[uint32]uint32 `` /* 173-byte string literal not displayed */
	// sint32/sint32
	Sint32Sint32 map[int32]int32 `` /* 171-byte string literal not displayed */
	// sfixed32/sfixed32
	Sfixed32Sfixed32 map[int32]int32 `` /* 178-byte string literal not displayed */
	// string/string
	Stringstring map[string]string `` /* 166-byte string literal not displayed */
	// bool/bool
	Boolbool map[bool]bool `` /* 160-byte string literal not displayed */
	// rest of supported value types
	// string/bytes
	Stringbytes map[string][]byte `` /* 164-byte string literal not displayed */
	// string/double
	Stringdouble map[string]float64 `` /* 168-byte string literal not displayed */
	// string/float
	Stringfloat map[string]float32 `` /* 166-byte string literal not displayed */
	// string/duration
	Stringduration map[string]*durationpb.Duration `` /* 170-byte string literal not displayed */
	// string/duration
	Stringtimestamp map[string]*timestamppb.Timestamp `` /* 172-byte string literal not displayed */
	// maps to messages
	Boolengine map[bool]*Engine `` /* 163-byte string literal not displayed */
	// maps to messages
	Uintengine map[uint64]*Engine `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

MapGalore holds hopefully most of the map combinations. They are in particular difficult to generate valid code for.

func (*MapGalore) Descriptor deprecated

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

Deprecated: Use MapGalore.ProtoReflect.Descriptor instead.

func (*MapGalore) GetBoolbool

func (x *MapGalore) GetBoolbool() map[bool]bool

func (*MapGalore) GetBoolengine added in v0.2.0

func (x *MapGalore) GetBoolengine() map[bool]*Engine

func (*MapGalore) GetFixed32Fixed32

func (x *MapGalore) GetFixed32Fixed32() map[uint32]uint32

func (*MapGalore) GetFixed64Fixed64

func (x *MapGalore) GetFixed64Fixed64() map[uint64]uint64

func (*MapGalore) GetInt32Int32

func (x *MapGalore) GetInt32Int32() map[int32]int32

func (*MapGalore) GetInt64Int64

func (x *MapGalore) GetInt64Int64() map[int64]int64

func (*MapGalore) GetSfixed32Sfixed32

func (x *MapGalore) GetSfixed32Sfixed32() map[int32]int32

func (*MapGalore) GetSfixed64Sfixed64

func (x *MapGalore) GetSfixed64Sfixed64() map[int64]int64

func (*MapGalore) GetSint32Sint32

func (x *MapGalore) GetSint32Sint32() map[int32]int32

func (*MapGalore) GetSint64Sint64

func (x *MapGalore) GetSint64Sint64() map[int64]int64

func (*MapGalore) GetStringbytes

func (x *MapGalore) GetStringbytes() map[string][]byte

func (*MapGalore) GetStringdouble

func (x *MapGalore) GetStringdouble() map[string]float64

func (*MapGalore) GetStringduration

func (x *MapGalore) GetStringduration() map[string]*durationpb.Duration

func (*MapGalore) GetStringfloat

func (x *MapGalore) GetStringfloat() map[string]float32

func (*MapGalore) GetStringstring

func (x *MapGalore) GetStringstring() map[string]string

func (*MapGalore) GetStringtimestamp

func (x *MapGalore) GetStringtimestamp() map[string]*timestamppb.Timestamp

func (*MapGalore) GetUint32Uint32

func (x *MapGalore) GetUint32Uint32() map[uint32]uint32

func (*MapGalore) GetUint64Uint64

func (x *MapGalore) GetUint64Uint64() map[uint64]uint64

func (*MapGalore) GetUintengine added in v0.2.0

func (x *MapGalore) GetUintengine() map[uint64]*Engine

func (*MapGalore) MarshalDynamoItem

func (x *MapGalore) MarshalDynamoItem() (m map[string]types.AttributeValue, err error)

MarshalDynamoItem marshals data into a dynamodb attribute map

func (*MapGalore) ProtoMessage

func (*MapGalore) ProtoMessage()

func (*MapGalore) ProtoReflect

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

func (*MapGalore) Reset

func (x *MapGalore) Reset()

func (*MapGalore) String

func (x *MapGalore) String() string

func (*MapGalore) UnmarshalDynamoItem

func (x *MapGalore) UnmarshalDynamoItem(m map[string]types.AttributeValue) (err error)

UnmarshalDynamoItem unmarshals data from a dynamodb attribute map

type OtherKitchen

type OtherKitchen struct {

	// extra nested message to test recursion
	AnotherKitchen *Kitchen `protobuf:"bytes,16,opt,name=another_kitchen,json=anotherKitchen,proto3" json:"another_kitchen,omitempty"`
	// well-known imported messages
	OtherTimer *durationpb.Duration `protobuf:"bytes,17,opt,name=other_timer,json=otherTimer,proto3" json:"other_timer,omitempty"`
	// contains filtered or unexported fields
}

OtherKitchen holds fields that are similar to the first kitchen. To test name collisions for identifiers

func (*OtherKitchen) Descriptor deprecated

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

Deprecated: Use OtherKitchen.ProtoReflect.Descriptor instead.

func (*OtherKitchen) GetAnotherKitchen

func (x *OtherKitchen) GetAnotherKitchen() *Kitchen

func (*OtherKitchen) GetOtherTimer

func (x *OtherKitchen) GetOtherTimer() *durationpb.Duration

func (*OtherKitchen) MarshalDynamoItem

func (x *OtherKitchen) MarshalDynamoItem() (m map[string]types.AttributeValue, err error)

MarshalDynamoItem marshals data into a dynamodb attribute map

func (*OtherKitchen) ProtoMessage

func (*OtherKitchen) ProtoMessage()

func (*OtherKitchen) ProtoReflect

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

func (*OtherKitchen) Reset

func (x *OtherKitchen) Reset()

func (*OtherKitchen) String

func (x *OtherKitchen) String() string

func (*OtherKitchen) UnmarshalDynamoItem

func (x *OtherKitchen) UnmarshalDynamoItem(m map[string]types.AttributeValue) (err error)

UnmarshalDynamoItem unmarshals data from a dynamodb attribute map

type ValueGalore

type ValueGalore struct {

	// struct value
	SomeValue *structpb.Value `protobuf:"bytes,1,opt,name=some_value,json=someValue,proto3" json:"some_value,omitempty"`
	// contains filtered or unexported fields
}

Message for testing structpb value marshalling

func (*ValueGalore) Descriptor deprecated

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

Deprecated: Use ValueGalore.ProtoReflect.Descriptor instead.

func (*ValueGalore) GetSomeValue

func (x *ValueGalore) GetSomeValue() *structpb.Value

func (*ValueGalore) MarshalDynamoItem

func (x *ValueGalore) MarshalDynamoItem() (m map[string]types.AttributeValue, err error)

MarshalDynamoItem marshals data into a dynamodb attribute map

func (*ValueGalore) ProtoMessage

func (*ValueGalore) ProtoMessage()

func (*ValueGalore) ProtoReflect

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

func (*ValueGalore) Reset

func (x *ValueGalore) Reset()

func (*ValueGalore) String

func (x *ValueGalore) String() string

func (*ValueGalore) UnmarshalDynamoItem

func (x *ValueGalore) UnmarshalDynamoItem(m map[string]types.AttributeValue) (err error)

UnmarshalDynamoItem unmarshals data from a dynamodb attribute map

Directories

Path Synopsis
Package messagev1ddbpath holds generated code for working with Dynamo document paths
Package messagev1ddbpath holds generated code for working with Dynamo document paths

Jump to

Keyboard shortcuts

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