v1

package
v0.2.142 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_generative_api_generative_v1_generative_proto protoreflect.FileDescriptor
View Source
var GenerativeApiService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "generative.v1.GenerativeApiService",
	HandlerType: (*GenerativeApiServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GenerateImage",
			Handler:    _GenerativeApiService_GenerateImage_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "generative-api/generative/v1/generative.proto",
}

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

Functions

func RegisterGenerativeApiServiceServer

func RegisterGenerativeApiServiceServer(s grpc.ServiceRegistrar, srv GenerativeApiServiceServer)

Types

type GenerateImageRequest

type GenerateImageRequest struct {
	Style  string `protobuf:"bytes,1,opt,name=style,proto3" json:"style,omitempty"`
	Prompt string `protobuf:"bytes,2,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) GetStyle

func (x *GenerateImageRequest) GetStyle() 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 {
	ImageUrl string `protobuf:"bytes,1,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateImageResponse) Descriptor deprecated

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

Deprecated: Use GenerateImageResponse.ProtoReflect.Descriptor instead.

func (*GenerateImageResponse) GetImageUrl

func (x *GenerateImageResponse) GetImageUrl() string

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 GenerativeApiServiceClient

type GenerativeApiServiceClient interface {
	GenerateImage(ctx context.Context, in *GenerateImageRequest, opts ...grpc.CallOption) (*GenerateImageResponse, error)
}

GenerativeApiServiceClient is the client API for GenerativeApiService 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 GenerativeApiServiceServer

type GenerativeApiServiceServer interface {
	GenerateImage(context.Context, *GenerateImageRequest) (*GenerateImageResponse, error)
	// contains filtered or unexported methods
}

GenerativeApiServiceServer is the server API for GenerativeApiService service. All implementations must embed UnimplementedGenerativeApiServiceServer for forward compatibility

type UnimplementedGenerativeApiServiceServer

type UnimplementedGenerativeApiServiceServer struct {
}

UnimplementedGenerativeApiServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGenerativeApiServiceServer) GenerateImage

type UnsafeGenerativeApiServiceServer

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

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

Directories

Path Synopsis
Package generative_mock is a generated GoMock package.
Package generative_mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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