repo

package
v0.0.0-...-78e3712 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LaptopService_CreateLaptop_FullMethodName = "/proto.LaptopService/CreateLaptop"
	LaptopService_SearchLaptop_FullMethodName = "/proto.LaptopService/SearchLaptop"
	LaptopService_UploadImage_FullMethodName  = "/proto.LaptopService/UploadImage"
	LaptopService_RateLaptop_FullMethodName   = "/proto.LaptopService/RateLaptop"
)
View Source
const (
	AuthService_Login_FullMethodName = "/proto.AuthService/Login"
)

Variables

View Source
var (
	Keyboard_Layout_name = map[int32]string{
		0: "UNKNOWN",
		1: "QWERTY",
		2: "QWERTZ",
		3: "AZERTY",
	}
	Keyboard_Layout_value = map[string]int32{
		"UNKNOWN": 0,
		"QWERTY":  1,
		"QWERTZ":  2,
		"AZERTY":  3,
	}
)

Enum value maps for Keyboard_Layout.

View Source
var (
	Memory_Unit_name = map[int32]string{
		0: "UNKNOWN",
		1: "BIT",
		2: "BYTE",
		3: "KILOBYTE",
		4: "MEGABYTE",
		5: "GIGABYTE",
		6: "TERABYTE",
	}
	Memory_Unit_value = map[string]int32{
		"UNKNOWN":  0,
		"BIT":      1,
		"BYTE":     2,
		"KILOBYTE": 3,
		"MEGABYTE": 4,
		"GIGABYTE": 5,
		"TERABYTE": 6,
	}
)

Enum value maps for Memory_Unit.

View Source
var (
	Screen_Panel_name = map[int32]string{
		0: "UNKNOWN",
		1: "IPS",
		2: "OLED",
	}
	Screen_Panel_value = map[string]int32{
		"UNKNOWN": 0,
		"IPS":     1,
		"OLED":    2,
	}
)

Enum value maps for Screen_Panel.

View Source
var (
	Storage_Driver_name = map[int32]string{
		0: "UNKNOWN",
		1: "HDD",
		2: "SSD",
	}
	Storage_Driver_value = map[string]int32{
		"UNKNOWN": 0,
		"HDD":     1,
		"SSD":     2,
	}
)

Enum value maps for Storage_Driver.

View Source
var AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Login",
			Handler:    _AuthService_Login_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "login.proto",
}

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

View Source
var File_filter_proto protoreflect.FileDescriptor
View Source
var File_keyboard_proto protoreflect.FileDescriptor
View Source
var File_laptop_proto protoreflect.FileDescriptor
View Source
var File_laptop_service_proto protoreflect.FileDescriptor
View Source
var File_login_proto protoreflect.FileDescriptor
View Source
var File_memory_proto protoreflect.FileDescriptor
View Source
var File_processor_proto protoreflect.FileDescriptor
View Source
var File_screen_proto protoreflect.FileDescriptor
View Source
var File_storage_proto protoreflect.FileDescriptor
View Source
var LaptopService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.LaptopService",
	HandlerType: (*LaptopServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateLaptop",
			Handler:    _LaptopService_CreateLaptop_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SearchLaptop",
			Handler:       _LaptopService_SearchLaptop_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "UploadImage",
			Handler:       _LaptopService_UploadImage_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "RateLaptop",
			Handler:       _LaptopService_RateLaptop_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "laptop_service.proto",
}

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

Functions

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

func RegisterLaptopServiceServer

func RegisterLaptopServiceServer(s grpc.ServiceRegistrar, srv LaptopServiceServer)

Types

type AuthServiceClient

type AuthServiceClient interface {
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
}

AuthServiceClient is the client API for AuthService 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 AuthServiceServer

type AuthServiceServer interface {
	Login(context.Context, *LoginRequest) (*LoginResponse, error)
	// contains filtered or unexported methods
}

AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility

type CPU

type CPU struct {
	Brand   string  `protobuf:"bytes,1,opt,name=brand,proto3" json:"brand,omitempty"`
	Name    string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Cores   uint32  `protobuf:"varint,3,opt,name=cores,proto3" json:"cores,omitempty"`
	Threads uint32  `protobuf:"varint,4,opt,name=threads,proto3" json:"threads,omitempty"`
	MinGhz  float64 `protobuf:"fixed64,5,opt,name=min_ghz,json=minGhz,proto3" json:"min_ghz,omitempty"`
	MaxGhz  float64 `protobuf:"fixed64,6,opt,name=max_ghz,json=maxGhz,proto3" json:"max_ghz,omitempty"`
	// contains filtered or unexported fields
}

func (*CPU) Descriptor deprecated

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

Deprecated: Use CPU.ProtoReflect.Descriptor instead.

func (*CPU) GetBrand

func (x *CPU) GetBrand() string

func (*CPU) GetCores

func (x *CPU) GetCores() uint32

func (*CPU) GetMaxGhz

func (x *CPU) GetMaxGhz() float64

func (*CPU) GetMinGhz

func (x *CPU) GetMinGhz() float64

func (*CPU) GetName

func (x *CPU) GetName() string

func (*CPU) GetThreads

func (x *CPU) GetThreads() uint32

func (*CPU) ProtoMessage

func (*CPU) ProtoMessage()

func (*CPU) ProtoReflect

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

func (*CPU) Reset

func (x *CPU) Reset()

func (*CPU) String

func (x *CPU) String() string

type CreateLaptopRequest

type CreateLaptopRequest struct {
	Laptop *Laptop `protobuf:"bytes,1,opt,name=laptop,proto3" json:"laptop,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateLaptopRequest) Descriptor deprecated

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

Deprecated: Use CreateLaptopRequest.ProtoReflect.Descriptor instead.

func (*CreateLaptopRequest) GetLaptop

func (x *CreateLaptopRequest) GetLaptop() *Laptop

func (*CreateLaptopRequest) ProtoMessage

func (*CreateLaptopRequest) ProtoMessage()

func (*CreateLaptopRequest) ProtoReflect

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

func (*CreateLaptopRequest) Reset

func (x *CreateLaptopRequest) Reset()

func (*CreateLaptopRequest) String

func (x *CreateLaptopRequest) String() string

type CreateLaptopResponse

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

func (*CreateLaptopResponse) Descriptor deprecated

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

Deprecated: Use CreateLaptopResponse.ProtoReflect.Descriptor instead.

func (*CreateLaptopResponse) GetId

func (x *CreateLaptopResponse) GetId() string

func (*CreateLaptopResponse) ProtoMessage

func (*CreateLaptopResponse) ProtoMessage()

func (*CreateLaptopResponse) ProtoReflect

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

func (*CreateLaptopResponse) Reset

func (x *CreateLaptopResponse) Reset()

func (*CreateLaptopResponse) String

func (x *CreateLaptopResponse) String() string

type Filter

type Filter struct {
	MaxPriceUsed float64 `protobuf:"fixed64,1,opt,name=max_price_used,json=maxPriceUsed,proto3" json:"max_price_used,omitempty"`
	MinCpuCores  uint32  `protobuf:"varint,2,opt,name=min_cpu_cores,json=minCpuCores,proto3" json:"min_cpu_cores,omitempty"`
	MinCpuGhz    float64 `protobuf:"fixed64,3,opt,name=min_cpu_ghz,json=minCpuGhz,proto3" json:"min_cpu_ghz,omitempty"`
	MinRam       *Memory `protobuf:"bytes,4,opt,name=min_ram,json=minRam,proto3" json:"min_ram,omitempty"`
	// contains filtered or unexported fields
}

func (*Filter) Descriptor deprecated

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

Deprecated: Use Filter.ProtoReflect.Descriptor instead.

func (*Filter) GetMaxPriceUsed

func (x *Filter) GetMaxPriceUsed() float64

func (*Filter) GetMinCpuCores

func (x *Filter) GetMinCpuCores() uint32

func (*Filter) GetMinCpuGhz

func (x *Filter) GetMinCpuGhz() float64

func (*Filter) GetMinRam

func (x *Filter) GetMinRam() *Memory

func (*Filter) ProtoMessage

func (*Filter) ProtoMessage()

func (*Filter) ProtoReflect

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

func (*Filter) Reset

func (x *Filter) Reset()

func (*Filter) String

func (x *Filter) String() string

type GPU

type GPU struct {
	Brand  string  `protobuf:"bytes,1,opt,name=brand,proto3" json:"brand,omitempty"`
	Name   string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	MinGhz float64 `protobuf:"fixed64,3,opt,name=min_ghz,json=minGhz,proto3" json:"min_ghz,omitempty"`
	MaxGhz float64 `protobuf:"fixed64,4,opt,name=max_ghz,json=maxGhz,proto3" json:"max_ghz,omitempty"`
	Memory *Memory `protobuf:"bytes,5,opt,name=memory,proto3" json:"memory,omitempty"`
	// contains filtered or unexported fields
}

func (*GPU) Descriptor deprecated

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

Deprecated: Use GPU.ProtoReflect.Descriptor instead.

func (*GPU) GetBrand

func (x *GPU) GetBrand() string

func (*GPU) GetMaxGhz

func (x *GPU) GetMaxGhz() float64

func (*GPU) GetMemory

func (x *GPU) GetMemory() *Memory

func (*GPU) GetMinGhz

func (x *GPU) GetMinGhz() float64

func (*GPU) GetName

func (x *GPU) GetName() string

func (*GPU) ProtoMessage

func (*GPU) ProtoMessage()

func (*GPU) ProtoReflect

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

func (*GPU) Reset

func (x *GPU) Reset()

func (*GPU) String

func (x *GPU) String() string

type ImageInfo

type ImageInfo struct {
	LaptopId  string `protobuf:"bytes,1,opt,name=laptop_id,json=laptopId,proto3" json:"laptop_id,omitempty"`
	ImageType string `protobuf:"bytes,2,opt,name=image_type,json=imageType,proto3" json:"image_type,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageInfo) Descriptor deprecated

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

Deprecated: Use ImageInfo.ProtoReflect.Descriptor instead.

func (*ImageInfo) GetImageType

func (x *ImageInfo) GetImageType() string

func (*ImageInfo) GetLaptopId

func (x *ImageInfo) GetLaptopId() string

func (*ImageInfo) ProtoMessage

func (*ImageInfo) ProtoMessage()

func (*ImageInfo) ProtoReflect

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

func (*ImageInfo) Reset

func (x *ImageInfo) Reset()

func (*ImageInfo) String

func (x *ImageInfo) String() string

type Keyboard

type Keyboard struct {
	Layout  Keyboard_Layout `protobuf:"varint,1,opt,name=layout,proto3,enum=proto.Keyboard_Layout" json:"layout,omitempty"`
	Backlit bool            `protobuf:"varint,2,opt,name=backlit,proto3" json:"backlit,omitempty"`
	// contains filtered or unexported fields
}

func (*Keyboard) Descriptor deprecated

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

Deprecated: Use Keyboard.ProtoReflect.Descriptor instead.

func (*Keyboard) GetBacklit

func (x *Keyboard) GetBacklit() bool

func (*Keyboard) GetLayout

func (x *Keyboard) GetLayout() Keyboard_Layout

func (*Keyboard) ProtoMessage

func (*Keyboard) ProtoMessage()

func (*Keyboard) ProtoReflect

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

func (*Keyboard) Reset

func (x *Keyboard) Reset()

func (*Keyboard) String

func (x *Keyboard) String() string

type Keyboard_Layout

type Keyboard_Layout int32
const (
	Keyboard_UNKNOWN Keyboard_Layout = 0
	Keyboard_QWERTY  Keyboard_Layout = 1
	Keyboard_QWERTZ  Keyboard_Layout = 2
	Keyboard_AZERTY  Keyboard_Layout = 3
)

func (Keyboard_Layout) Descriptor

func (Keyboard_Layout) Enum

func (x Keyboard_Layout) Enum() *Keyboard_Layout

func (Keyboard_Layout) EnumDescriptor deprecated

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

Deprecated: Use Keyboard_Layout.Descriptor instead.

func (Keyboard_Layout) Number

func (Keyboard_Layout) String

func (x Keyboard_Layout) String() string

func (Keyboard_Layout) Type

type Laptop

type Laptop struct {
	Id       string     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Brand    string     `protobuf:"bytes,2,opt,name=brand,proto3" json:"brand,omitempty"`
	Name     string     `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Cpu      *CPU       `protobuf:"bytes,4,opt,name=cpu,proto3" json:"cpu,omitempty"`
	Ram      *Memory    `protobuf:"bytes,5,opt,name=ram,proto3" json:"ram,omitempty"`
	Gpus     []*GPU     `protobuf:"bytes,6,rep,name=gpus,proto3" json:"gpus,omitempty"`
	Storages []*Storage `protobuf:"bytes,7,rep,name=storages,proto3" json:"storages,omitempty"`
	Screen   *Screen    `protobuf:"bytes,8,opt,name=screen,proto3" json:"screen,omitempty"`
	Keyboard *Keyboard  `protobuf:"bytes,9,opt,name=keyboard,proto3" json:"keyboard,omitempty"`
	// Types that are assignable to Weight:
	//
	//	*Laptop_WeightKg
	//	*Laptop_WeightLb
	Weight      isLaptop_Weight        `protobuf_oneof:"weight"`
	PriceUsd    float64                `protobuf:"fixed64,12,opt,name=price_usd,json=priceUsd,proto3" json:"price_usd,omitempty"`
	ReleaseYear uint32                 `protobuf:"varint,13,opt,name=release_year,json=releaseYear,proto3" json:"release_year,omitempty"`
	UpdateAt    *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=update_at,json=updateAt,proto3" json:"update_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Laptop) Descriptor deprecated

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

Deprecated: Use Laptop.ProtoReflect.Descriptor instead.

func (*Laptop) GetBrand

func (x *Laptop) GetBrand() string

func (*Laptop) GetCpu

func (x *Laptop) GetCpu() *CPU

func (*Laptop) GetGpus

func (x *Laptop) GetGpus() []*GPU

func (*Laptop) GetId

func (x *Laptop) GetId() string

func (*Laptop) GetKeyboard

func (x *Laptop) GetKeyboard() *Keyboard

func (*Laptop) GetName

func (x *Laptop) GetName() string

func (*Laptop) GetPriceUsd

func (x *Laptop) GetPriceUsd() float64

func (*Laptop) GetRam

func (x *Laptop) GetRam() *Memory

func (*Laptop) GetReleaseYear

func (x *Laptop) GetReleaseYear() uint32

func (*Laptop) GetScreen

func (x *Laptop) GetScreen() *Screen

func (*Laptop) GetStorages

func (x *Laptop) GetStorages() []*Storage

func (*Laptop) GetUpdateAt

func (x *Laptop) GetUpdateAt() *timestamppb.Timestamp

func (*Laptop) GetWeight

func (m *Laptop) GetWeight() isLaptop_Weight

func (*Laptop) GetWeightKg

func (x *Laptop) GetWeightKg() float64

func (*Laptop) GetWeightLb

func (x *Laptop) GetWeightLb() float64

func (*Laptop) ProtoMessage

func (*Laptop) ProtoMessage()

func (*Laptop) ProtoReflect

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

func (*Laptop) Reset

func (x *Laptop) Reset()

func (*Laptop) String

func (x *Laptop) String() string

type LaptopServiceClient

type LaptopServiceClient interface {
	CreateLaptop(ctx context.Context, in *CreateLaptopRequest, opts ...grpc.CallOption) (*CreateLaptopResponse, error)
	SearchLaptop(ctx context.Context, in *SearchLaptopRequest, opts ...grpc.CallOption) (LaptopService_SearchLaptopClient, error)
	UploadImage(ctx context.Context, opts ...grpc.CallOption) (LaptopService_UploadImageClient, error)
	RateLaptop(ctx context.Context, opts ...grpc.CallOption) (LaptopService_RateLaptopClient, error)
}

LaptopServiceClient is the client API for LaptopService 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 LaptopServiceServer

type LaptopServiceServer interface {
	CreateLaptop(context.Context, *CreateLaptopRequest) (*CreateLaptopResponse, error)
	SearchLaptop(*SearchLaptopRequest, LaptopService_SearchLaptopServer) error
	UploadImage(LaptopService_UploadImageServer) error
	RateLaptop(LaptopService_RateLaptopServer) error
	// contains filtered or unexported methods
}

LaptopServiceServer is the server API for LaptopService service. All implementations must embed UnimplementedLaptopServiceServer for forward compatibility

type LaptopService_RateLaptopClient

type LaptopService_RateLaptopClient interface {
	Send(*RateLaptopRequest) error
	Recv() (*RateLaptopResponse, error)
	grpc.ClientStream
}

type LaptopService_RateLaptopServer

type LaptopService_RateLaptopServer interface {
	Send(*RateLaptopResponse) error
	Recv() (*RateLaptopRequest, error)
	grpc.ServerStream
}

type LaptopService_SearchLaptopClient

type LaptopService_SearchLaptopClient interface {
	Recv() (*SearchLaptopResponse, error)
	grpc.ClientStream
}

type LaptopService_SearchLaptopServer

type LaptopService_SearchLaptopServer interface {
	Send(*SearchLaptopResponse) error
	grpc.ServerStream
}

type LaptopService_UploadImageClient

type LaptopService_UploadImageClient interface {
	Send(*UploadImageRequest) error
	CloseAndRecv() (*UploadImageResonse, error)
	grpc.ClientStream
}

type LaptopService_UploadImageServer

type LaptopService_UploadImageServer interface {
	SendAndClose(*UploadImageResonse) error
	Recv() (*UploadImageRequest, error)
	grpc.ServerStream
}

type Laptop_WeightKg

type Laptop_WeightKg struct {
	WeightKg float64 `protobuf:"fixed64,10,opt,name=weight_kg,json=weightKg,proto3,oneof"`
}

type Laptop_WeightLb

type Laptop_WeightLb struct {
	WeightLb float64 `protobuf:"fixed64,11,opt,name=weight_lb,json=weightLb,proto3,oneof"`
}

type LoginRequest

type LoginRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginRequest) Descriptor deprecated

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

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) GetUsername

func (x *LoginRequest) GetUsername() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

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

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

type LoginResponse

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

func (*LoginResponse) Descriptor deprecated

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

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetAccessToken

func (x *LoginResponse) GetAccessToken() string

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

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

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

type Memory

type Memory struct {
	Value uint64      `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	Unit  Memory_Unit `protobuf:"varint,2,opt,name=unit,proto3,enum=proto.Memory_Unit" json:"unit,omitempty"`
	// contains filtered or unexported fields
}

func (*Memory) Descriptor deprecated

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

Deprecated: Use Memory.ProtoReflect.Descriptor instead.

func (*Memory) GetUnit

func (x *Memory) GetUnit() Memory_Unit

func (*Memory) GetValue

func (x *Memory) GetValue() uint64

func (*Memory) ProtoMessage

func (*Memory) ProtoMessage()

func (*Memory) ProtoReflect

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

func (*Memory) Reset

func (x *Memory) Reset()

func (*Memory) String

func (x *Memory) String() string

type Memory_Unit

type Memory_Unit int32
const (
	Memory_UNKNOWN  Memory_Unit = 0
	Memory_BIT      Memory_Unit = 1
	Memory_BYTE     Memory_Unit = 2
	Memory_KILOBYTE Memory_Unit = 3
	Memory_MEGABYTE Memory_Unit = 4
	Memory_GIGABYTE Memory_Unit = 5
	Memory_TERABYTE Memory_Unit = 6
)

func (Memory_Unit) Descriptor

func (Memory_Unit) Enum

func (x Memory_Unit) Enum() *Memory_Unit

func (Memory_Unit) EnumDescriptor deprecated

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

Deprecated: Use Memory_Unit.Descriptor instead.

func (Memory_Unit) Number

func (x Memory_Unit) Number() protoreflect.EnumNumber

func (Memory_Unit) String

func (x Memory_Unit) String() string

func (Memory_Unit) Type

type RateLaptopRequest

type RateLaptopRequest struct {
	LaptopId string  `protobuf:"bytes,1,opt,name=laptop_id,json=laptopId,proto3" json:"laptop_id,omitempty"`
	Score    float64 `protobuf:"fixed64,2,opt,name=score,proto3" json:"score,omitempty"`
	// contains filtered or unexported fields
}

func (*RateLaptopRequest) Descriptor deprecated

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

Deprecated: Use RateLaptopRequest.ProtoReflect.Descriptor instead.

func (*RateLaptopRequest) GetLaptopId

func (x *RateLaptopRequest) GetLaptopId() string

func (*RateLaptopRequest) GetScore

func (x *RateLaptopRequest) GetScore() float64

func (*RateLaptopRequest) ProtoMessage

func (*RateLaptopRequest) ProtoMessage()

func (*RateLaptopRequest) ProtoReflect

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

func (*RateLaptopRequest) Reset

func (x *RateLaptopRequest) Reset()

func (*RateLaptopRequest) String

func (x *RateLaptopRequest) String() string

type RateLaptopResponse

type RateLaptopResponse struct {
	LaptopId     string  `protobuf:"bytes,1,opt,name=laptop_id,json=laptopId,proto3" json:"laptop_id,omitempty"`
	RatedCount   uint32  `protobuf:"varint,2,opt,name=rated_count,json=ratedCount,proto3" json:"rated_count,omitempty"`
	ScoreAverage float64 `protobuf:"fixed64,3,opt,name=score_average,json=scoreAverage,proto3" json:"score_average,omitempty"`
	// contains filtered or unexported fields
}

func (*RateLaptopResponse) Descriptor deprecated

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

Deprecated: Use RateLaptopResponse.ProtoReflect.Descriptor instead.

func (*RateLaptopResponse) GetLaptopId

func (x *RateLaptopResponse) GetLaptopId() string

func (*RateLaptopResponse) GetRatedCount

func (x *RateLaptopResponse) GetRatedCount() uint32

func (*RateLaptopResponse) GetScoreAverage

func (x *RateLaptopResponse) GetScoreAverage() float64

func (*RateLaptopResponse) ProtoMessage

func (*RateLaptopResponse) ProtoMessage()

func (*RateLaptopResponse) ProtoReflect

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

func (*RateLaptopResponse) Reset

func (x *RateLaptopResponse) Reset()

func (*RateLaptopResponse) String

func (x *RateLaptopResponse) String() string

type Screen

type Screen struct {
	SizeInch   float32            `protobuf:"fixed32,1,opt,name=size_inch,json=sizeInch,proto3" json:"size_inch,omitempty"`
	Resolution *Screen_Resolution `protobuf:"bytes,2,opt,name=resolution,proto3" json:"resolution,omitempty"`
	Panel      Screen_Panel       `protobuf:"varint,3,opt,name=panel,proto3,enum=proto.Screen_Panel" json:"panel,omitempty"`
	Multitouch bool               `protobuf:"varint,4,opt,name=multitouch,proto3" json:"multitouch,omitempty"`
	// contains filtered or unexported fields
}

func (*Screen) Descriptor deprecated

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

Deprecated: Use Screen.ProtoReflect.Descriptor instead.

func (*Screen) GetMultitouch

func (x *Screen) GetMultitouch() bool

func (*Screen) GetPanel

func (x *Screen) GetPanel() Screen_Panel

func (*Screen) GetResolution

func (x *Screen) GetResolution() *Screen_Resolution

func (*Screen) GetSizeInch

func (x *Screen) GetSizeInch() float32

func (*Screen) ProtoMessage

func (*Screen) ProtoMessage()

func (*Screen) ProtoReflect

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

func (*Screen) Reset

func (x *Screen) Reset()

func (*Screen) String

func (x *Screen) String() string

type Screen_Panel

type Screen_Panel int32
const (
	Screen_UNKNOWN Screen_Panel = 0
	Screen_IPS     Screen_Panel = 1
	Screen_OLED    Screen_Panel = 2
)

func (Screen_Panel) Descriptor

func (Screen_Panel) Enum

func (x Screen_Panel) Enum() *Screen_Panel

func (Screen_Panel) EnumDescriptor deprecated

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

Deprecated: Use Screen_Panel.Descriptor instead.

func (Screen_Panel) Number

func (Screen_Panel) String

func (x Screen_Panel) String() string

func (Screen_Panel) Type

type Screen_Resolution

type Screen_Resolution struct {
	Width  uint32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"`
	Height uint32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*Screen_Resolution) Descriptor deprecated

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

Deprecated: Use Screen_Resolution.ProtoReflect.Descriptor instead.

func (*Screen_Resolution) GetHeight

func (x *Screen_Resolution) GetHeight() uint32

func (*Screen_Resolution) GetWidth

func (x *Screen_Resolution) GetWidth() uint32

func (*Screen_Resolution) ProtoMessage

func (*Screen_Resolution) ProtoMessage()

func (*Screen_Resolution) ProtoReflect

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

func (*Screen_Resolution) Reset

func (x *Screen_Resolution) Reset()

func (*Screen_Resolution) String

func (x *Screen_Resolution) String() string

type SearchLaptopRequest

type SearchLaptopRequest struct {
	Filter *Filter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchLaptopRequest) Descriptor deprecated

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

Deprecated: Use SearchLaptopRequest.ProtoReflect.Descriptor instead.

func (*SearchLaptopRequest) GetFilter

func (x *SearchLaptopRequest) GetFilter() *Filter

func (*SearchLaptopRequest) ProtoMessage

func (*SearchLaptopRequest) ProtoMessage()

func (*SearchLaptopRequest) ProtoReflect

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

func (*SearchLaptopRequest) Reset

func (x *SearchLaptopRequest) Reset()

func (*SearchLaptopRequest) String

func (x *SearchLaptopRequest) String() string

type SearchLaptopResponse

type SearchLaptopResponse struct {
	Laptop *Laptop `protobuf:"bytes,1,opt,name=laptop,proto3" json:"laptop,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchLaptopResponse) Descriptor deprecated

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

Deprecated: Use SearchLaptopResponse.ProtoReflect.Descriptor instead.

func (*SearchLaptopResponse) GetLaptop

func (x *SearchLaptopResponse) GetLaptop() *Laptop

func (*SearchLaptopResponse) ProtoMessage

func (*SearchLaptopResponse) ProtoMessage()

func (*SearchLaptopResponse) ProtoReflect

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

func (*SearchLaptopResponse) Reset

func (x *SearchLaptopResponse) Reset()

func (*SearchLaptopResponse) String

func (x *SearchLaptopResponse) String() string

type Storage

type Storage struct {
	Driver Storage_Driver `protobuf:"varint,1,opt,name=driver,proto3,enum=proto.Storage_Driver" json:"driver,omitempty"`
	Memory *Memory        `protobuf:"bytes,2,opt,name=memory,proto3" json:"memory,omitempty"`
	// contains filtered or unexported fields
}

func (*Storage) Descriptor deprecated

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

Deprecated: Use Storage.ProtoReflect.Descriptor instead.

func (*Storage) GetDriver

func (x *Storage) GetDriver() Storage_Driver

func (*Storage) GetMemory

func (x *Storage) GetMemory() *Memory

func (*Storage) ProtoMessage

func (*Storage) ProtoMessage()

func (*Storage) ProtoReflect

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

func (*Storage) Reset

func (x *Storage) Reset()

func (*Storage) String

func (x *Storage) String() string

type Storage_Driver

type Storage_Driver int32
const (
	Storage_UNKNOWN Storage_Driver = 0
	Storage_HDD     Storage_Driver = 1
	Storage_SSD     Storage_Driver = 2
)

func (Storage_Driver) Descriptor

func (Storage_Driver) Enum

func (x Storage_Driver) Enum() *Storage_Driver

func (Storage_Driver) EnumDescriptor deprecated

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

Deprecated: Use Storage_Driver.Descriptor instead.

func (Storage_Driver) Number

func (Storage_Driver) String

func (x Storage_Driver) String() string

func (Storage_Driver) Type

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) Login

type UnimplementedLaptopServiceServer

type UnimplementedLaptopServiceServer struct {
}

UnimplementedLaptopServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLaptopServiceServer) CreateLaptop

func (UnimplementedLaptopServiceServer) RateLaptop

func (UnimplementedLaptopServiceServer) SearchLaptop

func (UnimplementedLaptopServiceServer) UploadImage

type UnsafeAuthServiceServer

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

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

type UnsafeLaptopServiceServer

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

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

type UploadImageRequest

type UploadImageRequest struct {

	// Types that are assignable to Data:
	//
	//	*UploadImageRequest_Info
	//	*UploadImageRequest_ChunkData
	Data isUploadImageRequest_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*UploadImageRequest) Descriptor deprecated

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

Deprecated: Use UploadImageRequest.ProtoReflect.Descriptor instead.

func (*UploadImageRequest) GetChunkData

func (x *UploadImageRequest) GetChunkData() []byte

func (*UploadImageRequest) GetData

func (m *UploadImageRequest) GetData() isUploadImageRequest_Data

func (*UploadImageRequest) GetInfo

func (x *UploadImageRequest) GetInfo() *ImageInfo

func (*UploadImageRequest) ProtoMessage

func (*UploadImageRequest) ProtoMessage()

func (*UploadImageRequest) ProtoReflect

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

func (*UploadImageRequest) Reset

func (x *UploadImageRequest) Reset()

func (*UploadImageRequest) String

func (x *UploadImageRequest) String() string

type UploadImageRequest_ChunkData

type UploadImageRequest_ChunkData struct {
	ChunkData []byte `protobuf:"bytes,2,opt,name=chunk_data,json=chunkData,proto3,oneof"`
}

type UploadImageRequest_Info

type UploadImageRequest_Info struct {
	Info *ImageInfo `protobuf:"bytes,1,opt,name=info,proto3,oneof"`
}

type UploadImageResonse

type UploadImageResonse struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadImageResonse) Descriptor deprecated

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

Deprecated: Use UploadImageResonse.ProtoReflect.Descriptor instead.

func (*UploadImageResonse) GetId

func (x *UploadImageResonse) GetId() string

func (*UploadImageResonse) GetSize

func (x *UploadImageResonse) GetSize() uint32

func (*UploadImageResonse) ProtoMessage

func (*UploadImageResonse) ProtoMessage()

func (*UploadImageResonse) ProtoReflect

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

func (*UploadImageResonse) Reset

func (x *UploadImageResonse) Reset()

func (*UploadImageResonse) String

func (x *UploadImageResonse) String() string

Jump to

Keyboard shortcuts

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