Documentation ¶
Index ¶
- Variables
- type Address
- func (*Address) Descriptor() ([]byte, []int)deprecated
- func (x *Address) GetCity() string
- func (x *Address) GetCountry() string
- func (x *Address) GetGeo() *structpb.Struct
- func (x *Address) GetLine1() string
- func (x *Address) GetLine2() string
- func (x *Address) GetLine3() string
- func (x *Address) GetRegion() string
- func (x *Address) GetState() string
- func (x *Address) GetZipCode() string
- func (*Address) ProtoMessage()
- func (x *Address) ProtoReflect() protoreflect.Message
- func (x *Address) Reset()
- func (x *Address) String() string
- type AddressEntity
- type Point
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrGeoNotPoint = errors.New("geometry is not a point")
)
View Source
var File_address_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"` Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` // State or province State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` City string `protobuf:"bytes,4,opt,name=city,proto3" json:"city,omitempty"` ZipCode string `protobuf:"bytes,5,opt,name=zip_code,json=zipCode,proto3" json:"zip_code,omitempty"` Line1 string `protobuf:"bytes,6,opt,name=line1,proto3" json:"line1,omitempty"` Line2 string `protobuf:"bytes,7,opt,name=line2,proto3" json:"line2,omitempty"` Line3 string `protobuf:"bytes,8,opt,name=line3,proto3" json:"line3,omitempty"` // Geo geojson Geo *structpb.Struct `protobuf:"bytes,100,opt,name=geo,proto3" json:"geo,omitempty"` // contains filtered or unexported fields }
func (*Address) Descriptor
deprecated
func (*Address) GetCountry ¶
func (*Address) GetZipCode ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
type AddressEntity ¶
type AddressEntity struct { Country string Region string //State or province State string City string ZipCode string Line1 string Line2 string Line3 string Geo *Point }
func NewAddressEntityFromPb ¶
func NewAddressEntityFromPb(s *Address) (*AddressEntity, error)
func (*AddressEntity) ToPb ¶
func (s *AddressEntity) ToPb() (*Address, error)
Click to show internal directories.
Click to hide internal directories.