propertyportal

package
v0.0.0-...-284caec Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PropertyType_name = map[int32]string{
		0: "Any",
		1: "Detached",
		2: "SemiDetached",
		3: "Terraced",
		4: "Flat",
	}
	PropertyType_value = map[string]int32{
		"Any":          0,
		"Detached":     1,
		"SemiDetached": 2,
		"Terraced":     3,
		"Flat":         4,
	}
)

Enum value maps for PropertyType.

View Source
var File_property_portal_proto protoreflect.FileDescriptor
View Source
var PropertyPortal_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "propertyportal.PropertyPortal",
	HandlerType: (*PropertyPortalServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FindProperties",
			Handler:    _PropertyPortal_FindProperties_Handler,
		},
		{
			MethodName: "GetPropertyDetails",
			Handler:    _PropertyPortal_GetPropertyDetails_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetPropertyImages",
			Handler:       _PropertyPortal_GetPropertyImages_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "property_portal.proto",
}

PropertyPortal_ServiceDesc is the grpc.ServiceDesc for PropertyPortal service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPropertyPortalServer

func RegisterPropertyPortalServer(s grpc.ServiceRegistrar, srv PropertyPortalServer)

Types

type EnergyEfficiencyRating

type EnergyEfficiencyRating struct {
	Current   uint32 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"`
	Potential uint32 `protobuf:"varint,2,opt,name=potential,proto3" json:"potential,omitempty"`
	// contains filtered or unexported fields
}

func (*EnergyEfficiencyRating) Descriptor deprecated

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

Deprecated: Use EnergyEfficiencyRating.ProtoReflect.Descriptor instead.

func (*EnergyEfficiencyRating) GetCurrent

func (x *EnergyEfficiencyRating) GetCurrent() uint32

func (*EnergyEfficiencyRating) GetPotential

func (x *EnergyEfficiencyRating) GetPotential() uint32

func (*EnergyEfficiencyRating) ProtoMessage

func (*EnergyEfficiencyRating) ProtoMessage()

func (*EnergyEfficiencyRating) ProtoReflect

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

func (*EnergyEfficiencyRating) Reset

func (x *EnergyEfficiencyRating) Reset()

func (*EnergyEfficiencyRating) String

func (x *EnergyEfficiencyRating) String() string

type Features

type Features struct {
	Garden  int32 `protobuf:"varint,1,opt,name=Garden,proto3" json:"Garden,omitempty"`
	Parking int32 `protobuf:"varint,2,opt,name=Parking,proto3" json:"Parking,omitempty"`
	NewHome int32 `protobuf:"varint,3,opt,name=NewHome,proto3" json:"NewHome,omitempty"`
	// contains filtered or unexported fields
}

func (*Features) Descriptor deprecated

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

Deprecated: Use Features.ProtoReflect.Descriptor instead.

func (*Features) GetGarden

func (x *Features) GetGarden() int32

func (*Features) GetNewHome

func (x *Features) GetNewHome() int32

func (*Features) GetParking

func (x *Features) GetParking() int32

func (*Features) ProtoMessage

func (*Features) ProtoMessage()

func (*Features) ProtoReflect

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

func (*Features) Reset

func (x *Features) Reset()

func (*Features) String

func (x *Features) String() string

type Filters

type Filters struct {
	Location     string       `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	MinPrice     float64      `protobuf:"fixed64,2,opt,name=minPrice,proto3" json:"minPrice,omitempty"`
	MaxPrice     float64      `protobuf:"fixed64,3,opt,name=maxPrice,proto3" json:"maxPrice,omitempty"`
	MinBeds      uint32       `protobuf:"varint,4,opt,name=minBeds,proto3" json:"minBeds,omitempty"`
	MaxBeds      uint32       `protobuf:"varint,5,opt,name=maxBeds,proto3" json:"maxBeds,omitempty"`
	PropertyType PropertyType `protobuf:"varint,6,opt,name=propertyType,proto3,enum=propertyportal.PropertyType" json:"propertyType,omitempty"`
	MustHaves    *Features    `protobuf:"bytes,7,opt,name=mustHaves,proto3" json:"mustHaves,omitempty"`
	// contains filtered or unexported fields
}

func (*Filters) Descriptor deprecated

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

Deprecated: Use Filters.ProtoReflect.Descriptor instead.

func (*Filters) GetLocation

func (x *Filters) GetLocation() string

func (*Filters) GetMaxBeds

func (x *Filters) GetMaxBeds() uint32

func (*Filters) GetMaxPrice

func (x *Filters) GetMaxPrice() float64

func (*Filters) GetMinBeds

func (x *Filters) GetMinBeds() uint32

func (*Filters) GetMinPrice

func (x *Filters) GetMinPrice() float64

func (*Filters) GetMustHaves

func (x *Filters) GetMustHaves() *Features

func (*Filters) GetPropertyType

func (x *Filters) GetPropertyType() PropertyType

func (*Filters) ProtoMessage

func (*Filters) ProtoMessage()

func (*Filters) ProtoReflect

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

func (*Filters) Reset

func (x *Filters) Reset()

func (*Filters) String

func (x *Filters) String() string

type Image

type Image struct {

	// Types that are assignable to Image:
	//	*Image_Url
	//	*Image_Data
	Image isImage_Image `protobuf_oneof:"image"`
	// contains filtered or unexported fields
}

func (*Image) Descriptor deprecated

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

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetData

func (x *Image) GetData() []byte

func (*Image) GetImage

func (m *Image) GetImage() isImage_Image

func (*Image) GetUrl

func (x *Image) GetUrl() string

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

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

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

type Image_Data

type Image_Data struct {
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof"`
}

type Image_Url

type Image_Url struct {
	Url string `protobuf:"bytes,1,opt,name=url,proto3,oneof"`
}

type Properties

type Properties struct {
	Properties []*Property `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty"`
	// contains filtered or unexported fields
}

func (*Properties) Descriptor deprecated

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

Deprecated: Use Properties.ProtoReflect.Descriptor instead.

func (*Properties) GetProperties

func (x *Properties) GetProperties() []*Property

func (*Properties) ProtoMessage

func (*Properties) ProtoMessage()

func (*Properties) ProtoReflect

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

func (*Properties) Reset

func (x *Properties) Reset()

func (*Properties) String

func (x *Properties) String() string

type Property

type Property struct {
	Id    uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// contains filtered or unexported fields
}

func (*Property) Descriptor deprecated

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

Deprecated: Use Property.ProtoReflect.Descriptor instead.

func (*Property) GetId

func (x *Property) GetId() uint64

func (*Property) GetTitle

func (x *Property) GetTitle() string

func (*Property) ProtoMessage

func (*Property) ProtoMessage()

func (*Property) ProtoReflect

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

func (*Property) Reset

func (x *Property) Reset()

func (*Property) String

func (x *Property) String() string

type PropertyDetails

type PropertyDetails struct {
	Property               *Property               `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
	Description            string                  `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Location               string                  `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
	Price                  float64                 `protobuf:"fixed64,4,opt,name=price,proto3" json:"price,omitempty"`
	Beds                   uint32                  `protobuf:"varint,5,opt,name=beds,proto3" json:"beds,omitempty"`
	Bathrooms              uint32                  `protobuf:"varint,6,opt,name=bathrooms,proto3" json:"bathrooms,omitempty"`
	PropertyType           PropertyType            `protobuf:"varint,7,opt,name=propertyType,proto3,enum=propertyportal.PropertyType" json:"propertyType,omitempty"`
	Features               *Features               `protobuf:"bytes,8,opt,name=features,proto3" json:"features,omitempty"`
	EnergyEfficiencyRating *EnergyEfficiencyRating `protobuf:"bytes,9,opt,name=energyEfficiencyRating,proto3" json:"energyEfficiencyRating,omitempty"`
	// contains filtered or unexported fields
}

func (*PropertyDetails) Descriptor deprecated

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

Deprecated: Use PropertyDetails.ProtoReflect.Descriptor instead.

func (*PropertyDetails) GetBathrooms

func (x *PropertyDetails) GetBathrooms() uint32

func (*PropertyDetails) GetBeds

func (x *PropertyDetails) GetBeds() uint32

func (*PropertyDetails) GetDescription

func (x *PropertyDetails) GetDescription() string

func (*PropertyDetails) GetEnergyEfficiencyRating

func (x *PropertyDetails) GetEnergyEfficiencyRating() *EnergyEfficiencyRating

func (*PropertyDetails) GetFeatures

func (x *PropertyDetails) GetFeatures() *Features

func (*PropertyDetails) GetLocation

func (x *PropertyDetails) GetLocation() string

func (*PropertyDetails) GetPrice

func (x *PropertyDetails) GetPrice() float64

func (*PropertyDetails) GetProperty

func (x *PropertyDetails) GetProperty() *Property

func (*PropertyDetails) GetPropertyType

func (x *PropertyDetails) GetPropertyType() PropertyType

func (*PropertyDetails) ProtoMessage

func (*PropertyDetails) ProtoMessage()

func (*PropertyDetails) ProtoReflect

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

func (*PropertyDetails) Reset

func (x *PropertyDetails) Reset()

func (*PropertyDetails) String

func (x *PropertyDetails) String() string

type PropertyPortalClient

type PropertyPortalClient interface {
	FindProperties(ctx context.Context, in *Filters, opts ...grpc.CallOption) (*Properties, error)
	GetPropertyDetails(ctx context.Context, in *Property, opts ...grpc.CallOption) (*PropertyDetails, error)
	GetPropertyImages(ctx context.Context, opts ...grpc.CallOption) (PropertyPortal_GetPropertyImagesClient, error)
}

PropertyPortalClient is the client API for PropertyPortal service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type PropertyPortalServer

type PropertyPortalServer interface {
	FindProperties(context.Context, *Filters) (*Properties, error)
	GetPropertyDetails(context.Context, *Property) (*PropertyDetails, error)
	GetPropertyImages(PropertyPortal_GetPropertyImagesServer) error
	// contains filtered or unexported methods
}

PropertyPortalServer is the server API for PropertyPortal service. All implementations must embed UnimplementedPropertyPortalServer for forward compatibility

type PropertyPortal_GetPropertyImagesClient

type PropertyPortal_GetPropertyImagesClient interface {
	Send(*Property) error
	Recv() (*Image, error)
	grpc.ClientStream
}

type PropertyPortal_GetPropertyImagesServer

type PropertyPortal_GetPropertyImagesServer interface {
	Send(*Image) error
	Recv() (*Property, error)
	grpc.ServerStream
}

type PropertyType

type PropertyType int32
const (
	PropertyType_Any          PropertyType = 0
	PropertyType_Detached     PropertyType = 1
	PropertyType_SemiDetached PropertyType = 2
	PropertyType_Terraced     PropertyType = 3
	PropertyType_Flat         PropertyType = 4
)

func (PropertyType) Descriptor

func (PropertyType) Enum

func (x PropertyType) Enum() *PropertyType

func (PropertyType) EnumDescriptor deprecated

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

Deprecated: Use PropertyType.Descriptor instead.

func (PropertyType) Number

func (PropertyType) String

func (x PropertyType) String() string

func (PropertyType) Type

type UnimplementedPropertyPortalServer

type UnimplementedPropertyPortalServer struct {
}

UnimplementedPropertyPortalServer must be embedded to have forward compatible implementations.

func (UnimplementedPropertyPortalServer) FindProperties

func (UnimplementedPropertyPortalServer) GetPropertyDetails

func (UnimplementedPropertyPortalServer) GetPropertyImages

type UnsafePropertyPortalServer

type UnsafePropertyPortalServer interface {
	// contains filtered or unexported methods
}

UnsafePropertyPortalServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PropertyPortalServer will result in compilation errors.

Jump to

Keyboard shortcuts

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