txt2imgv1

package
v0.0.0-...-3817d94 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_txt2img_v1_txt2img_proto protoreflect.FileDescriptor
View Source
var Txt2ImgService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "txt2img.v1.Txt2ImgService",
	HandlerType: (*Txt2ImgServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GenerateImage",
			Handler:    _Txt2ImgService_GenerateImage_Handler,
		},
		{
			MethodName: "GetImage",
			Handler:    _Txt2ImgService_GetImage_Handler,
		},
		{
			MethodName: "ListImages",
			Handler:    _Txt2ImgService_ListImages_Handler,
		},
		{
			MethodName: "DeleteImage",
			Handler:    _Txt2ImgService_DeleteImage_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "txt2img/v1/txt2img.proto",
}

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

Functions

func RegisterTxt2ImgServiceServer

func RegisterTxt2ImgServiceServer(s grpc.ServiceRegistrar, srv Txt2ImgServiceServer)

Types

type DeleteImageRequest

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

func (*DeleteImageRequest) Descriptor deprecated

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

Deprecated: Use DeleteImageRequest.ProtoReflect.Descriptor instead.

func (*DeleteImageRequest) GetId

func (x *DeleteImageRequest) GetId() string

func (*DeleteImageRequest) ProtoMessage

func (*DeleteImageRequest) ProtoMessage()

func (*DeleteImageRequest) ProtoReflect

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

func (*DeleteImageRequest) Reset

func (x *DeleteImageRequest) Reset()

func (*DeleteImageRequest) String

func (x *DeleteImageRequest) String() string

type DeleteImageResponse

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

func (*DeleteImageResponse) Descriptor deprecated

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

Deprecated: Use DeleteImageResponse.ProtoReflect.Descriptor instead.

func (*DeleteImageResponse) ProtoMessage

func (*DeleteImageResponse) ProtoMessage()

func (*DeleteImageResponse) ProtoReflect

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

func (*DeleteImageResponse) Reset

func (x *DeleteImageResponse) Reset()

func (*DeleteImageResponse) String

func (x *DeleteImageResponse) String() string

type GenerateImageRequest

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

func (*GenerateImageRequest) Descriptor deprecated

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

Deprecated: Use GenerateImageRequest.ProtoReflect.Descriptor instead.

func (*GenerateImageRequest) GetPrompt

func (x *GenerateImageRequest) GetPrompt() string

func (*GenerateImageRequest) ProtoMessage

func (*GenerateImageRequest) ProtoMessage()

func (*GenerateImageRequest) ProtoReflect

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

func (*GenerateImageRequest) Reset

func (x *GenerateImageRequest) Reset()

func (*GenerateImageRequest) String

func (x *GenerateImageRequest) String() string

type GenerateImageResponse

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

func (*GenerateImageResponse) Descriptor deprecated

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

Deprecated: Use GenerateImageResponse.ProtoReflect.Descriptor instead.

func (*GenerateImageResponse) GetImage

func (x *GenerateImageResponse) GetImage() *Image

func (*GenerateImageResponse) ProtoMessage

func (*GenerateImageResponse) ProtoMessage()

func (*GenerateImageResponse) ProtoReflect

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

func (*GenerateImageResponse) Reset

func (x *GenerateImageResponse) Reset()

func (*GenerateImageResponse) String

func (x *GenerateImageResponse) String() string

type GetImageRequest

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

func (*GetImageRequest) Descriptor deprecated

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

Deprecated: Use GetImageRequest.ProtoReflect.Descriptor instead.

func (*GetImageRequest) GetId

func (x *GetImageRequest) GetId() string

func (*GetImageRequest) ProtoMessage

func (*GetImageRequest) ProtoMessage()

func (*GetImageRequest) ProtoReflect

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

func (*GetImageRequest) Reset

func (x *GetImageRequest) Reset()

func (*GetImageRequest) String

func (x *GetImageRequest) String() string

type GetImageResponse

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

func (*GetImageResponse) Descriptor deprecated

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

Deprecated: Use GetImageResponse.ProtoReflect.Descriptor instead.

func (*GetImageResponse) GetImage

func (x *GetImageResponse) GetImage() *Image

func (*GetImageResponse) ProtoMessage

func (*GetImageResponse) ProtoMessage()

func (*GetImageResponse) ProtoReflect

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

func (*GetImageResponse) Reset

func (x *GetImageResponse) Reset()

func (*GetImageResponse) String

func (x *GetImageResponse) String() string

type Image

type Image struct {
	Prompt string `protobuf:"bytes,1,opt,name=prompt,proto3" json:"prompt,omitempty"`
	Id     string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Url    string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*Image) Descriptor deprecated

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

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetId

func (x *Image) GetId() string

func (*Image) GetPrompt

func (x *Image) GetPrompt() string

func (*Image) GetUrl

func (x *Image) GetUrl() string

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

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

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

type ListImagesRequest

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

func (*ListImagesRequest) Descriptor deprecated

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

Deprecated: Use ListImagesRequest.ProtoReflect.Descriptor instead.

func (*ListImagesRequest) ProtoMessage

func (*ListImagesRequest) ProtoMessage()

func (*ListImagesRequest) ProtoReflect

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

func (*ListImagesRequest) Reset

func (x *ListImagesRequest) Reset()

func (*ListImagesRequest) String

func (x *ListImagesRequest) String() string

type ListImagesResponse

type ListImagesResponse struct {
	Images []*Image `protobuf:"bytes,1,rep,name=images,proto3" json:"images,omitempty"`
	// contains filtered or unexported fields
}

func (*ListImagesResponse) Descriptor deprecated

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

Deprecated: Use ListImagesResponse.ProtoReflect.Descriptor instead.

func (*ListImagesResponse) GetImages

func (x *ListImagesResponse) GetImages() []*Image

func (*ListImagesResponse) ProtoMessage

func (*ListImagesResponse) ProtoMessage()

func (*ListImagesResponse) ProtoReflect

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

func (*ListImagesResponse) Reset

func (x *ListImagesResponse) Reset()

func (*ListImagesResponse) String

func (x *ListImagesResponse) String() string

type Txt2ImgServiceClient

type Txt2ImgServiceClient interface {
	GenerateImage(ctx context.Context, in *GenerateImageRequest, opts ...grpc.CallOption) (*GenerateImageResponse, error)
	GetImage(ctx context.Context, in *GetImageRequest, opts ...grpc.CallOption) (*GetImageResponse, error)
	ListImages(ctx context.Context, in *ListImagesRequest, opts ...grpc.CallOption) (*ListImagesResponse, error)
	DeleteImage(ctx context.Context, in *DeleteImageRequest, opts ...grpc.CallOption) (*DeleteImageResponse, error)
}

Txt2ImgServiceClient is the client API for Txt2ImgService 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 Txt2ImgServiceServer

type Txt2ImgServiceServer interface {
	GenerateImage(context.Context, *GenerateImageRequest) (*GenerateImageResponse, error)
	GetImage(context.Context, *GetImageRequest) (*GetImageResponse, error)
	ListImages(context.Context, *ListImagesRequest) (*ListImagesResponse, error)
	DeleteImage(context.Context, *DeleteImageRequest) (*DeleteImageResponse, error)
	// contains filtered or unexported methods
}

Txt2ImgServiceServer is the server API for Txt2ImgService service. All implementations must embed UnimplementedTxt2ImgServiceServer for forward compatibility

type UnimplementedTxt2ImgServiceServer

type UnimplementedTxt2ImgServiceServer struct {
}

UnimplementedTxt2ImgServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTxt2ImgServiceServer) DeleteImage

func (UnimplementedTxt2ImgServiceServer) GenerateImage

func (UnimplementedTxt2ImgServiceServer) GetImage

func (UnimplementedTxt2ImgServiceServer) ListImages

type UnsafeTxt2ImgServiceServer

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

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

Jump to

Keyboard shortcuts

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