Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterParserServiceServer(s grpc.ServiceRegistrar, srv ParserServiceServer)
- type ParseRecipeRequest
- func (*ParseRecipeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ParseRecipeRequest) GetRecipeText() string
- func (*ParseRecipeRequest) ProtoMessage()
- func (x *ParseRecipeRequest) ProtoReflect() protoreflect.Message
- func (x *ParseRecipeRequest) Reset()
- func (x *ParseRecipeRequest) String() string
- type ParseRecipeResponse
- func (*ParseRecipeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ParseRecipeResponse) GetRecipe() *ParsedRecipe
- func (*ParseRecipeResponse) ProtoMessage()
- func (x *ParseRecipeResponse) ProtoReflect() protoreflect.Message
- func (x *ParseRecipeResponse) Reset()
- func (x *ParseRecipeResponse) String() string
- type ParsedIngredient
- func (*ParsedIngredient) Descriptor() ([]byte, []int)deprecated
- func (x *ParsedIngredient) GetDescription() string
- func (x *ParsedIngredient) GetName() string
- func (x *ParsedIngredient) GetOriginal() string
- func (x *ParsedIngredient) GetQuantity() float64
- func (x *ParsedIngredient) GetSlug() string
- func (x *ParsedIngredient) GetUnits() string
- func (*ParsedIngredient) ProtoMessage()
- func (x *ParsedIngredient) ProtoReflect() protoreflect.Message
- func (x *ParsedIngredient) Reset()
- func (x *ParsedIngredient) String() string
- type ParsedInstruction
- func (*ParsedInstruction) Descriptor() ([]byte, []int)deprecated
- func (x *ParsedInstruction) GetDescription() string
- func (x *ParsedInstruction) GetOrdinal() uint32
- func (*ParsedInstruction) ProtoMessage()
- func (x *ParsedInstruction) ProtoReflect() protoreflect.Message
- func (x *ParsedInstruction) Reset()
- func (x *ParsedInstruction) String() string
- type ParsedRecipe
- func (*ParsedRecipe) Descriptor() ([]byte, []int)deprecated
- func (x *ParsedRecipe) GetCategories() []string
- func (x *ParsedRecipe) GetCreatedDate() *timestamppb.Timestamp
- func (x *ParsedRecipe) GetDescription() string
- func (x *ParsedRecipe) GetIngredients() []*ParsedIngredient
- func (x *ParsedRecipe) GetInstructions() []*ParsedInstruction
- func (x *ParsedRecipe) GetName() string
- func (x *ParsedRecipe) GetSlug() string
- func (*ParsedRecipe) ProtoMessage()
- func (x *ParsedRecipe) ProtoReflect() protoreflect.Message
- func (x *ParsedRecipe) Reset()
- func (x *ParsedRecipe) String() string
- type ParserServiceClient
- type ParserServiceServer
- type UnimplementedParserServiceServer
- type UnsafeParserServiceServer
Constants ¶
const (
ParserService_ParseRecipe_FullMethodName = "/recipe.parser.v1.ParserService/ParseRecipe"
)
Variables ¶
var File_recipe_parser_v1_recipe_proto protoreflect.FileDescriptor
var ParserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "recipe.parser.v1.ParserService", HandlerType: (*ParserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ParseRecipe", Handler: _ParserService_ParseRecipe_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "recipe/parser/v1/recipe.proto", }
ParserService_ServiceDesc is the grpc.ServiceDesc for ParserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterParserServiceServer ¶
func RegisterParserServiceServer(s grpc.ServiceRegistrar, srv ParserServiceServer)
Types ¶
type ParseRecipeRequest ¶
type ParseRecipeRequest struct { RecipeText string `protobuf:"bytes,1,opt,name=recipe_text,json=recipeText,proto3" json:"recipe_text,omitempty"` // contains filtered or unexported fields }
func (*ParseRecipeRequest) Descriptor
deprecated
func (*ParseRecipeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ParseRecipeRequest.ProtoReflect.Descriptor instead.
func (*ParseRecipeRequest) GetRecipeText ¶
func (x *ParseRecipeRequest) GetRecipeText() string
func (*ParseRecipeRequest) ProtoMessage ¶
func (*ParseRecipeRequest) ProtoMessage()
func (*ParseRecipeRequest) ProtoReflect ¶
func (x *ParseRecipeRequest) ProtoReflect() protoreflect.Message
func (*ParseRecipeRequest) Reset ¶
func (x *ParseRecipeRequest) Reset()
func (*ParseRecipeRequest) String ¶
func (x *ParseRecipeRequest) String() string
type ParseRecipeResponse ¶
type ParseRecipeResponse struct { Recipe *ParsedRecipe `protobuf:"bytes,1,opt,name=recipe,proto3" json:"recipe,omitempty"` // contains filtered or unexported fields }
func (*ParseRecipeResponse) Descriptor
deprecated
func (*ParseRecipeResponse) Descriptor() ([]byte, []int)
Deprecated: Use ParseRecipeResponse.ProtoReflect.Descriptor instead.
func (*ParseRecipeResponse) GetRecipe ¶
func (x *ParseRecipeResponse) GetRecipe() *ParsedRecipe
func (*ParseRecipeResponse) ProtoMessage ¶
func (*ParseRecipeResponse) ProtoMessage()
func (*ParseRecipeResponse) ProtoReflect ¶
func (x *ParseRecipeResponse) ProtoReflect() protoreflect.Message
func (*ParseRecipeResponse) Reset ¶
func (x *ParseRecipeResponse) Reset()
func (*ParseRecipeResponse) String ¶
func (x *ParseRecipeResponse) String() string
type ParsedIngredient ¶
type ParsedIngredient struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Slug string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Quantity float64 `protobuf:"fixed64,4,opt,name=quantity,proto3" json:"quantity,omitempty"` Units string `protobuf:"bytes,5,opt,name=units,proto3" json:"units,omitempty"` Original string `protobuf:"bytes,6,opt,name=original,proto3" json:"original,omitempty"` // contains filtered or unexported fields }
func (*ParsedIngredient) Descriptor
deprecated
func (*ParsedIngredient) Descriptor() ([]byte, []int)
Deprecated: Use ParsedIngredient.ProtoReflect.Descriptor instead.
func (*ParsedIngredient) GetDescription ¶
func (x *ParsedIngredient) GetDescription() string
func (*ParsedIngredient) GetName ¶
func (x *ParsedIngredient) GetName() string
func (*ParsedIngredient) GetOriginal ¶
func (x *ParsedIngredient) GetOriginal() string
func (*ParsedIngredient) GetQuantity ¶
func (x *ParsedIngredient) GetQuantity() float64
func (*ParsedIngredient) GetSlug ¶
func (x *ParsedIngredient) GetSlug() string
func (*ParsedIngredient) GetUnits ¶
func (x *ParsedIngredient) GetUnits() string
func (*ParsedIngredient) ProtoMessage ¶
func (*ParsedIngredient) ProtoMessage()
func (*ParsedIngredient) ProtoReflect ¶
func (x *ParsedIngredient) ProtoReflect() protoreflect.Message
func (*ParsedIngredient) Reset ¶
func (x *ParsedIngredient) Reset()
func (*ParsedIngredient) String ¶
func (x *ParsedIngredient) String() string
type ParsedInstruction ¶
type ParsedInstruction struct { Ordinal uint32 `protobuf:"varint,1,opt,name=ordinal,proto3" json:"ordinal,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*ParsedInstruction) Descriptor
deprecated
func (*ParsedInstruction) Descriptor() ([]byte, []int)
Deprecated: Use ParsedInstruction.ProtoReflect.Descriptor instead.
func (*ParsedInstruction) GetDescription ¶
func (x *ParsedInstruction) GetDescription() string
func (*ParsedInstruction) GetOrdinal ¶
func (x *ParsedInstruction) GetOrdinal() uint32
func (*ParsedInstruction) ProtoMessage ¶
func (*ParsedInstruction) ProtoMessage()
func (*ParsedInstruction) ProtoReflect ¶
func (x *ParsedInstruction) ProtoReflect() protoreflect.Message
func (*ParsedInstruction) Reset ¶
func (x *ParsedInstruction) Reset()
func (*ParsedInstruction) String ¶
func (x *ParsedInstruction) String() string
type ParsedRecipe ¶
type ParsedRecipe struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Slug string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` CreatedDate *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_date,json=createdDate,proto3" json:"created_date,omitempty"` Ingredients []*ParsedIngredient `protobuf:"bytes,5,rep,name=ingredients,proto3" json:"ingredients,omitempty"` Instructions []*ParsedInstruction `protobuf:"bytes,6,rep,name=instructions,proto3" json:"instructions,omitempty"` Categories []string `protobuf:"bytes,7,rep,name=categories,proto3" json:"categories,omitempty"` // contains filtered or unexported fields }
func (*ParsedRecipe) Descriptor
deprecated
func (*ParsedRecipe) Descriptor() ([]byte, []int)
Deprecated: Use ParsedRecipe.ProtoReflect.Descriptor instead.
func (*ParsedRecipe) GetCategories ¶
func (x *ParsedRecipe) GetCategories() []string
func (*ParsedRecipe) GetCreatedDate ¶
func (x *ParsedRecipe) GetCreatedDate() *timestamppb.Timestamp
func (*ParsedRecipe) GetDescription ¶
func (x *ParsedRecipe) GetDescription() string
func (*ParsedRecipe) GetIngredients ¶
func (x *ParsedRecipe) GetIngredients() []*ParsedIngredient
func (*ParsedRecipe) GetInstructions ¶
func (x *ParsedRecipe) GetInstructions() []*ParsedInstruction
func (*ParsedRecipe) GetName ¶
func (x *ParsedRecipe) GetName() string
func (*ParsedRecipe) GetSlug ¶
func (x *ParsedRecipe) GetSlug() string
func (*ParsedRecipe) ProtoMessage ¶
func (*ParsedRecipe) ProtoMessage()
func (*ParsedRecipe) ProtoReflect ¶
func (x *ParsedRecipe) ProtoReflect() protoreflect.Message
func (*ParsedRecipe) Reset ¶
func (x *ParsedRecipe) Reset()
func (*ParsedRecipe) String ¶
func (x *ParsedRecipe) String() string
type ParserServiceClient ¶
type ParserServiceClient interface {
ParseRecipe(ctx context.Context, in *ParseRecipeRequest, opts ...grpc.CallOption) (*ParseRecipeResponse, error)
}
ParserServiceClient is the client API for ParserService 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.
func NewParserServiceClient ¶
func NewParserServiceClient(cc grpc.ClientConnInterface) ParserServiceClient
type ParserServiceServer ¶
type ParserServiceServer interface { ParseRecipe(context.Context, *ParseRecipeRequest) (*ParseRecipeResponse, error) // contains filtered or unexported methods }
ParserServiceServer is the server API for ParserService service. All implementations must embed UnimplementedParserServiceServer for forward compatibility
type UnimplementedParserServiceServer ¶
type UnimplementedParserServiceServer struct { }
UnimplementedParserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedParserServiceServer) ParseRecipe ¶
func (UnimplementedParserServiceServer) ParseRecipe(context.Context, *ParseRecipeRequest) (*ParseRecipeResponse, error)
type UnsafeParserServiceServer ¶
type UnsafeParserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeParserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ParserServiceServer will result in compilation errors.