grpc

package
v0.3.83 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ValuationsService_GetAllValuations_FullMethodName          = "/valuations.ValuationsService/GetAllValuations"
	ValuationsService_GetUserDeviceValuation_FullMethodName    = "/valuations.ValuationsService/GetUserDeviceValuation"
	ValuationsService_GetUserDeviceOffer_FullMethodName        = "/valuations.ValuationsService/GetUserDeviceOffer"
	ValuationsService_GetAllUserDeviceValuation_FullMethodName = "/valuations.ValuationsService/GetAllUserDeviceValuation"
)

Variables

View Source
var File_pkg_grpc_valuations_proto protoreflect.FileDescriptor
View Source
var ValuationsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "valuations.ValuationsService",
	HandlerType: (*ValuationsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAllValuations",
			Handler:    _ValuationsService_GetAllValuations_Handler,
		},
		{
			MethodName: "GetUserDeviceValuation",
			Handler:    _ValuationsService_GetUserDeviceValuation_Handler,
		},
		{
			MethodName: "GetUserDeviceOffer",
			Handler:    _ValuationsService_GetUserDeviceOffer_Handler,
		},
		{
			MethodName: "GetAllUserDeviceValuation",
			Handler:    _ValuationsService_GetAllUserDeviceValuation_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/grpc/valuations.proto",
}

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

Functions

func RegisterValuationsServiceServer

func RegisterValuationsServiceServer(s grpc.ServiceRegistrar, srv ValuationsServiceServer)

Types

type DeviceOffer added in v0.2.0

type DeviceOffer struct {
	OfferSets []*OfferSet `protobuf:"bytes,1,rep,name=offerSets,proto3" json:"offerSets,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceOffer) Descriptor deprecated added in v0.2.0

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

Deprecated: Use DeviceOffer.ProtoReflect.Descriptor instead.

func (*DeviceOffer) GetOfferSets added in v0.2.0

func (x *DeviceOffer) GetOfferSets() []*OfferSet

func (*DeviceOffer) ProtoMessage added in v0.2.0

func (*DeviceOffer) ProtoMessage()

func (*DeviceOffer) ProtoReflect added in v0.2.0

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

func (*DeviceOffer) Reset added in v0.2.0

func (x *DeviceOffer) Reset()

func (*DeviceOffer) String added in v0.2.0

func (x *DeviceOffer) String() string

type DeviceOfferRequest added in v0.2.0

type DeviceOfferRequest struct {
	UserDeviceId string `protobuf:"bytes,1,opt,name=userDeviceId,proto3" json:"userDeviceId,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceOfferRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use DeviceOfferRequest.ProtoReflect.Descriptor instead.

func (*DeviceOfferRequest) GetUserDeviceId added in v0.2.0

func (x *DeviceOfferRequest) GetUserDeviceId() string

func (*DeviceOfferRequest) ProtoMessage added in v0.2.0

func (*DeviceOfferRequest) ProtoMessage()

func (*DeviceOfferRequest) ProtoReflect added in v0.2.0

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

func (*DeviceOfferRequest) Reset added in v0.2.0

func (x *DeviceOfferRequest) Reset()

func (*DeviceOfferRequest) String added in v0.2.0

func (x *DeviceOfferRequest) String() string

type DeviceValuation added in v0.2.0

type DeviceValuation struct {
	ValuationSets []*ValuationSet `protobuf:"bytes,1,rep,name=valuationSets,proto3" json:"valuationSets,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceValuation) Descriptor deprecated added in v0.2.0

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

Deprecated: Use DeviceValuation.ProtoReflect.Descriptor instead.

func (*DeviceValuation) GetValuationSets added in v0.2.0

func (x *DeviceValuation) GetValuationSets() []*ValuationSet

func (*DeviceValuation) ProtoMessage added in v0.2.0

func (*DeviceValuation) ProtoMessage()

func (*DeviceValuation) ProtoReflect added in v0.2.0

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

func (*DeviceValuation) Reset added in v0.2.0

func (x *DeviceValuation) Reset()

func (*DeviceValuation) String added in v0.2.0

func (x *DeviceValuation) String() string

type DeviceValuationRequest added in v0.2.0

type DeviceValuationRequest struct {
	UserDeviceId string `protobuf:"bytes,1,opt,name=userDeviceId,proto3" json:"userDeviceId,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceValuationRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use DeviceValuationRequest.ProtoReflect.Descriptor instead.

func (*DeviceValuationRequest) GetUserDeviceId added in v0.2.0

func (x *DeviceValuationRequest) GetUserDeviceId() string

func (*DeviceValuationRequest) ProtoMessage added in v0.2.0

func (*DeviceValuationRequest) ProtoMessage()

func (*DeviceValuationRequest) ProtoReflect added in v0.2.0

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

func (*DeviceValuationRequest) Reset added in v0.2.0

func (x *DeviceValuationRequest) Reset()

func (*DeviceValuationRequest) String added in v0.2.0

func (x *DeviceValuationRequest) String() string

type Offer added in v0.2.0

type Offer struct {
	Vendor        string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	Price         int32  `protobuf:"varint,2,opt,name=price,proto3" json:"price,omitempty"`
	Url           string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	Error         string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
	Grade         string `protobuf:"bytes,5,opt,name=grade,proto3" json:"grade,omitempty"`
	DeclineReason string `protobuf:"bytes,6,opt,name=declineReason,proto3" json:"declineReason,omitempty"`
	// contains filtered or unexported fields
}

func (*Offer) Descriptor deprecated added in v0.2.0

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

Deprecated: Use Offer.ProtoReflect.Descriptor instead.

func (*Offer) GetDeclineReason added in v0.2.0

func (x *Offer) GetDeclineReason() string

func (*Offer) GetError added in v0.2.0

func (x *Offer) GetError() string

func (*Offer) GetGrade added in v0.2.0

func (x *Offer) GetGrade() string

func (*Offer) GetPrice added in v0.2.0

func (x *Offer) GetPrice() int32

func (*Offer) GetUrl added in v0.2.0

func (x *Offer) GetUrl() string

func (*Offer) GetVendor added in v0.2.0

func (x *Offer) GetVendor() string

func (*Offer) ProtoMessage added in v0.2.0

func (*Offer) ProtoMessage()

func (*Offer) ProtoReflect added in v0.2.0

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

func (*Offer) Reset added in v0.2.0

func (x *Offer) Reset()

func (*Offer) String added in v0.2.0

func (x *Offer) String() string

type OfferSet added in v0.2.0

type OfferSet struct {
	Source  string   `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Updated string   `protobuf:"bytes,2,opt,name=updated,proto3" json:"updated,omitempty"`
	Mileage int32    `protobuf:"varint,3,opt,name=mileage,proto3" json:"mileage,omitempty"`
	ZipCode string   `protobuf:"bytes,4,opt,name=zipCode,proto3" json:"zipCode,omitempty"`
	Offers  []*Offer `protobuf:"bytes,5,rep,name=offers,proto3" json:"offers,omitempty"`
	// contains filtered or unexported fields
}

func (*OfferSet) Descriptor deprecated added in v0.2.0

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

Deprecated: Use OfferSet.ProtoReflect.Descriptor instead.

func (*OfferSet) GetMileage added in v0.2.0

func (x *OfferSet) GetMileage() int32

func (*OfferSet) GetOffers added in v0.2.0

func (x *OfferSet) GetOffers() []*Offer

func (*OfferSet) GetSource added in v0.2.0

func (x *OfferSet) GetSource() string

func (*OfferSet) GetUpdated added in v0.2.0

func (x *OfferSet) GetUpdated() string

func (*OfferSet) GetZipCode added in v0.2.0

func (x *OfferSet) GetZipCode() string

func (*OfferSet) ProtoMessage added in v0.2.0

func (*OfferSet) ProtoMessage()

func (*OfferSet) ProtoReflect added in v0.2.0

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

func (*OfferSet) Reset added in v0.2.0

func (x *OfferSet) Reset()

func (*OfferSet) String added in v0.2.0

func (x *OfferSet) String() string

type UnimplementedValuationsServiceServer

type UnimplementedValuationsServiceServer struct {
}

UnimplementedValuationsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedValuationsServiceServer) GetAllUserDeviceValuation added in v0.3.0

func (UnimplementedValuationsServiceServer) GetAllValuations

func (UnimplementedValuationsServiceServer) GetUserDeviceOffer added in v0.2.0

func (UnimplementedValuationsServiceServer) GetUserDeviceValuation added in v0.2.0

type UnsafeValuationsServiceServer

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

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

type ValuationResponse

type ValuationResponse struct {
	Total            float32 `protobuf:"fixed32,1,opt,name=total,proto3" json:"total,omitempty"`
	GrowthPercentage float32 `protobuf:"fixed32,2,opt,name=growthPercentage,proto3" json:"growthPercentage,omitempty"`
	// contains filtered or unexported fields
}

func (*ValuationResponse) Descriptor deprecated

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

Deprecated: Use ValuationResponse.ProtoReflect.Descriptor instead.

func (*ValuationResponse) GetGrowthPercentage

func (x *ValuationResponse) GetGrowthPercentage() float32

func (*ValuationResponse) GetTotal

func (x *ValuationResponse) GetTotal() float32

func (*ValuationResponse) ProtoMessage

func (*ValuationResponse) ProtoMessage()

func (*ValuationResponse) ProtoReflect

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

func (*ValuationResponse) Reset

func (x *ValuationResponse) Reset()

func (*ValuationResponse) String

func (x *ValuationResponse) String() string

type ValuationSet added in v0.2.0

type ValuationSet struct {
	Vendor           string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	Updated          string `protobuf:"bytes,2,opt,name=updated,proto3" json:"updated,omitempty"`
	Mileage          int32  `protobuf:"varint,3,opt,name=mileage,proto3" json:"mileage,omitempty"`
	ZipCode          string `protobuf:"bytes,4,opt,name=zipCode,proto3" json:"zipCode,omitempty"`
	TradeInSource    string `protobuf:"bytes,5,opt,name=tradeInSource,proto3" json:"tradeInSource,omitempty"`
	TradeIn          int32  `protobuf:"varint,6,opt,name=tradeIn,proto3" json:"tradeIn,omitempty"`
	TradeInClean     int32  `protobuf:"varint,7,opt,name=tradeInClean,proto3" json:"tradeInClean,omitempty"`
	TradeInAverage   int32  `protobuf:"varint,8,opt,name=tradeInAverage,proto3" json:"tradeInAverage,omitempty"`
	TradeInRough     int32  `protobuf:"varint,9,opt,name=tradeInRough,proto3" json:"tradeInRough,omitempty"`
	RetailSource     string `protobuf:"bytes,10,opt,name=RetailSource,proto3" json:"RetailSource,omitempty"`
	Retail           int32  `protobuf:"varint,11,opt,name=retail,proto3" json:"retail,omitempty"`
	RetailClean      int32  `protobuf:"varint,12,opt,name=retailClean,proto3" json:"retailClean,omitempty"`
	RetailAverage    int32  `protobuf:"varint,13,opt,name=retailAverage,proto3" json:"retailAverage,omitempty"`
	RetailRough      int32  `protobuf:"varint,14,opt,name=retailRough,proto3" json:"retailRough,omitempty"`
	OdometerUnit     string `protobuf:"bytes,15,opt,name=odometerUnit,proto3" json:"odometerUnit,omitempty"`
	Odometer         int32  `protobuf:"varint,16,opt,name=odometer,proto3" json:"odometer,omitempty"`
	UserDisplayPrice int32  `protobuf:"varint,17,opt,name=userDisplayPrice,proto3" json:"userDisplayPrice,omitempty"`
	Currency         string `protobuf:"bytes,18,opt,name=currency,proto3" json:"currency,omitempty"`
	// contains filtered or unexported fields
}

func (*ValuationSet) Descriptor deprecated added in v0.2.0

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

Deprecated: Use ValuationSet.ProtoReflect.Descriptor instead.

func (*ValuationSet) GetCurrency added in v0.2.0

func (x *ValuationSet) GetCurrency() string

func (*ValuationSet) GetMileage added in v0.2.0

func (x *ValuationSet) GetMileage() int32

func (*ValuationSet) GetOdometer added in v0.2.0

func (x *ValuationSet) GetOdometer() int32

func (*ValuationSet) GetOdometerUnit added in v0.2.0

func (x *ValuationSet) GetOdometerUnit() string

func (*ValuationSet) GetRetail added in v0.2.0

func (x *ValuationSet) GetRetail() int32

func (*ValuationSet) GetRetailAverage added in v0.2.0

func (x *ValuationSet) GetRetailAverage() int32

func (*ValuationSet) GetRetailClean added in v0.2.0

func (x *ValuationSet) GetRetailClean() int32

func (*ValuationSet) GetRetailRough added in v0.2.0

func (x *ValuationSet) GetRetailRough() int32

func (*ValuationSet) GetRetailSource added in v0.2.0

func (x *ValuationSet) GetRetailSource() string

func (*ValuationSet) GetTradeIn added in v0.2.0

func (x *ValuationSet) GetTradeIn() int32

func (*ValuationSet) GetTradeInAverage added in v0.2.0

func (x *ValuationSet) GetTradeInAverage() int32

func (*ValuationSet) GetTradeInClean added in v0.2.0

func (x *ValuationSet) GetTradeInClean() int32

func (*ValuationSet) GetTradeInRough added in v0.2.0

func (x *ValuationSet) GetTradeInRough() int32

func (*ValuationSet) GetTradeInSource added in v0.2.0

func (x *ValuationSet) GetTradeInSource() string

func (*ValuationSet) GetUpdated added in v0.2.0

func (x *ValuationSet) GetUpdated() string

func (*ValuationSet) GetUserDisplayPrice added in v0.2.0

func (x *ValuationSet) GetUserDisplayPrice() int32

func (*ValuationSet) GetVendor added in v0.2.0

func (x *ValuationSet) GetVendor() string

func (*ValuationSet) GetZipCode added in v0.2.0

func (x *ValuationSet) GetZipCode() string

func (*ValuationSet) ProtoMessage added in v0.2.0

func (*ValuationSet) ProtoMessage()

func (*ValuationSet) ProtoReflect added in v0.2.0

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

func (*ValuationSet) Reset added in v0.2.0

func (x *ValuationSet) Reset()

func (*ValuationSet) String added in v0.2.0

func (x *ValuationSet) String() string

type ValuationsServiceClient

type ValuationsServiceClient interface {
	GetAllValuations(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ValuationResponse, error)
	GetUserDeviceValuation(ctx context.Context, in *DeviceValuationRequest, opts ...grpc.CallOption) (*DeviceValuation, error)
	GetUserDeviceOffer(ctx context.Context, in *DeviceOfferRequest, opts ...grpc.CallOption) (*DeviceOffer, error)
	GetAllUserDeviceValuation(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ValuationResponse, error)
}

ValuationsServiceClient is the client API for ValuationsService 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 ValuationsServiceServer

type ValuationsServiceServer interface {
	GetAllValuations(context.Context, *emptypb.Empty) (*ValuationResponse, error)
	GetUserDeviceValuation(context.Context, *DeviceValuationRequest) (*DeviceValuation, error)
	GetUserDeviceOffer(context.Context, *DeviceOfferRequest) (*DeviceOffer, error)
	GetAllUserDeviceValuation(context.Context, *emptypb.Empty) (*ValuationResponse, error)
	// contains filtered or unexported methods
}

ValuationsServiceServer is the server API for ValuationsService service. All implementations must embed UnimplementedValuationsServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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