pb

package
v0.0.0-...-d36e823 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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 File_filter_message_proto protoreflect.FileDescriptor
View Source
var File_keyboard_message_proto protoreflect.FileDescriptor
View Source
var File_laptop_message_proto protoreflect.FileDescriptor
View Source
var File_laptop_service_proto protoreflect.FileDescriptor
View Source
var File_memory_message_proto protoreflect.FileDescriptor
View Source
var File_processor_message_proto protoreflect.FileDescriptor
View Source
var File_screen_message_proto protoreflect.FileDescriptor
View Source
var File_storage_message_proto protoreflect.FileDescriptor
View Source
var LaptopService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "laptopq.LaptopService",
	HandlerType: (*LaptopServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateLaptop",
			Handler:    _LaptopService_CreateLaptop_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SearchLaptop",
			Handler:       _LaptopService_SearchLaptop_Handler,
			ServerStreams: 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 RegisterLaptopServiceServer

func RegisterLaptopServiceServer(s grpc.ServiceRegistrar, srv LaptopServiceServer)

Types

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"`
	NumberCores   uint32  `protobuf:"varint,3,opt,name=number_cores,json=numberCores,proto3" json:"number_cores,omitempty"`
	NumberThreads uint32  `protobuf:"varint,4,opt,name=number_threads,json=numberThreads,proto3" json:"number_threads,omitempty"`
	MinGhz        float32 `protobuf:"fixed32,5,opt,name=min_ghz,json=minGhz,proto3" json:"min_ghz,omitempty"`
	MaxGhz        float32 `protobuf:"fixed32,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) GetMaxGhz

func (x *CPU) GetMaxGhz() float32

func (*CPU) GetMinGhz

func (x *CPU) GetMinGhz() float32

func (*CPU) GetName

func (x *CPU) GetName() string

func (*CPU) GetNumberCores

func (x *CPU) GetNumberCores() uint32

func (*CPU) GetNumberThreads

func (x *CPU) GetNumberThreads() 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 {
	MaxPriceUsd float64 `protobuf:"fixed64,1,opt,name=max_price_usd,json=maxPriceUsd,proto3" json:"max_price_usd,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) GetMaxPriceUsd

func (x *Filter) GetMaxPriceUsd() 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 float32 `protobuf:"fixed32,3,opt,name=min_ghz,json=minGhz,proto3" json:"min_ghz,omitempty"`
	MaxGhz float32 `protobuf:"fixed32,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() float32

func (*GPU) GetMemory

func (x *GPU) GetMemory() *Memory

func (*GPU) GetMinGhz

func (x *GPU) GetMinGhz() float32

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 Keyboard

type Keyboard struct {
	Layout  Keyboard_Layout `protobuf:"varint,1,opt,name=layout,proto3,enum=laptopq.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"`
	UpdatedAt   *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_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) GetUpdatedAt

func (x *Laptop) GetUpdatedAt() *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)
}

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
	// contains filtered or unexported methods
}

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

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 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 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=laptopq.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 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=laptopq.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=laptopq.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 UnimplementedLaptopServiceServer

type UnimplementedLaptopServiceServer struct {
}

UnimplementedLaptopServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLaptopServiceServer) CreateLaptop

func (UnimplementedLaptopServiceServer) SearchLaptop

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.

Jump to

Keyboard shortcuts

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