converter

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 8 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

func (*Address) ToFirestore

func (x *Address) ToFirestore() (*FirestoreAddress, error)

ToFirestore returns the Firestore Custom Object for Address.

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 (*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) ToFirestore

func (x *City) ToFirestore() (*FirestoreCity, error)

ToFirestore returns the Firestore Custom Object for City.

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

func (*City_MyNestedMessage) ToFirestore

ToFirestore returns the Firestore Custom Object for City_MyNestedMessage.

type Firestore

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

func WithFirestore

func WithFirestore(client *firestore.Client) *Firestore

type FirestoreAddress

type FirestoreAddress struct {
	Value string `firestore:"value,omitempty"`
}

FirestoreAddress is the Firestore Custom Object for converter.Address.

func (*FirestoreAddress) ToProto

func (m *FirestoreAddress) ToProto() (*Address, error)

ToProto converts this FirestoreAddress to its protobuf representation.

type FirestoreCity

type FirestoreCity struct {
	StringField            string                         `firestore:"stringField,omitempty"`
	BoolField              bool                           `firestore:"boolField,omitempty"`
	BytesField             []byte                         `firestore:"bytesField,omitempty"`
	Int32Field             int32                          `firestore:"int32Field,omitempty"`
	Int64Field             int64                          `firestore:"int64Field,omitempty"`
	Uint32Field            uint32                         `firestore:"uint32Field,omitempty"`
	Sint32Field            int32                          `firestore:"sint32Field,omitempty"`
	Sint64Field            int64                          `firestore:"sint64Field,omitempty"`
	FloatField             float32                        `firestore:"floatField,omitempty"`
	DoubleField            float64                        `firestore:"doubleField,omitempty"`
	TimestampField         time.Time                      `firestore:"timestampField,omitempty"`
	RepeatedStringField    []string                       `firestore:"repeatedStringField,omitempty"`
	RepeatedBoolField      []bool                         `firestore:"repeatedBoolField,omitempty"`
	RepeatedBytesField     [][]byte                       `firestore:"repeatedBytesField,omitempty"`
	RepeatedInt32Field     []int32                        `firestore:"repeatedInt32Field,omitempty"`
	RepeatedInt64Field     []int64                        `firestore:"repeatedInt64Field,omitempty"`
	RepeatedUint32Field    []uint32                       `firestore:"repeatedUint32Field,omitempty"`
	RepeatedSint32Field    []int32                        `firestore:"repeatedSint32Field,omitempty"`
	RepeatedSint64Field    []int64                        `firestore:"repeatedSint64Field,omitempty"`
	RepeatedFloatField     []float32                      `firestore:"repeatedFloatField,omitempty"`
	RepeatedDoubleField    []float64                      `firestore:"repeatedDoubleField,omitempty"`
	RepeatedTimestampField []time.Time                    `firestore:"repeatedTimestampField,omitempty"`
	Mayor                  *FirestoreMayor                `firestore:"mayor,omitempty"`
	MyNestedField          *FirestoreCity_MyNestedMessage `firestore:"myNestedField,omitempty"`
}

FirestoreCity is the Firestore Custom Object for converter.City.

func (*FirestoreCity) ToProto

func (m *FirestoreCity) ToProto() (*City, error)

ToProto converts this FirestoreCity to its protobuf representation.

type FirestoreCity_MyNestedMessage

type FirestoreCity_MyNestedMessage struct {
	Name string `firestore:"name,omitempty"`
}

FirestoreCity_MyNestedMessage is the Firestore Custom Object for converter.City_MyNestedMessage.

func (*FirestoreCity_MyNestedMessage) ToProto

ToProto converts this FirestoreCity_MyNestedMessage to its protobuf representation.

type FirestoreMayor

type FirestoreMayor struct {
	Name    string            `firestore:"name,omitempty"`
	Address *FirestoreAddress `firestore:"address,omitempty"`
}

FirestoreMayor is the Firestore Custom Object for converter.Mayor.

func (*FirestoreMayor) ToProto

func (m *FirestoreMayor) ToProto() (*Mayor, error)

ToProto converts this FirestoreMayor to its protobuf representation.

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

func (*Mayor) ToFirestore

func (x *Mayor) ToFirestore() (*FirestoreMayor, error)

ToFirestore returns the Firestore Custom Object for Mayor.

Jump to

Keyboard shortcuts

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