converter

package
v3.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_converter_converter_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Address

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

func (*Address) Descriptor deprecated

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

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetValue

func (x *Address) GetValue() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

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

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

type City

type City struct {
	StringField            string                   `protobuf:"bytes,1,opt,name=string_field,json=stringField,proto3" json:"string_field,omitempty"`
	BoolField              bool                     `protobuf:"varint,2,opt,name=bool_field,json=boolField,proto3" json:"bool_field,omitempty"`
	BytesField             []byte                   `protobuf:"bytes,3,opt,name=bytes_field,json=bytesField,proto3" json:"bytes_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"`
	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"`
	FloatField             float32                  `protobuf:"fixed32,10,opt,name=float_field,json=floatField,proto3" json:"float_field,omitempty"`
	DoubleField            float64                  `protobuf:"fixed64,11,opt,name=double_field,json=doubleField,proto3" json:"double_field,omitempty"`
	TimestampField         *timestamppb.Timestamp   `protobuf:"bytes,12,opt,name=timestamp_field,json=timestampField,proto3" json:"timestamp_field,omitempty"`
	RepeatedStringField    []string                 `protobuf:"bytes,13,rep,name=repeated_string_field,json=repeatedStringField,proto3" json:"repeated_string_field,omitempty"`
	RepeatedBoolField      []bool                   `protobuf:"varint,14,rep,packed,name=repeated_bool_field,json=repeatedBoolField,proto3" json:"repeated_bool_field,omitempty"`
	RepeatedBytesField     [][]byte                 `protobuf:"bytes,15,rep,name=repeated_bytes_field,json=repeatedBytesField,proto3" json:"repeated_bytes_field,omitempty"`
	RepeatedInt32Field     []int32                  `` /* 126-byte string literal not displayed */
	RepeatedInt64Field     []int64                  `` /* 126-byte string literal not displayed */
	RepeatedUint32Field    []uint32                 `` /* 129-byte string literal not displayed */
	RepeatedSint32Field    []int32                  `` /* 131-byte string literal not displayed */
	RepeatedSint64Field    []int64                  `` /* 131-byte string literal not displayed */
	RepeatedFloatField     []float32                `` /* 127-byte string literal not displayed */
	RepeatedDoubleField    []float64                `` /* 130-byte string literal not displayed */
	RepeatedTimestampField []*timestamppb.Timestamp `` /* 130-byte string literal not displayed */
	Mayor                  *Mayor                   `protobuf:"bytes,28,opt,name=mayor,proto3" json:"mayor,omitempty"`
	MyNestedField          *City_MyNestedMessage    `protobuf:"bytes,29,opt,name=my_nested_field,json=myNestedField,proto3" json:"my_nested_field,omitempty"`
	// contains filtered or unexported fields
}

func FirestoreMapToCity

func FirestoreMapToCity(m map[string]any) (*City, error)

func (*City) Descriptor deprecated

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

Deprecated: Use City.ProtoReflect.Descriptor instead.

func (*City) GetBoolField

func (x *City) GetBoolField() bool

func (*City) GetBytesField

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

func (*City) GetDoubleField

func (x *City) GetDoubleField() float64

func (*City) GetFloatField

func (x *City) GetFloatField() float32

func (*City) GetInt32Field

func (x *City) GetInt32Field() int32

func (*City) GetInt64Field

func (x *City) GetInt64Field() int64

func (*City) GetMayor

func (x *City) GetMayor() *Mayor

func (*City) GetMyNestedField

func (x *City) GetMyNestedField() *City_MyNestedMessage

func (*City) GetRepeatedBoolField

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

func (*City) GetRepeatedBytesField

func (x *City) GetRepeatedBytesField() [][]byte

func (*City) GetRepeatedDoubleField

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

func (*City) GetRepeatedFloatField

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

func (*City) GetRepeatedInt32Field

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

func (*City) GetRepeatedInt64Field

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

func (*City) GetRepeatedSint32Field

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

func (*City) GetRepeatedSint64Field

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

func (*City) GetRepeatedStringField

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

func (*City) GetRepeatedTimestampField

func (x *City) GetRepeatedTimestampField() []*timestamppb.Timestamp

func (*City) GetRepeatedUint32Field

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

func (*City) GetSint32Field

func (x *City) GetSint32Field() int32

func (*City) GetSint64Field

func (x *City) GetSint64Field() int64

func (*City) GetStringField

func (x *City) GetStringField() string

func (*City) GetTimestampField

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

func (*City) GetUint32Field

func (x *City) GetUint32Field() uint32

func (*City) ProtoMessage

func (*City) ProtoMessage()

func (*City) ProtoReflect

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

func (*City) Reset

func (x *City) Reset()

func (*City) String

func (x *City) String() string

func (*City) ToFirestoreMap

func (x *City) ToFirestoreMap() (map[string]any, error)

type City_MyNestedMessage

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

func (*City_MyNestedMessage) Descriptor deprecated

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

Deprecated: Use City_MyNestedMessage.ProtoReflect.Descriptor instead.

func (*City_MyNestedMessage) GetName

func (x *City_MyNestedMessage) GetName() string

func (*City_MyNestedMessage) ProtoMessage

func (*City_MyNestedMessage) ProtoMessage()

func (*City_MyNestedMessage) ProtoReflect

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

func (*City_MyNestedMessage) Reset

func (x *City_MyNestedMessage) Reset()

func (*City_MyNestedMessage) String

func (x *City_MyNestedMessage) String() string

type Firestore

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

func WithFirestore

func WithFirestore(client *firestore.Client) *Firestore

type Mayor

type Mayor struct {
	Name    string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Address *Address `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*Mayor) Descriptor deprecated

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

Deprecated: Use Mayor.ProtoReflect.Descriptor instead.

func (*Mayor) GetAddress

func (x *Mayor) GetAddress() *Address

func (*Mayor) GetName

func (x *Mayor) GetName() string

func (*Mayor) ProtoMessage

func (*Mayor) ProtoMessage()

func (*Mayor) ProtoReflect

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

func (*Mayor) Reset

func (x *Mayor) Reset()

func (*Mayor) String

func (x *Mayor) String() string

Jump to

Keyboard shortcuts

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