EngineToBts

package module
v0.0.0-...-8d2d120 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Type_name = map[int32]string{
		0: "TYPE_UNKNOWN",
		1: "TYPE_FLOAT",
		2: "TYPE_FIXEDPOINT",
	}
	Type_value = map[string]int32{
		"TYPE_UNKNOWN":    0,
		"TYPE_FLOAT":      1,
		"TYPE_FIXEDPOINT": 2,
	}
)

Enum value maps for Type.

View Source
var EngineToBts_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "enginetobts.EngineToBts",
	HandlerType: (*EngineToBtsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetTriples",
			Handler:    _EngineToBts_GetTriples_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "EngineToBts/engine_to_bts.proto",
}

EngineToBts_ServiceDesc is the grpc.ServiceDesc for EngineToBts 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_EngineToBts_engine_to_bts_proto protoreflect.FileDescriptor

Functions

func RegisterEngineToBtsServer

func RegisterEngineToBtsServer(s grpc.ServiceRegistrar, srv EngineToBtsServer)

Types

type EngineToBtsClient

type EngineToBtsClient interface {
	GetTriples(ctx context.Context, in *GetTriplesRequest, opts ...grpc.CallOption) (*GetTriplesResponse, error)
}

EngineToBtsClient is the client API for EngineToBts 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 EngineToBtsServer

type EngineToBtsServer interface {
	GetTriples(context.Context, *GetTriplesRequest) (*GetTriplesResponse, error)
	// contains filtered or unexported methods
}

EngineToBtsServer is the server API for EngineToBts service. All implementations must embed UnimplementedEngineToBtsServer for forward compatibility

type GetTriplesRequest

type GetTriplesRequest struct {
	JobId      uint32 `protobuf:"varint,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
	Amount     uint32 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	TripleType Type   `protobuf:"varint,3,opt,name=triple_type,json=tripleType,proto3,enum=enginetobts.Type" json:"triple_type,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTriplesRequest) Descriptor deprecated

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

Deprecated: Use GetTriplesRequest.ProtoReflect.Descriptor instead.

func (*GetTriplesRequest) GetAmount

func (x *GetTriplesRequest) GetAmount() uint32

func (*GetTriplesRequest) GetJobId

func (x *GetTriplesRequest) GetJobId() uint32

func (*GetTriplesRequest) GetTripleType

func (x *GetTriplesRequest) GetTripleType() Type

func (*GetTriplesRequest) ProtoMessage

func (*GetTriplesRequest) ProtoMessage()

func (*GetTriplesRequest) ProtoReflect

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

func (*GetTriplesRequest) Reset

func (x *GetTriplesRequest) Reset()

func (*GetTriplesRequest) String

func (x *GetTriplesRequest) String() string

type GetTriplesResponse

type GetTriplesResponse struct {
	Triples []*Triple `protobuf:"bytes,1,rep,name=triples,proto3" json:"triples,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTriplesResponse) Descriptor deprecated

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

Deprecated: Use GetTriplesResponse.ProtoReflect.Descriptor instead.

func (*GetTriplesResponse) GetTriples

func (x *GetTriplesResponse) GetTriples() []*Triple

func (*GetTriplesResponse) ProtoMessage

func (*GetTriplesResponse) ProtoMessage()

func (*GetTriplesResponse) ProtoReflect

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

func (*GetTriplesResponse) Reset

func (x *GetTriplesResponse) Reset()

func (*GetTriplesResponse) String

func (x *GetTriplesResponse) String() string

type Triple

type Triple struct {
	A int64 `protobuf:"varint,2,opt,name=a,proto3" json:"a,omitempty"`
	B int64 `protobuf:"varint,3,opt,name=b,proto3" json:"b,omitempty"`
	C int64 `protobuf:"varint,4,opt,name=c,proto3" json:"c,omitempty"`
	// contains filtered or unexported fields
}

func (*Triple) Descriptor deprecated

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

Deprecated: Use Triple.ProtoReflect.Descriptor instead.

func (*Triple) GetA

func (x *Triple) GetA() int64

func (*Triple) GetB

func (x *Triple) GetB() int64

func (*Triple) GetC

func (x *Triple) GetC() int64

func (*Triple) ProtoMessage

func (*Triple) ProtoMessage()

func (*Triple) ProtoReflect

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

func (*Triple) Reset

func (x *Triple) Reset()

func (*Triple) String

func (x *Triple) String() string

type Type

type Type int32
const (
	Type_TYPE_UNKNOWN    Type = 0
	Type_TYPE_FLOAT      Type = 1
	Type_TYPE_FIXEDPOINT Type = 2
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

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

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

func (Type) Type() protoreflect.EnumType

type UnimplementedEngineToBtsServer

type UnimplementedEngineToBtsServer struct {
}

UnimplementedEngineToBtsServer must be embedded to have forward compatible implementations.

func (UnimplementedEngineToBtsServer) GetTriples

type UnsafeEngineToBtsServer

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

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

Jump to

Keyboard shortcuts

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