proto

package
v0.0.0-...-421612b Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_protobuf_import_component_proto protoreflect.FileDescriptor
View Source
var File_protobuf_import_computer_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CPU

type CPU struct {
	Name      string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Frequency int64  `protobuf:"varint,2,opt,name=Frequency,proto3" json:"Frequency,omitempty"`
	// contains filtered or unexported fields
}

func (*CPU) Descriptor deprecated

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

Deprecated: Use CPU.ProtoReflect.Descriptor instead.

func (*CPU) GetFrequency

func (x *CPU) GetFrequency() int64

func (*CPU) GetName

func (x *CPU) GetName() string

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 Computer

type Computer struct {
	Name   string  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Cpu    *CPU    `protobuf:"bytes,2,opt,name=cpu,proto3" json:"cpu,omitempty"`
	Memory *Memory `protobuf:"bytes,3,opt,name=memory,proto3" json:"memory,omitempty"`
	// contains filtered or unexported fields
}

func (*Computer) Descriptor deprecated

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

Deprecated: Use Computer.ProtoReflect.Descriptor instead.

func (*Computer) GetCpu

func (x *Computer) GetCpu() *CPU

func (*Computer) GetMemory

func (x *Computer) GetMemory() *Memory

func (*Computer) GetName

func (x *Computer) GetName() string

func (*Computer) ProtoMessage

func (*Computer) ProtoMessage()

func (*Computer) ProtoReflect

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

func (*Computer) Reset

func (x *Computer) Reset()

func (*Computer) String

func (x *Computer) String() string

type Memory

type Memory struct {
	Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Cap  int64  `protobuf:"varint,2,opt,name=Cap,proto3" json:"Cap,omitempty"`
	// contains filtered or unexported fields
}

func (*Memory) Descriptor deprecated

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

Deprecated: Use Memory.ProtoReflect.Descriptor instead.

func (*Memory) GetCap

func (x *Memory) GetCap() int64

func (*Memory) GetName

func (x *Memory) GetName() string

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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