mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
622 lines
19 KiB
Go
622 lines
19 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.27.1
|
|
// protoc v3.15.6
|
|
// source: proto/memegen.proto
|
|
|
|
package memegen
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type Template struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// id of the memegen
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
// name of the memegen
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
// url of the memegen
|
|
Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
|
|
// width in pixels
|
|
Width int32 `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"`
|
|
// height in pixels
|
|
Height int32 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
|
|
// number of boxes used
|
|
BoxCount int32 `protobuf:"varint,6,opt,name=box_count,json=boxCount,proto3" json:"box_count,omitempty"`
|
|
}
|
|
|
|
func (x *Template) Reset() {
|
|
*x = Template{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_proto_memegen_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Template) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Template) ProtoMessage() {}
|
|
|
|
func (x *Template) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_memegen_proto_msgTypes[0]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Template.ProtoReflect.Descriptor instead.
|
|
func (*Template) Descriptor() ([]byte, []int) {
|
|
return file_proto_memegen_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Template) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Template) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Template) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Template) GetWidth() int32 {
|
|
if x != nil {
|
|
return x.Width
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Template) GetHeight() int32 {
|
|
if x != nil {
|
|
return x.Height
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Template) GetBoxCount() int32 {
|
|
if x != nil {
|
|
return x.BoxCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Box struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// text to display
|
|
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
|
|
// x axis position
|
|
X int32 `protobuf:"varint,2,opt,name=x,proto3" json:"x,omitempty"`
|
|
// y axis position
|
|
Y int32 `protobuf:"varint,3,opt,name=y,proto3" json:"y,omitempty"`
|
|
// width in pixels
|
|
Width int32 `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"`
|
|
// height in pixels
|
|
Height int32 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
|
|
// colour hex code
|
|
Color string `protobuf:"bytes,6,opt,name=color,proto3" json:"color,omitempty"`
|
|
// outline color hex code
|
|
Outline string `protobuf:"bytes,7,opt,name=outline,proto3" json:"outline,omitempty"`
|
|
}
|
|
|
|
func (x *Box) Reset() {
|
|
*x = Box{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_proto_memegen_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Box) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Box) ProtoMessage() {}
|
|
|
|
func (x *Box) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_memegen_proto_msgTypes[1]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Box.ProtoReflect.Descriptor instead.
|
|
func (*Box) Descriptor() ([]byte, []int) {
|
|
return file_proto_memegen_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *Box) GetText() string {
|
|
if x != nil {
|
|
return x.Text
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Box) GetX() int32 {
|
|
if x != nil {
|
|
return x.X
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Box) GetY() int32 {
|
|
if x != nil {
|
|
return x.Y
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Box) GetWidth() int32 {
|
|
if x != nil {
|
|
return x.Width
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Box) GetHeight() int32 {
|
|
if x != nil {
|
|
return x.Height
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Box) GetColor() string {
|
|
if x != nil {
|
|
return x.Color
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Box) GetOutline() string {
|
|
if x != nil {
|
|
return x.Outline
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// List the available templates
|
|
type TemplatesRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *TemplatesRequest) Reset() {
|
|
*x = TemplatesRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_proto_memegen_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *TemplatesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TemplatesRequest) ProtoMessage() {}
|
|
|
|
func (x *TemplatesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_memegen_proto_msgTypes[2]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TemplatesRequest.ProtoReflect.Descriptor instead.
|
|
func (*TemplatesRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_memegen_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
type TemplatesResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Templates []*Template `protobuf:"bytes,1,rep,name=templates,proto3" json:"templates,omitempty"`
|
|
}
|
|
|
|
func (x *TemplatesResponse) Reset() {
|
|
*x = TemplatesResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_proto_memegen_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *TemplatesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TemplatesResponse) ProtoMessage() {}
|
|
|
|
func (x *TemplatesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_memegen_proto_msgTypes[3]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TemplatesResponse.ProtoReflect.Descriptor instead.
|
|
func (*TemplatesResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_memegen_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *TemplatesResponse) GetTemplates() []*Template {
|
|
if x != nil {
|
|
return x.Templates
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GenerateRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// the template id to use
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
// top text
|
|
TopText string `protobuf:"bytes,2,opt,name=top_text,json=topText,proto3" json:"top_text,omitempty"`
|
|
// bottom text
|
|
BottomText string `protobuf:"bytes,3,opt,name=bottom_text,json=bottomText,proto3" json:"bottom_text,omitempty"`
|
|
// font: arial or impact
|
|
Font string `protobuf:"bytes,4,opt,name=font,proto3" json:"font,omitempty"`
|
|
// font size; defaults to 50px
|
|
MaxFontSize string `protobuf:"bytes,5,opt,name=max_font_size,json=maxFontSize,proto3" json:"max_font_size,omitempty"`
|
|
}
|
|
|
|
func (x *GenerateRequest) Reset() {
|
|
*x = GenerateRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_proto_memegen_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *GenerateRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GenerateRequest) ProtoMessage() {}
|
|
|
|
func (x *GenerateRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_memegen_proto_msgTypes[4]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GenerateRequest.ProtoReflect.Descriptor instead.
|
|
func (*GenerateRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_memegen_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *GenerateRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GenerateRequest) GetTopText() string {
|
|
if x != nil {
|
|
return x.TopText
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GenerateRequest) GetBottomText() string {
|
|
if x != nil {
|
|
return x.BottomText
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GenerateRequest) GetFont() string {
|
|
if x != nil {
|
|
return x.Font
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GenerateRequest) GetMaxFontSize() string {
|
|
if x != nil {
|
|
return x.MaxFontSize
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GenerateResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// url of the memegen
|
|
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
|
}
|
|
|
|
func (x *GenerateResponse) Reset() {
|
|
*x = GenerateResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_proto_memegen_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *GenerateResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GenerateResponse) ProtoMessage() {}
|
|
|
|
func (x *GenerateResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_memegen_proto_msgTypes[5]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GenerateResponse.ProtoReflect.Descriptor instead.
|
|
func (*GenerateResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_memegen_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *GenerateResponse) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_proto_memegen_proto protoreflect.FileDescriptor
|
|
|
|
var file_proto_memegen_proto_rawDesc = []byte{
|
|
0x0a, 0x13, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6d, 0x65, 0x6d, 0x65, 0x67, 0x65, 0x6e, 0x2e,
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x6d, 0x65, 0x6d, 0x65, 0x67, 0x65, 0x6e, 0x22, 0x8b,
|
|
0x01, 0x0a, 0x08, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69,
|
|
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e,
|
|
0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
|
|
0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72,
|
|
0x6c, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05,
|
|
0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68,
|
|
0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12,
|
|
0x1b, 0x0a, 0x09, 0x62, 0x6f, 0x78, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01,
|
|
0x28, 0x05, 0x52, 0x08, 0x62, 0x6f, 0x78, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x93, 0x01, 0x0a,
|
|
0x03, 0x42, 0x6f, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01,
|
|
0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x02, 0x20,
|
|
0x01, 0x28, 0x05, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28,
|
|
0x05, 0x52, 0x01, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x04, 0x20,
|
|
0x01, 0x28, 0x05, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65,
|
|
0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67,
|
|
0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28,
|
|
0x09, 0x52, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x6c,
|
|
0x69, 0x6e, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x6c, 0x69,
|
|
0x6e, 0x65, 0x22, 0x12, 0x0a, 0x10, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x52,
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x44, 0x0a, 0x11, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61,
|
|
0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x74,
|
|
0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11,
|
|
0x2e, 0x6d, 0x65, 0x6d, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74,
|
|
0x65, 0x52, 0x09, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x22, 0x95, 0x01, 0x0a,
|
|
0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
|
|
0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01,
|
|
0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x54, 0x65, 0x78, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x62,
|
|
0x6f, 0x74, 0x74, 0x6f, 0x6d, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
|
|
0x52, 0x0a, 0x62, 0x6f, 0x74, 0x74, 0x6f, 0x6d, 0x54, 0x65, 0x78, 0x74, 0x12, 0x12, 0x0a, 0x04,
|
|
0x66, 0x6f, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x6f, 0x6e, 0x74,
|
|
0x12, 0x22, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x66, 0x6f, 0x6e, 0x74, 0x5f, 0x73, 0x69, 0x7a,
|
|
0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x46, 0x6f, 0x6e, 0x74,
|
|
0x53, 0x69, 0x7a, 0x65, 0x22, 0x24, 0x0a, 0x10, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65,
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18,
|
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x32, 0x92, 0x01, 0x0a, 0x07, 0x4d,
|
|
0x65, 0x6d, 0x65, 0x67, 0x65, 0x6e, 0x12, 0x44, 0x0a, 0x09, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61,
|
|
0x74, 0x65, 0x73, 0x12, 0x19, 0x2e, 0x6d, 0x65, 0x6d, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x54, 0x65,
|
|
0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a,
|
|
0x2e, 0x6d, 0x65, 0x6d, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74,
|
|
0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x08,
|
|
0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x6d, 0x65, 0x6d, 0x65, 0x67,
|
|
0x65, 0x6e, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6d, 0x65, 0x6d, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x47, 0x65, 0x6e,
|
|
0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42,
|
|
0x11, 0x5a, 0x0f, 0x2e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x6d, 0x65, 0x6d, 0x65, 0x67,
|
|
0x65, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_proto_memegen_proto_rawDescOnce sync.Once
|
|
file_proto_memegen_proto_rawDescData = file_proto_memegen_proto_rawDesc
|
|
)
|
|
|
|
func file_proto_memegen_proto_rawDescGZIP() []byte {
|
|
file_proto_memegen_proto_rawDescOnce.Do(func() {
|
|
file_proto_memegen_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_memegen_proto_rawDescData)
|
|
})
|
|
return file_proto_memegen_proto_rawDescData
|
|
}
|
|
|
|
var file_proto_memegen_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
|
var file_proto_memegen_proto_goTypes = []interface{}{
|
|
(*Template)(nil), // 0: memegen.Template
|
|
(*Box)(nil), // 1: memegen.Box
|
|
(*TemplatesRequest)(nil), // 2: memegen.TemplatesRequest
|
|
(*TemplatesResponse)(nil), // 3: memegen.TemplatesResponse
|
|
(*GenerateRequest)(nil), // 4: memegen.GenerateRequest
|
|
(*GenerateResponse)(nil), // 5: memegen.GenerateResponse
|
|
}
|
|
var file_proto_memegen_proto_depIdxs = []int32{
|
|
0, // 0: memegen.TemplatesResponse.templates:type_name -> memegen.Template
|
|
2, // 1: memegen.Memegen.Templates:input_type -> memegen.TemplatesRequest
|
|
4, // 2: memegen.Memegen.Generate:input_type -> memegen.GenerateRequest
|
|
3, // 3: memegen.Memegen.Templates:output_type -> memegen.TemplatesResponse
|
|
5, // 4: memegen.Memegen.Generate:output_type -> memegen.GenerateResponse
|
|
3, // [3:5] is the sub-list for method output_type
|
|
1, // [1:3] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_proto_memegen_proto_init() }
|
|
func file_proto_memegen_proto_init() {
|
|
if File_proto_memegen_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_proto_memegen_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Template); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_proto_memegen_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Box); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_proto_memegen_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*TemplatesRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_proto_memegen_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*TemplatesResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_proto_memegen_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*GenerateRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_proto_memegen_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*GenerateResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_proto_memegen_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 6,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_proto_memegen_proto_goTypes,
|
|
DependencyIndexes: file_proto_memegen_proto_depIdxs,
|
|
MessageInfos: file_proto_memegen_proto_msgTypes,
|
|
}.Build()
|
|
File_proto_memegen_proto = out.File
|
|
file_proto_memegen_proto_rawDesc = nil
|
|
file_proto_memegen_proto_goTypes = nil
|
|
file_proto_memegen_proto_depIdxs = nil
|
|
}
|