__

package
v0.0.0-...-98b268d Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Pancake_Menu_name = map[int32]string{
		0: "UNKNOWN",
		1: "CLASSIC",
		2: "BANANA_AND_WHIP",
		3: "BACON_AND_CHEESE",
		4: "MIX_BERRY",
		5: "BAKED_MARSHMALLOW",
		6: "SPICY_CURRY",
	}
	Pancake_Menu_value = map[string]int32{
		"UNKNOWN":           0,
		"CLASSIC":           1,
		"BANANA_AND_WHIP":   2,
		"BACON_AND_CHEESE":  3,
		"MIX_BERRY":         4,
		"BAKED_MARSHMALLOW": 5,
		"SPICY_CURRY":       6,
	}
)

Enum value maps for Pancake_Menu.

View Source
var File_pancake_proto protoreflect.FileDescriptor

Functions

func RegisterPancakeBakerServiceServer

func RegisterPancakeBakerServiceServer(s *grpc.Server, srv PancakeBakerServiceServer)

Types

type BakeRequest

type BakeRequest struct {
	Menu Pancake_Menu `protobuf:"varint,1,opt,name=menu,proto3,enum=package.name.Pancake_Menu" json:"menu,omitempty"`
	// contains filtered or unexported fields
}

func (*BakeRequest) Descriptor deprecated

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

Deprecated: Use BakeRequest.ProtoReflect.Descriptor instead.

func (*BakeRequest) GetMenu

func (x *BakeRequest) GetMenu() Pancake_Menu

func (*BakeRequest) ProtoMessage

func (*BakeRequest) ProtoMessage()

func (*BakeRequest) ProtoReflect

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

func (*BakeRequest) Reset

func (x *BakeRequest) Reset()

func (*BakeRequest) String

func (x *BakeRequest) String() string

type BakeResponse

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

func (*BakeResponse) Descriptor deprecated

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

Deprecated: Use BakeResponse.ProtoReflect.Descriptor instead.

func (*BakeResponse) GetPancake

func (x *BakeResponse) GetPancake() *Pancake

func (*BakeResponse) ProtoMessage

func (*BakeResponse) ProtoMessage()

func (*BakeResponse) ProtoReflect

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

func (*BakeResponse) Reset

func (x *BakeResponse) Reset()

func (*BakeResponse) String

func (x *BakeResponse) String() string

type Pancake

type Pancake struct {
	ChefName       string                 `protobuf:"bytes,1,opt,name=chef_name,json=chefName,proto3" json:"chef_name,omitempty"`
	Menu           Pancake_Menu           `protobuf:"varint,2,opt,name=menu,proto3,enum=package.name.Pancake_Menu" json:"menu,omitempty"`
	TechnicalScore float32                `protobuf:"fixed32,3,opt,name=technical_score,json=technicalScore,proto3" json:"technical_score,omitempty"`
	CreateTime     *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// contains filtered or unexported fields
}

func (*Pancake) Descriptor deprecated

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

Deprecated: Use Pancake.ProtoReflect.Descriptor instead.

func (*Pancake) GetChefName

func (x *Pancake) GetChefName() string

func (*Pancake) GetCreateTime

func (x *Pancake) GetCreateTime() *timestamppb.Timestamp

func (*Pancake) GetMenu

func (x *Pancake) GetMenu() Pancake_Menu

func (*Pancake) GetTechnicalScore

func (x *Pancake) GetTechnicalScore() float32

func (*Pancake) ProtoMessage

func (*Pancake) ProtoMessage()

func (*Pancake) ProtoReflect

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

func (*Pancake) Reset

func (x *Pancake) Reset()

func (*Pancake) String

func (x *Pancake) String() string

type PancakeBakerServiceClient

type PancakeBakerServiceClient interface {
	Bake(ctx context.Context, in *BakeRequest, opts ...grpc.CallOption) (*BakeResponse, error)
	Report(ctx context.Context, in *ReportRequest, opts ...grpc.CallOption) (*ReportResponse, error)
}

PancakeBakerServiceClient is the client API for PancakeBakerService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type PancakeBakerServiceServer

type PancakeBakerServiceServer interface {
	Bake(context.Context, *BakeRequest) (*BakeResponse, error)
	Report(context.Context, *ReportRequest) (*ReportResponse, error)
}

PancakeBakerServiceServer is the server API for PancakeBakerService service.

type Pancake_Menu

type Pancake_Menu int32
const (
	Pancake_UNKNOWN           Pancake_Menu = 0
	Pancake_CLASSIC           Pancake_Menu = 1
	Pancake_BANANA_AND_WHIP   Pancake_Menu = 2
	Pancake_BACON_AND_CHEESE  Pancake_Menu = 3
	Pancake_MIX_BERRY         Pancake_Menu = 4
	Pancake_BAKED_MARSHMALLOW Pancake_Menu = 5
	Pancake_SPICY_CURRY       Pancake_Menu = 6
)

func (Pancake_Menu) Descriptor

func (Pancake_Menu) Enum

func (x Pancake_Menu) Enum() *Pancake_Menu

func (Pancake_Menu) EnumDescriptor deprecated

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

Deprecated: Use Pancake_Menu.Descriptor instead.

func (Pancake_Menu) Number

func (Pancake_Menu) String

func (x Pancake_Menu) String() string

func (Pancake_Menu) Type

type Report

type Report struct {
	BakeCounts []*Report_BakeCount `protobuf:"bytes,1,rep,name=bake_counts,json=bakeCounts,proto3" json:"bake_counts,omitempty"`
	// contains filtered or unexported fields
}

func (*Report) Descriptor deprecated

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

Deprecated: Use Report.ProtoReflect.Descriptor instead.

func (*Report) GetBakeCounts

func (x *Report) GetBakeCounts() []*Report_BakeCount

func (*Report) ProtoMessage

func (*Report) ProtoMessage()

func (*Report) ProtoReflect

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

func (*Report) Reset

func (x *Report) Reset()

func (*Report) String

func (x *Report) String() string

type ReportRequest

type ReportRequest struct {
	// contains filtered or unexported fields
}

func (*ReportRequest) Descriptor deprecated

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

Deprecated: Use ReportRequest.ProtoReflect.Descriptor instead.

func (*ReportRequest) ProtoMessage

func (*ReportRequest) ProtoMessage()

func (*ReportRequest) ProtoReflect

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

func (*ReportRequest) Reset

func (x *ReportRequest) Reset()

func (*ReportRequest) String

func (x *ReportRequest) String() string

type ReportResponse

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

func (*ReportResponse) Descriptor deprecated

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

Deprecated: Use ReportResponse.ProtoReflect.Descriptor instead.

func (*ReportResponse) GetReport

func (x *ReportResponse) GetReport() *Report

func (*ReportResponse) ProtoMessage

func (*ReportResponse) ProtoMessage()

func (*ReportResponse) ProtoReflect

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

func (*ReportResponse) Reset

func (x *ReportResponse) Reset()

func (*ReportResponse) String

func (x *ReportResponse) String() string

type Report_BakeCount

type Report_BakeCount struct {
	Menu  Pancake_Menu `protobuf:"varint,1,opt,name=menu,proto3,enum=package.name.Pancake_Menu" json:"menu,omitempty"`
	Count int32        `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*Report_BakeCount) Descriptor deprecated

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

Deprecated: Use Report_BakeCount.ProtoReflect.Descriptor instead.

func (*Report_BakeCount) GetCount

func (x *Report_BakeCount) GetCount() int32

func (*Report_BakeCount) GetMenu

func (x *Report_BakeCount) GetMenu() Pancake_Menu

func (*Report_BakeCount) ProtoMessage

func (*Report_BakeCount) ProtoMessage()

func (*Report_BakeCount) ProtoReflect

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

func (*Report_BakeCount) Reset

func (x *Report_BakeCount) Reset()

func (*Report_BakeCount) String

func (x *Report_BakeCount) String() string

type UnimplementedPancakeBakerServiceServer

type UnimplementedPancakeBakerServiceServer struct {
}

UnimplementedPancakeBakerServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedPancakeBakerServiceServer) Bake

func (*UnimplementedPancakeBakerServiceServer) Report

Jump to

Keyboard shortcuts

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