predict

package
v3.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_predict_proto protoreflect.FileDescriptor
View Source
var PredictService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "predict.PredictService",
	HandlerType: (*PredictServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PredictPPSF",
			Handler:    _PredictService_PredictPPSF_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "predict.proto",
}

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

Functions

func RegisterPredictServiceServer

func RegisterPredictServiceServer(s grpc.ServiceRegistrar, srv PredictServiceServer)

Types

type Predict

type Predict struct {
	Lat           float64 `protobuf:"fixed64,1,opt,name=lat,proto3" json:"lat,omitempty"`
	Lng           float64 `protobuf:"fixed64,2,opt,name=lng,proto3" json:"lng,omitempty"`
	FloorNumber   int32   `protobuf:"varint,3,opt,name=floorNumber,proto3" json:"floorNumber,omitempty"`
	RegistryYear  int32   `protobuf:"varint,4,opt,name=registryYear,proto3" json:"registryYear,omitempty"`
	RegistryMonth int32   `protobuf:"varint,5,opt,name=registryMonth,proto3" json:"registryMonth,omitempty"`
	City          string  `protobuf:"bytes,6,opt,name=city,proto3" json:"city,omitempty"`
	// contains filtered or unexported fields
}

func (*Predict) Descriptor deprecated

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

Deprecated: Use Predict.ProtoReflect.Descriptor instead.

func (*Predict) GetCity added in v3.4.1

func (x *Predict) GetCity() string

func (*Predict) GetFloorNumber

func (x *Predict) GetFloorNumber() int32

func (*Predict) GetLat

func (x *Predict) GetLat() float64

func (*Predict) GetLng

func (x *Predict) GetLng() float64

func (*Predict) GetRegistryMonth added in v3.4.1

func (x *Predict) GetRegistryMonth() int32

func (*Predict) GetRegistryYear

func (x *Predict) GetRegistryYear() int32

func (*Predict) ProtoMessage

func (*Predict) ProtoMessage()

func (*Predict) ProtoReflect

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

func (*Predict) Reset

func (x *Predict) Reset()

func (*Predict) String

func (x *Predict) String() string

type PredictRequest

type PredictRequest struct {
	PropInfo *Predict `protobuf:"bytes,1,opt,name=propInfo,proto3" json:"propInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*PredictRequest) Descriptor deprecated

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

Deprecated: Use PredictRequest.ProtoReflect.Descriptor instead.

func (*PredictRequest) GetPropInfo

func (x *PredictRequest) GetPropInfo() *Predict

func (*PredictRequest) ProtoMessage

func (*PredictRequest) ProtoMessage()

func (*PredictRequest) ProtoReflect

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

func (*PredictRequest) Reset

func (x *PredictRequest) Reset()

func (*PredictRequest) String

func (x *PredictRequest) String() string

type PredictResponse

type PredictResponse struct {
	Ppsf float32 `protobuf:"fixed32,1,opt,name=ppsf,proto3" json:"ppsf,omitempty"`
	// contains filtered or unexported fields
}

func (*PredictResponse) Descriptor deprecated

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

Deprecated: Use PredictResponse.ProtoReflect.Descriptor instead.

func (*PredictResponse) GetPpsf

func (x *PredictResponse) GetPpsf() float32

func (*PredictResponse) ProtoMessage

func (*PredictResponse) ProtoMessage()

func (*PredictResponse) ProtoReflect

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

func (*PredictResponse) Reset

func (x *PredictResponse) Reset()

func (*PredictResponse) String

func (x *PredictResponse) String() string

type PredictServiceClient

type PredictServiceClient interface {
	PredictPPSF(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*PredictResponse, error)
}

PredictServiceClient is the client API for PredictService 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 PredictServiceServer

type PredictServiceServer interface {
	PredictPPSF(context.Context, *PredictRequest) (*PredictResponse, error)
	// contains filtered or unexported methods
}

PredictServiceServer is the server API for PredictService service. All implementations must embed UnimplementedPredictServiceServer for forward compatibility

type UnimplementedPredictServiceServer

type UnimplementedPredictServiceServer struct {
}

UnimplementedPredictServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPredictServiceServer) PredictPPSF

type UnsafePredictServiceServer

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

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

Jump to

Keyboard shortcuts

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