Documentation ¶
Index ¶
- Variables
- func RegisterPropertyPortalServer(s grpc.ServiceRegistrar, srv PropertyPortalServer)
- type EnergyEfficiencyRating
- func (*EnergyEfficiencyRating) Descriptor() ([]byte, []int)deprecated
- func (x *EnergyEfficiencyRating) GetCurrent() uint32
- func (x *EnergyEfficiencyRating) GetPotential() uint32
- func (*EnergyEfficiencyRating) ProtoMessage()
- func (x *EnergyEfficiencyRating) ProtoReflect() protoreflect.Message
- func (x *EnergyEfficiencyRating) Reset()
- func (x *EnergyEfficiencyRating) String() string
- type Features
- func (*Features) Descriptor() ([]byte, []int)deprecated
- func (x *Features) GetGarden() int32
- func (x *Features) GetNewHome() int32
- func (x *Features) GetParking() int32
- func (*Features) ProtoMessage()
- func (x *Features) ProtoReflect() protoreflect.Message
- func (x *Features) Reset()
- func (x *Features) String() string
- type Filters
- func (*Filters) Descriptor() ([]byte, []int)deprecated
- func (x *Filters) GetLocation() string
- func (x *Filters) GetMaxBeds() uint32
- func (x *Filters) GetMaxPrice() float64
- func (x *Filters) GetMinBeds() uint32
- func (x *Filters) GetMinPrice() float64
- func (x *Filters) GetMustHaves() *Features
- func (x *Filters) GetPropertyType() PropertyType
- func (*Filters) ProtoMessage()
- func (x *Filters) ProtoReflect() protoreflect.Message
- func (x *Filters) Reset()
- func (x *Filters) String() string
- type Image
- type Image_Data
- type Image_Url
- type Properties
- type Property
- type PropertyDetails
- func (*PropertyDetails) Descriptor() ([]byte, []int)deprecated
- func (x *PropertyDetails) GetBathrooms() uint32
- func (x *PropertyDetails) GetBeds() uint32
- func (x *PropertyDetails) GetDescription() string
- func (x *PropertyDetails) GetEnergyEfficiencyRating() *EnergyEfficiencyRating
- func (x *PropertyDetails) GetFeatures() *Features
- func (x *PropertyDetails) GetLocation() string
- func (x *PropertyDetails) GetPrice() float64
- func (x *PropertyDetails) GetProperty() *Property
- func (x *PropertyDetails) GetPropertyType() PropertyType
- func (*PropertyDetails) ProtoMessage()
- func (x *PropertyDetails) ProtoReflect() protoreflect.Message
- func (x *PropertyDetails) Reset()
- func (x *PropertyDetails) String() string
- type PropertyPortalClient
- type PropertyPortalServer
- type PropertyPortal_GetPropertyImagesClient
- type PropertyPortal_GetPropertyImagesServer
- type PropertyType
- func (PropertyType) Descriptor() protoreflect.EnumDescriptor
- func (x PropertyType) Enum() *PropertyType
- func (PropertyType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PropertyType) Number() protoreflect.EnumNumber
- func (x PropertyType) String() string
- func (PropertyType) Type() protoreflect.EnumType
- type UnimplementedPropertyPortalServer
- func (UnimplementedPropertyPortalServer) FindProperties(context.Context, *Filters) (*Properties, error)
- func (UnimplementedPropertyPortalServer) GetPropertyDetails(context.Context, *Property) (*PropertyDetails, error)
- func (UnimplementedPropertyPortalServer) GetPropertyImages(PropertyPortal_GetPropertyImagesServer) error
- type UnsafePropertyPortalServer
Constants ¶
This section is empty.
Variables ¶
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.
var File_property_portal_proto protoreflect.FileDescriptor
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) GetNewHome ¶
func (*Features) GetParking ¶
func (*Features) ProtoMessage ¶
func (*Features) ProtoMessage()
func (*Features) ProtoReflect ¶
func (x *Features) ProtoReflect() protoreflect.Message
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) GetLocation ¶
func (*Filters) GetMaxBeds ¶
func (*Filters) GetMaxPrice ¶
func (*Filters) GetMinBeds ¶
func (*Filters) GetMinPrice ¶
func (*Filters) GetMustHaves ¶
func (*Filters) GetPropertyType ¶
func (x *Filters) GetPropertyType() PropertyType
func (*Filters) ProtoMessage ¶
func (*Filters) ProtoMessage()
func (*Filters) ProtoReflect ¶
func (x *Filters) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶
func (x *Image) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Property) ProtoMessage()
func (*Property) ProtoReflect ¶
func (x *Property) ProtoReflect() protoreflect.Message
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.
func NewPropertyPortalClient ¶
func NewPropertyPortalClient(cc grpc.ClientConnInterface) PropertyPortalClient
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 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) Descriptor() protoreflect.EnumDescriptor
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 (x PropertyType) Number() protoreflect.EnumNumber
func (PropertyType) String ¶
func (x PropertyType) String() string
func (PropertyType) Type ¶
func (PropertyType) Type() protoreflect.EnumType
type UnimplementedPropertyPortalServer ¶
type UnimplementedPropertyPortalServer struct { }
UnimplementedPropertyPortalServer must be embedded to have forward compatible implementations.
func (UnimplementedPropertyPortalServer) FindProperties ¶
func (UnimplementedPropertyPortalServer) FindProperties(context.Context, *Filters) (*Properties, error)
func (UnimplementedPropertyPortalServer) GetPropertyDetails ¶
func (UnimplementedPropertyPortalServer) GetPropertyDetails(context.Context, *Property) (*PropertyDetails, error)
func (UnimplementedPropertyPortalServer) GetPropertyImages ¶
func (UnimplementedPropertyPortalServer) GetPropertyImages(PropertyPortal_GetPropertyImagesServer) error
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.