proto

package
v0.87.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FokusService_GetFokus_FullMethodName = "/fokus.FokusService/GetFokus"
)

Variables

View Source
var (
	Focus_FocusType_name = map[int32]string{
		0:  "UNKNOWN",
		1:  "FOCUS_ON_RECORD_CLEANING",
		2:  "FOCUS_ON_HOME_TASKS",
		3:  "FOCUS_ON_NON_HOME_TASKS",
		4:  "FOCUS_ON_CODING_TASKS",
		5:  "FOCUS_ON_RECORD_COLLECTION_TASKS",
		6:  "FOCUS_ON_HIGHLIGHT",
		7:  "FOCUS_ON_RECORD_ADDER",
		8:  "FOCUS_ON_CLUSTER",
		9:  "FOCUS_ON_TASKS",
		10: "FOCUS_ON_FOKUS",
		11: "FOCUS_ON_ALL",
	}
	Focus_FocusType_value = map[string]int32{
		"UNKNOWN":                          0,
		"FOCUS_ON_RECORD_CLEANING":         1,
		"FOCUS_ON_HOME_TASKS":              2,
		"FOCUS_ON_NON_HOME_TASKS":          3,
		"FOCUS_ON_CODING_TASKS":            4,
		"FOCUS_ON_RECORD_COLLECTION_TASKS": 5,
		"FOCUS_ON_HIGHLIGHT":               6,
		"FOCUS_ON_RECORD_ADDER":            7,
		"FOCUS_ON_CLUSTER":                 8,
		"FOCUS_ON_TASKS":                   9,
		"FOCUS_ON_FOKUS":                   10,
		"FOCUS_ON_ALL":                     11,
	}
)

Enum value maps for Focus_FocusType.

View Source
var File_fokus_proto protoreflect.FileDescriptor
View Source
var FokusService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "fokus.FokusService",
	HandlerType: (*FokusServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetFokus",
			Handler:    _FokusService_GetFokus_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "fokus.proto",
}

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

Functions

func RegisterFokusServiceServer

func RegisterFokusServiceServer(s grpc.ServiceRegistrar, srv FokusServiceServer)

Types

type Focus

type Focus struct {
	Type   Focus_FocusType `protobuf:"varint,1,opt,name=type,proto3,enum=fokus.Focus_FocusType" json:"type,omitempty"`
	Detail string          `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"`
	Link   string          `protobuf:"bytes,3,opt,name=link,proto3" json:"link,omitempty"`
	// contains filtered or unexported fields
}

func (*Focus) Descriptor deprecated

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

Deprecated: Use Focus.ProtoReflect.Descriptor instead.

func (*Focus) GetDetail

func (x *Focus) GetDetail() string
func (x *Focus) GetLink() string

func (*Focus) GetType

func (x *Focus) GetType() Focus_FocusType

func (*Focus) ProtoMessage

func (*Focus) ProtoMessage()

func (*Focus) ProtoReflect

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

func (*Focus) Reset

func (x *Focus) Reset()

func (*Focus) String

func (x *Focus) String() string

type Focus_FocusType

type Focus_FocusType int32
const (
	Focus_UNKNOWN                          Focus_FocusType = 0
	Focus_FOCUS_ON_RECORD_CLEANING         Focus_FocusType = 1
	Focus_FOCUS_ON_HOME_TASKS              Focus_FocusType = 2
	Focus_FOCUS_ON_NON_HOME_TASKS          Focus_FocusType = 3
	Focus_FOCUS_ON_CODING_TASKS            Focus_FocusType = 4
	Focus_FOCUS_ON_RECORD_COLLECTION_TASKS Focus_FocusType = 5
	Focus_FOCUS_ON_HIGHLIGHT               Focus_FocusType = 6
	Focus_FOCUS_ON_RECORD_ADDER            Focus_FocusType = 7
	Focus_FOCUS_ON_CLUSTER                 Focus_FocusType = 8
	Focus_FOCUS_ON_TASKS                   Focus_FocusType = 9
	Focus_FOCUS_ON_FOKUS                   Focus_FocusType = 10
	Focus_FOCUS_ON_ALL                     Focus_FocusType = 11
)

func (Focus_FocusType) Descriptor

func (Focus_FocusType) Enum

func (x Focus_FocusType) Enum() *Focus_FocusType

func (Focus_FocusType) EnumDescriptor deprecated

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

Deprecated: Use Focus_FocusType.Descriptor instead.

func (Focus_FocusType) Number

func (Focus_FocusType) String

func (x Focus_FocusType) String() string

func (Focus_FocusType) Type

type FokusServiceClient

type FokusServiceClient interface {
	GetFokus(ctx context.Context, in *GetFokusRequest, opts ...grpc.CallOption) (*GetFokusResponse, error)
}

FokusServiceClient is the client API for FokusService 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 FokusServiceServer

type FokusServiceServer interface {
	GetFokus(context.Context, *GetFokusRequest) (*GetFokusResponse, error)
}

FokusServiceServer is the server API for FokusService service. All implementations should embed UnimplementedFokusServiceServer for forward compatibility

type GetFokusRequest

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

func (*GetFokusRequest) Descriptor deprecated

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

Deprecated: Use GetFokusRequest.ProtoReflect.Descriptor instead.

func (*GetFokusRequest) GetLabel added in v0.86.0

func (x *GetFokusRequest) GetLabel() string

func (*GetFokusRequest) ProtoMessage

func (*GetFokusRequest) ProtoMessage()

func (*GetFokusRequest) ProtoReflect

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

func (*GetFokusRequest) Reset

func (x *GetFokusRequest) Reset()

func (*GetFokusRequest) String

func (x *GetFokusRequest) String() string

type GetFokusResponse

type GetFokusResponse struct {
	Focus     *Focus `protobuf:"bytes,1,opt,name=focus,proto3" json:"focus,omitempty"`
	GivenTime int64  `protobuf:"varint,2,opt,name=given_time,json=givenTime,proto3" json:"given_time,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFokusResponse) Descriptor deprecated

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

Deprecated: Use GetFokusResponse.ProtoReflect.Descriptor instead.

func (*GetFokusResponse) GetFocus

func (x *GetFokusResponse) GetFocus() *Focus

func (*GetFokusResponse) GetGivenTime added in v0.75.0

func (x *GetFokusResponse) GetGivenTime() int64

func (*GetFokusResponse) ProtoMessage

func (*GetFokusResponse) ProtoMessage()

func (*GetFokusResponse) ProtoReflect

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

func (*GetFokusResponse) Reset

func (x *GetFokusResponse) Reset()

func (*GetFokusResponse) String

func (x *GetFokusResponse) String() string

type UnimplementedFokusServiceServer

type UnimplementedFokusServiceServer struct {
}

UnimplementedFokusServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedFokusServiceServer) GetFokus

type UnsafeFokusServiceServer

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

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

Jump to

Keyboard shortcuts

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